aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2018-10-11 18:41:41 +0200
committerGitHub <noreply@github.com>2018-10-11 18:41:41 +0200
commit9cf508e6735eed3b01073a67d4eba9a527c2c56c (patch)
treee1ef22991d02fd03945438120aae310ef7907ad9
parentf0d2a06b11160909420e104f88fe0055821b14cf (diff)
downloadprometheus_node_collector-9cf508e6735eed3b01073a67d4eba9a527c2c56c.tar.bz2
prometheus_node_collector-9cf508e6735eed3b01073a67d4eba9a527c2c56c.tar.xz
prometheus_node_collector-9cf508e6735eed3b01073a67d4eba9a527c2c56c.zip
Update vendoring (#1105)
* Update vendor github.com/sirupsen/logrus@v1.1.1 * Update vendor github.com/coreos/go-systemd/dbus@v17 * Update vendor github.com/golang/protobuf/proto@v1.2.0 * Update vendor github.com/konsorten/go-windows-terminal-sequences@v1.0.1 * Update vendor github.com/mdlayher/... * Update vendor github.com/prometheus/procfs/... * Update vendor golang.org/x/... Signed-off-by: Ben Kochie <superq@gmail.com>
-rw-r--r--vendor/github.com/coreos/go-systemd/dbus/methods.go1
-rw-r--r--vendor/github.com/coreos/go-systemd/dbus/set.go2
-rw-r--r--vendor/github.com/coreos/go-systemd/dbus/subscription.go14
-rw-r--r--vendor/github.com/golang/protobuf/LICENSE3
-rw-r--r--vendor/github.com/golang/protobuf/proto/Makefile43
-rw-r--r--vendor/github.com/golang/protobuf/proto/clone.go46
-rw-r--r--vendor/github.com/golang/protobuf/proto/decode.go668
-rw-r--r--vendor/github.com/golang/protobuf/proto/discard.go201
-rw-r--r--vendor/github.com/golang/protobuf/proto/encode.go1209
-rw-r--r--vendor/github.com/golang/protobuf/proto/equal.go30
-rw-r--r--vendor/github.com/golang/protobuf/proto/extensions.go204
-rw-r--r--vendor/github.com/golang/protobuf/proto/lib.go128
-rw-r--r--vendor/github.com/golang/protobuf/proto/message_set.go81
-rw-r--r--vendor/github.com/golang/protobuf/proto/pointer_reflect.go595
-rw-r--r--vendor/github.com/golang/protobuf/proto/pointer_unsafe.go366
-rw-r--r--vendor/github.com/golang/protobuf/proto/properties.go442
-rw-r--r--vendor/github.com/golang/protobuf/proto/table_marshal.go2767
-rw-r--r--vendor/github.com/golang/protobuf/proto/table_merge.go654
-rw-r--r--vendor/github.com/golang/protobuf/proto/table_unmarshal.go2051
-rw-r--r--vendor/github.com/golang/protobuf/proto/text.go65
-rw-r--r--vendor/github.com/golang/protobuf/proto/text_parser.go83
-rw-r--r--vendor/github.com/konsorten/go-windows-terminal-sequences/LICENSE9
-rw-r--r--vendor/github.com/konsorten/go-windows-terminal-sequences/README.md40
-rw-r--r--vendor/github.com/konsorten/go-windows-terminal-sequences/go.mod1
-rw-r--r--vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go36
-rw-r--r--vendor/github.com/mdlayher/genetlink/conn.go30
-rw-r--r--vendor/github.com/mdlayher/netlink/attribute.go182
-rw-r--r--vendor/github.com/mdlayher/netlink/conn.go120
-rw-r--r--vendor/github.com/mdlayher/netlink/conn_linux.go181
-rw-r--r--vendor/github.com/mdlayher/netlink/message.go21
-rw-r--r--vendor/github.com/mdlayher/netlink/netns_linux.go27
-rw-r--r--vendor/github.com/prometheus/procfs/.gitignore1
-rw-r--r--vendor/github.com/prometheus/procfs/.travis.yml15
-rw-r--r--vendor/github.com/prometheus/procfs/bcache/get_test.go114
-rw-r--r--vendor/github.com/prometheus/procfs/buddyinfo_test.go64
-rw-r--r--vendor/github.com/prometheus/procfs/fixtures.ttar16
-rw-r--r--vendor/github.com/prometheus/procfs/fs_test.go39
-rw-r--r--vendor/github.com/prometheus/procfs/internal/util/parse.go15
-rw-r--r--vendor/github.com/prometheus/procfs/internal/util/sysreadfile_linux.go45
-rw-r--r--vendor/github.com/prometheus/procfs/ipvs_test.go250
-rw-r--r--vendor/github.com/prometheus/procfs/mdstat_test.go44
-rw-r--r--vendor/github.com/prometheus/procfs/mountstats_test.go380
-rw-r--r--vendor/github.com/prometheus/procfs/net_dev_test.go86
-rw-r--r--vendor/github.com/prometheus/procfs/nfs/parse_nfs_test.go305
-rw-r--r--vendor/github.com/prometheus/procfs/nfs/parse_nfsd_test.go196
-rw-r--r--vendor/github.com/prometheus/procfs/proc.go20
-rw-r--r--vendor/github.com/prometheus/procfs/proc_io_test.go46
-rw-r--r--vendor/github.com/prometheus/procfs/proc_limits_test.go44
-rw-r--r--vendor/github.com/prometheus/procfs/proc_ns_test.go44
-rw-r--r--vendor/github.com/prometheus/procfs/proc_stat_test.go123
-rw-r--r--vendor/github.com/prometheus/procfs/proc_test.go174
-rw-r--r--vendor/github.com/prometheus/procfs/stat_test.go74
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/.gitignore1
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar142
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/fs_test.go108
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/net_class.go31
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/net_class_test.go88
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/system_cpu.go141
-rw-r--r--vendor/github.com/prometheus/procfs/xfrm_test.go66
-rw-r--r--vendor/github.com/prometheus/procfs/xfs/parse_test.go442
-rw-r--r--vendor/github.com/sirupsen/logrus/CHANGELOG.md40
-rw-r--r--vendor/github.com/sirupsen/logrus/README.md60
-rw-r--r--vendor/github.com/sirupsen/logrus/entry.go119
-rw-r--r--vendor/github.com/sirupsen/logrus/exported.go39
-rw-r--r--vendor/github.com/sirupsen/logrus/formatter.go35
-rw-r--r--vendor/github.com/sirupsen/logrus/go.mod10
-rw-r--r--vendor/github.com/sirupsen/logrus/go.sum12
-rw-r--r--vendor/github.com/sirupsen/logrus/json_formatter.go43
-rw-r--r--vendor/github.com/sirupsen/logrus/logger.go90
-rw-r--r--vendor/github.com/sirupsen/logrus/logrus.go7
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_bsd.go10
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_check_js.go11
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go2
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_check_windows.go20
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_linux.go14
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_notwindows.go8
-rw-r--r--vendor/github.com/sirupsen/logrus/terminal_windows.go18
-rw-r--r--vendor/github.com/sirupsen/logrus/text_formatter.go114
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util.go4
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go40
-rw-r--r--vendor/golang.org/x/crypto/ssh/terminal/util_windows.go4
-rw-r--r--vendor/golang.org/x/net/bpf/instructions.go32
-rw-r--r--vendor/golang.org/x/net/internal/iana/const.go109
-rw-r--r--vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go6
-rw-r--r--vendor/golang.org/x/net/ipv4/batch.go9
-rw-r--r--vendor/golang.org/x/net/ipv4/dgramopt.go31
-rw-r--r--vendor/golang.org/x/net/ipv4/doc.go4
-rw-r--r--vendor/golang.org/x/net/ipv4/endpoint.go21
-rw-r--r--vendor/golang.org/x/net/ipv4/genericopt.go10
-rw-r--r--vendor/golang.org/x/net/ipv4/header.go17
-rw-r--r--vendor/golang.org/x/net/ipv4/helper.go1
-rw-r--r--vendor/golang.org/x/net/ipv4/iana.go10
-rw-r--r--vendor/golang.org/x/net/ipv4/packet.go5
-rw-r--r--vendor/golang.org/x/net/ipv4/payload_cmsg.go11
-rw-r--r--vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go2
-rw-r--r--vendor/golang.org/x/net/ipv4/payload_nocmsg.go11
-rw-r--r--vendor/golang.org/x/sys/unix/aliases.go14
-rw-r--r--vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s10
-rw-r--r--vendor/golang.org/x/sys/unix/cap_freebsd.go30
-rw-r--r--vendor/golang.org/x/sys/unix/constants.go2
-rw-r--r--vendor/golang.org/x/sys/unix/dev_aix_ppc.go27
-rw-r--r--vendor/golang.org/x/sys/unix/dev_aix_ppc64.go29
-rw-r--r--vendor/golang.org/x/sys/unix/dirent.go2
-rw-r--r--vendor/golang.org/x/sys/unix/env_unix.go2
-rw-r--r--vendor/golang.org/x/sys/unix/fcntl.go (renamed from vendor/golang.org/x/sys/unix/flock.go)10
-rw-r--r--vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go (renamed from vendor/golang.org/x/sys/unix/flock_linux_32bit.go)0
-rw-r--r--vendor/golang.org/x/sys/unix/gccgo.go1
-rw-r--r--vendor/golang.org/x/sys/unix/gccgo_c.c10
-rw-r--r--vendor/golang.org/x/sys/unix/ioctl.go30
-rwxr-xr-xvendor/golang.org/x/sys/unix/mkall.sh10
-rwxr-xr-xvendor/golang.org/x/sys/unix/mkerrors.sh120
-rw-r--r--vendor/golang.org/x/sys/unix/mksyscall_aix.pl385
-rwxr-xr-xvendor/golang.org/x/sys/unix/mksysctl_openbsd.pl3
-rwxr-xr-xvendor/golang.org/x/sys/unix/mksysnum_freebsd.pl2
-rw-r--r--vendor/golang.org/x/sys/unix/openbsd_pledge.go77
-rw-r--r--vendor/golang.org/x/sys/unix/pagesize_unix.go2
-rw-r--r--vendor/golang.org/x/sys/unix/race0.go2
-rw-r--r--vendor/golang.org/x/sys/unix/sockcmsg_unix.go4
-rw-r--r--vendor/golang.org/x/sys/unix/str.go2
-rw-r--r--vendor/golang.org/x/sys/unix/syscall.go13
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_aix.go564
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_aix_ppc.go34
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go34
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_bsd.go49
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin.go127
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_dragonfly.go8
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_freebsd.go260
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux.go305
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_386.go16
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_amd64.go35
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_arm.go10
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_arm64.go62
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go16
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go30
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go20
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go12
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go20
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go30
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go212
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_s390x.go17
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go3
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_netbsd.go38
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_openbsd.go28
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go4
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_solaris.go27
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go5
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_unix.go111
-rw-r--r--vendor/golang.org/x/sys/unix/timestruct.go2
-rw-r--r--vendor/golang.org/x/sys/unix/xattr_bsd.go231
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go1372
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go1373
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_darwin_386.go292
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go292
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go292
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go292
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go347
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go299
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go299
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go299
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_386.go765
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go764
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_arm.go766
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go765
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips.go768
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go768
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go768
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go768
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go764
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go764
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go2682
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go763
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go350
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go313
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go313
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go313
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go313
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go563
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go313
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go371
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go1519
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go1519
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go149
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go149
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go151
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go149
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go30
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_386.go289
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go300
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go283
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go218
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go333
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go269
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go269
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go333
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go306
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go306
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go2140
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go274
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go461
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go269
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go269
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go269
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go66
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go66
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go66
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go44
-rw-r--r--vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go40
-rw-r--r--vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go736
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go736
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go736
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_386.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go1
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go1
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go5
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go5
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go286
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go48
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go25
-rw-r--r--vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go2
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go345
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go354
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_darwin_386.go122
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go168
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go122
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go168
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go127
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go27
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go27
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go27
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_386.go1378
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go1348
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_arm.go1381
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go1350
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips.go1347
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go1346
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go1346
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go1347
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go1356
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go1356
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go1995
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go1328
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go218
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go29
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go29
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go29
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go118
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go209
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go118
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go201
-rw-r--r--vendor/golang.org/x/sys/windows/aliases.go13
-rw-r--r--vendor/golang.org/x/sys/windows/asm_windows_386.s4
-rw-r--r--vendor/golang.org/x/sys/windows/asm_windows_amd64.s2
-rw-r--r--vendor/golang.org/x/sys/windows/asm_windows_arm.s11
-rw-r--r--vendor/golang.org/x/sys/windows/registry/key.go10
-rw-r--r--vendor/golang.org/x/sys/windows/registry/zsyscall_windows.go2
-rw-r--r--vendor/golang.org/x/sys/windows/security_windows.go4
-rw-r--r--vendor/golang.org/x/sys/windows/service.go19
-rw-r--r--vendor/golang.org/x/sys/windows/syscall.go3
-rw-r--r--vendor/golang.org/x/sys/windows/syscall_windows.go60
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows.go180
-rw-r--r--vendor/golang.org/x/sys/windows/types_windows_arm.go22
-rw-r--r--vendor/golang.org/x/sys/windows/zsyscall_windows.go15
-rw-r--r--vendor/vendor.json140
279 files changed, 54502 insertions, 15108 deletions
diff --git a/vendor/github.com/coreos/go-systemd/dbus/methods.go b/vendor/github.com/coreos/go-systemd/dbus/methods.go
index 4511d0a..0b42072 100644
--- a/vendor/github.com/coreos/go-systemd/dbus/methods.go
+++ b/vendor/github.com/coreos/go-systemd/dbus/methods.go
@@ -313,6 +313,7 @@ func (c *Conn) ListUnitsByPatterns(states []string, patterns []string) ([]UnitSt
313// names and returns an UnitStatus array. Comparing to ListUnitsByPatterns 313// names and returns an UnitStatus array. Comparing to ListUnitsByPatterns
314// method, this method returns statuses even for inactive or non-existing 314// method, this method returns statuses even for inactive or non-existing
315// units. Input array should contain exact unit names, but not patterns. 315// units. Input array should contain exact unit names, but not patterns.
316// Note: Requires systemd v230 or higher
316func (c *Conn) ListUnitsByNames(units []string) ([]UnitStatus, error) { 317func (c *Conn) ListUnitsByNames(units []string) ([]UnitStatus, error) {
317 return c.listUnitsInternal(c.sysobj.Call("org.freedesktop.systemd1.Manager.ListUnitsByNames", 0, units).Store) 318 return c.listUnitsInternal(c.sysobj.Call("org.freedesktop.systemd1.Manager.ListUnitsByNames", 0, units).Store)
318} 319}
diff --git a/vendor/github.com/coreos/go-systemd/dbus/set.go b/vendor/github.com/coreos/go-systemd/dbus/set.go
index f92e6fb..17c5d48 100644
--- a/vendor/github.com/coreos/go-systemd/dbus/set.go
+++ b/vendor/github.com/coreos/go-systemd/dbus/set.go
@@ -36,7 +36,7 @@ func (s *set) Length() int {
36} 36}
37 37
38func (s *set) Values() (values []string) { 38func (s *set) Values() (values []string) {
39 for val, _ := range s.data { 39 for val := range s.data {
40 values = append(values, val) 40 values = append(values, val)
41 } 41 }
42 return 42 return
diff --git a/vendor/github.com/coreos/go-systemd/dbus/subscription.go b/vendor/github.com/coreos/go-systemd/dbus/subscription.go
index 5e8e9ae..70e63a6 100644
--- a/vendor/github.com/coreos/go-systemd/dbus/subscription.go
+++ b/vendor/github.com/coreos/go-systemd/dbus/subscription.go
@@ -37,22 +37,12 @@ func (c *Conn) Subscribe() error {
37 c.sigconn.BusObject().Call("org.freedesktop.DBus.AddMatch", 0, 37 c.sigconn.BusObject().Call("org.freedesktop.DBus.AddMatch", 0,
38 "type='signal',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged'") 38 "type='signal',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged'")
39 39
40 err := c.sigobj.Call("org.freedesktop.systemd1.Manager.Subscribe", 0).Store() 40 return c.sigobj.Call("org.freedesktop.systemd1.Manager.Subscribe", 0).Store()
41 if err != nil {
42 return err
43 }
44
45 return nil
46} 41}
47 42
48// Unsubscribe this connection from systemd dbus events. 43// Unsubscribe this connection from systemd dbus events.
49func (c *Conn) Unsubscribe() error { 44func (c *Conn) Unsubscribe() error {
50 err := c.sigobj.Call("org.freedesktop.systemd1.Manager.Unsubscribe", 0).Store() 45 return c.sigobj.Call("org.freedesktop.systemd1.Manager.Unsubscribe", 0).Store()
51 if err != nil {
52 return err
53 }
54
55 return nil
56} 46}
57 47
58func (c *Conn) dispatch() { 48func (c *Conn) dispatch() {
diff --git a/vendor/github.com/golang/protobuf/LICENSE b/vendor/github.com/golang/protobuf/LICENSE
index 1b1b192..0f64693 100644
--- a/vendor/github.com/golang/protobuf/LICENSE
+++ b/vendor/github.com/golang/protobuf/LICENSE
@@ -1,7 +1,4 @@
1Go support for Protocol Buffers - Google's data interchange format
2
3Copyright 2010 The Go Authors. All rights reserved. 1Copyright 2010 The Go Authors. All rights reserved.
4https://github.com/golang/protobuf
5 2
6Redistribution and use in source and binary forms, with or without 3Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are 4modification, are permitted provided that the following conditions are
diff --git a/vendor/github.com/golang/protobuf/proto/Makefile b/vendor/github.com/golang/protobuf/proto/Makefile
deleted file mode 100644
index e2e0651..0000000
--- a/vendor/github.com/golang/protobuf/proto/Makefile
+++ /dev/null
@@ -1,43 +0,0 @@
1# Go support for Protocol Buffers - Google's data interchange format
2#
3# Copyright 2010 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
32install:
33 go install
34
35test: install generate-test-pbs
36 go test
37
38
39generate-test-pbs:
40 make install
41 make -C testdata
42 protoc --go_out=Mtestdata/test.proto=github.com/golang/protobuf/proto/testdata,Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any:. proto3_proto/proto3.proto
43 make
diff --git a/vendor/github.com/golang/protobuf/proto/clone.go b/vendor/github.com/golang/protobuf/proto/clone.go
index e392575..3cd3249 100644
--- a/vendor/github.com/golang/protobuf/proto/clone.go
+++ b/vendor/github.com/golang/protobuf/proto/clone.go
@@ -35,22 +35,39 @@
35package proto 35package proto
36 36
37import ( 37import (
38 "fmt"
38 "log" 39 "log"
39 "reflect" 40 "reflect"
40 "strings" 41 "strings"
41) 42)
42 43
43// Clone returns a deep copy of a protocol buffer. 44// Clone returns a deep copy of a protocol buffer.
44func Clone(pb Message) Message { 45func Clone(src Message) Message {
45 in := reflect.ValueOf(pb) 46 in := reflect.ValueOf(src)
46 if in.IsNil() { 47 if in.IsNil() {
47 return pb 48 return src
48 } 49 }
49
50 out := reflect.New(in.Type().Elem()) 50 out := reflect.New(in.Type().Elem())
51 // out is empty so a merge is a deep copy. 51 dst := out.Interface().(Message)
52 mergeStruct(out.Elem(), in.Elem()) 52 Merge(dst, src)
53 return out.Interface().(Message) 53 return dst
54}
55
56// Merger is the interface representing objects that can merge messages of the same type.
57type Merger interface {
58 // Merge merges src into this message.
59 // Required and optional fields that are set in src will be set to that value in dst.
60 // Elements of repeated fields will be appended.
61 //
62 // Merge may panic if called with a different argument type than the receiver.
63 Merge(src Message)
64}
65
66// generatedMerger is the custom merge method that generated protos will have.
67// We must add this method since a generate Merge method will conflict with
68// many existing protos that have a Merge data field already defined.
69type generatedMerger interface {
70 XXX_Merge(src Message)
54} 71}
55 72
56// Merge merges src into dst. 73// Merge merges src into dst.
@@ -58,17 +75,24 @@ func Clone(pb Message) Message {
58// Elements of repeated fields will be appended. 75// Elements of repeated fields will be appended.
59// Merge panics if src and dst are not the same type, or if dst is nil. 76// Merge panics if src and dst are not the same type, or if dst is nil.
60func Merge(dst, src Message) { 77func Merge(dst, src Message) {
78 if m, ok := dst.(Merger); ok {
79 m.Merge(src)
80 return
81 }
82
61 in := reflect.ValueOf(src) 83 in := reflect.ValueOf(src)
62 out := reflect.ValueOf(dst) 84 out := reflect.ValueOf(dst)
63 if out.IsNil() { 85 if out.IsNil() {
64 panic("proto: nil destination") 86 panic("proto: nil destination")
65 } 87 }
66 if in.Type() != out.Type() { 88 if in.Type() != out.Type() {
67 // Explicit test prior to mergeStruct so that mistyped nils will fail 89 panic(fmt.Sprintf("proto.Merge(%T, %T) type mismatch", dst, src))
68 panic("proto: type mismatch")
69 } 90 }
70 if in.IsNil() { 91 if in.IsNil() {
71 // Merging nil into non-nil is a quiet no-op 92 return // Merge from nil src is a noop
93 }
94 if m, ok := dst.(generatedMerger); ok {
95 m.XXX_Merge(src)
72 return 96 return
73 } 97 }
74 mergeStruct(out.Elem(), in.Elem()) 98 mergeStruct(out.Elem(), in.Elem())
@@ -84,7 +108,7 @@ func mergeStruct(out, in reflect.Value) {
84 mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i]) 108 mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i])
85 } 109 }
86 110
87 if emIn, ok := extendable(in.Addr().Interface()); ok { 111 if emIn, err := extendable(in.Addr().Interface()); err == nil {
88 emOut, _ := extendable(out.Addr().Interface()) 112 emOut, _ := extendable(out.Addr().Interface())
89 mIn, muIn := emIn.extensionsRead() 113 mIn, muIn := emIn.extensionsRead()
90 if mIn != nil { 114 if mIn != nil {
diff --git a/vendor/github.com/golang/protobuf/proto/decode.go b/vendor/github.com/golang/protobuf/proto/decode.go
index aa20729..d9aa3c4 100644
--- a/vendor/github.com/golang/protobuf/proto/decode.go
+++ b/vendor/github.com/golang/protobuf/proto/decode.go
@@ -39,8 +39,6 @@ import (
39 "errors" 39 "errors"
40 "fmt" 40 "fmt"
41 "io" 41 "io"
42 "os"
43 "reflect"
44) 42)
45 43
46// errOverflow is returned when an integer is too large to be represented. 44// errOverflow is returned when an integer is too large to be represented.
@@ -50,10 +48,6 @@ var errOverflow = errors.New("proto: integer overflow")
50// wire type is encountered. It does not get returned to user code. 48// wire type is encountered. It does not get returned to user code.
51var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") 49var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof")
52 50
53// The fundamental decoders that interpret bytes on the wire.
54// Those that take integer types all return uint64 and are
55// therefore of type valueDecoder.
56
57// DecodeVarint reads a varint-encoded integer from the slice. 51// DecodeVarint reads a varint-encoded integer from the slice.
58// It returns the integer and the number of bytes consumed, or 52// It returns the integer and the number of bytes consumed, or
59// zero if there is not enough. 53// zero if there is not enough.
@@ -267,9 +261,6 @@ func (p *Buffer) DecodeZigzag32() (x uint64, err error) {
267 return 261 return
268} 262}
269 263
270// These are not ValueDecoders: they produce an array of bytes or a string.
271// bytes, embedded messages
272
273// DecodeRawBytes reads a count-delimited byte buffer from the Buffer. 264// DecodeRawBytes reads a count-delimited byte buffer from the Buffer.
274// This is the format used for the bytes protocol buffer 265// This is the format used for the bytes protocol buffer
275// type and for embedded messages. 266// type and for embedded messages.
@@ -311,81 +302,29 @@ func (p *Buffer) DecodeStringBytes() (s string, err error) {
311 return string(buf), nil 302 return string(buf), nil
312} 303}
313 304
314// Skip the next item in the buffer. Its wire type is decoded and presented as an argument.
315// If the protocol buffer has extensions, and the field matches, add it as an extension.
316// Otherwise, if the XXX_unrecognized field exists, append the skipped data there.
317func (o *Buffer) skipAndSave(t reflect.Type, tag, wire int, base structPointer, unrecField field) error {
318 oi := o.index
319
320 err := o.skip(t, tag, wire)
321 if err != nil {
322 return err
323 }
324
325 if !unrecField.IsValid() {
326 return nil
327 }
328
329 ptr := structPointer_Bytes(base, unrecField)
330
331 // Add the skipped field to struct field
332 obuf := o.buf
333
334 o.buf = *ptr
335 o.EncodeVarint(uint64(tag<<3 | wire))
336 *ptr = append(o.buf, obuf[oi:o.index]...)
337
338 o.buf = obuf
339
340 return nil
341}
342
343// Skip the next item in the buffer. Its wire type is decoded and presented as an argument.
344func (o *Buffer) skip(t reflect.Type, tag, wire int) error {
345
346 var u uint64
347 var err error
348
349 switch wire {
350 case WireVarint:
351 _, err = o.DecodeVarint()
352 case WireFixed64:
353 _, err = o.DecodeFixed64()
354 case WireBytes:
355 _, err = o.DecodeRawBytes(false)
356 case WireFixed32:
357 _, err = o.DecodeFixed32()
358 case WireStartGroup:
359 for {
360 u, err = o.DecodeVarint()
361 if err != nil {
362 break
363 }
364 fwire := int(u & 0x7)
365 if fwire == WireEndGroup {
366 break
367 }
368 ftag := int(u >> 3)
369 err = o.skip(t, ftag, fwire)
370 if err != nil {
371 break
372 }
373 }
374 default:
375 err = fmt.Errorf("proto: can't skip unknown wire type %d for %s", wire, t)
376 }
377 return err
378}
379
380// Unmarshaler is the interface representing objects that can 305// Unmarshaler is the interface representing objects that can
381// unmarshal themselves. The method should reset the receiver before 306// unmarshal themselves. The argument points to data that may be
382// decoding starts. The argument points to data that may be
383// overwritten, so implementations should not keep references to the 307// overwritten, so implementations should not keep references to the
384// buffer. 308// buffer.
309// Unmarshal implementations should not clear the receiver.
310// Any unmarshaled data should be merged into the receiver.
311// Callers of Unmarshal that do not want to retain existing data
312// should Reset the receiver before calling Unmarshal.
385type Unmarshaler interface { 313type Unmarshaler interface {
386 Unmarshal([]byte) error 314 Unmarshal([]byte) error
387} 315}
388 316
317// newUnmarshaler is the interface representing objects that can
318// unmarshal themselves. The semantics are identical to Unmarshaler.
319//
320// This exists to support protoc-gen-go generated messages.
321// The proto package will stop type-asserting to this interface in the future.
322//
323// DO NOT DEPEND ON THIS.
324type newUnmarshaler interface {
325 XXX_Unmarshal([]byte) error
326}
327
389// Unmarshal parses the protocol buffer representation in buf and places the 328// Unmarshal parses the protocol buffer representation in buf and places the
390// decoded result in pb. If the struct underlying pb does not match 329// decoded result in pb. If the struct underlying pb does not match
391// the data in buf, the results can be unpredictable. 330// the data in buf, the results can be unpredictable.
@@ -395,7 +334,13 @@ type Unmarshaler interface {
395// to preserve and append to existing data. 334// to preserve and append to existing data.
396func Unmarshal(buf []byte, pb Message) error { 335func Unmarshal(buf []byte, pb Message) error {
397 pb.Reset() 336 pb.Reset()
398 return UnmarshalMerge(buf, pb) 337 if u, ok := pb.(newUnmarshaler); ok {
338 return u.XXX_Unmarshal(buf)
339 }
340 if u, ok := pb.(Unmarshaler); ok {
341 return u.Unmarshal(buf)
342 }
343 return NewBuffer(buf).Unmarshal(pb)
399} 344}
400 345
401// UnmarshalMerge parses the protocol buffer representation in buf and 346// UnmarshalMerge parses the protocol buffer representation in buf and
@@ -405,8 +350,16 @@ func Unmarshal(buf []byte, pb Message) error {
405// UnmarshalMerge merges into existing data in pb. 350// UnmarshalMerge merges into existing data in pb.
406// Most code should use Unmarshal instead. 351// Most code should use Unmarshal instead.
407func UnmarshalMerge(buf []byte, pb Message) error { 352func UnmarshalMerge(buf []byte, pb Message) error {
408 // If the object can unmarshal itself, let it. 353 if u, ok := pb.(newUnmarshaler); ok {
354 return u.XXX_Unmarshal(buf)
355 }
409 if u, ok := pb.(Unmarshaler); ok { 356 if u, ok := pb.(Unmarshaler); ok {
357 // NOTE: The history of proto have unfortunately been inconsistent
358 // whether Unmarshaler should or should not implicitly clear itself.
359 // Some implementations do, most do not.
360 // Thus, calling this here may or may not do what people want.
361 //
362 // See https://github.com/golang/protobuf/issues/424
410 return u.Unmarshal(buf) 363 return u.Unmarshal(buf)
411 } 364 }
412 return NewBuffer(buf).Unmarshal(pb) 365 return NewBuffer(buf).Unmarshal(pb)
@@ -422,12 +375,17 @@ func (p *Buffer) DecodeMessage(pb Message) error {
422} 375}
423 376
424// DecodeGroup reads a tag-delimited group from the Buffer. 377// DecodeGroup reads a tag-delimited group from the Buffer.
378// StartGroup tag is already consumed. This function consumes
379// EndGroup tag.
425func (p *Buffer) DecodeGroup(pb Message) error { 380func (p *Buffer) DecodeGroup(pb Message) error {
426 typ, base, err := getbase(pb) 381 b := p.buf[p.index:]
427 if err != nil { 382 x, y := findEndGroup(b)
428 return err 383 if x < 0 {
384 return io.ErrUnexpectedEOF
429 } 385 }
430 return p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), true, base) 386 err := Unmarshal(b[:x], pb)
387 p.index += y
388 return err
431} 389}
432 390
433// Unmarshal parses the protocol buffer representation in the 391// Unmarshal parses the protocol buffer representation in the
@@ -438,533 +396,33 @@ func (p *Buffer) DecodeGroup(pb Message) error {
438// Unlike proto.Unmarshal, this does not reset pb before starting to unmarshal. 396// Unlike proto.Unmarshal, this does not reset pb before starting to unmarshal.
439func (p *Buffer) Unmarshal(pb Message) error { 397func (p *Buffer) Unmarshal(pb Message) error {
440 // If the object can unmarshal itself, let it. 398 // If the object can unmarshal itself, let it.
441 if u, ok := pb.(Unmarshaler); ok { 399 if u, ok := pb.(newUnmarshaler); ok {
442 err := u.Unmarshal(p.buf[p.index:]) 400 err := u.XXX_Unmarshal(p.buf[p.index:])
443 p.index = len(p.buf) 401 p.index = len(p.buf)
444 return err 402 return err
445 } 403 }
446 404 if u, ok := pb.(Unmarshaler); ok {
447 typ, base, err := getbase(pb) 405 // NOTE: The history of proto have unfortunately been inconsistent
448 if err != nil { 406 // whether Unmarshaler should or should not implicitly clear itself.
449 return err 407 // Some implementations do, most do not.
450 } 408 // Thus, calling this here may or may not do what people want.
451 409 //
452 err = p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), false, base) 410 // See https://github.com/golang/protobuf/issues/424
453 411 err := u.Unmarshal(p.buf[p.index:])
454 if collectStats { 412 p.index = len(p.buf)
455 stats.Decode++
456 }
457
458 return err
459}
460
461// unmarshalType does the work of unmarshaling a structure.
462func (o *Buffer) unmarshalType(st reflect.Type, prop *StructProperties, is_group bool, base structPointer) error {
463 var state errorState
464 required, reqFields := prop.reqCount, uint64(0)
465
466 var err error
467 for err == nil && o.index < len(o.buf) {
468 oi := o.index
469 var u uint64
470 u, err = o.DecodeVarint()
471 if err != nil {
472 break
473 }
474 wire := int(u & 0x7)
475 if wire == WireEndGroup {
476 if is_group {
477 if required > 0 {
478 // Not enough information to determine the exact field.
479 // (See below.)
480 return &RequiredNotSetError{"{Unknown}"}
481 }
482 return nil // input is satisfied
483 }
484 return fmt.Errorf("proto: %s: wiretype end group for non-group", st)
485 }
486 tag := int(u >> 3)
487 if tag <= 0 {
488 return fmt.Errorf("proto: %s: illegal tag %d (wire type %d)", st, tag, wire)
489 }
490 fieldnum, ok := prop.decoderTags.get(tag)
491 if !ok {
492 // Maybe it's an extension?
493 if prop.extendable {
494 if e, _ := extendable(structPointer_Interface(base, st)); isExtensionField(e, int32(tag)) {
495 if err = o.skip(st, tag, wire); err == nil {
496 extmap := e.extensionsWrite()
497 ext := extmap[int32(tag)] // may be missing
498 ext.enc = append(ext.enc, o.buf[oi:o.index]...)
499 extmap[int32(tag)] = ext
500 }
501 continue
502 }
503 }
504 // Maybe it's a oneof?
505 if prop.oneofUnmarshaler != nil {
506 m := structPointer_Interface(base, st).(Message)
507 // First return value indicates whether tag is a oneof field.
508 ok, err = prop.oneofUnmarshaler(m, tag, wire, o)
509 if err == ErrInternalBadWireType {
510 // Map the error to something more descriptive.
511 // Do the formatting here to save generated code space.
512 err = fmt.Errorf("bad wiretype for oneof field in %T", m)
513 }
514 if ok {
515 continue
516 }
517 }
518 err = o.skipAndSave(st, tag, wire, base, prop.unrecField)
519 continue
520 }
521 p := prop.Prop[fieldnum]
522
523 if p.dec == nil {
524 fmt.Fprintf(os.Stderr, "proto: no protobuf decoder for %s.%s\n", st, st.Field(fieldnum).Name)
525 continue
526 }
527 dec := p.dec
528 if wire != WireStartGroup && wire != p.WireType {
529 if wire == WireBytes && p.packedDec != nil {
530 // a packable field
531 dec = p.packedDec
532 } else {
533 err = fmt.Errorf("proto: bad wiretype for field %s.%s: got wiretype %d, want %d", st, st.Field(fieldnum).Name, wire, p.WireType)
534 continue
535 }
536 }
537 decErr := dec(o, p, base)
538 if decErr != nil && !state.shouldContinue(decErr, p) {
539 err = decErr
540 }
541 if err == nil && p.Required {
542 // Successfully decoded a required field.
543 if tag <= 64 {
544 // use bitmap for fields 1-64 to catch field reuse.
545 var mask uint64 = 1 << uint64(tag-1)
546 if reqFields&mask == 0 {
547 // new required field
548 reqFields |= mask
549 required--
550 }
551 } else {
552 // This is imprecise. It can be fooled by a required field
553 // with a tag > 64 that is encoded twice; that's very rare.
554 // A fully correct implementation would require allocating
555 // a data structure, which we would like to avoid.
556 required--
557 }
558 }
559 }
560 if err == nil {
561 if is_group {
562 return io.ErrUnexpectedEOF
563 }
564 if state.err != nil {
565 return state.err
566 }
567 if required > 0 {
568 // Not enough information to determine the exact field. If we use extra
569 // CPU, we could determine the field only if the missing required field
570 // has a tag <= 64 and we check reqFields.
571 return &RequiredNotSetError{"{Unknown}"}
572 }
573 }
574 return err
575}
576
577// Individual type decoders
578// For each,
579// u is the decoded value,
580// v is a pointer to the field (pointer) in the struct
581
582// Sizes of the pools to allocate inside the Buffer.
583// The goal is modest amortization and allocation
584// on at least 16-byte boundaries.
585const (
586 boolPoolSize = 16
587 uint32PoolSize = 8
588 uint64PoolSize = 4
589)
590
591// Decode a bool.
592func (o *Buffer) dec_bool(p *Properties, base structPointer) error {
593 u, err := p.valDec(o)
594 if err != nil {
595 return err
596 }
597 if len(o.bools) == 0 {
598 o.bools = make([]bool, boolPoolSize)
599 }
600 o.bools[0] = u != 0
601 *structPointer_Bool(base, p.field) = &o.bools[0]
602 o.bools = o.bools[1:]
603 return nil
604}
605
606func (o *Buffer) dec_proto3_bool(p *Properties, base structPointer) error {
607 u, err := p.valDec(o)
608 if err != nil {
609 return err
610 }
611 *structPointer_BoolVal(base, p.field) = u != 0
612 return nil
613}
614
615// Decode an int32.
616func (o *Buffer) dec_int32(p *Properties, base structPointer) error {
617 u, err := p.valDec(o)
618 if err != nil {
619 return err
620 }
621 word32_Set(structPointer_Word32(base, p.field), o, uint32(u))
622 return nil
623}
624
625func (o *Buffer) dec_proto3_int32(p *Properties, base structPointer) error {
626 u, err := p.valDec(o)
627 if err != nil {
628 return err
629 }
630 word32Val_Set(structPointer_Word32Val(base, p.field), uint32(u))
631 return nil
632}
633
634// Decode an int64.
635func (o *Buffer) dec_int64(p *Properties, base structPointer) error {
636 u, err := p.valDec(o)
637 if err != nil {
638 return err
639 }
640 word64_Set(structPointer_Word64(base, p.field), o, u)
641 return nil
642}
643
644func (o *Buffer) dec_proto3_int64(p *Properties, base structPointer) error {
645 u, err := p.valDec(o)
646 if err != nil {
647 return err
648 }
649 word64Val_Set(structPointer_Word64Val(base, p.field), o, u)
650 return nil
651}
652
653// Decode a string.
654func (o *Buffer) dec_string(p *Properties, base structPointer) error {
655 s, err := o.DecodeStringBytes()
656 if err != nil {
657 return err
658 }
659 *structPointer_String(base, p.field) = &s
660 return nil
661}
662
663func (o *Buffer) dec_proto3_string(p *Properties, base structPointer) error {
664 s, err := o.DecodeStringBytes()
665 if err != nil {
666 return err
667 }
668 *structPointer_StringVal(base, p.field) = s
669 return nil
670}
671
672// Decode a slice of bytes ([]byte).
673func (o *Buffer) dec_slice_byte(p *Properties, base structPointer) error {
674 b, err := o.DecodeRawBytes(true)
675 if err != nil {
676 return err
677 }
678 *structPointer_Bytes(base, p.field) = b
679 return nil
680}
681
682// Decode a slice of bools ([]bool).
683func (o *Buffer) dec_slice_bool(p *Properties, base structPointer) error {
684 u, err := p.valDec(o)
685 if err != nil {
686 return err
687 }
688 v := structPointer_BoolSlice(base, p.field)
689 *v = append(*v, u != 0)
690 return nil
691}
692
693// Decode a slice of bools ([]bool) in packed format.
694func (o *Buffer) dec_slice_packed_bool(p *Properties, base structPointer) error {
695 v := structPointer_BoolSlice(base, p.field)
696
697 nn, err := o.DecodeVarint()
698 if err != nil {
699 return err
700 }
701 nb := int(nn) // number of bytes of encoded bools
702 fin := o.index + nb
703 if fin < o.index {
704 return errOverflow
705 }
706
707 y := *v
708 for o.index < fin {
709 u, err := p.valDec(o)
710 if err != nil {
711 return err
712 }
713 y = append(y, u != 0)
714 }
715
716 *v = y
717 return nil
718}
719
720// Decode a slice of int32s ([]int32).
721func (o *Buffer) dec_slice_int32(p *Properties, base structPointer) error {
722 u, err := p.valDec(o)
723 if err != nil {
724 return err
725 }
726 structPointer_Word32Slice(base, p.field).Append(uint32(u))
727 return nil
728}
729
730// Decode a slice of int32s ([]int32) in packed format.
731func (o *Buffer) dec_slice_packed_int32(p *Properties, base structPointer) error {
732 v := structPointer_Word32Slice(base, p.field)
733
734 nn, err := o.DecodeVarint()
735 if err != nil {
736 return err
737 }
738 nb := int(nn) // number of bytes of encoded int32s
739
740 fin := o.index + nb
741 if fin < o.index {
742 return errOverflow
743 }
744 for o.index < fin {
745 u, err := p.valDec(o)
746 if err != nil {
747 return err
748 }
749 v.Append(uint32(u))
750 }
751 return nil
752}
753
754// Decode a slice of int64s ([]int64).
755func (o *Buffer) dec_slice_int64(p *Properties, base structPointer) error {
756 u, err := p.valDec(o)
757 if err != nil {
758 return err
759 }
760
761 structPointer_Word64Slice(base, p.field).Append(u)
762 return nil
763}
764
765// Decode a slice of int64s ([]int64) in packed format.
766func (o *Buffer) dec_slice_packed_int64(p *Properties, base structPointer) error {
767 v := structPointer_Word64Slice(base, p.field)
768
769 nn, err := o.DecodeVarint()
770 if err != nil {
771 return err
772 }
773 nb := int(nn) // number of bytes of encoded int64s
774
775 fin := o.index + nb
776 if fin < o.index {
777 return errOverflow
778 }
779 for o.index < fin {
780 u, err := p.valDec(o)
781 if err != nil {
782 return err
783 }
784 v.Append(u)
785 }
786 return nil
787}
788
789// Decode a slice of strings ([]string).
790func (o *Buffer) dec_slice_string(p *Properties, base structPointer) error {
791 s, err := o.DecodeStringBytes()
792 if err != nil {
793 return err
794 }
795 v := structPointer_StringSlice(base, p.field)
796 *v = append(*v, s)
797 return nil
798}
799
800// Decode a slice of slice of bytes ([][]byte).
801func (o *Buffer) dec_slice_slice_byte(p *Properties, base structPointer) error {
802 b, err := o.DecodeRawBytes(true)
803 if err != nil {
804 return err
805 }
806 v := structPointer_BytesSlice(base, p.field)
807 *v = append(*v, b)
808 return nil
809}
810
811// Decode a map field.
812func (o *Buffer) dec_new_map(p *Properties, base structPointer) error {
813 raw, err := o.DecodeRawBytes(false)
814 if err != nil {
815 return err
816 }
817 oi := o.index // index at the end of this map entry
818 o.index -= len(raw) // move buffer back to start of map entry
819
820 mptr := structPointer_NewAt(base, p.field, p.mtype) // *map[K]V
821 if mptr.Elem().IsNil() {
822 mptr.Elem().Set(reflect.MakeMap(mptr.Type().Elem()))
823 }
824 v := mptr.Elem() // map[K]V
825
826 // Prepare addressable doubly-indirect placeholders for the key and value types.
827 // See enc_new_map for why.
828 keyptr := reflect.New(reflect.PtrTo(p.mtype.Key())).Elem() // addressable *K
829 keybase := toStructPointer(keyptr.Addr()) // **K
830
831 var valbase structPointer
832 var valptr reflect.Value
833 switch p.mtype.Elem().Kind() {
834 case reflect.Slice:
835 // []byte
836 var dummy []byte
837 valptr = reflect.ValueOf(&dummy) // *[]byte
838 valbase = toStructPointer(valptr) // *[]byte
839 case reflect.Ptr:
840 // message; valptr is **Msg; need to allocate the intermediate pointer
841 valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V
842 valptr.Set(reflect.New(valptr.Type().Elem()))
843 valbase = toStructPointer(valptr)
844 default:
845 // everything else
846 valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V
847 valbase = toStructPointer(valptr.Addr()) // **V
848 }
849
850 // Decode.
851 // This parses a restricted wire format, namely the encoding of a message
852 // with two fields. See enc_new_map for the format.
853 for o.index < oi {
854 // tagcode for key and value properties are always a single byte
855 // because they have tags 1 and 2.
856 tagcode := o.buf[o.index]
857 o.index++
858 switch tagcode {
859 case p.mkeyprop.tagcode[0]:
860 if err := p.mkeyprop.dec(o, p.mkeyprop, keybase); err != nil {
861 return err
862 }
863 case p.mvalprop.tagcode[0]:
864 if err := p.mvalprop.dec(o, p.mvalprop, valbase); err != nil {
865 return err
866 }
867 default:
868 // TODO: Should we silently skip this instead?
869 return fmt.Errorf("proto: bad map data tag %d", raw[0])
870 }
871 }
872 keyelem, valelem := keyptr.Elem(), valptr.Elem()
873 if !keyelem.IsValid() {
874 keyelem = reflect.Zero(p.mtype.Key())
875 }
876 if !valelem.IsValid() {
877 valelem = reflect.Zero(p.mtype.Elem())
878 }
879
880 v.SetMapIndex(keyelem, valelem)
881 return nil
882}
883
884// Decode a group.
885func (o *Buffer) dec_struct_group(p *Properties, base structPointer) error {
886 bas := structPointer_GetStructPointer(base, p.field)
887 if structPointer_IsNil(bas) {
888 // allocate new nested message
889 bas = toStructPointer(reflect.New(p.stype))
890 structPointer_SetStructPointer(base, p.field, bas)
891 }
892 return o.unmarshalType(p.stype, p.sprop, true, bas)
893}
894
895// Decode an embedded message.
896func (o *Buffer) dec_struct_message(p *Properties, base structPointer) (err error) {
897 raw, e := o.DecodeRawBytes(false)
898 if e != nil {
899 return e
900 }
901
902 bas := structPointer_GetStructPointer(base, p.field)
903 if structPointer_IsNil(bas) {
904 // allocate new nested message
905 bas = toStructPointer(reflect.New(p.stype))
906 structPointer_SetStructPointer(base, p.field, bas)
907 }
908
909 // If the object can unmarshal itself, let it.
910 if p.isUnmarshaler {
911 iv := structPointer_Interface(bas, p.stype)
912 return iv.(Unmarshaler).Unmarshal(raw)
913 }
914
915 obuf := o.buf
916 oi := o.index
917 o.buf = raw
918 o.index = 0
919
920 err = o.unmarshalType(p.stype, p.sprop, false, bas)
921 o.buf = obuf
922 o.index = oi
923
924 return err
925}
926
927// Decode a slice of embedded messages.
928func (o *Buffer) dec_slice_struct_message(p *Properties, base structPointer) error {
929 return o.dec_slice_struct(p, false, base)
930}
931
932// Decode a slice of embedded groups.
933func (o *Buffer) dec_slice_struct_group(p *Properties, base structPointer) error {
934 return o.dec_slice_struct(p, true, base)
935}
936
937// Decode a slice of structs ([]*struct).
938func (o *Buffer) dec_slice_struct(p *Properties, is_group bool, base structPointer) error {
939 v := reflect.New(p.stype)
940 bas := toStructPointer(v)
941 structPointer_StructPointerSlice(base, p.field).Append(bas)
942
943 if is_group {
944 err := o.unmarshalType(p.stype, p.sprop, is_group, bas)
945 return err
946 }
947
948 raw, err := o.DecodeRawBytes(false)
949 if err != nil {
950 return err 413 return err
951 } 414 }
952 415
953 // If the object can unmarshal itself, let it. 416 // Slow workaround for messages that aren't Unmarshalers.
954 if p.isUnmarshaler { 417 // This includes some hand-coded .pb.go files and
955 iv := v.Interface() 418 // bootstrap protos.
956 return iv.(Unmarshaler).Unmarshal(raw) 419 // TODO: fix all of those and then add Unmarshal to
957 } 420 // the Message interface. Then:
958 421 // The cast above and code below can be deleted.
959 obuf := o.buf 422 // The old unmarshaler can be deleted.
960 oi := o.index 423 // Clients can call Unmarshal directly (can already do that, actually).
961 o.buf = raw 424 var info InternalMessageInfo
962 o.index = 0 425 err := info.Unmarshal(pb, p.buf[p.index:])
963 426 p.index = len(p.buf)
964 err = o.unmarshalType(p.stype, p.sprop, is_group, bas)
965
966 o.buf = obuf
967 o.index = oi
968
969 return err 427 return err
970} 428}
diff --git a/vendor/github.com/golang/protobuf/proto/discard.go b/vendor/github.com/golang/protobuf/proto/discard.go
index bd0e3bb..dea2617 100644
--- a/vendor/github.com/golang/protobuf/proto/discard.go
+++ b/vendor/github.com/golang/protobuf/proto/discard.go
@@ -35,8 +35,14 @@ import (
35 "fmt" 35 "fmt"
36 "reflect" 36 "reflect"
37 "strings" 37 "strings"
38 "sync"
39 "sync/atomic"
38) 40)
39 41
42type generatedDiscarder interface {
43 XXX_DiscardUnknown()
44}
45
40// DiscardUnknown recursively discards all unknown fields from this message 46// DiscardUnknown recursively discards all unknown fields from this message
41// and all embedded messages. 47// and all embedded messages.
42// 48//
@@ -49,9 +55,202 @@ import (
49// For proto2 messages, the unknown fields of message extensions are only 55// For proto2 messages, the unknown fields of message extensions are only
50// discarded from messages that have been accessed via GetExtension. 56// discarded from messages that have been accessed via GetExtension.
51func DiscardUnknown(m Message) { 57func DiscardUnknown(m Message) {
58 if m, ok := m.(generatedDiscarder); ok {
59 m.XXX_DiscardUnknown()
60 return
61 }
62 // TODO: Dynamically populate a InternalMessageInfo for legacy messages,
63 // but the master branch has no implementation for InternalMessageInfo,
64 // so it would be more work to replicate that approach.
52 discardLegacy(m) 65 discardLegacy(m)
53} 66}
54 67
68// DiscardUnknown recursively discards all unknown fields.
69func (a *InternalMessageInfo) DiscardUnknown(m Message) {
70 di := atomicLoadDiscardInfo(&a.discard)
71 if di == nil {
72 di = getDiscardInfo(reflect.TypeOf(m).Elem())
73 atomicStoreDiscardInfo(&a.discard, di)
74 }
75 di.discard(toPointer(&m))
76}
77
78type discardInfo struct {
79 typ reflect.Type
80
81 initialized int32 // 0: only typ is valid, 1: everything is valid
82 lock sync.Mutex
83
84 fields []discardFieldInfo
85 unrecognized field
86}
87
88type discardFieldInfo struct {
89 field field // Offset of field, guaranteed to be valid
90 discard func(src pointer)
91}
92
93var (
94 discardInfoMap = map[reflect.Type]*discardInfo{}
95 discardInfoLock sync.Mutex
96)
97
98func getDiscardInfo(t reflect.Type) *discardInfo {
99 discardInfoLock.Lock()
100 defer discardInfoLock.Unlock()
101 di := discardInfoMap[t]
102 if di == nil {
103 di = &discardInfo{typ: t}
104 discardInfoMap[t] = di
105 }
106 return di
107}
108
109func (di *discardInfo) discard(src pointer) {
110 if src.isNil() {
111 return // Nothing to do.
112 }
113
114 if atomic.LoadInt32(&di.initialized) == 0 {
115 di.computeDiscardInfo()
116 }
117
118 for _, fi := range di.fields {
119 sfp := src.offset(fi.field)
120 fi.discard(sfp)
121 }
122
123 // For proto2 messages, only discard unknown fields in message extensions
124 // that have been accessed via GetExtension.
125 if em, err := extendable(src.asPointerTo(di.typ).Interface()); err == nil {
126 // Ignore lock since DiscardUnknown is not concurrency safe.
127 emm, _ := em.extensionsRead()
128 for _, mx := range emm {
129 if m, ok := mx.value.(Message); ok {
130 DiscardUnknown(m)
131 }
132 }
133 }
134
135 if di.unrecognized.IsValid() {
136 *src.offset(di.unrecognized).toBytes() = nil
137 }
138}
139
140func (di *discardInfo) computeDiscardInfo() {
141 di.lock.Lock()
142 defer di.lock.Unlock()
143 if di.initialized != 0 {
144 return
145 }
146 t := di.typ
147 n := t.NumField()
148
149 for i := 0; i < n; i++ {
150 f := t.Field(i)
151 if strings.HasPrefix(f.Name, "XXX_") {
152 continue
153 }
154
155 dfi := discardFieldInfo{field: toField(&f)}
156 tf := f.Type
157
158 // Unwrap tf to get its most basic type.
159 var isPointer, isSlice bool
160 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {
161 isSlice = true
162 tf = tf.Elem()
163 }
164 if tf.Kind() == reflect.Ptr {
165 isPointer = true
166 tf = tf.Elem()
167 }
168 if isPointer && isSlice && tf.Kind() != reflect.Struct {
169 panic(fmt.Sprintf("%v.%s cannot be a slice of pointers to primitive types", t, f.Name))
170 }
171
172 switch tf.Kind() {
173 case reflect.Struct:
174 switch {
175 case !isPointer:
176 panic(fmt.Sprintf("%v.%s cannot be a direct struct value", t, f.Name))
177 case isSlice: // E.g., []*pb.T
178 di := getDiscardInfo(tf)
179 dfi.discard = func(src pointer) {
180 sps := src.getPointerSlice()
181 for _, sp := range sps {
182 if !sp.isNil() {
183 di.discard(sp)
184 }
185 }
186 }
187 default: // E.g., *pb.T
188 di := getDiscardInfo(tf)
189 dfi.discard = func(src pointer) {
190 sp := src.getPointer()
191 if !sp.isNil() {
192 di.discard(sp)
193 }
194 }
195 }
196 case reflect.Map:
197 switch {
198 case isPointer || isSlice:
199 panic(fmt.Sprintf("%v.%s cannot be a pointer to a map or a slice of map values", t, f.Name))
200 default: // E.g., map[K]V
201 if tf.Elem().Kind() == reflect.Ptr { // Proto struct (e.g., *T)
202 dfi.discard = func(src pointer) {
203 sm := src.asPointerTo(tf).Elem()
204 if sm.Len() == 0 {
205 return
206 }
207 for _, key := range sm.MapKeys() {
208 val := sm.MapIndex(key)
209 DiscardUnknown(val.Interface().(Message))
210 }
211 }
212 } else {
213 dfi.discard = func(pointer) {} // Noop
214 }
215 }
216 case reflect.Interface:
217 // Must be oneof field.
218 switch {
219 case isPointer || isSlice:
220 panic(fmt.Sprintf("%v.%s cannot be a pointer to a interface or a slice of interface values", t, f.Name))
221 default: // E.g., interface{}
222 // TODO: Make this faster?
223 dfi.discard = func(src pointer) {
224 su := src.asPointerTo(tf).Elem()
225 if !su.IsNil() {
226 sv := su.Elem().Elem().Field(0)
227 if sv.Kind() == reflect.Ptr && sv.IsNil() {
228 return
229 }
230 switch sv.Type().Kind() {
231 case reflect.Ptr: // Proto struct (e.g., *T)
232 DiscardUnknown(sv.Interface().(Message))
233 }
234 }
235 }
236 }
237 default:
238 continue
239 }
240 di.fields = append(di.fields, dfi)
241 }
242
243 di.unrecognized = invalidField
244 if f, ok := t.FieldByName("XXX_unrecognized"); ok {
245 if f.Type != reflect.TypeOf([]byte{}) {
246 panic("expected XXX_unrecognized to be of type []byte")
247 }
248 di.unrecognized = toField(&f)
249 }
250
251 atomic.StoreInt32(&di.initialized, 1)
252}
253
55func discardLegacy(m Message) { 254func discardLegacy(m Message) {
56 v := reflect.ValueOf(m) 255 v := reflect.ValueOf(m)
57 if v.Kind() != reflect.Ptr || v.IsNil() { 256 if v.Kind() != reflect.Ptr || v.IsNil() {
@@ -139,7 +338,7 @@ func discardLegacy(m Message) {
139 338
140 // For proto2 messages, only discard unknown fields in message extensions 339 // For proto2 messages, only discard unknown fields in message extensions
141 // that have been accessed via GetExtension. 340 // that have been accessed via GetExtension.
142 if em, ok := extendable(m); ok { 341 if em, err := extendable(m); err == nil {
143 // Ignore lock since discardLegacy is not concurrency safe. 342 // Ignore lock since discardLegacy is not concurrency safe.
144 emm, _ := em.extensionsRead() 343 emm, _ := em.extensionsRead()
145 for _, mx := range emm { 344 for _, mx := range emm {
diff --git a/vendor/github.com/golang/protobuf/proto/encode.go b/vendor/github.com/golang/protobuf/proto/encode.go
index 8b84d1b..3abfed2 100644
--- a/vendor/github.com/golang/protobuf/proto/encode.go
+++ b/vendor/github.com/golang/protobuf/proto/encode.go
@@ -37,28 +37,9 @@ package proto
37 37
38import ( 38import (
39 "errors" 39 "errors"
40 "fmt"
41 "reflect" 40 "reflect"
42 "sort"
43) 41)
44 42
45// RequiredNotSetError is the error returned if Marshal is called with
46// a protocol buffer struct whose required fields have not
47// all been initialized. It is also the error returned if Unmarshal is
48// called with an encoded protocol buffer that does not include all the
49// required fields.
50//
51// When printed, RequiredNotSetError reports the first unset required field in a
52// message. If the field cannot be precisely determined, it is reported as
53// "{Unknown}".
54type RequiredNotSetError struct {
55 field string
56}
57
58func (e *RequiredNotSetError) Error() string {
59 return fmt.Sprintf("proto: required field %q not set", e.field)
60}
61
62var ( 43var (
63 // errRepeatedHasNil is the error returned if Marshal is called with 44 // errRepeatedHasNil is the error returned if Marshal is called with
64 // a struct with a repeated field containing a nil element. 45 // a struct with a repeated field containing a nil element.
@@ -82,10 +63,6 @@ var (
82 63
83const maxVarintBytes = 10 // maximum length of a varint 64const maxVarintBytes = 10 // maximum length of a varint
84 65
85// maxMarshalSize is the largest allowed size of an encoded protobuf,
86// since C++ and Java use signed int32s for the size.
87const maxMarshalSize = 1<<31 - 1
88
89// EncodeVarint returns the varint encoding of x. 66// EncodeVarint returns the varint encoding of x.
90// This is the format for the 67// This is the format for the
91// int32, int64, uint32, uint64, bool, and enum 68// int32, int64, uint32, uint64, bool, and enum
@@ -119,18 +96,27 @@ func (p *Buffer) EncodeVarint(x uint64) error {
119 96
120// SizeVarint returns the varint encoding size of an integer. 97// SizeVarint returns the varint encoding size of an integer.
121func SizeVarint(x uint64) int { 98func SizeVarint(x uint64) int {
122 return sizeVarint(x) 99 switch {
123} 100 case x < 1<<7:
124 101 return 1
125func sizeVarint(x uint64) (n int) { 102 case x < 1<<14:
126 for { 103 return 2
127 n++ 104 case x < 1<<21:
128 x >>= 7 105 return 3
129 if x == 0 { 106 case x < 1<<28:
130 break 107 return 4
131 } 108 case x < 1<<35:
132 } 109 return 5
133 return n 110 case x < 1<<42:
111 return 6
112 case x < 1<<49:
113 return 7
114 case x < 1<<56:
115 return 8
116 case x < 1<<63:
117 return 9
118 }
119 return 10
134} 120}
135 121
136// EncodeFixed64 writes a 64-bit integer to the Buffer. 122// EncodeFixed64 writes a 64-bit integer to the Buffer.
@@ -149,10 +135,6 @@ func (p *Buffer) EncodeFixed64(x uint64) error {
149 return nil 135 return nil
150} 136}
151 137
152func sizeFixed64(x uint64) int {
153 return 8
154}
155
156// EncodeFixed32 writes a 32-bit integer to the Buffer. 138// EncodeFixed32 writes a 32-bit integer to the Buffer.
157// This is the format for the 139// This is the format for the
158// fixed32, sfixed32, and float protocol buffer types. 140// fixed32, sfixed32, and float protocol buffer types.
@@ -165,20 +147,12 @@ func (p *Buffer) EncodeFixed32(x uint64) error {
165 return nil 147 return nil
166} 148}
167 149
168func sizeFixed32(x uint64) int {
169 return 4
170}
171
172// EncodeZigzag64 writes a zigzag-encoded 64-bit integer 150// EncodeZigzag64 writes a zigzag-encoded 64-bit integer
173// to the Buffer. 151// to the Buffer.
174// This is the format used for the sint64 protocol buffer type. 152// This is the format used for the sint64 protocol buffer type.
175func (p *Buffer) EncodeZigzag64(x uint64) error { 153func (p *Buffer) EncodeZigzag64(x uint64) error {
176 // use signed number to get arithmetic right shift. 154 // use signed number to get arithmetic right shift.
177 return p.EncodeVarint((x << 1) ^ uint64((int64(x) >> 63))) 155 return p.EncodeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63))))
178}
179
180func sizeZigzag64(x uint64) int {
181 return sizeVarint((x << 1) ^ uint64((int64(x) >> 63)))
182} 156}
183 157
184// EncodeZigzag32 writes a zigzag-encoded 32-bit integer 158// EncodeZigzag32 writes a zigzag-encoded 32-bit integer
@@ -189,10 +163,6 @@ func (p *Buffer) EncodeZigzag32(x uint64) error {
189 return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) 163 return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31))))
190} 164}
191 165
192func sizeZigzag32(x uint64) int {
193 return sizeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31))))
194}
195
196// EncodeRawBytes writes a count-delimited byte buffer to the Buffer. 166// EncodeRawBytes writes a count-delimited byte buffer to the Buffer.
197// This is the format used for the bytes protocol buffer 167// This is the format used for the bytes protocol buffer
198// type and for embedded messages. 168// type and for embedded messages.
@@ -202,11 +172,6 @@ func (p *Buffer) EncodeRawBytes(b []byte) error {
202 return nil 172 return nil
203} 173}
204 174
205func sizeRawBytes(b []byte) int {
206 return sizeVarint(uint64(len(b))) +
207 len(b)
208}
209
210// EncodeStringBytes writes an encoded string to the Buffer. 175// EncodeStringBytes writes an encoded string to the Buffer.
211// This is the format used for the proto2 string type. 176// This is the format used for the proto2 string type.
212func (p *Buffer) EncodeStringBytes(s string) error { 177func (p *Buffer) EncodeStringBytes(s string) error {
@@ -215,319 +180,17 @@ func (p *Buffer) EncodeStringBytes(s string) error {
215 return nil 180 return nil
216} 181}
217 182
218func sizeStringBytes(s string) int {
219 return sizeVarint(uint64(len(s))) +
220 len(s)
221}
222
223// Marshaler is the interface representing objects that can marshal themselves. 183// Marshaler is the interface representing objects that can marshal themselves.
224type Marshaler interface { 184type Marshaler interface {
225 Marshal() ([]byte, error) 185 Marshal() ([]byte, error)
226} 186}
227 187
228// Marshal takes the protocol buffer
229// and encodes it into the wire format, returning the data.
230func Marshal(pb Message) ([]byte, error) {
231 // Can the object marshal itself?
232 if m, ok := pb.(Marshaler); ok {
233 return m.Marshal()
234 }
235 p := NewBuffer(nil)
236 err := p.Marshal(pb)
237 if p.buf == nil && err == nil {
238 // Return a non-nil slice on success.
239 return []byte{}, nil
240 }
241 return p.buf, err
242}
243
244// EncodeMessage writes the protocol buffer to the Buffer, 188// EncodeMessage writes the protocol buffer to the Buffer,
245// prefixed by a varint-encoded length. 189// prefixed by a varint-encoded length.
246func (p *Buffer) EncodeMessage(pb Message) error { 190func (p *Buffer) EncodeMessage(pb Message) error {
247 t, base, err := getbase(pb) 191 siz := Size(pb)
248 if structPointer_IsNil(base) { 192 p.EncodeVarint(uint64(siz))
249 return ErrNil 193 return p.Marshal(pb)
250 }
251 if err == nil {
252 var state errorState
253 err = p.enc_len_struct(GetProperties(t.Elem()), base, &state)
254 }
255 return err
256}
257
258// Marshal takes the protocol buffer
259// and encodes it into the wire format, writing the result to the
260// Buffer.
261func (p *Buffer) Marshal(pb Message) error {
262 // Can the object marshal itself?
263 if m, ok := pb.(Marshaler); ok {
264 data, err := m.Marshal()
265 p.buf = append(p.buf, data...)
266 return err
267 }
268
269 t, base, err := getbase(pb)
270 if structPointer_IsNil(base) {
271 return ErrNil
272 }
273 if err == nil {
274 err = p.enc_struct(GetProperties(t.Elem()), base)
275 }
276
277 if collectStats {
278 (stats).Encode++ // Parens are to work around a goimports bug.
279 }
280
281 if len(p.buf) > maxMarshalSize {
282 return ErrTooLarge
283 }
284 return err
285}
286
287// Size returns the encoded size of a protocol buffer.
288func Size(pb Message) (n int) {
289 // Can the object marshal itself? If so, Size is slow.
290 // TODO: add Size to Marshaler, or add a Sizer interface.
291 if m, ok := pb.(Marshaler); ok {
292 b, _ := m.Marshal()
293 return len(b)
294 }
295
296 t, base, err := getbase(pb)
297 if structPointer_IsNil(base) {
298 return 0
299 }
300 if err == nil {
301 n = size_struct(GetProperties(t.Elem()), base)
302 }
303
304 if collectStats {
305 (stats).Size++ // Parens are to work around a goimports bug.
306 }
307
308 return
309}
310
311// Individual type encoders.
312
313// Encode a bool.
314func (o *Buffer) enc_bool(p *Properties, base structPointer) error {
315 v := *structPointer_Bool(base, p.field)
316 if v == nil {
317 return ErrNil
318 }
319 x := 0
320 if *v {
321 x = 1
322 }
323 o.buf = append(o.buf, p.tagcode...)
324 p.valEnc(o, uint64(x))
325 return nil
326}
327
328func (o *Buffer) enc_proto3_bool(p *Properties, base structPointer) error {
329 v := *structPointer_BoolVal(base, p.field)
330 if !v {
331 return ErrNil
332 }
333 o.buf = append(o.buf, p.tagcode...)
334 p.valEnc(o, 1)
335 return nil
336}
337
338func size_bool(p *Properties, base structPointer) int {
339 v := *structPointer_Bool(base, p.field)
340 if v == nil {
341 return 0
342 }
343 return len(p.tagcode) + 1 // each bool takes exactly one byte
344}
345
346func size_proto3_bool(p *Properties, base structPointer) int {
347 v := *structPointer_BoolVal(base, p.field)
348 if !v && !p.oneof {
349 return 0
350 }
351 return len(p.tagcode) + 1 // each bool takes exactly one byte
352}
353
354// Encode an int32.
355func (o *Buffer) enc_int32(p *Properties, base structPointer) error {
356 v := structPointer_Word32(base, p.field)
357 if word32_IsNil(v) {
358 return ErrNil
359 }
360 x := int32(word32_Get(v)) // permit sign extension to use full 64-bit range
361 o.buf = append(o.buf, p.tagcode...)
362 p.valEnc(o, uint64(x))
363 return nil
364}
365
366func (o *Buffer) enc_proto3_int32(p *Properties, base structPointer) error {
367 v := structPointer_Word32Val(base, p.field)
368 x := int32(word32Val_Get(v)) // permit sign extension to use full 64-bit range
369 if x == 0 {
370 return ErrNil
371 }
372 o.buf = append(o.buf, p.tagcode...)
373 p.valEnc(o, uint64(x))
374 return nil
375}
376
377func size_int32(p *Properties, base structPointer) (n int) {
378 v := structPointer_Word32(base, p.field)
379 if word32_IsNil(v) {
380 return 0
381 }
382 x := int32(word32_Get(v)) // permit sign extension to use full 64-bit range
383 n += len(p.tagcode)
384 n += p.valSize(uint64(x))
385 return
386}
387
388func size_proto3_int32(p *Properties, base structPointer) (n int) {
389 v := structPointer_Word32Val(base, p.field)
390 x := int32(word32Val_Get(v)) // permit sign extension to use full 64-bit range
391 if x == 0 && !p.oneof {
392 return 0
393 }
394 n += len(p.tagcode)
395 n += p.valSize(uint64(x))
396 return
397}
398
399// Encode a uint32.
400// Exactly the same as int32, except for no sign extension.
401func (o *Buffer) enc_uint32(p *Properties, base structPointer) error {
402 v := structPointer_Word32(base, p.field)
403 if word32_IsNil(v) {
404 return ErrNil
405 }
406 x := word32_Get(v)
407 o.buf = append(o.buf, p.tagcode...)
408 p.valEnc(o, uint64(x))
409 return nil
410}
411
412func (o *Buffer) enc_proto3_uint32(p *Properties, base structPointer) error {
413 v := structPointer_Word32Val(base, p.field)
414 x := word32Val_Get(v)
415 if x == 0 {
416 return ErrNil
417 }
418 o.buf = append(o.buf, p.tagcode...)
419 p.valEnc(o, uint64(x))
420 return nil
421}
422
423func size_uint32(p *Properties, base structPointer) (n int) {
424 v := structPointer_Word32(base, p.field)
425 if word32_IsNil(v) {
426 return 0
427 }
428 x := word32_Get(v)
429 n += len(p.tagcode)
430 n += p.valSize(uint64(x))
431 return
432}
433
434func size_proto3_uint32(p *Properties, base structPointer) (n int) {
435 v := structPointer_Word32Val(base, p.field)
436 x := word32Val_Get(v)
437 if x == 0 && !p.oneof {
438 return 0
439 }
440 n += len(p.tagcode)
441 n += p.valSize(uint64(x))
442 return
443}
444
445// Encode an int64.
446func (o *Buffer) enc_int64(p *Properties, base structPointer) error {
447 v := structPointer_Word64(base, p.field)
448 if word64_IsNil(v) {
449 return ErrNil
450 }
451 x := word64_Get(v)
452 o.buf = append(o.buf, p.tagcode...)
453 p.valEnc(o, x)
454 return nil
455}
456
457func (o *Buffer) enc_proto3_int64(p *Properties, base structPointer) error {
458 v := structPointer_Word64Val(base, p.field)
459 x := word64Val_Get(v)
460 if x == 0 {
461 return ErrNil
462 }
463 o.buf = append(o.buf, p.tagcode...)
464 p.valEnc(o, x)
465 return nil
466}
467
468func size_int64(p *Properties, base structPointer) (n int) {
469 v := structPointer_Word64(base, p.field)
470 if word64_IsNil(v) {
471 return 0
472 }
473 x := word64_Get(v)
474 n += len(p.tagcode)
475 n += p.valSize(x)
476 return
477}
478
479func size_proto3_int64(p *Properties, base structPointer) (n int) {
480 v := structPointer_Word64Val(base, p.field)
481 x := word64Val_Get(v)
482 if x == 0 && !p.oneof {
483 return 0
484 }
485 n += len(p.tagcode)
486 n += p.valSize(x)
487 return
488}
489
490// Encode a string.
491func (o *Buffer) enc_string(p *Properties, base structPointer) error {
492 v := *structPointer_String(base, p.field)
493 if v == nil {
494 return ErrNil
495 }
496 x := *v
497 o.buf = append(o.buf, p.tagcode...)
498 o.EncodeStringBytes(x)
499 return nil
500}
501
502func (o *Buffer) enc_proto3_string(p *Properties, base structPointer) error {
503 v := *structPointer_StringVal(base, p.field)
504 if v == "" {
505 return ErrNil
506 }
507 o.buf = append(o.buf, p.tagcode...)
508 o.EncodeStringBytes(v)
509 return nil
510}
511
512func size_string(p *Properties, base structPointer) (n int) {
513 v := *structPointer_String(base, p.field)
514 if v == nil {
515 return 0
516 }
517 x := *v
518 n += len(p.tagcode)
519 n += sizeStringBytes(x)
520 return
521}
522
523func size_proto3_string(p *Properties, base structPointer) (n int) {
524 v := *structPointer_StringVal(base, p.field)
525 if v == "" && !p.oneof {
526 return 0
527 }
528 n += len(p.tagcode)
529 n += sizeStringBytes(v)
530 return
531} 194}
532 195
533// All protocol buffer fields are nillable, but be careful. 196// All protocol buffer fields are nillable, but be careful.
@@ -538,825 +201,3 @@ func isNil(v reflect.Value) bool {
538 } 201 }
539 return false 202 return false
540} 203}
541
542// Encode a message struct.
543func (o *Buffer) enc_struct_message(p *Properties, base structPointer) error {
544 var state errorState
545 structp := structPointer_GetStructPointer(base, p.field)
546 if structPointer_IsNil(structp) {
547 return ErrNil
548 }
549
550 // Can the object marshal itself?
551 if p.isMarshaler {
552 m := structPointer_Interface(structp, p.stype).(Marshaler)
553 data, err := m.Marshal()
554 if err != nil && !state.shouldContinue(err, nil) {
555 return err
556 }
557 o.buf = append(o.buf, p.tagcode...)
558 o.EncodeRawBytes(data)
559 return state.err
560 }
561
562 o.buf = append(o.buf, p.tagcode...)
563 return o.enc_len_struct(p.sprop, structp, &state)
564}
565
566func size_struct_message(p *Properties, base structPointer) int {
567 structp := structPointer_GetStructPointer(base, p.field)
568 if structPointer_IsNil(structp) {
569 return 0
570 }
571
572 // Can the object marshal itself?
573 if p.isMarshaler {
574 m := structPointer_Interface(structp, p.stype).(Marshaler)
575 data, _ := m.Marshal()
576 n0 := len(p.tagcode)
577 n1 := sizeRawBytes(data)
578 return n0 + n1
579 }
580
581 n0 := len(p.tagcode)
582 n1 := size_struct(p.sprop, structp)
583 n2 := sizeVarint(uint64(n1)) // size of encoded length
584 return n0 + n1 + n2
585}
586
587// Encode a group struct.
588func (o *Buffer) enc_struct_group(p *Properties, base structPointer) error {
589 var state errorState
590 b := structPointer_GetStructPointer(base, p.field)
591 if structPointer_IsNil(b) {
592 return ErrNil
593 }
594
595 o.EncodeVarint(uint64((p.Tag << 3) | WireStartGroup))
596 err := o.enc_struct(p.sprop, b)
597 if err != nil && !state.shouldContinue(err, nil) {
598 return err
599 }
600 o.EncodeVarint(uint64((p.Tag << 3) | WireEndGroup))
601 return state.err
602}
603
604func size_struct_group(p *Properties, base structPointer) (n int) {
605 b := structPointer_GetStructPointer(base, p.field)
606 if structPointer_IsNil(b) {
607 return 0
608 }
609
610 n += sizeVarint(uint64((p.Tag << 3) | WireStartGroup))
611 n += size_struct(p.sprop, b)
612 n += sizeVarint(uint64((p.Tag << 3) | WireEndGroup))
613 return
614}
615
616// Encode a slice of bools ([]bool).
617func (o *Buffer) enc_slice_bool(p *Properties, base structPointer) error {
618 s := *structPointer_BoolSlice(base, p.field)
619 l := len(s)
620 if l == 0 {
621 return ErrNil
622 }
623 for _, x := range s {
624 o.buf = append(o.buf, p.tagcode...)
625 v := uint64(0)
626 if x {
627 v = 1
628 }
629 p.valEnc(o, v)
630 }
631 return nil
632}
633
634func size_slice_bool(p *Properties, base structPointer) int {
635 s := *structPointer_BoolSlice(base, p.field)
636 l := len(s)
637 if l == 0 {
638 return 0
639 }
640 return l * (len(p.tagcode) + 1) // each bool takes exactly one byte
641}
642
643// Encode a slice of bools ([]bool) in packed format.
644func (o *Buffer) enc_slice_packed_bool(p *Properties, base structPointer) error {
645 s := *structPointer_BoolSlice(base, p.field)
646 l := len(s)
647 if l == 0 {
648 return ErrNil
649 }
650 o.buf = append(o.buf, p.tagcode...)
651 o.EncodeVarint(uint64(l)) // each bool takes exactly one byte
652 for _, x := range s {
653 v := uint64(0)
654 if x {
655 v = 1
656 }
657 p.valEnc(o, v)
658 }
659 return nil
660}
661
662func size_slice_packed_bool(p *Properties, base structPointer) (n int) {
663 s := *structPointer_BoolSlice(base, p.field)
664 l := len(s)
665 if l == 0 {
666 return 0
667 }
668 n += len(p.tagcode)
669 n += sizeVarint(uint64(l))
670 n += l // each bool takes exactly one byte
671 return
672}
673
674// Encode a slice of bytes ([]byte).
675func (o *Buffer) enc_slice_byte(p *Properties, base structPointer) error {
676 s := *structPointer_Bytes(base, p.field)
677 if s == nil {
678 return ErrNil
679 }
680 o.buf = append(o.buf, p.tagcode...)
681 o.EncodeRawBytes(s)
682 return nil
683}
684
685func (o *Buffer) enc_proto3_slice_byte(p *Properties, base structPointer) error {
686 s := *structPointer_Bytes(base, p.field)
687 if len(s) == 0 {
688 return ErrNil
689 }
690 o.buf = append(o.buf, p.tagcode...)
691 o.EncodeRawBytes(s)
692 return nil
693}
694
695func size_slice_byte(p *Properties, base structPointer) (n int) {
696 s := *structPointer_Bytes(base, p.field)
697 if s == nil && !p.oneof {
698 return 0
699 }
700 n += len(p.tagcode)
701 n += sizeRawBytes(s)
702 return
703}
704
705func size_proto3_slice_byte(p *Properties, base structPointer) (n int) {
706 s := *structPointer_Bytes(base, p.field)
707 if len(s) == 0 && !p.oneof {
708 return 0
709 }
710 n += len(p.tagcode)
711 n += sizeRawBytes(s)
712 return
713}
714
715// Encode a slice of int32s ([]int32).
716func (o *Buffer) enc_slice_int32(p *Properties, base structPointer) error {
717 s := structPointer_Word32Slice(base, p.field)
718 l := s.Len()
719 if l == 0 {
720 return ErrNil
721 }
722 for i := 0; i < l; i++ {
723 o.buf = append(o.buf, p.tagcode...)
724 x := int32(s.Index(i)) // permit sign extension to use full 64-bit range
725 p.valEnc(o, uint64(x))
726 }
727 return nil
728}
729
730func size_slice_int32(p *Properties, base structPointer) (n int) {
731 s := structPointer_Word32Slice(base, p.field)
732 l := s.Len()
733 if l == 0 {
734 return 0
735 }
736 for i := 0; i < l; i++ {
737 n += len(p.tagcode)
738 x := int32(s.Index(i)) // permit sign extension to use full 64-bit range
739 n += p.valSize(uint64(x))
740 }
741 return
742}
743
744// Encode a slice of int32s ([]int32) in packed format.
745func (o *Buffer) enc_slice_packed_int32(p *Properties, base structPointer) error {
746 s := structPointer_Word32Slice(base, p.field)
747 l := s.Len()
748 if l == 0 {
749 return ErrNil
750 }
751 // TODO: Reuse a Buffer.
752 buf := NewBuffer(nil)
753 for i := 0; i < l; i++ {
754 x := int32(s.Index(i)) // permit sign extension to use full 64-bit range
755 p.valEnc(buf, uint64(x))
756 }
757
758 o.buf = append(o.buf, p.tagcode...)
759 o.EncodeVarint(uint64(len(buf.buf)))
760 o.buf = append(o.buf, buf.buf...)
761 return nil
762}
763
764func size_slice_packed_int32(p *Properties, base structPointer) (n int) {
765 s := structPointer_Word32Slice(base, p.field)
766 l := s.Len()
767 if l == 0 {
768 return 0
769 }
770 var bufSize int
771 for i := 0; i < l; i++ {
772 x := int32(s.Index(i)) // permit sign extension to use full 64-bit range
773 bufSize += p.valSize(uint64(x))
774 }
775
776 n += len(p.tagcode)
777 n += sizeVarint(uint64(bufSize))
778 n += bufSize
779 return
780}
781
782// Encode a slice of uint32s ([]uint32).
783// Exactly the same as int32, except for no sign extension.
784func (o *Buffer) enc_slice_uint32(p *Properties, base structPointer) error {
785 s := structPointer_Word32Slice(base, p.field)
786 l := s.Len()
787 if l == 0 {
788 return ErrNil
789 }
790 for i := 0; i < l; i++ {
791 o.buf = append(o.buf, p.tagcode...)
792 x := s.Index(i)
793 p.valEnc(o, uint64(x))
794 }
795 return nil
796}
797
798func size_slice_uint32(p *Properties, base structPointer) (n int) {
799 s := structPointer_Word32Slice(base, p.field)
800 l := s.Len()
801 if l == 0 {
802 return 0
803 }
804 for i := 0; i < l; i++ {
805 n += len(p.tagcode)
806 x := s.Index(i)
807 n += p.valSize(uint64(x))
808 }
809 return
810}
811
812// Encode a slice of uint32s ([]uint32) in packed format.
813// Exactly the same as int32, except for no sign extension.
814func (o *Buffer) enc_slice_packed_uint32(p *Properties, base structPointer) error {
815 s := structPointer_Word32Slice(base, p.field)
816 l := s.Len()
817 if l == 0 {
818 return ErrNil
819 }
820 // TODO: Reuse a Buffer.
821 buf := NewBuffer(nil)
822 for i := 0; i < l; i++ {
823 p.valEnc(buf, uint64(s.Index(i)))
824 }
825
826 o.buf = append(o.buf, p.tagcode...)
827 o.EncodeVarint(uint64(len(buf.buf)))
828 o.buf = append(o.buf, buf.buf...)
829 return nil
830}
831
832func size_slice_packed_uint32(p *Properties, base structPointer) (n int) {
833 s := structPointer_Word32Slice(base, p.field)
834 l := s.Len()
835 if l == 0 {
836 return 0
837 }
838 var bufSize int
839 for i := 0; i < l; i++ {
840 bufSize += p.valSize(uint64(s.Index(i)))
841 }
842
843 n += len(p.tagcode)
844 n += sizeVarint(uint64(bufSize))
845 n += bufSize
846 return
847}
848
849// Encode a slice of int64s ([]int64).
850func (o *Buffer) enc_slice_int64(p *Properties, base structPointer) error {
851 s := structPointer_Word64Slice(base, p.field)
852 l := s.Len()
853 if l == 0 {
854 return ErrNil
855 }
856 for i := 0; i < l; i++ {
857 o.buf = append(o.buf, p.tagcode...)
858 p.valEnc(o, s.Index(i))
859 }
860 return nil
861}
862
863func size_slice_int64(p *Properties, base structPointer) (n int) {
864 s := structPointer_Word64Slice(base, p.field)
865 l := s.Len()
866 if l == 0 {
867 return 0
868 }
869 for i := 0; i < l; i++ {
870 n += len(p.tagcode)
871 n += p.valSize(s.Index(i))
872 }
873 return
874}
875
876// Encode a slice of int64s ([]int64) in packed format.
877func (o *Buffer) enc_slice_packed_int64(p *Properties, base structPointer) error {
878 s := structPointer_Word64Slice(base, p.field)
879 l := s.Len()
880 if l == 0 {
881 return ErrNil
882 }
883 // TODO: Reuse a Buffer.
884 buf := NewBuffer(nil)
885 for i := 0; i < l; i++ {
886 p.valEnc(buf, s.Index(i))
887 }
888
889 o.buf = append(o.buf, p.tagcode...)
890 o.EncodeVarint(uint64(len(buf.buf)))
891 o.buf = append(o.buf, buf.buf...)
892 return nil
893}
894
895func size_slice_packed_int64(p *Properties, base structPointer) (n int) {
896 s := structPointer_Word64Slice(base, p.field)
897 l := s.Len()
898 if l == 0 {
899 return 0
900 }
901 var bufSize int
902 for i := 0; i < l; i++ {
903 bufSize += p.valSize(s.Index(i))
904 }
905
906 n += len(p.tagcode)
907 n += sizeVarint(uint64(bufSize))
908 n += bufSize
909 return
910}
911
912// Encode a slice of slice of bytes ([][]byte).
913func (o *Buffer) enc_slice_slice_byte(p *Properties, base structPointer) error {
914 ss := *structPointer_BytesSlice(base, p.field)
915 l := len(ss)
916 if l == 0 {
917 return ErrNil
918 }
919 for i := 0; i < l; i++ {
920 o.buf = append(o.buf, p.tagcode...)
921 o.EncodeRawBytes(ss[i])
922 }
923 return nil
924}
925
926func size_slice_slice_byte(p *Properties, base structPointer) (n int) {
927 ss := *structPointer_BytesSlice(base, p.field)
928 l := len(ss)
929 if l == 0 {
930 return 0
931 }
932 n += l * len(p.tagcode)
933 for i := 0; i < l; i++ {
934 n += sizeRawBytes(ss[i])
935 }
936 return
937}
938
939// Encode a slice of strings ([]string).
940func (o *Buffer) enc_slice_string(p *Properties, base structPointer) error {
941 ss := *structPointer_StringSlice(base, p.field)
942 l := len(ss)
943 for i := 0; i < l; i++ {
944 o.buf = append(o.buf, p.tagcode...)
945 o.EncodeStringBytes(ss[i])
946 }
947 return nil
948}
949
950func size_slice_string(p *Properties, base structPointer) (n int) {
951 ss := *structPointer_StringSlice(base, p.field)
952 l := len(ss)
953 n += l * len(p.tagcode)
954 for i := 0; i < l; i++ {
955 n += sizeStringBytes(ss[i])
956 }
957 return
958}
959
960// Encode a slice of message structs ([]*struct).
961func (o *Buffer) enc_slice_struct_message(p *Properties, base structPointer) error {
962 var state errorState
963 s := structPointer_StructPointerSlice(base, p.field)
964 l := s.Len()
965
966 for i := 0; i < l; i++ {
967 structp := s.Index(i)
968 if structPointer_IsNil(structp) {
969 return errRepeatedHasNil
970 }
971
972 // Can the object marshal itself?
973 if p.isMarshaler {
974 m := structPointer_Interface(structp, p.stype).(Marshaler)
975 data, err := m.Marshal()
976 if err != nil && !state.shouldContinue(err, nil) {
977 return err
978 }
979 o.buf = append(o.buf, p.tagcode...)
980 o.EncodeRawBytes(data)
981 continue
982 }
983
984 o.buf = append(o.buf, p.tagcode...)
985 err := o.enc_len_struct(p.sprop, structp, &state)
986 if err != nil && !state.shouldContinue(err, nil) {
987 if err == ErrNil {
988 return errRepeatedHasNil
989 }
990 return err
991 }
992 }
993 return state.err
994}
995
996func size_slice_struct_message(p *Properties, base structPointer) (n int) {
997 s := structPointer_StructPointerSlice(base, p.field)
998 l := s.Len()
999 n += l * len(p.tagcode)
1000 for i := 0; i < l; i++ {
1001 structp := s.Index(i)
1002 if structPointer_IsNil(structp) {
1003 return // return the size up to this point
1004 }
1005
1006 // Can the object marshal itself?
1007 if p.isMarshaler {
1008 m := structPointer_Interface(structp, p.stype).(Marshaler)
1009 data, _ := m.Marshal()
1010 n += sizeRawBytes(data)
1011 continue
1012 }
1013
1014 n0 := size_struct(p.sprop, structp)
1015 n1 := sizeVarint(uint64(n0)) // size of encoded length
1016 n += n0 + n1
1017 }
1018 return
1019}
1020
1021// Encode a slice of group structs ([]*struct).
1022func (o *Buffer) enc_slice_struct_group(p *Properties, base structPointer) error {
1023 var state errorState
1024 s := structPointer_StructPointerSlice(base, p.field)
1025 l := s.Len()
1026
1027 for i := 0; i < l; i++ {
1028 b := s.Index(i)
1029 if structPointer_IsNil(b) {
1030 return errRepeatedHasNil
1031 }
1032
1033 o.EncodeVarint(uint64((p.Tag << 3) | WireStartGroup))
1034
1035 err := o.enc_struct(p.sprop, b)
1036
1037 if err != nil && !state.shouldContinue(err, nil) {
1038 if err == ErrNil {
1039 return errRepeatedHasNil
1040 }
1041 return err
1042 }
1043
1044 o.EncodeVarint(uint64((p.Tag << 3) | WireEndGroup))
1045 }
1046 return state.err
1047}
1048
1049func size_slice_struct_group(p *Properties, base structPointer) (n int) {
1050 s := structPointer_StructPointerSlice(base, p.field)
1051 l := s.Len()
1052
1053 n += l * sizeVarint(uint64((p.Tag<<3)|WireStartGroup))
1054 n += l * sizeVarint(uint64((p.Tag<<3)|WireEndGroup))
1055 for i := 0; i < l; i++ {
1056 b := s.Index(i)
1057 if structPointer_IsNil(b) {
1058 return // return size up to this point
1059 }
1060
1061 n += size_struct(p.sprop, b)
1062 }
1063 return
1064}
1065
1066// Encode an extension map.
1067func (o *Buffer) enc_map(p *Properties, base structPointer) error {
1068 exts := structPointer_ExtMap(base, p.field)
1069 if err := encodeExtensionsMap(*exts); err != nil {
1070 return err
1071 }
1072
1073 return o.enc_map_body(*exts)
1074}
1075
1076func (o *Buffer) enc_exts(p *Properties, base structPointer) error {
1077 exts := structPointer_Extensions(base, p.field)
1078
1079 v, mu := exts.extensionsRead()
1080 if v == nil {
1081 return nil
1082 }
1083
1084 mu.Lock()
1085 defer mu.Unlock()
1086 if err := encodeExtensionsMap(v); err != nil {
1087 return err
1088 }
1089
1090 return o.enc_map_body(v)
1091}
1092
1093func (o *Buffer) enc_map_body(v map[int32]Extension) error {
1094 // Fast-path for common cases: zero or one extensions.
1095 if len(v) <= 1 {
1096 for _, e := range v {
1097 o.buf = append(o.buf, e.enc...)
1098 }
1099 return nil
1100 }
1101
1102 // Sort keys to provide a deterministic encoding.
1103 keys := make([]int, 0, len(v))
1104 for k := range v {
1105 keys = append(keys, int(k))
1106 }
1107 sort.Ints(keys)
1108
1109 for _, k := range keys {
1110 o.buf = append(o.buf, v[int32(k)].enc...)
1111 }
1112 return nil
1113}
1114
1115func size_map(p *Properties, base structPointer) int {
1116 v := structPointer_ExtMap(base, p.field)
1117 return extensionsMapSize(*v)
1118}
1119
1120func size_exts(p *Properties, base structPointer) int {
1121 v := structPointer_Extensions(base, p.field)
1122 return extensionsSize(v)
1123}
1124
1125// Encode a map field.
1126func (o *Buffer) enc_new_map(p *Properties, base structPointer) error {
1127 var state errorState // XXX: or do we need to plumb this through?
1128
1129 /*
1130 A map defined as
1131 map<key_type, value_type> map_field = N;
1132 is encoded in the same way as
1133 message MapFieldEntry {
1134 key_type key = 1;
1135 value_type value = 2;
1136 }
1137 repeated MapFieldEntry map_field = N;
1138 */
1139
1140 v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V
1141 if v.Len() == 0 {
1142 return nil
1143 }
1144
1145 keycopy, valcopy, keybase, valbase := mapEncodeScratch(p.mtype)
1146
1147 enc := func() error {
1148 if err := p.mkeyprop.enc(o, p.mkeyprop, keybase); err != nil {
1149 return err
1150 }
1151 if err := p.mvalprop.enc(o, p.mvalprop, valbase); err != nil && err != ErrNil {
1152 return err
1153 }
1154 return nil
1155 }
1156
1157 // Don't sort map keys. It is not required by the spec, and C++ doesn't do it.
1158 for _, key := range v.MapKeys() {
1159 val := v.MapIndex(key)
1160
1161 keycopy.Set(key)
1162 valcopy.Set(val)
1163
1164 o.buf = append(o.buf, p.tagcode...)
1165 if err := o.enc_len_thing(enc, &state); err != nil {
1166 return err
1167 }
1168 }
1169 return nil
1170}
1171
1172func size_new_map(p *Properties, base structPointer) int {
1173 v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V
1174
1175 keycopy, valcopy, keybase, valbase := mapEncodeScratch(p.mtype)
1176
1177 n := 0
1178 for _, key := range v.MapKeys() {
1179 val := v.MapIndex(key)
1180 keycopy.Set(key)
1181 valcopy.Set(val)
1182
1183 // Tag codes for key and val are the responsibility of the sub-sizer.
1184 keysize := p.mkeyprop.size(p.mkeyprop, keybase)
1185 valsize := p.mvalprop.size(p.mvalprop, valbase)
1186 entry := keysize + valsize
1187 // Add on tag code and length of map entry itself.
1188 n += len(p.tagcode) + sizeVarint(uint64(entry)) + entry
1189 }
1190 return n
1191}
1192
1193// mapEncodeScratch returns a new reflect.Value matching the map's value type,
1194// and a structPointer suitable for passing to an encoder or sizer.
1195func mapEncodeScratch(mapType reflect.Type) (keycopy, valcopy reflect.Value, keybase, valbase structPointer) {
1196 // Prepare addressable doubly-indirect placeholders for the key and value types.
1197 // This is needed because the element-type encoders expect **T, but the map iteration produces T.
1198
1199 keycopy = reflect.New(mapType.Key()).Elem() // addressable K
1200 keyptr := reflect.New(reflect.PtrTo(keycopy.Type())).Elem() // addressable *K
1201 keyptr.Set(keycopy.Addr()) //
1202 keybase = toStructPointer(keyptr.Addr()) // **K
1203
1204 // Value types are more varied and require special handling.
1205 switch mapType.Elem().Kind() {
1206 case reflect.Slice:
1207 // []byte
1208 var dummy []byte
1209 valcopy = reflect.ValueOf(&dummy).Elem() // addressable []byte
1210 valbase = toStructPointer(valcopy.Addr())
1211 case reflect.Ptr:
1212 // message; the generated field type is map[K]*Msg (so V is *Msg),
1213 // so we only need one level of indirection.
1214 valcopy = reflect.New(mapType.Elem()).Elem() // addressable V
1215 valbase = toStructPointer(valcopy.Addr())
1216 default:
1217 // everything else
1218 valcopy = reflect.New(mapType.Elem()).Elem() // addressable V
1219 valptr := reflect.New(reflect.PtrTo(valcopy.Type())).Elem() // addressable *V
1220 valptr.Set(valcopy.Addr()) //
1221 valbase = toStructPointer(valptr.Addr()) // **V
1222 }
1223 return
1224}
1225
1226// Encode a struct.
1227func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error {
1228 var state errorState
1229 // Encode fields in tag order so that decoders may use optimizations
1230 // that depend on the ordering.
1231 // https://developers.google.com/protocol-buffers/docs/encoding#order
1232 for _, i := range prop.order {
1233 p := prop.Prop[i]
1234 if p.enc != nil {
1235 err := p.enc(o, p, base)
1236 if err != nil {
1237 if err == ErrNil {
1238 if p.Required && state.err == nil {
1239 state.err = &RequiredNotSetError{p.Name}
1240 }
1241 } else if err == errRepeatedHasNil {
1242 // Give more context to nil values in repeated fields.
1243 return errors.New("repeated field " + p.OrigName + " has nil element")
1244 } else if !state.shouldContinue(err, p) {
1245 return err
1246 }
1247 }
1248 if len(o.buf) > maxMarshalSize {
1249 return ErrTooLarge
1250 }
1251 }
1252 }
1253
1254 // Do oneof fields.
1255 if prop.oneofMarshaler != nil {
1256 m := structPointer_Interface(base, prop.stype).(Message)
1257 if err := prop.oneofMarshaler(m, o); err == ErrNil {
1258 return errOneofHasNil
1259 } else if err != nil {
1260 return err
1261 }
1262 }
1263
1264 // Add unrecognized fields at the end.
1265 if prop.unrecField.IsValid() {
1266 v := *structPointer_Bytes(base, prop.unrecField)
1267 if len(o.buf)+len(v) > maxMarshalSize {
1268 return ErrTooLarge
1269 }
1270 if len(v) > 0 {
1271 o.buf = append(o.buf, v...)
1272 }
1273 }
1274
1275 return state.err
1276}
1277
1278func size_struct(prop *StructProperties, base structPointer) (n int) {
1279 for _, i := range prop.order {
1280 p := prop.Prop[i]
1281 if p.size != nil {
1282 n += p.size(p, base)
1283 }
1284 }
1285
1286 // Add unrecognized fields at the end.
1287 if prop.unrecField.IsValid() {
1288 v := *structPointer_Bytes(base, prop.unrecField)
1289 n += len(v)
1290 }
1291
1292 // Factor in any oneof fields.
1293 if prop.oneofSizer != nil {
1294 m := structPointer_Interface(base, prop.stype).(Message)
1295 n += prop.oneofSizer(m)
1296 }
1297
1298 return
1299}
1300
1301var zeroes [20]byte // longer than any conceivable sizeVarint
1302
1303// Encode a struct, preceded by its encoded length (as a varint).
1304func (o *Buffer) enc_len_struct(prop *StructProperties, base structPointer, state *errorState) error {
1305 return o.enc_len_thing(func() error { return o.enc_struct(prop, base) }, state)
1306}
1307
1308// Encode something, preceded by its encoded length (as a varint).
1309func (o *Buffer) enc_len_thing(enc func() error, state *errorState) error {
1310 iLen := len(o.buf)
1311 o.buf = append(o.buf, 0, 0, 0, 0) // reserve four bytes for length
1312 iMsg := len(o.buf)
1313 err := enc()
1314 if err != nil && !state.shouldContinue(err, nil) {
1315 return err
1316 }
1317 lMsg := len(o.buf) - iMsg
1318 lLen := sizeVarint(uint64(lMsg))
1319 switch x := lLen - (iMsg - iLen); {
1320 case x > 0: // actual length is x bytes larger than the space we reserved
1321 // Move msg x bytes right.
1322 o.buf = append(o.buf, zeroes[:x]...)
1323 copy(o.buf[iMsg+x:], o.buf[iMsg:iMsg+lMsg])
1324 case x < 0: // actual length is x bytes smaller than the space we reserved
1325 // Move msg x bytes left.
1326 copy(o.buf[iMsg+x:], o.buf[iMsg:iMsg+lMsg])
1327 o.buf = o.buf[:len(o.buf)+x] // x is negative
1328 }
1329 // Encode the length in the reserved space.
1330 o.buf = o.buf[:iLen]
1331 o.EncodeVarint(uint64(lMsg))
1332 o.buf = o.buf[:len(o.buf)+lMsg]
1333 return state.err
1334}
1335
1336// errorState maintains the first error that occurs and updates that error
1337// with additional context.
1338type errorState struct {
1339 err error
1340}
1341
1342// shouldContinue reports whether encoding should continue upon encountering the
1343// given error. If the error is RequiredNotSetError, shouldContinue returns true
1344// and, if this is the first appearance of that error, remembers it for future
1345// reporting.
1346//
1347// If prop is not nil, it may update any error with additional context about the
1348// field with the error.
1349func (s *errorState) shouldContinue(err error, prop *Properties) bool {
1350 // Ignore unset required fields.
1351 reqNotSet, ok := err.(*RequiredNotSetError)
1352 if !ok {
1353 return false
1354 }
1355 if s.err == nil {
1356 if prop != nil {
1357 err = &RequiredNotSetError{prop.Name + "." + reqNotSet.field}
1358 }
1359 s.err = err
1360 }
1361 return true
1362}
diff --git a/vendor/github.com/golang/protobuf/proto/equal.go b/vendor/github.com/golang/protobuf/proto/equal.go
index 2ed1cf5..d4db5a1 100644
--- a/vendor/github.com/golang/protobuf/proto/equal.go
+++ b/vendor/github.com/golang/protobuf/proto/equal.go
@@ -109,15 +109,6 @@ func equalStruct(v1, v2 reflect.Value) bool {
109 // set/unset mismatch 109 // set/unset mismatch
110 return false 110 return false
111 } 111 }
112 b1, ok := f1.Interface().(raw)
113 if ok {
114 b2 := f2.Interface().(raw)
115 // RawMessage
116 if !bytes.Equal(b1.Bytes(), b2.Bytes()) {
117 return false
118 }
119 continue
120 }
121 f1, f2 = f1.Elem(), f2.Elem() 112 f1, f2 = f1.Elem(), f2.Elem()
122 } 113 }
123 if !equalAny(f1, f2, sprop.Prop[i]) { 114 if !equalAny(f1, f2, sprop.Prop[i]) {
@@ -146,11 +137,7 @@ func equalStruct(v1, v2 reflect.Value) bool {
146 137
147 u1 := uf.Bytes() 138 u1 := uf.Bytes()
148 u2 := v2.FieldByName("XXX_unrecognized").Bytes() 139 u2 := v2.FieldByName("XXX_unrecognized").Bytes()
149 if !bytes.Equal(u1, u2) { 140 return bytes.Equal(u1, u2)
150 return false
151 }
152
153 return true
154} 141}
155 142
156// v1 and v2 are known to have the same type. 143// v1 and v2 are known to have the same type.
@@ -261,6 +248,15 @@ func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool {
261 248
262 m1, m2 := e1.value, e2.value 249 m1, m2 := e1.value, e2.value
263 250
251 if m1 == nil && m2 == nil {
252 // Both have only encoded form.
253 if bytes.Equal(e1.enc, e2.enc) {
254 continue
255 }
256 // The bytes are different, but the extensions might still be
257 // equal. We need to decode them to compare.
258 }
259
264 if m1 != nil && m2 != nil { 260 if m1 != nil && m2 != nil {
265 // Both are unencoded. 261 // Both are unencoded.
266 if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { 262 if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) {
@@ -276,8 +272,12 @@ func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool {
276 desc = m[extNum] 272 desc = m[extNum]
277 } 273 }
278 if desc == nil { 274 if desc == nil {
275 // If both have only encoded form and the bytes are the same,
276 // it is handled above. We get here when the bytes are different.
277 // We don't know how to decode it, so just compare them as byte
278 // slices.
279 log.Printf("proto: don't know how to compare extension %d of %v", extNum, base) 279 log.Printf("proto: don't know how to compare extension %d of %v", extNum, base)
280 continue 280 return false
281 } 281 }
282 var err error 282 var err error
283 if m1 == nil { 283 if m1 == nil {
diff --git a/vendor/github.com/golang/protobuf/proto/extensions.go b/vendor/github.com/golang/protobuf/proto/extensions.go
index eaad218..816a3b9 100644
--- a/vendor/github.com/golang/protobuf/proto/extensions.go
+++ b/vendor/github.com/golang/protobuf/proto/extensions.go
@@ -38,6 +38,7 @@ package proto
38import ( 38import (
39 "errors" 39 "errors"
40 "fmt" 40 "fmt"
41 "io"
41 "reflect" 42 "reflect"
42 "strconv" 43 "strconv"
43 "sync" 44 "sync"
@@ -91,14 +92,29 @@ func (n notLocker) Unlock() {}
91// extendable returns the extendableProto interface for the given generated proto message. 92// extendable returns the extendableProto interface for the given generated proto message.
92// If the proto message has the old extension format, it returns a wrapper that implements 93// If the proto message has the old extension format, it returns a wrapper that implements
93// the extendableProto interface. 94// the extendableProto interface.
94func extendable(p interface{}) (extendableProto, bool) { 95func extendable(p interface{}) (extendableProto, error) {
95 if ep, ok := p.(extendableProto); ok { 96 switch p := p.(type) {
96 return ep, ok 97 case extendableProto:
97 } 98 if isNilPtr(p) {
98 if ep, ok := p.(extendableProtoV1); ok { 99 return nil, fmt.Errorf("proto: nil %T is not extendable", p)
99 return extensionAdapter{ep}, ok 100 }
101 return p, nil
102 case extendableProtoV1:
103 if isNilPtr(p) {
104 return nil, fmt.Errorf("proto: nil %T is not extendable", p)
105 }
106 return extensionAdapter{p}, nil
100 } 107 }
101 return nil, false 108 // Don't allocate a specific error containing %T:
109 // this is the hot path for Clone and MarshalText.
110 return nil, errNotExtendable
111}
112
113var errNotExtendable = errors.New("proto: not an extendable proto.Message")
114
115func isNilPtr(x interface{}) bool {
116 v := reflect.ValueOf(x)
117 return v.Kind() == reflect.Ptr && v.IsNil()
102} 118}
103 119
104// XXX_InternalExtensions is an internal representation of proto extensions. 120// XXX_InternalExtensions is an internal representation of proto extensions.
@@ -143,9 +159,6 @@ func (e *XXX_InternalExtensions) extensionsRead() (map[int32]Extension, sync.Loc
143 return e.p.extensionMap, &e.p.mu 159 return e.p.extensionMap, &e.p.mu
144} 160}
145 161
146var extendableProtoType = reflect.TypeOf((*extendableProto)(nil)).Elem()
147var extendableProtoV1Type = reflect.TypeOf((*extendableProtoV1)(nil)).Elem()
148
149// ExtensionDesc represents an extension specification. 162// ExtensionDesc represents an extension specification.
150// Used in generated code from the protocol compiler. 163// Used in generated code from the protocol compiler.
151type ExtensionDesc struct { 164type ExtensionDesc struct {
@@ -179,8 +192,8 @@ type Extension struct {
179 192
180// SetRawExtension is for testing only. 193// SetRawExtension is for testing only.
181func SetRawExtension(base Message, id int32, b []byte) { 194func SetRawExtension(base Message, id int32, b []byte) {
182 epb, ok := extendable(base) 195 epb, err := extendable(base)
183 if !ok { 196 if err != nil {
184 return 197 return
185 } 198 }
186 extmap := epb.extensionsWrite() 199 extmap := epb.extensionsWrite()
@@ -205,7 +218,7 @@ func checkExtensionTypes(pb extendableProto, extension *ExtensionDesc) error {
205 pbi = ea.extendableProtoV1 218 pbi = ea.extendableProtoV1
206 } 219 }
207 if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b { 220 if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b {
208 return errors.New("proto: bad extended type; " + b.String() + " does not extend " + a.String()) 221 return fmt.Errorf("proto: bad extended type; %v does not extend %v", b, a)
209 } 222 }
210 // Check the range. 223 // Check the range.
211 if !isExtensionField(pb, extension.Field) { 224 if !isExtensionField(pb, extension.Field) {
@@ -250,85 +263,11 @@ func extensionProperties(ed *ExtensionDesc) *Properties {
250 return prop 263 return prop
251} 264}
252 265
253// encode encodes any unmarshaled (unencoded) extensions in e.
254func encodeExtensions(e *XXX_InternalExtensions) error {
255 m, mu := e.extensionsRead()
256 if m == nil {
257 return nil // fast path
258 }
259 mu.Lock()
260 defer mu.Unlock()
261 return encodeExtensionsMap(m)
262}
263
264// encode encodes any unmarshaled (unencoded) extensions in e.
265func encodeExtensionsMap(m map[int32]Extension) error {
266 for k, e := range m {
267 if e.value == nil || e.desc == nil {
268 // Extension is only in its encoded form.
269 continue
270 }
271
272 // We don't skip extensions that have an encoded form set,
273 // because the extension value may have been mutated after
274 // the last time this function was called.
275
276 et := reflect.TypeOf(e.desc.ExtensionType)
277 props := extensionProperties(e.desc)
278
279 p := NewBuffer(nil)
280 // If e.value has type T, the encoder expects a *struct{ X T }.
281 // Pass a *T with a zero field and hope it all works out.
282 x := reflect.New(et)
283 x.Elem().Set(reflect.ValueOf(e.value))
284 if err := props.enc(p, props, toStructPointer(x)); err != nil {
285 return err
286 }
287 e.enc = p.buf
288 m[k] = e
289 }
290 return nil
291}
292
293func extensionsSize(e *XXX_InternalExtensions) (n int) {
294 m, mu := e.extensionsRead()
295 if m == nil {
296 return 0
297 }
298 mu.Lock()
299 defer mu.Unlock()
300 return extensionsMapSize(m)
301}
302
303func extensionsMapSize(m map[int32]Extension) (n int) {
304 for _, e := range m {
305 if e.value == nil || e.desc == nil {
306 // Extension is only in its encoded form.
307 n += len(e.enc)
308 continue
309 }
310
311 // We don't skip extensions that have an encoded form set,
312 // because the extension value may have been mutated after
313 // the last time this function was called.
314
315 et := reflect.TypeOf(e.desc.ExtensionType)
316 props := extensionProperties(e.desc)
317
318 // If e.value has type T, the encoder expects a *struct{ X T }.
319 // Pass a *T with a zero field and hope it all works out.
320 x := reflect.New(et)
321 x.Elem().Set(reflect.ValueOf(e.value))
322 n += props.size(props, toStructPointer(x))
323 }
324 return
325}
326
327// HasExtension returns whether the given extension is present in pb. 266// HasExtension returns whether the given extension is present in pb.
328func HasExtension(pb Message, extension *ExtensionDesc) bool { 267func HasExtension(pb Message, extension *ExtensionDesc) bool {
329 // TODO: Check types, field numbers, etc.? 268 // TODO: Check types, field numbers, etc.?
330 epb, ok := extendable(pb) 269 epb, err := extendable(pb)
331 if !ok { 270 if err != nil {
332 return false 271 return false
333 } 272 }
334 extmap, mu := epb.extensionsRead() 273 extmap, mu := epb.extensionsRead()
@@ -336,15 +275,15 @@ func HasExtension(pb Message, extension *ExtensionDesc) bool {
336 return false 275 return false
337 } 276 }
338 mu.Lock() 277 mu.Lock()
339 _, ok = extmap[extension.Field] 278 _, ok := extmap[extension.Field]
340 mu.Unlock() 279 mu.Unlock()
341 return ok 280 return ok
342} 281}
343 282
344// ClearExtension removes the given extension from pb. 283// ClearExtension removes the given extension from pb.
345func ClearExtension(pb Message, extension *ExtensionDesc) { 284func ClearExtension(pb Message, extension *ExtensionDesc) {
346 epb, ok := extendable(pb) 285 epb, err := extendable(pb)
347 if !ok { 286 if err != nil {
348 return 287 return
349 } 288 }
350 // TODO: Check types, field numbers, etc.? 289 // TODO: Check types, field numbers, etc.?
@@ -352,16 +291,26 @@ func ClearExtension(pb Message, extension *ExtensionDesc) {
352 delete(extmap, extension.Field) 291 delete(extmap, extension.Field)
353} 292}
354 293
355// GetExtension parses and returns the given extension of pb. 294// GetExtension retrieves a proto2 extended field from pb.
356// If the extension is not present and has no default value it returns ErrMissingExtension. 295//
296// If the descriptor is type complete (i.e., ExtensionDesc.ExtensionType is non-nil),
297// then GetExtension parses the encoded field and returns a Go value of the specified type.
298// If the field is not present, then the default value is returned (if one is specified),
299// otherwise ErrMissingExtension is reported.
300//
301// If the descriptor is not type complete (i.e., ExtensionDesc.ExtensionType is nil),
302// then GetExtension returns the raw encoded bytes of the field extension.
357func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { 303func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) {
358 epb, ok := extendable(pb) 304 epb, err := extendable(pb)
359 if !ok { 305 if err != nil {
360 return nil, errors.New("proto: not an extendable proto") 306 return nil, err
361 } 307 }
362 308
363 if err := checkExtensionTypes(epb, extension); err != nil { 309 if extension.ExtendedType != nil {
364 return nil, err 310 // can only check type if this is a complete descriptor
311 if err := checkExtensionTypes(epb, extension); err != nil {
312 return nil, err
313 }
365 } 314 }
366 315
367 emap, mu := epb.extensionsRead() 316 emap, mu := epb.extensionsRead()
@@ -388,6 +337,11 @@ func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) {
388 return e.value, nil 337 return e.value, nil
389 } 338 }
390 339
340 if extension.ExtensionType == nil {
341 // incomplete descriptor
342 return e.enc, nil
343 }
344
391 v, err := decodeExtension(e.enc, extension) 345 v, err := decodeExtension(e.enc, extension)
392 if err != nil { 346 if err != nil {
393 return nil, err 347 return nil, err
@@ -405,6 +359,11 @@ func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) {
405// defaultExtensionValue returns the default value for extension. 359// defaultExtensionValue returns the default value for extension.
406// If no default for an extension is defined ErrMissingExtension is returned. 360// If no default for an extension is defined ErrMissingExtension is returned.
407func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) { 361func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) {
362 if extension.ExtensionType == nil {
363 // incomplete descriptor, so no default
364 return nil, ErrMissingExtension
365 }
366
408 t := reflect.TypeOf(extension.ExtensionType) 367 t := reflect.TypeOf(extension.ExtensionType)
409 props := extensionProperties(extension) 368 props := extensionProperties(extension)
410 369
@@ -439,31 +398,28 @@ func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) {
439 398
440// decodeExtension decodes an extension encoded in b. 399// decodeExtension decodes an extension encoded in b.
441func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { 400func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) {
442 o := NewBuffer(b)
443
444 t := reflect.TypeOf(extension.ExtensionType) 401 t := reflect.TypeOf(extension.ExtensionType)
445 402 unmarshal := typeUnmarshaler(t, extension.Tag)
446 props := extensionProperties(extension)
447 403
448 // t is a pointer to a struct, pointer to basic type or a slice. 404 // t is a pointer to a struct, pointer to basic type or a slice.
449 // Allocate a "field" to store the pointer/slice itself; the 405 // Allocate space to store the pointer/slice.
450 // pointer/slice will be stored here. We pass
451 // the address of this field to props.dec.
452 // This passes a zero field and a *t and lets props.dec
453 // interpret it as a *struct{ x t }.
454 value := reflect.New(t).Elem() 406 value := reflect.New(t).Elem()
455 407
408 var err error
456 for { 409 for {
457 // Discard wire type and field number varint. It isn't needed. 410 x, n := decodeVarint(b)
458 if _, err := o.DecodeVarint(); err != nil { 411 if n == 0 {
459 return nil, err 412 return nil, io.ErrUnexpectedEOF
460 } 413 }
414 b = b[n:]
415 wire := int(x) & 7
461 416
462 if err := props.dec(o, props, toStructPointer(value.Addr())); err != nil { 417 b, err = unmarshal(b, valToPointer(value.Addr()), wire)
418 if err != nil {
463 return nil, err 419 return nil, err
464 } 420 }
465 421
466 if o.index >= len(o.buf) { 422 if len(b) == 0 {
467 break 423 break
468 } 424 }
469 } 425 }
@@ -473,9 +429,9 @@ func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) {
473// GetExtensions returns a slice of the extensions present in pb that are also listed in es. 429// GetExtensions returns a slice of the extensions present in pb that are also listed in es.
474// The returned slice has the same length as es; missing extensions will appear as nil elements. 430// The returned slice has the same length as es; missing extensions will appear as nil elements.
475func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) { 431func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) {
476 epb, ok := extendable(pb) 432 epb, err := extendable(pb)
477 if !ok { 433 if err != nil {
478 return nil, errors.New("proto: not an extendable proto") 434 return nil, err
479 } 435 }
480 extensions = make([]interface{}, len(es)) 436 extensions = make([]interface{}, len(es))
481 for i, e := range es { 437 for i, e := range es {
@@ -494,9 +450,9 @@ func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, e
494// For non-registered extensions, ExtensionDescs returns an incomplete descriptor containing 450// For non-registered extensions, ExtensionDescs returns an incomplete descriptor containing
495// just the Field field, which defines the extension's field number. 451// just the Field field, which defines the extension's field number.
496func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) { 452func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) {
497 epb, ok := extendable(pb) 453 epb, err := extendable(pb)
498 if !ok { 454 if err != nil {
499 return nil, fmt.Errorf("proto: %T is not an extendable proto.Message", pb) 455 return nil, err
500 } 456 }
501 registeredExtensions := RegisteredExtensions(pb) 457 registeredExtensions := RegisteredExtensions(pb)
502 458
@@ -523,9 +479,9 @@ func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) {
523 479
524// SetExtension sets the specified extension of pb to the specified value. 480// SetExtension sets the specified extension of pb to the specified value.
525func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error { 481func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error {
526 epb, ok := extendable(pb) 482 epb, err := extendable(pb)
527 if !ok { 483 if err != nil {
528 return errors.New("proto: not an extendable proto") 484 return err
529 } 485 }
530 if err := checkExtensionTypes(epb, extension); err != nil { 486 if err := checkExtensionTypes(epb, extension); err != nil {
531 return err 487 return err
@@ -550,8 +506,8 @@ func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error
550 506
551// ClearAllExtensions clears all extensions from pb. 507// ClearAllExtensions clears all extensions from pb.
552func ClearAllExtensions(pb Message) { 508func ClearAllExtensions(pb Message) {
553 epb, ok := extendable(pb) 509 epb, err := extendable(pb)
554 if !ok { 510 if err != nil {
555 return 511 return
556 } 512 }
557 m := epb.extensionsWrite() 513 m := epb.extensionsWrite()
diff --git a/vendor/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/golang/protobuf/proto/lib.go
index 1c22550..75565cc 100644
--- a/vendor/github.com/golang/protobuf/proto/lib.go
+++ b/vendor/github.com/golang/protobuf/proto/lib.go
@@ -273,6 +273,67 @@ import (
273 "sync" 273 "sync"
274) 274)
275 275
276// RequiredNotSetError is an error type returned by either Marshal or Unmarshal.
277// Marshal reports this when a required field is not initialized.
278// Unmarshal reports this when a required field is missing from the wire data.
279type RequiredNotSetError struct{ field string }
280
281func (e *RequiredNotSetError) Error() string {
282 if e.field == "" {
283 return fmt.Sprintf("proto: required field not set")
284 }
285 return fmt.Sprintf("proto: required field %q not set", e.field)
286}
287func (e *RequiredNotSetError) RequiredNotSet() bool {
288 return true
289}
290
291type invalidUTF8Error struct{ field string }
292
293func (e *invalidUTF8Error) Error() string {
294 if e.field == "" {
295 return "proto: invalid UTF-8 detected"
296 }
297 return fmt.Sprintf("proto: field %q contains invalid UTF-8", e.field)
298}
299func (e *invalidUTF8Error) InvalidUTF8() bool {
300 return true
301}
302
303// errInvalidUTF8 is a sentinel error to identify fields with invalid UTF-8.
304// This error should not be exposed to the external API as such errors should
305// be recreated with the field information.
306var errInvalidUTF8 = &invalidUTF8Error{}
307
308// isNonFatal reports whether the error is either a RequiredNotSet error
309// or a InvalidUTF8 error.
310func isNonFatal(err error) bool {
311 if re, ok := err.(interface{ RequiredNotSet() bool }); ok && re.RequiredNotSet() {
312 return true
313 }
314 if re, ok := err.(interface{ InvalidUTF8() bool }); ok && re.InvalidUTF8() {
315 return true
316 }
317 return false
318}
319
320type nonFatal struct{ E error }
321
322// Merge merges err into nf and reports whether it was successful.
323// Otherwise it returns false for any fatal non-nil errors.
324func (nf *nonFatal) Merge(err error) (ok bool) {
325 if err == nil {
326 return true // not an error
327 }
328 if !isNonFatal(err) {
329 return false // fatal error
330 }
331 if nf.E == nil {
332 nf.E = err // store first instance of non-fatal error
333 }
334 return true
335}
336
276// Message is implemented by generated protocol buffer messages. 337// Message is implemented by generated protocol buffer messages.
277type Message interface { 338type Message interface {
278 Reset() 339 Reset()
@@ -309,16 +370,7 @@ type Buffer struct {
309 buf []byte // encode/decode byte stream 370 buf []byte // encode/decode byte stream
310 index int // read point 371 index int // read point
311 372
312 // pools of basic types to amortize allocation. 373 deterministic bool
313 bools []bool
314 uint32s []uint32
315 uint64s []uint64
316
317 // extra pools, only used with pointer_reflect.go
318 int32s []int32
319 int64s []int64
320 float32s []float32
321 float64s []float64
322} 374}
323 375
324// NewBuffer allocates a new Buffer and initializes its internal data to 376// NewBuffer allocates a new Buffer and initializes its internal data to
@@ -343,6 +395,30 @@ func (p *Buffer) SetBuf(s []byte) {
343// Bytes returns the contents of the Buffer. 395// Bytes returns the contents of the Buffer.
344func (p *Buffer) Bytes() []byte { return p.buf } 396func (p *Buffer) Bytes() []byte { return p.buf }
345 397
398// SetDeterministic sets whether to use deterministic serialization.
399//
400// Deterministic serialization guarantees that for a given binary, equal
401// messages will always be serialized to the same bytes. This implies:
402//
403// - Repeated serialization of a message will return the same bytes.
404// - Different processes of the same binary (which may be executing on
405// different machines) will serialize equal messages to the same bytes.
406//
407// Note that the deterministic serialization is NOT canonical across
408// languages. It is not guaranteed to remain stable over time. It is unstable
409// across different builds with schema changes due to unknown fields.
410// Users who need canonical serialization (e.g., persistent storage in a
411// canonical form, fingerprinting, etc.) should define their own
412// canonicalization specification and implement their own serializer rather
413// than relying on this API.
414//
415// If deterministic serialization is requested, map entries will be sorted
416// by keys in lexographical order. This is an implementation detail and
417// subject to change.
418func (p *Buffer) SetDeterministic(deterministic bool) {
419 p.deterministic = deterministic
420}
421
346/* 422/*
347 * Helper routines for simplifying the creation of optional fields of basic type. 423 * Helper routines for simplifying the creation of optional fields of basic type.
348 */ 424 */
@@ -831,22 +907,12 @@ func fieldDefault(ft reflect.Type, prop *Properties) (sf *scalarField, nestedMes
831 return sf, false, nil 907 return sf, false, nil
832} 908}
833 909
910// mapKeys returns a sort.Interface to be used for sorting the map keys.
834// Map fields may have key types of non-float scalars, strings and enums. 911// Map fields may have key types of non-float scalars, strings and enums.
835// The easiest way to sort them in some deterministic order is to use fmt.
836// If this turns out to be inefficient we can always consider other options,
837// such as doing a Schwartzian transform.
838
839func mapKeys(vs []reflect.Value) sort.Interface { 912func mapKeys(vs []reflect.Value) sort.Interface {
840 s := mapKeySorter{ 913 s := mapKeySorter{vs: vs}
841 vs: vs,
842 // default Less function: textual comparison
843 less: func(a, b reflect.Value) bool {
844 return fmt.Sprint(a.Interface()) < fmt.Sprint(b.Interface())
845 },
846 }
847 914
848 // Type specialization per https://developers.google.com/protocol-buffers/docs/proto#maps; 915 // Type specialization per https://developers.google.com/protocol-buffers/docs/proto#maps.
849 // numeric keys are sorted numerically.
850 if len(vs) == 0 { 916 if len(vs) == 0 {
851 return s 917 return s
852 } 918 }
@@ -855,6 +921,12 @@ func mapKeys(vs []reflect.Value) sort.Interface {
855 s.less = func(a, b reflect.Value) bool { return a.Int() < b.Int() } 921 s.less = func(a, b reflect.Value) bool { return a.Int() < b.Int() }
856 case reflect.Uint32, reflect.Uint64: 922 case reflect.Uint32, reflect.Uint64:
857 s.less = func(a, b reflect.Value) bool { return a.Uint() < b.Uint() } 923 s.less = func(a, b reflect.Value) bool { return a.Uint() < b.Uint() }
924 case reflect.Bool:
925 s.less = func(a, b reflect.Value) bool { return !a.Bool() && b.Bool() } // false < true
926 case reflect.String:
927 s.less = func(a, b reflect.Value) bool { return a.String() < b.String() }
928 default:
929 panic(fmt.Sprintf("unsupported map key type: %v", vs[0].Kind()))
858 } 930 }
859 931
860 return s 932 return s
@@ -895,3 +967,13 @@ const ProtoPackageIsVersion2 = true
895// ProtoPackageIsVersion1 is referenced from generated protocol buffer files 967// ProtoPackageIsVersion1 is referenced from generated protocol buffer files
896// to assert that that code is compatible with this version of the proto package. 968// to assert that that code is compatible with this version of the proto package.
897const ProtoPackageIsVersion1 = true 969const ProtoPackageIsVersion1 = true
970
971// InternalMessageInfo is a type used internally by generated .pb.go files.
972// This type is not intended to be used by non-generated code.
973// This type is not subject to any compatibility guarantee.
974type InternalMessageInfo struct {
975 marshal *marshalInfo
976 unmarshal *unmarshalInfo
977 merge *mergeInfo
978 discard *discardInfo
979}
diff --git a/vendor/github.com/golang/protobuf/proto/message_set.go b/vendor/github.com/golang/protobuf/proto/message_set.go
index fd982de..3b6ca41 100644
--- a/vendor/github.com/golang/protobuf/proto/message_set.go
+++ b/vendor/github.com/golang/protobuf/proto/message_set.go
@@ -42,6 +42,7 @@ import (
42 "fmt" 42 "fmt"
43 "reflect" 43 "reflect"
44 "sort" 44 "sort"
45 "sync"
45) 46)
46 47
47// errNoMessageTypeID occurs when a protocol buffer does not have a message type ID. 48// errNoMessageTypeID occurs when a protocol buffer does not have a message type ID.
@@ -94,10 +95,7 @@ func (ms *messageSet) find(pb Message) *_MessageSet_Item {
94} 95}
95 96
96func (ms *messageSet) Has(pb Message) bool { 97func (ms *messageSet) Has(pb Message) bool {
97 if ms.find(pb) != nil { 98 return ms.find(pb) != nil
98 return true
99 }
100 return false
101} 99}
102 100
103func (ms *messageSet) Unmarshal(pb Message) error { 101func (ms *messageSet) Unmarshal(pb Message) error {
@@ -150,46 +148,42 @@ func skipVarint(buf []byte) []byte {
150// MarshalMessageSet encodes the extension map represented by m in the message set wire format. 148// MarshalMessageSet encodes the extension map represented by m in the message set wire format.
151// It is called by generated Marshal methods on protocol buffer messages with the message_set_wire_format option. 149// It is called by generated Marshal methods on protocol buffer messages with the message_set_wire_format option.
152func MarshalMessageSet(exts interface{}) ([]byte, error) { 150func MarshalMessageSet(exts interface{}) ([]byte, error) {
153 var m map[int32]Extension 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) {
154 switch exts := exts.(type) { 156 switch exts := exts.(type) {
155 case *XXX_InternalExtensions: 157 case *XXX_InternalExtensions:
156 if err := encodeExtensions(exts); err != nil { 158 var u marshalInfo
157 return nil, err 159 siz := u.sizeMessageSet(exts)
158 } 160 b := make([]byte, 0, siz)
159 m, _ = exts.extensionsRead() 161 return u.appendMessageSet(b, exts, deterministic)
162
160 case map[int32]Extension: 163 case map[int32]Extension:
161 if err := encodeExtensionsMap(exts); err != nil { 164 // This is an old-style extension map.
162 return nil, err 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 },
163 } 173 }
164 m = exts 174
175 var u marshalInfo
176 siz := u.sizeMessageSet(&ie)
177 b := make([]byte, 0, siz)
178 return u.appendMessageSet(b, &ie, deterministic)
179
165 default: 180 default:
166 return nil, errors.New("proto: not an extension map") 181 return nil, errors.New("proto: not an extension map")
167 } 182 }
168
169 // Sort extension IDs to provide a deterministic encoding.
170 // See also enc_map in encode.go.
171 ids := make([]int, 0, len(m))
172 for id := range m {
173 ids = append(ids, int(id))
174 }
175 sort.Ints(ids)
176
177 ms := &messageSet{Item: make([]*_MessageSet_Item, 0, len(m))}
178 for _, id := range ids {
179 e := m[int32(id)]
180 // Remove the wire type and field number varint, as well as the length varint.
181 msg := skipVarint(skipVarint(e.enc))
182
183 ms.Item = append(ms.Item, &_MessageSet_Item{
184 TypeId: Int32(int32(id)),
185 Message: msg,
186 })
187 }
188 return Marshal(ms)
189} 183}
190 184
191// UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format. 185// UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format.
192// It is called by generated Unmarshal methods on protocol buffer messages with the message_set_wire_format option. 186// It is called by Unmarshal methods on protocol buffer messages with the message_set_wire_format option.
193func UnmarshalMessageSet(buf []byte, exts interface{}) error { 187func UnmarshalMessageSet(buf []byte, exts interface{}) error {
194 var m map[int32]Extension 188 var m map[int32]Extension
195 switch exts := exts.(type) { 189 switch exts := exts.(type) {
@@ -235,7 +229,15 @@ func MarshalMessageSetJSON(exts interface{}) ([]byte, error) {
235 var m map[int32]Extension 229 var m map[int32]Extension
236 switch exts := exts.(type) { 230 switch exts := exts.(type) {
237 case *XXX_InternalExtensions: 231 case *XXX_InternalExtensions:
238 m, _ = exts.extensionsRead() 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 }
239 case map[int32]Extension: 241 case map[int32]Extension:
240 m = exts 242 m = exts
241 default: 243 default:
@@ -253,15 +255,16 @@ func MarshalMessageSetJSON(exts interface{}) ([]byte, error) {
253 255
254 for i, id := range ids { 256 for i, id := range ids {
255 ext := m[id] 257 ext := m[id]
256 if i > 0 {
257 b.WriteByte(',')
258 }
259
260 msd, ok := messageSetMap[id] 258 msd, ok := messageSetMap[id]
261 if !ok { 259 if !ok {
262 // Unknown type; we can't render it, so skip it. 260 // Unknown type; we can't render it, so skip it.
263 continue 261 continue
264 } 262 }
263
264 if i > 0 && b.Len() > 1 {
265 b.WriteByte(',')
266 }
267
265 fmt.Fprintf(&b, `"[%s]":`, msd.name) 268 fmt.Fprintf(&b, `"[%s]":`, msd.name)
266 269
267 x := ext.value 270 x := ext.value
diff --git a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go
index fb512e2..b6cad90 100644
--- a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go
+++ b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go
@@ -29,7 +29,7 @@
29// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 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. 30// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 31
32// +build appengine js 32// +build purego appengine js
33 33
34// This file contains an implementation of proto field accesses using package reflect. 34// This file contains an implementation of proto field accesses using package reflect.
35// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can 35// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can
@@ -38,32 +38,13 @@
38package proto 38package proto
39 39
40import ( 40import (
41 "math"
42 "reflect" 41 "reflect"
42 "sync"
43) 43)
44 44
45// A structPointer is a pointer to a struct. 45const unsafeAllowed = false
46type structPointer struct {
47 v reflect.Value
48}
49
50// toStructPointer returns a structPointer equivalent to the given reflect value.
51// The reflect value must itself be a pointer to a struct.
52func toStructPointer(v reflect.Value) structPointer {
53 return structPointer{v}
54}
55
56// IsNil reports whether p is nil.
57func structPointer_IsNil(p structPointer) bool {
58 return p.v.IsNil()
59}
60 46
61// Interface returns the struct pointer as an interface value. 47// A field identifies a field in a struct, accessible from a pointer.
62func structPointer_Interface(p structPointer, _ reflect.Type) interface{} {
63 return p.v.Interface()
64}
65
66// A field identifies a field in a struct, accessible from a structPointer.
67// In this implementation, a field is identified by the sequence of field indices 48// In this implementation, a field is identified by the sequence of field indices
68// passed to reflect's FieldByIndex. 49// passed to reflect's FieldByIndex.
69type field []int 50type field []int
@@ -76,409 +57,301 @@ func toField(f *reflect.StructField) field {
76// invalidField is an invalid field identifier. 57// invalidField is an invalid field identifier.
77var invalidField = field(nil) 58var invalidField = field(nil)
78 59
60// zeroField is a noop when calling pointer.offset.
61var zeroField = field([]int{})
62
79// IsValid reports whether the field identifier is valid. 63// IsValid reports whether the field identifier is valid.
80func (f field) IsValid() bool { return f != nil } 64func (f field) IsValid() bool { return f != nil }
81 65
82// field returns the given field in the struct as a reflect value. 66// The pointer type is for the table-driven decoder.
83func structPointer_field(p structPointer, f field) reflect.Value { 67// The implementation here uses a reflect.Value of pointer type to
84 // Special case: an extension map entry with a value of type T 68// create a generic pointer. In pointer_unsafe.go we use unsafe
85 // passes a *T to the struct-handling code with a zero field, 69// instead of reflect to implement the same (but faster) interface.
86 // expecting that it will be treated as equivalent to *struct{ X T }, 70type pointer struct {
87 // which has the same memory layout. We have to handle that case 71 v reflect.Value
88 // specially, because reflect will panic if we call FieldByIndex on a
89 // non-struct.
90 if f == nil {
91 return p.v.Elem()
92 }
93
94 return p.v.Elem().FieldByIndex(f)
95} 72}
96 73
97// ifield returns the given field in the struct as an interface value. 74// toPointer converts an interface of pointer type to a pointer
98func structPointer_ifield(p structPointer, f field) interface{} { 75// that points to the same target.
99 return structPointer_field(p, f).Addr().Interface() 76func toPointer(i *Message) pointer {
77 return pointer{v: reflect.ValueOf(*i)}
100} 78}
101 79
102// Bytes returns the address of a []byte field in the struct. 80// toAddrPointer converts an interface to a pointer that points to
103func structPointer_Bytes(p structPointer, f field) *[]byte { 81// the interface data.
104 return structPointer_ifield(p, f).(*[]byte) 82func toAddrPointer(i *interface{}, isptr bool) pointer {
83 v := reflect.ValueOf(*i)
84 u := reflect.New(v.Type())
85 u.Elem().Set(v)
86 return pointer{v: u}
105} 87}
106 88
107// BytesSlice returns the address of a [][]byte field in the struct. 89// valToPointer converts v to a pointer. v must be of pointer type.
108func structPointer_BytesSlice(p structPointer, f field) *[][]byte { 90func valToPointer(v reflect.Value) pointer {
109 return structPointer_ifield(p, f).(*[][]byte) 91 return pointer{v: v}
110} 92}
111 93
112// Bool returns the address of a *bool field in the struct. 94// offset converts from a pointer to a structure to a pointer to
113func structPointer_Bool(p structPointer, f field) **bool { 95// one of its fields.
114 return structPointer_ifield(p, f).(**bool) 96func (p pointer) offset(f field) pointer {
97 return pointer{v: p.v.Elem().FieldByIndex(f).Addr()}
115} 98}
116 99
117// BoolVal returns the address of a bool field in the struct. 100func (p pointer) isNil() bool {
118func structPointer_BoolVal(p structPointer, f field) *bool { 101 return p.v.IsNil()
119 return structPointer_ifield(p, f).(*bool)
120} 102}
121 103
122// BoolSlice returns the address of a []bool field in the struct. 104// grow updates the slice s in place to make it one element longer.
123func structPointer_BoolSlice(p structPointer, f field) *[]bool { 105// s must be addressable.
124 return structPointer_ifield(p, f).(*[]bool) 106// Returns the (addressable) new element.
107func grow(s reflect.Value) reflect.Value {
108 n, m := s.Len(), s.Cap()
109 if n < m {
110 s.SetLen(n + 1)
111 } else {
112 s.Set(reflect.Append(s, reflect.Zero(s.Type().Elem())))
113 }
114 return s.Index(n)
125} 115}
126 116
127// String returns the address of a *string field in the struct. 117func (p pointer) toInt64() *int64 {
128func structPointer_String(p structPointer, f field) **string { 118 return p.v.Interface().(*int64)
129 return structPointer_ifield(p, f).(**string)
130} 119}
131 120func (p pointer) toInt64Ptr() **int64 {
132// StringVal returns the address of a string field in the struct. 121 return p.v.Interface().(**int64)
133func structPointer_StringVal(p structPointer, f field) *string {
134 return structPointer_ifield(p, f).(*string)
135} 122}
136 123func (p pointer) toInt64Slice() *[]int64 {
137// StringSlice returns the address of a []string field in the struct. 124 return p.v.Interface().(*[]int64)
138func structPointer_StringSlice(p structPointer, f field) *[]string {
139 return structPointer_ifield(p, f).(*[]string)
140} 125}
141 126
142// Extensions returns the address of an extension map field in the struct. 127var int32ptr = reflect.TypeOf((*int32)(nil))
143func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions {
144 return structPointer_ifield(p, f).(*XXX_InternalExtensions)
145}
146 128
147// ExtMap returns the address of an extension map field in the struct. 129func (p pointer) toInt32() *int32 {
148func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension { 130 return p.v.Convert(int32ptr).Interface().(*int32)
149 return structPointer_ifield(p, f).(*map[int32]Extension)
150} 131}
151 132
152// NewAt returns the reflect.Value for a pointer to a field in the struct. 133// The toInt32Ptr/Slice methods don't work because of enums.
153func structPointer_NewAt(p structPointer, f field, typ reflect.Type) reflect.Value { 134// Instead, we must use set/get methods for the int32ptr/slice case.
154 return structPointer_field(p, f).Addr() 135/*
136 func (p pointer) toInt32Ptr() **int32 {
137 return p.v.Interface().(**int32)
155} 138}
156 139 func (p pointer) toInt32Slice() *[]int32 {
157// SetStructPointer writes a *struct field in the struct. 140 return p.v.Interface().(*[]int32)
158func structPointer_SetStructPointer(p structPointer, f field, q structPointer) {
159 structPointer_field(p, f).Set(q.v)
160} 141}
161 142*/
162// GetStructPointer reads a *struct field in the struct. 143func (p pointer) getInt32Ptr() *int32 {
163func structPointer_GetStructPointer(p structPointer, f field) structPointer { 144 if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) {
164 return structPointer{structPointer_field(p, f)} 145 // raw int32 type
146 return p.v.Elem().Interface().(*int32)
147 }
148 // an enum
149 return p.v.Elem().Convert(int32PtrType).Interface().(*int32)
150}
151func (p pointer) setInt32Ptr(v int32) {
152 // Allocate value in a *int32. Possibly convert that to a *enum.
153 // Then assign it to a **int32 or **enum.
154 // Note: we can convert *int32 to *enum, but we can't convert
155 // **int32 to **enum!
156 p.v.Elem().Set(reflect.ValueOf(&v).Convert(p.v.Type().Elem()))
157}
158
159// getInt32Slice copies []int32 from p as a new slice.
160// This behavior differs from the implementation in pointer_unsafe.go.
161func (p pointer) getInt32Slice() []int32 {
162 if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) {
163 // raw int32 type
164 return p.v.Elem().Interface().([]int32)
165 }
166 // an enum
167 // Allocate a []int32, then assign []enum's values into it.
168 // Note: we can't convert []enum to []int32.
169 slice := p.v.Elem()
170 s := make([]int32, slice.Len())
171 for i := 0; i < slice.Len(); i++ {
172 s[i] = int32(slice.Index(i).Int())
173 }
174 return s
165} 175}
166 176
167// StructPointerSlice the address of a []*struct field in the struct. 177// setInt32Slice copies []int32 into p as a new slice.
168func structPointer_StructPointerSlice(p structPointer, f field) structPointerSlice { 178// This behavior differs from the implementation in pointer_unsafe.go.
169 return structPointerSlice{structPointer_field(p, f)} 179func (p pointer) setInt32Slice(v []int32) {
180 if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) {
181 // raw int32 type
182 p.v.Elem().Set(reflect.ValueOf(v))
183 return
184 }
185 // an enum
186 // Allocate a []enum, then assign []int32's values into it.
187 // Note: we can't convert []enum to []int32.
188 slice := reflect.MakeSlice(p.v.Type().Elem(), len(v), cap(v))
189 for i, x := range v {
190 slice.Index(i).SetInt(int64(x))
191 }
192 p.v.Elem().Set(slice)
170} 193}
171 194func (p pointer) appendInt32Slice(v int32) {
172// A structPointerSlice represents the address of a slice of pointers to structs 195 grow(p.v.Elem()).SetInt(int64(v))
173// (themselves messages or groups). That is, v.Type() is *[]*struct{...}.
174type structPointerSlice struct {
175 v reflect.Value
176} 196}
177 197
178func (p structPointerSlice) Len() int { return p.v.Len() } 198func (p pointer) toUint64() *uint64 {
179func (p structPointerSlice) Index(i int) structPointer { return structPointer{p.v.Index(i)} } 199 return p.v.Interface().(*uint64)
180func (p structPointerSlice) Append(q structPointer) {
181 p.v.Set(reflect.Append(p.v, q.v))
182} 200}
183 201func (p pointer) toUint64Ptr() **uint64 {
184var ( 202 return p.v.Interface().(**uint64)
185 int32Type = reflect.TypeOf(int32(0))
186 uint32Type = reflect.TypeOf(uint32(0))
187 float32Type = reflect.TypeOf(float32(0))
188 int64Type = reflect.TypeOf(int64(0))
189 uint64Type = reflect.TypeOf(uint64(0))
190 float64Type = reflect.TypeOf(float64(0))
191)
192
193// A word32 represents a field of type *int32, *uint32, *float32, or *enum.
194// That is, v.Type() is *int32, *uint32, *float32, or *enum and v is assignable.
195type word32 struct {
196 v reflect.Value
197} 203}
198 204func (p pointer) toUint64Slice() *[]uint64 {
199// IsNil reports whether p is nil. 205 return p.v.Interface().(*[]uint64)
200func word32_IsNil(p word32) bool {
201 return p.v.IsNil()
202} 206}
203 207func (p pointer) toUint32() *uint32 {
204// Set sets p to point at a newly allocated word with bits set to x. 208 return p.v.Interface().(*uint32)
205func word32_Set(p word32, o *Buffer, x uint32) {
206 t := p.v.Type().Elem()
207 switch t {
208 case int32Type:
209 if len(o.int32s) == 0 {
210 o.int32s = make([]int32, uint32PoolSize)
211 }
212 o.int32s[0] = int32(x)
213 p.v.Set(reflect.ValueOf(&o.int32s[0]))
214 o.int32s = o.int32s[1:]
215 return
216 case uint32Type:
217 if len(o.uint32s) == 0 {
218 o.uint32s = make([]uint32, uint32PoolSize)
219 }
220 o.uint32s[0] = x
221 p.v.Set(reflect.ValueOf(&o.uint32s[0]))
222 o.uint32s = o.uint32s[1:]
223 return
224 case float32Type:
225 if len(o.float32s) == 0 {
226 o.float32s = make([]float32, uint32PoolSize)
227 }
228 o.float32s[0] = math.Float32frombits(x)
229 p.v.Set(reflect.ValueOf(&o.float32s[0]))
230 o.float32s = o.float32s[1:]
231 return
232 }
233
234 // must be enum
235 p.v.Set(reflect.New(t))
236 p.v.Elem().SetInt(int64(int32(x)))
237} 209}
238 210func (p pointer) toUint32Ptr() **uint32 {
239// Get gets the bits pointed at by p, as a uint32. 211 return p.v.Interface().(**uint32)
240func word32_Get(p word32) uint32 {
241 elem := p.v.Elem()
242 switch elem.Kind() {
243 case reflect.Int32:
244 return uint32(elem.Int())
245 case reflect.Uint32:
246 return uint32(elem.Uint())
247 case reflect.Float32:
248 return math.Float32bits(float32(elem.Float()))
249 }
250 panic("unreachable")
251} 212}
252 213func (p pointer) toUint32Slice() *[]uint32 {
253// Word32 returns a reference to a *int32, *uint32, *float32, or *enum field in the struct. 214 return p.v.Interface().(*[]uint32)
254func structPointer_Word32(p structPointer, f field) word32 {
255 return word32{structPointer_field(p, f)}
256} 215}
257 216func (p pointer) toBool() *bool {
258// A word32Val represents a field of type int32, uint32, float32, or enum. 217 return p.v.Interface().(*bool)
259// That is, v.Type() is int32, uint32, float32, or enum and v is assignable.
260type word32Val struct {
261 v reflect.Value
262} 218}
263 219func (p pointer) toBoolPtr() **bool {
264// Set sets *p to x. 220 return p.v.Interface().(**bool)
265func word32Val_Set(p word32Val, x uint32) {
266 switch p.v.Type() {
267 case int32Type:
268 p.v.SetInt(int64(x))
269 return
270 case uint32Type:
271 p.v.SetUint(uint64(x))
272 return
273 case float32Type:
274 p.v.SetFloat(float64(math.Float32frombits(x)))
275 return
276 }
277
278 // must be enum
279 p.v.SetInt(int64(int32(x)))
280} 221}
281 222func (p pointer) toBoolSlice() *[]bool {
282// Get gets the bits pointed at by p, as a uint32. 223 return p.v.Interface().(*[]bool)
283func word32Val_Get(p word32Val) uint32 {
284 elem := p.v
285 switch elem.Kind() {
286 case reflect.Int32:
287 return uint32(elem.Int())
288 case reflect.Uint32:
289 return uint32(elem.Uint())
290 case reflect.Float32:
291 return math.Float32bits(float32(elem.Float()))
292 }
293 panic("unreachable")
294} 224}
295 225func (p pointer) toFloat64() *float64 {
296// Word32Val returns a reference to a int32, uint32, float32, or enum field in the struct. 226 return p.v.Interface().(*float64)
297func structPointer_Word32Val(p structPointer, f field) word32Val {
298 return word32Val{structPointer_field(p, f)}
299} 227}
300 228func (p pointer) toFloat64Ptr() **float64 {
301// A word32Slice is a slice of 32-bit values. 229 return p.v.Interface().(**float64)
302// That is, v.Type() is []int32, []uint32, []float32, or []enum.
303type word32Slice struct {
304 v reflect.Value
305} 230}
306 231func (p pointer) toFloat64Slice() *[]float64 {
307func (p word32Slice) Append(x uint32) { 232 return p.v.Interface().(*[]float64)
308 n, m := p.v.Len(), p.v.Cap()
309 if n < m {
310 p.v.SetLen(n + 1)
311 } else {
312 t := p.v.Type().Elem()
313 p.v.Set(reflect.Append(p.v, reflect.Zero(t)))
314 }
315 elem := p.v.Index(n)
316 switch elem.Kind() {
317 case reflect.Int32:
318 elem.SetInt(int64(int32(x)))
319 case reflect.Uint32:
320 elem.SetUint(uint64(x))
321 case reflect.Float32:
322 elem.SetFloat(float64(math.Float32frombits(x)))
323 }
324} 233}
325 234func (p pointer) toFloat32() *float32 {
326func (p word32Slice) Len() int { 235 return p.v.Interface().(*float32)
327 return p.v.Len()
328} 236}
329 237func (p pointer) toFloat32Ptr() **float32 {
330func (p word32Slice) Index(i int) uint32 { 238 return p.v.Interface().(**float32)
331 elem := p.v.Index(i)
332 switch elem.Kind() {
333 case reflect.Int32:
334 return uint32(elem.Int())
335 case reflect.Uint32:
336 return uint32(elem.Uint())
337 case reflect.Float32:
338 return math.Float32bits(float32(elem.Float()))
339 }
340 panic("unreachable")
341} 239}
342 240func (p pointer) toFloat32Slice() *[]float32 {
343// Word32Slice returns a reference to a []int32, []uint32, []float32, or []enum field in the struct. 241 return p.v.Interface().(*[]float32)
344func structPointer_Word32Slice(p structPointer, f field) word32Slice {
345 return word32Slice{structPointer_field(p, f)}
346} 242}
347 243func (p pointer) toString() *string {
348// word64 is like word32 but for 64-bit values. 244 return p.v.Interface().(*string)
349type word64 struct {
350 v reflect.Value
351} 245}
352 246func (p pointer) toStringPtr() **string {
353func word64_Set(p word64, o *Buffer, x uint64) { 247 return p.v.Interface().(**string)
354 t := p.v.Type().Elem()
355 switch t {
356 case int64Type:
357 if len(o.int64s) == 0 {
358 o.int64s = make([]int64, uint64PoolSize)
359 }
360 o.int64s[0] = int64(x)
361 p.v.Set(reflect.ValueOf(&o.int64s[0]))
362 o.int64s = o.int64s[1:]
363 return
364 case uint64Type:
365 if len(o.uint64s) == 0 {
366 o.uint64s = make([]uint64, uint64PoolSize)
367 }
368 o.uint64s[0] = x
369 p.v.Set(reflect.ValueOf(&o.uint64s[0]))
370 o.uint64s = o.uint64s[1:]
371 return
372 case float64Type:
373 if len(o.float64s) == 0 {
374 o.float64s = make([]float64, uint64PoolSize)
375 }
376 o.float64s[0] = math.Float64frombits(x)
377 p.v.Set(reflect.ValueOf(&o.float64s[0]))
378 o.float64s = o.float64s[1:]
379 return
380 }
381 panic("unreachable")
382} 248}
383 249func (p pointer) toStringSlice() *[]string {
384func word64_IsNil(p word64) bool { 250 return p.v.Interface().(*[]string)
385 return p.v.IsNil()
386} 251}
387 252func (p pointer) toBytes() *[]byte {
388func word64_Get(p word64) uint64 { 253 return p.v.Interface().(*[]byte)
389 elem := p.v.Elem()
390 switch elem.Kind() {
391 case reflect.Int64:
392 return uint64(elem.Int())
393 case reflect.Uint64:
394 return elem.Uint()
395 case reflect.Float64:
396 return math.Float64bits(elem.Float())
397 }
398 panic("unreachable")
399} 254}
400 255func (p pointer) toBytesSlice() *[][]byte {
401func structPointer_Word64(p structPointer, f field) word64 { 256 return p.v.Interface().(*[][]byte)
402 return word64{structPointer_field(p, f)} 257}
258func (p pointer) toExtensions() *XXX_InternalExtensions {
259 return p.v.Interface().(*XXX_InternalExtensions)
260}
261func (p pointer) toOldExtensions() *map[int32]Extension {
262 return p.v.Interface().(*map[int32]Extension)
263}
264func (p pointer) getPointer() pointer {
265 return pointer{v: p.v.Elem()}
266}
267func (p pointer) setPointer(q pointer) {
268 p.v.Elem().Set(q.v)
269}
270func (p pointer) appendPointer(q pointer) {
271 grow(p.v.Elem()).Set(q.v)
403} 272}
404 273
405// word64Val is like word32Val but for 64-bit values. 274// getPointerSlice copies []*T from p as a new []pointer.
406type word64Val struct { 275// This behavior differs from the implementation in pointer_unsafe.go.
407 v reflect.Value 276func (p pointer) getPointerSlice() []pointer {
277 if p.v.IsNil() {
278 return nil
279 }
280 n := p.v.Elem().Len()
281 s := make([]pointer, n)
282 for i := 0; i < n; i++ {
283 s[i] = pointer{v: p.v.Elem().Index(i)}
284 }
285 return s
408} 286}
409 287
410func word64Val_Set(p word64Val, o *Buffer, x uint64) { 288// setPointerSlice copies []pointer into p as a new []*T.
411 switch p.v.Type() { 289// This behavior differs from the implementation in pointer_unsafe.go.
412 case int64Type: 290func (p pointer) setPointerSlice(v []pointer) {
413 p.v.SetInt(int64(x)) 291 if v == nil {
414 return 292 p.v.Elem().Set(reflect.New(p.v.Elem().Type()).Elem())
415 case uint64Type:
416 p.v.SetUint(x)
417 return
418 case float64Type:
419 p.v.SetFloat(math.Float64frombits(x))
420 return 293 return
421 } 294 }
422 panic("unreachable") 295 s := reflect.MakeSlice(p.v.Elem().Type(), 0, len(v))
296 for _, p := range v {
297 s = reflect.Append(s, p.v)
298 }
299 p.v.Elem().Set(s)
423} 300}
424 301
425func word64Val_Get(p word64Val) uint64 { 302// getInterfacePointer returns a pointer that points to the
426 elem := p.v 303// interface data of the interface pointed by p.
427 switch elem.Kind() { 304func (p pointer) getInterfacePointer() pointer {
428 case reflect.Int64: 305 if p.v.Elem().IsNil() {
429 return uint64(elem.Int()) 306 return pointer{v: p.v.Elem()}
430 case reflect.Uint64:
431 return elem.Uint()
432 case reflect.Float64:
433 return math.Float64bits(elem.Float())
434 } 307 }
435 panic("unreachable") 308 return pointer{v: p.v.Elem().Elem().Elem().Field(0).Addr()} // *interface -> interface -> *struct -> struct
436} 309}
437 310
438func structPointer_Word64Val(p structPointer, f field) word64Val { 311func (p pointer) asPointerTo(t reflect.Type) reflect.Value {
439 return word64Val{structPointer_field(p, f)} 312 // TODO: check that p.v.Type().Elem() == t?
313 return p.v
440} 314}
441 315
442type word64Slice struct { 316func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo {
443 v reflect.Value 317 atomicLock.Lock()
318 defer atomicLock.Unlock()
319 return *p
444} 320}
445 321func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) {
446func (p word64Slice) Append(x uint64) { 322 atomicLock.Lock()
447 n, m := p.v.Len(), p.v.Cap() 323 defer atomicLock.Unlock()
448 if n < m { 324 *p = v
449 p.v.SetLen(n + 1)
450 } else {
451 t := p.v.Type().Elem()
452 p.v.Set(reflect.Append(p.v, reflect.Zero(t)))
453 }
454 elem := p.v.Index(n)
455 switch elem.Kind() {
456 case reflect.Int64:
457 elem.SetInt(int64(int64(x)))
458 case reflect.Uint64:
459 elem.SetUint(uint64(x))
460 case reflect.Float64:
461 elem.SetFloat(float64(math.Float64frombits(x)))
462 }
463} 325}
464 326func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo {
465func (p word64Slice) Len() int { 327 atomicLock.Lock()
466 return p.v.Len() 328 defer atomicLock.Unlock()
329 return *p
467} 330}
468 331func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) {
469func (p word64Slice) Index(i int) uint64 { 332 atomicLock.Lock()
470 elem := p.v.Index(i) 333 defer atomicLock.Unlock()
471 switch elem.Kind() { 334 *p = v
472 case reflect.Int64:
473 return uint64(elem.Int())
474 case reflect.Uint64:
475 return uint64(elem.Uint())
476 case reflect.Float64:
477 return math.Float64bits(float64(elem.Float()))
478 }
479 panic("unreachable")
480} 335}
481 336func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo {
482func structPointer_Word64Slice(p structPointer, f field) word64Slice { 337 atomicLock.Lock()
483 return word64Slice{structPointer_field(p, f)} 338 defer atomicLock.Unlock()
339 return *p
340}
341func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) {
342 atomicLock.Lock()
343 defer atomicLock.Unlock()
344 *p = v
484} 345}
346func atomicLoadDiscardInfo(p **discardInfo) *discardInfo {
347 atomicLock.Lock()
348 defer atomicLock.Unlock()
349 return *p
350}
351func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) {
352 atomicLock.Lock()
353 defer atomicLock.Unlock()
354 *p = v
355}
356
357var atomicLock sync.Mutex
diff --git a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go
index 6b5567d..d55a335 100644
--- a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go
+++ b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go
@@ -29,7 +29,7 @@
29// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 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. 30// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 31
32// +build !appengine,!js 32// +build !purego,!appengine,!js
33 33
34// This file contains the implementation of the proto field accesses using package unsafe. 34// This file contains the implementation of the proto field accesses using package unsafe.
35 35
@@ -37,38 +37,13 @@ package proto
37 37
38import ( 38import (
39 "reflect" 39 "reflect"
40 "sync/atomic"
40 "unsafe" 41 "unsafe"
41) 42)
42 43
43// NOTE: These type_Foo functions would more idiomatically be methods, 44const unsafeAllowed = true
44// but Go does not allow methods on pointer types, and we must preserve
45// some pointer type for the garbage collector. We use these
46// funcs with clunky names as our poor approximation to methods.
47//
48// An alternative would be
49// type structPointer struct { p unsafe.Pointer }
50// but that does not registerize as well.
51
52// A structPointer is a pointer to a struct.
53type structPointer unsafe.Pointer
54
55// toStructPointer returns a structPointer equivalent to the given reflect value.
56func toStructPointer(v reflect.Value) structPointer {
57 return structPointer(unsafe.Pointer(v.Pointer()))
58}
59
60// IsNil reports whether p is nil.
61func structPointer_IsNil(p structPointer) bool {
62 return p == nil
63}
64
65// Interface returns the struct pointer, assumed to have element type t,
66// as an interface value.
67func structPointer_Interface(p structPointer, t reflect.Type) interface{} {
68 return reflect.NewAt(t, unsafe.Pointer(p)).Interface()
69}
70 45
71// A field identifies a field in a struct, accessible from a structPointer. 46// A field identifies a field in a struct, accessible from a pointer.
72// In this implementation, a field is identified by its byte offset from the start of the struct. 47// In this implementation, a field is identified by its byte offset from the start of the struct.
73type field uintptr 48type field uintptr
74 49
@@ -80,191 +55,254 @@ func toField(f *reflect.StructField) field {
80// invalidField is an invalid field identifier. 55// invalidField is an invalid field identifier.
81const invalidField = ^field(0) 56const invalidField = ^field(0)
82 57
58// zeroField is a noop when calling pointer.offset.
59const zeroField = field(0)
60
83// IsValid reports whether the field identifier is valid. 61// IsValid reports whether the field identifier is valid.
84func (f field) IsValid() bool { 62func (f field) IsValid() bool {
85 return f != ^field(0) 63 return f != invalidField
86} 64}
87 65
88// Bytes returns the address of a []byte field in the struct. 66// The pointer type below is for the new table-driven encoder/decoder.
89func structPointer_Bytes(p structPointer, f field) *[]byte { 67// The implementation here uses unsafe.Pointer to create a generic pointer.
90 return (*[]byte)(unsafe.Pointer(uintptr(p) + uintptr(f))) 68// In pointer_reflect.go we use reflect instead of unsafe to implement
69// the same (but slower) interface.
70type pointer struct {
71 p unsafe.Pointer
91} 72}
92 73
93// BytesSlice returns the address of a [][]byte field in the struct. 74// size of pointer
94func structPointer_BytesSlice(p structPointer, f field) *[][]byte { 75var ptrSize = unsafe.Sizeof(uintptr(0))
95 return (*[][]byte)(unsafe.Pointer(uintptr(p) + uintptr(f)))
96}
97 76
98// Bool returns the address of a *bool field in the struct. 77// toPointer converts an interface of pointer type to a pointer
99func structPointer_Bool(p structPointer, f field) **bool { 78// that points to the same target.
100 return (**bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) 79func toPointer(i *Message) pointer {
80 // Super-tricky - read pointer out of data word of interface value.
81 // Saves ~25ns over the equivalent:
82 // return valToPointer(reflect.ValueOf(*i))
83 return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
101} 84}
102 85
103// BoolVal returns the address of a bool field in the struct. 86// toAddrPointer converts an interface to a pointer that points to
104func structPointer_BoolVal(p structPointer, f field) *bool { 87// the interface data.
105 return (*bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) 88func toAddrPointer(i *interface{}, isptr bool) pointer {
89 // Super-tricky - read or get the address of data word of interface value.
90 if isptr {
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.
93 return pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)}
94 }
95 // The interface is not of pointer type. The data word is the pointer
96 // to the data.
97 return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]}
106} 98}
107 99
108// BoolSlice returns the address of a []bool field in the struct. 100// valToPointer converts v to a pointer. v must be of pointer type.
109func structPointer_BoolSlice(p structPointer, f field) *[]bool { 101func valToPointer(v reflect.Value) pointer {
110 return (*[]bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) 102 return pointer{p: unsafe.Pointer(v.Pointer())}
111} 103}
112 104
113// String returns the address of a *string field in the struct. 105// offset converts from a pointer to a structure to a pointer to
114func structPointer_String(p structPointer, f field) **string { 106// one of its fields.
115 return (**string)(unsafe.Pointer(uintptr(p) + uintptr(f))) 107func (p pointer) offset(f field) pointer {
108 // For safety, we should panic if !f.IsValid, however calling panic causes
109 // this to no longer be inlineable, which is a serious performance cost.
110 /*
111 if !f.IsValid() {
112 panic("invalid field")
113 }
114 */
115 return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))}
116} 116}
117 117
118// StringVal returns the address of a string field in the struct. 118func (p pointer) isNil() bool {
119func structPointer_StringVal(p structPointer, f field) *string { 119 return p.p == nil
120 return (*string)(unsafe.Pointer(uintptr(p) + uintptr(f)))
121} 120}
122 121
123// StringSlice returns the address of a []string field in the struct. 122func (p pointer) toInt64() *int64 {
124func structPointer_StringSlice(p structPointer, f field) *[]string { 123 return (*int64)(p.p)
125 return (*[]string)(unsafe.Pointer(uintptr(p) + uintptr(f)))
126} 124}
127 125func (p pointer) toInt64Ptr() **int64 {
128// ExtMap returns the address of an extension map field in the struct. 126 return (**int64)(p.p)
129func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions {
130 return (*XXX_InternalExtensions)(unsafe.Pointer(uintptr(p) + uintptr(f)))
131} 127}
132 128func (p pointer) toInt64Slice() *[]int64 {
133func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension { 129 return (*[]int64)(p.p)
134 return (*map[int32]Extension)(unsafe.Pointer(uintptr(p) + uintptr(f)))
135} 130}
136 131func (p pointer) toInt32() *int32 {
137// NewAt returns the reflect.Value for a pointer to a field in the struct. 132 return (*int32)(p.p)
138func structPointer_NewAt(p structPointer, f field, typ reflect.Type) reflect.Value {
139 return reflect.NewAt(typ, unsafe.Pointer(uintptr(p)+uintptr(f)))
140} 133}
141 134
142// SetStructPointer writes a *struct field in the struct. 135// See pointer_reflect.go for why toInt32Ptr/Slice doesn't exist.
143func structPointer_SetStructPointer(p structPointer, f field, q structPointer) { 136/*
144 *(*structPointer)(unsafe.Pointer(uintptr(p) + uintptr(f))) = q 137 func (p pointer) toInt32Ptr() **int32 {
138 return (**int32)(p.p)
139 }
140 func (p pointer) toInt32Slice() *[]int32 {
141 return (*[]int32)(p.p)
142 }
143*/
144func (p pointer) getInt32Ptr() *int32 {
145 return *(**int32)(p.p)
145} 146}
146 147func (p pointer) setInt32Ptr(v int32) {
147// GetStructPointer reads a *struct field in the struct. 148 *(**int32)(p.p) = &v
148func structPointer_GetStructPointer(p structPointer, f field) structPointer {
149 return *(*structPointer)(unsafe.Pointer(uintptr(p) + uintptr(f)))
150} 149}
151 150
152// StructPointerSlice the address of a []*struct field in the struct. 151// getInt32Slice loads a []int32 from p.
153func structPointer_StructPointerSlice(p structPointer, f field) *structPointerSlice { 152// The value returned is aliased with the original slice.
154 return (*structPointerSlice)(unsafe.Pointer(uintptr(p) + uintptr(f))) 153// This behavior differs from the implementation in pointer_reflect.go.
154func (p pointer) getInt32Slice() []int32 {
155 return *(*[]int32)(p.p)
155} 156}
156 157
157// A structPointerSlice represents a slice of pointers to structs (themselves submessages or groups). 158// setInt32Slice stores a []int32 to p.
158type structPointerSlice []structPointer 159// The value set is aliased with the input slice.
159 160// This behavior differs from the implementation in pointer_reflect.go.
160func (v *structPointerSlice) Len() int { return len(*v) } 161func (p pointer) setInt32Slice(v []int32) {
161func (v *structPointerSlice) Index(i int) structPointer { return (*v)[i] } 162 *(*[]int32)(p.p) = v
162func (v *structPointerSlice) Append(p structPointer) { *v = append(*v, p) }
163
164// A word32 is the address of a "pointer to 32-bit value" field.
165type word32 **uint32
166
167// IsNil reports whether *v is nil.
168func word32_IsNil(p word32) bool {
169 return *p == nil
170} 163}
171 164
172// Set sets *v to point at a newly allocated word set to x. 165// TODO: Can we get rid of appendInt32Slice and use setInt32Slice instead?
173func word32_Set(p word32, o *Buffer, x uint32) { 166func (p pointer) appendInt32Slice(v int32) {
174 if len(o.uint32s) == 0 { 167 s := (*[]int32)(p.p)
175 o.uint32s = make([]uint32, uint32PoolSize) 168 *s = append(*s, v)
176 }
177 o.uint32s[0] = x
178 *p = &o.uint32s[0]
179 o.uint32s = o.uint32s[1:]
180} 169}
181 170
182// Get gets the value pointed at by *v. 171func (p pointer) toUint64() *uint64 {
183func word32_Get(p word32) uint32 { 172 return (*uint64)(p.p)
184 return **p
185} 173}
186 174func (p pointer) toUint64Ptr() **uint64 {
187// Word32 returns the address of a *int32, *uint32, *float32, or *enum field in the struct. 175 return (**uint64)(p.p)
188func structPointer_Word32(p structPointer, f field) word32 {
189 return word32((**uint32)(unsafe.Pointer(uintptr(p) + uintptr(f))))
190} 176}
191 177func (p pointer) toUint64Slice() *[]uint64 {
192// A word32Val is the address of a 32-bit value field. 178 return (*[]uint64)(p.p)
193type word32Val *uint32
194
195// Set sets *p to x.
196func word32Val_Set(p word32Val, x uint32) {
197 *p = x
198} 179}
199 180func (p pointer) toUint32() *uint32 {
200// Get gets the value pointed at by p. 181 return (*uint32)(p.p)
201func word32Val_Get(p word32Val) uint32 {
202 return *p
203} 182}
204 183func (p pointer) toUint32Ptr() **uint32 {
205// Word32Val returns the address of a *int32, *uint32, *float32, or *enum field in the struct. 184 return (**uint32)(p.p)
206func structPointer_Word32Val(p structPointer, f field) word32Val {
207 return word32Val((*uint32)(unsafe.Pointer(uintptr(p) + uintptr(f))))
208} 185}
209 186func (p pointer) toUint32Slice() *[]uint32 {
210// A word32Slice is a slice of 32-bit values. 187 return (*[]uint32)(p.p)
211type word32Slice []uint32
212
213func (v *word32Slice) Append(x uint32) { *v = append(*v, x) }
214func (v *word32Slice) Len() int { return len(*v) }
215func (v *word32Slice) Index(i int) uint32 { return (*v)[i] }
216
217// Word32Slice returns the address of a []int32, []uint32, []float32, or []enum field in the struct.
218func structPointer_Word32Slice(p structPointer, f field) *word32Slice {
219 return (*word32Slice)(unsafe.Pointer(uintptr(p) + uintptr(f)))
220} 188}
221 189func (p pointer) toBool() *bool {
222// word64 is like word32 but for 64-bit values. 190 return (*bool)(p.p)
223type word64 **uint64
224
225func word64_Set(p word64, o *Buffer, x uint64) {
226 if len(o.uint64s) == 0 {
227 o.uint64s = make([]uint64, uint64PoolSize)
228 }
229 o.uint64s[0] = x
230 *p = &o.uint64s[0]
231 o.uint64s = o.uint64s[1:]
232} 191}
233 192func (p pointer) toBoolPtr() **bool {
234func word64_IsNil(p word64) bool { 193 return (**bool)(p.p)
235 return *p == nil
236} 194}
237 195func (p pointer) toBoolSlice() *[]bool {
238func word64_Get(p word64) uint64 { 196 return (*[]bool)(p.p)
239 return **p 197}
198func (p pointer) toFloat64() *float64 {
199 return (*float64)(p.p)
200}
201func (p pointer) toFloat64Ptr() **float64 {
202 return (**float64)(p.p)
203}
204func (p pointer) toFloat64Slice() *[]float64 {
205 return (*[]float64)(p.p)
206}
207func (p pointer) toFloat32() *float32 {
208 return (*float32)(p.p)
209}
210func (p pointer) toFloat32Ptr() **float32 {
211 return (**float32)(p.p)
212}
213func (p pointer) toFloat32Slice() *[]float32 {
214 return (*[]float32)(p.p)
215}
216func (p pointer) toString() *string {
217 return (*string)(p.p)
218}
219func (p pointer) toStringPtr() **string {
220 return (**string)(p.p)
221}
222func (p pointer) toStringSlice() *[]string {
223 return (*[]string)(p.p)
224}
225func (p pointer) toBytes() *[]byte {
226 return (*[]byte)(p.p)
227}
228func (p pointer) toBytesSlice() *[][]byte {
229 return (*[][]byte)(p.p)
230}
231func (p pointer) toExtensions() *XXX_InternalExtensions {
232 return (*XXX_InternalExtensions)(p.p)
233}
234func (p pointer) toOldExtensions() *map[int32]Extension {
235 return (*map[int32]Extension)(p.p)
240} 236}
241 237
242func structPointer_Word64(p structPointer, f field) word64 { 238// getPointerSlice loads []*T from p as a []pointer.
243 return word64((**uint64)(unsafe.Pointer(uintptr(p) + uintptr(f)))) 239// The value returned is aliased with the original slice.
240// This behavior differs from the implementation in pointer_reflect.go.
241func (p pointer) getPointerSlice() []pointer {
242 // Super-tricky - p should point to a []*T where T is a
243 // message type. We load it as []pointer.
244 return *(*[]pointer)(p.p)
244} 245}
245 246
246// word64Val is like word32Val but for 64-bit values. 247// setPointerSlice stores []pointer into p as a []*T.
247type word64Val *uint64 248// The value set is aliased with the input slice.
249// This behavior differs from the implementation in pointer_reflect.go.
250func (p pointer) setPointerSlice(v []pointer) {
251 // Super-tricky - p should point to a []*T where T is a
252 // message type. We store it as []pointer.
253 *(*[]pointer)(p.p) = v
254}
248 255
249func word64Val_Set(p word64Val, o *Buffer, x uint64) { 256// getPointer loads the pointer at p and returns it.
250 *p = x 257func (p pointer) getPointer() pointer {
258 return pointer{p: *(*unsafe.Pointer)(p.p)}
251} 259}
252 260
253func word64Val_Get(p word64Val) uint64 { 261// setPointer stores the pointer q at p.
254 return *p 262func (p pointer) setPointer(q pointer) {
263 *(*unsafe.Pointer)(p.p) = q.p
255} 264}
256 265
257func structPointer_Word64Val(p structPointer, f field) word64Val { 266// append q to the slice pointed to by p.
258 return word64Val((*uint64)(unsafe.Pointer(uintptr(p) + uintptr(f)))) 267func (p pointer) appendPointer(q pointer) {
268 s := (*[]unsafe.Pointer)(p.p)
269 *s = append(*s, q.p)
259} 270}
260 271
261// word64Slice is like word32Slice but for 64-bit values. 272// getInterfacePointer returns a pointer that points to the
262type word64Slice []uint64 273// interface data of the interface pointed by p.
274func (p pointer) getInterfacePointer() pointer {
275 // Super-tricky - read pointer out of data word of interface value.
276 return pointer{p: (*(*[2]unsafe.Pointer)(p.p))[1]}
277}
263 278
264func (v *word64Slice) Append(x uint64) { *v = append(*v, x) } 279// asPointerTo returns a reflect.Value that is a pointer to an
265func (v *word64Slice) Len() int { return len(*v) } 280// object of type t stored at p.
266func (v *word64Slice) Index(i int) uint64 { return (*v)[i] } 281func (p pointer) asPointerTo(t reflect.Type) reflect.Value {
282 return reflect.NewAt(t, p.p)
283}
267 284
268func structPointer_Word64Slice(p structPointer, f field) *word64Slice { 285func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo {
269 return (*word64Slice)(unsafe.Pointer(uintptr(p) + uintptr(f))) 286 return (*unmarshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
287}
288func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) {
289 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))
290}
291func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo {
292 return (*marshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
293}
294func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) {
295 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))
296}
297func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo {
298 return (*mergeInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
299}
300func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) {
301 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))
302}
303func atomicLoadDiscardInfo(p **discardInfo) *discardInfo {
304 return (*discardInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
305}
306func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) {
307 atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))
270} 308}
diff --git a/vendor/github.com/golang/protobuf/proto/properties.go b/vendor/github.com/golang/protobuf/proto/properties.go
index ec2289c..50b99b8 100644
--- a/vendor/github.com/golang/protobuf/proto/properties.go
+++ b/vendor/github.com/golang/protobuf/proto/properties.go
@@ -58,42 +58,6 @@ const (
58 WireFixed32 = 5 58 WireFixed32 = 5
59) 59)
60 60
61const startSize = 10 // initial slice/string sizes
62
63// Encoders are defined in encode.go
64// An encoder outputs the full representation of a field, including its
65// tag and encoder type.
66type encoder func(p *Buffer, prop *Properties, base structPointer) error
67
68// A valueEncoder encodes a single integer in a particular encoding.
69type valueEncoder func(o *Buffer, x uint64) error
70
71// Sizers are defined in encode.go
72// A sizer returns the encoded size of a field, including its tag and encoder
73// type.
74type sizer func(prop *Properties, base structPointer) int
75
76// A valueSizer returns the encoded size of a single integer in a particular
77// encoding.
78type valueSizer func(x uint64) int
79
80// Decoders are defined in decode.go
81// A decoder creates a value from its wire representation.
82// Unrecognized subelements are saved in unrec.
83type decoder func(p *Buffer, prop *Properties, base structPointer) error
84
85// A valueDecoder decodes a single integer in a particular encoding.
86type valueDecoder func(o *Buffer) (x uint64, err error)
87
88// A oneofMarshaler does the marshaling for all oneof fields in a message.
89type oneofMarshaler func(Message, *Buffer) error
90
91// A oneofUnmarshaler does the unmarshaling for a oneof field in a message.
92type oneofUnmarshaler func(Message, int, int, *Buffer) (bool, error)
93
94// A oneofSizer does the sizing for all oneof fields in a message.
95type oneofSizer func(Message) int
96
97// tagMap is an optimization over map[int]int for typical protocol buffer 61// tagMap is an optimization over map[int]int for typical protocol buffer
98// use-cases. Encoded protocol buffers are often in tag order with small tag 62// use-cases. Encoded protocol buffers are often in tag order with small tag
99// numbers. 63// numbers.
@@ -140,13 +104,6 @@ type StructProperties struct {
140 decoderTags tagMap // map from proto tag to struct field number 104 decoderTags tagMap // map from proto tag to struct field number
141 decoderOrigNames map[string]int // map from original name to struct field number 105 decoderOrigNames map[string]int // map from original name to struct field number
142 order []int // list of struct field numbers in tag order 106 order []int // list of struct field numbers in tag order
143 unrecField field // field id of the XXX_unrecognized []byte field
144 extendable bool // is this an extendable proto
145
146 oneofMarshaler oneofMarshaler
147 oneofUnmarshaler oneofUnmarshaler
148 oneofSizer oneofSizer
149 stype reflect.Type
150 107
151 // OneofTypes contains information about the oneof fields in this message. 108 // OneofTypes contains information about the oneof fields in this message.
152 // It is keyed by the original name of a field. 109 // It is keyed by the original name of a field.
@@ -182,41 +139,24 @@ type Properties struct {
182 Repeated bool 139 Repeated bool
183 Packed bool // relevant for repeated primitives only 140 Packed bool // relevant for repeated primitives only
184 Enum string // set for enum types only 141 Enum string // set for enum types only
185 proto3 bool // whether this is known to be a proto3 field; set for []byte only 142 proto3 bool // whether this is known to be a proto3 field
186 oneof bool // whether this is a oneof field 143 oneof bool // whether this is a oneof field
187 144
188 Default string // default value 145 Default string // default value
189 HasDefault bool // whether an explicit default was provided 146 HasDefault bool // whether an explicit default was provided
190 def_uint64 uint64 147
191 148 stype reflect.Type // set for struct types only
192 enc encoder 149 sprop *StructProperties // set for struct types only
193 valEnc valueEncoder // set for bool and numeric types only 150
194 field field 151 mtype reflect.Type // set for map types only
195 tagcode []byte // encoding of EncodeVarint((Tag<<3)|WireType) 152 MapKeyProp *Properties // set for map types only
196 tagbuf [8]byte 153 MapValProp *Properties // set for map types only
197 stype reflect.Type // set for struct types only
198 sprop *StructProperties // set for struct types only
199 isMarshaler bool
200 isUnmarshaler bool
201
202 mtype reflect.Type // set for map types only
203 mkeyprop *Properties // set for map types only
204 mvalprop *Properties // set for map types only
205
206 size sizer
207 valSize valueSizer // set for bool and numeric types only
208
209 dec decoder
210 valDec valueDecoder // set for bool and numeric types only
211
212 // If this is a packable field, this will be the decoder for the packed version of the field.
213 packedDec decoder
214} 154}
215 155
216// String formats the properties in the protobuf struct field tag style. 156// String formats the properties in the protobuf struct field tag style.
217func (p *Properties) String() string { 157func (p *Properties) String() string {
218 s := p.Wire 158 s := p.Wire
219 s = "," 159 s += ","
220 s += strconv.Itoa(p.Tag) 160 s += strconv.Itoa(p.Tag)
221 if p.Required { 161 if p.Required {
222 s += ",req" 162 s += ",req"
@@ -262,29 +202,14 @@ func (p *Properties) Parse(s string) {
262 switch p.Wire { 202 switch p.Wire {
263 case "varint": 203 case "varint":
264 p.WireType = WireVarint 204 p.WireType = WireVarint
265 p.valEnc = (*Buffer).EncodeVarint
266 p.valDec = (*Buffer).DecodeVarint
267 p.valSize = sizeVarint
268 case "fixed32": 205 case "fixed32":
269 p.WireType = WireFixed32 206 p.WireType = WireFixed32
270 p.valEnc = (*Buffer).EncodeFixed32
271 p.valDec = (*Buffer).DecodeFixed32
272 p.valSize = sizeFixed32
273 case "fixed64": 207 case "fixed64":
274 p.WireType = WireFixed64 208 p.WireType = WireFixed64
275 p.valEnc = (*Buffer).EncodeFixed64
276 p.valDec = (*Buffer).DecodeFixed64
277 p.valSize = sizeFixed64
278 case "zigzag32": 209 case "zigzag32":
279 p.WireType = WireVarint 210 p.WireType = WireVarint
280 p.valEnc = (*Buffer).EncodeZigzag32
281 p.valDec = (*Buffer).DecodeZigzag32
282 p.valSize = sizeZigzag32
283 case "zigzag64": 211 case "zigzag64":
284 p.WireType = WireVarint 212 p.WireType = WireVarint
285 p.valEnc = (*Buffer).EncodeZigzag64
286 p.valDec = (*Buffer).DecodeZigzag64
287 p.valSize = sizeZigzag64
288 case "bytes", "group": 213 case "bytes", "group":
289 p.WireType = WireBytes 214 p.WireType = WireBytes
290 // no numeric converter for non-numeric types 215 // no numeric converter for non-numeric types
@@ -299,6 +224,7 @@ func (p *Properties) Parse(s string) {
299 return 224 return
300 } 225 }
301 226
227outer:
302 for i := 2; i < len(fields); i++ { 228 for i := 2; i < len(fields); i++ {
303 f := fields[i] 229 f := fields[i]
304 switch { 230 switch {
@@ -326,256 +252,41 @@ func (p *Properties) Parse(s string) {
326 if i+1 < len(fields) { 252 if i+1 < len(fields) {
327 // Commas aren't escaped, and def is always last. 253 // Commas aren't escaped, and def is always last.
328 p.Default += "," + strings.Join(fields[i+1:], ",") 254 p.Default += "," + strings.Join(fields[i+1:], ",")
329 break 255 break outer
330 } 256 }
331 } 257 }
332 } 258 }
333} 259}
334 260
335func logNoSliceEnc(t1, t2 reflect.Type) {
336 fmt.Fprintf(os.Stderr, "proto: no slice oenc for %T = []%T\n", t1, t2)
337}
338
339var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem() 261var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem()
340 262
341// Initialize the fields for encoding and decoding. 263// setFieldProps initializes the field properties for submessages and maps.
342func (p *Properties) setEncAndDec(typ reflect.Type, f *reflect.StructField, lockGetProp bool) { 264func (p *Properties) setFieldProps(typ reflect.Type, f *reflect.StructField, lockGetProp bool) {
343 p.enc = nil
344 p.dec = nil
345 p.size = nil
346
347 switch t1 := typ; t1.Kind() { 265 switch t1 := typ; t1.Kind() {
348 default:
349 fmt.Fprintf(os.Stderr, "proto: no coders for %v\n", t1)
350
351 // proto3 scalar types
352
353 case reflect.Bool:
354 p.enc = (*Buffer).enc_proto3_bool
355 p.dec = (*Buffer).dec_proto3_bool
356 p.size = size_proto3_bool
357 case reflect.Int32:
358 p.enc = (*Buffer).enc_proto3_int32
359 p.dec = (*Buffer).dec_proto3_int32
360 p.size = size_proto3_int32
361 case reflect.Uint32:
362 p.enc = (*Buffer).enc_proto3_uint32
363 p.dec = (*Buffer).dec_proto3_int32 // can reuse
364 p.size = size_proto3_uint32
365 case reflect.Int64, reflect.Uint64:
366 p.enc = (*Buffer).enc_proto3_int64
367 p.dec = (*Buffer).dec_proto3_int64
368 p.size = size_proto3_int64
369 case reflect.Float32:
370 p.enc = (*Buffer).enc_proto3_uint32 // can just treat them as bits
371 p.dec = (*Buffer).dec_proto3_int32
372 p.size = size_proto3_uint32
373 case reflect.Float64:
374 p.enc = (*Buffer).enc_proto3_int64 // can just treat them as bits
375 p.dec = (*Buffer).dec_proto3_int64
376 p.size = size_proto3_int64
377 case reflect.String:
378 p.enc = (*Buffer).enc_proto3_string
379 p.dec = (*Buffer).dec_proto3_string
380 p.size = size_proto3_string
381
382 case reflect.Ptr: 266 case reflect.Ptr:
383 switch t2 := t1.Elem(); t2.Kind() { 267 if t1.Elem().Kind() == reflect.Struct {
384 default:
385 fmt.Fprintf(os.Stderr, "proto: no encoder function for %v -> %v\n", t1, t2)
386 break
387 case reflect.Bool:
388 p.enc = (*Buffer).enc_bool
389 p.dec = (*Buffer).dec_bool
390 p.size = size_bool
391 case reflect.Int32:
392 p.enc = (*Buffer).enc_int32
393 p.dec = (*Buffer).dec_int32
394 p.size = size_int32
395 case reflect.Uint32:
396 p.enc = (*Buffer).enc_uint32
397 p.dec = (*Buffer).dec_int32 // can reuse
398 p.size = size_uint32
399 case reflect.Int64, reflect.Uint64:
400 p.enc = (*Buffer).enc_int64
401 p.dec = (*Buffer).dec_int64
402 p.size = size_int64
403 case reflect.Float32:
404 p.enc = (*Buffer).enc_uint32 // can just treat them as bits
405 p.dec = (*Buffer).dec_int32
406 p.size = size_uint32
407 case reflect.Float64:
408 p.enc = (*Buffer).enc_int64 // can just treat them as bits
409 p.dec = (*Buffer).dec_int64
410 p.size = size_int64
411 case reflect.String:
412 p.enc = (*Buffer).enc_string
413 p.dec = (*Buffer).dec_string
414 p.size = size_string
415 case reflect.Struct:
416 p.stype = t1.Elem() 268 p.stype = t1.Elem()
417 p.isMarshaler = isMarshaler(t1)
418 p.isUnmarshaler = isUnmarshaler(t1)
419 if p.Wire == "bytes" {
420 p.enc = (*Buffer).enc_struct_message
421 p.dec = (*Buffer).dec_struct_message
422 p.size = size_struct_message
423 } else {
424 p.enc = (*Buffer).enc_struct_group
425 p.dec = (*Buffer).dec_struct_group
426 p.size = size_struct_group
427 }
428 } 269 }
429 270
430 case reflect.Slice: 271 case reflect.Slice:
431 switch t2 := t1.Elem(); t2.Kind() { 272 if t2 := t1.Elem(); t2.Kind() == reflect.Ptr && t2.Elem().Kind() == reflect.Struct {
432 default: 273 p.stype = t2.Elem()
433 logNoSliceEnc(t1, t2)
434 break
435 case reflect.Bool:
436 if p.Packed {
437 p.enc = (*Buffer).enc_slice_packed_bool
438 p.size = size_slice_packed_bool
439 } else {
440 p.enc = (*Buffer).enc_slice_bool
441 p.size = size_slice_bool
442 }
443 p.dec = (*Buffer).dec_slice_bool
444 p.packedDec = (*Buffer).dec_slice_packed_bool
445 case reflect.Int32:
446 if p.Packed {
447 p.enc = (*Buffer).enc_slice_packed_int32
448 p.size = size_slice_packed_int32
449 } else {
450 p.enc = (*Buffer).enc_slice_int32
451 p.size = size_slice_int32
452 }
453 p.dec = (*Buffer).dec_slice_int32
454 p.packedDec = (*Buffer).dec_slice_packed_int32
455 case reflect.Uint32:
456 if p.Packed {
457 p.enc = (*Buffer).enc_slice_packed_uint32
458 p.size = size_slice_packed_uint32
459 } else {
460 p.enc = (*Buffer).enc_slice_uint32
461 p.size = size_slice_uint32
462 }
463 p.dec = (*Buffer).dec_slice_int32
464 p.packedDec = (*Buffer).dec_slice_packed_int32
465 case reflect.Int64, reflect.Uint64:
466 if p.Packed {
467 p.enc = (*Buffer).enc_slice_packed_int64
468 p.size = size_slice_packed_int64
469 } else {
470 p.enc = (*Buffer).enc_slice_int64
471 p.size = size_slice_int64
472 }
473 p.dec = (*Buffer).dec_slice_int64
474 p.packedDec = (*Buffer).dec_slice_packed_int64
475 case reflect.Uint8:
476 p.dec = (*Buffer).dec_slice_byte
477 if p.proto3 {
478 p.enc = (*Buffer).enc_proto3_slice_byte
479 p.size = size_proto3_slice_byte
480 } else {
481 p.enc = (*Buffer).enc_slice_byte
482 p.size = size_slice_byte
483 }
484 case reflect.Float32, reflect.Float64:
485 switch t2.Bits() {
486 case 32:
487 // can just treat them as bits
488 if p.Packed {
489 p.enc = (*Buffer).enc_slice_packed_uint32
490 p.size = size_slice_packed_uint32
491 } else {
492 p.enc = (*Buffer).enc_slice_uint32
493 p.size = size_slice_uint32
494 }
495 p.dec = (*Buffer).dec_slice_int32
496 p.packedDec = (*Buffer).dec_slice_packed_int32
497 case 64:
498 // can just treat them as bits
499 if p.Packed {
500 p.enc = (*Buffer).enc_slice_packed_int64
501 p.size = size_slice_packed_int64
502 } else {
503 p.enc = (*Buffer).enc_slice_int64
504 p.size = size_slice_int64
505 }
506 p.dec = (*Buffer).dec_slice_int64
507 p.packedDec = (*Buffer).dec_slice_packed_int64
508 default:
509 logNoSliceEnc(t1, t2)
510 break
511 }
512 case reflect.String:
513 p.enc = (*Buffer).enc_slice_string
514 p.dec = (*Buffer).dec_slice_string
515 p.size = size_slice_string
516 case reflect.Ptr:
517 switch t3 := t2.Elem(); t3.Kind() {
518 default:
519 fmt.Fprintf(os.Stderr, "proto: no ptr oenc for %T -> %T -> %T\n", t1, t2, t3)
520 break
521 case reflect.Struct:
522 p.stype = t2.Elem()
523 p.isMarshaler = isMarshaler(t2)
524 p.isUnmarshaler = isUnmarshaler(t2)
525 if p.Wire == "bytes" {
526 p.enc = (*Buffer).enc_slice_struct_message
527 p.dec = (*Buffer).dec_slice_struct_message
528 p.size = size_slice_struct_message
529 } else {
530 p.enc = (*Buffer).enc_slice_struct_group
531 p.dec = (*Buffer).dec_slice_struct_group
532 p.size = size_slice_struct_group
533 }
534 }
535 case reflect.Slice:
536 switch t2.Elem().Kind() {
537 default:
538 fmt.Fprintf(os.Stderr, "proto: no slice elem oenc for %T -> %T -> %T\n", t1, t2, t2.Elem())
539 break
540 case reflect.Uint8:
541 p.enc = (*Buffer).enc_slice_slice_byte
542 p.dec = (*Buffer).dec_slice_slice_byte
543 p.size = size_slice_slice_byte
544 }
545 } 274 }
546 275
547 case reflect.Map: 276 case reflect.Map:
548 p.enc = (*Buffer).enc_new_map
549 p.dec = (*Buffer).dec_new_map
550 p.size = size_new_map
551
552 p.mtype = t1 277 p.mtype = t1
553 p.mkeyprop = &Properties{} 278 p.MapKeyProp = &Properties{}
554 p.mkeyprop.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) 279 p.MapKeyProp.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp)
555 p.mvalprop = &Properties{} 280 p.MapValProp = &Properties{}
556 vtype := p.mtype.Elem() 281 vtype := p.mtype.Elem()
557 if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice { 282 if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice {
558 // The value type is not a message (*T) or bytes ([]byte), 283 // The value type is not a message (*T) or bytes ([]byte),
559 // so we need encoders for the pointer to this type. 284 // so we need encoders for the pointer to this type.
560 vtype = reflect.PtrTo(vtype) 285 vtype = reflect.PtrTo(vtype)
561 } 286 }
562 p.mvalprop.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) 287 p.MapValProp.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp)
563 } 288 }
564 289
565 // precalculate tag code
566 wire := p.WireType
567 if p.Packed {
568 wire = WireBytes
569 }
570 x := uint32(p.Tag)<<3 | uint32(wire)
571 i := 0
572 for i = 0; x > 127; i++ {
573 p.tagbuf[i] = 0x80 | uint8(x&0x7F)
574 x >>= 7
575 }
576 p.tagbuf[i] = uint8(x)
577 p.tagcode = p.tagbuf[0 : i+1]
578
579 if p.stype != nil { 290 if p.stype != nil {
580 if lockGetProp { 291 if lockGetProp {
581 p.sprop = GetProperties(p.stype) 292 p.sprop = GetProperties(p.stype)
@@ -586,32 +297,9 @@ func (p *Properties) setEncAndDec(typ reflect.Type, f *reflect.StructField, lock
586} 297}
587 298
588var ( 299var (
589 marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem() 300 marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem()
590 unmarshalerType = reflect.TypeOf((*Unmarshaler)(nil)).Elem()
591) 301)
592 302
593// isMarshaler reports whether type t implements Marshaler.
594func isMarshaler(t reflect.Type) bool {
595 // We're checking for (likely) pointer-receiver methods
596 // so if t is not a pointer, something is very wrong.
597 // The calls above only invoke isMarshaler on pointer types.
598 if t.Kind() != reflect.Ptr {
599 panic("proto: misuse of isMarshaler")
600 }
601 return t.Implements(marshalerType)
602}
603
604// isUnmarshaler reports whether type t implements Unmarshaler.
605func isUnmarshaler(t reflect.Type) bool {
606 // We're checking for (likely) pointer-receiver methods
607 // so if t is not a pointer, something is very wrong.
608 // The calls above only invoke isUnmarshaler on pointer types.
609 if t.Kind() != reflect.Ptr {
610 panic("proto: misuse of isUnmarshaler")
611 }
612 return t.Implements(unmarshalerType)
613}
614
615// Init populates the properties from a protocol buffer struct tag. 303// Init populates the properties from a protocol buffer struct tag.
616func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) { 304func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) {
617 p.init(typ, name, tag, f, true) 305 p.init(typ, name, tag, f, true)
@@ -621,14 +309,11 @@ func (p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructF
621 // "bytes,49,opt,def=hello!" 309 // "bytes,49,opt,def=hello!"
622 p.Name = name 310 p.Name = name
623 p.OrigName = name 311 p.OrigName = name
624 if f != nil {
625 p.field = toField(f)
626 }
627 if tag == "" { 312 if tag == "" {
628 return 313 return
629 } 314 }
630 p.Parse(tag) 315 p.Parse(tag)
631 p.setEncAndDec(typ, f, lockGetProp) 316 p.setFieldProps(typ, f, lockGetProp)
632} 317}
633 318
634var ( 319var (
@@ -678,9 +363,6 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {
678 propertiesMap[t] = prop 363 propertiesMap[t] = prop
679 364
680 // build properties 365 // build properties
681 prop.extendable = reflect.PtrTo(t).Implements(extendableProtoType) ||
682 reflect.PtrTo(t).Implements(extendableProtoV1Type)
683 prop.unrecField = invalidField
684 prop.Prop = make([]*Properties, t.NumField()) 366 prop.Prop = make([]*Properties, t.NumField())
685 prop.order = make([]int, t.NumField()) 367 prop.order = make([]int, t.NumField())
686 368
@@ -690,17 +372,6 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {
690 name := f.Name 372 name := f.Name
691 p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false) 373 p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false)
692 374
693 if f.Name == "XXX_InternalExtensions" { // special case
694 p.enc = (*Buffer).enc_exts
695 p.dec = nil // not needed
696 p.size = size_exts
697 } else if f.Name == "XXX_extensions" { // special case
698 p.enc = (*Buffer).enc_map
699 p.dec = nil // not needed
700 p.size = size_map
701 } else if f.Name == "XXX_unrecognized" { // special case
702 prop.unrecField = toField(&f)
703 }
704 oneof := f.Tag.Get("protobuf_oneof") // special case 375 oneof := f.Tag.Get("protobuf_oneof") // special case
705 if oneof != "" { 376 if oneof != "" {
706 // Oneof fields don't use the traditional protobuf tag. 377 // Oneof fields don't use the traditional protobuf tag.
@@ -715,9 +386,6 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {
715 } 386 }
716 print("\n") 387 print("\n")
717 } 388 }
718 if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && oneof == "" {
719 fmt.Fprintln(os.Stderr, "proto: no encoder for", f.Name, f.Type.String(), "[GetProperties]")
720 }
721 } 389 }
722 390
723 // Re-order prop.order. 391 // Re-order prop.order.
@@ -728,8 +396,7 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {
728 } 396 }
729 if om, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok { 397 if om, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok {
730 var oots []interface{} 398 var oots []interface{}
731 prop.oneofMarshaler, prop.oneofUnmarshaler, prop.oneofSizer, oots = om.XXX_OneofFuncs() 399 _, _, _, oots = om.XXX_OneofFuncs()
732 prop.stype = t
733 400
734 // Interpret oneof metadata. 401 // Interpret oneof metadata.
735 prop.OneofTypes = make(map[string]*OneofProperties) 402 prop.OneofTypes = make(map[string]*OneofProperties)
@@ -779,30 +446,6 @@ func getPropertiesLocked(t reflect.Type) *StructProperties {
779 return prop 446 return prop
780} 447}
781 448
782// Return the Properties object for the x[0]'th field of the structure.
783func propByIndex(t reflect.Type, x []int) *Properties {
784 if len(x) != 1 {
785 fmt.Fprintf(os.Stderr, "proto: field index dimension %d (not 1) for type %s\n", len(x), t)
786 return nil
787 }
788 prop := GetProperties(t)
789 return prop.Prop[x[0]]
790}
791
792// Get the address and type of a pointer to a struct from an interface.
793func getbase(pb Message) (t reflect.Type, b structPointer, err error) {
794 if pb == nil {
795 err = ErrNil
796 return
797 }
798 // get the reflect type of the pointer to the struct.
799 t = reflect.TypeOf(pb)
800 // get the address of the struct.
801 value := reflect.ValueOf(pb)
802 b = toStructPointer(value)
803 return
804}
805
806// A global registry of enum types. 449// A global registry of enum types.
807// The generated code will register the generated maps by calling RegisterEnum. 450// The generated code will register the generated maps by calling RegisterEnum.
808 451
@@ -826,20 +469,42 @@ func EnumValueMap(enumType string) map[string]int32 {
826// A registry of all linked message types. 469// A registry of all linked message types.
827// The string is a fully-qualified proto name ("pkg.Message"). 470// The string is a fully-qualified proto name ("pkg.Message").
828var ( 471var (
829 protoTypes = make(map[string]reflect.Type) 472 protoTypedNils = make(map[string]Message) // a map from proto names to typed nil pointers
830 revProtoTypes = make(map[reflect.Type]string) 473 protoMapTypes = make(map[string]reflect.Type) // a map from proto names to map types
474 revProtoTypes = make(map[reflect.Type]string)
831) 475)
832 476
833// RegisterType is called from generated code and maps from the fully qualified 477// RegisterType is called from generated code and maps from the fully qualified
834// proto name to the type (pointer to struct) of the protocol buffer. 478// proto name to the type (pointer to struct) of the protocol buffer.
835func RegisterType(x Message, name string) { 479func RegisterType(x Message, name string) {
836 if _, ok := protoTypes[name]; ok { 480 if _, ok := protoTypedNils[name]; ok {
837 // TODO: Some day, make this a panic. 481 // TODO: Some day, make this a panic.
838 log.Printf("proto: duplicate proto type registered: %s", name) 482 log.Printf("proto: duplicate proto type registered: %s", name)
839 return 483 return
840 } 484 }
841 t := reflect.TypeOf(x) 485 t := reflect.TypeOf(x)
842 protoTypes[name] = t 486 if v := reflect.ValueOf(x); v.Kind() == reflect.Ptr && v.Pointer() == 0 {
487 // Generated code always calls RegisterType with nil x.
488 // This check is just for extra safety.
489 protoTypedNils[name] = x
490 } else {
491 protoTypedNils[name] = reflect.Zero(t).Interface().(Message)
492 }
493 revProtoTypes[t] = name
494}
495
496// RegisterMapType is called from generated code and maps from the fully qualified
497// proto name to the native map type of the proto map definition.
498func RegisterMapType(x interface{}, name string) {
499 if reflect.TypeOf(x).Kind() != reflect.Map {
500 panic(fmt.Sprintf("RegisterMapType(%T, %q); want map", x, name))
501 }
502 if _, ok := protoMapTypes[name]; ok {
503 log.Printf("proto: duplicate proto type registered: %s", name)
504 return
505 }
506 t := reflect.TypeOf(x)
507 protoMapTypes[name] = t
843 revProtoTypes[t] = name 508 revProtoTypes[t] = name
844} 509}
845 510
@@ -855,7 +520,14 @@ func MessageName(x Message) string {
855} 520}
856 521
857// MessageType returns the message type (pointer to struct) for a named message. 522// MessageType returns the message type (pointer to struct) for a named message.
858func MessageType(name string) reflect.Type { return protoTypes[name] } 523// The type is not guaranteed to implement proto.Message if the name refers to a
524// map entry.
525func MessageType(name string) reflect.Type {
526 if t, ok := protoTypedNils[name]; ok {
527 return reflect.TypeOf(t)
528 }
529 return protoMapTypes[name]
530}
859 531
860// A registry of all linked proto files. 532// A registry of all linked proto files.
861var ( 533var (
diff --git a/vendor/github.com/golang/protobuf/proto/table_marshal.go b/vendor/github.com/golang/protobuf/proto/table_marshal.go
new file mode 100644
index 0000000..b167944
--- /dev/null
+++ b/vendor/github.com/golang/protobuf/proto/table_marshal.go
@@ -0,0 +1,2767 @@
1// Go support for Protocol Buffers - Google's data interchange format
2//
3// Copyright 2016 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 (
35 "errors"
36 "fmt"
37 "math"
38 "reflect"
39 "sort"
40 "strconv"
41 "strings"
42 "sync"
43 "sync/atomic"
44 "unicode/utf8"
45)
46
47// a sizer takes a pointer to a field and the size of its tag, computes the size of
48// the encoded data.
49type sizer func(pointer, int) int
50
51// a marshaler takes a byte slice, a pointer to a field, and its tag (in wire format),
52// marshals the field to the end of the slice, returns the slice and error (if any).
53type marshaler func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error)
54
55// marshalInfo is the information used for marshaling a message.
56type marshalInfo struct {
57 typ reflect.Type
58 fields []*marshalFieldInfo
59 unrecognized field // offset of XXX_unrecognized
60 extensions field // offset of XXX_InternalExtensions
61 v1extensions field // offset of XXX_extensions
62 sizecache field // offset of XXX_sizecache
63 initialized int32 // 0 -- only typ is set, 1 -- fully initialized
64 messageset bool // uses message set wire format
65 hasmarshaler bool // has custom marshaler
66 sync.RWMutex // protect extElems map, also for initialization
67 extElems map[int32]*marshalElemInfo // info of extension elements
68}
69
70// marshalFieldInfo is the information used for marshaling a field of a message.
71type marshalFieldInfo struct {
72 field field
73 wiretag uint64 // tag in wire format
74 tagsize int // size of tag in wire format
75 sizer sizer
76 marshaler marshaler
77 isPointer bool
78 required bool // field is required
79 name string // name of the field, for error reporting
80 oneofElems map[reflect.Type]*marshalElemInfo // info of oneof elements
81}
82
83// marshalElemInfo is the information used for marshaling an extension or oneof element.
84type marshalElemInfo struct {
85 wiretag uint64 // tag in wire format
86 tagsize int // size of tag in wire format
87 sizer sizer
88 marshaler marshaler
89 isptr bool // elem is pointer typed, thus interface of this type is a direct interface (extension only)
90}
91
92var (
93 marshalInfoMap = map[reflect.Type]*marshalInfo{}
94 marshalInfoLock sync.Mutex
95)
96
97// getMarshalInfo returns the information to marshal a given type of message.
98// The info it returns may not necessarily initialized.
99// t is the type of the message (NOT the pointer to it).
100func getMarshalInfo(t reflect.Type) *marshalInfo {
101 marshalInfoLock.Lock()
102 u, ok := marshalInfoMap[t]
103 if !ok {
104 u = &marshalInfo{typ: t}
105 marshalInfoMap[t] = u
106 }
107 marshalInfoLock.Unlock()
108 return u
109}
110
111// Size is the entry point from generated code,
112// and should be ONLY called by generated code.
113// It computes the size of encoded data of msg.
114// a is a pointer to a place to store cached marshal info.
115func (a *InternalMessageInfo) Size(msg Message) int {
116 u := getMessageMarshalInfo(msg, a)
117 ptr := toPointer(&msg)
118 if ptr.isNil() {
119 // We get here if msg is a typed nil ((*SomeMessage)(nil)),
120 // so it satisfies the interface, and msg == nil wouldn't
121 // catch it. We don't want crash in this case.
122 return 0
123 }
124 return u.size(ptr)
125}
126
127// Marshal is the entry point from generated code,
128// and should be ONLY called by generated code.
129// It marshals msg to the end of b.
130// a is a pointer to a place to store cached marshal info.
131func (a *InternalMessageInfo) Marshal(b []byte, msg Message, deterministic bool) ([]byte, error) {
132 u := getMessageMarshalInfo(msg, a)
133 ptr := toPointer(&msg)
134 if ptr.isNil() {
135 // We get here if msg is a typed nil ((*SomeMessage)(nil)),
136 // so it satisfies the interface, and msg == nil wouldn't
137 // catch it. We don't want crash in this case.
138 return b, ErrNil
139 }
140 return u.marshal(b, ptr, deterministic)
141}
142
143func getMessageMarshalInfo(msg interface{}, a *InternalMessageInfo) *marshalInfo {
144 // u := a.marshal, but atomically.
145 // We use an atomic here to ensure memory consistency.
146 u := atomicLoadMarshalInfo(&a.marshal)
147 if u == nil {
148 // Get marshal information from type of message.
149 t := reflect.ValueOf(msg).Type()
150 if t.Kind() != reflect.Ptr {
151 panic(fmt.Sprintf("cannot handle non-pointer message type %v", t))
152 }
153 u = getMarshalInfo(t.Elem())
154 // Store it in the cache for later users.
155 // a.marshal = u, but atomically.
156 atomicStoreMarshalInfo(&a.marshal, u)
157 }
158 return u
159}
160
161// size is the main function to compute the size of the encoded data of a message.
162// ptr is the pointer to the message.
163func (u *marshalInfo) size(ptr pointer) int {
164 if atomic.LoadInt32(&u.initialized) == 0 {
165 u.computeMarshalInfo()
166 }
167
168 // If the message can marshal itself, let it do it, for compatibility.
169 // NOTE: This is not efficient.
170 if u.hasmarshaler {
171 m := ptr.asPointerTo(u.typ).Interface().(Marshaler)
172 b, _ := m.Marshal()
173 return len(b)
174 }
175
176 n := 0
177 for _, f := range u.fields {
178 if f.isPointer && ptr.offset(f.field).getPointer().isNil() {
179 // nil pointer always marshals to nothing
180 continue
181 }
182 n += f.sizer(ptr.offset(f.field), f.tagsize)
183 }
184 if u.extensions.IsValid() {
185 e := ptr.offset(u.extensions).toExtensions()
186 if u.messageset {
187 n += u.sizeMessageSet(e)
188 } else {
189 n += u.sizeExtensions(e)
190 }
191 }
192 if u.v1extensions.IsValid() {
193 m := *ptr.offset(u.v1extensions).toOldExtensions()
194 n += u.sizeV1Extensions(m)
195 }
196 if u.unrecognized.IsValid() {
197 s := *ptr.offset(u.unrecognized).toBytes()
198 n += len(s)
199 }
200 // cache the result for use in marshal
201 if u.sizecache.IsValid() {
202 atomic.StoreInt32(ptr.offset(u.sizecache).toInt32(), int32(n))
203 }
204 return n
205}
206
207// cachedsize gets the size from cache. If there is no cache (i.e. message is not generated),
208// fall back to compute the size.
209func (u *marshalInfo) cachedsize(ptr pointer) int {
210 if u.sizecache.IsValid() {
211 return int(atomic.LoadInt32(ptr.offset(u.sizecache).toInt32()))
212 }
213 return u.size(ptr)
214}
215
216// marshal is the main function to marshal a message. It takes a byte slice and appends
217// the encoded data to the end of the slice, returns the slice and error (if any).
218// ptr is the pointer to the message.
219// If deterministic is true, map is marshaled in deterministic order.
220func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte, error) {
221 if atomic.LoadInt32(&u.initialized) == 0 {
222 u.computeMarshalInfo()
223 }
224
225 // If the message can marshal itself, let it do it, for compatibility.
226 // NOTE: This is not efficient.
227 if u.hasmarshaler {
228 m := ptr.asPointerTo(u.typ).Interface().(Marshaler)
229 b1, err := m.Marshal()
230 b = append(b, b1...)
231 return b, err
232 }
233
234 var err, errLater error
235 // The old marshaler encodes extensions at beginning.
236 if u.extensions.IsValid() {
237 e := ptr.offset(u.extensions).toExtensions()
238 if u.messageset {
239 b, err = u.appendMessageSet(b, e, deterministic)
240 } else {
241 b, err = u.appendExtensions(b, e, deterministic)
242 }
243 if err != nil {
244 return b, err
245 }
246 }
247 if u.v1extensions.IsValid() {
248 m := *ptr.offset(u.v1extensions).toOldExtensions()
249 b, err = u.appendV1Extensions(b, m, deterministic)
250 if err != nil {
251 return b, err
252 }
253 }
254 for _, f := range u.fields {
255 if f.required {
256 if ptr.offset(f.field).getPointer().isNil() {
257 // Required field is not set.
258 // We record the error but keep going, to give a complete marshaling.
259 if errLater == nil {
260 errLater = &RequiredNotSetError{f.name}
261 }
262 continue
263 }
264 }
265 if f.isPointer && ptr.offset(f.field).getPointer().isNil() {
266 // nil pointer always marshals to nothing
267 continue
268 }
269 b, err = f.marshaler(b, ptr.offset(f.field), f.wiretag, deterministic)
270 if err != nil {
271 if err1, ok := err.(*RequiredNotSetError); ok {
272 // Required field in submessage is not set.
273 // We record the error but keep going, to give a complete marshaling.
274 if errLater == nil {
275 errLater = &RequiredNotSetError{f.name + "." + err1.field}
276 }
277 continue
278 }
279 if err == errRepeatedHasNil {
280 err = errors.New("proto: repeated field " + f.name + " has nil element")
281 }
282 if err == errInvalidUTF8 {
283 if errLater == nil {
284 fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name
285 errLater = &invalidUTF8Error{fullName}
286 }
287 continue
288 }
289 return b, err
290 }
291 }
292 if u.unrecognized.IsValid() {
293 s := *ptr.offset(u.unrecognized).toBytes()
294 b = append(b, s...)
295 }
296 return b, errLater
297}
298
299// computeMarshalInfo initializes the marshal info.
300func (u *marshalInfo) computeMarshalInfo() {
301 u.Lock()
302 defer u.Unlock()
303 if u.initialized != 0 { // non-atomic read is ok as it is protected by the lock
304 return
305 }
306
307 t := u.typ
308 u.unrecognized = invalidField
309 u.extensions = invalidField
310 u.v1extensions = invalidField
311 u.sizecache = invalidField
312
313 // If the message can marshal itself, let it do it, for compatibility.
314 // NOTE: This is not efficient.
315 if reflect.PtrTo(t).Implements(marshalerType) {
316 u.hasmarshaler = true
317 atomic.StoreInt32(&u.initialized, 1)
318 return
319 }
320
321 // get oneof implementers
322 var oneofImplementers []interface{}
323 if m, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok {
324 _, _, _, oneofImplementers = m.XXX_OneofFuncs()
325 }
326
327 n := t.NumField()
328
329 // deal with XXX fields first
330 for i := 0; i < t.NumField(); i++ {
331 f := t.Field(i)
332 if !strings.HasPrefix(f.Name, "XXX_") {
333 continue
334 }
335 switch f.Name {
336 case "XXX_sizecache":
337 u.sizecache = toField(&f)
338 case "XXX_unrecognized":
339 u.unrecognized = toField(&f)
340 case "XXX_InternalExtensions":
341 u.extensions = toField(&f)
342 u.messageset = f.Tag.Get("protobuf_messageset") == "1"
343 case "XXX_extensions":
344 u.v1extensions = toField(&f)
345 case "XXX_NoUnkeyedLiteral":
346 // nothing to do
347 default:
348 panic("unknown XXX field: " + f.Name)
349 }
350 n--
351 }
352
353 // normal fields
354 fields := make([]marshalFieldInfo, n) // batch allocation
355 u.fields = make([]*marshalFieldInfo, 0, n)
356 for i, j := 0, 0; i < t.NumField(); i++ {
357 f := t.Field(i)
358
359 if strings.HasPrefix(f.Name, "XXX_") {
360 continue
361 }
362 field := &fields[j]
363 j++
364 field.name = f.Name
365 u.fields = append(u.fields, field)
366 if f.Tag.Get("protobuf_oneof") != "" {
367 field.computeOneofFieldInfo(&f, oneofImplementers)
368 continue
369 }
370 if f.Tag.Get("protobuf") == "" {
371 // field has no tag (not in generated message), ignore it
372 u.fields = u.fields[:len(u.fields)-1]
373 j--
374 continue
375 }
376 field.computeMarshalFieldInfo(&f)
377 }
378
379 // fields are marshaled in tag order on the wire.
380 sort.Sort(byTag(u.fields))
381
382 atomic.StoreInt32(&u.initialized, 1)
383}
384
385// helper for sorting fields by tag
386type byTag []*marshalFieldInfo
387
388func (a byTag) Len() int { return len(a) }
389func (a byTag) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
390func (a byTag) Less(i, j int) bool { return a[i].wiretag < a[j].wiretag }
391
392// getExtElemInfo returns the information to marshal an extension element.
393// The info it returns is initialized.
394func (u *marshalInfo) getExtElemInfo(desc *ExtensionDesc) *marshalElemInfo {
395 // get from cache first
396 u.RLock()
397 e, ok := u.extElems[desc.Field]
398 u.RUnlock()
399 if ok {
400 return e
401 }
402
403 t := reflect.TypeOf(desc.ExtensionType) // pointer or slice to basic type or struct
404 tags := strings.Split(desc.Tag, ",")
405 tag, err := strconv.Atoi(tags[1])
406 if err != nil {
407 panic("tag is not an integer")
408 }
409 wt := wiretype(tags[0])
410 sizer, marshaler := typeMarshaler(t, tags, false, false)
411 e = &marshalElemInfo{
412 wiretag: uint64(tag)<<3 | wt,
413 tagsize: SizeVarint(uint64(tag) << 3),
414 sizer: sizer,
415 marshaler: marshaler,
416 isptr: t.Kind() == reflect.Ptr,
417 }
418
419 // update cache
420 u.Lock()
421 if u.extElems == nil {
422 u.extElems = make(map[int32]*marshalElemInfo)
423 }
424 u.extElems[desc.Field] = e
425 u.Unlock()
426 return e
427}
428
429// computeMarshalFieldInfo fills up the information to marshal a field.
430func (fi *marshalFieldInfo) computeMarshalFieldInfo(f *reflect.StructField) {
431 // parse protobuf tag of the field.
432 // tag has format of "bytes,49,opt,name=foo,def=hello!"
433 tags := strings.Split(f.Tag.Get("protobuf"), ",")
434 if tags[0] == "" {
435 return
436 }
437 tag, err := strconv.Atoi(tags[1])
438 if err != nil {
439 panic("tag is not an integer")
440 }
441 wt := wiretype(tags[0])
442 if tags[2] == "req" {
443 fi.required = true
444 }
445 fi.setTag(f, tag, wt)
446 fi.setMarshaler(f, tags)
447}
448
449func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofImplementers []interface{}) {
450 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.
452 fi.isPointer = true
453 fi.sizer, fi.marshaler = makeOneOfMarshaler(fi, f)
454 fi.oneofElems = make(map[reflect.Type]*marshalElemInfo)
455
456 ityp := f.Type // interface type
457 for _, o := range oneofImplementers {
458 t := reflect.TypeOf(o)
459 if !t.Implements(ityp) {
460 continue
461 }
462 sf := t.Elem().Field(0) // oneof implementer is a struct with a single field
463 tags := strings.Split(sf.Tag.Get("protobuf"), ",")
464 tag, err := strconv.Atoi(tags[1])
465 if err != nil {
466 panic("tag is not an integer")
467 }
468 wt := wiretype(tags[0])
469 sizer, marshaler := typeMarshaler(sf.Type, tags, false, true) // oneof should not omit any zero value
470 fi.oneofElems[t.Elem()] = &marshalElemInfo{
471 wiretag: uint64(tag)<<3 | wt,
472 tagsize: SizeVarint(uint64(tag) << 3),
473 sizer: sizer,
474 marshaler: marshaler,
475 }
476 }
477}
478
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.
484func wiretype(encoding string) uint64 {
485 switch encoding {
486 case "fixed32":
487 return WireFixed32
488 case "fixed64":
489 return WireFixed64
490 case "varint", "zigzag32", "zigzag64":
491 return WireVarint
492 case "bytes":
493 return WireBytes
494 case "group":
495 return WireStartGroup
496 }
497 panic("unknown wire type " + encoding)
498}
499
500// setTag fills up the tag (in wire format) and its size in the info of a field.
501func (fi *marshalFieldInfo) setTag(f *reflect.StructField, tag int, wt uint64) {
502 fi.field = toField(f)
503 fi.wiretag = uint64(tag)<<3 | wt
504 fi.tagsize = SizeVarint(uint64(tag) << 3)
505}
506
507// setMarshaler fills up the sizer and marshaler in the info of a field.
508func (fi *marshalFieldInfo) setMarshaler(f *reflect.StructField, tags []string) {
509 switch f.Type.Kind() {
510 case reflect.Map:
511 // map field
512 fi.isPointer = true
513 fi.sizer, fi.marshaler = makeMapMarshaler(f)
514 return
515 case reflect.Ptr, reflect.Slice:
516 fi.isPointer = true
517 }
518 fi.sizer, fi.marshaler = typeMarshaler(f.Type, tags, true, false)
519}
520
521// typeMarshaler returns the sizer and marshaler of a given field.
522// t is the type of the field.
523// tags is the generated "protobuf" tag of the field.
524// If nozero is true, zero value is not marshaled to the wire.
525// If oneof is true, it is a oneof field.
526func typeMarshaler(t reflect.Type, tags []string, nozero, oneof bool) (sizer, marshaler) {
527 encoding := tags[0]
528
529 pointer := false
530 slice := false
531 if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 {
532 slice = true
533 t = t.Elem()
534 }
535 if t.Kind() == reflect.Ptr {
536 pointer = true
537 t = t.Elem()
538 }
539
540 packed := false
541 proto3 := false
542 validateUTF8 := true
543 for i := 2; i < len(tags); i++ {
544 if tags[i] == "packed" {
545 packed = true
546 }
547 if tags[i] == "proto3" {
548 proto3 = true
549 }
550 }
551 validateUTF8 = validateUTF8 && proto3
552
553 switch t.Kind() {
554 case reflect.Bool:
555 if pointer {
556 return sizeBoolPtr, appendBoolPtr
557 }
558 if slice {
559 if packed {
560 return sizeBoolPackedSlice, appendBoolPackedSlice
561 }
562 return sizeBoolSlice, appendBoolSlice
563 }
564 if nozero {
565 return sizeBoolValueNoZero, appendBoolValueNoZero
566 }
567 return sizeBoolValue, appendBoolValue
568 case reflect.Uint32:
569 switch encoding {
570 case "fixed32":
571 if pointer {
572 return sizeFixed32Ptr, appendFixed32Ptr
573 }
574 if slice {
575 if packed {
576 return sizeFixed32PackedSlice, appendFixed32PackedSlice
577 }
578 return sizeFixed32Slice, appendFixed32Slice
579 }
580 if nozero {
581 return sizeFixed32ValueNoZero, appendFixed32ValueNoZero
582 }
583 return sizeFixed32Value, appendFixed32Value
584 case "varint":
585 if pointer {
586 return sizeVarint32Ptr, appendVarint32Ptr
587 }
588 if slice {
589 if packed {
590 return sizeVarint32PackedSlice, appendVarint32PackedSlice
591 }
592 return sizeVarint32Slice, appendVarint32Slice
593 }
594 if nozero {
595 return sizeVarint32ValueNoZero, appendVarint32ValueNoZero
596 }
597 return sizeVarint32Value, appendVarint32Value
598 }
599 case reflect.Int32:
600 switch encoding {
601 case "fixed32":
602 if pointer {
603 return sizeFixedS32Ptr, appendFixedS32Ptr
604 }
605 if slice {
606 if packed {
607 return sizeFixedS32PackedSlice, appendFixedS32PackedSlice
608 }
609 return sizeFixedS32Slice, appendFixedS32Slice
610 }
611 if nozero {
612 return sizeFixedS32ValueNoZero, appendFixedS32ValueNoZero
613 }
614 return sizeFixedS32Value, appendFixedS32Value
615 case "varint":
616 if pointer {
617 return sizeVarintS32Ptr, appendVarintS32Ptr
618 }
619 if slice {
620 if packed {
621 return sizeVarintS32PackedSlice, appendVarintS32PackedSlice
622 }
623 return sizeVarintS32Slice, appendVarintS32Slice
624 }
625 if nozero {
626 return sizeVarintS32ValueNoZero, appendVarintS32ValueNoZero
627 }
628 return sizeVarintS32Value, appendVarintS32Value
629 case "zigzag32":
630 if pointer {
631 return sizeZigzag32Ptr, appendZigzag32Ptr
632 }
633 if slice {
634 if packed {
635 return sizeZigzag32PackedSlice, appendZigzag32PackedSlice
636 }
637 return sizeZigzag32Slice, appendZigzag32Slice
638 }
639 if nozero {
640 return sizeZigzag32ValueNoZero, appendZigzag32ValueNoZero
641 }
642 return sizeZigzag32Value, appendZigzag32Value
643 }
644 case reflect.Uint64:
645 switch encoding {
646 case "fixed64":
647 if pointer {
648 return sizeFixed64Ptr, appendFixed64Ptr
649 }
650 if slice {
651 if packed {
652 return sizeFixed64PackedSlice, appendFixed64PackedSlice
653 }
654 return sizeFixed64Slice, appendFixed64Slice
655 }
656 if nozero {
657 return sizeFixed64ValueNoZero, appendFixed64ValueNoZero
658 }
659 return sizeFixed64Value, appendFixed64Value
660 case "varint":
661 if pointer {
662 return sizeVarint64Ptr, appendVarint64Ptr
663 }
664 if slice {
665 if packed {
666 return sizeVarint64PackedSlice, appendVarint64PackedSlice
667 }
668 return sizeVarint64Slice, appendVarint64Slice
669 }
670 if nozero {
671 return sizeVarint64ValueNoZero, appendVarint64ValueNoZero
672 }
673 return sizeVarint64Value, appendVarint64Value
674 }
675 case reflect.Int64:
676 switch encoding {
677 case "fixed64":
678 if pointer {
679 return sizeFixedS64Ptr, appendFixedS64Ptr
680 }
681 if slice {
682 if packed {
683 return sizeFixedS64PackedSlice, appendFixedS64PackedSlice
684 }
685 return sizeFixedS64Slice, appendFixedS64Slice
686 }
687 if nozero {
688 return sizeFixedS64ValueNoZero, appendFixedS64ValueNoZero
689 }
690 return sizeFixedS64Value, appendFixedS64Value
691 case "varint":
692 if pointer {
693 return sizeVarintS64Ptr, appendVarintS64Ptr
694 }
695 if slice {
696 if packed {
697 return sizeVarintS64PackedSlice, appendVarintS64PackedSlice
698 }
699 return sizeVarintS64Slice, appendVarintS64Slice
700 }
701 if nozero {
702 return sizeVarintS64ValueNoZero, appendVarintS64ValueNoZero
703 }
704 return sizeVarintS64Value, appendVarintS64Value
705 case "zigzag64":
706 if pointer {
707 return sizeZigzag64Ptr, appendZigzag64Ptr
708 }
709 if slice {
710 if packed {
711 return sizeZigzag64PackedSlice, appendZigzag64PackedSlice
712 }
713 return sizeZigzag64Slice, appendZigzag64Slice
714 }
715 if nozero {
716 return sizeZigzag64ValueNoZero, appendZigzag64ValueNoZero
717 }
718 return sizeZigzag64Value, appendZigzag64Value
719 }
720 case reflect.Float32:
721 if pointer {
722 return sizeFloat32Ptr, appendFloat32Ptr
723 }
724 if slice {
725 if packed {
726 return sizeFloat32PackedSlice, appendFloat32PackedSlice
727 }
728 return sizeFloat32Slice, appendFloat32Slice
729 }
730 if nozero {
731 return sizeFloat32ValueNoZero, appendFloat32ValueNoZero
732 }
733 return sizeFloat32Value, appendFloat32Value
734 case reflect.Float64:
735 if pointer {
736 return sizeFloat64Ptr, appendFloat64Ptr
737 }
738 if slice {
739 if packed {
740 return sizeFloat64PackedSlice, appendFloat64PackedSlice
741 }
742 return sizeFloat64Slice, appendFloat64Slice
743 }
744 if nozero {
745 return sizeFloat64ValueNoZero, appendFloat64ValueNoZero
746 }
747 return sizeFloat64Value, appendFloat64Value
748 case reflect.String:
749 if validateUTF8 {
750 if pointer {
751 return sizeStringPtr, appendUTF8StringPtr
752 }
753 if slice {
754 return sizeStringSlice, appendUTF8StringSlice
755 }
756 if nozero {
757 return sizeStringValueNoZero, appendUTF8StringValueNoZero
758 }
759 return sizeStringValue, appendUTF8StringValue
760 }
761 if pointer {
762 return sizeStringPtr, appendStringPtr
763 }
764 if slice {
765 return sizeStringSlice, appendStringSlice
766 }
767 if nozero {
768 return sizeStringValueNoZero, appendStringValueNoZero
769 }
770 return sizeStringValue, appendStringValue
771 case reflect.Slice:
772 if slice {
773 return sizeBytesSlice, appendBytesSlice
774 }
775 if oneof {
776 // Oneof bytes field may also have "proto3" tag.
777 // We want to marshal it as a oneof field. Do this
778 // check before the proto3 check.
779 return sizeBytesOneof, appendBytesOneof
780 }
781 if proto3 {
782 return sizeBytes3, appendBytes3
783 }
784 return sizeBytes, appendBytes
785 case reflect.Struct:
786 switch encoding {
787 case "group":
788 if slice {
789 return makeGroupSliceMarshaler(getMarshalInfo(t))
790 }
791 return makeGroupMarshaler(getMarshalInfo(t))
792 case "bytes":
793 if slice {
794 return makeMessageSliceMarshaler(getMarshalInfo(t))
795 }
796 return makeMessageMarshaler(getMarshalInfo(t))
797 }
798 }
799 panic(fmt.Sprintf("unknown or mismatched type: type: %v, wire type: %v", t, encoding))
800}
801
802// Below are functions to size/marshal a specific type of a field.
803// They are stored in the field's info, and called by function pointers.
804// They have type sizer or marshaler.
805
806func sizeFixed32Value(_ pointer, tagsize int) int {
807 return 4 + tagsize
808}
809func sizeFixed32ValueNoZero(ptr pointer, tagsize int) int {
810 v := *ptr.toUint32()
811 if v == 0 {
812 return 0
813 }
814 return 4 + tagsize
815}
816func sizeFixed32Ptr(ptr pointer, tagsize int) int {
817 p := *ptr.toUint32Ptr()
818 if p == nil {
819 return 0
820 }
821 return 4 + tagsize
822}
823func sizeFixed32Slice(ptr pointer, tagsize int) int {
824 s := *ptr.toUint32Slice()
825 return (4 + tagsize) * len(s)
826}
827func sizeFixed32PackedSlice(ptr pointer, tagsize int) int {
828 s := *ptr.toUint32Slice()
829 if len(s) == 0 {
830 return 0
831 }
832 return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize
833}
834func sizeFixedS32Value(_ pointer, tagsize int) int {
835 return 4 + tagsize
836}
837func sizeFixedS32ValueNoZero(ptr pointer, tagsize int) int {
838 v := *ptr.toInt32()
839 if v == 0 {
840 return 0
841 }
842 return 4 + tagsize
843}
844func sizeFixedS32Ptr(ptr pointer, tagsize int) int {
845 p := ptr.getInt32Ptr()
846 if p == nil {
847 return 0
848 }
849 return 4 + tagsize
850}
851func sizeFixedS32Slice(ptr pointer, tagsize int) int {
852 s := ptr.getInt32Slice()
853 return (4 + tagsize) * len(s)
854}
855func sizeFixedS32PackedSlice(ptr pointer, tagsize int) int {
856 s := ptr.getInt32Slice()
857 if len(s) == 0 {
858 return 0
859 }
860 return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize
861}
862func sizeFloat32Value(_ pointer, tagsize int) int {
863 return 4 + tagsize
864}
865func sizeFloat32ValueNoZero(ptr pointer, tagsize int) int {
866 v := math.Float32bits(*ptr.toFloat32())
867 if v == 0 {
868 return 0
869 }
870 return 4 + tagsize
871}
872func sizeFloat32Ptr(ptr pointer, tagsize int) int {
873 p := *ptr.toFloat32Ptr()
874 if p == nil {
875 return 0
876 }
877 return 4 + tagsize
878}
879func sizeFloat32Slice(ptr pointer, tagsize int) int {
880 s := *ptr.toFloat32Slice()
881 return (4 + tagsize) * len(s)
882}
883func sizeFloat32PackedSlice(ptr pointer, tagsize int) int {
884 s := *ptr.toFloat32Slice()
885 if len(s) == 0 {
886 return 0
887 }
888 return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize
889}
890func sizeFixed64Value(_ pointer, tagsize int) int {
891 return 8 + tagsize
892}
893func sizeFixed64ValueNoZero(ptr pointer, tagsize int) int {
894 v := *ptr.toUint64()
895 if v == 0 {
896 return 0
897 }
898 return 8 + tagsize
899}
900func sizeFixed64Ptr(ptr pointer, tagsize int) int {
901 p := *ptr.toUint64Ptr()
902 if p == nil {
903 return 0
904 }
905 return 8 + tagsize
906}
907func sizeFixed64Slice(ptr pointer, tagsize int) int {
908 s := *ptr.toUint64Slice()
909 return (8 + tagsize) * len(s)
910}
911func sizeFixed64PackedSlice(ptr pointer, tagsize int) int {
912 s := *ptr.toUint64Slice()
913 if len(s) == 0 {
914 return 0
915 }
916 return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize
917}
918func sizeFixedS64Value(_ pointer, tagsize int) int {
919 return 8 + tagsize
920}
921func sizeFixedS64ValueNoZero(ptr pointer, tagsize int) int {
922 v := *ptr.toInt64()
923 if v == 0 {
924 return 0
925 }
926 return 8 + tagsize
927}
928func sizeFixedS64Ptr(ptr pointer, tagsize int) int {
929 p := *ptr.toInt64Ptr()
930 if p == nil {
931 return 0
932 }
933 return 8 + tagsize
934}
935func sizeFixedS64Slice(ptr pointer, tagsize int) int {
936 s := *ptr.toInt64Slice()
937 return (8 + tagsize) * len(s)
938}
939func sizeFixedS64PackedSlice(ptr pointer, tagsize int) int {
940 s := *ptr.toInt64Slice()
941 if len(s) == 0 {
942 return 0
943 }
944 return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize
945}
946func sizeFloat64Value(_ pointer, tagsize int) int {
947 return 8 + tagsize
948}
949func sizeFloat64ValueNoZero(ptr pointer, tagsize int) int {
950 v := math.Float64bits(*ptr.toFloat64())
951 if v == 0 {
952 return 0
953 }
954 return 8 + tagsize
955}
956func sizeFloat64Ptr(ptr pointer, tagsize int) int {
957 p := *ptr.toFloat64Ptr()
958 if p == nil {
959 return 0
960 }
961 return 8 + tagsize
962}
963func sizeFloat64Slice(ptr pointer, tagsize int) int {
964 s := *ptr.toFloat64Slice()
965 return (8 + tagsize) * len(s)
966}
967func sizeFloat64PackedSlice(ptr pointer, tagsize int) int {
968 s := *ptr.toFloat64Slice()
969 if len(s) == 0 {
970 return 0
971 }
972 return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize
973}
974func sizeVarint32Value(ptr pointer, tagsize int) int {
975 v := *ptr.toUint32()
976 return SizeVarint(uint64(v)) + tagsize
977}
978func sizeVarint32ValueNoZero(ptr pointer, tagsize int) int {
979 v := *ptr.toUint32()
980 if v == 0 {
981 return 0
982 }
983 return SizeVarint(uint64(v)) + tagsize
984}
985func sizeVarint32Ptr(ptr pointer, tagsize int) int {
986 p := *ptr.toUint32Ptr()
987 if p == nil {
988 return 0
989 }
990 return SizeVarint(uint64(*p)) + tagsize
991}
992func sizeVarint32Slice(ptr pointer, tagsize int) int {
993 s := *ptr.toUint32Slice()
994 n := 0
995 for _, v := range s {
996 n += SizeVarint(uint64(v)) + tagsize
997 }
998 return n
999}
1000func sizeVarint32PackedSlice(ptr pointer, tagsize int) int {
1001 s := *ptr.toUint32Slice()
1002 if len(s) == 0 {
1003 return 0
1004 }
1005 n := 0
1006 for _, v := range s {
1007 n += SizeVarint(uint64(v))
1008 }
1009 return n + SizeVarint(uint64(n)) + tagsize
1010}
1011func sizeVarintS32Value(ptr pointer, tagsize int) int {
1012 v := *ptr.toInt32()
1013 return SizeVarint(uint64(v)) + tagsize
1014}
1015func sizeVarintS32ValueNoZero(ptr pointer, tagsize int) int {
1016 v := *ptr.toInt32()
1017 if v == 0 {
1018 return 0
1019 }
1020 return SizeVarint(uint64(v)) + tagsize
1021}
1022func sizeVarintS32Ptr(ptr pointer, tagsize int) int {
1023 p := ptr.getInt32Ptr()
1024 if p == nil {
1025 return 0
1026 }
1027 return SizeVarint(uint64(*p)) + tagsize
1028}
1029func sizeVarintS32Slice(ptr pointer, tagsize int) int {
1030 s := ptr.getInt32Slice()
1031 n := 0
1032 for _, v := range s {
1033 n += SizeVarint(uint64(v)) + tagsize
1034 }
1035 return n
1036}
1037func sizeVarintS32PackedSlice(ptr pointer, tagsize int) int {
1038 s := ptr.getInt32Slice()
1039 if len(s) == 0 {
1040 return 0
1041 }
1042 n := 0
1043 for _, v := range s {
1044 n += SizeVarint(uint64(v))
1045 }
1046 return n + SizeVarint(uint64(n)) + tagsize
1047}
1048func sizeVarint64Value(ptr pointer, tagsize int) int {
1049 v := *ptr.toUint64()
1050 return SizeVarint(v) + tagsize
1051}
1052func sizeVarint64ValueNoZero(ptr pointer, tagsize int) int {
1053 v := *ptr.toUint64()
1054 if v == 0 {
1055 return 0
1056 }
1057 return SizeVarint(v) + tagsize
1058}
1059func sizeVarint64Ptr(ptr pointer, tagsize int) int {
1060 p := *ptr.toUint64Ptr()
1061 if p == nil {
1062 return 0
1063 }
1064 return SizeVarint(*p) + tagsize
1065}
1066func sizeVarint64Slice(ptr pointer, tagsize int) int {
1067 s := *ptr.toUint64Slice()
1068 n := 0
1069 for _, v := range s {
1070 n += SizeVarint(v) + tagsize
1071 }
1072 return n
1073}
1074func sizeVarint64PackedSlice(ptr pointer, tagsize int) int {
1075 s := *ptr.toUint64Slice()
1076 if len(s) == 0 {
1077 return 0
1078 }
1079 n := 0
1080 for _, v := range s {
1081 n += SizeVarint(v)
1082 }
1083 return n + SizeVarint(uint64(n)) + tagsize
1084}
1085func sizeVarintS64Value(ptr pointer, tagsize int) int {
1086 v := *ptr.toInt64()
1087 return SizeVarint(uint64(v)) + tagsize
1088}
1089func sizeVarintS64ValueNoZero(ptr pointer, tagsize int) int {
1090 v := *ptr.toInt64()
1091 if v == 0 {
1092 return 0
1093 }
1094 return SizeVarint(uint64(v)) + tagsize
1095}
1096func sizeVarintS64Ptr(ptr pointer, tagsize int) int {
1097 p := *ptr.toInt64Ptr()
1098 if p == nil {
1099 return 0
1100 }
1101 return SizeVarint(uint64(*p)) + tagsize
1102}
1103func sizeVarintS64Slice(ptr pointer, tagsize int) int {
1104 s := *ptr.toInt64Slice()
1105 n := 0
1106 for _, v := range s {
1107 n += SizeVarint(uint64(v)) + tagsize
1108 }
1109 return n
1110}
1111func sizeVarintS64PackedSlice(ptr pointer, tagsize int) int {
1112 s := *ptr.toInt64Slice()
1113 if len(s) == 0 {
1114 return 0
1115 }
1116 n := 0
1117 for _, v := range s {
1118 n += SizeVarint(uint64(v))
1119 }
1120 return n + SizeVarint(uint64(n)) + tagsize
1121}
1122func sizeZigzag32Value(ptr pointer, tagsize int) int {
1123 v := *ptr.toInt32()
1124 return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize
1125}
1126func sizeZigzag32ValueNoZero(ptr pointer, tagsize int) int {
1127 v := *ptr.toInt32()
1128 if v == 0 {
1129 return 0
1130 }
1131 return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize
1132}
1133func sizeZigzag32Ptr(ptr pointer, tagsize int) int {
1134 p := ptr.getInt32Ptr()
1135 if p == nil {
1136 return 0
1137 }
1138 v := *p
1139 return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize
1140}
1141func sizeZigzag32Slice(ptr pointer, tagsize int) int {
1142 s := ptr.getInt32Slice()
1143 n := 0
1144 for _, v := range s {
1145 n += SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize
1146 }
1147 return n
1148}
1149func sizeZigzag32PackedSlice(ptr pointer, tagsize int) int {
1150 s := ptr.getInt32Slice()
1151 if len(s) == 0 {
1152 return 0
1153 }
1154 n := 0
1155 for _, v := range s {
1156 n += SizeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31))))
1157 }
1158 return n + SizeVarint(uint64(n)) + tagsize
1159}
1160func sizeZigzag64Value(ptr pointer, tagsize int) int {
1161 v := *ptr.toInt64()
1162 return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize
1163}
1164func sizeZigzag64ValueNoZero(ptr pointer, tagsize int) int {
1165 v := *ptr.toInt64()
1166 if v == 0 {
1167 return 0
1168 }
1169 return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize
1170}
1171func sizeZigzag64Ptr(ptr pointer, tagsize int) int {
1172 p := *ptr.toInt64Ptr()
1173 if p == nil {
1174 return 0
1175 }
1176 v := *p
1177 return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize
1178}
1179func sizeZigzag64Slice(ptr pointer, tagsize int) int {
1180 s := *ptr.toInt64Slice()
1181 n := 0
1182 for _, v := range s {
1183 n += SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize
1184 }
1185 return n
1186}
1187func sizeZigzag64PackedSlice(ptr pointer, tagsize int) int {
1188 s := *ptr.toInt64Slice()
1189 if len(s) == 0 {
1190 return 0
1191 }
1192 n := 0
1193 for _, v := range s {
1194 n += SizeVarint(uint64(v<<1) ^ uint64((int64(v) >> 63)))
1195 }
1196 return n + SizeVarint(uint64(n)) + tagsize
1197}
1198func sizeBoolValue(_ pointer, tagsize int) int {
1199 return 1 + tagsize
1200}
1201func sizeBoolValueNoZero(ptr pointer, tagsize int) int {
1202 v := *ptr.toBool()
1203 if !v {
1204 return 0
1205 }
1206 return 1 + tagsize
1207}
1208func sizeBoolPtr(ptr pointer, tagsize int) int {
1209 p := *ptr.toBoolPtr()
1210 if p == nil {
1211 return 0
1212 }
1213 return 1 + tagsize
1214}
1215func sizeBoolSlice(ptr pointer, tagsize int) int {
1216 s := *ptr.toBoolSlice()
1217 return (1 + tagsize) * len(s)
1218}
1219func sizeBoolPackedSlice(ptr pointer, tagsize int) int {
1220 s := *ptr.toBoolSlice()
1221 if len(s) == 0 {
1222 return 0
1223 }
1224 return len(s) + SizeVarint(uint64(len(s))) + tagsize
1225}
1226func sizeStringValue(ptr pointer, tagsize int) int {
1227 v := *ptr.toString()
1228 return len(v) + SizeVarint(uint64(len(v))) + tagsize
1229}
1230func sizeStringValueNoZero(ptr pointer, tagsize int) int {
1231 v := *ptr.toString()
1232 if v == "" {
1233 return 0
1234 }
1235 return len(v) + SizeVarint(uint64(len(v))) + tagsize
1236}
1237func sizeStringPtr(ptr pointer, tagsize int) int {
1238 p := *ptr.toStringPtr()
1239 if p == nil {
1240 return 0
1241 }
1242 v := *p
1243 return len(v) + SizeVarint(uint64(len(v))) + tagsize
1244}
1245func sizeStringSlice(ptr pointer, tagsize int) int {
1246 s := *ptr.toStringSlice()
1247 n := 0
1248 for _, v := range s {
1249 n += len(v) + SizeVarint(uint64(len(v))) + tagsize
1250 }
1251 return n
1252}
1253func sizeBytes(ptr pointer, tagsize int) int {
1254 v := *ptr.toBytes()
1255 if v == nil {
1256 return 0
1257 }
1258 return len(v) + SizeVarint(uint64(len(v))) + tagsize
1259}
1260func sizeBytes3(ptr pointer, tagsize int) int {
1261 v := *ptr.toBytes()
1262 if len(v) == 0 {
1263 return 0
1264 }
1265 return len(v) + SizeVarint(uint64(len(v))) + tagsize
1266}
1267func sizeBytesOneof(ptr pointer, tagsize int) int {
1268 v := *ptr.toBytes()
1269 return len(v) + SizeVarint(uint64(len(v))) + tagsize
1270}
1271func sizeBytesSlice(ptr pointer, tagsize int) int {
1272 s := *ptr.toBytesSlice()
1273 n := 0
1274 for _, v := range s {
1275 n += len(v) + SizeVarint(uint64(len(v))) + tagsize
1276 }
1277 return n
1278}
1279
1280// appendFixed32 appends an encoded fixed32 to b.
1281func appendFixed32(b []byte, v uint32) []byte {
1282 b = append(b,
1283 byte(v),
1284 byte(v>>8),
1285 byte(v>>16),
1286 byte(v>>24))
1287 return b
1288}
1289
1290// appendFixed64 appends an encoded fixed64 to b.
1291func appendFixed64(b []byte, v uint64) []byte {
1292 b = append(b,
1293 byte(v),
1294 byte(v>>8),
1295 byte(v>>16),
1296 byte(v>>24),
1297 byte(v>>32),
1298 byte(v>>40),
1299 byte(v>>48),
1300 byte(v>>56))
1301 return b
1302}
1303
1304// appendVarint appends an encoded varint to b.
1305func appendVarint(b []byte, v uint64) []byte {
1306 // TODO: make 1-byte (maybe 2-byte) case inline-able, once we
1307 // have non-leaf inliner.
1308 switch {
1309 case v < 1<<7:
1310 b = append(b, byte(v))
1311 case v < 1<<14:
1312 b = append(b,
1313 byte(v&0x7f|0x80),
1314 byte(v>>7))
1315 case v < 1<<21:
1316 b = append(b,
1317 byte(v&0x7f|0x80),
1318 byte((v>>7)&0x7f|0x80),
1319 byte(v>>14))
1320 case v < 1<<28:
1321 b = append(b,
1322 byte(v&0x7f|0x80),
1323 byte((v>>7)&0x7f|0x80),
1324 byte((v>>14)&0x7f|0x80),
1325 byte(v>>21))
1326 case v < 1<<35:
1327 b = append(b,
1328 byte(v&0x7f|0x80),
1329 byte((v>>7)&0x7f|0x80),
1330 byte((v>>14)&0x7f|0x80),
1331 byte((v>>21)&0x7f|0x80),
1332 byte(v>>28))
1333 case v < 1<<42:
1334 b = append(b,
1335 byte(v&0x7f|0x80),
1336 byte((v>>7)&0x7f|0x80),
1337 byte((v>>14)&0x7f|0x80),
1338 byte((v>>21)&0x7f|0x80),
1339 byte((v>>28)&0x7f|0x80),
1340 byte(v>>35))
1341 case v < 1<<49:
1342 b = append(b,
1343 byte(v&0x7f|0x80),
1344 byte((v>>7)&0x7f|0x80),
1345 byte((v>>14)&0x7f|0x80),
1346 byte((v>>21)&0x7f|0x80),
1347 byte((v>>28)&0x7f|0x80),
1348 byte((v>>35)&0x7f|0x80),
1349 byte(v>>42))
1350 case v < 1<<56:
1351 b = append(b,
1352 byte(v&0x7f|0x80),
1353 byte((v>>7)&0x7f|0x80),
1354 byte((v>>14)&0x7f|0x80),
1355 byte((v>>21)&0x7f|0x80),
1356 byte((v>>28)&0x7f|0x80),
1357 byte((v>>35)&0x7f|0x80),
1358 byte((v>>42)&0x7f|0x80),
1359 byte(v>>49))
1360 case v < 1<<63:
1361 b = append(b,
1362 byte(v&0x7f|0x80),
1363 byte((v>>7)&0x7f|0x80),
1364 byte((v>>14)&0x7f|0x80),
1365 byte((v>>21)&0x7f|0x80),
1366 byte((v>>28)&0x7f|0x80),
1367 byte((v>>35)&0x7f|0x80),
1368 byte((v>>42)&0x7f|0x80),
1369 byte((v>>49)&0x7f|0x80),
1370 byte(v>>56))
1371 default:
1372 b = append(b,
1373 byte(v&0x7f|0x80),
1374 byte((v>>7)&0x7f|0x80),
1375 byte((v>>14)&0x7f|0x80),
1376 byte((v>>21)&0x7f|0x80),
1377 byte((v>>28)&0x7f|0x80),
1378 byte((v>>35)&0x7f|0x80),
1379 byte((v>>42)&0x7f|0x80),
1380 byte((v>>49)&0x7f|0x80),
1381 byte((v>>56)&0x7f|0x80),
1382 1)
1383 }
1384 return b
1385}
1386
1387func appendFixed32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1388 v := *ptr.toUint32()
1389 b = appendVarint(b, wiretag)
1390 b = appendFixed32(b, v)
1391 return b, nil
1392}
1393func appendFixed32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1394 v := *ptr.toUint32()
1395 if v == 0 {
1396 return b, nil
1397 }
1398 b = appendVarint(b, wiretag)
1399 b = appendFixed32(b, v)
1400 return b, nil
1401}
1402func appendFixed32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1403 p := *ptr.toUint32Ptr()
1404 if p == nil {
1405 return b, nil
1406 }
1407 b = appendVarint(b, wiretag)
1408 b = appendFixed32(b, *p)
1409 return b, nil
1410}
1411func appendFixed32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1412 s := *ptr.toUint32Slice()
1413 for _, v := range s {
1414 b = appendVarint(b, wiretag)
1415 b = appendFixed32(b, v)
1416 }
1417 return b, nil
1418}
1419func appendFixed32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1420 s := *ptr.toUint32Slice()
1421 if len(s) == 0 {
1422 return b, nil
1423 }
1424 b = appendVarint(b, wiretag&^7|WireBytes)
1425 b = appendVarint(b, uint64(4*len(s)))
1426 for _, v := range s {
1427 b = appendFixed32(b, v)
1428 }
1429 return b, nil
1430}
1431func appendFixedS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1432 v := *ptr.toInt32()
1433 b = appendVarint(b, wiretag)
1434 b = appendFixed32(b, uint32(v))
1435 return b, nil
1436}
1437func appendFixedS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1438 v := *ptr.toInt32()
1439 if v == 0 {
1440 return b, nil
1441 }
1442 b = appendVarint(b, wiretag)
1443 b = appendFixed32(b, uint32(v))
1444 return b, nil
1445}
1446func appendFixedS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1447 p := ptr.getInt32Ptr()
1448 if p == nil {
1449 return b, nil
1450 }
1451 b = appendVarint(b, wiretag)
1452 b = appendFixed32(b, uint32(*p))
1453 return b, nil
1454}
1455func appendFixedS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1456 s := ptr.getInt32Slice()
1457 for _, v := range s {
1458 b = appendVarint(b, wiretag)
1459 b = appendFixed32(b, uint32(v))
1460 }
1461 return b, nil
1462}
1463func appendFixedS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1464 s := ptr.getInt32Slice()
1465 if len(s) == 0 {
1466 return b, nil
1467 }
1468 b = appendVarint(b, wiretag&^7|WireBytes)
1469 b = appendVarint(b, uint64(4*len(s)))
1470 for _, v := range s {
1471 b = appendFixed32(b, uint32(v))
1472 }
1473 return b, nil
1474}
1475func appendFloat32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1476 v := math.Float32bits(*ptr.toFloat32())
1477 b = appendVarint(b, wiretag)
1478 b = appendFixed32(b, v)
1479 return b, nil
1480}
1481func appendFloat32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1482 v := math.Float32bits(*ptr.toFloat32())
1483 if v == 0 {
1484 return b, nil
1485 }
1486 b = appendVarint(b, wiretag)
1487 b = appendFixed32(b, v)
1488 return b, nil
1489}
1490func appendFloat32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1491 p := *ptr.toFloat32Ptr()
1492 if p == nil {
1493 return b, nil
1494 }
1495 b = appendVarint(b, wiretag)
1496 b = appendFixed32(b, math.Float32bits(*p))
1497 return b, nil
1498}
1499func appendFloat32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1500 s := *ptr.toFloat32Slice()
1501 for _, v := range s {
1502 b = appendVarint(b, wiretag)
1503 b = appendFixed32(b, math.Float32bits(v))
1504 }
1505 return b, nil
1506}
1507func appendFloat32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1508 s := *ptr.toFloat32Slice()
1509 if len(s) == 0 {
1510 return b, nil
1511 }
1512 b = appendVarint(b, wiretag&^7|WireBytes)
1513 b = appendVarint(b, uint64(4*len(s)))
1514 for _, v := range s {
1515 b = appendFixed32(b, math.Float32bits(v))
1516 }
1517 return b, nil
1518}
1519func appendFixed64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1520 v := *ptr.toUint64()
1521 b = appendVarint(b, wiretag)
1522 b = appendFixed64(b, v)
1523 return b, nil
1524}
1525func appendFixed64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1526 v := *ptr.toUint64()
1527 if v == 0 {
1528 return b, nil
1529 }
1530 b = appendVarint(b, wiretag)
1531 b = appendFixed64(b, v)
1532 return b, nil
1533}
1534func appendFixed64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1535 p := *ptr.toUint64Ptr()
1536 if p == nil {
1537 return b, nil
1538 }
1539 b = appendVarint(b, wiretag)
1540 b = appendFixed64(b, *p)
1541 return b, nil
1542}
1543func appendFixed64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1544 s := *ptr.toUint64Slice()
1545 for _, v := range s {
1546 b = appendVarint(b, wiretag)
1547 b = appendFixed64(b, v)
1548 }
1549 return b, nil
1550}
1551func appendFixed64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1552 s := *ptr.toUint64Slice()
1553 if len(s) == 0 {
1554 return b, nil
1555 }
1556 b = appendVarint(b, wiretag&^7|WireBytes)
1557 b = appendVarint(b, uint64(8*len(s)))
1558 for _, v := range s {
1559 b = appendFixed64(b, v)
1560 }
1561 return b, nil
1562}
1563func appendFixedS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1564 v := *ptr.toInt64()
1565 b = appendVarint(b, wiretag)
1566 b = appendFixed64(b, uint64(v))
1567 return b, nil
1568}
1569func appendFixedS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1570 v := *ptr.toInt64()
1571 if v == 0 {
1572 return b, nil
1573 }
1574 b = appendVarint(b, wiretag)
1575 b = appendFixed64(b, uint64(v))
1576 return b, nil
1577}
1578func appendFixedS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1579 p := *ptr.toInt64Ptr()
1580 if p == nil {
1581 return b, nil
1582 }
1583 b = appendVarint(b, wiretag)
1584 b = appendFixed64(b, uint64(*p))
1585 return b, nil
1586}
1587func appendFixedS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1588 s := *ptr.toInt64Slice()
1589 for _, v := range s {
1590 b = appendVarint(b, wiretag)
1591 b = appendFixed64(b, uint64(v))
1592 }
1593 return b, nil
1594}
1595func appendFixedS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1596 s := *ptr.toInt64Slice()
1597 if len(s) == 0 {
1598 return b, nil
1599 }
1600 b = appendVarint(b, wiretag&^7|WireBytes)
1601 b = appendVarint(b, uint64(8*len(s)))
1602 for _, v := range s {
1603 b = appendFixed64(b, uint64(v))
1604 }
1605 return b, nil
1606}
1607func appendFloat64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1608 v := math.Float64bits(*ptr.toFloat64())
1609 b = appendVarint(b, wiretag)
1610 b = appendFixed64(b, v)
1611 return b, nil
1612}
1613func appendFloat64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1614 v := math.Float64bits(*ptr.toFloat64())
1615 if v == 0 {
1616 return b, nil
1617 }
1618 b = appendVarint(b, wiretag)
1619 b = appendFixed64(b, v)
1620 return b, nil
1621}
1622func appendFloat64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1623 p := *ptr.toFloat64Ptr()
1624 if p == nil {
1625 return b, nil
1626 }
1627 b = appendVarint(b, wiretag)
1628 b = appendFixed64(b, math.Float64bits(*p))
1629 return b, nil
1630}
1631func appendFloat64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1632 s := *ptr.toFloat64Slice()
1633 for _, v := range s {
1634 b = appendVarint(b, wiretag)
1635 b = appendFixed64(b, math.Float64bits(v))
1636 }
1637 return b, nil
1638}
1639func appendFloat64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1640 s := *ptr.toFloat64Slice()
1641 if len(s) == 0 {
1642 return b, nil
1643 }
1644 b = appendVarint(b, wiretag&^7|WireBytes)
1645 b = appendVarint(b, uint64(8*len(s)))
1646 for _, v := range s {
1647 b = appendFixed64(b, math.Float64bits(v))
1648 }
1649 return b, nil
1650}
1651func appendVarint32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1652 v := *ptr.toUint32()
1653 b = appendVarint(b, wiretag)
1654 b = appendVarint(b, uint64(v))
1655 return b, nil
1656}
1657func appendVarint32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1658 v := *ptr.toUint32()
1659 if v == 0 {
1660 return b, nil
1661 }
1662 b = appendVarint(b, wiretag)
1663 b = appendVarint(b, uint64(v))
1664 return b, nil
1665}
1666func appendVarint32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1667 p := *ptr.toUint32Ptr()
1668 if p == nil {
1669 return b, nil
1670 }
1671 b = appendVarint(b, wiretag)
1672 b = appendVarint(b, uint64(*p))
1673 return b, nil
1674}
1675func appendVarint32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1676 s := *ptr.toUint32Slice()
1677 for _, v := range s {
1678 b = appendVarint(b, wiretag)
1679 b = appendVarint(b, uint64(v))
1680 }
1681 return b, nil
1682}
1683func appendVarint32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1684 s := *ptr.toUint32Slice()
1685 if len(s) == 0 {
1686 return b, nil
1687 }
1688 b = appendVarint(b, wiretag&^7|WireBytes)
1689 // compute size
1690 n := 0
1691 for _, v := range s {
1692 n += SizeVarint(uint64(v))
1693 }
1694 b = appendVarint(b, uint64(n))
1695 for _, v := range s {
1696 b = appendVarint(b, uint64(v))
1697 }
1698 return b, nil
1699}
1700func appendVarintS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1701 v := *ptr.toInt32()
1702 b = appendVarint(b, wiretag)
1703 b = appendVarint(b, uint64(v))
1704 return b, nil
1705}
1706func appendVarintS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1707 v := *ptr.toInt32()
1708 if v == 0 {
1709 return b, nil
1710 }
1711 b = appendVarint(b, wiretag)
1712 b = appendVarint(b, uint64(v))
1713 return b, nil
1714}
1715func appendVarintS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1716 p := ptr.getInt32Ptr()
1717 if p == nil {
1718 return b, nil
1719 }
1720 b = appendVarint(b, wiretag)
1721 b = appendVarint(b, uint64(*p))
1722 return b, nil
1723}
1724func appendVarintS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1725 s := ptr.getInt32Slice()
1726 for _, v := range s {
1727 b = appendVarint(b, wiretag)
1728 b = appendVarint(b, uint64(v))
1729 }
1730 return b, nil
1731}
1732func appendVarintS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1733 s := ptr.getInt32Slice()
1734 if len(s) == 0 {
1735 return b, nil
1736 }
1737 b = appendVarint(b, wiretag&^7|WireBytes)
1738 // compute size
1739 n := 0
1740 for _, v := range s {
1741 n += SizeVarint(uint64(v))
1742 }
1743 b = appendVarint(b, uint64(n))
1744 for _, v := range s {
1745 b = appendVarint(b, uint64(v))
1746 }
1747 return b, nil
1748}
1749func appendVarint64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1750 v := *ptr.toUint64()
1751 b = appendVarint(b, wiretag)
1752 b = appendVarint(b, v)
1753 return b, nil
1754}
1755func appendVarint64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1756 v := *ptr.toUint64()
1757 if v == 0 {
1758 return b, nil
1759 }
1760 b = appendVarint(b, wiretag)
1761 b = appendVarint(b, v)
1762 return b, nil
1763}
1764func appendVarint64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1765 p := *ptr.toUint64Ptr()
1766 if p == nil {
1767 return b, nil
1768 }
1769 b = appendVarint(b, wiretag)
1770 b = appendVarint(b, *p)
1771 return b, nil
1772}
1773func appendVarint64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1774 s := *ptr.toUint64Slice()
1775 for _, v := range s {
1776 b = appendVarint(b, wiretag)
1777 b = appendVarint(b, v)
1778 }
1779 return b, nil
1780}
1781func appendVarint64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1782 s := *ptr.toUint64Slice()
1783 if len(s) == 0 {
1784 return b, nil
1785 }
1786 b = appendVarint(b, wiretag&^7|WireBytes)
1787 // compute size
1788 n := 0
1789 for _, v := range s {
1790 n += SizeVarint(v)
1791 }
1792 b = appendVarint(b, uint64(n))
1793 for _, v := range s {
1794 b = appendVarint(b, v)
1795 }
1796 return b, nil
1797}
1798func appendVarintS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1799 v := *ptr.toInt64()
1800 b = appendVarint(b, wiretag)
1801 b = appendVarint(b, uint64(v))
1802 return b, nil
1803}
1804func appendVarintS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1805 v := *ptr.toInt64()
1806 if v == 0 {
1807 return b, nil
1808 }
1809 b = appendVarint(b, wiretag)
1810 b = appendVarint(b, uint64(v))
1811 return b, nil
1812}
1813func appendVarintS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1814 p := *ptr.toInt64Ptr()
1815 if p == nil {
1816 return b, nil
1817 }
1818 b = appendVarint(b, wiretag)
1819 b = appendVarint(b, uint64(*p))
1820 return b, nil
1821}
1822func appendVarintS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1823 s := *ptr.toInt64Slice()
1824 for _, v := range s {
1825 b = appendVarint(b, wiretag)
1826 b = appendVarint(b, uint64(v))
1827 }
1828 return b, nil
1829}
1830func appendVarintS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1831 s := *ptr.toInt64Slice()
1832 if len(s) == 0 {
1833 return b, nil
1834 }
1835 b = appendVarint(b, wiretag&^7|WireBytes)
1836 // compute size
1837 n := 0
1838 for _, v := range s {
1839 n += SizeVarint(uint64(v))
1840 }
1841 b = appendVarint(b, uint64(n))
1842 for _, v := range s {
1843 b = appendVarint(b, uint64(v))
1844 }
1845 return b, nil
1846}
1847func appendZigzag32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1848 v := *ptr.toInt32()
1849 b = appendVarint(b, wiretag)
1850 b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31))))
1851 return b, nil
1852}
1853func appendZigzag32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1854 v := *ptr.toInt32()
1855 if v == 0 {
1856 return b, nil
1857 }
1858 b = appendVarint(b, wiretag)
1859 b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31))))
1860 return b, nil
1861}
1862func appendZigzag32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1863 p := ptr.getInt32Ptr()
1864 if p == nil {
1865 return b, nil
1866 }
1867 b = appendVarint(b, wiretag)
1868 v := *p
1869 b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31))))
1870 return b, nil
1871}
1872func appendZigzag32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1873 s := ptr.getInt32Slice()
1874 for _, v := range s {
1875 b = appendVarint(b, wiretag)
1876 b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31))))
1877 }
1878 return b, nil
1879}
1880func appendZigzag32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1881 s := ptr.getInt32Slice()
1882 if len(s) == 0 {
1883 return b, nil
1884 }
1885 b = appendVarint(b, wiretag&^7|WireBytes)
1886 // compute size
1887 n := 0
1888 for _, v := range s {
1889 n += SizeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31))))
1890 }
1891 b = appendVarint(b, uint64(n))
1892 for _, v := range s {
1893 b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31))))
1894 }
1895 return b, nil
1896}
1897func appendZigzag64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1898 v := *ptr.toInt64()
1899 b = appendVarint(b, wiretag)
1900 b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63)))
1901 return b, nil
1902}
1903func appendZigzag64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1904 v := *ptr.toInt64()
1905 if v == 0 {
1906 return b, nil
1907 }
1908 b = appendVarint(b, wiretag)
1909 b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63)))
1910 return b, nil
1911}
1912func appendZigzag64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1913 p := *ptr.toInt64Ptr()
1914 if p == nil {
1915 return b, nil
1916 }
1917 b = appendVarint(b, wiretag)
1918 v := *p
1919 b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63)))
1920 return b, nil
1921}
1922func appendZigzag64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1923 s := *ptr.toInt64Slice()
1924 for _, v := range s {
1925 b = appendVarint(b, wiretag)
1926 b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63)))
1927 }
1928 return b, nil
1929}
1930func appendZigzag64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1931 s := *ptr.toInt64Slice()
1932 if len(s) == 0 {
1933 return b, nil
1934 }
1935 b = appendVarint(b, wiretag&^7|WireBytes)
1936 // compute size
1937 n := 0
1938 for _, v := range s {
1939 n += SizeVarint(uint64(v<<1) ^ uint64((int64(v) >> 63)))
1940 }
1941 b = appendVarint(b, uint64(n))
1942 for _, v := range s {
1943 b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63)))
1944 }
1945 return b, nil
1946}
1947func appendBoolValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1948 v := *ptr.toBool()
1949 b = appendVarint(b, wiretag)
1950 if v {
1951 b = append(b, 1)
1952 } else {
1953 b = append(b, 0)
1954 }
1955 return b, nil
1956}
1957func appendBoolValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1958 v := *ptr.toBool()
1959 if !v {
1960 return b, nil
1961 }
1962 b = appendVarint(b, wiretag)
1963 b = append(b, 1)
1964 return b, nil
1965}
1966
1967func appendBoolPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1968 p := *ptr.toBoolPtr()
1969 if p == nil {
1970 return b, nil
1971 }
1972 b = appendVarint(b, wiretag)
1973 if *p {
1974 b = append(b, 1)
1975 } else {
1976 b = append(b, 0)
1977 }
1978 return b, nil
1979}
1980func appendBoolSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1981 s := *ptr.toBoolSlice()
1982 for _, v := range s {
1983 b = appendVarint(b, wiretag)
1984 if v {
1985 b = append(b, 1)
1986 } else {
1987 b = append(b, 0)
1988 }
1989 }
1990 return b, nil
1991}
1992func appendBoolPackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
1993 s := *ptr.toBoolSlice()
1994 if len(s) == 0 {
1995 return b, nil
1996 }
1997 b = appendVarint(b, wiretag&^7|WireBytes)
1998 b = appendVarint(b, uint64(len(s)))
1999 for _, v := range s {
2000 if v {
2001 b = append(b, 1)
2002 } else {
2003 b = append(b, 0)
2004 }
2005 }
2006 return b, nil
2007}
2008func appendStringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2009 v := *ptr.toString()
2010 b = appendVarint(b, wiretag)
2011 b = appendVarint(b, uint64(len(v)))
2012 b = append(b, v...)
2013 return b, nil
2014}
2015func appendStringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2016 v := *ptr.toString()
2017 if v == "" {
2018 return b, nil
2019 }
2020 b = appendVarint(b, wiretag)
2021 b = appendVarint(b, uint64(len(v)))
2022 b = append(b, v...)
2023 return b, nil
2024}
2025func appendStringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2026 p := *ptr.toStringPtr()
2027 if p == nil {
2028 return b, nil
2029 }
2030 v := *p
2031 b = appendVarint(b, wiretag)
2032 b = appendVarint(b, uint64(len(v)))
2033 b = append(b, v...)
2034 return b, nil
2035}
2036func appendStringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2037 s := *ptr.toStringSlice()
2038 for _, v := range s {
2039 b = appendVarint(b, wiretag)
2040 b = appendVarint(b, uint64(len(v)))
2041 b = append(b, v...)
2042 }
2043 return b, nil
2044}
2045func appendUTF8StringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2046 var invalidUTF8 bool
2047 v := *ptr.toString()
2048 if !utf8.ValidString(v) {
2049 invalidUTF8 = true
2050 }
2051 b = appendVarint(b, wiretag)
2052 b = appendVarint(b, uint64(len(v)))
2053 b = append(b, v...)
2054 if invalidUTF8 {
2055 return b, errInvalidUTF8
2056 }
2057 return b, nil
2058}
2059func appendUTF8StringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2060 var invalidUTF8 bool
2061 v := *ptr.toString()
2062 if v == "" {
2063 return b, nil
2064 }
2065 if !utf8.ValidString(v) {
2066 invalidUTF8 = true
2067 }
2068 b = appendVarint(b, wiretag)
2069 b = appendVarint(b, uint64(len(v)))
2070 b = append(b, v...)
2071 if invalidUTF8 {
2072 return b, errInvalidUTF8
2073 }
2074 return b, nil
2075}
2076func appendUTF8StringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2077 var invalidUTF8 bool
2078 p := *ptr.toStringPtr()
2079 if p == nil {
2080 return b, nil
2081 }
2082 v := *p
2083 if !utf8.ValidString(v) {
2084 invalidUTF8 = true
2085 }
2086 b = appendVarint(b, wiretag)
2087 b = appendVarint(b, uint64(len(v)))
2088 b = append(b, v...)
2089 if invalidUTF8 {
2090 return b, errInvalidUTF8
2091 }
2092 return b, nil
2093}
2094func appendUTF8StringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2095 var invalidUTF8 bool
2096 s := *ptr.toStringSlice()
2097 for _, v := range s {
2098 if !utf8.ValidString(v) {
2099 invalidUTF8 = true
2100 }
2101 b = appendVarint(b, wiretag)
2102 b = appendVarint(b, uint64(len(v)))
2103 b = append(b, v...)
2104 }
2105 if invalidUTF8 {
2106 return b, errInvalidUTF8
2107 }
2108 return b, nil
2109}
2110func appendBytes(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2111 v := *ptr.toBytes()
2112 if v == nil {
2113 return b, nil
2114 }
2115 b = appendVarint(b, wiretag)
2116 b = appendVarint(b, uint64(len(v)))
2117 b = append(b, v...)
2118 return b, nil
2119}
2120func appendBytes3(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2121 v := *ptr.toBytes()
2122 if len(v) == 0 {
2123 return b, nil
2124 }
2125 b = appendVarint(b, wiretag)
2126 b = appendVarint(b, uint64(len(v)))
2127 b = append(b, v...)
2128 return b, nil
2129}
2130func appendBytesOneof(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2131 v := *ptr.toBytes()
2132 b = appendVarint(b, wiretag)
2133 b = appendVarint(b, uint64(len(v)))
2134 b = append(b, v...)
2135 return b, nil
2136}
2137func appendBytesSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {
2138 s := *ptr.toBytesSlice()
2139 for _, v := range s {
2140 b = appendVarint(b, wiretag)
2141 b = appendVarint(b, uint64(len(v)))
2142 b = append(b, v...)
2143 }
2144 return b, nil
2145}
2146
2147// makeGroupMarshaler returns the sizer and marshaler for a group.
2148// u is the marshal info of the underlying message.
2149func makeGroupMarshaler(u *marshalInfo) (sizer, marshaler) {
2150 return func(ptr pointer, tagsize int) int {
2151 p := ptr.getPointer()
2152 if p.isNil() {
2153 return 0
2154 }
2155 return u.size(p) + 2*tagsize
2156 },
2157 func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) {
2158 p := ptr.getPointer()
2159 if p.isNil() {
2160 return b, nil
2161 }
2162 var err error
2163 b = appendVarint(b, wiretag) // start group
2164 b, err = u.marshal(b, p, deterministic)
2165 b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group
2166 return b, err
2167 }
2168}
2169
2170// makeGroupSliceMarshaler returns the sizer and marshaler for a group slice.
2171// u is the marshal info of the underlying message.
2172func makeGroupSliceMarshaler(u *marshalInfo) (sizer, marshaler) {
2173 return func(ptr pointer, tagsize int) int {
2174 s := ptr.getPointerSlice()
2175 n := 0
2176 for _, v := range s {
2177 if v.isNil() {
2178 continue
2179 }
2180 n += u.size(v) + 2*tagsize
2181 }
2182 return n
2183 },
2184 func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) {
2185 s := ptr.getPointerSlice()
2186 var err error
2187 var nerr nonFatal
2188 for _, v := range s {
2189 if v.isNil() {
2190 return b, errRepeatedHasNil
2191 }
2192 b = appendVarint(b, wiretag) // start group
2193 b, err = u.marshal(b, v, deterministic)
2194 b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group
2195 if !nerr.Merge(err) {
2196 if err == ErrNil {
2197 err = errRepeatedHasNil
2198 }
2199 return b, err
2200 }
2201 }
2202 return b, nerr.E
2203 }
2204}
2205
2206// makeMessageMarshaler returns the sizer and marshaler for a message field.
2207// u is the marshal info of the message.
2208func makeMessageMarshaler(u *marshalInfo) (sizer, marshaler) {
2209 return func(ptr pointer, tagsize int) int {
2210 p := ptr.getPointer()
2211 if p.isNil() {
2212 return 0
2213 }
2214 siz := u.size(p)
2215 return siz + SizeVarint(uint64(siz)) + tagsize
2216 },
2217 func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) {
2218 p := ptr.getPointer()
2219 if p.isNil() {
2220 return b, nil
2221 }
2222 b = appendVarint(b, wiretag)
2223 siz := u.cachedsize(p)
2224 b = appendVarint(b, uint64(siz))
2225 return u.marshal(b, p, deterministic)
2226 }
2227}
2228
2229// makeMessageSliceMarshaler returns the sizer and marshaler for a message slice.
2230// u is the marshal info of the message.
2231func makeMessageSliceMarshaler(u *marshalInfo) (sizer, marshaler) {
2232 return func(ptr pointer, tagsize int) int {
2233 s := ptr.getPointerSlice()
2234 n := 0
2235 for _, v := range s {
2236 if v.isNil() {
2237 continue
2238 }
2239 siz := u.size(v)
2240 n += siz + SizeVarint(uint64(siz)) + tagsize
2241 }
2242 return n
2243 },
2244 func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) {
2245 s := ptr.getPointerSlice()
2246 var err error
2247 var nerr nonFatal
2248 for _, v := range s {
2249 if v.isNil() {
2250 return b, errRepeatedHasNil
2251 }
2252 b = appendVarint(b, wiretag)
2253 siz := u.cachedsize(v)
2254 b = appendVarint(b, uint64(siz))
2255 b, err = u.marshal(b, v, deterministic)
2256
2257 if !nerr.Merge(err) {
2258 if err == ErrNil {
2259 err = errRepeatedHasNil
2260 }
2261 return b, err
2262 }
2263 }
2264 return b, nerr.E
2265 }
2266}
2267
2268// makeMapMarshaler returns the sizer and marshaler for a map field.
2269// f is the pointer to the reflect data structure of the field.
2270func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) {
2271 // figure out key and value type
2272 t := f.Type
2273 keyType := t.Key()
2274 valType := t.Elem()
2275 keyTags := strings.Split(f.Tag.Get("protobuf_key"), ",")
2276 valTags := strings.Split(f.Tag.Get("protobuf_val"), ",")
2277 keySizer, keyMarshaler := typeMarshaler(keyType, keyTags, false, false) // don't omit zero value in map
2278 valSizer, valMarshaler := typeMarshaler(valType, valTags, false, false) // don't omit zero value in map
2279 keyWireTag := 1<<3 | wiretype(keyTags[0])
2280 valWireTag := 2<<3 | wiretype(valTags[0])
2281
2282 // We create an interface to get the addresses of the map key and value.
2283 // If value is pointer-typed, the interface is a direct interface, the
2284 // idata itself is the value. Otherwise, the idata is the pointer to the
2285 // value.
2286 // Key cannot be pointer-typed.
2287 valIsPtr := valType.Kind() == reflect.Ptr
2288
2289 // If value is a message with nested maps, calling
2290 // valSizer in marshal may be quadratic. We should use
2291 // cached version in marshal (but not in size).
2292 // If value is not message type, we don't have size cache,
2293 // but it cannot be nested either. Just use valSizer.
2294 valCachedSizer := valSizer
2295 if valIsPtr && valType.Elem().Kind() == reflect.Struct {
2296 u := getMarshalInfo(valType.Elem())
2297 valCachedSizer = func(ptr pointer, tagsize int) int {
2298 // Same as message sizer, but use cache.
2299 p := ptr.getPointer()
2300 if p.isNil() {
2301 return 0
2302 }
2303 siz := u.cachedsize(p)
2304 return siz + SizeVarint(uint64(siz)) + tagsize
2305 }
2306 }
2307 return func(ptr pointer, tagsize int) int {
2308 m := ptr.asPointerTo(t).Elem() // the map
2309 n := 0
2310 for _, k := range m.MapKeys() {
2311 ki := k.Interface()
2312 vi := m.MapIndex(k).Interface()
2313 kaddr := toAddrPointer(&ki, false) // pointer to key
2314 vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value
2315 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
2317 }
2318 return n
2319 },
2320 func(b []byte, ptr pointer, tag uint64, deterministic bool) ([]byte, error) {
2321 m := ptr.asPointerTo(t).Elem() // the map
2322 var err error
2323 keys := m.MapKeys()
2324 if len(keys) > 1 && deterministic {
2325 sort.Sort(mapKeys(keys))
2326 }
2327
2328 var nerr nonFatal
2329 for _, k := range keys {
2330 ki := k.Interface()
2331 vi := m.MapIndex(k).Interface()
2332 kaddr := toAddrPointer(&ki, false) // pointer to key
2333 vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value
2334 b = appendVarint(b, tag)
2335 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))
2337 b, err = keyMarshaler(b, kaddr, keyWireTag, deterministic)
2338 if !nerr.Merge(err) {
2339 return b, err
2340 }
2341 b, err = valMarshaler(b, vaddr, valWireTag, deterministic)
2342 if err != ErrNil && !nerr.Merge(err) { // allow nil value in map
2343 return b, err
2344 }
2345 }
2346 return b, nerr.E
2347 }
2348}
2349
2350// makeOneOfMarshaler returns the sizer and marshaler for a oneof field.
2351// fi is the marshal info of the field.
2352// f is the pointer to the reflect data structure of the field.
2353func makeOneOfMarshaler(fi *marshalFieldInfo, f *reflect.StructField) (sizer, marshaler) {
2354 // Oneof field is an interface. We need to get the actual data type on the fly.
2355 t := f.Type
2356 return func(ptr pointer, _ int) int {
2357 p := ptr.getInterfacePointer()
2358 if p.isNil() {
2359 return 0
2360 }
2361 v := ptr.asPointerTo(t).Elem().Elem().Elem() // *interface -> interface -> *struct -> struct
2362 telem := v.Type()
2363 e := fi.oneofElems[telem]
2364 return e.sizer(p, e.tagsize)
2365 },
2366 func(b []byte, ptr pointer, _ uint64, deterministic bool) ([]byte, error) {
2367 p := ptr.getInterfacePointer()
2368 if p.isNil() {
2369 return b, nil
2370 }
2371 v := ptr.asPointerTo(t).Elem().Elem().Elem() // *interface -> interface -> *struct -> struct
2372 telem := v.Type()
2373 if telem.Field(0).Type.Kind() == reflect.Ptr && p.getPointer().isNil() {
2374 return b, errOneofHasNil
2375 }
2376 e := fi.oneofElems[telem]
2377 return e.marshaler(b, p, e.wiretag, deterministic)
2378 }
2379}
2380
2381// sizeExtensions computes the size of encoded data for a XXX_InternalExtensions field.
2382func (u *marshalInfo) sizeExtensions(ext *XXX_InternalExtensions) int {
2383 m, mu := ext.extensionsRead()
2384 if m == nil {
2385 return 0
2386 }
2387 mu.Lock()
2388
2389 n := 0
2390 for _, e := range m {
2391 if e.value == nil || e.desc == nil {
2392 // Extension is only in its encoded form.
2393 n += len(e.enc)
2394 continue
2395 }
2396
2397 // We don't skip extensions that have an encoded form set,
2398 // because the extension value may have been mutated after
2399 // the last time this function was called.
2400 ei := u.getExtElemInfo(e.desc)
2401 v := e.value
2402 p := toAddrPointer(&v, ei.isptr)
2403 n += ei.sizer(p, ei.tagsize)
2404 }
2405 mu.Unlock()
2406 return n
2407}
2408
2409// appendExtensions marshals a XXX_InternalExtensions field to the end of byte slice b.
2410func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) {
2411 m, mu := ext.extensionsRead()
2412 if m == nil {
2413 return b, nil
2414 }
2415 mu.Lock()
2416 defer mu.Unlock()
2417
2418 var err error
2419 var nerr nonFatal
2420
2421 // Fast-path for common cases: zero or one extensions.
2422 // Don't bother sorting the keys.
2423 if len(m) <= 1 {
2424 for _, e := range m {
2425 if e.value == nil || e.desc == nil {
2426 // Extension is only in its encoded form.
2427 b = append(b, e.enc...)
2428 continue
2429 }
2430
2431 // We don't skip extensions that have an encoded form set,
2432 // because the extension value may have been mutated after
2433 // the last time this function was called.
2434
2435 ei := u.getExtElemInfo(e.desc)
2436 v := e.value
2437 p := toAddrPointer(&v, ei.isptr)
2438 b, err = ei.marshaler(b, p, ei.wiretag, deterministic)
2439 if !nerr.Merge(err) {
2440 return b, err
2441 }
2442 }
2443 return b, nerr.E
2444 }
2445
2446 // Sort the keys to provide a deterministic encoding.
2447 // Not sure this is required, but the old code does it.
2448 keys := make([]int, 0, len(m))
2449 for k := range m {
2450 keys = append(keys, int(k))
2451 }
2452 sort.Ints(keys)
2453
2454 for _, k := range keys {
2455 e := m[int32(k)]
2456 if e.value == nil || e.desc == nil {
2457 // Extension is only in its encoded form.
2458 b = append(b, e.enc...)
2459 continue
2460 }
2461
2462 // We don't skip extensions that have an encoded form set,
2463 // because the extension value may have been mutated after
2464 // the last time this function was called.
2465
2466 ei := u.getExtElemInfo(e.desc)
2467 v := e.value
2468 p := toAddrPointer(&v, ei.isptr)
2469 b, err = ei.marshaler(b, p, ei.wiretag, deterministic)
2470 if !nerr.Merge(err) {
2471 return b, err
2472 }
2473 }
2474 return b, nerr.E
2475}
2476
2477// message set format is:
2478// message MessageSet {
2479// repeated group Item = 1 {
2480// required int32 type_id = 2;
2481// required string message = 3;
2482// };
2483// }
2484
2485// sizeMessageSet computes the size of encoded data for a XXX_InternalExtensions field
2486// in message set format (above).
2487func (u *marshalInfo) sizeMessageSet(ext *XXX_InternalExtensions) int {
2488 m, mu := ext.extensionsRead()
2489 if m == nil {
2490 return 0
2491 }
2492 mu.Lock()
2493
2494 n := 0
2495 for id, e := range m {
2496 n += 2 // start group, end group. tag = 1 (size=1)
2497 n += SizeVarint(uint64(id)) + 1 // type_id, tag = 2 (size=1)
2498
2499 if e.value == nil || e.desc == nil {
2500 // Extension is only in its encoded form.
2501 msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint
2502 siz := len(msgWithLen)
2503 n += siz + 1 // message, tag = 3 (size=1)
2504 continue
2505 }
2506
2507 // We don't skip extensions that have an encoded form set,
2508 // because the extension value may have been mutated after
2509 // the last time this function was called.
2510
2511 ei := u.getExtElemInfo(e.desc)
2512 v := e.value
2513 p := toAddrPointer(&v, ei.isptr)
2514 n += ei.sizer(p, 1) // message, tag = 3 (size=1)
2515 }
2516 mu.Unlock()
2517 return n
2518}
2519
2520// appendMessageSet marshals a XXX_InternalExtensions field in message set format (above)
2521// to the end of byte slice b.
2522func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) {
2523 m, mu := ext.extensionsRead()
2524 if m == nil {
2525 return b, nil
2526 }
2527 mu.Lock()
2528 defer mu.Unlock()
2529
2530 var err error
2531 var nerr nonFatal
2532
2533 // Fast-path for common cases: zero or one extensions.
2534 // Don't bother sorting the keys.
2535 if len(m) <= 1 {
2536 for id, e := range m {
2537 b = append(b, 1<<3|WireStartGroup)
2538 b = append(b, 2<<3|WireVarint)
2539 b = appendVarint(b, uint64(id))
2540
2541 if e.value == nil || e.desc == nil {
2542 // Extension is only in its encoded form.
2543 msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint
2544 b = append(b, 3<<3|WireBytes)
2545 b = append(b, msgWithLen...)
2546 b = append(b, 1<<3|WireEndGroup)
2547 continue
2548 }
2549
2550 // We don't skip extensions that have an encoded form set,
2551 // because the extension value may have been mutated after
2552 // the last time this function was called.
2553
2554 ei := u.getExtElemInfo(e.desc)
2555 v := e.value
2556 p := toAddrPointer(&v, ei.isptr)
2557 b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic)
2558 if !nerr.Merge(err) {
2559 return b, err
2560 }
2561 b = append(b, 1<<3|WireEndGroup)
2562 }
2563 return b, nerr.E
2564 }
2565
2566 // Sort the keys to provide a deterministic encoding.
2567 keys := make([]int, 0, len(m))
2568 for k := range m {
2569 keys = append(keys, int(k))
2570 }
2571 sort.Ints(keys)
2572
2573 for _, id := range keys {
2574 e := m[int32(id)]
2575 b = append(b, 1<<3|WireStartGroup)
2576 b = append(b, 2<<3|WireVarint)
2577 b = appendVarint(b, uint64(id))
2578
2579 if e.value == nil || e.desc == nil {
2580 // Extension is only in its encoded form.
2581 msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint
2582 b = append(b, 3<<3|WireBytes)
2583 b = append(b, msgWithLen...)
2584 b = append(b, 1<<3|WireEndGroup)
2585 continue
2586 }
2587
2588 // We don't skip extensions that have an encoded form set,
2589 // because the extension value may have been mutated after
2590 // the last time this function was called.
2591
2592 ei := u.getExtElemInfo(e.desc)
2593 v := e.value
2594 p := toAddrPointer(&v, ei.isptr)
2595 b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic)
2596 b = append(b, 1<<3|WireEndGroup)
2597 if !nerr.Merge(err) {
2598 return b, err
2599 }
2600 }
2601 return b, nerr.E
2602}
2603
2604// sizeV1Extensions computes the size of encoded data for a V1-API extension field.
2605func (u *marshalInfo) sizeV1Extensions(m map[int32]Extension) int {
2606 if m == nil {
2607 return 0
2608 }
2609
2610 n := 0
2611 for _, e := range m {
2612 if e.value == nil || e.desc == nil {
2613 // Extension is only in its encoded form.
2614 n += len(e.enc)
2615 continue
2616 }
2617
2618 // We don't skip extensions that have an encoded form set,
2619 // because the extension value may have been mutated after
2620 // the last time this function was called.
2621
2622 ei := u.getExtElemInfo(e.desc)
2623 v := e.value
2624 p := toAddrPointer(&v, ei.isptr)
2625 n += ei.sizer(p, ei.tagsize)
2626 }
2627 return n
2628}
2629
2630// appendV1Extensions marshals a V1-API extension field to the end of byte slice b.
2631func (u *marshalInfo) appendV1Extensions(b []byte, m map[int32]Extension, deterministic bool) ([]byte, error) {
2632 if m == nil {
2633 return b, nil
2634 }
2635
2636 // Sort the keys to provide a deterministic encoding.
2637 keys := make([]int, 0, len(m))
2638 for k := range m {
2639 keys = append(keys, int(k))
2640 }
2641 sort.Ints(keys)
2642
2643 var err error
2644 var nerr nonFatal
2645 for _, k := range keys {
2646 e := m[int32(k)]
2647 if e.value == nil || e.desc == nil {
2648 // Extension is only in its encoded form.
2649 b = append(b, e.enc...)
2650 continue
2651 }
2652
2653 // We don't skip extensions that have an encoded form set,
2654 // because the extension value may have been mutated after
2655 // the last time this function was called.
2656
2657 ei := u.getExtElemInfo(e.desc)
2658 v := e.value
2659 p := toAddrPointer(&v, ei.isptr)
2660 b, err = ei.marshaler(b, p, ei.wiretag, deterministic)
2661 if !nerr.Merge(err) {
2662 return b, err
2663 }
2664 }
2665 return b, nerr.E
2666}
2667
2668// newMarshaler is the interface representing objects that can marshal themselves.
2669//
2670// This exists to support protoc-gen-go generated messages.
2671// The proto package will stop type-asserting to this interface in the future.
2672//
2673// DO NOT DEPEND ON THIS.
2674type newMarshaler interface {
2675 XXX_Size() int
2676 XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
2677}
2678
2679// Size returns the encoded size of a protocol buffer message.
2680// This is the main entry point.
2681func Size(pb Message) int {
2682 if m, ok := pb.(newMarshaler); ok {
2683 return m.XXX_Size()
2684 }
2685 if m, ok := pb.(Marshaler); ok {
2686 // If the message can marshal itself, let it do it, for compatibility.
2687 // NOTE: This is not efficient.
2688 b, _ := m.Marshal()
2689 return len(b)
2690 }
2691 // in case somehow we didn't generate the wrapper
2692 if pb == nil {
2693 return 0
2694 }
2695 var info InternalMessageInfo
2696 return info.Size(pb)
2697}
2698
2699// Marshal takes a protocol buffer message
2700// and encodes it into the wire format, returning the data.
2701// This is the main entry point.
2702func Marshal(pb Message) ([]byte, error) {
2703 if m, ok := pb.(newMarshaler); ok {
2704 siz := m.XXX_Size()
2705 b := make([]byte, 0, siz)
2706 return m.XXX_Marshal(b, false)
2707 }
2708 if m, ok := pb.(Marshaler); ok {
2709 // If the message can marshal itself, let it do it, for compatibility.
2710 // NOTE: This is not efficient.
2711 return m.Marshal()
2712 }
2713 // in case somehow we didn't generate the wrapper
2714 if pb == nil {
2715 return nil, ErrNil
2716 }
2717 var info InternalMessageInfo
2718 siz := info.Size(pb)
2719 b := make([]byte, 0, siz)
2720 return info.Marshal(b, pb, false)
2721}
2722
2723// Marshal takes a protocol buffer message
2724// and encodes it into the wire format, writing the result to the
2725// Buffer.
2726// This is an alternative entry point. It is not necessary to use
2727// a Buffer for most applications.
2728func (p *Buffer) Marshal(pb Message) error {
2729 var err error
2730 if m, ok := pb.(newMarshaler); ok {
2731 siz := m.XXX_Size()
2732 p.grow(siz) // make sure buf has enough capacity
2733 p.buf, err = m.XXX_Marshal(p.buf, p.deterministic)
2734 return err
2735 }
2736 if m, ok := pb.(Marshaler); ok {
2737 // If the message can marshal itself, let it do it, for compatibility.
2738 // NOTE: This is not efficient.
2739 b, err := m.Marshal()
2740 p.buf = append(p.buf, b...)
2741 return err
2742 }
2743 // in case somehow we didn't generate the wrapper
2744 if pb == nil {
2745 return ErrNil
2746 }
2747 var info InternalMessageInfo
2748 siz := info.Size(pb)
2749 p.grow(siz) // make sure buf has enough capacity
2750 p.buf, err = info.Marshal(p.buf, pb, p.deterministic)
2751 return err
2752}
2753
2754// grow grows the buffer's capacity, if necessary, to guarantee space for
2755// another n bytes. After grow(n), at least n bytes can be written to the
2756// buffer without another allocation.
2757func (p *Buffer) grow(n int) {
2758 need := len(p.buf) + n
2759 if need <= cap(p.buf) {
2760 return
2761 }
2762 newCap := len(p.buf) * 2
2763 if newCap < need {
2764 newCap = need
2765 }
2766 p.buf = append(make([]byte, 0, newCap), p.buf...)
2767}
diff --git a/vendor/github.com/golang/protobuf/proto/table_merge.go b/vendor/github.com/golang/protobuf/proto/table_merge.go
new file mode 100644
index 0000000..5525def
--- /dev/null
+++ b/vendor/github.com/golang/protobuf/proto/table_merge.go
@@ -0,0 +1,654 @@
1// Go support for Protocol Buffers - Google's data interchange format
2//
3// Copyright 2016 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 (
35 "fmt"
36 "reflect"
37 "strings"
38 "sync"
39 "sync/atomic"
40)
41
42// Merge merges the src message into dst.
43// This assumes that dst and src of the same type and are non-nil.
44func (a *InternalMessageInfo) Merge(dst, src Message) {
45 mi := atomicLoadMergeInfo(&a.merge)
46 if mi == nil {
47 mi = getMergeInfo(reflect.TypeOf(dst).Elem())
48 atomicStoreMergeInfo(&a.merge, mi)
49 }
50 mi.merge(toPointer(&dst), toPointer(&src))
51}
52
53type mergeInfo struct {
54 typ reflect.Type
55
56 initialized int32 // 0: only typ is valid, 1: everything is valid
57 lock sync.Mutex
58
59 fields []mergeFieldInfo
60 unrecognized field // Offset of XXX_unrecognized
61}
62
63type mergeFieldInfo struct {
64 field field // Offset of field, guaranteed to be valid
65
66 // isPointer reports whether the value in the field is a pointer.
67 // This is true for the following situations:
68 // * Pointer to struct
69 // * Pointer to basic type (proto2 only)
70 // * Slice (first value in slice header is a pointer)
71 // * String (first value in string header is a pointer)
72 isPointer bool
73
74 // basicWidth reports the width of the field assuming that it is directly
75 // embedded in the struct (as is the case for basic types in proto3).
76 // The possible values are:
77 // 0: invalid
78 // 1: bool
79 // 4: int32, uint32, float32
80 // 8: int64, uint64, float64
81 basicWidth int
82
83 // Where dst and src are pointers to the types being merged.
84 merge func(dst, src pointer)
85}
86
87var (
88 mergeInfoMap = map[reflect.Type]*mergeInfo{}
89 mergeInfoLock sync.Mutex
90)
91
92func getMergeInfo(t reflect.Type) *mergeInfo {
93 mergeInfoLock.Lock()
94 defer mergeInfoLock.Unlock()
95 mi := mergeInfoMap[t]
96 if mi == nil {
97 mi = &mergeInfo{typ: t}
98 mergeInfoMap[t] = mi
99 }
100 return mi
101}
102
103// merge merges src into dst assuming they are both of type *mi.typ.
104func (mi *mergeInfo) merge(dst, src pointer) {
105 if dst.isNil() {
106 panic("proto: nil destination")
107 }
108 if src.isNil() {
109 return // Nothing to do.
110 }
111
112 if atomic.LoadInt32(&mi.initialized) == 0 {
113 mi.computeMergeInfo()
114 }
115
116 for _, fi := range mi.fields {
117 sfp := src.offset(fi.field)
118
119 // As an optimization, we can avoid the merge function call cost
120 // if we know for sure that the source will have no effect
121 // by checking if it is the zero value.
122 if unsafeAllowed {
123 if fi.isPointer && sfp.getPointer().isNil() { // Could be slice or string
124 continue
125 }
126 if fi.basicWidth > 0 {
127 switch {
128 case fi.basicWidth == 1 && !*sfp.toBool():
129 continue
130 case fi.basicWidth == 4 && *sfp.toUint32() == 0:
131 continue
132 case fi.basicWidth == 8 && *sfp.toUint64() == 0:
133 continue
134 }
135 }
136 }
137
138 dfp := dst.offset(fi.field)
139 fi.merge(dfp, sfp)
140 }
141
142 // TODO: Make this faster?
143 out := dst.asPointerTo(mi.typ).Elem()
144 in := src.asPointerTo(mi.typ).Elem()
145 if emIn, err := extendable(in.Addr().Interface()); err == nil {
146 emOut, _ := extendable(out.Addr().Interface())
147 mIn, muIn := emIn.extensionsRead()
148 if mIn != nil {
149 mOut := emOut.extensionsWrite()
150 muIn.Lock()
151 mergeExtension(mOut, mIn)
152 muIn.Unlock()
153 }
154 }
155
156 if mi.unrecognized.IsValid() {
157 if b := *src.offset(mi.unrecognized).toBytes(); len(b) > 0 {
158 *dst.offset(mi.unrecognized).toBytes() = append([]byte(nil), b...)
159 }
160 }
161}
162
163func (mi *mergeInfo) computeMergeInfo() {
164 mi.lock.Lock()
165 defer mi.lock.Unlock()
166 if mi.initialized != 0 {
167 return
168 }
169 t := mi.typ
170 n := t.NumField()
171
172 props := GetProperties(t)
173 for i := 0; i < n; i++ {
174 f := t.Field(i)
175 if strings.HasPrefix(f.Name, "XXX_") {
176 continue
177 }
178
179 mfi := mergeFieldInfo{field: toField(&f)}
180 tf := f.Type
181
182 // As an optimization, we can avoid the merge function call cost
183 // if we know for sure that the source will have no effect
184 // by checking if it is the zero value.
185 if unsafeAllowed {
186 switch tf.Kind() {
187 case reflect.Ptr, reflect.Slice, reflect.String:
188 // As a special case, we assume slices and strings are pointers
189 // since we know that the first field in the SliceSlice or
190 // StringHeader is a data pointer.
191 mfi.isPointer = true
192 case reflect.Bool:
193 mfi.basicWidth = 1
194 case reflect.Int32, reflect.Uint32, reflect.Float32:
195 mfi.basicWidth = 4
196 case reflect.Int64, reflect.Uint64, reflect.Float64:
197 mfi.basicWidth = 8
198 }
199 }
200
201 // Unwrap tf to get at its most basic type.
202 var isPointer, isSlice bool
203 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {
204 isSlice = true
205 tf = tf.Elem()
206 }
207 if tf.Kind() == reflect.Ptr {
208 isPointer = true
209 tf = tf.Elem()
210 }
211 if isPointer && isSlice && tf.Kind() != reflect.Struct {
212 panic("both pointer and slice for basic type in " + tf.Name())
213 }
214
215 switch tf.Kind() {
216 case reflect.Int32:
217 switch {
218 case isSlice: // E.g., []int32
219 mfi.merge = func(dst, src pointer) {
220 // NOTE: toInt32Slice is not defined (see pointer_reflect.go).
221 /*
222 sfsp := src.toInt32Slice()
223 if *sfsp != nil {
224 dfsp := dst.toInt32Slice()
225 *dfsp = append(*dfsp, *sfsp...)
226 if *dfsp == nil {
227 *dfsp = []int64{}
228 }
229 }
230 */
231 sfs := src.getInt32Slice()
232 if sfs != nil {
233 dfs := dst.getInt32Slice()
234 dfs = append(dfs, sfs...)
235 if dfs == nil {
236 dfs = []int32{}
237 }
238 dst.setInt32Slice(dfs)
239 }
240 }
241 case isPointer: // E.g., *int32
242 mfi.merge = func(dst, src pointer) {
243 // NOTE: toInt32Ptr is not defined (see pointer_reflect.go).
244 /*
245 sfpp := src.toInt32Ptr()
246 if *sfpp != nil {
247 dfpp := dst.toInt32Ptr()
248 if *dfpp == nil {
249 *dfpp = Int32(**sfpp)
250 } else {
251 **dfpp = **sfpp
252 }
253 }
254 */
255 sfp := src.getInt32Ptr()
256 if sfp != nil {
257 dfp := dst.getInt32Ptr()
258 if dfp == nil {
259 dst.setInt32Ptr(*sfp)
260 } else {
261 *dfp = *sfp
262 }
263 }
264 }
265 default: // E.g., int32
266 mfi.merge = func(dst, src pointer) {
267 if v := *src.toInt32(); v != 0 {
268 *dst.toInt32() = v
269 }
270 }
271 }
272 case reflect.Int64:
273 switch {
274 case isSlice: // E.g., []int64
275 mfi.merge = func(dst, src pointer) {
276 sfsp := src.toInt64Slice()
277 if *sfsp != nil {
278 dfsp := dst.toInt64Slice()
279 *dfsp = append(*dfsp, *sfsp...)
280 if *dfsp == nil {
281 *dfsp = []int64{}
282 }
283 }
284 }
285 case isPointer: // E.g., *int64
286 mfi.merge = func(dst, src pointer) {
287 sfpp := src.toInt64Ptr()
288 if *sfpp != nil {
289 dfpp := dst.toInt64Ptr()
290 if *dfpp == nil {
291 *dfpp = Int64(**sfpp)
292 } else {
293 **dfpp = **sfpp
294 }
295 }
296 }
297 default: // E.g., int64
298 mfi.merge = func(dst, src pointer) {
299 if v := *src.toInt64(); v != 0 {
300 *dst.toInt64() = v
301 }
302 }
303 }
304 case reflect.Uint32:
305 switch {
306 case isSlice: // E.g., []uint32
307 mfi.merge = func(dst, src pointer) {
308 sfsp := src.toUint32Slice()
309 if *sfsp != nil {
310 dfsp := dst.toUint32Slice()
311 *dfsp = append(*dfsp, *sfsp...)
312 if *dfsp == nil {
313 *dfsp = []uint32{}
314 }
315 }
316 }
317 case isPointer: // E.g., *uint32
318 mfi.merge = func(dst, src pointer) {
319 sfpp := src.toUint32Ptr()
320 if *sfpp != nil {
321 dfpp := dst.toUint32Ptr()
322 if *dfpp == nil {
323 *dfpp = Uint32(**sfpp)
324 } else {
325 **dfpp = **sfpp
326 }
327 }
328 }
329 default: // E.g., uint32
330 mfi.merge = func(dst, src pointer) {
331 if v := *src.toUint32(); v != 0 {
332 *dst.toUint32() = v
333 }
334 }
335 }
336 case reflect.Uint64:
337 switch {
338 case isSlice: // E.g., []uint64
339 mfi.merge = func(dst, src pointer) {
340 sfsp := src.toUint64Slice()
341 if *sfsp != nil {
342 dfsp := dst.toUint64Slice()
343 *dfsp = append(*dfsp, *sfsp...)
344 if *dfsp == nil {
345 *dfsp = []uint64{}
346 }
347 }
348 }
349 case isPointer: // E.g., *uint64
350 mfi.merge = func(dst, src pointer) {
351 sfpp := src.toUint64Ptr()
352 if *sfpp != nil {
353 dfpp := dst.toUint64Ptr()
354 if *dfpp == nil {
355 *dfpp = Uint64(**sfpp)
356 } else {
357 **dfpp = **sfpp
358 }
359 }
360 }
361 default: // E.g., uint64
362 mfi.merge = func(dst, src pointer) {
363 if v := *src.toUint64(); v != 0 {
364 *dst.toUint64() = v
365 }
366 }
367 }
368 case reflect.Float32:
369 switch {
370 case isSlice: // E.g., []float32
371 mfi.merge = func(dst, src pointer) {
372 sfsp := src.toFloat32Slice()
373 if *sfsp != nil {
374 dfsp := dst.toFloat32Slice()
375 *dfsp = append(*dfsp, *sfsp...)
376 if *dfsp == nil {
377 *dfsp = []float32{}
378 }
379 }
380 }
381 case isPointer: // E.g., *float32
382 mfi.merge = func(dst, src pointer) {
383 sfpp := src.toFloat32Ptr()
384 if *sfpp != nil {
385 dfpp := dst.toFloat32Ptr()
386 if *dfpp == nil {
387 *dfpp = Float32(**sfpp)
388 } else {
389 **dfpp = **sfpp
390 }
391 }
392 }
393 default: // E.g., float32
394 mfi.merge = func(dst, src pointer) {
395 if v := *src.toFloat32(); v != 0 {
396 *dst.toFloat32() = v
397 }
398 }
399 }
400 case reflect.Float64:
401 switch {
402 case isSlice: // E.g., []float64
403 mfi.merge = func(dst, src pointer) {
404 sfsp := src.toFloat64Slice()
405 if *sfsp != nil {
406 dfsp := dst.toFloat64Slice()
407 *dfsp = append(*dfsp, *sfsp...)
408 if *dfsp == nil {
409 *dfsp = []float64{}
410 }
411 }
412 }
413 case isPointer: // E.g., *float64
414 mfi.merge = func(dst, src pointer) {
415 sfpp := src.toFloat64Ptr()
416 if *sfpp != nil {
417 dfpp := dst.toFloat64Ptr()
418 if *dfpp == nil {
419 *dfpp = Float64(**sfpp)
420 } else {
421 **dfpp = **sfpp
422 }
423 }
424 }
425 default: // E.g., float64
426 mfi.merge = func(dst, src pointer) {
427 if v := *src.toFloat64(); v != 0 {
428 *dst.toFloat64() = v
429 }
430 }
431 }
432 case reflect.Bool:
433 switch {
434 case isSlice: // E.g., []bool
435 mfi.merge = func(dst, src pointer) {
436 sfsp := src.toBoolSlice()
437 if *sfsp != nil {
438 dfsp := dst.toBoolSlice()
439 *dfsp = append(*dfsp, *sfsp...)
440 if *dfsp == nil {
441 *dfsp = []bool{}
442 }
443 }
444 }
445 case isPointer: // E.g., *bool
446 mfi.merge = func(dst, src pointer) {
447 sfpp := src.toBoolPtr()
448 if *sfpp != nil {
449 dfpp := dst.toBoolPtr()
450 if *dfpp == nil {
451 *dfpp = Bool(**sfpp)
452 } else {
453 **dfpp = **sfpp
454 }
455 }
456 }
457 default: // E.g., bool
458 mfi.merge = func(dst, src pointer) {
459 if v := *src.toBool(); v {
460 *dst.toBool() = v
461 }
462 }
463 }
464 case reflect.String:
465 switch {
466 case isSlice: // E.g., []string
467 mfi.merge = func(dst, src pointer) {
468 sfsp := src.toStringSlice()
469 if *sfsp != nil {
470 dfsp := dst.toStringSlice()
471 *dfsp = append(*dfsp, *sfsp...)
472 if *dfsp == nil {
473 *dfsp = []string{}
474 }
475 }
476 }
477 case isPointer: // E.g., *string
478 mfi.merge = func(dst, src pointer) {
479 sfpp := src.toStringPtr()
480 if *sfpp != nil {
481 dfpp := dst.toStringPtr()
482 if *dfpp == nil {
483 *dfpp = String(**sfpp)
484 } else {
485 **dfpp = **sfpp
486 }
487 }
488 }
489 default: // E.g., string
490 mfi.merge = func(dst, src pointer) {
491 if v := *src.toString(); v != "" {
492 *dst.toString() = v
493 }
494 }
495 }
496 case reflect.Slice:
497 isProto3 := props.Prop[i].proto3
498 switch {
499 case isPointer:
500 panic("bad pointer in byte slice case in " + tf.Name())
501 case tf.Elem().Kind() != reflect.Uint8:
502 panic("bad element kind in byte slice case in " + tf.Name())
503 case isSlice: // E.g., [][]byte
504 mfi.merge = func(dst, src pointer) {
505 sbsp := src.toBytesSlice()
506 if *sbsp != nil {
507 dbsp := dst.toBytesSlice()
508 for _, sb := range *sbsp {
509 if sb == nil {
510 *dbsp = append(*dbsp, nil)
511 } else {
512 *dbsp = append(*dbsp, append([]byte{}, sb...))
513 }
514 }
515 if *dbsp == nil {
516 *dbsp = [][]byte{}
517 }
518 }
519 }
520 default: // E.g., []byte
521 mfi.merge = func(dst, src pointer) {
522 sbp := src.toBytes()
523 if *sbp != nil {
524 dbp := dst.toBytes()
525 if !isProto3 || len(*sbp) > 0 {
526 *dbp = append([]byte{}, *sbp...)
527 }
528 }
529 }
530 }
531 case reflect.Struct:
532 switch {
533 case !isPointer:
534 panic(fmt.Sprintf("message field %s without pointer", tf))
535 case isSlice: // E.g., []*pb.T
536 mi := getMergeInfo(tf)
537 mfi.merge = func(dst, src pointer) {
538 sps := src.getPointerSlice()
539 if sps != nil {
540 dps := dst.getPointerSlice()
541 for _, sp := range sps {
542 var dp pointer
543 if !sp.isNil() {
544 dp = valToPointer(reflect.New(tf))
545 mi.merge(dp, sp)
546 }
547 dps = append(dps, dp)
548 }
549 if dps == nil {
550 dps = []pointer{}
551 }
552 dst.setPointerSlice(dps)
553 }
554 }
555 default: // E.g., *pb.T
556 mi := getMergeInfo(tf)
557 mfi.merge = func(dst, src pointer) {
558 sp := src.getPointer()
559 if !sp.isNil() {
560 dp := dst.getPointer()
561 if dp.isNil() {
562 dp = valToPointer(reflect.New(tf))
563 dst.setPointer(dp)
564 }
565 mi.merge(dp, sp)
566 }
567 }
568 }
569 case reflect.Map:
570 switch {
571 case isPointer || isSlice:
572 panic("bad pointer or slice in map case in " + tf.Name())
573 default: // E.g., map[K]V
574 mfi.merge = func(dst, src pointer) {
575 sm := src.asPointerTo(tf).Elem()
576 if sm.Len() == 0 {
577 return
578 }
579 dm := dst.asPointerTo(tf).Elem()
580 if dm.IsNil() {
581 dm.Set(reflect.MakeMap(tf))
582 }
583
584 switch tf.Elem().Kind() {
585 case reflect.Ptr: // Proto struct (e.g., *T)
586 for _, key := range sm.MapKeys() {
587 val := sm.MapIndex(key)
588 val = reflect.ValueOf(Clone(val.Interface().(Message)))
589 dm.SetMapIndex(key, val)
590 }
591 case reflect.Slice: // E.g. Bytes type (e.g., []byte)
592 for _, key := range sm.MapKeys() {
593 val := sm.MapIndex(key)
594 val = reflect.ValueOf(append([]byte{}, val.Bytes()...))
595 dm.SetMapIndex(key, val)
596 }
597 default: // Basic type (e.g., string)
598 for _, key := range sm.MapKeys() {
599 val := sm.MapIndex(key)
600 dm.SetMapIndex(key, val)
601 }
602 }
603 }
604 }
605 case reflect.Interface:
606 // Must be oneof field.
607 switch {
608 case isPointer || isSlice:
609 panic("bad pointer or slice in interface case in " + tf.Name())
610 default: // E.g., interface{}
611 // TODO: Make this faster?
612 mfi.merge = func(dst, src pointer) {
613 su := src.asPointerTo(tf).Elem()
614 if !su.IsNil() {
615 du := dst.asPointerTo(tf).Elem()
616 typ := su.Elem().Type()
617 if du.IsNil() || du.Elem().Type() != typ {
618 du.Set(reflect.New(typ.Elem())) // Initialize interface if empty
619 }
620 sv := su.Elem().Elem().Field(0)
621 if sv.Kind() == reflect.Ptr && sv.IsNil() {
622 return
623 }
624 dv := du.Elem().Elem().Field(0)
625 if dv.Kind() == reflect.Ptr && dv.IsNil() {
626 dv.Set(reflect.New(sv.Type().Elem())) // Initialize proto message if empty
627 }
628 switch sv.Type().Kind() {
629 case reflect.Ptr: // Proto struct (e.g., *T)
630 Merge(dv.Interface().(Message), sv.Interface().(Message))
631 case reflect.Slice: // E.g. Bytes type (e.g., []byte)
632 dv.Set(reflect.ValueOf(append([]byte{}, sv.Bytes()...)))
633 default: // Basic type (e.g., string)
634 dv.Set(sv)
635 }
636 }
637 }
638 }
639 default:
640 panic(fmt.Sprintf("merger not found for type:%s", tf))
641 }
642 mi.fields = append(mi.fields, mfi)
643 }
644
645 mi.unrecognized = invalidField
646 if f, ok := t.FieldByName("XXX_unrecognized"); ok {
647 if f.Type != reflect.TypeOf([]byte{}) {
648 panic("expected XXX_unrecognized to be of type []byte")
649 }
650 mi.unrecognized = toField(&f)
651 }
652
653 atomic.StoreInt32(&mi.initialized, 1)
654}
diff --git a/vendor/github.com/golang/protobuf/proto/table_unmarshal.go b/vendor/github.com/golang/protobuf/proto/table_unmarshal.go
new file mode 100644
index 0000000..ebf1caa
--- /dev/null
+++ b/vendor/github.com/golang/protobuf/proto/table_unmarshal.go
@@ -0,0 +1,2051 @@
1// Go support for Protocol Buffers - Google's data interchange format
2//
3// Copyright 2016 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 (
35 "errors"
36 "fmt"
37 "io"
38 "math"
39 "reflect"
40 "strconv"
41 "strings"
42 "sync"
43 "sync/atomic"
44 "unicode/utf8"
45)
46
47// Unmarshal is the entry point from the generated .pb.go files.
48// This function is not intended to be used by non-generated code.
49// This function is not subject to any compatibility guarantee.
50// msg contains a pointer to a protocol buffer struct.
51// b is the data to be unmarshaled into the protocol buffer.
52// a is a pointer to a place to store cached unmarshal information.
53func (a *InternalMessageInfo) Unmarshal(msg Message, b []byte) error {
54 // Load the unmarshal information for this message type.
55 // The atomic load ensures memory consistency.
56 u := atomicLoadUnmarshalInfo(&a.unmarshal)
57 if u == nil {
58 // Slow path: find unmarshal info for msg, update a with it.
59 u = getUnmarshalInfo(reflect.TypeOf(msg).Elem())
60 atomicStoreUnmarshalInfo(&a.unmarshal, u)
61 }
62 // Then do the unmarshaling.
63 err := u.unmarshal(toPointer(&msg), b)
64 return err
65}
66
67type unmarshalInfo struct {
68 typ reflect.Type // type of the protobuf struct
69
70 // 0 = only typ field is initialized
71 // 1 = completely initialized
72 initialized int32
73 lock sync.Mutex // prevents double initialization
74 dense []unmarshalFieldInfo // fields indexed by tag #
75 sparse map[uint64]unmarshalFieldInfo // fields indexed by tag #
76 reqFields []string // names of required fields
77 reqMask uint64 // 1<<len(reqFields)-1
78 unrecognized field // offset of []byte to put unrecognized data (or invalidField if we should throw it away)
79 extensions field // offset of extensions field (of type proto.XXX_InternalExtensions), or invalidField if it does not exist
80 oldExtensions field // offset of old-form extensions field (of type map[int]Extension)
81 extensionRanges []ExtensionRange // if non-nil, implies extensions field is valid
82 isMessageSet bool // if true, implies extensions field is valid
83}
84
85// An unmarshaler takes a stream of bytes and a pointer to a field of a message.
86// It decodes the field, stores it at f, and returns the unused bytes.
87// w is the wire encoding.
88// b is the data after the tag and wire encoding have been read.
89type unmarshaler func(b []byte, f pointer, w int) ([]byte, error)
90
91type unmarshalFieldInfo struct {
92 // location of the field in the proto message structure.
93 field field
94
95 // function to unmarshal the data for the field.
96 unmarshal unmarshaler
97
98 // if a required field, contains a single set bit at this field's index in the required field list.
99 reqMask uint64
100
101 name string // name of the field, for error reporting
102}
103
104var (
105 unmarshalInfoMap = map[reflect.Type]*unmarshalInfo{}
106 unmarshalInfoLock sync.Mutex
107)
108
109// getUnmarshalInfo returns the data structure which can be
110// subsequently used to unmarshal a message of the given type.
111// t is the type of the message (note: not pointer to message).
112func getUnmarshalInfo(t reflect.Type) *unmarshalInfo {
113 // It would be correct to return a new unmarshalInfo
114 // unconditionally. We would end up allocating one
115 // per occurrence of that type as a message or submessage.
116 // We use a cache here just to reduce memory usage.
117 unmarshalInfoLock.Lock()
118 defer unmarshalInfoLock.Unlock()
119 u := unmarshalInfoMap[t]
120 if u == nil {
121 u = &unmarshalInfo{typ: t}
122 // Note: we just set the type here. The rest of the fields
123 // will be initialized on first use.
124 unmarshalInfoMap[t] = u
125 }
126 return u
127}
128
129// unmarshal does the main work of unmarshaling a message.
130// u provides type information used to unmarshal the message.
131// m is a pointer to a protocol buffer message.
132// b is a byte stream to unmarshal into m.
133// This is top routine used when recursively unmarshaling submessages.
134func (u *unmarshalInfo) unmarshal(m pointer, b []byte) error {
135 if atomic.LoadInt32(&u.initialized) == 0 {
136 u.computeUnmarshalInfo()
137 }
138 if u.isMessageSet {
139 return UnmarshalMessageSet(b, m.offset(u.extensions).toExtensions())
140 }
141 var reqMask uint64 // bitmask of required fields we've seen.
142 var errLater error
143 for len(b) > 0 {
144 // Read tag and wire type.
145 // Special case 1 and 2 byte varints.
146 var x uint64
147 if b[0] < 128 {
148 x = uint64(b[0])
149 b = b[1:]
150 } else if len(b) >= 2 && b[1] < 128 {
151 x = uint64(b[0]&0x7f) + uint64(b[1])<<7
152 b = b[2:]
153 } else {
154 var n int
155 x, n = decodeVarint(b)
156 if n == 0 {
157 return io.ErrUnexpectedEOF
158 }
159 b = b[n:]
160 }
161 tag := x >> 3
162 wire := int(x) & 7
163
164 // Dispatch on the tag to one of the unmarshal* functions below.
165 var f unmarshalFieldInfo
166 if tag < uint64(len(u.dense)) {
167 f = u.dense[tag]
168 } else {
169 f = u.sparse[tag]
170 }
171 if fn := f.unmarshal; fn != nil {
172 var err error
173 b, err = fn(b, m.offset(f.field), wire)
174 if err == nil {
175 reqMask |= f.reqMask
176 continue
177 }
178 if r, ok := err.(*RequiredNotSetError); ok {
179 // Remember this error, but keep parsing. We need to produce
180 // a full parse even if a required field is missing.
181 if errLater == nil {
182 errLater = r
183 }
184 reqMask |= f.reqMask
185 continue
186 }
187 if err != errInternalBadWireType {
188 if err == errInvalidUTF8 {
189 if errLater == nil {
190 fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name
191 errLater = &invalidUTF8Error{fullName}
192 }
193 continue
194 }
195 return err
196 }
197 // Fragments with bad wire type are treated as unknown fields.
198 }
199
200 // Unknown tag.
201 if !u.unrecognized.IsValid() {
202 // Don't keep unrecognized data; just skip it.
203 var err error
204 b, err = skipField(b, wire)
205 if err != nil {
206 return err
207 }
208 continue
209 }
210 // Keep unrecognized data around.
211 // maybe in extensions, maybe in the unrecognized field.
212 z := m.offset(u.unrecognized).toBytes()
213 var emap map[int32]Extension
214 var e Extension
215 for _, r := range u.extensionRanges {
216 if uint64(r.Start) <= tag && tag <= uint64(r.End) {
217 if u.extensions.IsValid() {
218 mp := m.offset(u.extensions).toExtensions()
219 emap = mp.extensionsWrite()
220 e = emap[int32(tag)]
221 z = &e.enc
222 break
223 }
224 if u.oldExtensions.IsValid() {
225 p := m.offset(u.oldExtensions).toOldExtensions()
226 emap = *p
227 if emap == nil {
228 emap = map[int32]Extension{}
229 *p = emap
230 }
231 e = emap[int32(tag)]
232 z = &e.enc
233 break
234 }
235 panic("no extensions field available")
236 }
237 }
238
239 // Use wire type to skip data.
240 var err error
241 b0 := b
242 b, err = skipField(b, wire)
243 if err != nil {
244 return err
245 }
246 *z = encodeVarint(*z, tag<<3|uint64(wire))
247 *z = append(*z, b0[:len(b0)-len(b)]...)
248
249 if emap != nil {
250 emap[int32(tag)] = e
251 }
252 }
253 if reqMask != u.reqMask && errLater == nil {
254 // A required field of this message is missing.
255 for _, n := range u.reqFields {
256 if reqMask&1 == 0 {
257 errLater = &RequiredNotSetError{n}
258 }
259 reqMask >>= 1
260 }
261 }
262 return errLater
263}
264
265// computeUnmarshalInfo fills in u with information for use
266// in unmarshaling protocol buffers of type u.typ.
267func (u *unmarshalInfo) computeUnmarshalInfo() {
268 u.lock.Lock()
269 defer u.lock.Unlock()
270 if u.initialized != 0 {
271 return
272 }
273 t := u.typ
274 n := t.NumField()
275
276 // Set up the "not found" value for the unrecognized byte buffer.
277 // This is the default for proto3.
278 u.unrecognized = invalidField
279 u.extensions = invalidField
280 u.oldExtensions = invalidField
281
282 // List of the generated type and offset for each oneof field.
283 type oneofField struct {
284 ityp reflect.Type // interface type of oneof field
285 field field // offset in containing message
286 }
287 var oneofFields []oneofField
288
289 for i := 0; i < n; i++ {
290 f := t.Field(i)
291 if f.Name == "XXX_unrecognized" {
292 // The byte slice used to hold unrecognized input is special.
293 if f.Type != reflect.TypeOf(([]byte)(nil)) {
294 panic("bad type for XXX_unrecognized field: " + f.Type.Name())
295 }
296 u.unrecognized = toField(&f)
297 continue
298 }
299 if f.Name == "XXX_InternalExtensions" {
300 // Ditto here.
301 if f.Type != reflect.TypeOf(XXX_InternalExtensions{}) {
302 panic("bad type for XXX_InternalExtensions field: " + f.Type.Name())
303 }
304 u.extensions = toField(&f)
305 if f.Tag.Get("protobuf_messageset") == "1" {
306 u.isMessageSet = true
307 }
308 continue
309 }
310 if f.Name == "XXX_extensions" {
311 // An older form of the extensions field.
312 if f.Type != reflect.TypeOf((map[int32]Extension)(nil)) {
313 panic("bad type for XXX_extensions field: " + f.Type.Name())
314 }
315 u.oldExtensions = toField(&f)
316 continue
317 }
318 if f.Name == "XXX_NoUnkeyedLiteral" || f.Name == "XXX_sizecache" {
319 continue
320 }
321
322 oneof := f.Tag.Get("protobuf_oneof")
323 if oneof != "" {
324 oneofFields = append(oneofFields, oneofField{f.Type, toField(&f)})
325 // The rest of oneof processing happens below.
326 continue
327 }
328
329 tags := f.Tag.Get("protobuf")
330 tagArray := strings.Split(tags, ",")
331 if len(tagArray) < 2 {
332 panic("protobuf tag not enough fields in " + t.Name() + "." + f.Name + ": " + tags)
333 }
334 tag, err := strconv.Atoi(tagArray[1])
335 if err != nil {
336 panic("protobuf tag field not an integer: " + tagArray[1])
337 }
338
339 name := ""
340 for _, tag := range tagArray[3:] {
341 if strings.HasPrefix(tag, "name=") {
342 name = tag[5:]
343 }
344 }
345
346 // Extract unmarshaling function from the field (its type and tags).
347 unmarshal := fieldUnmarshaler(&f)
348
349 // Required field?
350 var reqMask uint64
351 if tagArray[2] == "req" {
352 bit := len(u.reqFields)
353 u.reqFields = append(u.reqFields, name)
354 reqMask = uint64(1) << uint(bit)
355 // TODO: if we have more than 64 required fields, we end up
356 // not verifying that all required fields are present.
357 // Fix this, perhaps using a count of required fields?
358 }
359
360 // Store the info in the correct slot in the message.
361 u.setTag(tag, toField(&f), unmarshal, reqMask, name)
362 }
363
364 // Find any types associated with oneof fields.
365 // TODO: XXX_OneofFuncs returns more info than we need. Get rid of some of it?
366 fn := reflect.Zero(reflect.PtrTo(t)).MethodByName("XXX_OneofFuncs")
367 if fn.IsValid() {
368 res := fn.Call(nil)[3] // last return value from XXX_OneofFuncs: []interface{}
369 for i := res.Len() - 1; i >= 0; i-- {
370 v := res.Index(i) // interface{}
371 tptr := reflect.ValueOf(v.Interface()).Type() // *Msg_X
372 typ := tptr.Elem() // Msg_X
373
374 f := typ.Field(0) // oneof implementers have one field
375 baseUnmarshal := fieldUnmarshaler(&f)
376 tags := strings.Split(f.Tag.Get("protobuf"), ",")
377 fieldNum, err := strconv.Atoi(tags[1])
378 if err != nil {
379 panic("protobuf tag field not an integer: " + tags[1])
380 }
381 var name string
382 for _, tag := range tags {
383 if strings.HasPrefix(tag, "name=") {
384 name = strings.TrimPrefix(tag, "name=")
385 break
386 }
387 }
388
389 // Find the oneof field that this struct implements.
390 // Might take O(n^2) to process all of the oneofs, but who cares.
391 for _, of := range oneofFields {
392 if tptr.Implements(of.ityp) {
393 // We have found the corresponding interface for this struct.
394 // That lets us know where this struct should be stored
395 // when we encounter it during unmarshaling.
396 unmarshal := makeUnmarshalOneof(typ, of.ityp, baseUnmarshal)
397 u.setTag(fieldNum, of.field, unmarshal, 0, name)
398 }
399 }
400 }
401 }
402
403 // Get extension ranges, if any.
404 fn = reflect.Zero(reflect.PtrTo(t)).MethodByName("ExtensionRangeArray")
405 if fn.IsValid() {
406 if !u.extensions.IsValid() && !u.oldExtensions.IsValid() {
407 panic("a message with extensions, but no extensions field in " + t.Name())
408 }
409 u.extensionRanges = fn.Call(nil)[0].Interface().([]ExtensionRange)
410 }
411
412 // Explicitly disallow tag 0. This will ensure we flag an error
413 // when decoding a buffer of all zeros. Without this code, we
414 // would decode and skip an all-zero buffer of even length.
415 // [0 0] is [tag=0/wiretype=varint varint-encoded-0].
416 u.setTag(0, zeroField, func(b []byte, f pointer, w int) ([]byte, error) {
417 return nil, fmt.Errorf("proto: %s: illegal tag 0 (wire type %d)", t, w)
418 }, 0, "")
419
420 // Set mask for required field check.
421 u.reqMask = uint64(1)<<uint(len(u.reqFields)) - 1
422
423 atomic.StoreInt32(&u.initialized, 1)
424}
425
426// setTag stores the unmarshal information for the given tag.
427// tag = tag # for field
428// field/unmarshal = unmarshal info for that field.
429// reqMask = if required, bitmask for field position in required field list. 0 otherwise.
430// name = short name of the field.
431func (u *unmarshalInfo) setTag(tag int, field field, unmarshal unmarshaler, reqMask uint64, name string) {
432 i := unmarshalFieldInfo{field: field, unmarshal: unmarshal, reqMask: reqMask, name: name}
433 n := u.typ.NumField()
434 if tag >= 0 && (tag < 16 || tag < 2*n) { // TODO: what are the right numbers here?
435 for len(u.dense) <= tag {
436 u.dense = append(u.dense, unmarshalFieldInfo{})
437 }
438 u.dense[tag] = i
439 return
440 }
441 if u.sparse == nil {
442 u.sparse = map[uint64]unmarshalFieldInfo{}
443 }
444 u.sparse[uint64(tag)] = i
445}
446
447// fieldUnmarshaler returns an unmarshaler for the given field.
448func fieldUnmarshaler(f *reflect.StructField) unmarshaler {
449 if f.Type.Kind() == reflect.Map {
450 return makeUnmarshalMap(f)
451 }
452 return typeUnmarshaler(f.Type, f.Tag.Get("protobuf"))
453}
454
455// typeUnmarshaler returns an unmarshaler for the given field type / field tag pair.
456func typeUnmarshaler(t reflect.Type, tags string) unmarshaler {
457 tagArray := strings.Split(tags, ",")
458 encoding := tagArray[0]
459 name := "unknown"
460 proto3 := false
461 validateUTF8 := true
462 for _, tag := range tagArray[3:] {
463 if strings.HasPrefix(tag, "name=") {
464 name = tag[5:]
465 }
466 if tag == "proto3" {
467 proto3 = true
468 }
469 }
470 validateUTF8 = validateUTF8 && proto3
471
472 // Figure out packaging (pointer, slice, or both)
473 slice := false
474 pointer := false
475 if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 {
476 slice = true
477 t = t.Elem()
478 }
479 if t.Kind() == reflect.Ptr {
480 pointer = true
481 t = t.Elem()
482 }
483
484 // We'll never have both pointer and slice for basic types.
485 if pointer && slice && t.Kind() != reflect.Struct {
486 panic("both pointer and slice for basic type in " + t.Name())
487 }
488
489 switch t.Kind() {
490 case reflect.Bool:
491 if pointer {
492 return unmarshalBoolPtr
493 }
494 if slice {
495 return unmarshalBoolSlice
496 }
497 return unmarshalBoolValue
498 case reflect.Int32:
499 switch encoding {
500 case "fixed32":
501 if pointer {
502 return unmarshalFixedS32Ptr
503 }
504 if slice {
505 return unmarshalFixedS32Slice
506 }
507 return unmarshalFixedS32Value
508 case "varint":
509 // this could be int32 or enum
510 if pointer {
511 return unmarshalInt32Ptr
512 }
513 if slice {
514 return unmarshalInt32Slice
515 }
516 return unmarshalInt32Value
517 case "zigzag32":
518 if pointer {
519 return unmarshalSint32Ptr
520 }
521 if slice {
522 return unmarshalSint32Slice
523 }
524 return unmarshalSint32Value
525 }
526 case reflect.Int64:
527 switch encoding {
528 case "fixed64":
529 if pointer {
530 return unmarshalFixedS64Ptr
531 }
532 if slice {
533 return unmarshalFixedS64Slice
534 }
535 return unmarshalFixedS64Value
536 case "varint":
537 if pointer {
538 return unmarshalInt64Ptr
539 }
540 if slice {
541 return unmarshalInt64Slice
542 }
543 return unmarshalInt64Value
544 case "zigzag64":
545 if pointer {
546 return unmarshalSint64Ptr
547 }
548 if slice {
549 return unmarshalSint64Slice
550 }
551 return unmarshalSint64Value
552 }
553 case reflect.Uint32:
554 switch encoding {
555 case "fixed32":
556 if pointer {
557 return unmarshalFixed32Ptr
558 }
559 if slice {
560 return unmarshalFixed32Slice
561 }
562 return unmarshalFixed32Value
563 case "varint":
564 if pointer {
565 return unmarshalUint32Ptr
566 }
567 if slice {
568 return unmarshalUint32Slice
569 }
570 return unmarshalUint32Value
571 }
572 case reflect.Uint64:
573 switch encoding {
574 case "fixed64":
575 if pointer {
576 return unmarshalFixed64Ptr
577 }
578 if slice {
579 return unmarshalFixed64Slice
580 }
581 return unmarshalFixed64Value
582 case "varint":
583 if pointer {
584 return unmarshalUint64Ptr
585 }
586 if slice {
587 return unmarshalUint64Slice
588 }
589 return unmarshalUint64Value
590 }
591 case reflect.Float32:
592 if pointer {
593 return unmarshalFloat32Ptr
594 }
595 if slice {
596 return unmarshalFloat32Slice
597 }
598 return unmarshalFloat32Value
599 case reflect.Float64:
600 if pointer {
601 return unmarshalFloat64Ptr
602 }
603 if slice {
604 return unmarshalFloat64Slice
605 }
606 return unmarshalFloat64Value
607 case reflect.Map:
608 panic("map type in typeUnmarshaler in " + t.Name())
609 case reflect.Slice:
610 if pointer {
611 panic("bad pointer in slice case in " + t.Name())
612 }
613 if slice {
614 return unmarshalBytesSlice
615 }
616 return unmarshalBytesValue
617 case reflect.String:
618 if validateUTF8 {
619 if pointer {
620 return unmarshalUTF8StringPtr
621 }
622 if slice {
623 return unmarshalUTF8StringSlice
624 }
625 return unmarshalUTF8StringValue
626 }
627 if pointer {
628 return unmarshalStringPtr
629 }
630 if slice {
631 return unmarshalStringSlice
632 }
633 return unmarshalStringValue
634 case reflect.Struct:
635 // message or group field
636 if !pointer {
637 panic(fmt.Sprintf("message/group field %s:%s without pointer", t, encoding))
638 }
639 switch encoding {
640 case "bytes":
641 if slice {
642 return makeUnmarshalMessageSlicePtr(getUnmarshalInfo(t), name)
643 }
644 return makeUnmarshalMessagePtr(getUnmarshalInfo(t), name)
645 case "group":
646 if slice {
647 return makeUnmarshalGroupSlicePtr(getUnmarshalInfo(t), name)
648 }
649 return makeUnmarshalGroupPtr(getUnmarshalInfo(t), name)
650 }
651 }
652 panic(fmt.Sprintf("unmarshaler not found type:%s encoding:%s", t, encoding))
653}
654
655// Below are all the unmarshalers for individual fields of various types.
656
657func unmarshalInt64Value(b []byte, f pointer, w int) ([]byte, error) {
658 if w != WireVarint {
659 return b, errInternalBadWireType
660 }
661 x, n := decodeVarint(b)
662 if n == 0 {
663 return nil, io.ErrUnexpectedEOF
664 }
665 b = b[n:]
666 v := int64(x)
667 *f.toInt64() = v
668 return b, nil
669}
670
671func unmarshalInt64Ptr(b []byte, f pointer, w int) ([]byte, error) {
672 if w != WireVarint {
673 return b, errInternalBadWireType
674 }
675 x, n := decodeVarint(b)
676 if n == 0 {
677 return nil, io.ErrUnexpectedEOF
678 }
679 b = b[n:]
680 v := int64(x)
681 *f.toInt64Ptr() = &v
682 return b, nil
683}
684
685func unmarshalInt64Slice(b []byte, f pointer, w int) ([]byte, error) {
686 if w == WireBytes { // packed
687 x, n := decodeVarint(b)
688 if n == 0 {
689 return nil, io.ErrUnexpectedEOF
690 }
691 b = b[n:]
692 if x > uint64(len(b)) {
693 return nil, io.ErrUnexpectedEOF
694 }
695 res := b[x:]
696 b = b[:x]
697 for len(b) > 0 {
698 x, n = decodeVarint(b)
699 if n == 0 {
700 return nil, io.ErrUnexpectedEOF
701 }
702 b = b[n:]
703 v := int64(x)
704 s := f.toInt64Slice()
705 *s = append(*s, v)
706 }
707 return res, nil
708 }
709 if w != WireVarint {
710 return b, errInternalBadWireType
711 }
712 x, n := decodeVarint(b)
713 if n == 0 {
714 return nil, io.ErrUnexpectedEOF
715 }
716 b = b[n:]
717 v := int64(x)
718 s := f.toInt64Slice()
719 *s = append(*s, v)
720 return b, nil
721}
722
723func unmarshalSint64Value(b []byte, f pointer, w int) ([]byte, error) {
724 if w != WireVarint {
725 return b, errInternalBadWireType
726 }
727 x, n := decodeVarint(b)
728 if n == 0 {
729 return nil, io.ErrUnexpectedEOF
730 }
731 b = b[n:]
732 v := int64(x>>1) ^ int64(x)<<63>>63
733 *f.toInt64() = v
734 return b, nil
735}
736
737func unmarshalSint64Ptr(b []byte, f pointer, w int) ([]byte, error) {
738 if w != WireVarint {
739 return b, errInternalBadWireType
740 }
741 x, n := decodeVarint(b)
742 if n == 0 {
743 return nil, io.ErrUnexpectedEOF
744 }
745 b = b[n:]
746 v := int64(x>>1) ^ int64(x)<<63>>63
747 *f.toInt64Ptr() = &v
748 return b, nil
749}
750
751func unmarshalSint64Slice(b []byte, f pointer, w int) ([]byte, error) {
752 if w == WireBytes { // packed
753 x, n := decodeVarint(b)
754 if n == 0 {
755 return nil, io.ErrUnexpectedEOF
756 }
757 b = b[n:]
758 if x > uint64(len(b)) {
759 return nil, io.ErrUnexpectedEOF
760 }
761 res := b[x:]
762 b = b[:x]
763 for len(b) > 0 {
764 x, n = decodeVarint(b)
765 if n == 0 {
766 return nil, io.ErrUnexpectedEOF
767 }
768 b = b[n:]
769 v := int64(x>>1) ^ int64(x)<<63>>63
770 s := f.toInt64Slice()
771 *s = append(*s, v)
772 }
773 return res, nil
774 }
775 if w != WireVarint {
776 return b, errInternalBadWireType
777 }
778 x, n := decodeVarint(b)
779 if n == 0 {
780 return nil, io.ErrUnexpectedEOF
781 }
782 b = b[n:]
783 v := int64(x>>1) ^ int64(x)<<63>>63
784 s := f.toInt64Slice()
785 *s = append(*s, v)
786 return b, nil
787}
788
789func unmarshalUint64Value(b []byte, f pointer, w int) ([]byte, error) {
790 if w != WireVarint {
791 return b, errInternalBadWireType
792 }
793 x, n := decodeVarint(b)
794 if n == 0 {
795 return nil, io.ErrUnexpectedEOF
796 }
797 b = b[n:]
798 v := uint64(x)
799 *f.toUint64() = v
800 return b, nil
801}
802
803func unmarshalUint64Ptr(b []byte, f pointer, w int) ([]byte, error) {
804 if w != WireVarint {
805 return b, errInternalBadWireType
806 }
807 x, n := decodeVarint(b)
808 if n == 0 {
809 return nil, io.ErrUnexpectedEOF
810 }
811 b = b[n:]
812 v := uint64(x)
813 *f.toUint64Ptr() = &v
814 return b, nil
815}
816
817func unmarshalUint64Slice(b []byte, f pointer, w int) ([]byte, error) {
818 if w == WireBytes { // packed
819 x, n := decodeVarint(b)
820 if n == 0 {
821 return nil, io.ErrUnexpectedEOF
822 }
823 b = b[n:]
824 if x > uint64(len(b)) {
825 return nil, io.ErrUnexpectedEOF
826 }
827 res := b[x:]
828 b = b[:x]
829 for len(b) > 0 {
830 x, n = decodeVarint(b)
831 if n == 0 {
832 return nil, io.ErrUnexpectedEOF
833 }
834 b = b[n:]
835 v := uint64(x)
836 s := f.toUint64Slice()
837 *s = append(*s, v)
838 }
839 return res, nil
840 }
841 if w != WireVarint {
842 return b, errInternalBadWireType
843 }
844 x, n := decodeVarint(b)
845 if n == 0 {
846 return nil, io.ErrUnexpectedEOF
847 }
848 b = b[n:]
849 v := uint64(x)
850 s := f.toUint64Slice()
851 *s = append(*s, v)
852 return b, nil
853}
854
855func unmarshalInt32Value(b []byte, f pointer, w int) ([]byte, error) {
856 if w != WireVarint {
857 return b, errInternalBadWireType
858 }
859 x, n := decodeVarint(b)
860 if n == 0 {
861 return nil, io.ErrUnexpectedEOF
862 }
863 b = b[n:]
864 v := int32(x)
865 *f.toInt32() = v
866 return b, nil
867}
868
869func unmarshalInt32Ptr(b []byte, f pointer, w int) ([]byte, error) {
870 if w != WireVarint {
871 return b, errInternalBadWireType
872 }
873 x, n := decodeVarint(b)
874 if n == 0 {
875 return nil, io.ErrUnexpectedEOF
876 }
877 b = b[n:]
878 v := int32(x)
879 f.setInt32Ptr(v)
880 return b, nil
881}
882
883func unmarshalInt32Slice(b []byte, f pointer, w int) ([]byte, error) {
884 if w == WireBytes { // packed
885 x, n := decodeVarint(b)
886 if n == 0 {
887 return nil, io.ErrUnexpectedEOF
888 }
889 b = b[n:]
890 if x > uint64(len(b)) {
891 return nil, io.ErrUnexpectedEOF
892 }
893 res := b[x:]
894 b = b[:x]
895 for len(b) > 0 {
896 x, n = decodeVarint(b)
897 if n == 0 {
898 return nil, io.ErrUnexpectedEOF
899 }
900 b = b[n:]
901 v := int32(x)
902 f.appendInt32Slice(v)
903 }
904 return res, nil
905 }
906 if w != WireVarint {
907 return b, errInternalBadWireType
908 }
909 x, n := decodeVarint(b)
910 if n == 0 {
911 return nil, io.ErrUnexpectedEOF
912 }
913 b = b[n:]
914 v := int32(x)
915 f.appendInt32Slice(v)
916 return b, nil
917}
918
919func unmarshalSint32Value(b []byte, f pointer, w int) ([]byte, error) {
920 if w != WireVarint {
921 return b, errInternalBadWireType
922 }
923 x, n := decodeVarint(b)
924 if n == 0 {
925 return nil, io.ErrUnexpectedEOF
926 }
927 b = b[n:]
928 v := int32(x>>1) ^ int32(x)<<31>>31
929 *f.toInt32() = v
930 return b, nil
931}
932
933func unmarshalSint32Ptr(b []byte, f pointer, w int) ([]byte, error) {
934 if w != WireVarint {
935 return b, errInternalBadWireType
936 }
937 x, n := decodeVarint(b)
938 if n == 0 {
939 return nil, io.ErrUnexpectedEOF
940 }
941 b = b[n:]
942 v := int32(x>>1) ^ int32(x)<<31>>31
943 f.setInt32Ptr(v)
944 return b, nil
945}
946
947func unmarshalSint32Slice(b []byte, f pointer, w int) ([]byte, error) {
948 if w == WireBytes { // packed
949 x, n := decodeVarint(b)
950 if n == 0 {
951 return nil, io.ErrUnexpectedEOF
952 }
953 b = b[n:]
954 if x > uint64(len(b)) {
955 return nil, io.ErrUnexpectedEOF
956 }
957 res := b[x:]
958 b = b[:x]
959 for len(b) > 0 {
960 x, n = decodeVarint(b)
961 if n == 0 {
962 return nil, io.ErrUnexpectedEOF
963 }
964 b = b[n:]
965 v := int32(x>>1) ^ int32(x)<<31>>31
966 f.appendInt32Slice(v)
967 }
968 return res, nil
969 }
970 if w != WireVarint {
971 return b, errInternalBadWireType
972 }
973 x, n := decodeVarint(b)
974 if n == 0 {
975 return nil, io.ErrUnexpectedEOF
976 }
977 b = b[n:]
978 v := int32(x>>1) ^ int32(x)<<31>>31
979 f.appendInt32Slice(v)
980 return b, nil
981}
982
983func unmarshalUint32Value(b []byte, f pointer, w int) ([]byte, error) {
984 if w != WireVarint {
985 return b, errInternalBadWireType
986 }
987 x, n := decodeVarint(b)
988 if n == 0 {
989 return nil, io.ErrUnexpectedEOF
990 }
991 b = b[n:]
992 v := uint32(x)
993 *f.toUint32() = v
994 return b, nil
995}
996
997func unmarshalUint32Ptr(b []byte, f pointer, w int) ([]byte, error) {
998 if w != WireVarint {
999 return b, errInternalBadWireType
1000 }
1001 x, n := decodeVarint(b)
1002 if n == 0 {
1003 return nil, io.ErrUnexpectedEOF
1004 }
1005 b = b[n:]
1006 v := uint32(x)
1007 *f.toUint32Ptr() = &v
1008 return b, nil
1009}
1010
1011func unmarshalUint32Slice(b []byte, f pointer, w int) ([]byte, error) {
1012 if w == WireBytes { // packed
1013 x, n := decodeVarint(b)
1014 if n == 0 {
1015 return nil, io.ErrUnexpectedEOF
1016 }
1017 b = b[n:]
1018 if x > uint64(len(b)) {
1019 return nil, io.ErrUnexpectedEOF
1020 }
1021 res := b[x:]
1022 b = b[:x]
1023 for len(b) > 0 {
1024 x, n = decodeVarint(b)
1025 if n == 0 {
1026 return nil, io.ErrUnexpectedEOF
1027 }
1028 b = b[n:]
1029 v := uint32(x)
1030 s := f.toUint32Slice()
1031 *s = append(*s, v)
1032 }
1033 return res, nil
1034 }
1035 if w != WireVarint {
1036 return b, errInternalBadWireType
1037 }
1038 x, n := decodeVarint(b)
1039 if n == 0 {
1040 return nil, io.ErrUnexpectedEOF
1041 }
1042 b = b[n:]
1043 v := uint32(x)
1044 s := f.toUint32Slice()
1045 *s = append(*s, v)
1046 return b, nil
1047}
1048
1049func unmarshalFixed64Value(b []byte, f pointer, w int) ([]byte, error) {
1050 if w != WireFixed64 {
1051 return b, errInternalBadWireType
1052 }
1053 if len(b) < 8 {
1054 return nil, io.ErrUnexpectedEOF
1055 }
1056 v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
1057 *f.toUint64() = v
1058 return b[8:], nil
1059}
1060
1061func unmarshalFixed64Ptr(b []byte, f pointer, w int) ([]byte, error) {
1062 if w != WireFixed64 {
1063 return b, errInternalBadWireType
1064 }
1065 if len(b) < 8 {
1066 return nil, io.ErrUnexpectedEOF
1067 }
1068 v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
1069 *f.toUint64Ptr() = &v
1070 return b[8:], nil
1071}
1072
1073func unmarshalFixed64Slice(b []byte, f pointer, w int) ([]byte, error) {
1074 if w == WireBytes { // packed
1075 x, n := decodeVarint(b)
1076 if n == 0 {
1077 return nil, io.ErrUnexpectedEOF
1078 }
1079 b = b[n:]
1080 if x > uint64(len(b)) {
1081 return nil, io.ErrUnexpectedEOF
1082 }
1083 res := b[x:]
1084 b = b[:x]
1085 for len(b) > 0 {
1086 if len(b) < 8 {
1087 return nil, io.ErrUnexpectedEOF
1088 }
1089 v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
1090 s := f.toUint64Slice()
1091 *s = append(*s, v)
1092 b = b[8:]
1093 }
1094 return res, nil
1095 }
1096 if w != WireFixed64 {
1097 return b, errInternalBadWireType
1098 }
1099 if len(b) < 8 {
1100 return nil, io.ErrUnexpectedEOF
1101 }
1102 v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
1103 s := f.toUint64Slice()
1104 *s = append(*s, v)
1105 return b[8:], nil
1106}
1107
1108func unmarshalFixedS64Value(b []byte, f pointer, w int) ([]byte, error) {
1109 if w != WireFixed64 {
1110 return b, errInternalBadWireType
1111 }
1112 if len(b) < 8 {
1113 return nil, io.ErrUnexpectedEOF
1114 }
1115 v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56
1116 *f.toInt64() = v
1117 return b[8:], nil
1118}
1119
1120func unmarshalFixedS64Ptr(b []byte, f pointer, w int) ([]byte, error) {
1121 if w != WireFixed64 {
1122 return b, errInternalBadWireType
1123 }
1124 if len(b) < 8 {
1125 return nil, io.ErrUnexpectedEOF
1126 }
1127 v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56
1128 *f.toInt64Ptr() = &v
1129 return b[8:], nil
1130}
1131
1132func unmarshalFixedS64Slice(b []byte, f pointer, w int) ([]byte, error) {
1133 if w == WireBytes { // packed
1134 x, n := decodeVarint(b)
1135 if n == 0 {
1136 return nil, io.ErrUnexpectedEOF
1137 }
1138 b = b[n:]
1139 if x > uint64(len(b)) {
1140 return nil, io.ErrUnexpectedEOF
1141 }
1142 res := b[x:]
1143 b = b[:x]
1144 for len(b) > 0 {
1145 if len(b) < 8 {
1146 return nil, io.ErrUnexpectedEOF
1147 }
1148 v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56
1149 s := f.toInt64Slice()
1150 *s = append(*s, v)
1151 b = b[8:]
1152 }
1153 return res, nil
1154 }
1155 if w != WireFixed64 {
1156 return b, errInternalBadWireType
1157 }
1158 if len(b) < 8 {
1159 return nil, io.ErrUnexpectedEOF
1160 }
1161 v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56
1162 s := f.toInt64Slice()
1163 *s = append(*s, v)
1164 return b[8:], nil
1165}
1166
1167func unmarshalFixed32Value(b []byte, f pointer, w int) ([]byte, error) {
1168 if w != WireFixed32 {
1169 return b, errInternalBadWireType
1170 }
1171 if len(b) < 4 {
1172 return nil, io.ErrUnexpectedEOF
1173 }
1174 v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
1175 *f.toUint32() = v
1176 return b[4:], nil
1177}
1178
1179func unmarshalFixed32Ptr(b []byte, f pointer, w int) ([]byte, error) {
1180 if w != WireFixed32 {
1181 return b, errInternalBadWireType
1182 }
1183 if len(b) < 4 {
1184 return nil, io.ErrUnexpectedEOF
1185 }
1186 v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
1187 *f.toUint32Ptr() = &v
1188 return b[4:], nil
1189}
1190
1191func unmarshalFixed32Slice(b []byte, f pointer, w int) ([]byte, error) {
1192 if w == WireBytes { // packed
1193 x, n := decodeVarint(b)
1194 if n == 0 {
1195 return nil, io.ErrUnexpectedEOF
1196 }
1197 b = b[n:]
1198 if x > uint64(len(b)) {
1199 return nil, io.ErrUnexpectedEOF
1200 }
1201 res := b[x:]
1202 b = b[:x]
1203 for len(b) > 0 {
1204 if len(b) < 4 {
1205 return nil, io.ErrUnexpectedEOF
1206 }
1207 v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
1208 s := f.toUint32Slice()
1209 *s = append(*s, v)
1210 b = b[4:]
1211 }
1212 return res, nil
1213 }
1214 if w != WireFixed32 {
1215 return b, errInternalBadWireType
1216 }
1217 if len(b) < 4 {
1218 return nil, io.ErrUnexpectedEOF
1219 }
1220 v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
1221 s := f.toUint32Slice()
1222 *s = append(*s, v)
1223 return b[4:], nil
1224}
1225
1226func unmarshalFixedS32Value(b []byte, f pointer, w int) ([]byte, error) {
1227 if w != WireFixed32 {
1228 return b, errInternalBadWireType
1229 }
1230 if len(b) < 4 {
1231 return nil, io.ErrUnexpectedEOF
1232 }
1233 v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24
1234 *f.toInt32() = v
1235 return b[4:], nil
1236}
1237
1238func unmarshalFixedS32Ptr(b []byte, f pointer, w int) ([]byte, error) {
1239 if w != WireFixed32 {
1240 return b, errInternalBadWireType
1241 }
1242 if len(b) < 4 {
1243 return nil, io.ErrUnexpectedEOF
1244 }
1245 v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24
1246 f.setInt32Ptr(v)
1247 return b[4:], nil
1248}
1249
1250func unmarshalFixedS32Slice(b []byte, f pointer, w int) ([]byte, error) {
1251 if w == WireBytes { // packed
1252 x, n := decodeVarint(b)
1253 if n == 0 {
1254 return nil, io.ErrUnexpectedEOF
1255 }
1256 b = b[n:]
1257 if x > uint64(len(b)) {
1258 return nil, io.ErrUnexpectedEOF
1259 }
1260 res := b[x:]
1261 b = b[:x]
1262 for len(b) > 0 {
1263 if len(b) < 4 {
1264 return nil, io.ErrUnexpectedEOF
1265 }
1266 v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24
1267 f.appendInt32Slice(v)
1268 b = b[4:]
1269 }
1270 return res, nil
1271 }
1272 if w != WireFixed32 {
1273 return b, errInternalBadWireType
1274 }
1275 if len(b) < 4 {
1276 return nil, io.ErrUnexpectedEOF
1277 }
1278 v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24
1279 f.appendInt32Slice(v)
1280 return b[4:], nil
1281}
1282
1283func unmarshalBoolValue(b []byte, f pointer, w int) ([]byte, error) {
1284 if w != WireVarint {
1285 return b, errInternalBadWireType
1286 }
1287 // Note: any length varint is allowed, even though any sane
1288 // encoder will use one byte.
1289 // See https://github.com/golang/protobuf/issues/76
1290 x, n := decodeVarint(b)
1291 if n == 0 {
1292 return nil, io.ErrUnexpectedEOF
1293 }
1294 // TODO: check if x>1? Tests seem to indicate no.
1295 v := x != 0
1296 *f.toBool() = v
1297 return b[n:], nil
1298}
1299
1300func unmarshalBoolPtr(b []byte, f pointer, w int) ([]byte, error) {
1301 if w != WireVarint {
1302 return b, errInternalBadWireType
1303 }
1304 x, n := decodeVarint(b)
1305 if n == 0 {
1306 return nil, io.ErrUnexpectedEOF
1307 }
1308 v := x != 0
1309 *f.toBoolPtr() = &v
1310 return b[n:], nil
1311}
1312
1313func unmarshalBoolSlice(b []byte, f pointer, w int) ([]byte, error) {
1314 if w == WireBytes { // packed
1315 x, n := decodeVarint(b)
1316 if n == 0 {
1317 return nil, io.ErrUnexpectedEOF
1318 }
1319 b = b[n:]
1320 if x > uint64(len(b)) {
1321 return nil, io.ErrUnexpectedEOF
1322 }
1323 res := b[x:]
1324 b = b[:x]
1325 for len(b) > 0 {
1326 x, n = decodeVarint(b)
1327 if n == 0 {
1328 return nil, io.ErrUnexpectedEOF
1329 }
1330 v := x != 0
1331 s := f.toBoolSlice()
1332 *s = append(*s, v)
1333 b = b[n:]
1334 }
1335 return res, nil
1336 }
1337 if w != WireVarint {
1338 return b, errInternalBadWireType
1339 }
1340 x, n := decodeVarint(b)
1341 if n == 0 {
1342 return nil, io.ErrUnexpectedEOF
1343 }
1344 v := x != 0
1345 s := f.toBoolSlice()
1346 *s = append(*s, v)
1347 return b[n:], nil
1348}
1349
1350func unmarshalFloat64Value(b []byte, f pointer, w int) ([]byte, error) {
1351 if w != WireFixed64 {
1352 return b, errInternalBadWireType
1353 }
1354 if len(b) < 8 {
1355 return nil, io.ErrUnexpectedEOF
1356 }
1357 v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56)
1358 *f.toFloat64() = v
1359 return b[8:], nil
1360}
1361
1362func unmarshalFloat64Ptr(b []byte, f pointer, w int) ([]byte, error) {
1363 if w != WireFixed64 {
1364 return b, errInternalBadWireType
1365 }
1366 if len(b) < 8 {
1367 return nil, io.ErrUnexpectedEOF
1368 }
1369 v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56)
1370 *f.toFloat64Ptr() = &v
1371 return b[8:], nil
1372}
1373
1374func unmarshalFloat64Slice(b []byte, f pointer, w int) ([]byte, error) {
1375 if w == WireBytes { // packed
1376 x, n := decodeVarint(b)
1377 if n == 0 {
1378 return nil, io.ErrUnexpectedEOF
1379 }
1380 b = b[n:]
1381 if x > uint64(len(b)) {
1382 return nil, io.ErrUnexpectedEOF
1383 }
1384 res := b[x:]
1385 b = b[:x]
1386 for len(b) > 0 {
1387 if len(b) < 8 {
1388 return nil, io.ErrUnexpectedEOF
1389 }
1390 v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56)
1391 s := f.toFloat64Slice()
1392 *s = append(*s, v)
1393 b = b[8:]
1394 }
1395 return res, nil
1396 }
1397 if w != WireFixed64 {
1398 return b, errInternalBadWireType
1399 }
1400 if len(b) < 8 {
1401 return nil, io.ErrUnexpectedEOF
1402 }
1403 v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56)
1404 s := f.toFloat64Slice()
1405 *s = append(*s, v)
1406 return b[8:], nil
1407}
1408
1409func unmarshalFloat32Value(b []byte, f pointer, w int) ([]byte, error) {
1410 if w != WireFixed32 {
1411 return b, errInternalBadWireType
1412 }
1413 if len(b) < 4 {
1414 return nil, io.ErrUnexpectedEOF
1415 }
1416 v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24)
1417 *f.toFloat32() = v
1418 return b[4:], nil
1419}
1420
1421func unmarshalFloat32Ptr(b []byte, f pointer, w int) ([]byte, error) {
1422 if w != WireFixed32 {
1423 return b, errInternalBadWireType
1424 }
1425 if len(b) < 4 {
1426 return nil, io.ErrUnexpectedEOF
1427 }
1428 v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24)
1429 *f.toFloat32Ptr() = &v
1430 return b[4:], nil
1431}
1432
1433func unmarshalFloat32Slice(b []byte, f pointer, w int) ([]byte, error) {
1434 if w == WireBytes { // packed
1435 x, n := decodeVarint(b)
1436 if n == 0 {
1437 return nil, io.ErrUnexpectedEOF
1438 }
1439 b = b[n:]
1440 if x > uint64(len(b)) {
1441 return nil, io.ErrUnexpectedEOF
1442 }
1443 res := b[x:]
1444 b = b[:x]
1445 for len(b) > 0 {
1446 if len(b) < 4 {
1447 return nil, io.ErrUnexpectedEOF
1448 }
1449 v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24)
1450 s := f.toFloat32Slice()
1451 *s = append(*s, v)
1452 b = b[4:]
1453 }
1454 return res, nil
1455 }
1456 if w != WireFixed32 {
1457 return b, errInternalBadWireType
1458 }
1459 if len(b) < 4 {
1460 return nil, io.ErrUnexpectedEOF
1461 }
1462 v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24)
1463 s := f.toFloat32Slice()
1464 *s = append(*s, v)
1465 return b[4:], nil
1466}
1467
1468func unmarshalStringValue(b []byte, f pointer, w int) ([]byte, error) {
1469 if w != WireBytes {
1470 return b, errInternalBadWireType
1471 }
1472 x, n := decodeVarint(b)
1473 if n == 0 {
1474 return nil, io.ErrUnexpectedEOF
1475 }
1476 b = b[n:]
1477 if x > uint64(len(b)) {
1478 return nil, io.ErrUnexpectedEOF
1479 }
1480 v := string(b[:x])
1481 *f.toString() = v
1482 return b[x:], nil
1483}
1484
1485func unmarshalStringPtr(b []byte, f pointer, w int) ([]byte, error) {
1486 if w != WireBytes {
1487 return b, errInternalBadWireType
1488 }
1489 x, n := decodeVarint(b)
1490 if n == 0 {
1491 return nil, io.ErrUnexpectedEOF
1492 }
1493 b = b[n:]
1494 if x > uint64(len(b)) {
1495 return nil, io.ErrUnexpectedEOF
1496 }
1497 v := string(b[:x])
1498 *f.toStringPtr() = &v
1499 return b[x:], nil
1500}
1501
1502func unmarshalStringSlice(b []byte, f pointer, w int) ([]byte, error) {
1503 if w != WireBytes {
1504 return b, errInternalBadWireType
1505 }
1506 x, n := decodeVarint(b)
1507 if n == 0 {
1508 return nil, io.ErrUnexpectedEOF
1509 }
1510 b = b[n:]
1511 if x > uint64(len(b)) {
1512 return nil, io.ErrUnexpectedEOF
1513 }
1514 v := string(b[:x])
1515 s := f.toStringSlice()
1516 *s = append(*s, v)
1517 return b[x:], nil
1518}
1519
1520func unmarshalUTF8StringValue(b []byte, f pointer, w int) ([]byte, error) {
1521 if w != WireBytes {
1522 return b, errInternalBadWireType
1523 }
1524 x, n := decodeVarint(b)
1525 if n == 0 {
1526 return nil, io.ErrUnexpectedEOF
1527 }
1528 b = b[n:]
1529 if x > uint64(len(b)) {
1530 return nil, io.ErrUnexpectedEOF
1531 }
1532 v := string(b[:x])
1533 *f.toString() = v
1534 if !utf8.ValidString(v) {
1535 return b[x:], errInvalidUTF8
1536 }
1537 return b[x:], nil
1538}
1539
1540func unmarshalUTF8StringPtr(b []byte, f pointer, w int) ([]byte, error) {
1541 if w != WireBytes {
1542 return b, errInternalBadWireType
1543 }
1544 x, n := decodeVarint(b)
1545 if n == 0 {
1546 return nil, io.ErrUnexpectedEOF
1547 }
1548 b = b[n:]
1549 if x > uint64(len(b)) {
1550 return nil, io.ErrUnexpectedEOF
1551 }
1552 v := string(b[:x])
1553 *f.toStringPtr() = &v
1554 if !utf8.ValidString(v) {
1555 return b[x:], errInvalidUTF8
1556 }
1557 return b[x:], nil
1558}
1559
1560func unmarshalUTF8StringSlice(b []byte, f pointer, w int) ([]byte, error) {
1561 if w != WireBytes {
1562 return b, errInternalBadWireType
1563 }
1564 x, n := decodeVarint(b)
1565 if n == 0 {
1566 return nil, io.ErrUnexpectedEOF
1567 }
1568 b = b[n:]
1569 if x > uint64(len(b)) {
1570 return nil, io.ErrUnexpectedEOF
1571 }
1572 v := string(b[:x])
1573 s := f.toStringSlice()
1574 *s = append(*s, v)
1575 if !utf8.ValidString(v) {
1576 return b[x:], errInvalidUTF8
1577 }
1578 return b[x:], nil
1579}
1580
1581var emptyBuf [0]byte
1582
1583func unmarshalBytesValue(b []byte, f pointer, w int) ([]byte, error) {
1584 if w != WireBytes {
1585 return b, errInternalBadWireType
1586 }
1587 x, n := decodeVarint(b)
1588 if n == 0 {
1589 return nil, io.ErrUnexpectedEOF
1590 }
1591 b = b[n:]
1592 if x > uint64(len(b)) {
1593 return nil, io.ErrUnexpectedEOF
1594 }
1595 // The use of append here is a trick which avoids the zeroing
1596 // that would be required if we used a make/copy pair.
1597 // We append to emptyBuf instead of nil because we want
1598 // a non-nil result even when the length is 0.
1599 v := append(emptyBuf[:], b[:x]...)
1600 *f.toBytes() = v
1601 return b[x:], nil
1602}
1603
1604func unmarshalBytesSlice(b []byte, f pointer, w int) ([]byte, error) {
1605 if w != WireBytes {
1606 return b, errInternalBadWireType
1607 }
1608 x, n := decodeVarint(b)
1609 if n == 0 {
1610 return nil, io.ErrUnexpectedEOF
1611 }
1612 b = b[n:]
1613 if x > uint64(len(b)) {
1614 return nil, io.ErrUnexpectedEOF
1615 }
1616 v := append(emptyBuf[:], b[:x]...)
1617 s := f.toBytesSlice()
1618 *s = append(*s, v)
1619 return b[x:], nil
1620}
1621
1622func makeUnmarshalMessagePtr(sub *unmarshalInfo, name string) unmarshaler {
1623 return func(b []byte, f pointer, w int) ([]byte, error) {
1624 if w != WireBytes {
1625 return b, errInternalBadWireType
1626 }
1627 x, n := decodeVarint(b)
1628 if n == 0 {
1629 return nil, io.ErrUnexpectedEOF
1630 }
1631 b = b[n:]
1632 if x > uint64(len(b)) {
1633 return nil, io.ErrUnexpectedEOF
1634 }
1635 // First read the message field to see if something is there.
1636 // The semantics of multiple submessages are weird. Instead of
1637 // the last one winning (as it is for all other fields), multiple
1638 // submessages are merged.
1639 v := f.getPointer()
1640 if v.isNil() {
1641 v = valToPointer(reflect.New(sub.typ))
1642 f.setPointer(v)
1643 }
1644 err := sub.unmarshal(v, b[:x])
1645 if err != nil {
1646 if r, ok := err.(*RequiredNotSetError); ok {
1647 r.field = name + "." + r.field
1648 } else {
1649 return nil, err
1650 }
1651 }
1652 return b[x:], err
1653 }
1654}
1655
1656func makeUnmarshalMessageSlicePtr(sub *unmarshalInfo, name string) unmarshaler {
1657 return func(b []byte, f pointer, w int) ([]byte, error) {
1658 if w != WireBytes {
1659 return b, errInternalBadWireType
1660 }
1661 x, n := decodeVarint(b)
1662 if n == 0 {
1663 return nil, io.ErrUnexpectedEOF
1664 }
1665 b = b[n:]
1666 if x > uint64(len(b)) {
1667 return nil, io.ErrUnexpectedEOF
1668 }
1669 v := valToPointer(reflect.New(sub.typ))
1670 err := sub.unmarshal(v, b[:x])
1671 if err != nil {
1672 if r, ok := err.(*RequiredNotSetError); ok {
1673 r.field = name + "." + r.field
1674 } else {
1675 return nil, err
1676 }
1677 }
1678 f.appendPointer(v)
1679 return b[x:], err
1680 }
1681}
1682
1683func makeUnmarshalGroupPtr(sub *unmarshalInfo, name string) unmarshaler {
1684 return func(b []byte, f pointer, w int) ([]byte, error) {
1685 if w != WireStartGroup {
1686 return b, errInternalBadWireType
1687 }
1688 x, y := findEndGroup(b)
1689 if x < 0 {
1690 return nil, io.ErrUnexpectedEOF
1691 }
1692 v := f.getPointer()
1693 if v.isNil() {
1694 v = valToPointer(reflect.New(sub.typ))
1695 f.setPointer(v)
1696 }
1697 err := sub.unmarshal(v, b[:x])
1698 if err != nil {
1699 if r, ok := err.(*RequiredNotSetError); ok {
1700 r.field = name + "." + r.field
1701 } else {
1702 return nil, err
1703 }
1704 }
1705 return b[y:], err
1706 }
1707}
1708
1709func makeUnmarshalGroupSlicePtr(sub *unmarshalInfo, name string) unmarshaler {
1710 return func(b []byte, f pointer, w int) ([]byte, error) {
1711 if w != WireStartGroup {
1712 return b, errInternalBadWireType
1713 }
1714 x, y := findEndGroup(b)
1715 if x < 0 {
1716 return nil, io.ErrUnexpectedEOF
1717 }
1718 v := valToPointer(reflect.New(sub.typ))
1719 err := sub.unmarshal(v, b[:x])
1720 if err != nil {
1721 if r, ok := err.(*RequiredNotSetError); ok {
1722 r.field = name + "." + r.field
1723 } else {
1724 return nil, err
1725 }
1726 }
1727 f.appendPointer(v)
1728 return b[y:], err
1729 }
1730}
1731
1732func makeUnmarshalMap(f *reflect.StructField) unmarshaler {
1733 t := f.Type
1734 kt := t.Key()
1735 vt := t.Elem()
1736 unmarshalKey := typeUnmarshaler(kt, f.Tag.Get("protobuf_key"))
1737 unmarshalVal := typeUnmarshaler(vt, f.Tag.Get("protobuf_val"))
1738 return func(b []byte, f pointer, w int) ([]byte, error) {
1739 // The map entry is a submessage. Figure out how big it is.
1740 if w != WireBytes {
1741 return nil, fmt.Errorf("proto: bad wiretype for map field: got %d want %d", w, WireBytes)
1742 }
1743 x, n := decodeVarint(b)
1744 if n == 0 {
1745 return nil, io.ErrUnexpectedEOF
1746 }
1747 b = b[n:]
1748 if x > uint64(len(b)) {
1749 return nil, io.ErrUnexpectedEOF
1750 }
1751 r := b[x:] // unused data to return
1752 b = b[:x] // data for map entry
1753
1754 // Note: we could use #keys * #values ~= 200 functions
1755 // to do map decoding without reflection. Probably not worth it.
1756 // Maps will be somewhat slow. Oh well.
1757
1758 // Read key and value from data.
1759 var nerr nonFatal
1760 k := reflect.New(kt)
1761 v := reflect.New(vt)
1762 for len(b) > 0 {
1763 x, n := decodeVarint(b)
1764 if n == 0 {
1765 return nil, io.ErrUnexpectedEOF
1766 }
1767 wire := int(x) & 7
1768 b = b[n:]
1769
1770 var err error
1771 switch x >> 3 {
1772 case 1:
1773 b, err = unmarshalKey(b, valToPointer(k), wire)
1774 case 2:
1775 b, err = unmarshalVal(b, valToPointer(v), wire)
1776 default:
1777 err = errInternalBadWireType // skip unknown tag
1778 }
1779
1780 if nerr.Merge(err) {
1781 continue
1782 }
1783 if err != errInternalBadWireType {
1784 return nil, err
1785 }
1786
1787 // Skip past unknown fields.
1788 b, err = skipField(b, wire)
1789 if err != nil {
1790 return nil, err
1791 }
1792 }
1793
1794 // Get map, allocate if needed.
1795 m := f.asPointerTo(t).Elem() // an addressable map[K]T
1796 if m.IsNil() {
1797 m.Set(reflect.MakeMap(t))
1798 }
1799
1800 // Insert into map.
1801 m.SetMapIndex(k.Elem(), v.Elem())
1802
1803 return r, nerr.E
1804 }
1805}
1806
1807// makeUnmarshalOneof makes an unmarshaler for oneof fields.
1808// for:
1809// message Msg {
1810// oneof F {
1811// int64 X = 1;
1812// float64 Y = 2;
1813// }
1814// }
1815// typ is the type of the concrete entry for a oneof case (e.g. Msg_X).
1816// ityp is the interface type of the oneof field (e.g. isMsg_F).
1817// unmarshal is the unmarshaler for the base type of the oneof case (e.g. int64).
1818// Note that this function will be called once for each case in the oneof.
1819func makeUnmarshalOneof(typ, ityp reflect.Type, unmarshal unmarshaler) unmarshaler {
1820 sf := typ.Field(0)
1821 field0 := toField(&sf)
1822 return func(b []byte, f pointer, w int) ([]byte, error) {
1823 // Allocate holder for value.
1824 v := reflect.New(typ)
1825
1826 // Unmarshal data into holder.
1827 // We unmarshal into the first field of the holder object.
1828 var err error
1829 var nerr nonFatal
1830 b, err = unmarshal(b, valToPointer(v).offset(field0), w)
1831 if !nerr.Merge(err) {
1832 return nil, err
1833 }
1834
1835 // Write pointer to holder into target field.
1836 f.asPointerTo(ityp).Elem().Set(v)
1837
1838 return b, nerr.E
1839 }
1840}
1841
1842// Error used by decode internally.
1843var errInternalBadWireType = errors.New("proto: internal error: bad wiretype")
1844
1845// skipField skips past a field of type wire and returns the remaining bytes.
1846func skipField(b []byte, wire int) ([]byte, error) {
1847 switch wire {
1848 case WireVarint:
1849 _, k := decodeVarint(b)
1850 if k == 0 {
1851 return b, io.ErrUnexpectedEOF
1852 }
1853 b = b[k:]
1854 case WireFixed32:
1855 if len(b) < 4 {
1856 return b, io.ErrUnexpectedEOF
1857 }
1858 b = b[4:]
1859 case WireFixed64:
1860 if len(b) < 8 {
1861 return b, io.ErrUnexpectedEOF
1862 }
1863 b = b[8:]
1864 case WireBytes:
1865 m, k := decodeVarint(b)
1866 if k == 0 || uint64(len(b)-k) < m {
1867 return b, io.ErrUnexpectedEOF
1868 }
1869 b = b[uint64(k)+m:]
1870 case WireStartGroup:
1871 _, i := findEndGroup(b)
1872 if i == -1 {
1873 return b, io.ErrUnexpectedEOF
1874 }
1875 b = b[i:]
1876 default:
1877 return b, fmt.Errorf("proto: can't skip unknown wire type %d", wire)
1878 }
1879 return b, nil
1880}
1881
1882// findEndGroup finds the index of the next EndGroup tag.
1883// Groups may be nested, so the "next" EndGroup tag is the first
1884// unpaired EndGroup.
1885// findEndGroup returns the indexes of the start and end of the EndGroup tag.
1886// Returns (-1,-1) if it can't find one.
1887func findEndGroup(b []byte) (int, int) {
1888 depth := 1
1889 i := 0
1890 for {
1891 x, n := decodeVarint(b[i:])
1892 if n == 0 {
1893 return -1, -1
1894 }
1895 j := i
1896 i += n
1897 switch x & 7 {
1898 case WireVarint:
1899 _, k := decodeVarint(b[i:])
1900 if k == 0 {
1901 return -1, -1
1902 }
1903 i += k
1904 case WireFixed32:
1905 if len(b)-4 < i {
1906 return -1, -1
1907 }
1908 i += 4
1909 case WireFixed64:
1910 if len(b)-8 < i {
1911 return -1, -1
1912 }
1913 i += 8
1914 case WireBytes:
1915 m, k := decodeVarint(b[i:])
1916 if k == 0 {
1917 return -1, -1
1918 }
1919 i += k
1920 if uint64(len(b)-i) < m {
1921 return -1, -1
1922 }
1923 i += int(m)
1924 case WireStartGroup:
1925 depth++
1926 case WireEndGroup:
1927 depth--
1928 if depth == 0 {
1929 return j, i
1930 }
1931 default:
1932 return -1, -1
1933 }
1934 }
1935}
1936
1937// encodeVarint appends a varint-encoded integer to b and returns the result.
1938func encodeVarint(b []byte, x uint64) []byte {
1939 for x >= 1<<7 {
1940 b = append(b, byte(x&0x7f|0x80))
1941 x >>= 7
1942 }
1943 return append(b, byte(x))
1944}
1945
1946// decodeVarint reads a varint-encoded integer from b.
1947// Returns the decoded integer and the number of bytes read.
1948// If there is an error, it returns 0,0.
1949func decodeVarint(b []byte) (uint64, int) {
1950 var x, y uint64
1951 if len(b) <= 0 {
1952 goto bad
1953 }
1954 x = uint64(b[0])
1955 if x < 0x80 {
1956 return x, 1
1957 }
1958 x -= 0x80
1959
1960 if len(b) <= 1 {
1961 goto bad
1962 }
1963 y = uint64(b[1])
1964 x += y << 7
1965 if y < 0x80 {
1966 return x, 2
1967 }
1968 x -= 0x80 << 7
1969
1970 if len(b) <= 2 {
1971 goto bad
1972 }
1973 y = uint64(b[2])
1974 x += y << 14
1975 if y < 0x80 {
1976 return x, 3
1977 }
1978 x -= 0x80 << 14
1979
1980 if len(b) <= 3 {
1981 goto bad
1982 }
1983 y = uint64(b[3])
1984 x += y << 21
1985 if y < 0x80 {
1986 return x, 4
1987 }
1988 x -= 0x80 << 21
1989
1990 if len(b) <= 4 {
1991 goto bad
1992 }
1993 y = uint64(b[4])
1994 x += y << 28
1995 if y < 0x80 {
1996 return x, 5
1997 }
1998 x -= 0x80 << 28
1999
2000 if len(b) <= 5 {
2001 goto bad
2002 }
2003 y = uint64(b[5])
2004 x += y << 35
2005 if y < 0x80 {
2006 return x, 6
2007 }
2008 x -= 0x80 << 35
2009
2010 if len(b) <= 6 {
2011 goto bad
2012 }
2013 y = uint64(b[6])
2014 x += y << 42
2015 if y < 0x80 {
2016 return x, 7
2017 }
2018 x -= 0x80 << 42
2019
2020 if len(b) <= 7 {
2021 goto bad
2022 }
2023 y = uint64(b[7])
2024 x += y << 49
2025 if y < 0x80 {
2026 return x, 8
2027 }
2028 x -= 0x80 << 49
2029
2030 if len(b) <= 8 {
2031 goto bad
2032 }
2033 y = uint64(b[8])
2034 x += y << 56
2035 if y < 0x80 {
2036 return x, 9
2037 }
2038 x -= 0x80 << 56
2039
2040 if len(b) <= 9 {
2041 goto bad
2042 }
2043 y = uint64(b[9])
2044 x += y << 63
2045 if y < 2 {
2046 return x, 10
2047 }
2048
2049bad:
2050 return 0, 0
2051}
diff --git a/vendor/github.com/golang/protobuf/proto/text.go b/vendor/github.com/golang/protobuf/proto/text.go
index 965876b..1aaee72 100644
--- a/vendor/github.com/golang/protobuf/proto/text.go
+++ b/vendor/github.com/golang/protobuf/proto/text.go
@@ -50,7 +50,6 @@ import (
50var ( 50var (
51 newline = []byte("\n") 51 newline = []byte("\n")
52 spaces = []byte(" ") 52 spaces = []byte(" ")
53 gtNewline = []byte(">\n")
54 endBraceNewline = []byte("}\n") 53 endBraceNewline = []byte("}\n")
55 backslashN = []byte{'\\', 'n'} 54 backslashN = []byte{'\\', 'n'}
56 backslashR = []byte{'\\', 'r'} 55 backslashR = []byte{'\\', 'r'}
@@ -170,11 +169,6 @@ func writeName(w *textWriter, props *Properties) error {
170 return nil 169 return nil
171} 170}
172 171
173// raw is the interface satisfied by RawMessage.
174type raw interface {
175 Bytes() []byte
176}
177
178func requiresQuotes(u string) bool { 172func requiresQuotes(u string) bool {
179 // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted. 173 // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted.
180 for _, ch := range u { 174 for _, ch := range u {
@@ -269,6 +263,10 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
269 props := sprops.Prop[i] 263 props := sprops.Prop[i]
270 name := st.Field(i).Name 264 name := st.Field(i).Name
271 265
266 if name == "XXX_NoUnkeyedLiteral" {
267 continue
268 }
269
272 if strings.HasPrefix(name, "XXX_") { 270 if strings.HasPrefix(name, "XXX_") {
273 // There are two XXX_ fields: 271 // There are two XXX_ fields:
274 // XXX_unrecognized []byte 272 // XXX_unrecognized []byte
@@ -355,7 +353,7 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
355 return err 353 return err
356 } 354 }
357 } 355 }
358 if err := tm.writeAny(w, key, props.mkeyprop); err != nil { 356 if err := tm.writeAny(w, key, props.MapKeyProp); err != nil {
359 return err 357 return err
360 } 358 }
361 if err := w.WriteByte('\n'); err != nil { 359 if err := w.WriteByte('\n'); err != nil {
@@ -372,7 +370,7 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
372 return err 370 return err
373 } 371 }
374 } 372 }
375 if err := tm.writeAny(w, val, props.mvalprop); err != nil { 373 if err := tm.writeAny(w, val, props.MapValProp); err != nil {
376 return err 374 return err
377 } 375 }
378 if err := w.WriteByte('\n'); err != nil { 376 if err := w.WriteByte('\n'); err != nil {
@@ -436,12 +434,6 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
436 return err 434 return err
437 } 435 }
438 } 436 }
439 if b, ok := fv.Interface().(raw); ok {
440 if err := writeRaw(w, b.Bytes()); err != nil {
441 return err
442 }
443 continue
444 }
445 437
446 // Enums have a String method, so writeAny will work fine. 438 // Enums have a String method, so writeAny will work fine.
447 if err := tm.writeAny(w, fv, props); err != nil { 439 if err := tm.writeAny(w, fv, props); err != nil {
@@ -455,7 +447,7 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
455 447
456 // Extensions (the XXX_extensions field). 448 // Extensions (the XXX_extensions field).
457 pv := sv.Addr() 449 pv := sv.Addr()
458 if _, ok := extendable(pv.Interface()); ok { 450 if _, err := extendable(pv.Interface()); err == nil {
459 if err := tm.writeExtensions(w, pv); err != nil { 451 if err := tm.writeExtensions(w, pv); err != nil {
460 return err 452 return err
461 } 453 }
@@ -464,27 +456,6 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error {
464 return nil 456 return nil
465} 457}
466 458
467// writeRaw writes an uninterpreted raw message.
468func writeRaw(w *textWriter, b []byte) error {
469 if err := w.WriteByte('<'); err != nil {
470 return err
471 }
472 if !w.compact {
473 if err := w.WriteByte('\n'); err != nil {
474 return err
475 }
476 }
477 w.indent()
478 if err := writeUnknownStruct(w, b); err != nil {
479 return err
480 }
481 w.unindent()
482 if err := w.WriteByte('>'); err != nil {
483 return err
484 }
485 return nil
486}
487
488// writeAny writes an arbitrary field. 459// writeAny writes an arbitrary field.
489func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error { 460func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error {
490 v = reflect.Indirect(v) 461 v = reflect.Indirect(v)
@@ -535,6 +506,19 @@ func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Propert
535 } 506 }
536 } 507 }
537 w.indent() 508 w.indent()
509 if v.CanAddr() {
510 // Calling v.Interface on a struct causes the reflect package to
511 // copy the entire struct. This is racy with the new Marshaler
512 // since we atomically update the XXX_sizecache.
513 //
514 // Thus, we retrieve a pointer to the struct if possible to avoid
515 // a race since v.Interface on the pointer doesn't copy the struct.
516 //
517 // If v is not addressable, then we are not worried about a race
518 // since it implies that the binary Marshaler cannot possibly be
519 // mutating this value.
520 v = v.Addr()
521 }
538 if etm, ok := v.Interface().(encoding.TextMarshaler); ok { 522 if etm, ok := v.Interface().(encoding.TextMarshaler); ok {
539 text, err := etm.MarshalText() 523 text, err := etm.MarshalText()
540 if err != nil { 524 if err != nil {
@@ -543,8 +527,13 @@ func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Propert
543 if _, err = w.Write(text); err != nil { 527 if _, err = w.Write(text); err != nil {
544 return err 528 return err
545 } 529 }
546 } else if err := tm.writeStruct(w, v); err != nil { 530 } else {
547 return err 531 if v.Kind() == reflect.Ptr {
532 v = v.Elem()
533 }
534 if err := tm.writeStruct(w, v); err != nil {
535 return err
536 }
548 } 537 }
549 w.unindent() 538 w.unindent()
550 if err := w.WriteByte(ket); err != nil { 539 if err := w.WriteByte(ket); err != nil {
diff --git a/vendor/github.com/golang/protobuf/proto/text_parser.go b/vendor/github.com/golang/protobuf/proto/text_parser.go
index 5e14513..bb55a3a 100644
--- a/vendor/github.com/golang/protobuf/proto/text_parser.go
+++ b/vendor/github.com/golang/protobuf/proto/text_parser.go
@@ -206,7 +206,6 @@ func (p *textParser) advance() {
206 206
207var ( 207var (
208 errBadUTF8 = errors.New("proto: bad UTF-8") 208 errBadUTF8 = errors.New("proto: bad UTF-8")
209 errBadHex = errors.New("proto: bad hexadecimal")
210) 209)
211 210
212func unquoteC(s string, quote rune) (string, error) { 211func unquoteC(s string, quote rune) (string, error) {
@@ -277,60 +276,47 @@ func unescape(s string) (ch string, tail string, err error) {
277 return "?", s, nil // trigraph workaround 276 return "?", s, nil // trigraph workaround
278 case '\'', '"', '\\': 277 case '\'', '"', '\\':
279 return string(r), s, nil 278 return string(r), s, nil
280 case '0', '1', '2', '3', '4', '5', '6', '7', 'x', 'X': 279 case '0', '1', '2', '3', '4', '5', '6', '7':
281 if len(s) < 2 { 280 if len(s) < 2 {
282 return "", "", fmt.Errorf(`\%c requires 2 following digits`, r) 281 return "", "", fmt.Errorf(`\%c requires 2 following digits`, r)
283 } 282 }
284 base := 8 283 ss := string(r) + s[:2]
285 ss := s[:2]
286 s = s[2:] 284 s = s[2:]
287 if r == 'x' || r == 'X' { 285 i, err := strconv.ParseUint(ss, 8, 8)
288 base = 16
289 } else {
290 ss = string(r) + ss
291 }
292 i, err := strconv.ParseUint(ss, base, 8)
293 if err != nil { 286 if err != nil {
294 return "", "", err 287 return "", "", fmt.Errorf(`\%s contains non-octal digits`, ss)
295 } 288 }
296 return string([]byte{byte(i)}), s, nil 289 return string([]byte{byte(i)}), s, nil
297 case 'u', 'U': 290 case 'x', 'X', 'u', 'U':
298 n := 4 291 var n int
299 if r == 'U' { 292 switch r {
293 case 'x', 'X':
294 n = 2
295 case 'u':
296 n = 4
297 case 'U':
300 n = 8 298 n = 8
301 } 299 }
302 if len(s) < n { 300 if len(s) < n {
303 return "", "", fmt.Errorf(`\%c requires %d digits`, r, n) 301 return "", "", fmt.Errorf(`\%c requires %d following digits`, r, n)
304 }
305
306 bs := make([]byte, n/2)
307 for i := 0; i < n; i += 2 {
308 a, ok1 := unhex(s[i])
309 b, ok2 := unhex(s[i+1])
310 if !ok1 || !ok2 {
311 return "", "", errBadHex
312 }
313 bs[i/2] = a<<4 | b
314 } 302 }
303 ss := s[:n]
315 s = s[n:] 304 s = s[n:]
316 return string(bs), s, nil 305 i, err := strconv.ParseUint(ss, 16, 64)
306 if err != nil {
307 return "", "", fmt.Errorf(`\%c%s contains non-hexadecimal digits`, r, ss)
308 }
309 if r == 'x' || r == 'X' {
310 return string([]byte{byte(i)}), s, nil
311 }
312 if i > utf8.MaxRune {
313 return "", "", fmt.Errorf(`\%c%s is not a valid Unicode code point`, r, ss)
314 }
315 return string(i), s, nil
317 } 316 }
318 return "", "", fmt.Errorf(`unknown escape \%c`, r) 317 return "", "", fmt.Errorf(`unknown escape \%c`, r)
319} 318}
320 319
321// Adapted from src/pkg/strconv/quote.go.
322func unhex(b byte) (v byte, ok bool) {
323 switch {
324 case '0' <= b && b <= '9':
325 return b - '0', true
326 case 'a' <= b && b <= 'f':
327 return b - 'a' + 10, true
328 case 'A' <= b && b <= 'F':
329 return b - 'A' + 10, true
330 }
331 return 0, false
332}
333
334// Back off the parser by one token. Can only be done between calls to next(). 320// Back off the parser by one token. Can only be done between calls to next().
335// It makes the next advance() a no-op. 321// It makes the next advance() a no-op.
336func (p *textParser) back() { p.backed = true } 322func (p *textParser) back() { p.backed = true }
@@ -644,17 +630,17 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error {
644 if err := p.consumeToken(":"); err != nil { 630 if err := p.consumeToken(":"); err != nil {
645 return err 631 return err
646 } 632 }
647 if err := p.readAny(key, props.mkeyprop); err != nil { 633 if err := p.readAny(key, props.MapKeyProp); err != nil {
648 return err 634 return err
649 } 635 }
650 if err := p.consumeOptionalSeparator(); err != nil { 636 if err := p.consumeOptionalSeparator(); err != nil {
651 return err 637 return err
652 } 638 }
653 case "value": 639 case "value":
654 if err := p.checkForColon(props.mvalprop, dst.Type().Elem()); err != nil { 640 if err := p.checkForColon(props.MapValProp, dst.Type().Elem()); err != nil {
655 return err 641 return err
656 } 642 }
657 if err := p.readAny(val, props.mvalprop); err != nil { 643 if err := p.readAny(val, props.MapValProp); err != nil {
658 return err 644 return err
659 } 645 }
660 if err := p.consumeOptionalSeparator(); err != nil { 646 if err := p.consumeOptionalSeparator(); err != nil {
@@ -728,6 +714,9 @@ func (p *textParser) consumeExtName() (string, error) {
728 if tok.err != nil { 714 if tok.err != nil {
729 return "", p.errorf("unrecognized type_url or extension name: %s", tok.err) 715 return "", p.errorf("unrecognized type_url or extension name: %s", tok.err)
730 } 716 }
717 if p.done && tok.value != "]" {
718 return "", p.errorf("unclosed type_url or extension name")
719 }
731 } 720 }
732 return strings.Join(parts, ""), nil 721 return strings.Join(parts, ""), nil
733} 722}
@@ -865,7 +854,7 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error {
865 return p.readStruct(fv, terminator) 854 return p.readStruct(fv, terminator)
866 case reflect.Uint32: 855 case reflect.Uint32:
867 if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { 856 if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil {
868 fv.SetUint(x) 857 fv.SetUint(uint64(x))
869 return nil 858 return nil
870 } 859 }
871 case reflect.Uint64: 860 case reflect.Uint64:
@@ -883,13 +872,9 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error {
883// UnmarshalText returns *RequiredNotSetError. 872// UnmarshalText returns *RequiredNotSetError.
884func UnmarshalText(s string, pb Message) error { 873func UnmarshalText(s string, pb Message) error {
885 if um, ok := pb.(encoding.TextUnmarshaler); ok { 874 if um, ok := pb.(encoding.TextUnmarshaler); ok {
886 err := um.UnmarshalText([]byte(s)) 875 return um.UnmarshalText([]byte(s))
887 return err
888 } 876 }
889 pb.Reset() 877 pb.Reset()
890 v := reflect.ValueOf(pb) 878 v := reflect.ValueOf(pb)
891 if pe := newTextParser(s).readStruct(v.Elem(), ""); pe != nil { 879 return newTextParser(s).readStruct(v.Elem(), "")
892 return pe
893 }
894 return nil
895} 880}
diff --git a/vendor/github.com/konsorten/go-windows-terminal-sequences/LICENSE b/vendor/github.com/konsorten/go-windows-terminal-sequences/LICENSE
new file mode 100644
index 0000000..14127cd
--- /dev/null
+++ b/vendor/github.com/konsorten/go-windows-terminal-sequences/LICENSE
@@ -0,0 +1,9 @@
1(The MIT License)
2
3Copyright (c) 2017 marvin + konsorten GmbH (open-source@konsorten.de)
4
5Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
7The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
9THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md b/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md
new file mode 100644
index 0000000..949b77e
--- /dev/null
+++ b/vendor/github.com/konsorten/go-windows-terminal-sequences/README.md
@@ -0,0 +1,40 @@
1# Windows Terminal Sequences
2
3This library allow for enabling Windows terminal color support for Go.
4
5See [Console Virtual Terminal Sequences](https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences) for details.
6
7## Usage
8
9```go
10import (
11 "syscall"
12
13 sequences "github.com/konsorten/go-windows-terminal-sequences"
14)
15
16func main() {
17 sequences.EnableVirtualTerminalProcessing(syscall.Stdout, true)
18}
19
20```
21
22## Authors
23
24The tool is sponsored by the [marvin + konsorten GmbH](http://www.konsorten.de).
25
26We thank all the authors who provided code to this library:
27
28* Felix Kollmann
29
30## License
31
32(The MIT License)
33
34Copyright (c) 2018 marvin + konsorten GmbH (open-source@konsorten.de)
35
36Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
37
38The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
39
40THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/konsorten/go-windows-terminal-sequences/go.mod b/vendor/github.com/konsorten/go-windows-terminal-sequences/go.mod
new file mode 100644
index 0000000..716c613
--- /dev/null
+++ b/vendor/github.com/konsorten/go-windows-terminal-sequences/go.mod
@@ -0,0 +1 @@
module github.com/konsorten/go-windows-terminal-sequences
diff --git a/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go b/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go
new file mode 100644
index 0000000..ef18d8f
--- /dev/null
+++ b/vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go
@@ -0,0 +1,36 @@
1// +build windows
2
3package sequences
4
5import (
6 "syscall"
7 "unsafe"
8)
9
10var (
11 kernel32Dll *syscall.LazyDLL = syscall.NewLazyDLL("Kernel32.dll")
12 setConsoleMode *syscall.LazyProc = kernel32Dll.NewProc("SetConsoleMode")
13)
14
15func EnableVirtualTerminalProcessing(stream syscall.Handle, enable bool) error {
16 const ENABLE_VIRTUAL_TERMINAL_PROCESSING uint32 = 0x4
17
18 var mode uint32
19 err := syscall.GetConsoleMode(syscall.Stdout, &mode)
20 if err != nil {
21 return err
22 }
23
24 if enable {
25 mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING
26 } else {
27 mode &^= ENABLE_VIRTUAL_TERMINAL_PROCESSING
28 }
29
30 ret, _, err := setConsoleMode.Call(uintptr(unsafe.Pointer(stream)), uintptr(mode))
31 if ret == 0 {
32 return err
33 }
34
35 return nil
36}
diff --git a/vendor/github.com/mdlayher/genetlink/conn.go b/vendor/github.com/mdlayher/genetlink/conn.go
index 019d43f..ca5fed3 100644
--- a/vendor/github.com/mdlayher/genetlink/conn.go
+++ b/vendor/github.com/mdlayher/genetlink/conn.go
@@ -1,6 +1,8 @@
1package genetlink 1package genetlink
2 2
3import ( 3import (
4 "syscall"
5
4 "github.com/mdlayher/netlink" 6 "github.com/mdlayher/netlink"
5 "golang.org/x/net/bpf" 7 "golang.org/x/net/bpf"
6) 8)
@@ -77,6 +79,34 @@ func (c *Conn) SetOption(option netlink.ConnOption, enable bool) error {
77 return c.c.SetOption(option, enable) 79 return c.c.SetOption(option, enable)
78} 80}
79 81
82// SetReadBuffer sets the size of the operating system's receive buffer
83// associated with the Conn.
84func (c *Conn) SetReadBuffer(bytes int) error {
85 return c.c.SetReadBuffer(bytes)
86}
87
88// SetWriteBuffer sets the size of the operating system's transmit buffer
89// associated with the Conn.
90func (c *Conn) SetWriteBuffer(bytes int) error {
91 return c.c.SetWriteBuffer(bytes)
92}
93
94// SyscallConn returns a raw network connection. This implements the
95// syscall.Conn interface.
96//
97// Only the Control method of the returned syscall.RawConn is currently
98// implemented.
99//
100// SyscallConn is intended for advanced use cases, such as getting and setting
101// arbitrary socket options using the netlink socket's file descriptor.
102//
103// Once invoked, it is the caller's responsibility to ensure that operations
104// performed using Conn and the syscall.RawConn do not conflict with
105// each other.
106func (c *Conn) SyscallConn() (syscall.RawConn, error) {
107 return c.c.SyscallConn()
108}
109
80// Send sends a single Message to netlink, wrapping it in a netlink.Message 110// Send sends a single Message to netlink, wrapping it in a netlink.Message
81// using the specified generic netlink family and flags. On success, Send 111// using the specified generic netlink family and flags. On success, Send
82// returns a copy of the netlink.Message with all parameters populated, for 112// returns a copy of the netlink.Message with all parameters populated, for
diff --git a/vendor/github.com/mdlayher/netlink/attribute.go b/vendor/github.com/mdlayher/netlink/attribute.go
index 2443c6e..7a85863 100644
--- a/vendor/github.com/mdlayher/netlink/attribute.go
+++ b/vendor/github.com/mdlayher/netlink/attribute.go
@@ -26,24 +26,22 @@ type Attribute struct {
26 Data []byte 26 Data []byte
27} 27}
28 28
29// MarshalBinary marshals an Attribute into a byte slice. 29// marshal marshals the contents of a into b and returns the number of bytes
30func (a Attribute) MarshalBinary() ([]byte, error) { 30// written to b, including attribute alignment padding.
31func (a *Attribute) marshal(b []byte) (int, error) {
31 if int(a.Length) < nlaHeaderLen { 32 if int(a.Length) < nlaHeaderLen {
32 return nil, errInvalidAttribute 33 return 0, errInvalidAttribute
33 } 34 }
34 35
35 b := make([]byte, nlaAlign(int(a.Length)))
36
37 nlenc.PutUint16(b[0:2], a.Length) 36 nlenc.PutUint16(b[0:2], a.Length)
38 nlenc.PutUint16(b[2:4], a.Type) 37 nlenc.PutUint16(b[2:4], a.Type)
38 n := copy(b[nlaHeaderLen:], a.Data)
39 39
40 copy(b[nlaHeaderLen:], a.Data) 40 return nlaHeaderLen + nlaAlign(n), nil
41
42 return b, nil
43} 41}
44 42
45// UnmarshalBinary unmarshals the contents of a byte slice into an Attribute. 43// unmarshal unmarshals the contents of a byte slice into an Attribute.
46func (a *Attribute) UnmarshalBinary(b []byte) error { 44func (a *Attribute) unmarshal(b []byte) error {
47 if len(b) < nlaHeaderLen { 45 if len(b) < nlaHeaderLen {
48 return errInvalidAttribute 46 return errInvalidAttribute
49 } 47 }
@@ -75,23 +73,27 @@ func (a *Attribute) UnmarshalBinary(b []byte) error {
75// In most cases, the Length field of each Attribute should be set to 0, so it 73// In most cases, the Length field of each Attribute should be set to 0, so it
76// can be calculated and populated automatically for each Attribute. 74// can be calculated and populated automatically for each Attribute.
77func MarshalAttributes(attrs []Attribute) ([]byte, error) { 75func MarshalAttributes(attrs []Attribute) ([]byte, error) {
76 // Count how many bytes we should allocate to store each attribute's contents.
78 var c int 77 var c int
79 for _, a := range attrs { 78 for _, a := range attrs {
80 c += nlaAlign(len(a.Data)) 79 c += nlaHeaderLen + nlaAlign(len(a.Data))
81 } 80 }
82 81
83 b := make([]byte, 0, c) 82 // Advance through b with idx to place attribute data at the correct offset.
83 var idx int
84 b := make([]byte, c)
84 for _, a := range attrs { 85 for _, a := range attrs {
86 // Infer the length of attribute if zero.
85 if a.Length == 0 { 87 if a.Length == 0 {
86 a.Length = uint16(nlaHeaderLen + len(a.Data)) 88 a.Length = uint16(nlaHeaderLen + len(a.Data))
87 } 89 }
88 90
89 ab, err := a.MarshalBinary() 91 // Marshal a into b and advance idx to show many bytes are occupied.
92 n, err := a.marshal(b[idx:])
90 if err != nil { 93 if err != nil {
91 return nil, err 94 return nil, err
92 } 95 }
93 96 idx += n
94 b = append(b, ab...)
95 } 97 }
96 98
97 return b, nil 99 return b, nil
@@ -110,7 +112,7 @@ func UnmarshalAttributes(b []byte) ([]Attribute, error) {
110 } 112 }
111 113
112 var a Attribute 114 var a Attribute
113 if err := (&a).UnmarshalBinary(b[i:]); err != nil { 115 if err := (&a).unmarshal(b[i:]); err != nil {
114 return nil, err 116 return nil, err
115 } 117 }
116 118
@@ -207,6 +209,14 @@ func (ad *AttributeDecoder) Err() error {
207 return ad.err 209 return ad.err
208} 210}
209 211
212// Bytes returns the raw bytes of the current Attribute's data.
213func (ad *AttributeDecoder) Bytes() []byte {
214 src := ad.data()
215 dest := make([]byte, len(src))
216 copy(dest, src)
217 return dest
218}
219
210// String returns the string representation of the current Attribute's data. 220// String returns the string representation of the current Attribute's data.
211func (ad *AttributeDecoder) String() string { 221func (ad *AttributeDecoder) String() string {
212 if ad.err != nil { 222 if ad.err != nil {
@@ -296,3 +306,143 @@ func (ad *AttributeDecoder) Do(fn func(b []byte) error) {
296 ad.err = err 306 ad.err = err
297 } 307 }
298} 308}
309
310// An AttributeEncoder provides a safe way to encode attributes.
311//
312// It is recommended to use an AttributeEncoder where possible instead of
313// calling MarshalAttributes or using package nlenc directly.
314//
315// Errors from intermediate encoding steps are returned in the call to
316// Encode.
317type AttributeEncoder struct {
318 // ByteOrder defines a specific byte order to use when processing integer
319 // attributes. ByteOrder should be set immediately after creating the
320 // AttributeEncoder: before any attributes are encoded.
321 //
322 // If not set, the native byte order will be used.
323 ByteOrder binary.ByteOrder
324
325 attrs []Attribute
326 err error
327}
328
329// NewAttributeEncoder creates an AttributeEncoder that encodes Attributes.
330func NewAttributeEncoder() *AttributeEncoder {
331 return &AttributeEncoder{
332 ByteOrder: nlenc.NativeEndian(),
333 }
334}
335
336// Uint8 encodes uint8 data into an Attribute specified by typ.
337func (ae *AttributeEncoder) Uint8(typ uint16, v uint8) {
338 if ae.err != nil {
339 return
340 }
341
342 ae.attrs = append(ae.attrs, Attribute{
343 Type: typ,
344 Data: []byte{v},
345 })
346}
347
348// Uint16 encodes uint16 data into an Attribute specified by typ.
349func (ae *AttributeEncoder) Uint16(typ uint16, v uint16) {
350 if ae.err != nil {
351 return
352 }
353
354 b := make([]byte, 2)
355 ae.ByteOrder.PutUint16(b, v)
356
357 ae.attrs = append(ae.attrs, Attribute{
358 Type: typ,
359 Data: b,
360 })
361}
362
363// Uint32 encodes uint32 data into an Attribute specified by typ.
364func (ae *AttributeEncoder) Uint32(typ uint16, v uint32) {
365 if ae.err != nil {
366 return
367 }
368
369 b := make([]byte, 4)
370 ae.ByteOrder.PutUint32(b, v)
371
372 ae.attrs = append(ae.attrs, Attribute{
373 Type: typ,
374 Data: b,
375 })
376}
377
378// Uint64 encodes uint64 data into an Attribute specified by typ.
379func (ae *AttributeEncoder) Uint64(typ uint16, v uint64) {
380 if ae.err != nil {
381 return
382 }
383
384 b := make([]byte, 8)
385 ae.ByteOrder.PutUint64(b, v)
386
387 ae.attrs = append(ae.attrs, Attribute{
388 Type: typ,
389 Data: b,
390 })
391}
392
393// String encodes string s as a null-terminated string into an Attribute
394// specified by typ.
395func (ae *AttributeEncoder) String(typ uint16, s string) {
396 if ae.err != nil {
397 return
398 }
399
400 ae.attrs = append(ae.attrs, Attribute{
401 Type: typ,
402 Data: nlenc.Bytes(s),
403 })
404}
405
406// Bytes embeds raw byte data into an Attribute specified by typ.
407func (ae *AttributeEncoder) Bytes(typ uint16, b []byte) {
408 if ae.err != nil {
409 return
410 }
411
412 ae.attrs = append(ae.attrs, Attribute{
413 Type: typ,
414 Data: b,
415 })
416}
417
418// Do is a general purpose function to encode arbitrary data into an attribute
419// specified by typ.
420//
421// Do is especially helpful in encoding nested attributes, attribute arrays,
422// or encoding arbitrary types (such as C structures) which don't fit cleanly
423// into an unsigned integer value.
424func (ae *AttributeEncoder) Do(typ uint16, fn func() ([]byte, error)) {
425 if ae.err != nil {
426 return
427 }
428
429 b, err := fn()
430 if err != nil {
431 ae.err = err
432 return
433 }
434
435 ae.attrs = append(ae.attrs, Attribute{
436 Type: typ,
437 Data: b,
438 })
439}
440
441// Encode returns the encoded bytes representing the attributes.
442func (ae *AttributeEncoder) Encode() ([]byte, error) {
443 if ae.err != nil {
444 return nil, ae.err
445 }
446
447 return MarshalAttributes(ae.attrs)
448}
diff --git a/vendor/github.com/mdlayher/netlink/conn.go b/vendor/github.com/mdlayher/netlink/conn.go
index ec39625..4ccbdca 100644
--- a/vendor/github.com/mdlayher/netlink/conn.go
+++ b/vendor/github.com/mdlayher/netlink/conn.go
@@ -6,6 +6,7 @@ import (
6 "math/rand" 6 "math/rand"
7 "os" 7 "os"
8 "sync/atomic" 8 "sync/atomic"
9 "syscall"
9 "time" 10 "time"
10 11
11 "golang.org/x/net/bpf" 12 "golang.org/x/net/bpf"
@@ -25,6 +26,8 @@ var (
25 errMulticastGroupsNotSupported = errors.New("multicast groups not supported") 26 errMulticastGroupsNotSupported = errors.New("multicast groups not supported")
26 errBPFFiltersNotSupported = errors.New("BPF filters not supported") 27 errBPFFiltersNotSupported = errors.New("BPF filters not supported")
27 errOptionsNotSupported = errors.New("options not supported") 28 errOptionsNotSupported = errors.New("options not supported")
29 errSetBufferNotSupported = errors.New("setting buffer sizes not supported")
30 errSyscallConnNotSupported = errors.New("syscall.RawConn operation not supported")
28) 31)
29 32
30// A Conn is a connection to netlink. A Conn can be used to send and 33// A Conn is a connection to netlink. A Conn can be used to send and
@@ -76,7 +79,7 @@ func Dial(family int, config *Config) (*Conn, error) {
76// 79//
77// NewConn is primarily useful for tests. Most applications should use 80// NewConn is primarily useful for tests. Most applications should use
78// Dial instead. 81// Dial instead.
79func NewConn(c Socket, pid uint32) *Conn { 82func NewConn(sock Socket, pid uint32) *Conn {
80 // Seed the sequence number using a random number generator. 83 // Seed the sequence number using a random number generator.
81 r := rand.New(rand.NewSource(time.Now().UnixNano())) 84 r := rand.New(rand.NewSource(time.Now().UnixNano()))
82 seq := r.Uint32() 85 seq := r.Uint32()
@@ -88,7 +91,7 @@ func NewConn(c Socket, pid uint32) *Conn {
88 } 91 }
89 92
90 return &Conn{ 93 return &Conn{
91 sock: c, 94 sock: sock,
92 seq: &seq, 95 seq: &seq,
93 pid: pid, 96 pid: pid,
94 d: d, 97 d: d,
@@ -115,8 +118,8 @@ func (c *Conn) Close() error {
115// 118//
116// See the documentation of Conn.Send, Conn.Receive, and Validate for details about 119// See the documentation of Conn.Send, Conn.Receive, and Validate for details about
117// each function. 120// each function.
118func (c *Conn) Execute(m Message) ([]Message, error) { 121func (c *Conn) Execute(message Message) ([]Message, error) {
119 req, err := c.Send(m) 122 req, err := c.Send(message)
120 if err != nil { 123 if err != nil {
121 return nil, err 124 return nil, err
122 } 125 }
@@ -148,7 +151,8 @@ func (c *Conn) fixMsg(m *Message, ml int) {
148} 151}
149 152
150// SendMessages sends multiple Messages to netlink. The handling of 153// SendMessages sends multiple Messages to netlink. The handling of
151// m.Header.Length, Sequence and PID is the same as when calling Send. 154// a Header's Length, Sequence and PID fields is the same as when
155// calling Send.
152func (c *Conn) SendMessages(messages []Message) ([]Message, error) { 156func (c *Conn) SendMessages(messages []Message) ([]Message, error) {
153 for idx, m := range messages { 157 for idx, m := range messages {
154 ml := nlmsgLength(len(m.Data)) 158 ml := nlmsgLength(len(m.Data))
@@ -178,34 +182,34 @@ func (c *Conn) SendMessages(messages []Message) ([]Message, error) {
178 return messages, nil 182 return messages, nil
179} 183}
180 184
181// Send sends a single Message to netlink. In most cases, m.Header's Length, 185// Send sends a single Message to netlink. In most cases, a Header's Length,
182// Sequence, and PID fields should be set to 0, so they can be populated 186// Sequence, and PID fields should be set to 0, so they can be populated
183// automatically before the Message is sent. On success, Send returns a copy 187// automatically before the Message is sent. On success, Send returns a copy
184// of the Message with all parameters populated, for later validation. 188// of the Message with all parameters populated, for later validation.
185// 189//
186// If m.Header.Length is 0, it will be automatically populated using the 190// If Header.Length is 0, it will be automatically populated using the
187// correct length for the Message, including its payload. 191// correct length for the Message, including its payload.
188// 192//
189// If m.Header.Sequence is 0, it will be automatically populated using the 193// If Header.Sequence is 0, it will be automatically populated using the
190// next sequence number for this connection. 194// next sequence number for this connection.
191// 195//
192// If m.Header.PID is 0, it will be automatically populated using a PID 196// If Header.PID is 0, it will be automatically populated using a PID
193// assigned by netlink. 197// assigned by netlink.
194func (c *Conn) Send(m Message) (Message, error) { 198func (c *Conn) Send(message Message) (Message, error) {
195 ml := nlmsgLength(len(m.Data)) 199 ml := nlmsgLength(len(message.Data))
196 200
197 // TODO(mdlayher): fine-tune this limit. 201 // TODO(mdlayher): fine-tune this limit.
198 if ml > (1024 * 32) { 202 if ml > (1024 * 32) {
199 return Message{}, errors.New("netlink message data too large") 203 return Message{}, errors.New("netlink message data too large")
200 } 204 }
201 205
202 c.fixMsg(&m, ml) 206 c.fixMsg(&message, ml)
203 207
204 c.debug(func(d *debugger) { 208 c.debug(func(d *debugger) {
205 d.debugf(1, "send: %+v", m) 209 d.debugf(1, "send: %+v", message)
206 }) 210 })
207 211
208 if err := c.sock.Send(m); err != nil { 212 if err := c.sock.Send(message); err != nil {
209 c.debug(func(d *debugger) { 213 c.debug(func(d *debugger) {
210 d.debugf(1, "send: err: %v", err) 214 d.debugf(1, "send: err: %v", err)
211 }) 215 })
@@ -213,7 +217,7 @@ func (c *Conn) Send(m Message) (Message, error) {
213 return Message{}, err 217 return Message{}, err
214 } 218 }
215 219
216 return m, nil 220 return message, nil
217} 221}
218 222
219// Receive receives one or more messages from netlink. Multi-part messages are 223// Receive receives one or more messages from netlink. Multi-part messages are
@@ -419,6 +423,80 @@ func (c *Conn) SetOption(option ConnOption, enable bool) error {
419 return fc.SetOption(option, enable) 423 return fc.SetOption(option, enable)
420} 424}
421 425
426// A bufferSetter is a Socket that supports setting connection buffer sizes.
427type bufferSetter interface {
428 Socket
429 SetReadBuffer(bytes int) error
430 SetWriteBuffer(bytes int) error
431}
432
433// SetReadBuffer sets the size of the operating system's receive buffer
434// associated with the Conn.
435func (c *Conn) SetReadBuffer(bytes int) error {
436 conn, ok := c.sock.(bufferSetter)
437 if !ok {
438 return errSetBufferNotSupported
439 }
440
441 return conn.SetReadBuffer(bytes)
442}
443
444// SetWriteBuffer sets the size of the operating system's transmit buffer
445// associated with the Conn.
446func (c *Conn) SetWriteBuffer(bytes int) error {
447 conn, ok := c.sock.(bufferSetter)
448 if !ok {
449 return errSetBufferNotSupported
450 }
451
452 return conn.SetWriteBuffer(bytes)
453}
454
455var _ syscall.Conn = &Conn{}
456
457// TODO(mdlayher): mutex or similar to enforce syscall.RawConn contract of
458// FD remaining valid for duration of calls?
459
460// SyscallConn returns a raw network connection. This implements the
461// syscall.Conn interface.
462//
463// Only the Control method of the returned syscall.RawConn is currently
464// implemented.
465//
466// SyscallConn is intended for advanced use cases, such as getting and setting
467// arbitrary socket options using the netlink socket's file descriptor.
468//
469// Once invoked, it is the caller's responsibility to ensure that operations
470// performed using Conn and the syscall.RawConn do not conflict with
471// each other.
472func (c *Conn) SyscallConn() (syscall.RawConn, error) {
473 conn, ok := c.sock.(fder)
474 if !ok {
475 return nil, errSyscallConnNotSupported
476 }
477
478 return &rawConn{
479 fd: uintptr(conn.FD()),
480 }, nil
481}
482
483var _ syscall.RawConn = &rawConn{}
484
485// A rawConn is a syscall.RawConn.
486type rawConn struct {
487 fd uintptr
488}
489
490func (rc *rawConn) Control(f func(fd uintptr)) error {
491 f(rc.fd)
492 return nil
493}
494
495// TODO(mdlayher): implement Read and Write?
496
497func (rc *rawConn) Read(_ func(fd uintptr) (done bool)) error { return errSyscallConnNotSupported }
498func (rc *rawConn) Write(_ func(fd uintptr) (done bool)) error { return errSyscallConnNotSupported }
499
422// nextSequence atomically increments Conn's sequence number and returns 500// nextSequence atomically increments Conn's sequence number and returns
423// the incremented value. 501// the incremented value.
424func (c *Conn) nextSequence() uint32 { 502func (c *Conn) nextSequence() uint32 {
@@ -455,13 +533,7 @@ type Config struct {
455 // no multicast group subscriptions will be made. 533 // no multicast group subscriptions will be made.
456 Groups uint32 534 Groups uint32
457 535
458 // Experimental: do not lock the internal system call handling goroutine 536 // Network namespace the Conn needs to operate in. If set to 0,
459 // to its OS thread. This may result in a speed-up of system call handling, 537 // no network namespace will be entered.
460 // but may cause unexpected behavior when sending and receiving a large number 538 NetNS int
461 // of messages.
462 //
463 // This should almost certainly be set to false, but if you come up with a
464 // valid reason for using this, please file an issue at
465 // https://github.com/mdlayher/netlink to discuss your thoughts.
466 NoLockThread bool
467} 539}
diff --git a/vendor/github.com/mdlayher/netlink/conn_linux.go b/vendor/github.com/mdlayher/netlink/conn_linux.go
index 691e30a..3251905 100644
--- a/vendor/github.com/mdlayher/netlink/conn_linux.go
+++ b/vendor/github.com/mdlayher/netlink/conn_linux.go
@@ -50,8 +50,10 @@ func dial(family int, config *Config) (*conn, uint32, error) {
50 config = &Config{} 50 config = &Config{}
51 } 51 }
52 52
53 lockThread := !config.NoLockThread 53 sock, err := newSysSocket(config)
54 sock := newSysSocket(lockThread) 54 if err != nil {
55 return nil, 0, err
56 }
55 57
56 if err := sock.Socket(family); err != nil { 58 if err := sock.Socket(family); err != nil {
57 return nil, 0, err 59 return nil, 0, err
@@ -260,6 +262,32 @@ func (c *conn) SetOption(option ConnOption, enable bool) error {
260 ) 262 )
261} 263}
262 264
265// SetReadBuffer sets the size of the operating system's receive buffer
266// associated with the Conn.
267func (c *conn) SetReadBuffer(bytes int) error {
268 v := uint32(bytes)
269
270 return c.s.SetSockopt(
271 unix.SOL_SOCKET,
272 unix.SO_RCVBUF,
273 unsafe.Pointer(&v),
274 uint32(unsafe.Sizeof(v)),
275 )
276}
277
278// SetReadBuffer sets the size of the operating system's transmit buffer
279// associated with the Conn.
280func (c *conn) SetWriteBuffer(bytes int) error {
281 v := uint32(bytes)
282
283 return c.s.SetSockopt(
284 unix.SOL_SOCKET,
285 unix.SO_SNDBUF,
286 unsafe.Pointer(&v),
287 uint32(unsafe.Sizeof(v)),
288 )
289}
290
263// linuxOption converts a ConnOption to its Linux value. 291// linuxOption converts a ConnOption to its Linux value.
264func linuxOption(o ConnOption) (int, bool) { 292func linuxOption(o ConnOption) (int, bool) {
265 switch o { 293 switch o {
@@ -299,11 +327,16 @@ type sysSocket struct {
299 327
300 wg *sync.WaitGroup 328 wg *sync.WaitGroup
301 funcC chan<- func() 329 funcC chan<- func()
330
331 mu sync.RWMutex
332
333 done bool
334 doneC chan<- bool
302} 335}
303 336
304// newSysSocket creates a sysSocket that optionally locks its internal goroutine 337// newSysSocket creates a sysSocket that optionally locks its internal goroutine
305// to a single thread. 338// to a single thread.
306func newSysSocket(lockThread bool) *sysSocket { 339func newSysSocket(config *Config) (*sysSocket, error) {
307 var wg sync.WaitGroup 340 var wg sync.WaitGroup
308 wg.Add(1) 341 wg.Add(1)
309 342
@@ -312,52 +345,98 @@ func newSysSocket(lockThread bool) *sysSocket {
312 // Gophers Slack for providing this useful link. 345 // Gophers Slack for providing this useful link.
313 346
314 funcC := make(chan func()) 347 funcC := make(chan func())
348 doneC := make(chan bool)
349 errC := make(chan error)
350
315 go func() { 351 go func() {
316 // It is important to lock this goroutine to its OS thread for the duration 352 // It is important to lock this goroutine to its OS thread for the duration
317 // of the netlink socket being used, or else the kernel may end up routing 353 // of the netlink socket being used, or else the kernel may end up routing
318 // messages to the wrong places. 354 // messages to the wrong places.
319 // See: http://lists.infradead.org/pipermail/libnl/2017-February/002293.html. 355 // See: http://lists.infradead.org/pipermail/libnl/2017-February/002293.html.
320 // 356 //
321 // But since this is very experimental, we'll leave it as a configurable at 357 // The intent is to never unlock the OS thread, so that the thread
322 // this point. 358 // will terminate when the goroutine exits starting in Go 1.10:
323 if lockThread { 359 // https://go-review.googlesource.com/c/go/+/46038.
324 // The intent is to never unlock the OS thread, so that the thread 360 //
325 // will terminate when the goroutine exits starting in Go 1.10: 361 // However, due to recent instability and a potential bad interaction
326 // https://go-review.googlesource.com/c/go/+/46038. 362 // with the Go runtime for threads which are not unlocked, we have
327 // 363 // elected to temporarily unlock the thread when the goroutine terminates:
328 // However, due to recent instability and a potential bad interaction 364 // https://github.com/golang/go/issues/25128#issuecomment-410764489.
329 // with the Go runtime for threads which are not unlocked, we have
330 // elected to temporarily unlock the thread:
331 // https://github.com/golang/go/issues/25128#issuecomment-410764489.
332 //
333 // If we ever allow a Conn to set its own network namespace, we must
334 // either ensure that the namespace is restored on exit here or that
335 // the thread is properly terminated at some point in the future.
336 runtime.LockOSThread()
337 defer runtime.UnlockOSThread()
338 }
339 365
366 runtime.LockOSThread()
367 defer runtime.UnlockOSThread()
340 defer wg.Done() 368 defer wg.Done()
341 369
342 for f := range funcC { 370 // The user requested the Conn to operate in a non-default network namespace.
343 f() 371 if config.NetNS != 0 {
372
373 // Get the current namespace of the thread the goroutine is locked to.
374 origNetNS, err := getThreadNetNS()
375 if err != nil {
376 errC <- err
377 return
378 }
379
380 // Set the network namespace of the current thread using
381 // the file descriptor provided by the user.
382 err = setThreadNetNS(config.NetNS)
383 if err != nil {
384 errC <- err
385 return
386 }
387
388 // Once the thread's namespace has been successfully manipulated,
389 // make sure we change it back when the goroutine returns.
390 defer setThreadNetNS(origNetNS)
391 }
392
393 // Signal to caller that initialization was successful.
394 errC <- nil
395
396 for {
397 select {
398 case <-doneC:
399 return
400 case f := <-funcC:
401 f()
402 }
344 } 403 }
345 }() 404 }()
346 405
406 // Wait for the goroutine to return err or nil.
407 if err := <-errC; err != nil {
408 return nil, err
409 }
410
347 return &sysSocket{ 411 return &sysSocket{
348 wg: &wg, 412 wg: &wg,
349 funcC: funcC, 413 funcC: funcC,
350 } 414 doneC: doneC,
415 }, nil
351} 416}
352 417
353// do runs f in a worker goroutine which can be locked to one thread. 418// do runs f in a worker goroutine which can be locked to one thread.
354func (s *sysSocket) do(f func()) { 419func (s *sysSocket) do(f func()) error {
355 done := make(chan bool, 1) 420 done := make(chan bool, 1)
421
422 // All operations handled by this function are assumed to only
423 // read from s.done.
424 s.mu.RLock()
425
426 if s.done {
427 s.mu.RUnlock()
428 return syscall.EBADF
429 }
430
356 s.funcC <- func() { 431 s.funcC <- func() {
357 f() 432 f()
358 done <- true 433 done <- true
359 } 434 }
360 <-done 435 <-done
436
437 s.mu.RUnlock()
438
439 return nil
361} 440}
362 441
363func (s *sysSocket) Socket(family int) error { 442func (s *sysSocket) Socket(family int) error {
@@ -366,13 +445,16 @@ func (s *sysSocket) Socket(family int) error {
366 err error 445 err error
367 ) 446 )
368 447
369 s.do(func() { 448 doErr := s.do(func() {
370 fd, err = unix.Socket( 449 fd, err = unix.Socket(
371 unix.AF_NETLINK, 450 unix.AF_NETLINK,
372 unix.SOCK_RAW, 451 unix.SOCK_RAW,
373 family, 452 family,
374 ) 453 )
375 }) 454 })
455 if doErr != nil {
456 return doErr
457 }
376 if err != nil { 458 if err != nil {
377 return err 459 return err
378 } 460 }
@@ -383,21 +465,35 @@ func (s *sysSocket) Socket(family int) error {
383 465
384func (s *sysSocket) Bind(sa unix.Sockaddr) error { 466func (s *sysSocket) Bind(sa unix.Sockaddr) error {
385 var err error 467 var err error
386 s.do(func() { 468 doErr := s.do(func() {
387 err = unix.Bind(s.fd, sa) 469 err = unix.Bind(s.fd, sa)
388 }) 470 })
471 if doErr != nil {
472 return doErr
473 }
389 474
390 return err 475 return err
391} 476}
392 477
393func (s *sysSocket) Close() error { 478func (s *sysSocket) Close() error {
394 var err error
395 s.do(func() {
396 err = unix.Close(s.fd)
397 })
398 479
399 close(s.funcC) 480 // Be sure to acquire a write lock because we need to stop any other
481 // goroutines from sending system call requests after close.
482 // Any invocation of do() after this write lock unlocks is guaranteed
483 // to find s.done being true.
484 s.mu.Lock()
485 defer s.mu.Unlock()
486
487 // Close the socket from the main thread, this operation has no risk
488 // of routing data to the wrong socket.
489 err := unix.Close(s.fd)
490 s.done = true
491
492 // Signal the syscall worker to exit, wait for the WaitGroup to join,
493 // and close the job channel only when the worker is guaranteed to have stopped.
494 close(s.doneC)
400 s.wg.Wait() 495 s.wg.Wait()
496 close(s.funcC)
401 497
402 return err 498 return err
403} 499}
@@ -410,12 +506,16 @@ func (s *sysSocket) Getsockname() (unix.Sockaddr, error) {
410 err error 506 err error
411 ) 507 )
412 508
413 s.do(func() { 509 doErr := s.do(func() {
414 sa, err = unix.Getsockname(s.fd) 510 sa, err = unix.Getsockname(s.fd)
415 }) 511 })
512 if doErr != nil {
513 return nil, doErr
514 }
416 515
417 return sa, err 516 return sa, err
418} 517}
518
419func (s *sysSocket) Recvmsg(p, oob []byte, flags int) (int, int, int, unix.Sockaddr, error) { 519func (s *sysSocket) Recvmsg(p, oob []byte, flags int) (int, int, int, unix.Sockaddr, error) {
420 var ( 520 var (
421 n, oobn, recvflags int 521 n, oobn, recvflags int
@@ -423,27 +523,36 @@ func (s *sysSocket) Recvmsg(p, oob []byte, flags int) (int, int, int, unix.Socka
423 err error 523 err error
424 ) 524 )
425 525
426 s.do(func() { 526 doErr := s.do(func() {
427 n, oobn, recvflags, from, err = unix.Recvmsg(s.fd, p, oob, flags) 527 n, oobn, recvflags, from, err = unix.Recvmsg(s.fd, p, oob, flags)
428 }) 528 })
529 if doErr != nil {
530 return 0, 0, 0, nil, doErr
531 }
429 532
430 return n, oobn, recvflags, from, err 533 return n, oobn, recvflags, from, err
431} 534}
432 535
433func (s *sysSocket) Sendmsg(p, oob []byte, to unix.Sockaddr, flags int) error { 536func (s *sysSocket) Sendmsg(p, oob []byte, to unix.Sockaddr, flags int) error {
434 var err error 537 var err error
435 s.do(func() { 538 doErr := s.do(func() {
436 err = unix.Sendmsg(s.fd, p, oob, to, flags) 539 err = unix.Sendmsg(s.fd, p, oob, to, flags)
437 }) 540 })
541 if doErr != nil {
542 return doErr
543 }
438 544
439 return err 545 return err
440} 546}
441 547
442func (s *sysSocket) SetSockopt(level, name int, v unsafe.Pointer, l uint32) error { 548func (s *sysSocket) SetSockopt(level, name int, v unsafe.Pointer, l uint32) error {
443 var err error 549 var err error
444 s.do(func() { 550 doErr := s.do(func() {
445 err = setsockopt(s.fd, level, name, v, l) 551 err = setsockopt(s.fd, level, name, v, l)
446 }) 552 })
553 if doErr != nil {
554 return doErr
555 }
447 556
448 return err 557 return err
449} 558}
diff --git a/vendor/github.com/mdlayher/netlink/message.go b/vendor/github.com/mdlayher/netlink/message.go
index 8cd514d..30f025b 100644
--- a/vendor/github.com/mdlayher/netlink/message.go
+++ b/vendor/github.com/mdlayher/netlink/message.go
@@ -233,17 +233,16 @@ func (m *Message) UnmarshalBinary(b []byte) error {
233func checkMessage(m Message) error { 233func checkMessage(m Message) error {
234 const success = 0 234 const success = 0
235 235
236 // Both "done" and "error" can contain error codes. 236 // Per libnl documentation, only messages that indicate type error can
237 isDone := m.Header.Type == HeaderTypeDone 237 // contain error codes:
238 isError := m.Header.Type == HeaderTypeError 238 // https://www.infradead.org/~tgr/libnl/doc/core.html#core_errmsg.
239 239 //
240 switch { 240 // However, at one point, this package checked both done and error for
241 // "done" with no data means success. 241 // error codes. Because there was no issue associated with the change,
242 case isDone && len(m.Data) == 0: 242 // it is unknown whether this change was correct or not. If you run into
243 return nil 243 // a problem with your application because of this change, please file
244 case isError, isDone: 244 // an issue.
245 break 245 if m.Header.Type != HeaderTypeError {
246 default:
247 return nil 246 return nil
248 } 247 }
249 248
diff --git a/vendor/github.com/mdlayher/netlink/netns_linux.go b/vendor/github.com/mdlayher/netlink/netns_linux.go
new file mode 100644
index 0000000..8173d4d
--- /dev/null
+++ b/vendor/github.com/mdlayher/netlink/netns_linux.go
@@ -0,0 +1,27 @@
1//+build linux
2
3package netlink
4
5import (
6 "fmt"
7 "os"
8
9 "golang.org/x/sys/unix"
10)
11
12// getThreadNetNS gets the network namespace file descriptor of the thread the current goroutine
13// is running on. Make sure to call runtime.LockOSThread() before this so the goroutine does not
14// get scheduled on another thread in the meantime.
15func getThreadNetNS() (int, error) {
16 file, err := os.Open(fmt.Sprintf("/proc/%d/task/%d/ns/net", unix.Getpid(), unix.Gettid()))
17 if err != nil {
18 return -1, err
19 }
20 return int(file.Fd()), nil
21}
22
23// setThreadNetNS sets the network namespace of the thread of the current goroutine to
24// the namespace described by the user-provided file descriptor.
25func setThreadNetNS(fd int) error {
26 return unix.Setns(fd, unix.CLONE_NEWNET)
27}
diff --git a/vendor/github.com/prometheus/procfs/.gitignore b/vendor/github.com/prometheus/procfs/.gitignore
deleted file mode 100644
index 25e3659..0000000
--- a/vendor/github.com/prometheus/procfs/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
1/fixtures/
diff --git a/vendor/github.com/prometheus/procfs/.travis.yml b/vendor/github.com/prometheus/procfs/.travis.yml
deleted file mode 100644
index 5416cf8..0000000
--- a/vendor/github.com/prometheus/procfs/.travis.yml
+++ /dev/null
@@ -1,15 +0,0 @@
1sudo: false
2
3language: go
4
5go:
6- 1.7.x
7- 1.8.x
8- 1.9.x
9- 1.10.x
10- 1.x
11
12go_import_path: github.com/prometheus/procfs
13
14script:
15- make style check_license vet test staticcheck
diff --git a/vendor/github.com/prometheus/procfs/bcache/get_test.go b/vendor/github.com/prometheus/procfs/bcache/get_test.go
deleted file mode 100644
index 1d41a5a..0000000
--- a/vendor/github.com/prometheus/procfs/bcache/get_test.go
+++ /dev/null
@@ -1,114 +0,0 @@
1// Copyright 2017 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package bcache
15
16import (
17 "math"
18 "testing"
19)
20
21func TestDehumanizeTests(t *testing.T) {
22 dehumanizeTests := []struct {
23 in []byte
24 out uint64
25 invalid bool
26 }{
27 {
28 in: []byte("542k"),
29 out: 555008,
30 },
31 {
32 in: []byte("322M"),
33 out: 337641472,
34 },
35 {
36 in: []byte("1.1k"),
37 out: 1124,
38 },
39 {
40 in: []byte("1.9k"),
41 out: 1924,
42 },
43 {
44 in: []byte("1.10k"),
45 out: 2024,
46 },
47 {
48 in: []byte(""),
49 out: 0,
50 invalid: true,
51 },
52 }
53 for _, tst := range dehumanizeTests {
54 got, err := dehumanize(tst.in)
55 if tst.invalid && err == nil {
56 t.Error("expected an error, but none occurred")
57 }
58 if !tst.invalid && err != nil {
59 t.Errorf("unexpected error: %v", err)
60 }
61 if got != tst.out {
62 t.Errorf("dehumanize: '%s', want %d, got %d", tst.in, tst.out, got)
63 }
64 }
65}
66
67func TestParsePseudoFloatTests(t *testing.T) {
68 parsePseudoFloatTests := []struct {
69 in string
70 out float64
71 }{
72 {
73 in: "1.1",
74 out: float64(1.097656),
75 },
76 {
77 in: "1.9",
78 out: float64(1.878906),
79 },
80 {
81 in: "1.10",
82 out: float64(1.976562),
83 },
84 }
85 for _, tst := range parsePseudoFloatTests {
86 got, err := parsePseudoFloat(tst.in)
87 if err != nil || math.Abs(got-tst.out) > 0.0001 {
88 t.Errorf("parsePseudoFloat: %s, want %f, got %f", tst.in, tst.out, got)
89 }
90 }
91}
92
93func TestPriorityStats(t *testing.T) {
94 var want = PriorityStats{
95 UnusedPercent: 99,
96 MetadataPercent: 5,
97 }
98 var (
99 in string
100 gotErr error
101 got PriorityStats
102 )
103 in = "Metadata: 5%"
104 gotErr = parsePriorityStats(in, &got)
105 if gotErr != nil || got.MetadataPercent != want.MetadataPercent {
106 t.Errorf("parsePriorityStats: '%s', want %d, got %d", in, want.MetadataPercent, got.MetadataPercent)
107 }
108
109 in = "Unused: 99%"
110 gotErr = parsePriorityStats(in, &got)
111 if gotErr != nil || got.UnusedPercent != want.UnusedPercent {
112 t.Errorf("parsePriorityStats: '%s', want %d, got %d", in, want.UnusedPercent, got.UnusedPercent)
113 }
114}
diff --git a/vendor/github.com/prometheus/procfs/buddyinfo_test.go b/vendor/github.com/prometheus/procfs/buddyinfo_test.go
deleted file mode 100644
index bcf9355..0000000
--- a/vendor/github.com/prometheus/procfs/buddyinfo_test.go
+++ /dev/null
@@ -1,64 +0,0 @@
1// Copyright 2017 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "strings"
18 "testing"
19)
20
21func TestBuddyInfo(t *testing.T) {
22 buddyInfo, err := FS("fixtures/buddyinfo/valid").NewBuddyInfo()
23 if err != nil {
24 t.Fatal(err)
25 }
26
27 if want, got := "DMA", buddyInfo[0].Zone; want != got {
28 t.Errorf("want Node 0, Zone %s, got %s", want, got)
29 }
30
31 if want, got := "Normal", buddyInfo[2].Zone; want != got {
32 t.Errorf("want Node 0, Zone %s, got %s", want, got)
33 }
34
35 if want, got := 4381.0, buddyInfo[2].Sizes[0]; want != got {
36 t.Errorf("want Node 0, Zone Normal %f, got %f", want, got)
37 }
38
39 if want, got := 572.0, buddyInfo[1].Sizes[1]; want != got {
40 t.Errorf("want Node 0, Zone DMA32 %f, got %f", want, got)
41 }
42}
43
44func TestBuddyInfoShort(t *testing.T) {
45 _, err := FS("fixtures/buddyinfo/short").NewBuddyInfo()
46 if err == nil {
47 t.Errorf("expected error, but none occurred")
48 }
49
50 if want, got := "invalid number of fields when parsing buddyinfo", err.Error(); want != got {
51 t.Errorf("wrong error returned, wanted %q, got %q", want, got)
52 }
53}
54
55func TestBuddyInfoSizeMismatch(t *testing.T) {
56 _, err := FS("fixtures/buddyinfo/sizemismatch").NewBuddyInfo()
57 if err == nil {
58 t.Errorf("expected error, but none occurred")
59 }
60
61 if want, got := "mismatch in number of buddyinfo buckets", err.Error(); !strings.HasPrefix(got, want) {
62 t.Errorf("wrong error returned, wanted prefix %q, got %q", want, got)
63 }
64}
diff --git a/vendor/github.com/prometheus/procfs/fixtures.ttar b/vendor/github.com/prometheus/procfs/fixtures.ttar
index 3ee8291..13c831e 100644
--- a/vendor/github.com/prometheus/procfs/fixtures.ttar
+++ b/vendor/github.com/prometheus/procfs/fixtures.ttar
@@ -15,6 +15,9 @@ Lines: 1
15vim 15vim
16Mode: 644 16Mode: 644
17# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 17# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
18Path: fixtures/26231/cwd
19SymlinkTo: /usr/bin
20# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
18Path: fixtures/26231/exe 21Path: fixtures/26231/exe
19SymlinkTo: /usr/bin/vim 22SymlinkTo: /usr/bin/vim
20# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 23# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -111,6 +114,9 @@ SymlinkTo: mnt:[4026531840]
111Path: fixtures/26231/ns/net 114Path: fixtures/26231/ns/net
112SymlinkTo: net:[4026531993] 115SymlinkTo: net:[4026531993]
113# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 116# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
117Path: fixtures/26231/root
118SymlinkTo: /
119# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
114Path: fixtures/26231/stat 120Path: fixtures/26231/stat
115Lines: 1 121Lines: 1
11626231 (vim) R 5392 7446 5392 34835 7446 4218880 32533 309516 26 82 1677 44 158 99 20 0 1 0 82375 56274944 1981 18446744073709551615 4194304 6294284 140736914091744 140736914087944 139965136429984 0 0 12288 1870679807 0 0 0 17 0 0 0 31 0 0 8391624 8481048 16420864 140736914093252 140736914093279 140736914093279 140736914096107 0 12226231 (vim) R 5392 7446 5392 34835 7446 4218880 32533 309516 26 82 1677 44 158 99 20 0 1 0 82375 56274944 1981 18446744073709551615 4194304 6294284 140736914091744 140736914087944 139965136429984 0 0 12288 1870679807 0 0 0 17 0 0 0 31 0 0 8391624 8481048 16420864 140736914093252 140736914093279 140736914093279 140736914096107 0
@@ -128,6 +134,9 @@ Lines: 1
128ata_sff 134ata_sff
129Mode: 644 135Mode: 644
130# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 136# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
137Path: fixtures/26232/cwd
138SymlinkTo: /does/not/exist
139# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
131Directory: fixtures/26232/fd 140Directory: fixtures/26232/fd
132Mode: 755 141Mode: 755
133# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 142# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -167,6 +176,9 @@ Max realtime priority 0 0
167Max realtime timeout unlimited unlimited us 176Max realtime timeout unlimited unlimited us
168Mode: 644 177Mode: 644
169# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 178# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
179Path: fixtures/26232/root
180SymlinkTo: /does/not/exist
181# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
170Path: fixtures/26232/stat 182Path: fixtures/26232/stat
171Lines: 1 183Lines: 1
17233 (ata_sff) S 2 0 0 0 -1 69238880 0 0 0 0 0 0 0 0 0 -20 1 0 5 0 0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744073709551615 0 0 17 1 0 0 0 0 0 0 0 0 0 0 0 0 0 18433 (ata_sff) S 2 0 0 0 -1 69238880 0 0 0 0 0 0 0 0 0 -20 1 0 5 0 0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744073709551615 0 0 17 1 0 0 0 0 0 0 0 0 0 0 0 0 0
@@ -444,3 +456,7 @@ Path: fixtures/symlinktargets/xyz
444Lines: 0 456Lines: 0
445Mode: 644 457Mode: 644
446# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 458# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
459Path: fixtures/.unpacked
460Lines: 0
461Mode: 664
462# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/vendor/github.com/prometheus/procfs/fs_test.go b/vendor/github.com/prometheus/procfs/fs_test.go
deleted file mode 100644
index a4e07f5..0000000
--- a/vendor/github.com/prometheus/procfs/fs_test.go
+++ /dev/null
@@ -1,39 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import "testing"
17
18func TestNewFS(t *testing.T) {
19 if _, err := NewFS("foobar"); err == nil {
20 t.Error("want NewFS to fail for non-existing mount point")
21 }
22
23 if _, err := NewFS("procfs.go"); err == nil {
24 t.Error("want NewFS to fail if mount point is not a directory")
25 }
26}
27
28func TestFSXFSStats(t *testing.T) {
29 stats, err := FS("fixtures").XFSStats()
30 if err != nil {
31 t.Fatalf("failed to parse XFS stats: %v", err)
32 }
33
34 // Very lightweight test just to sanity check the path used
35 // to open XFS stats. Heavier tests in package xfs.
36 if want, got := uint32(92447), stats.ExtentAllocation.ExtentsAllocated; want != got {
37 t.Errorf("unexpected extents allocated:\nwant: %d\nhave: %d", want, got)
38 }
39}
diff --git a/vendor/github.com/prometheus/procfs/internal/util/parse.go b/vendor/github.com/prometheus/procfs/internal/util/parse.go
index 1ad21c9..2ff228e 100644
--- a/vendor/github.com/prometheus/procfs/internal/util/parse.go
+++ b/vendor/github.com/prometheus/procfs/internal/util/parse.go
@@ -13,7 +13,11 @@
13 13
14package util 14package util
15 15
16import "strconv" 16import (
17 "io/ioutil"
18 "strconv"
19 "strings"
20)
17 21
18// ParseUint32s parses a slice of strings into a slice of uint32s. 22// ParseUint32s parses a slice of strings into a slice of uint32s.
19func ParseUint32s(ss []string) ([]uint32, error) { 23func ParseUint32s(ss []string) ([]uint32, error) {
@@ -44,3 +48,12 @@ func ParseUint64s(ss []string) ([]uint64, error) {
44 48
45 return us, nil 49 return us, nil
46} 50}
51
52// ReadUintFromFile reads a file and attempts to parse a uint64 from it.
53func ReadUintFromFile(path string) (uint64, error) {
54 data, err := ioutil.ReadFile(path)
55 if err != nil {
56 return 0, err
57 }
58 return strconv.ParseUint(strings.TrimSpace(string(data)), 10, 64)
59}
diff --git a/vendor/github.com/prometheus/procfs/internal/util/sysreadfile_linux.go b/vendor/github.com/prometheus/procfs/internal/util/sysreadfile_linux.go
new file mode 100644
index 0000000..df0d567
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/internal/util/sysreadfile_linux.go
@@ -0,0 +1,45 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14// +build !windows
15
16package util
17
18import (
19 "bytes"
20 "os"
21 "syscall"
22)
23
24// SysReadFile is a simplified ioutil.ReadFile that invokes syscall.Read directly.
25// https://github.com/prometheus/node_exporter/pull/728/files
26func SysReadFile(file string) (string, error) {
27 f, err := os.Open(file)
28 if err != nil {
29 return "", err
30 }
31 defer f.Close()
32
33 // On some machines, hwmon drivers are broken and return EAGAIN. This causes
34 // Go's ioutil.ReadFile implementation to poll forever.
35 //
36 // Since we either want to read data or bail immediately, do the simplest
37 // possible read using syscall directly.
38 b := make([]byte, 128)
39 n, err := syscall.Read(int(f.Fd()), b)
40 if err != nil {
41 return "", err
42 }
43
44 return string(bytes.TrimSpace(b[:n])), nil
45}
diff --git a/vendor/github.com/prometheus/procfs/ipvs_test.go b/vendor/github.com/prometheus/procfs/ipvs_test.go
deleted file mode 100644
index 9c34e6d..0000000
--- a/vendor/github.com/prometheus/procfs/ipvs_test.go
+++ /dev/null
@@ -1,250 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "net"
18 "testing"
19)
20
21var (
22 expectedIPVSStats = IPVSStats{
23 Connections: 23765872,
24 IncomingPackets: 3811989221,
25 OutgoingPackets: 0,
26 IncomingBytes: 89991519156915,
27 OutgoingBytes: 0,
28 }
29 expectedIPVSBackendStatuses = []IPVSBackendStatus{
30 {
31 LocalAddress: net.ParseIP("192.168.0.22"),
32 LocalPort: 3306,
33 RemoteAddress: net.ParseIP("192.168.82.22"),
34 RemotePort: 3306,
35 Proto: "TCP",
36 Weight: 100,
37 ActiveConn: 248,
38 InactConn: 2,
39 },
40 {
41 LocalAddress: net.ParseIP("192.168.0.22"),
42 LocalPort: 3306,
43 RemoteAddress: net.ParseIP("192.168.83.24"),
44 RemotePort: 3306,
45 Proto: "TCP",
46 Weight: 100,
47 ActiveConn: 248,
48 InactConn: 2,
49 },
50 {
51 LocalAddress: net.ParseIP("192.168.0.22"),
52 LocalPort: 3306,
53 RemoteAddress: net.ParseIP("192.168.83.21"),
54 RemotePort: 3306,
55 Proto: "TCP",
56 Weight: 100,
57 ActiveConn: 248,
58 InactConn: 1,
59 },
60 {
61 LocalAddress: net.ParseIP("192.168.0.57"),
62 LocalPort: 3306,
63 RemoteAddress: net.ParseIP("192.168.84.22"),
64 RemotePort: 3306,
65 Proto: "TCP",
66 Weight: 0,
67 ActiveConn: 0,
68 InactConn: 0,
69 },
70 {
71 LocalAddress: net.ParseIP("192.168.0.57"),
72 LocalPort: 3306,
73 RemoteAddress: net.ParseIP("192.168.82.21"),
74 RemotePort: 3306,
75 Proto: "TCP",
76 Weight: 100,
77 ActiveConn: 1499,
78 InactConn: 0,
79 },
80 {
81 LocalAddress: net.ParseIP("192.168.0.57"),
82 LocalPort: 3306,
83 RemoteAddress: net.ParseIP("192.168.50.21"),
84 RemotePort: 3306,
85 Proto: "TCP",
86 Weight: 100,
87 ActiveConn: 1498,
88 InactConn: 0,
89 },
90 {
91 LocalAddress: net.ParseIP("192.168.0.55"),
92 LocalPort: 3306,
93 RemoteAddress: net.ParseIP("192.168.50.26"),
94 RemotePort: 3306,
95 Proto: "TCP",
96 Weight: 0,
97 ActiveConn: 0,
98 InactConn: 0,
99 },
100 {
101 LocalAddress: net.ParseIP("192.168.0.55"),
102 LocalPort: 3306,
103 RemoteAddress: net.ParseIP("192.168.49.32"),
104 RemotePort: 3306,
105 Proto: "TCP",
106 Weight: 100,
107 ActiveConn: 0,
108 InactConn: 0,
109 },
110 {
111 LocalAddress: net.ParseIP("2620::1"),
112 LocalPort: 80,
113 RemoteAddress: net.ParseIP("2620::2"),
114 RemotePort: 80,
115 Proto: "TCP",
116 Weight: 1,
117 ActiveConn: 0,
118 InactConn: 0,
119 },
120 {
121 LocalAddress: net.ParseIP("2620::1"),
122 LocalPort: 80,
123 RemoteAddress: net.ParseIP("2620::3"),
124 RemotePort: 80,
125 Proto: "TCP",
126 Weight: 1,
127 ActiveConn: 0,
128 InactConn: 0,
129 },
130 {
131 LocalAddress: net.ParseIP("2620::1"),
132 LocalPort: 80,
133 RemoteAddress: net.ParseIP("2620::4"),
134 RemotePort: 80,
135 Proto: "TCP",
136 Weight: 1,
137 ActiveConn: 1,
138 InactConn: 1,
139 },
140 {
141 LocalMark: "10001000",
142 RemoteAddress: net.ParseIP("192.168.50.26"),
143 RemotePort: 3306,
144 Proto: "FWM",
145 Weight: 0,
146 ActiveConn: 0,
147 InactConn: 1,
148 },
149 {
150 LocalMark: "10001000",
151 RemoteAddress: net.ParseIP("192.168.50.21"),
152 RemotePort: 3306,
153 Proto: "FWM",
154 Weight: 0,
155 ActiveConn: 0,
156 InactConn: 2,
157 },
158 }
159)
160
161func TestIPVSStats(t *testing.T) {
162 stats, err := FS("fixtures").NewIPVSStats()
163 if err != nil {
164 t.Fatal(err)
165 }
166
167 if stats != expectedIPVSStats {
168 t.Errorf("want %+v, have %+v", expectedIPVSStats, stats)
169 }
170}
171
172func TestParseIPPort(t *testing.T) {
173 ip := net.ParseIP("192.168.0.22")
174 port := uint16(3306)
175
176 gotIP, gotPort, err := parseIPPort("C0A80016:0CEA")
177 if err != nil {
178 t.Fatal(err)
179 }
180 if !(gotIP.Equal(ip) && port == gotPort) {
181 t.Errorf("want %s:%d, have %s:%d", ip, port, gotIP, gotPort)
182 }
183}
184
185func TestParseIPPortInvalid(t *testing.T) {
186 testcases := []string{
187 "",
188 "C0A80016",
189 "C0A800:1234",
190 "FOOBARBA:1234",
191 "C0A80016:0CEA:1234",
192 }
193
194 for _, s := range testcases {
195 ip, port, err := parseIPPort(s)
196 if ip != nil || port != uint16(0) || err == nil {
197 t.Errorf("Expected error for input %s, have ip = %s, port = %v, err = %v", s, ip, port, err)
198 }
199 }
200}
201
202func TestParseIPPortIPv6(t *testing.T) {
203 ip := net.ParseIP("dead:beef::1")
204 port := uint16(8080)
205
206 gotIP, gotPort, err := parseIPPort("[DEAD:BEEF:0000:0000:0000:0000:0000:0001]:1F90")
207 if err != nil {
208 t.Fatal(err)
209 }
210 if !(gotIP.Equal(ip) && port == gotPort) {
211 t.Errorf("want %s:%d, have %s:%d", ip, port, gotIP, gotPort)
212 }
213}
214
215func TestIPVSBackendStatus(t *testing.T) {
216 backendStats, err := FS("fixtures").NewIPVSBackendStatus()
217 if err != nil {
218 t.Fatal(err)
219 }
220 if want, have := len(expectedIPVSBackendStatuses), len(backendStats); want != have {
221 t.Fatalf("want %d backend statuses, have %d", want, have)
222 }
223
224 for idx, expect := range expectedIPVSBackendStatuses {
225 if !backendStats[idx].LocalAddress.Equal(expect.LocalAddress) {
226 t.Errorf("want LocalAddress %s, have %s", expect.LocalAddress, backendStats[idx].LocalAddress)
227 }
228 if backendStats[idx].LocalPort != expect.LocalPort {
229 t.Errorf("want LocalPort %d, have %d", expect.LocalPort, backendStats[idx].LocalPort)
230 }
231 if !backendStats[idx].RemoteAddress.Equal(expect.RemoteAddress) {
232 t.Errorf("want RemoteAddress %s, have %s", expect.RemoteAddress, backendStats[idx].RemoteAddress)
233 }
234 if backendStats[idx].RemotePort != expect.RemotePort {
235 t.Errorf("want RemotePort %d, have %d", expect.RemotePort, backendStats[idx].RemotePort)
236 }
237 if backendStats[idx].Proto != expect.Proto {
238 t.Errorf("want Proto %s, have %s", expect.Proto, backendStats[idx].Proto)
239 }
240 if backendStats[idx].Weight != expect.Weight {
241 t.Errorf("want Weight %d, have %d", expect.Weight, backendStats[idx].Weight)
242 }
243 if backendStats[idx].ActiveConn != expect.ActiveConn {
244 t.Errorf("want ActiveConn %d, have %d", expect.ActiveConn, backendStats[idx].ActiveConn)
245 }
246 if backendStats[idx].InactConn != expect.InactConn {
247 t.Errorf("want InactConn %d, have %d", expect.InactConn, backendStats[idx].InactConn)
248 }
249 }
250}
diff --git a/vendor/github.com/prometheus/procfs/mdstat_test.go b/vendor/github.com/prometheus/procfs/mdstat_test.go
deleted file mode 100644
index 8819228..0000000
--- a/vendor/github.com/prometheus/procfs/mdstat_test.go
+++ /dev/null
@@ -1,44 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "testing"
18)
19
20func TestMDStat(t *testing.T) {
21 mdStates, err := FS("fixtures").ParseMDStat()
22 if err != nil {
23 t.Fatalf("parsing of reference-file failed entirely: %s", err)
24 }
25
26 refs := map[string]MDStat{
27 "md3": {"md3", "active", 8, 8, 5853468288, 5853468288},
28 "md127": {"md127", "active", 2, 2, 312319552, 312319552},
29 "md0": {"md0", "active", 2, 2, 248896, 248896},
30 "md4": {"md4", "inactive", 2, 2, 4883648, 4883648},
31 "md6": {"md6", "active", 1, 2, 195310144, 16775552},
32 "md8": {"md8", "active", 2, 2, 195310144, 16775552},
33 "md7": {"md7", "active", 3, 4, 7813735424, 7813735424},
34 }
35
36 if want, have := len(refs), len(mdStates); want != have {
37 t.Errorf("want %d parsed md-devices, have %d", want, have)
38 }
39 for _, md := range mdStates {
40 if want, have := refs[md.Name], md; want != have {
41 t.Errorf("%s: want %v, have %v", md.Name, want, have)
42 }
43 }
44}
diff --git a/vendor/github.com/prometheus/procfs/mountstats_test.go b/vendor/github.com/prometheus/procfs/mountstats_test.go
deleted file mode 100644
index 9ae3b02..0000000
--- a/vendor/github.com/prometheus/procfs/mountstats_test.go
+++ /dev/null
@@ -1,380 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "fmt"
18 "reflect"
19 "strings"
20 "testing"
21 "time"
22)
23
24func TestMountStats(t *testing.T) {
25 tests := []struct {
26 name string
27 s string
28 mounts []*Mount
29 invalid bool
30 }{
31 {
32 name: "no devices",
33 s: `hello`,
34 },
35 {
36 name: "device has too few fields",
37 s: `device foo`,
38 invalid: true,
39 },
40 {
41 name: "device incorrect format",
42 s: `device rootfs BAD on / with fstype rootfs`,
43 invalid: true,
44 },
45 {
46 name: "device incorrect format",
47 s: `device rootfs mounted BAD / with fstype rootfs`,
48 invalid: true,
49 },
50 {
51 name: "device incorrect format",
52 s: `device rootfs mounted on / BAD fstype rootfs`,
53 invalid: true,
54 },
55 {
56 name: "device incorrect format",
57 s: `device rootfs mounted on / with BAD rootfs`,
58 invalid: true,
59 },
60 {
61 name: "device rootfs cannot have stats",
62 s: `device rootfs mounted on / with fstype rootfs stats`,
63 invalid: true,
64 },
65 {
66 name: "NFSv4 device with too little info",
67 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=1.1\nhello",
68 invalid: true,
69 },
70 {
71 name: "NFSv4 device with bad bytes",
72 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=1.1\nbytes: 0",
73 invalid: true,
74 },
75 {
76 name: "NFSv4 device with bad events",
77 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=1.1\nevents: 0",
78 invalid: true,
79 },
80 {
81 name: "NFSv4 device with bad per-op stats",
82 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=1.1\nper-op statistics\nFOO 0",
83 invalid: true,
84 },
85 {
86 name: "NFSv4 device with bad transport stats",
87 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=1.1\nxprt: tcp",
88 invalid: true,
89 },
90 {
91 name: "NFSv4 device with bad transport version",
92 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=foo\nxprt: tcp 0",
93 invalid: true,
94 },
95 {
96 name: "NFSv4 device with bad transport stats version 1.0",
97 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=1.0\nxprt: tcp 0 0 0 0 0 0 0 0 0 0 0 0 0",
98 invalid: true,
99 },
100 {
101 name: "NFSv4 device with bad transport stats version 1.1",
102 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=1.1\nxprt: tcp 0 0 0 0 0 0 0 0 0 0",
103 invalid: true,
104 },
105 {
106 name: "NFSv3 device with bad transport protocol",
107 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs4 statvers=1.1\nxprt: tcpx 0 0 0 0 0 0 0 0 0 0",
108 invalid: true,
109 },
110 {
111 name: "NFSv3 device using TCP with transport stats version 1.0 OK",
112 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs statvers=1.0\nxprt: tcp 1 2 3 4 5 6 7 8 9 10",
113 mounts: []*Mount{{
114 Device: "192.168.1.1:/srv",
115 Mount: "/mnt/nfs",
116 Type: "nfs",
117 Stats: &MountStatsNFS{
118 StatVersion: "1.0",
119 Transport: NFSTransportStats{
120 Protocol: "tcp",
121 Port: 1,
122 Bind: 2,
123 Connect: 3,
124 ConnectIdleTime: 4,
125 IdleTime: 5 * time.Second,
126 Sends: 6,
127 Receives: 7,
128 BadTransactionIDs: 8,
129 CumulativeActiveRequests: 9,
130 CumulativeBacklog: 10,
131 MaximumRPCSlotsUsed: 0, // these three are not
132 CumulativeSendingQueue: 0, // present in statvers=1.0
133 CumulativePendingQueue: 0, //
134 },
135 },
136 }},
137 },
138 {
139 name: "NFSv3 device using UDP with transport stats version 1.0 OK",
140 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs statvers=1.0\nxprt: udp 1 2 3 4 5 6 7",
141 mounts: []*Mount{{
142 Device: "192.168.1.1:/srv",
143 Mount: "/mnt/nfs",
144 Type: "nfs",
145 Stats: &MountStatsNFS{
146 StatVersion: "1.0",
147 Transport: NFSTransportStats{
148 Protocol: "udp",
149 Port: 1,
150 Bind: 2,
151 Connect: 0,
152 ConnectIdleTime: 0,
153 IdleTime: 0,
154 Sends: 3,
155 Receives: 4,
156 BadTransactionIDs: 5,
157 CumulativeActiveRequests: 6,
158 CumulativeBacklog: 7,
159 MaximumRPCSlotsUsed: 0, // these three are not
160 CumulativeSendingQueue: 0, // present in statvers=1.0
161 CumulativePendingQueue: 0, //
162 },
163 },
164 }},
165 },
166 {
167 name: "NFSv3 device using TCP with transport stats version 1.1 OK",
168 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs statvers=1.1\nxprt: tcp 1 2 3 4 5 6 7 8 9 10 11 12 13",
169 mounts: []*Mount{{
170 Device: "192.168.1.1:/srv",
171 Mount: "/mnt/nfs",
172 Type: "nfs",
173 Stats: &MountStatsNFS{
174 StatVersion: "1.1",
175 Transport: NFSTransportStats{
176 Protocol: "tcp",
177 Port: 1,
178 Bind: 2,
179 Connect: 3,
180 ConnectIdleTime: 4,
181 IdleTime: 5 * time.Second,
182 Sends: 6,
183 Receives: 7,
184 BadTransactionIDs: 8,
185 CumulativeActiveRequests: 9,
186 CumulativeBacklog: 10,
187 MaximumRPCSlotsUsed: 11,
188 CumulativeSendingQueue: 12,
189 CumulativePendingQueue: 13,
190 },
191 },
192 }},
193 },
194 {
195 name: "NFSv3 device using UDP with transport stats version 1.1 OK",
196 s: "device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs statvers=1.1\nxprt: udp 1 2 3 4 5 6 7 8 9 10",
197 mounts: []*Mount{{
198 Device: "192.168.1.1:/srv",
199 Mount: "/mnt/nfs",
200 Type: "nfs",
201 Stats: &MountStatsNFS{
202 StatVersion: "1.1",
203 Transport: NFSTransportStats{
204 Protocol: "udp",
205 Port: 1,
206 Bind: 2,
207 Connect: 0, // these three are not
208 ConnectIdleTime: 0, // present for UDP
209 IdleTime: 0, //
210 Sends: 3,
211 Receives: 4,
212 BadTransactionIDs: 5,
213 CumulativeActiveRequests: 6,
214 CumulativeBacklog: 7,
215 MaximumRPCSlotsUsed: 8,
216 CumulativeSendingQueue: 9,
217 CumulativePendingQueue: 10,
218 },
219 },
220 }},
221 },
222 {
223 name: "device rootfs OK",
224 s: `device rootfs mounted on / with fstype rootfs`,
225 mounts: []*Mount{{
226 Device: "rootfs",
227 Mount: "/",
228 Type: "rootfs",
229 }},
230 },
231 {
232 name: "NFSv3 device with minimal stats OK",
233 s: `device 192.168.1.1:/srv mounted on /mnt/nfs with fstype nfs statvers=1.1`,
234 mounts: []*Mount{{
235 Device: "192.168.1.1:/srv",
236 Mount: "/mnt/nfs",
237 Type: "nfs",
238 Stats: &MountStatsNFS{
239 StatVersion: "1.1",
240 },
241 }},
242 },
243 {
244 name: "fixtures OK",
245 mounts: []*Mount{
246 {
247 Device: "rootfs",
248 Mount: "/",
249 Type: "rootfs",
250 },
251 {
252 Device: "sysfs",
253 Mount: "/sys",
254 Type: "sysfs",
255 },
256 {
257 Device: "proc",
258 Mount: "/proc",
259 Type: "proc",
260 },
261 {
262 Device: "/dev/sda1",
263 Mount: "/",
264 Type: "ext4",
265 },
266 {
267 Device: "192.168.1.1:/srv/test",
268 Mount: "/mnt/nfs/test",
269 Type: "nfs4",
270 Stats: &MountStatsNFS{
271 StatVersion: "1.1",
272 Age: 13968 * time.Second,
273 Bytes: NFSBytesStats{
274 Read: 1207640230,
275 ReadTotal: 1210214218,
276 ReadPages: 295483,
277 },
278 Events: NFSEventsStats{
279 InodeRevalidate: 52,
280 DnodeRevalidate: 226,
281 VFSOpen: 1,
282 VFSLookup: 13,
283 VFSAccess: 398,
284 VFSReadPages: 331,
285 VFSWritePages: 47,
286 VFSFlush: 77,
287 VFSFileRelease: 77,
288 },
289 Operations: []NFSOperationStats{
290 {
291 Operation: "NULL",
292 },
293 {
294 Operation: "READ",
295 Requests: 1298,
296 Transmissions: 1298,
297 BytesSent: 207680,
298 BytesReceived: 1210292152,
299 CumulativeQueueTime: 6 * time.Millisecond,
300 CumulativeTotalResponseTime: 79386 * time.Millisecond,
301 CumulativeTotalRequestTime: 79407 * time.Millisecond,
302 },
303 {
304 Operation: "WRITE",
305 },
306 },
307 Transport: NFSTransportStats{
308 Protocol: "tcp",
309 Port: 832,
310 Connect: 1,
311 IdleTime: 11 * time.Second,
312 Sends: 6428,
313 Receives: 6428,
314 CumulativeActiveRequests: 12154,
315 MaximumRPCSlotsUsed: 24,
316 CumulativeSendingQueue: 26,
317 CumulativePendingQueue: 5726,
318 },
319 },
320 },
321 },
322 },
323 }
324
325 for i, tt := range tests {
326 t.Logf("[%02d] test %q", i, tt.name)
327
328 var mounts []*Mount
329 var err error
330
331 if tt.s != "" {
332 mounts, err = parseMountStats(strings.NewReader(tt.s))
333 } else {
334 proc, e := FS("fixtures").NewProc(26231)
335 if e != nil {
336 t.Fatalf("failed to create proc: %v", err)
337 }
338
339 mounts, err = proc.MountStats()
340 }
341
342 if tt.invalid && err == nil {
343 t.Error("expected an error, but none occurred")
344 }
345 if !tt.invalid && err != nil {
346 t.Errorf("unexpected error: %v", err)
347 }
348
349 if want, have := tt.mounts, mounts; !reflect.DeepEqual(want, have) {
350 t.Errorf("mounts:\nwant:\n%v\nhave:\n%v", mountsStr(want), mountsStr(have))
351 }
352 }
353}
354
355func mountsStr(mounts []*Mount) string {
356 var out string
357 for i, m := range mounts {
358 out += fmt.Sprintf("[%d] %q on %q (%q)", i, m.Device, m.Mount, m.Type)
359
360 stats, ok := m.Stats.(*MountStatsNFS)
361 if !ok {
362 out += "\n"
363 continue
364 }
365
366 out += fmt.Sprintf("\n\t- v%s, age: %s", stats.StatVersion, stats.Age)
367 out += fmt.Sprintf("\n\t- bytes: %v", stats.Bytes)
368 out += fmt.Sprintf("\n\t- events: %v", stats.Events)
369 out += fmt.Sprintf("\n\t- transport: %v", stats.Transport)
370 out += fmt.Sprintf("\n\t- per-operation stats:")
371
372 for _, o := range stats.Operations {
373 out += fmt.Sprintf("\n\t\t- %v", o)
374 }
375
376 out += "\n"
377 }
378
379 return out
380}
diff --git a/vendor/github.com/prometheus/procfs/net_dev_test.go b/vendor/github.com/prometheus/procfs/net_dev_test.go
deleted file mode 100644
index b162e9c..0000000
--- a/vendor/github.com/prometheus/procfs/net_dev_test.go
+++ /dev/null
@@ -1,86 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "testing"
18)
19
20func TestNetDevParseLine(t *testing.T) {
21 const rawLine = ` eth0: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16`
22
23 have, err := NetDev{}.parseLine(rawLine)
24 if err != nil {
25 t.Fatal(err)
26 }
27
28 want := NetDevLine{"eth0", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
29 if want != *have {
30 t.Errorf("want %v, have %v", want, have)
31 }
32}
33
34func TestNewNetDev(t *testing.T) {
35 fs, err := NewFS("fixtures")
36 if err != nil {
37 t.Fatal(err)
38 }
39
40 nd, err := fs.NewNetDev()
41 if err != nil {
42 t.Fatal(err)
43 }
44
45 lines := map[string]NetDevLine{
46 "vethf345468": {Name: "vethf345468", RxBytes: 648, RxPackets: 8, TxBytes: 438, TxPackets: 5},
47 "lo": {Name: "lo", RxBytes: 1664039048, RxPackets: 1566805, TxBytes: 1664039048, TxPackets: 1566805},
48 "docker0": {Name: "docker0", RxBytes: 2568, RxPackets: 38, TxBytes: 438, TxPackets: 5},
49 "eth0": {Name: "eth0", RxBytes: 874354587, RxPackets: 1036395, TxBytes: 563352563, TxPackets: 732147},
50 }
51
52 if want, have := len(lines), len(nd); want != have {
53 t.Errorf("want %d parsed net/dev lines, have %d", want, have)
54 }
55 for _, line := range nd {
56 if want, have := lines[line.Name], line; want != have {
57 t.Errorf("%s: want %v, have %v", line.Name, want, have)
58 }
59 }
60}
61
62func TestProcNewNetDev(t *testing.T) {
63 p, err := FS("fixtures").NewProc(26231)
64 if err != nil {
65 t.Fatal(err)
66 }
67
68 nd, err := p.NewNetDev()
69 if err != nil {
70 t.Fatal(err)
71 }
72
73 lines := map[string]NetDevLine{
74 "lo": {Name: "lo"},
75 "eth0": {Name: "eth0", RxBytes: 438, RxPackets: 5, TxBytes: 648, TxPackets: 8},
76 }
77
78 if want, have := len(lines), len(nd); want != have {
79 t.Errorf("want %d parsed net/dev lines, have %d", want, have)
80 }
81 for _, line := range nd {
82 if want, have := lines[line.Name], line; want != have {
83 t.Errorf("%s: want %v, have %v", line.Name, want, have)
84 }
85 }
86}
diff --git a/vendor/github.com/prometheus/procfs/nfs/parse_nfs_test.go b/vendor/github.com/prometheus/procfs/nfs/parse_nfs_test.go
deleted file mode 100644
index 8ebcfd1..0000000
--- a/vendor/github.com/prometheus/procfs/nfs/parse_nfs_test.go
+++ /dev/null
@@ -1,305 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package nfs_test
15
16import (
17 "reflect"
18 "strings"
19 "testing"
20
21 "github.com/prometheus/procfs/nfs"
22)
23
24func TestNewNFSClientRPCStats(t *testing.T) {
25 tests := []struct {
26 name string
27 content string
28 stats *nfs.ClientRPCStats
29 invalid bool
30 }{
31 {
32 name: "invalid file",
33 content: "invalid",
34 invalid: true,
35 }, {
36 name: "good old kernel version file",
37 content: `net 70 70 69 45
38rpc 1218785755 374636 1218815394
39proc2 18 16 57 74 52 71 73 45 86 0 52 83 61 17 53 50 23 70 82
40proc3 22 0 1061909262 48906 4077635 117661341 5 29391916 2570425 2993289 590 0 0 7815 15 1130 0 3983 92385 13332 2 1 23729
41proc4 48 98 51 54 83 85 23 24 1 28 73 68 83 12 84 39 68 59 58 88 29 74 69 96 21 84 15 53 86 54 66 56 97 36 49 32 85 81 11 58 32 67 13 28 35 90 1 26 1337
42`,
43 stats: &nfs.ClientRPCStats{
44 Network: nfs.Network{
45 NetCount: 70,
46 UDPCount: 70,
47 TCPCount: 69,
48 TCPConnect: 45,
49 },
50 ClientRPC: nfs.ClientRPC{
51 RPCCount: 1218785755,
52 Retransmissions: 374636,
53 AuthRefreshes: 1218815394,
54 },
55 V2Stats: nfs.V2Stats{
56 Null: 16,
57 GetAttr: 57,
58 SetAttr: 74,
59 Root: 52,
60 Lookup: 71,
61 ReadLink: 73,
62 Read: 45,
63 WrCache: 86,
64 Write: 0,
65 Create: 52,
66 Remove: 83,
67 Rename: 61,
68 Link: 17,
69 SymLink: 53,
70 MkDir: 50,
71 RmDir: 23,
72 ReadDir: 70,
73 FsStat: 82,
74 },
75 V3Stats: nfs.V3Stats{
76 Null: 0,
77 GetAttr: 1061909262,
78 SetAttr: 48906,
79 Lookup: 4077635,
80 Access: 117661341,
81 ReadLink: 5,
82 Read: 29391916,
83 Write: 2570425,
84 Create: 2993289,
85 MkDir: 590,
86 SymLink: 0,
87 MkNod: 0,
88 Remove: 7815,
89 RmDir: 15,
90 Rename: 1130,
91 Link: 0,
92 ReadDir: 3983,
93 ReadDirPlus: 92385,
94 FsStat: 13332,
95 FsInfo: 2,
96 PathConf: 1,
97 Commit: 23729},
98 ClientV4Stats: nfs.ClientV4Stats{
99 Null: 98,
100 Read: 51,
101 Write: 54,
102 Commit: 83,
103 Open: 85,
104 OpenConfirm: 23,
105 OpenNoattr: 24,
106 OpenDowngrade: 1,
107 Close: 28,
108 Setattr: 73,
109 FsInfo: 68,
110 Renew: 83,
111 SetClientID: 12,
112 SetClientIDConfirm: 84,
113 Lock: 39,
114 Lockt: 68,
115 Locku: 59,
116 Access: 58,
117 Getattr: 88,
118 Lookup: 29,
119 LookupRoot: 74,
120 Remove: 69,
121 Rename: 96,
122 Link: 21,
123 Symlink: 84,
124 Create: 15,
125 Pathconf: 53,
126 StatFs: 86,
127 ReadLink: 54,
128 ReadDir: 66,
129 ServerCaps: 56,
130 DelegReturn: 97,
131 GetACL: 36,
132 SetACL: 49,
133 FsLocations: 32,
134 ReleaseLockowner: 85,
135 Secinfo: 81,
136 FsidPresent: 11,
137 ExchangeID: 58,
138 CreateSession: 32,
139 DestroySession: 67,
140 Sequence: 13,
141 GetLeaseTime: 28,
142 ReclaimComplete: 35,
143 LayoutGet: 90,
144 GetDeviceInfo: 1,
145 LayoutCommit: 26,
146 LayoutReturn: 1337,
147 SecinfoNoName: 0,
148 TestStateID: 0,
149 FreeStateID: 0,
150 GetDeviceList: 0,
151 BindConnToSession: 0,
152 DestroyClientID: 0,
153 Seek: 0,
154 Allocate: 0,
155 DeAllocate: 0,
156 LayoutStats: 0,
157 Clone: 0,
158 },
159 },
160 }, {
161 name: "good file",
162 content: `net 18628 0 18628 6
163rpc 4329785 0 4338291
164proc2 18 2 69 0 0 4410 0 0 0 0 0 0 0 0 0 0 0 99 2
165proc3 22 1 4084749 29200 94754 32580 186 47747 7981 8639 0 6356 0 6962 0 7958 0 0 241 4 4 2 39
166proc4 61 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
167`,
168 stats: &nfs.ClientRPCStats{
169 Network: nfs.Network{
170 NetCount: 18628,
171 UDPCount: 0,
172 TCPCount: 18628,
173 TCPConnect: 6,
174 },
175 ClientRPC: nfs.ClientRPC{
176 RPCCount: 4329785,
177 Retransmissions: 0,
178 AuthRefreshes: 4338291,
179 },
180 V2Stats: nfs.V2Stats{
181 Null: 2,
182 GetAttr: 69,
183 SetAttr: 0,
184 Root: 0,
185 Lookup: 4410,
186 ReadLink: 0,
187 Read: 0,
188 WrCache: 0,
189 Write: 0,
190 Create: 0,
191 Remove: 0,
192 Rename: 0,
193 Link: 0,
194 SymLink: 0,
195 MkDir: 0,
196 RmDir: 0,
197 ReadDir: 99,
198 FsStat: 2,
199 },
200 V3Stats: nfs.V3Stats{
201 Null: 1,
202 GetAttr: 4084749,
203 SetAttr: 29200,
204 Lookup: 94754,
205 Access: 32580,
206 ReadLink: 186,
207 Read: 47747,
208 Write: 7981,
209 Create: 8639,
210 MkDir: 0,
211 SymLink: 6356,
212 MkNod: 0,
213 Remove: 6962,
214 RmDir: 0,
215 Rename: 7958,
216 Link: 0,
217 ReadDir: 0,
218 ReadDirPlus: 241,
219 FsStat: 4,
220 FsInfo: 4,
221 PathConf: 2,
222 Commit: 39,
223 },
224 ClientV4Stats: nfs.ClientV4Stats{
225 Null: 1,
226 Read: 0,
227 Write: 0,
228 Commit: 0,
229 Open: 0,
230 OpenConfirm: 0,
231 OpenNoattr: 0,
232 OpenDowngrade: 0,
233 Close: 0,
234 Setattr: 0,
235 FsInfo: 0,
236 Renew: 0,
237 SetClientID: 1,
238 SetClientIDConfirm: 1,
239 Lock: 0,
240 Lockt: 0,
241 Locku: 0,
242 Access: 0,
243 Getattr: 0,
244 Lookup: 0,
245 LookupRoot: 0,
246 Remove: 2,
247 Rename: 0,
248 Link: 0,
249 Symlink: 0,
250 Create: 0,
251 Pathconf: 0,
252 StatFs: 0,
253 ReadLink: 0,
254 ReadDir: 0,
255 ServerCaps: 0,
256 DelegReturn: 0,
257 GetACL: 0,
258 SetACL: 0,
259 FsLocations: 0,
260 ReleaseLockowner: 0,
261 Secinfo: 0,
262 FsidPresent: 0,
263 ExchangeID: 0,
264 CreateSession: 0,
265 DestroySession: 0,
266 Sequence: 0,
267 GetLeaseTime: 0,
268 ReclaimComplete: 0,
269 LayoutGet: 0,
270 GetDeviceInfo: 0,
271 LayoutCommit: 0,
272 LayoutReturn: 0,
273 SecinfoNoName: 0,
274 TestStateID: 0,
275 FreeStateID: 0,
276 GetDeviceList: 0,
277 BindConnToSession: 0,
278 DestroyClientID: 0,
279 Seek: 0,
280 Allocate: 0,
281 DeAllocate: 0,
282 LayoutStats: 0,
283 Clone: 0,
284 },
285 },
286 },
287 }
288
289 for _, tt := range tests {
290 t.Run(tt.name, func(t *testing.T) {
291 stats, err := nfs.ParseClientRPCStats(strings.NewReader(tt.content))
292
293 if tt.invalid && err == nil {
294 t.Fatal("expected an error, but none occurred")
295 }
296 if !tt.invalid && err != nil {
297 t.Fatalf("unexpected error: %v", err)
298 }
299
300 if want, have := tt.stats, stats; !reflect.DeepEqual(want, have) {
301 t.Fatalf("unexpected NFS stats:\nwant:\n%v\nhave:\n%v", want, have)
302 }
303 })
304 }
305}
diff --git a/vendor/github.com/prometheus/procfs/nfs/parse_nfsd_test.go b/vendor/github.com/prometheus/procfs/nfs/parse_nfsd_test.go
deleted file mode 100644
index b09b3b5..0000000
--- a/vendor/github.com/prometheus/procfs/nfs/parse_nfsd_test.go
+++ /dev/null
@@ -1,196 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package nfs_test
15
16import (
17 "reflect"
18 "strings"
19 "testing"
20
21 "github.com/prometheus/procfs/nfs"
22)
23
24func TestNewNFSdServerRPCStats(t *testing.T) {
25 tests := []struct {
26 name string
27 content string
28 stats *nfs.ServerRPCStats
29 invalid bool
30 }{
31 {
32 name: "invalid file",
33 content: "invalid",
34 invalid: true,
35 }, {
36 name: "good file",
37 content: `rc 0 6 18622
38fh 0 0 0 0 0
39io 157286400 0
40th 8 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
41ra 32 0 0 0 0 0 0 0 0 0 0 0
42net 18628 0 18628 6
43rpc 18628 0 0 0 0
44proc2 18 2 69 0 0 4410 0 0 0 0 0 0 0 0 0 0 0 99 2
45proc3 22 2 112 0 2719 111 0 0 0 0 0 0 0 0 0 0 0 27 216 0 2 1 0
46proc4 2 2 10853
47proc4ops 72 0 0 0 1098 2 0 0 0 0 8179 5896 0 0 0 0 5900 0 0 2 0 2 0 9609 0 2 150 1272 0 0 0 1236 0 0 0 0 3 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
48`,
49 stats: &nfs.ServerRPCStats{
50 ReplyCache: nfs.ReplyCache{
51 Hits: 0,
52 Misses: 6,
53 NoCache: 18622,
54 },
55 FileHandles: nfs.FileHandles{
56 Stale: 0,
57 TotalLookups: 0,
58 AnonLookups: 0,
59 DirNoCache: 0,
60 NoDirNoCache: 0,
61 },
62 InputOutput: nfs.InputOutput{
63 Read: 157286400,
64 Write: 0,
65 },
66 Threads: nfs.Threads{
67 Threads: 8,
68 FullCnt: 0,
69 },
70 ReadAheadCache: nfs.ReadAheadCache{
71 CacheSize: 32,
72 CacheHistogram: []uint64{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
73 NotFound: 0,
74 },
75 Network: nfs.Network{
76 NetCount: 18628,
77 UDPCount: 0,
78 TCPCount: 18628,
79 TCPConnect: 6,
80 },
81 ServerRPC: nfs.ServerRPC{
82 RPCCount: 18628,
83 BadCnt: 0,
84 BadFmt: 0,
85 BadAuth: 0,
86 BadcInt: 0,
87 },
88 V2Stats: nfs.V2Stats{
89 Null: 2,
90 GetAttr: 69,
91 SetAttr: 0,
92 Root: 0,
93 Lookup: 4410,
94 ReadLink: 0,
95 Read: 0,
96 WrCache: 0,
97 Write: 0,
98 Create: 0,
99 Remove: 0,
100 Rename: 0,
101 Link: 0,
102 SymLink: 0,
103 MkDir: 0,
104 RmDir: 0,
105 ReadDir: 99,
106 FsStat: 2,
107 },
108 V3Stats: nfs.V3Stats{
109 Null: 2,
110 GetAttr: 112,
111 SetAttr: 0,
112 Lookup: 2719,
113 Access: 111,
114 ReadLink: 0,
115 Read: 0,
116 Write: 0,
117 Create: 0,
118 MkDir: 0,
119 SymLink: 0,
120 MkNod: 0,
121 Remove: 0,
122 RmDir: 0,
123 Rename: 0,
124 Link: 0,
125 ReadDir: 27,
126 ReadDirPlus: 216,
127 FsStat: 0,
128 FsInfo: 2,
129 PathConf: 1,
130 Commit: 0,
131 },
132 ServerV4Stats: nfs.ServerV4Stats{
133 Null: 2,
134 Compound: 10853,
135 },
136 V4Ops: nfs.V4Ops{
137 Op0Unused: 0,
138 Op1Unused: 0,
139 Op2Future: 0,
140 Access: 1098,
141 Close: 2,
142 Commit: 0,
143 Create: 0,
144 DelegPurge: 0,
145 DelegReturn: 0,
146 GetAttr: 8179,
147 GetFH: 5896,
148 Link: 0,
149 Lock: 0,
150 Lockt: 0,
151 Locku: 0,
152 Lookup: 5900,
153 LookupRoot: 0,
154 Nverify: 0,
155 Open: 2,
156 OpenAttr: 0,
157 OpenConfirm: 2,
158 OpenDgrd: 0,
159 PutFH: 9609,
160 PutPubFH: 0,
161 PutRootFH: 2,
162 Read: 150,
163 ReadDir: 1272,
164 ReadLink: 0,
165 Remove: 0,
166 Rename: 0,
167 Renew: 1236,
168 RestoreFH: 0,
169 SaveFH: 0,
170 SecInfo: 0,
171 SetAttr: 0,
172 Verify: 3,
173 Write: 3,
174 RelLockOwner: 0,
175 },
176 },
177 },
178 }
179
180 for _, tt := range tests {
181 t.Run(tt.name, func(t *testing.T) {
182 stats, err := nfs.ParseServerRPCStats(strings.NewReader(tt.content))
183
184 if tt.invalid && err == nil {
185 t.Fatal("expected an error, but none occurred")
186 }
187 if !tt.invalid && err != nil {
188 t.Fatalf("unexpected error: %v", err)
189 }
190
191 if want, have := tt.stats, stats; !reflect.DeepEqual(want, have) {
192 t.Fatalf("unexpected NFS stats:\nwant:\n%v\nhave:\n%v", want, have)
193 }
194 })
195 }
196}
diff --git a/vendor/github.com/prometheus/procfs/proc.go b/vendor/github.com/prometheus/procfs/proc.go
index 7cf5b8a..06bed0e 100644
--- a/vendor/github.com/prometheus/procfs/proc.go
+++ b/vendor/github.com/prometheus/procfs/proc.go
@@ -156,6 +156,26 @@ func (p Proc) Executable() (string, error) {
156 return exe, err 156 return exe, err
157} 157}
158 158
159// Cwd returns the absolute path to the current working directory of the process.
160func (p Proc) Cwd() (string, error) {
161 wd, err := os.Readlink(p.path("cwd"))
162 if os.IsNotExist(err) {
163 return "", nil
164 }
165
166 return wd, err
167}
168
169// RootDir returns the absolute path to the process's root directory (as set by chroot)
170func (p Proc) RootDir() (string, error) {
171 rdir, err := os.Readlink(p.path("root"))
172 if os.IsNotExist(err) {
173 return "", nil
174 }
175
176 return rdir, err
177}
178
159// FileDescriptors returns the currently open file descriptors of a process. 179// FileDescriptors returns the currently open file descriptors of a process.
160func (p Proc) FileDescriptors() ([]uintptr, error) { 180func (p Proc) FileDescriptors() ([]uintptr, error) {
161 names, err := p.fileDescriptors() 181 names, err := p.fileDescriptors()
diff --git a/vendor/github.com/prometheus/procfs/proc_io_test.go b/vendor/github.com/prometheus/procfs/proc_io_test.go
deleted file mode 100644
index 1afdbd4..0000000
--- a/vendor/github.com/prometheus/procfs/proc_io_test.go
+++ /dev/null
@@ -1,46 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import "testing"
17
18func TestProcIO(t *testing.T) {
19 p, err := FS("fixtures").NewProc(26231)
20 if err != nil {
21 t.Fatal(err)
22 }
23
24 s, err := p.NewIO()
25 if err != nil {
26 t.Fatal(err)
27 }
28
29 for _, test := range []struct {
30 name string
31 want int64
32 have int64
33 }{
34 {name: "RChar", want: 750339, have: int64(s.RChar)},
35 {name: "WChar", want: 818609, have: int64(s.WChar)},
36 {name: "SyscR", want: 7405, have: int64(s.SyscR)},
37 {name: "SyscW", want: 5245, have: int64(s.SyscW)},
38 {name: "ReadBytes", want: 1024, have: int64(s.ReadBytes)},
39 {name: "WriteBytes", want: 2048, have: int64(s.WriteBytes)},
40 {name: "CancelledWriteBytes", want: -1024, have: s.CancelledWriteBytes},
41 } {
42 if test.want != test.have {
43 t.Errorf("want %s %d, have %d", test.name, test.want, test.have)
44 }
45 }
46}
diff --git a/vendor/github.com/prometheus/procfs/proc_limits_test.go b/vendor/github.com/prometheus/procfs/proc_limits_test.go
deleted file mode 100644
index ebb43ae..0000000
--- a/vendor/github.com/prometheus/procfs/proc_limits_test.go
+++ /dev/null
@@ -1,44 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import "testing"
17
18func TestNewLimits(t *testing.T) {
19 p, err := FS("fixtures").NewProc(26231)
20 if err != nil {
21 t.Fatal(err)
22 }
23
24 l, err := p.NewLimits()
25 if err != nil {
26 t.Fatal(err)
27 }
28
29 for _, test := range []struct {
30 name string
31 want int64
32 have int64
33 }{
34 {name: "cpu time", want: -1, have: l.CPUTime},
35 {name: "open files", want: 2048, have: l.OpenFiles},
36 {name: "msgqueue size", want: 819200, have: l.MsqqueueSize},
37 {name: "nice priority", want: 0, have: l.NicePriority},
38 {name: "address space", want: 8589934592, have: l.AddressSpace},
39 } {
40 if test.want != test.have {
41 t.Errorf("want %s %d, have %d", test.name, test.want, test.have)
42 }
43 }
44}
diff --git a/vendor/github.com/prometheus/procfs/proc_ns_test.go b/vendor/github.com/prometheus/procfs/proc_ns_test.go
deleted file mode 100644
index abfd63e..0000000
--- a/vendor/github.com/prometheus/procfs/proc_ns_test.go
+++ /dev/null
@@ -1,44 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "testing"
18)
19
20func TestNewNamespaces(t *testing.T) {
21 p, err := FS("fixtures").NewProc(26231)
22 if err != nil {
23 t.Fatal(err)
24 }
25
26 namespaces, err := p.NewNamespaces()
27 if err != nil {
28 t.Fatal(err)
29 }
30
31 expectedNamespaces := map[string]Namespace{
32 "mnt": {"mnt", 4026531840},
33 "net": {"net", 4026531993},
34 }
35
36 if want, have := len(expectedNamespaces), len(namespaces); want != have {
37 t.Errorf("want %d parsed namespaces, have %d", want, have)
38 }
39 for _, ns := range namespaces {
40 if want, have := expectedNamespaces[ns.Type], ns; want != have {
41 t.Errorf("%s: want %v, have %v", ns.Type, want, have)
42 }
43 }
44}
diff --git a/vendor/github.com/prometheus/procfs/proc_stat_test.go b/vendor/github.com/prometheus/procfs/proc_stat_test.go
deleted file mode 100644
index e2df884..0000000
--- a/vendor/github.com/prometheus/procfs/proc_stat_test.go
+++ /dev/null
@@ -1,123 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "os"
18 "testing"
19)
20
21func TestProcStat(t *testing.T) {
22 p, err := FS("fixtures").NewProc(26231)
23 if err != nil {
24 t.Fatal(err)
25 }
26
27 s, err := p.NewStat()
28 if err != nil {
29 t.Fatal(err)
30 }
31
32 for _, test := range []struct {
33 name string
34 want int
35 have int
36 }{
37 {name: "pid", want: 26231, have: s.PID},
38 {name: "user time", want: 1677, have: int(s.UTime)},
39 {name: "system time", want: 44, have: int(s.STime)},
40 {name: "start time", want: 82375, have: int(s.Starttime)},
41 {name: "virtual memory size", want: 56274944, have: s.VSize},
42 {name: "resident set size", want: 1981, have: s.RSS},
43 } {
44 if test.want != test.have {
45 t.Errorf("want %s %d, have %d", test.name, test.want, test.have)
46 }
47 }
48}
49
50func TestProcStatComm(t *testing.T) {
51 s1, err := testProcStat(26231)
52 if err != nil {
53 t.Fatal(err)
54 }
55 if want, have := "vim", s1.Comm; want != have {
56 t.Errorf("want comm %s, have %s", want, have)
57 }
58
59 s2, err := testProcStat(584)
60 if err != nil {
61 t.Fatal(err)
62 }
63 if want, have := "(a b ) ( c d) ", s2.Comm; want != have {
64 t.Errorf("want comm %s, have %s", want, have)
65 }
66}
67
68func TestProcStatVirtualMemory(t *testing.T) {
69 s, err := testProcStat(26231)
70 if err != nil {
71 t.Fatal(err)
72 }
73
74 if want, have := 56274944, s.VirtualMemory(); want != have {
75 t.Errorf("want virtual memory %d, have %d", want, have)
76 }
77}
78
79func TestProcStatResidentMemory(t *testing.T) {
80 s, err := testProcStat(26231)
81 if err != nil {
82 t.Fatal(err)
83 }
84
85 if want, have := 1981*os.Getpagesize(), s.ResidentMemory(); want != have {
86 t.Errorf("want resident memory %d, have %d", want, have)
87 }
88}
89
90func TestProcStatStartTime(t *testing.T) {
91 s, err := testProcStat(26231)
92 if err != nil {
93 t.Fatal(err)
94 }
95
96 time, err := s.StartTime()
97 if err != nil {
98 t.Fatal(err)
99 }
100 if want, have := 1418184099.75, time; want != have {
101 t.Errorf("want start time %f, have %f", want, have)
102 }
103}
104
105func TestProcStatCPUTime(t *testing.T) {
106 s, err := testProcStat(26231)
107 if err != nil {
108 t.Fatal(err)
109 }
110
111 if want, have := 17.21, s.CPUTime(); want != have {
112 t.Errorf("want cpu time %f, have %f", want, have)
113 }
114}
115
116func testProcStat(pid int) (ProcStat, error) {
117 p, err := FS("fixtures").NewProc(pid)
118 if err != nil {
119 return ProcStat{}, err
120 }
121
122 return p.NewStat()
123}
diff --git a/vendor/github.com/prometheus/procfs/proc_test.go b/vendor/github.com/prometheus/procfs/proc_test.go
deleted file mode 100644
index ee7e69d..0000000
--- a/vendor/github.com/prometheus/procfs/proc_test.go
+++ /dev/null
@@ -1,174 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "reflect"
18 "sort"
19 "testing"
20)
21
22func TestSelf(t *testing.T) {
23 fs := FS("fixtures")
24
25 p1, err := fs.NewProc(26231)
26 if err != nil {
27 t.Fatal(err)
28 }
29 p2, err := fs.Self()
30 if err != nil {
31 t.Fatal(err)
32 }
33
34 if !reflect.DeepEqual(p1, p2) {
35 t.Errorf("want process %v, have %v", p1, p2)
36 }
37}
38
39func TestAllProcs(t *testing.T) {
40 procs, err := FS("fixtures").AllProcs()
41 if err != nil {
42 t.Fatal(err)
43 }
44 sort.Sort(procs)
45 for i, p := range []*Proc{{PID: 584}, {PID: 26231}} {
46 if want, have := p.PID, procs[i].PID; want != have {
47 t.Errorf("want processes %d, have %d", want, have)
48 }
49 }
50}
51
52func TestCmdLine(t *testing.T) {
53 for _, tt := range []struct {
54 process int
55 want []string
56 }{
57 {process: 26231, want: []string{"vim", "test.go", "+10"}},
58 {process: 26232, want: []string{}},
59 {process: 26233, want: []string{"com.github.uiautomator"}},
60 } {
61 p1, err := FS("fixtures").NewProc(tt.process)
62 if err != nil {
63 t.Fatal(err)
64 }
65 c1, err := p1.CmdLine()
66 if err != nil {
67 t.Fatal(err)
68 }
69 if !reflect.DeepEqual(tt.want, c1) {
70 t.Errorf("want cmdline %v, have %v", tt.want, c1)
71 }
72 }
73}
74
75func TestComm(t *testing.T) {
76 for _, tt := range []struct {
77 process int
78 want string
79 }{
80 {process: 26231, want: "vim"},
81 {process: 26232, want: "ata_sff"},
82 } {
83 p1, err := FS("fixtures").NewProc(tt.process)
84 if err != nil {
85 t.Fatal(err)
86 }
87 c1, err := p1.Comm()
88 if err != nil {
89 t.Fatal(err)
90 }
91 if !reflect.DeepEqual(tt.want, c1) {
92 t.Errorf("want comm %v, have %v", tt.want, c1)
93 }
94 }
95}
96
97func TestExecutable(t *testing.T) {
98 for _, tt := range []struct {
99 process int
100 want string
101 }{
102 {process: 26231, want: "/usr/bin/vim"},
103 {process: 26232, want: ""},
104 } {
105 p, err := FS("fixtures").NewProc(tt.process)
106 if err != nil {
107 t.Fatal(err)
108 }
109 exe, err := p.Executable()
110 if err != nil {
111 t.Fatal(err)
112 }
113 if !reflect.DeepEqual(tt.want, exe) {
114 t.Errorf("want absolute path to cmdline %v, have %v", tt.want, exe)
115 }
116 }
117}
118
119func TestFileDescriptors(t *testing.T) {
120 p1, err := FS("fixtures").NewProc(26231)
121 if err != nil {
122 t.Fatal(err)
123 }
124 fds, err := p1.FileDescriptors()
125 if err != nil {
126 t.Fatal(err)
127 }
128 sort.Sort(byUintptr(fds))
129 if want := []uintptr{0, 1, 2, 3, 10}; !reflect.DeepEqual(want, fds) {
130 t.Errorf("want fds %v, have %v", want, fds)
131 }
132}
133
134func TestFileDescriptorTargets(t *testing.T) {
135 p1, err := FS("fixtures").NewProc(26231)
136 if err != nil {
137 t.Fatal(err)
138 }
139 fds, err := p1.FileDescriptorTargets()
140 if err != nil {
141 t.Fatal(err)
142 }
143 sort.Strings(fds)
144 var want = []string{
145 "../../symlinktargets/abc",
146 "../../symlinktargets/def",
147 "../../symlinktargets/ghi",
148 "../../symlinktargets/uvw",
149 "../../symlinktargets/xyz",
150 }
151 if !reflect.DeepEqual(want, fds) {
152 t.Errorf("want fds %v, have %v", want, fds)
153 }
154}
155
156func TestFileDescriptorsLen(t *testing.T) {
157 p1, err := FS("fixtures").NewProc(26231)
158 if err != nil {
159 t.Fatal(err)
160 }
161 l, err := p1.FileDescriptorsLen()
162 if err != nil {
163 t.Fatal(err)
164 }
165 if want, have := 5, l; want != have {
166 t.Errorf("want fds %d, have %d", want, have)
167 }
168}
169
170type byUintptr []uintptr
171
172func (a byUintptr) Len() int { return len(a) }
173func (a byUintptr) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
174func (a byUintptr) Less(i, j int) bool { return a[i] < a[j] }
diff --git a/vendor/github.com/prometheus/procfs/stat_test.go b/vendor/github.com/prometheus/procfs/stat_test.go
deleted file mode 100644
index 2043b5e..0000000
--- a/vendor/github.com/prometheus/procfs/stat_test.go
+++ /dev/null
@@ -1,74 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import "testing"
17
18func TestStat(t *testing.T) {
19 s, err := FS("fixtures").NewStat()
20 if err != nil {
21 t.Fatal(err)
22 }
23
24 // cpu
25 if want, have := float64(301854)/userHZ, s.CPUTotal.User; want != have {
26 t.Errorf("want cpu/user %v, have %v", want, have)
27 }
28 if want, have := float64(31)/userHZ, s.CPU[7].SoftIRQ; want != have {
29 t.Errorf("want cpu7/softirq %v, have %v", want, have)
30 }
31
32 // intr
33 if want, have := uint64(8885917), s.IRQTotal; want != have {
34 t.Errorf("want irq/total %d, have %d", want, have)
35 }
36 if want, have := uint64(1), s.IRQ[8]; want != have {
37 t.Errorf("want irq8 %d, have %d", want, have)
38 }
39
40 // ctxt
41 if want, have := uint64(38014093), s.ContextSwitches; want != have {
42 t.Errorf("want context switches (ctxt) %d, have %d", want, have)
43 }
44
45 // btime
46 if want, have := uint64(1418183276), s.BootTime; want != have {
47 t.Errorf("want boot time (btime) %d, have %d", want, have)
48 }
49
50 // processes
51 if want, have := uint64(26442), s.ProcessCreated; want != have {
52 t.Errorf("want process created (processes) %d, have %d", want, have)
53 }
54
55 // procs_running
56 if want, have := uint64(2), s.ProcessesRunning; want != have {
57 t.Errorf("want processes running (procs_running) %d, have %d", want, have)
58 }
59
60 // procs_blocked
61 if want, have := uint64(1), s.ProcessesBlocked; want != have {
62 t.Errorf("want processes blocked (procs_blocked) %d, have %d", want, have)
63 }
64
65 // softirq
66 if want, have := uint64(5057579), s.SoftIRQTotal; want != have {
67 t.Errorf("want softirq total %d, have %d", want, have)
68 }
69
70 if want, have := uint64(508444), s.SoftIRQ.Rcu; want != have {
71 t.Errorf("want softirq RCU %d, have %d", want, have)
72 }
73
74}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/.gitignore b/vendor/github.com/prometheus/procfs/sysfs/.gitignore
deleted file mode 100644
index 67fc140..0000000
--- a/vendor/github.com/prometheus/procfs/sysfs/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
1fixtures/
diff --git a/vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar b/vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar
index 9731b50..c0ac683 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar
+++ b/vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar
@@ -389,6 +389,148 @@ Lines: 1
3890 3890
390Mode: 644 390Mode: 644
391# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 391# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
392Directory: fixtures/devices/system
393Mode: 775
394# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
395Directory: fixtures/devices/system/cpu
396Mode: 775
397# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
398Directory: fixtures/devices/system/cpu/cpu0
399Mode: 775
400# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
401Path: fixtures/devices/system/cpu/cpu0/cpufreq
402SymlinkTo: ../cpufreq/policy0
403# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
404Directory: fixtures/devices/system/cpu/cpu1
405Mode: 775
406# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
407Directory: fixtures/devices/system/cpu/cpu1/cpufreq
408Mode: 775
409# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
410Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq
411Lines: 1
4121200195
413Mode: 400
414# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
415Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
416Lines: 1
4173300000
418Mode: 664
419# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
420Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
421Lines: 1
4221200000
423Mode: 664
424# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
425Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_transition_latency
426Lines: 1
4274294967295
428Mode: 664
429# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
430Path: fixtures/devices/system/cpu/cpu1/cpufreq/related_cpus
431Lines: 1
4321
433Mode: 664
434# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
435Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_available_governors
436Lines: 1
437performance powersave
438Mode: 664
439# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
440Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_driver
441Lines: 1
442intel_pstate
443Mode: 664
444# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
445Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_governor
446Lines: 1
447powersave
448Mode: 664
449# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
450Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
451Lines: 1
4523300000
453Mode: 664
454# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
455Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
456Lines: 1
4571200000
458Mode: 664
459# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
460Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_setspeed
461Lines: 1
462<unsupported>
463Mode: 664
464# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
465Directory: fixtures/devices/system/cpu/cpufreq
466Mode: 775
467# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
468Directory: fixtures/devices/system/cpu/cpufreq/policy0
469Mode: 775
470# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
471Path: fixtures/devices/system/cpu/cpufreq/policy0/affected_cpus
472Lines: 1
4730
474Mode: 444
475# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
476Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq
477Lines: 1
4782400000
479Mode: 444
480# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
481Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq
482Lines: 1
483800000
484Mode: 444
485# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
486Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_transition_latency
487Lines: 1
4880
489Mode: 444
490# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
491Path: fixtures/devices/system/cpu/cpufreq/policy0/related_cpus
492Lines: 1
4930
494Mode: 444
495# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
496Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_available_governors
497Lines: 1
498performance powersave
499Mode: 444
500# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
501Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_cur_freq
502Lines: 1
5031219917
504Mode: 444
505# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
506Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_driver
507Lines: 1
508intel_pstate
509Mode: 444
510# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
511Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_governor
512Lines: 1
513powersave
514Mode: 644
515# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
516Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_max_freq
517Lines: 1
5182400000
519Mode: 644
520# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
521Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_min_freq
522Lines: 1
523800000
524Mode: 644
525# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
526Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_setspeed
527Lines: 1
528<unsupported>
529Mode: 644
530# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
531Directory: fixtures/devices/system/cpu/cpufreq/policy1
532Mode: 755
533# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
392Directory: fixtures/fs 534Directory: fixtures/fs
393Mode: 755 535Mode: 755
394# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 536# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/vendor/github.com/prometheus/procfs/sysfs/fs_test.go b/vendor/github.com/prometheus/procfs/sysfs/fs_test.go
deleted file mode 100644
index 2b7402e..0000000
--- a/vendor/github.com/prometheus/procfs/sysfs/fs_test.go
+++ /dev/null
@@ -1,108 +0,0 @@
1// Copyright 2017 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package sysfs
15
16import "testing"
17
18func TestNewFS(t *testing.T) {
19 if _, err := NewFS("foobar"); err == nil {
20 t.Error("want NewFS to fail for non-existing mount point")
21 }
22
23 if _, err := NewFS("doc.go"); err == nil {
24 t.Error("want NewFS to fail if mount point is not a directory")
25 }
26}
27
28func TestFSXFSStats(t *testing.T) {
29 stats, err := FS("fixtures").XFSStats()
30 if err != nil {
31 t.Fatalf("failed to parse XFS stats: %v", err)
32 }
33
34 tests := []struct {
35 name string
36 allocated uint32
37 }{
38 {
39 name: "sda1",
40 allocated: 1,
41 },
42 {
43 name: "sdb1",
44 allocated: 2,
45 },
46 }
47
48 const expect = 2
49
50 if l := len(stats); l != expect {
51 t.Fatalf("unexpected number of XFS stats: %d", l)
52 }
53 if l := len(tests); l != expect {
54 t.Fatalf("unexpected number of tests: %d", l)
55 }
56
57 for i, tt := range tests {
58 if want, got := tt.name, stats[i].Name; want != got {
59 t.Errorf("unexpected stats name:\nwant: %q\nhave: %q", want, got)
60 }
61
62 if want, got := tt.allocated, stats[i].ExtentAllocation.ExtentsAllocated; want != got {
63 t.Errorf("unexpected extents allocated:\nwant: %d\nhave: %d", want, got)
64 }
65 }
66}
67
68func TestFSBcacheStats(t *testing.T) {
69 stats, err := FS("fixtures").BcacheStats()
70 if err != nil {
71 t.Fatalf("failed to parse bcache stats: %v", err)
72 }
73
74 tests := []struct {
75 name string
76 bdevs int
77 caches int
78 }{
79 {
80 name: "deaddd54-c735-46d5-868e-f331c5fd7c74",
81 bdevs: 1,
82 caches: 1,
83 },
84 }
85
86 const expect = 1
87
88 if l := len(stats); l != expect {
89 t.Fatalf("unexpected number of bcache stats: %d", l)
90 }
91 if l := len(tests); l != expect {
92 t.Fatalf("unexpected number of tests: %d", l)
93 }
94
95 for i, tt := range tests {
96 if want, got := tt.name, stats[i].Name; want != got {
97 t.Errorf("unexpected stats name:\nwant: %q\nhave: %q", want, got)
98 }
99
100 if want, got := tt.bdevs, len(stats[i].Bdevs); want != got {
101 t.Errorf("unexpected value allocated:\nwant: %d\nhave: %d", want, got)
102 }
103
104 if want, got := tt.caches, len(stats[i].Caches); want != got {
105 t.Errorf("unexpected value allocated:\nwant: %d\nhave: %d", want, got)
106 }
107 }
108}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/net_class.go b/vendor/github.com/prometheus/procfs/sysfs/net_class.go
index 562ce15..1de9622 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/net_class.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/net_class.go
@@ -11,6 +11,8 @@
11// See the License for the specific language governing permissions and 11// See the License for the specific language governing permissions and
12// limitations under the License. 12// limitations under the License.
13 13
14// +build !windows
15
14package sysfs 16package sysfs
15 17
16import ( 18import (
@@ -20,7 +22,8 @@ import (
20 "reflect" 22 "reflect"
21 "strconv" 23 "strconv"
22 "strings" 24 "strings"
23 "syscall" 25
26 "github.com/prometheus/procfs/internal/util"
24) 27)
25 28
26// NetClassIface contains info from files in /sys/class/net/<iface> 29// NetClassIface contains info from files in /sys/class/net/<iface>
@@ -109,7 +112,7 @@ func (nc NetClass) parseNetClassIface(devicePath string) (*NetClassIface, error)
109 panic(fmt.Errorf("field %s does not have a filename tag", fieldType.Name)) 112 panic(fmt.Errorf("field %s does not have a filename tag", fieldType.Name))
110 } 113 }
111 114
112 fileContents, err := sysReadFile(devicePath + "/" + fieldType.Tag.Get("fileName")) 115 value, err := util.SysReadFile(devicePath + "/" + fieldType.Tag.Get("fileName"))
113 116
114 if err != nil { 117 if err != nil {
115 if os.IsNotExist(err) || err.Error() == "operation not supported" || err.Error() == "invalid argument" { 118 if os.IsNotExist(err) || err.Error() == "operation not supported" || err.Error() == "invalid argument" {
@@ -117,7 +120,6 @@ func (nc NetClass) parseNetClassIface(devicePath string) (*NetClassIface, error)
117 } 120 }
118 return nil, fmt.Errorf("could not access file %s: %s", fieldType.Tag.Get("fileName"), err) 121 return nil, fmt.Errorf("could not access file %s: %s", fieldType.Tag.Get("fileName"), err)
119 } 122 }
120 value := strings.TrimSpace(string(fileContents))
121 123
122 switch fieldValue.Kind() { 124 switch fieldValue.Kind() {
123 case reflect.String: 125 case reflect.String:
@@ -149,26 +151,3 @@ func (nc NetClass) parseNetClassIface(devicePath string) (*NetClassIface, error)
149 151
150 return &interfaceClass, nil 152 return &interfaceClass, nil
151} 153}
152
153// sysReadFile is a simplified ioutil.ReadFile that invokes syscall.Read directly.
154// https://github.com/prometheus/node_exporter/pull/728/files
155func sysReadFile(file string) ([]byte, error) {
156 f, err := os.Open(file)
157 if err != nil {
158 return nil, err
159 }
160 defer f.Close()
161
162 // On some machines, hwmon drivers are broken and return EAGAIN. This causes
163 // Go's ioutil.ReadFile implementation to poll forever.
164 //
165 // Since we either want to read data or bail immediately, do the simplest
166 // possible read using syscall directly.
167 b := make([]byte, 128)
168 n, err := syscall.Read(int(f.Fd()), b)
169 if err != nil {
170 return nil, err
171 }
172
173 return b[:n], nil
174}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/net_class_test.go b/vendor/github.com/prometheus/procfs/sysfs/net_class_test.go
deleted file mode 100644
index e6d05f0..0000000
--- a/vendor/github.com/prometheus/procfs/sysfs/net_class_test.go
+++ /dev/null
@@ -1,88 +0,0 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package sysfs
15
16import (
17 "reflect"
18 "testing"
19)
20
21func TestNewNetClass(t *testing.T) {
22 fs, err := NewFS("fixtures")
23 if err != nil {
24 t.Fatal(err)
25 }
26
27 nc, err := fs.NewNetClass()
28 if err != nil {
29 t.Fatal(err)
30 }
31
32 var (
33 addrAssignType int64 = 3
34 addrLen int64 = 6
35 carrier int64 = 1
36 carrierChanges int64 = 2
37 carrierDownCount int64 = 1
38 carrierUpCount int64 = 1
39 devID int64 = 32
40 dormant int64 = 1
41 flags int64 = 4867
42 ifIndex int64 = 2
43 ifLink int64 = 2
44 linkMode int64 = 1
45 mtu int64 = 1500
46 nameAssignType int64 = 2
47 netDevGroup int64 = 0
48 speed int64 = 1000
49 txQueueLen int64 = 1000
50 netType int64 = 1
51 )
52
53 netClass := NetClass{
54 "eth0": {
55 Address: "01:01:01:01:01:01",
56 AddrAssignType: &addrAssignType,
57 AddrLen: &addrLen,
58 Broadcast: "ff:ff:ff:ff:ff:ff",
59 Carrier: &carrier,
60 CarrierChanges: &carrierChanges,
61 CarrierDownCount: &carrierDownCount,
62 CarrierUpCount: &carrierUpCount,
63 DevID: &devID,
64 Dormant: &dormant,
65 Duplex: "full",
66 Flags: &flags,
67 IfAlias: "",
68 IfIndex: &ifIndex,
69 IfLink: &ifLink,
70 LinkMode: &linkMode,
71 MTU: &mtu,
72 Name: "eth0",
73 NameAssignType: &nameAssignType,
74 NetDevGroup: &netDevGroup,
75 OperState: "up",
76 PhysPortID: "",
77 PhysPortName: "",
78 PhysSwitchID: "",
79 Speed: &speed,
80 TxQueueLen: &txQueueLen,
81 Type: &netType,
82 },
83 }
84
85 if !reflect.DeepEqual(netClass, nc) {
86 t.Errorf("Result not correct: want %v, have %v", netClass, nc)
87 }
88}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go b/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go
new file mode 100644
index 0000000..c90f569
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go
@@ -0,0 +1,141 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14// +build !windows
15
16package sysfs
17
18import (
19 "fmt"
20 "os"
21 "path/filepath"
22 "strings"
23
24 "github.com/prometheus/procfs/internal/util"
25)
26
27// SystemCPUCpufreqStats contains stats from devices/system/cpu/cpu[0-9]*/cpufreq/...
28type SystemCPUCpufreqStats struct {
29 Name string
30 CurrentFrequency uint64
31 MinimumFrequency uint64
32 MaximumFrequency uint64
33 TransitionLatency uint64
34 AvailableGovernors string
35 Driver string
36 Govenor string
37 RelatedCpus string
38 SetSpeed string
39}
40
41// TODO: Add topology support.
42
43// TODO: Add thermal_throttle support.
44
45// NewSystemCpufreq returns CPU frequency metrics for all CPUs.
46func NewSystemCpufreq() ([]SystemCPUCpufreqStats, error) {
47 fs, err := NewFS(DefaultMountPoint)
48 if err != nil {
49 return []SystemCPUCpufreqStats{}, err
50 }
51
52 return fs.NewSystemCpufreq()
53}
54
55// NewSystemCpufreq returns CPU frequency metrics for all CPUs.
56func (fs FS) NewSystemCpufreq() ([]SystemCPUCpufreqStats, error) {
57 var cpufreq = &SystemCPUCpufreqStats{}
58
59 cpus, err := filepath.Glob(fs.Path("devices/system/cpu/cpu[0-9]*"))
60 if err != nil {
61 return []SystemCPUCpufreqStats{}, err
62 }
63
64 systemCpufreq := []SystemCPUCpufreqStats{}
65 for _, cpu := range cpus {
66 cpuName := filepath.Base(cpu)
67 cpuNum := strings.TrimPrefix(cpuName, "cpu")
68
69 cpuCpufreqPath := filepath.Join(cpu, "cpufreq")
70 if _, err := os.Stat(cpuCpufreqPath); os.IsNotExist(err) {
71 continue
72 }
73 if err != nil {
74 return []SystemCPUCpufreqStats{}, err
75 }
76
77 if _, err = os.Stat(filepath.Join(cpuCpufreqPath, "scaling_cur_freq")); err == nil {
78 cpufreq, err = parseCpufreqCpuinfo("scaling", cpuCpufreqPath)
79 } else if _, err = os.Stat(filepath.Join(cpuCpufreqPath, "cpuinfo_cur_freq")); err == nil {
80 // Older kernels have metrics named `cpuinfo_...`.
81 cpufreq, err = parseCpufreqCpuinfo("cpuinfo", cpuCpufreqPath)
82 } else {
83 return []SystemCPUCpufreqStats{}, fmt.Errorf("CPU %v is missing cpufreq", cpu)
84 }
85 if err != nil {
86 return []SystemCPUCpufreqStats{}, err
87 }
88 cpufreq.Name = cpuNum
89 systemCpufreq = append(systemCpufreq, *cpufreq)
90 }
91
92 return systemCpufreq, nil
93}
94
95func parseCpufreqCpuinfo(prefix string, cpuPath string) (*SystemCPUCpufreqStats, error) {
96 uintFiles := []string{
97 prefix + "_cur_freq",
98 prefix + "_max_freq",
99 prefix + "_min_freq",
100 "cpuinfo_transition_latency",
101 }
102 uintOut := make([]uint64, len(uintFiles))
103
104 for i, f := range uintFiles {
105 v, err := util.ReadUintFromFile(filepath.Join(cpuPath, f))
106 if err != nil {
107 return &SystemCPUCpufreqStats{}, err
108 }
109
110 uintOut[i] = v
111 }
112
113 stringFiles := []string{
114 "scaling_available_governors",
115 "scaling_driver",
116 "scaling_governor",
117 "related_cpus",
118 "scaling_setspeed",
119 }
120 stringOut := make([]string, len(stringFiles))
121 var err error
122
123 for i, f := range stringFiles {
124 stringOut[i], err = util.SysReadFile(filepath.Join(cpuPath, f))
125 if err != nil {
126 return &SystemCPUCpufreqStats{}, err
127 }
128 }
129
130 return &SystemCPUCpufreqStats{
131 CurrentFrequency: uintOut[0],
132 MaximumFrequency: uintOut[1],
133 MinimumFrequency: uintOut[2],
134 TransitionLatency: uintOut[3],
135 AvailableGovernors: stringOut[0],
136 Driver: stringOut[1],
137 Govenor: stringOut[2],
138 RelatedCpus: stringOut[3],
139 SetSpeed: stringOut[4],
140 }, nil
141}
diff --git a/vendor/github.com/prometheus/procfs/xfrm_test.go b/vendor/github.com/prometheus/procfs/xfrm_test.go
deleted file mode 100644
index 5918c39..0000000
--- a/vendor/github.com/prometheus/procfs/xfrm_test.go
+++ /dev/null
@@ -1,66 +0,0 @@
1// Copyright 2017 Prometheus Team
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "testing"
18)
19
20func TestXfrmStats(t *testing.T) {
21 xfrmStats, err := FS("fixtures").NewXfrmStat()
22 if err != nil {
23 t.Fatal(err)
24 }
25
26 for _, test := range []struct {
27 name string
28 want int
29 got int
30 }{
31 {name: "XfrmInError", want: 1, got: xfrmStats.XfrmInError},
32 {name: "XfrmInBufferError", want: 2, got: xfrmStats.XfrmInBufferError},
33 {name: "XfrmInHdrError", want: 4, got: xfrmStats.XfrmInHdrError},
34 {name: "XfrmInNoStates", want: 3, got: xfrmStats.XfrmInNoStates},
35 {name: "XfrmInStateProtoError", want: 40, got: xfrmStats.XfrmInStateProtoError},
36 {name: "XfrmInStateModeError", want: 100, got: xfrmStats.XfrmInStateModeError},
37 {name: "XfrmInStateSeqError", want: 6000, got: xfrmStats.XfrmInStateSeqError},
38 {name: "XfrmInStateExpired", want: 4, got: xfrmStats.XfrmInStateExpired},
39 {name: "XfrmInStateMismatch", want: 23451, got: xfrmStats.XfrmInStateMismatch},
40 {name: "XfrmInStateInvalid", want: 55555, got: xfrmStats.XfrmInStateInvalid},
41 {name: "XfrmInTmplMismatch", want: 51, got: xfrmStats.XfrmInTmplMismatch},
42 {name: "XfrmInNoPols", want: 65432, got: xfrmStats.XfrmInNoPols},
43 {name: "XfrmInPolBlock", want: 100, got: xfrmStats.XfrmInPolBlock},
44 {name: "XfrmInPolError", want: 10000, got: xfrmStats.XfrmInPolError},
45 {name: "XfrmOutError", want: 1000000, got: xfrmStats.XfrmOutError},
46 {name: "XfrmOutBundleGenError", want: 43321, got: xfrmStats.XfrmOutBundleGenError},
47 {name: "XfrmOutBundleCheckError", want: 555, got: xfrmStats.XfrmOutBundleCheckError},
48 {name: "XfrmOutNoStates", want: 869, got: xfrmStats.XfrmOutNoStates},
49 {name: "XfrmOutStateProtoError", want: 4542, got: xfrmStats.XfrmOutStateProtoError},
50 {name: "XfrmOutStateModeError", want: 4, got: xfrmStats.XfrmOutStateModeError},
51 {name: "XfrmOutStateSeqError", want: 543, got: xfrmStats.XfrmOutStateSeqError},
52 {name: "XfrmOutStateExpired", want: 565, got: xfrmStats.XfrmOutStateExpired},
53 {name: "XfrmOutPolBlock", want: 43456, got: xfrmStats.XfrmOutPolBlock},
54 {name: "XfrmOutPolDead", want: 7656, got: xfrmStats.XfrmOutPolDead},
55 {name: "XfrmOutPolError", want: 1454, got: xfrmStats.XfrmOutPolError},
56 {name: "XfrmFwdHdrError", want: 6654, got: xfrmStats.XfrmFwdHdrError},
57 {name: "XfrmOutStateInvaliad", want: 28765, got: xfrmStats.XfrmOutStateInvalid},
58 {name: "XfrmAcquireError", want: 24532, got: xfrmStats.XfrmAcquireError},
59 {name: "XfrmInStateInvalid", want: 55555, got: xfrmStats.XfrmInStateInvalid},
60 {name: "XfrmOutError", want: 1000000, got: xfrmStats.XfrmOutError},
61 } {
62 if test.want != test.got {
63 t.Errorf("Want %s %d, have %d", test.name, test.want, test.got)
64 }
65 }
66}
diff --git a/vendor/github.com/prometheus/procfs/xfs/parse_test.go b/vendor/github.com/prometheus/procfs/xfs/parse_test.go
deleted file mode 100644
index 2e946c2..0000000
--- a/vendor/github.com/prometheus/procfs/xfs/parse_test.go
+++ /dev/null
@@ -1,442 +0,0 @@
1// Copyright 2017 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package xfs_test
15
16import (
17 "reflect"
18 "strings"
19 "testing"
20
21 "github.com/prometheus/procfs"
22 "github.com/prometheus/procfs/xfs"
23)
24
25func TestParseStats(t *testing.T) {
26 tests := []struct {
27 name string
28 s string
29 fs bool
30 stats *xfs.Stats
31 invalid bool
32 }{
33 {
34 name: "empty file OK",
35 },
36 {
37 name: "short or empty lines and unknown labels ignored",
38 s: "one\n\ntwo 1 2 3\n",
39 stats: &xfs.Stats{},
40 },
41 {
42 name: "bad uint32",
43 s: "extent_alloc XXX",
44 invalid: true,
45 },
46 {
47 name: "bad uint64",
48 s: "xpc XXX",
49 invalid: true,
50 },
51 {
52 name: "extent_alloc bad",
53 s: "extent_alloc 1",
54 invalid: true,
55 },
56 {
57 name: "extent_alloc OK",
58 s: "extent_alloc 1 2 3 4",
59 stats: &xfs.Stats{
60 ExtentAllocation: xfs.ExtentAllocationStats{
61 ExtentsAllocated: 1,
62 BlocksAllocated: 2,
63 ExtentsFreed: 3,
64 BlocksFreed: 4,
65 },
66 },
67 },
68 {
69 name: "abt bad",
70 s: "abt 1",
71 invalid: true,
72 },
73 {
74 name: "abt OK",
75 s: "abt 1 2 3 4",
76 stats: &xfs.Stats{
77 AllocationBTree: xfs.BTreeStats{
78 Lookups: 1,
79 Compares: 2,
80 RecordsInserted: 3,
81 RecordsDeleted: 4,
82 },
83 },
84 },
85 {
86 name: "blk_map bad",
87 s: "blk_map 1",
88 invalid: true,
89 },
90 {
91 name: "blk_map OK",
92 s: "blk_map 1 2 3 4 5 6 7",
93 stats: &xfs.Stats{
94 BlockMapping: xfs.BlockMappingStats{
95 Reads: 1,
96 Writes: 2,
97 Unmaps: 3,
98 ExtentListInsertions: 4,
99 ExtentListDeletions: 5,
100 ExtentListLookups: 6,
101 ExtentListCompares: 7,
102 },
103 },
104 },
105 {
106 name: "bmbt bad",
107 s: "bmbt 1",
108 invalid: true,
109 },
110 {
111 name: "bmbt OK",
112 s: "bmbt 1 2 3 4",
113 stats: &xfs.Stats{
114 BlockMapBTree: xfs.BTreeStats{
115 Lookups: 1,
116 Compares: 2,
117 RecordsInserted: 3,
118 RecordsDeleted: 4,
119 },
120 },
121 },
122 {
123 name: "dir bad",
124 s: "dir 1",
125 invalid: true,
126 },
127 {
128 name: "dir OK",
129 s: "dir 1 2 3 4",
130 stats: &xfs.Stats{
131 DirectoryOperation: xfs.DirectoryOperationStats{
132 Lookups: 1,
133 Creates: 2,
134 Removes: 3,
135 Getdents: 4,
136 },
137 },
138 },
139 {
140 name: "trans bad",
141 s: "trans 1",
142 invalid: true,
143 },
144 {
145 name: "trans OK",
146 s: "trans 1 2 3",
147 stats: &xfs.Stats{
148 Transaction: xfs.TransactionStats{
149 Sync: 1,
150 Async: 2,
151 Empty: 3,
152 },
153 },
154 },
155 {
156 name: "ig bad",
157 s: "ig 1",
158 invalid: true,
159 },
160 {
161 name: "ig OK",
162 s: "ig 1 2 3 4 5 6 7",
163 stats: &xfs.Stats{
164 InodeOperation: xfs.InodeOperationStats{
165 Attempts: 1,
166 Found: 2,
167 Recycle: 3,
168 Missed: 4,
169 Duplicate: 5,
170 Reclaims: 6,
171 AttributeChange: 7,
172 },
173 },
174 },
175 {
176 name: "log bad",
177 s: "log 1",
178 invalid: true,
179 },
180 {
181 name: "log OK",
182 s: "log 1 2 3 4 5",
183 stats: &xfs.Stats{
184 LogOperation: xfs.LogOperationStats{
185 Writes: 1,
186 Blocks: 2,
187 NoInternalBuffers: 3,
188 Force: 4,
189 ForceSleep: 5,
190 },
191 },
192 },
193 {
194 name: "rw bad",
195 s: "rw 1",
196 invalid: true,
197 },
198 {
199 name: "rw OK",
200 s: "rw 1 2",
201 stats: &xfs.Stats{
202 ReadWrite: xfs.ReadWriteStats{
203 Read: 1,
204 Write: 2,
205 },
206 },
207 },
208 {
209 name: "attr bad",
210 s: "attr 1",
211 invalid: true,
212 },
213 {
214 name: "attr OK",
215 s: "attr 1 2 3 4",
216 stats: &xfs.Stats{
217 AttributeOperation: xfs.AttributeOperationStats{
218 Get: 1,
219 Set: 2,
220 Remove: 3,
221 List: 4,
222 },
223 },
224 },
225 {
226 name: "icluster bad",
227 s: "icluster 1",
228 invalid: true,
229 },
230 {
231 name: "icluster OK",
232 s: "icluster 1 2 3",
233 stats: &xfs.Stats{
234 InodeClustering: xfs.InodeClusteringStats{
235 Iflush: 1,
236 Flush: 2,
237 FlushInode: 3,
238 },
239 },
240 },
241 {
242 name: "vnodes bad",
243 s: "vnodes 1",
244 invalid: true,
245 },
246 {
247 name: "vnodes (missing free) OK",
248 s: "vnodes 1 2 3 4 5 6 7",
249 stats: &xfs.Stats{
250 Vnode: xfs.VnodeStats{
251 Active: 1,
252 Allocate: 2,
253 Get: 3,
254 Hold: 4,
255 Release: 5,
256 Reclaim: 6,
257 Remove: 7,
258 },
259 },
260 },
261 {
262 name: "vnodes (with free) OK",
263 s: "vnodes 1 2 3 4 5 6 7 8",
264 stats: &xfs.Stats{
265 Vnode: xfs.VnodeStats{
266 Active: 1,
267 Allocate: 2,
268 Get: 3,
269 Hold: 4,
270 Release: 5,
271 Reclaim: 6,
272 Remove: 7,
273 Free: 8,
274 },
275 },
276 },
277 {
278 name: "buf bad",
279 s: "buf 1",
280 invalid: true,
281 },
282 {
283 name: "buf OK",
284 s: "buf 1 2 3 4 5 6 7 8 9",
285 stats: &xfs.Stats{
286 Buffer: xfs.BufferStats{
287 Get: 1,
288 Create: 2,
289 GetLocked: 3,
290 GetLockedWaited: 4,
291 BusyLocked: 5,
292 MissLocked: 6,
293 PageRetries: 7,
294 PageFound: 8,
295 GetRead: 9,
296 },
297 },
298 },
299 {
300 name: "xpc bad",
301 s: "xpc 1",
302 invalid: true,
303 },
304 {
305 name: "xpc OK",
306 s: "xpc 1 2 3",
307 stats: &xfs.Stats{
308 ExtendedPrecision: xfs.ExtendedPrecisionStats{
309 FlushBytes: 1,
310 WriteBytes: 2,
311 ReadBytes: 3,
312 },
313 },
314 },
315 {
316 name: "fixtures OK",
317 fs: true,
318 stats: &xfs.Stats{
319 ExtentAllocation: xfs.ExtentAllocationStats{
320 ExtentsAllocated: 92447,
321 BlocksAllocated: 97589,
322 ExtentsFreed: 92448,
323 BlocksFreed: 93751,
324 },
325 AllocationBTree: xfs.BTreeStats{
326 Lookups: 0,
327 Compares: 0,
328 RecordsInserted: 0,
329 RecordsDeleted: 0,
330 },
331 BlockMapping: xfs.BlockMappingStats{
332 Reads: 1767055,
333 Writes: 188820,
334 Unmaps: 184891,
335 ExtentListInsertions: 92447,
336 ExtentListDeletions: 92448,
337 ExtentListLookups: 2140766,
338 ExtentListCompares: 0,
339 },
340 BlockMapBTree: xfs.BTreeStats{
341 Lookups: 0,
342 Compares: 0,
343 RecordsInserted: 0,
344 RecordsDeleted: 0,
345 },
346 DirectoryOperation: xfs.DirectoryOperationStats{
347 Lookups: 185039,
348 Creates: 92447,
349 Removes: 92444,
350 Getdents: 136422,
351 },
352 Transaction: xfs.TransactionStats{
353 Sync: 706,
354 Async: 944304,
355 Empty: 0,
356 },
357 InodeOperation: xfs.InodeOperationStats{
358 Attempts: 185045,
359 Found: 58807,
360 Recycle: 0,
361 Missed: 126238,
362 Duplicate: 0,
363 Reclaims: 33637,
364 AttributeChange: 22,
365 },
366 LogOperation: xfs.LogOperationStats{
367 Writes: 2883,
368 Blocks: 113448,
369 NoInternalBuffers: 9,
370 Force: 17360,
371 ForceSleep: 739,
372 },
373 ReadWrite: xfs.ReadWriteStats{
374 Read: 107739,
375 Write: 94045,
376 },
377 AttributeOperation: xfs.AttributeOperationStats{
378 Get: 4,
379 Set: 0,
380 Remove: 0,
381 List: 0,
382 },
383 InodeClustering: xfs.InodeClusteringStats{
384 Iflush: 8677,
385 Flush: 7849,
386 FlushInode: 135802,
387 },
388 Vnode: xfs.VnodeStats{
389 Active: 92601,
390 Allocate: 0,
391 Get: 0,
392 Hold: 0,
393 Release: 92444,
394 Reclaim: 92444,
395 Remove: 92444,
396 Free: 0,
397 },
398 Buffer: xfs.BufferStats{
399 Get: 2666287,
400 Create: 7122,
401 GetLocked: 2659202,
402 GetLockedWaited: 3599,
403 BusyLocked: 2,
404 MissLocked: 7085,
405 PageRetries: 0,
406 PageFound: 10297,
407 GetRead: 7085,
408 },
409 ExtendedPrecision: xfs.ExtendedPrecisionStats{
410 FlushBytes: 399724544,
411 WriteBytes: 92823103,
412 ReadBytes: 86219234,
413 },
414 },
415 },
416 }
417
418 for _, tt := range tests {
419 var (
420 stats *xfs.Stats
421 err error
422 )
423
424 if tt.s != "" {
425 stats, err = xfs.ParseStats(strings.NewReader(tt.s))
426 }
427 if tt.fs {
428 stats, err = procfs.FS("../fixtures").XFSStats()
429 }
430
431 if tt.invalid && err == nil {
432 t.Error("expected an error, but none occurred")
433 }
434 if !tt.invalid && err != nil {
435 t.Errorf("unexpected error: %v", err)
436 }
437
438 if want, have := tt.stats, stats; !reflect.DeepEqual(want, have) {
439 t.Errorf("unexpected XFS stats:\nwant:\n%v\nhave:\n%v", want, have)
440 }
441 }
442}
diff --git a/vendor/github.com/sirupsen/logrus/CHANGELOG.md b/vendor/github.com/sirupsen/logrus/CHANGELOG.md
index cc58f64..ff04718 100644
--- a/vendor/github.com/sirupsen/logrus/CHANGELOG.md
+++ b/vendor/github.com/sirupsen/logrus/CHANGELOG.md
@@ -1,3 +1,43 @@
1# 1.1.1
2This is a bug fix release.
3 * fix the build break on Solaris
4 * don't drop a whole trace in JSONFormatter when a field param is a function pointer which can not be serialized
5
6# 1.1.0
7This new release introduces:
8 * several fixes:
9 * a fix for a race condition on entry formatting
10 * proper cleanup of previously used entries before putting them back in the pool
11 * the extra new line at the end of message in text formatter has been removed
12 * a new global public API to check if a level is activated: IsLevelEnabled
13 * the following methods have been added to the Logger object
14 * IsLevelEnabled
15 * SetFormatter
16 * SetOutput
17 * ReplaceHooks
18 * introduction of go module
19 * an indent configuration for the json formatter
20 * output colour support for windows
21 * the field sort function is now configurable for text formatter
22 * the CLICOLOR and CLICOLOR\_FORCE environment variable support in text formater
23
24# 1.0.6
25
26This new release introduces:
27 * a new api WithTime which allows to easily force the time of the log entry
28 which is mostly useful for logger wrapper
29 * a fix reverting the immutability of the entry given as parameter to the hooks
30 a new configuration field of the json formatter in order to put all the fields
31 in a nested dictionnary
32 * a new SetOutput method in the Logger
33 * a new configuration of the textformatter to configure the name of the default keys
34 * a new configuration of the text formatter to disable the level truncation
35
36# 1.0.5
37
38* Fix hooks race (#707)
39* Fix panic deadlock (#695)
40
1# 1.0.4 41# 1.0.4
2 42
3* Fix race when adding hooks (#612) 43* Fix race when adding hooks (#612)
diff --git a/vendor/github.com/sirupsen/logrus/README.md b/vendor/github.com/sirupsen/logrus/README.md
index 08584b5..072e99b 100644
--- a/vendor/github.com/sirupsen/logrus/README.md
+++ b/vendor/github.com/sirupsen/logrus/README.md
@@ -220,7 +220,7 @@ Logrus comes with [built-in hooks](hooks/). Add those, or your custom hook, in
220```go 220```go
221import ( 221import (
222 log "github.com/sirupsen/logrus" 222 log "github.com/sirupsen/logrus"
223 "gopkg.in/gemnasium/logrus-airbrake-hook.v2" // the package is named "aibrake" 223 "gopkg.in/gemnasium/logrus-airbrake-hook.v2" // the package is named "airbrake"
224 logrus_syslog "github.com/sirupsen/logrus/hooks/syslog" 224 logrus_syslog "github.com/sirupsen/logrus/hooks/syslog"
225 "log/syslog" 225 "log/syslog"
226) 226)
@@ -241,58 +241,8 @@ func init() {
241``` 241```
242Note: Syslog hook also support connecting to local syslog (Ex. "/dev/log" or "/var/run/syslog" or "/var/run/log"). For the detail, please check the [syslog hook README](hooks/syslog/README.md). 242Note: Syslog hook also support connecting to local syslog (Ex. "/dev/log" or "/var/run/syslog" or "/var/run/log"). For the detail, please check the [syslog hook README](hooks/syslog/README.md).
243 243
244| Hook | Description | 244A list of currently known of service hook can be found in this wiki [page](https://github.com/sirupsen/logrus/wiki/Hooks)
245| ----- | ----------- | 245
246| [Airbrake "legacy"](https://github.com/gemnasium/logrus-airbrake-legacy-hook) | Send errors to an exception tracking service compatible with the Airbrake API V2. Uses [`airbrake-go`](https://github.com/tobi/airbrake-go) behind the scenes. |
247| [Airbrake](https://github.com/gemnasium/logrus-airbrake-hook) | Send errors to the Airbrake API V3. Uses the official [`gobrake`](https://github.com/airbrake/gobrake) behind the scenes. |
248| [Amazon Kinesis](https://github.com/evalphobia/logrus_kinesis) | Hook for logging to [Amazon Kinesis](https://aws.amazon.com/kinesis/) |
249| [Amqp-Hook](https://github.com/vladoatanasov/logrus_amqp) | Hook for logging to Amqp broker (Like RabbitMQ) |
250| [AzureTableHook](https://github.com/kpfaulkner/azuretablehook/) | Hook for logging to Azure Table Storage|
251| [Bugsnag](https://github.com/Shopify/logrus-bugsnag/blob/master/bugsnag.go) | Send errors to the Bugsnag exception tracking service. |
252| [DeferPanic](https://github.com/deferpanic/dp-logrus) | Hook for logging to DeferPanic |
253| [Discordrus](https://github.com/kz/discordrus) | Hook for logging to [Discord](https://discordapp.com/) |
254| [ElasticSearch](https://github.com/sohlich/elogrus) | Hook for logging to ElasticSearch|
255| [Firehose](https://github.com/beaubrewer/logrus_firehose) | Hook for logging to [Amazon Firehose](https://aws.amazon.com/kinesis/firehose/)
256| [Fluentd](https://github.com/evalphobia/logrus_fluent) | Hook for logging to fluentd |
257| [Go-Slack](https://github.com/multiplay/go-slack) | Hook for logging to [Slack](https://slack.com) |
258| [Graylog](https://github.com/gemnasium/logrus-graylog-hook) | Hook for logging to [Graylog](http://graylog2.org/) |
259| [Hiprus](https://github.com/nubo/hiprus) | Send errors to a channel in hipchat. |
260| [Honeybadger](https://github.com/agonzalezro/logrus_honeybadger) | Hook for sending exceptions to Honeybadger |
261| [InfluxDB](https://github.com/Abramovic/logrus_influxdb) | Hook for logging to influxdb |
262| [Influxus](http://github.com/vlad-doru/influxus) | Hook for concurrently logging to [InfluxDB](http://influxdata.com/) |
263| [Journalhook](https://github.com/wercker/journalhook) | Hook for logging to `systemd-journald` |
264| [KafkaLogrus](https://github.com/tracer0tong/kafkalogrus) | Hook for logging to Kafka |
265| [LFShook](https://github.com/rifflock/lfshook) | Hook for logging to the local filesystem |
266| [Logbeat](https://github.com/macandmia/logbeat) | Hook for logging to [Opbeat](https://opbeat.com/) |
267| [Logentries](https://github.com/jcftang/logentriesrus) | Hook for logging to [Logentries](https://logentries.com/) |
268| [Logentrus](https://github.com/puddingfactory/logentrus) | Hook for logging to [Logentries](https://logentries.com/) |
269| [Logmatic.io](https://github.com/logmatic/logmatic-go) | Hook for logging to [Logmatic.io](http://logmatic.io/) |
270| [Logrusly](https://github.com/sebest/logrusly) | Send logs to [Loggly](https://www.loggly.com/) |
271| [Logstash](https://github.com/bshuster-repo/logrus-logstash-hook) | Hook for logging to [Logstash](https://www.elastic.co/products/logstash) |
272| [Mail](https://github.com/zbindenren/logrus_mail) | Hook for sending exceptions via mail |
273| [Mattermost](https://github.com/shuLhan/mattermost-integration/tree/master/hooks/logrus) | Hook for logging to [Mattermost](https://mattermost.com/) |
274| [Mongodb](https://github.com/weekface/mgorus) | Hook for logging to mongodb |
275| [NATS-Hook](https://github.com/rybit/nats_logrus_hook) | Hook for logging to [NATS](https://nats.io) |
276| [Octokit](https://github.com/dorajistyle/logrus-octokit-hook) | Hook for logging to github via octokit |
277| [Papertrail](https://github.com/polds/logrus-papertrail-hook) | Send errors to the [Papertrail](https://papertrailapp.com) hosted logging service via UDP. |
278| [PostgreSQL](https://github.com/gemnasium/logrus-postgresql-hook) | Send logs to [PostgreSQL](http://postgresql.org) |
279| [Promrus](https://github.com/weaveworks/promrus) | Expose number of log messages as [Prometheus](https://prometheus.io/) metrics |
280| [Pushover](https://github.com/toorop/logrus_pushover) | Send error via [Pushover](https://pushover.net) |
281| [Raygun](https://github.com/squirkle/logrus-raygun-hook) | Hook for logging to [Raygun.io](http://raygun.io/) |
282| [Redis-Hook](https://github.com/rogierlommers/logrus-redis-hook) | Hook for logging to a ELK stack (through Redis) |
283| [Rollrus](https://github.com/heroku/rollrus) | Hook for sending errors to rollbar |
284| [Scribe](https://github.com/sagar8192/logrus-scribe-hook) | Hook for logging to [Scribe](https://github.com/facebookarchive/scribe)|
285| [Sentry](https://github.com/evalphobia/logrus_sentry) | Send errors to the Sentry error logging and aggregation service. |
286| [Slackrus](https://github.com/johntdyer/slackrus) | Hook for Slack chat. |
287| [Stackdriver](https://github.com/knq/sdhook) | Hook for logging to [Google Stackdriver](https://cloud.google.com/logging/) |
288| [Sumorus](https://github.com/doublefree/sumorus) | Hook for logging to [SumoLogic](https://www.sumologic.com/)|
289| [Syslog](https://github.com/sirupsen/logrus/blob/master/hooks/syslog/syslog.go) | Send errors to remote syslog server. Uses standard library `log/syslog` behind the scenes. |
290| [Syslog TLS](https://github.com/shinji62/logrus-syslog-ng) | Send errors to remote syslog server with TLS support. |
291| [Telegram](https://github.com/rossmcdonald/telegram_hook) | Hook for logging errors to [Telegram](https://telegram.org/) |
292| [TraceView](https://github.com/evalphobia/logrus_appneta) | Hook for logging to [AppNeta TraceView](https://www.appneta.com/products/traceview/) |
293| [Typetalk](https://github.com/dragon3/logrus-typetalk-hook) | Hook for logging to [Typetalk](https://www.typetalk.in/) |
294| [logz.io](https://github.com/ripcurld00d/logrus-logzio-hook) | Hook for logging to [logz.io](https://logz.io), a Log as a Service using Logstash |
295| [SQS-Hook](https://github.com/tsarpaul/logrus_sqs) | Hook for logging to [Amazon Simple Queue Service (SQS)](https://aws.amazon.com/sqs/) |
296 246
297#### Level logging 247#### Level logging
298 248
@@ -370,6 +320,8 @@ The built-in logging formatters are:
370 field to `true`. To force no colored output even if there is a TTY set the 320 field to `true`. To force no colored output even if there is a TTY set the
371 `DisableColors` field to `true`. For Windows, see 321 `DisableColors` field to `true`. For Windows, see
372 [github.com/mattn/go-colorable](https://github.com/mattn/go-colorable). 322 [github.com/mattn/go-colorable](https://github.com/mattn/go-colorable).
323 * When colors are enabled, levels are truncated to 4 characters by default. To disable
324 truncation set the `DisableLevelTruncation` field to `true`.
373 * All options are listed in the [generated docs](https://godoc.org/github.com/sirupsen/logrus#TextFormatter). 325 * All options are listed in the [generated docs](https://godoc.org/github.com/sirupsen/logrus#TextFormatter).
374* `logrus.JSONFormatter`. Logs fields as JSON. 326* `logrus.JSONFormatter`. Logs fields as JSON.
375 * All options are listed in the [generated docs](https://godoc.org/github.com/sirupsen/logrus#JSONFormatter). 327 * All options are listed in the [generated docs](https://godoc.org/github.com/sirupsen/logrus#JSONFormatter).
@@ -493,7 +445,7 @@ logrus.RegisterExitHandler(handler)
493 445
494#### Thread safety 446#### Thread safety
495 447
496By default Logger is protected by mutex for concurrent writes, this mutex is invoked when calling hooks and writing logs. 448By default, Logger is protected by a mutex for concurrent writes. The mutex is held when calling hooks and writing logs.
497If you are sure such locking is not needed, you can call logger.SetNoLock() to disable the locking. 449If you are sure such locking is not needed, you can call logger.SetNoLock() to disable the locking.
498 450
499Situation when locking is not needed includes: 451Situation when locking is not needed includes:
diff --git a/vendor/github.com/sirupsen/logrus/entry.go b/vendor/github.com/sirupsen/logrus/entry.go
index 1fad45e..ca634a6 100644
--- a/vendor/github.com/sirupsen/logrus/entry.go
+++ b/vendor/github.com/sirupsen/logrus/entry.go
@@ -4,6 +4,7 @@ import (
4 "bytes" 4 "bytes"
5 "fmt" 5 "fmt"
6 "os" 6 "os"
7 "reflect"
7 "sync" 8 "sync"
8 "time" 9 "time"
9) 10)
@@ -41,14 +42,17 @@ type Entry struct {
41 // Message passed to Debug, Info, Warn, Error, Fatal or Panic 42 // Message passed to Debug, Info, Warn, Error, Fatal or Panic
42 Message string 43 Message string
43 44
44 // When formatter is called in entry.log(), an Buffer may be set to entry 45 // When formatter is called in entry.log(), a Buffer may be set to entry
45 Buffer *bytes.Buffer 46 Buffer *bytes.Buffer
47
48 // err may contain a field formatting error
49 err string
46} 50}
47 51
48func NewEntry(logger *Logger) *Entry { 52func NewEntry(logger *Logger) *Entry {
49 return &Entry{ 53 return &Entry{
50 Logger: logger, 54 Logger: logger,
51 // Default is three fields, give a little extra room 55 // Default is five fields, give a little extra room
52 Data: make(Fields, 5), 56 Data: make(Fields, 5),
53 } 57 }
54} 58}
@@ -80,57 +84,86 @@ func (entry *Entry) WithFields(fields Fields) *Entry {
80 for k, v := range entry.Data { 84 for k, v := range entry.Data {
81 data[k] = v 85 data[k] = v
82 } 86 }
87 var field_err string
83 for k, v := range fields { 88 for k, v := range fields {
84 data[k] = v 89 if t := reflect.TypeOf(v); t != nil && t.Kind() == reflect.Func {
90 field_err = fmt.Sprintf("can not add field %q", k)
91 if entry.err != "" {
92 field_err = entry.err + ", " + field_err
93 }
94 } else {
95 data[k] = v
96 }
85 } 97 }
86 return &Entry{Logger: entry.Logger, Data: data} 98 return &Entry{Logger: entry.Logger, Data: data, Time: entry.Time, err: field_err}
99}
100
101// Overrides the time of the Entry.
102func (entry *Entry) WithTime(t time.Time) *Entry {
103 return &Entry{Logger: entry.Logger, Data: entry.Data, Time: t}
87} 104}
88 105
89// This function is not declared with a pointer value because otherwise 106// This function is not declared with a pointer value because otherwise
90// race conditions will occur when using multiple goroutines 107// race conditions will occur when using multiple goroutines
91func (entry Entry) log(level Level, msg string) { 108func (entry Entry) log(level Level, msg string) {
92 var buffer *bytes.Buffer 109 var buffer *bytes.Buffer
93 entry.Time = time.Now() 110
111 // Default to now, but allow users to override if they want.
112 //
113 // We don't have to worry about polluting future calls to Entry#log()
114 // with this assignment because this function is declared with a
115 // non-pointer receiver.
116 if entry.Time.IsZero() {
117 entry.Time = time.Now()
118 }
119
94 entry.Level = level 120 entry.Level = level
95 entry.Message = msg 121 entry.Message = msg
96 122
97 entry.Logger.mu.Lock() 123 entry.fireHooks()
98 err := entry.Logger.Hooks.Fire(level, &entry) 124
99 entry.Logger.mu.Unlock()
100 if err != nil {
101 entry.Logger.mu.Lock()
102 fmt.Fprintf(os.Stderr, "Failed to fire hook: %v\n", err)
103 entry.Logger.mu.Unlock()
104 }
105 buffer = bufferPool.Get().(*bytes.Buffer) 125 buffer = bufferPool.Get().(*bytes.Buffer)
106 buffer.Reset() 126 buffer.Reset()
107 defer bufferPool.Put(buffer) 127 defer bufferPool.Put(buffer)
108 entry.Buffer = buffer 128 entry.Buffer = buffer
109 serialized, err := entry.Logger.Formatter.Format(&entry) 129
130 entry.write()
131
110 entry.Buffer = nil 132 entry.Buffer = nil
133
134 // To avoid Entry#log() returning a value that only would make sense for
135 // panic() to use in Entry#Panic(), we avoid the allocation by checking
136 // directly here.
137 if level <= PanicLevel {
138 panic(&entry)
139 }
140}
141
142func (entry *Entry) fireHooks() {
143 entry.Logger.mu.Lock()
144 defer entry.Logger.mu.Unlock()
145 err := entry.Logger.Hooks.Fire(entry.Level, entry)
146 if err != nil {
147 fmt.Fprintf(os.Stderr, "Failed to fire hook: %v\n", err)
148 }
149}
150
151func (entry *Entry) write() {
152 entry.Logger.mu.Lock()
153 defer entry.Logger.mu.Unlock()
154 serialized, err := entry.Logger.Formatter.Format(entry)
111 if err != nil { 155 if err != nil {
112 entry.Logger.mu.Lock()
113 fmt.Fprintf(os.Stderr, "Failed to obtain reader, %v\n", err) 156 fmt.Fprintf(os.Stderr, "Failed to obtain reader, %v\n", err)
114 entry.Logger.mu.Unlock()
115 } else { 157 } else {
116 entry.Logger.mu.Lock()
117 _, err = entry.Logger.Out.Write(serialized) 158 _, err = entry.Logger.Out.Write(serialized)
118 if err != nil { 159 if err != nil {
119 fmt.Fprintf(os.Stderr, "Failed to write to log, %v\n", err) 160 fmt.Fprintf(os.Stderr, "Failed to write to log, %v\n", err)
120 } 161 }
121 entry.Logger.mu.Unlock()
122 }
123
124 // To avoid Entry#log() returning a value that only would make sense for
125 // panic() to use in Entry#Panic(), we avoid the allocation by checking
126 // directly here.
127 if level <= PanicLevel {
128 panic(&entry)
129 } 162 }
130} 163}
131 164
132func (entry *Entry) Debug(args ...interface{}) { 165func (entry *Entry) Debug(args ...interface{}) {
133 if entry.Logger.level() >= DebugLevel { 166 if entry.Logger.IsLevelEnabled(DebugLevel) {
134 entry.log(DebugLevel, fmt.Sprint(args...)) 167 entry.log(DebugLevel, fmt.Sprint(args...))
135 } 168 }
136} 169}
@@ -140,13 +173,13 @@ func (entry *Entry) Print(args ...interface{}) {
140} 173}
141 174
142func (entry *Entry) Info(args ...interface{}) { 175func (entry *Entry) Info(args ...interface{}) {
143 if entry.Logger.level() >= InfoLevel { 176 if entry.Logger.IsLevelEnabled(InfoLevel) {
144 entry.log(InfoLevel, fmt.Sprint(args...)) 177 entry.log(InfoLevel, fmt.Sprint(args...))
145 } 178 }
146} 179}
147 180
148func (entry *Entry) Warn(args ...interface{}) { 181func (entry *Entry) Warn(args ...interface{}) {
149 if entry.Logger.level() >= WarnLevel { 182 if entry.Logger.IsLevelEnabled(WarnLevel) {
150 entry.log(WarnLevel, fmt.Sprint(args...)) 183 entry.log(WarnLevel, fmt.Sprint(args...))
151 } 184 }
152} 185}
@@ -156,20 +189,20 @@ func (entry *Entry) Warning(args ...interface{}) {
156} 189}
157 190
158func (entry *Entry) Error(args ...interface{}) { 191func (entry *Entry) Error(args ...interface{}) {
159 if entry.Logger.level() >= ErrorLevel { 192 if entry.Logger.IsLevelEnabled(ErrorLevel) {
160 entry.log(ErrorLevel, fmt.Sprint(args...)) 193 entry.log(ErrorLevel, fmt.Sprint(args...))
161 } 194 }
162} 195}
163 196
164func (entry *Entry) Fatal(args ...interface{}) { 197func (entry *Entry) Fatal(args ...interface{}) {
165 if entry.Logger.level() >= FatalLevel { 198 if entry.Logger.IsLevelEnabled(FatalLevel) {
166 entry.log(FatalLevel, fmt.Sprint(args...)) 199 entry.log(FatalLevel, fmt.Sprint(args...))
167 } 200 }
168 Exit(1) 201 Exit(1)
169} 202}
170 203
171func (entry *Entry) Panic(args ...interface{}) { 204func (entry *Entry) Panic(args ...interface{}) {
172 if entry.Logger.level() >= PanicLevel { 205 if entry.Logger.IsLevelEnabled(PanicLevel) {
173 entry.log(PanicLevel, fmt.Sprint(args...)) 206 entry.log(PanicLevel, fmt.Sprint(args...))
174 } 207 }
175 panic(fmt.Sprint(args...)) 208 panic(fmt.Sprint(args...))
@@ -178,13 +211,13 @@ func (entry *Entry) Panic(args ...interface{}) {
178// Entry Printf family functions 211// Entry Printf family functions
179 212
180func (entry *Entry) Debugf(format string, args ...interface{}) { 213func (entry *Entry) Debugf(format string, args ...interface{}) {
181 if entry.Logger.level() >= DebugLevel { 214 if entry.Logger.IsLevelEnabled(DebugLevel) {
182 entry.Debug(fmt.Sprintf(format, args...)) 215 entry.Debug(fmt.Sprintf(format, args...))
183 } 216 }
184} 217}
185 218
186func (entry *Entry) Infof(format string, args ...interface{}) { 219func (entry *Entry) Infof(format string, args ...interface{}) {
187 if entry.Logger.level() >= InfoLevel { 220 if entry.Logger.IsLevelEnabled(InfoLevel) {
188 entry.Info(fmt.Sprintf(format, args...)) 221 entry.Info(fmt.Sprintf(format, args...))
189 } 222 }
190} 223}
@@ -194,7 +227,7 @@ func (entry *Entry) Printf(format string, args ...interface{}) {
194} 227}
195 228
196func (entry *Entry) Warnf(format string, args ...interface{}) { 229func (entry *Entry) Warnf(format string, args ...interface{}) {
197 if entry.Logger.level() >= WarnLevel { 230 if entry.Logger.IsLevelEnabled(WarnLevel) {
198 entry.Warn(fmt.Sprintf(format, args...)) 231 entry.Warn(fmt.Sprintf(format, args...))
199 } 232 }
200} 233}
@@ -204,20 +237,20 @@ func (entry *Entry) Warningf(format string, args ...interface{}) {
204} 237}
205 238
206func (entry *Entry) Errorf(format string, args ...interface{}) { 239func (entry *Entry) Errorf(format string, args ...interface{}) {
207 if entry.Logger.level() >= ErrorLevel { 240 if entry.Logger.IsLevelEnabled(ErrorLevel) {
208 entry.Error(fmt.Sprintf(format, args...)) 241 entry.Error(fmt.Sprintf(format, args...))
209 } 242 }
210} 243}
211 244
212func (entry *Entry) Fatalf(format string, args ...interface{}) { 245func (entry *Entry) Fatalf(format string, args ...interface{}) {
213 if entry.Logger.level() >= FatalLevel { 246 if entry.Logger.IsLevelEnabled(FatalLevel) {
214 entry.Fatal(fmt.Sprintf(format, args...)) 247 entry.Fatal(fmt.Sprintf(format, args...))
215 } 248 }
216 Exit(1) 249 Exit(1)
217} 250}
218 251
219func (entry *Entry) Panicf(format string, args ...interface{}) { 252func (entry *Entry) Panicf(format string, args ...interface{}) {
220 if entry.Logger.level() >= PanicLevel { 253 if entry.Logger.IsLevelEnabled(PanicLevel) {
221 entry.Panic(fmt.Sprintf(format, args...)) 254 entry.Panic(fmt.Sprintf(format, args...))
222 } 255 }
223} 256}
@@ -225,13 +258,13 @@ func (entry *Entry) Panicf(format string, args ...interface{}) {
225// Entry Println family functions 258// Entry Println family functions
226 259
227func (entry *Entry) Debugln(args ...interface{}) { 260func (entry *Entry) Debugln(args ...interface{}) {
228 if entry.Logger.level() >= DebugLevel { 261 if entry.Logger.IsLevelEnabled(DebugLevel) {
229 entry.Debug(entry.sprintlnn(args...)) 262 entry.Debug(entry.sprintlnn(args...))
230 } 263 }
231} 264}
232 265
233func (entry *Entry) Infoln(args ...interface{}) { 266func (entry *Entry) Infoln(args ...interface{}) {
234 if entry.Logger.level() >= InfoLevel { 267 if entry.Logger.IsLevelEnabled(InfoLevel) {
235 entry.Info(entry.sprintlnn(args...)) 268 entry.Info(entry.sprintlnn(args...))
236 } 269 }
237} 270}
@@ -241,7 +274,7 @@ func (entry *Entry) Println(args ...interface{}) {
241} 274}
242 275
243func (entry *Entry) Warnln(args ...interface{}) { 276func (entry *Entry) Warnln(args ...interface{}) {
244 if entry.Logger.level() >= WarnLevel { 277 if entry.Logger.IsLevelEnabled(WarnLevel) {
245 entry.Warn(entry.sprintlnn(args...)) 278 entry.Warn(entry.sprintlnn(args...))
246 } 279 }
247} 280}
@@ -251,20 +284,20 @@ func (entry *Entry) Warningln(args ...interface{}) {
251} 284}
252 285
253func (entry *Entry) Errorln(args ...interface{}) { 286func (entry *Entry) Errorln(args ...interface{}) {
254 if entry.Logger.level() >= ErrorLevel { 287 if entry.Logger.IsLevelEnabled(ErrorLevel) {
255 entry.Error(entry.sprintlnn(args...)) 288 entry.Error(entry.sprintlnn(args...))
256 } 289 }
257} 290}
258 291
259func (entry *Entry) Fatalln(args ...interface{}) { 292func (entry *Entry) Fatalln(args ...interface{}) {
260 if entry.Logger.level() >= FatalLevel { 293 if entry.Logger.IsLevelEnabled(FatalLevel) {
261 entry.Fatal(entry.sprintlnn(args...)) 294 entry.Fatal(entry.sprintlnn(args...))
262 } 295 }
263 Exit(1) 296 Exit(1)
264} 297}
265 298
266func (entry *Entry) Panicln(args ...interface{}) { 299func (entry *Entry) Panicln(args ...interface{}) {
267 if entry.Logger.level() >= PanicLevel { 300 if entry.Logger.IsLevelEnabled(PanicLevel) {
268 entry.Panic(entry.sprintlnn(args...)) 301 entry.Panic(entry.sprintlnn(args...))
269 } 302 }
270} 303}
diff --git a/vendor/github.com/sirupsen/logrus/exported.go b/vendor/github.com/sirupsen/logrus/exported.go
index 013183e..fb2a7a1 100644
--- a/vendor/github.com/sirupsen/logrus/exported.go
+++ b/vendor/github.com/sirupsen/logrus/exported.go
@@ -2,6 +2,7 @@ package logrus
2 2
3import ( 3import (
4 "io" 4 "io"
5 "time"
5) 6)
6 7
7var ( 8var (
@@ -15,37 +16,32 @@ func StandardLogger() *Logger {
15 16
16// SetOutput sets the standard logger output. 17// SetOutput sets the standard logger output.
17func SetOutput(out io.Writer) { 18func SetOutput(out io.Writer) {
18 std.mu.Lock() 19 std.SetOutput(out)
19 defer std.mu.Unlock()
20 std.Out = out
21} 20}
22 21
23// SetFormatter sets the standard logger formatter. 22// SetFormatter sets the standard logger formatter.
24func SetFormatter(formatter Formatter) { 23func SetFormatter(formatter Formatter) {
25 std.mu.Lock() 24 std.SetFormatter(formatter)
26 defer std.mu.Unlock()
27 std.Formatter = formatter
28} 25}
29 26
30// SetLevel sets the standard logger level. 27// SetLevel sets the standard logger level.
31func SetLevel(level Level) { 28func SetLevel(level Level) {
32 std.mu.Lock()
33 defer std.mu.Unlock()
34 std.SetLevel(level) 29 std.SetLevel(level)
35} 30}
36 31
37// GetLevel returns the standard logger level. 32// GetLevel returns the standard logger level.
38func GetLevel() Level { 33func GetLevel() Level {
39 std.mu.Lock() 34 return std.GetLevel()
40 defer std.mu.Unlock() 35}
41 return std.level() 36
37// IsLevelEnabled checks if the log level of the standard logger is greater than the level param
38func IsLevelEnabled(level Level) bool {
39 return std.IsLevelEnabled(level)
42} 40}
43 41
44// AddHook adds a hook to the standard logger hooks. 42// AddHook adds a hook to the standard logger hooks.
45func AddHook(hook Hook) { 43func AddHook(hook Hook) {
46 std.mu.Lock() 44 std.AddHook(hook)
47 defer std.mu.Unlock()
48 std.Hooks.Add(hook)
49} 45}
50 46
51// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key. 47// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
@@ -72,6 +68,15 @@ func WithFields(fields Fields) *Entry {
72 return std.WithFields(fields) 68 return std.WithFields(fields)
73} 69}
74 70
71// WithTime creats an entry from the standard logger and overrides the time of
72// logs generated with it.
73//
74// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal
75// or Panic on the Entry it returns.
76func WithTime(t time.Time) *Entry {
77 return std.WithTime(t)
78}
79
75// Debug logs a message at level Debug on the standard logger. 80// Debug logs a message at level Debug on the standard logger.
76func Debug(args ...interface{}) { 81func Debug(args ...interface{}) {
77 std.Debug(args...) 82 std.Debug(args...)
@@ -107,7 +112,7 @@ func Panic(args ...interface{}) {
107 std.Panic(args...) 112 std.Panic(args...)
108} 113}
109 114
110// Fatal logs a message at level Fatal on the standard logger. 115// Fatal logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
111func Fatal(args ...interface{}) { 116func Fatal(args ...interface{}) {
112 std.Fatal(args...) 117 std.Fatal(args...)
113} 118}
@@ -147,7 +152,7 @@ func Panicf(format string, args ...interface{}) {
147 std.Panicf(format, args...) 152 std.Panicf(format, args...)
148} 153}
149 154
150// Fatalf logs a message at level Fatal on the standard logger. 155// Fatalf logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
151func Fatalf(format string, args ...interface{}) { 156func Fatalf(format string, args ...interface{}) {
152 std.Fatalf(format, args...) 157 std.Fatalf(format, args...)
153} 158}
@@ -187,7 +192,7 @@ func Panicln(args ...interface{}) {
187 std.Panicln(args...) 192 std.Panicln(args...)
188} 193}
189 194
190// Fatalln logs a message at level Fatal on the standard logger. 195// Fatalln logs a message at level Fatal on the standard logger then the process will exit with status set to 1.
191func Fatalln(args ...interface{}) { 196func Fatalln(args ...interface{}) {
192 std.Fatalln(args...) 197 std.Fatalln(args...)
193} 198}
diff --git a/vendor/github.com/sirupsen/logrus/formatter.go b/vendor/github.com/sirupsen/logrus/formatter.go
index b183ff5..be2f3fc 100644
--- a/vendor/github.com/sirupsen/logrus/formatter.go
+++ b/vendor/github.com/sirupsen/logrus/formatter.go
@@ -2,7 +2,14 @@ package logrus
2 2
3import "time" 3import "time"
4 4
5const defaultTimestampFormat = time.RFC3339 5// Default key names for the default fields
6const (
7 defaultTimestampFormat = time.RFC3339
8 FieldKeyMsg = "msg"
9 FieldKeyLevel = "level"
10 FieldKeyTime = "time"
11 FieldKeyLogrusError = "logrus_error"
12)
6 13
7// The Formatter interface is used to implement a custom Formatter. It takes an 14// The Formatter interface is used to implement a custom Formatter. It takes an
8// `Entry`. It exposes all the fields, including the default ones: 15// `Entry`. It exposes all the fields, including the default ones:
@@ -30,16 +37,28 @@ type Formatter interface {
30// 37//
31// It's not exported because it's still using Data in an opinionated way. It's to 38// It's not exported because it's still using Data in an opinionated way. It's to
32// avoid code duplication between the two default formatters. 39// avoid code duplication between the two default formatters.
33func prefixFieldClashes(data Fields) { 40func prefixFieldClashes(data Fields, fieldMap FieldMap) {
34 if t, ok := data["time"]; ok { 41 timeKey := fieldMap.resolve(FieldKeyTime)
35 data["fields.time"] = t 42 if t, ok := data[timeKey]; ok {
43 data["fields."+timeKey] = t
44 delete(data, timeKey)
36 } 45 }
37 46
38 if m, ok := data["msg"]; ok { 47 msgKey := fieldMap.resolve(FieldKeyMsg)
39 data["fields.msg"] = m 48 if m, ok := data[msgKey]; ok {
49 data["fields."+msgKey] = m
50 delete(data, msgKey)
40 } 51 }
41 52
42 if l, ok := data["level"]; ok { 53 levelKey := fieldMap.resolve(FieldKeyLevel)
43 data["fields.level"] = l 54 if l, ok := data[levelKey]; ok {
55 data["fields."+levelKey] = l
56 delete(data, levelKey)
57 }
58
59 logrusErrKey := fieldMap.resolve(FieldKeyLogrusError)
60 if l, ok := data[logrusErrKey]; ok {
61 data["fields."+logrusErrKey] = l
62 delete(data, logrusErrKey)
44 } 63 }
45} 64}
diff --git a/vendor/github.com/sirupsen/logrus/go.mod b/vendor/github.com/sirupsen/logrus/go.mod
new file mode 100644
index 0000000..f4fed02
--- /dev/null
+++ b/vendor/github.com/sirupsen/logrus/go.mod
@@ -0,0 +1,10 @@
1module github.com/sirupsen/logrus
2
3require (
4 github.com/davecgh/go-spew v1.1.1 // indirect
5 github.com/konsorten/go-windows-terminal-sequences v0.0.0-20180402223658-b729f2633dfe
6 github.com/pmezard/go-difflib v1.0.0 // indirect
7 github.com/stretchr/testify v1.2.2
8 golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
9 golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
10)
diff --git a/vendor/github.com/sirupsen/logrus/go.sum b/vendor/github.com/sirupsen/logrus/go.sum
new file mode 100644
index 0000000..1f0d719
--- /dev/null
+++ b/vendor/github.com/sirupsen/logrus/go.sum
@@ -0,0 +1,12 @@
1github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3github.com/konsorten/go-windows-terminal-sequences v0.0.0-20180402223658-b729f2633dfe h1:CHRGQ8V7OlCYtwaKPJi3iA7J+YdNKdo8j7nG5IgDhjs=
4github.com/konsorten/go-windows-terminal-sequences v0.0.0-20180402223658-b729f2633dfe/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
5github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
6github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
7github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
8github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
9golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 h1:u+LnwYTOOW7Ukr/fppxEb1Nwz0AtPflrblfvUudpo+I=
10golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
11golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 h1:I6FyU15t786LL7oL/hn43zqTuEGr4PN7F4XJ1p4E3Y8=
12golang.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 fb01c1b..ef8d074 100644
--- a/vendor/github.com/sirupsen/logrus/json_formatter.go
+++ b/vendor/github.com/sirupsen/logrus/json_formatter.go
@@ -1,6 +1,7 @@
1package logrus 1package logrus
2 2
3import ( 3import (
4 "bytes"
4 "encoding/json" 5 "encoding/json"
5 "fmt" 6 "fmt"
6) 7)
@@ -10,13 +11,6 @@ type fieldKey string
10// FieldMap allows customization of the key names for default fields. 11// FieldMap allows customization of the key names for default fields.
11type FieldMap map[fieldKey]string 12type FieldMap map[fieldKey]string
12 13
13// Default key names for the default fields
14const (
15 FieldKeyMsg = "msg"
16 FieldKeyLevel = "level"
17 FieldKeyTime = "time"
18)
19
20func (f FieldMap) resolve(key fieldKey) string { 14func (f FieldMap) resolve(key fieldKey) string {
21 if k, ok := f[key]; ok { 15 if k, ok := f[key]; ok {
22 return k 16 return k
@@ -33,6 +27,9 @@ type JSONFormatter struct {
33 // DisableTimestamp allows disabling automatic timestamps in output 27 // DisableTimestamp allows disabling automatic timestamps in output
34 DisableTimestamp bool 28 DisableTimestamp bool
35 29
30 // DataKey allows users to put all the log entry parameters into a nested dictionary at a given key.
31 DataKey string
32
36 // FieldMap allows users to customize the names of keys for default fields. 33 // FieldMap allows users to customize the names of keys for default fields.
37 // As an example: 34 // As an example:
38 // formatter := &JSONFormatter{ 35 // formatter := &JSONFormatter{
@@ -43,6 +40,9 @@ type JSONFormatter struct {
43 // }, 40 // },
44 // } 41 // }
45 FieldMap FieldMap 42 FieldMap FieldMap
43
44 // PrettyPrint will indent all json logs
45 PrettyPrint bool
46} 46}
47 47
48// Format renders a single log entry 48// Format renders a single log entry
@@ -58,22 +58,43 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
58 data[k] = v 58 data[k] = v
59 } 59 }
60 } 60 }
61 prefixFieldClashes(data) 61
62 if f.DataKey != "" {
63 newData := make(Fields, 4)
64 newData[f.DataKey] = data
65 data = newData
66 }
67
68 prefixFieldClashes(data, f.FieldMap)
62 69
63 timestampFormat := f.TimestampFormat 70 timestampFormat := f.TimestampFormat
64 if timestampFormat == "" { 71 if timestampFormat == "" {
65 timestampFormat = defaultTimestampFormat 72 timestampFormat = defaultTimestampFormat
66 } 73 }
67 74
75 if entry.err != "" {
76 data[f.FieldMap.resolve(FieldKeyLogrusError)] = entry.err
77 }
68 if !f.DisableTimestamp { 78 if !f.DisableTimestamp {
69 data[f.FieldMap.resolve(FieldKeyTime)] = entry.Time.Format(timestampFormat) 79 data[f.FieldMap.resolve(FieldKeyTime)] = entry.Time.Format(timestampFormat)
70 } 80 }
71 data[f.FieldMap.resolve(FieldKeyMsg)] = entry.Message 81 data[f.FieldMap.resolve(FieldKeyMsg)] = entry.Message
72 data[f.FieldMap.resolve(FieldKeyLevel)] = entry.Level.String() 82 data[f.FieldMap.resolve(FieldKeyLevel)] = entry.Level.String()
73 83
74 serialized, err := json.Marshal(data) 84 var b *bytes.Buffer
75 if err != nil { 85 if entry.Buffer != nil {
86 b = entry.Buffer
87 } else {
88 b = &bytes.Buffer{}
89 }
90
91 encoder := json.NewEncoder(b)
92 if f.PrettyPrint {
93 encoder.SetIndent("", " ")
94 }
95 if err := encoder.Encode(data); err != nil {
76 return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err) 96 return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
77 } 97 }
78 return append(serialized, '\n'), nil 98
99 return b.Bytes(), nil
79} 100}
diff --git a/vendor/github.com/sirupsen/logrus/logger.go b/vendor/github.com/sirupsen/logrus/logger.go
index fdaf8a6..b67bfcb 100644
--- a/vendor/github.com/sirupsen/logrus/logger.go
+++ b/vendor/github.com/sirupsen/logrus/logger.go
@@ -5,12 +5,13 @@ import (
5 "os" 5 "os"
6 "sync" 6 "sync"
7 "sync/atomic" 7 "sync/atomic"
8 "time"
8) 9)
9 10
10type Logger struct { 11type Logger struct {
11 // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a 12 // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a
12 // file, or leave it default which is `os.Stderr`. You can also set this to 13 // file, or leave it default which is `os.Stderr`. You can also set this to
13 // something more adventorous, such as logging to Kafka. 14 // something more adventurous, such as logging to Kafka.
14 Out io.Writer 15 Out io.Writer
15 // Hooks for the logger instance. These allow firing events based on logging 16 // Hooks for the logger instance. These allow firing events based on logging
16 // levels and log entries. For example, to send errors to an error tracking 17 // levels and log entries. For example, to send errors to an error tracking
@@ -84,11 +85,12 @@ func (logger *Logger) newEntry() *Entry {
84} 85}
85 86
86func (logger *Logger) releaseEntry(entry *Entry) { 87func (logger *Logger) releaseEntry(entry *Entry) {
88 entry.Data = map[string]interface{}{}
87 logger.entryPool.Put(entry) 89 logger.entryPool.Put(entry)
88} 90}
89 91
90// Adds a field to the log entry, note that it doesn't log until you call 92// Adds a field to the log entry, note that it doesn't log until you call
91// Debug, Print, Info, Warn, Fatal or Panic. It only creates a log entry. 93// Debug, Print, Info, Warn, Error, Fatal or Panic. It only creates a log entry.
92// If you want multiple fields, use `WithFields`. 94// If you want multiple fields, use `WithFields`.
93func (logger *Logger) WithField(key string, value interface{}) *Entry { 95func (logger *Logger) WithField(key string, value interface{}) *Entry {
94 entry := logger.newEntry() 96 entry := logger.newEntry()
@@ -112,8 +114,15 @@ func (logger *Logger) WithError(err error) *Entry {
112 return entry.WithError(err) 114 return entry.WithError(err)
113} 115}
114 116
117// Overrides the time of the log entry.
118func (logger *Logger) WithTime(t time.Time) *Entry {
119 entry := logger.newEntry()
120 defer logger.releaseEntry(entry)
121 return entry.WithTime(t)
122}
123
115func (logger *Logger) Debugf(format string, args ...interface{}) { 124func (logger *Logger) Debugf(format string, args ...interface{}) {
116 if logger.level() >= DebugLevel { 125 if logger.IsLevelEnabled(DebugLevel) {
117 entry := logger.newEntry() 126 entry := logger.newEntry()
118 entry.Debugf(format, args...) 127 entry.Debugf(format, args...)
119 logger.releaseEntry(entry) 128 logger.releaseEntry(entry)
@@ -121,7 +130,7 @@ func (logger *Logger) Debugf(format string, args ...interface{}) {
121} 130}
122 131
123func (logger *Logger) Infof(format string, args ...interface{}) { 132func (logger *Logger) Infof(format string, args ...interface{}) {
124 if logger.level() >= InfoLevel { 133 if logger.IsLevelEnabled(InfoLevel) {
125 entry := logger.newEntry() 134 entry := logger.newEntry()
126 entry.Infof(format, args...) 135 entry.Infof(format, args...)
127 logger.releaseEntry(entry) 136 logger.releaseEntry(entry)
@@ -135,7 +144,7 @@ func (logger *Logger) Printf(format string, args ...interface{}) {
135} 144}
136 145
137func (logger *Logger) Warnf(format string, args ...interface{}) { 146func (logger *Logger) Warnf(format string, args ...interface{}) {
138 if logger.level() >= WarnLevel { 147 if logger.IsLevelEnabled(WarnLevel) {
139 entry := logger.newEntry() 148 entry := logger.newEntry()
140 entry.Warnf(format, args...) 149 entry.Warnf(format, args...)
141 logger.releaseEntry(entry) 150 logger.releaseEntry(entry)
@@ -143,7 +152,7 @@ func (logger *Logger) Warnf(format string, args ...interface{}) {
143} 152}
144 153
145func (logger *Logger) Warningf(format string, args ...interface{}) { 154func (logger *Logger) Warningf(format string, args ...interface{}) {
146 if logger.level() >= WarnLevel { 155 if logger.IsLevelEnabled(WarnLevel) {
147 entry := logger.newEntry() 156 entry := logger.newEntry()
148 entry.Warnf(format, args...) 157 entry.Warnf(format, args...)
149 logger.releaseEntry(entry) 158 logger.releaseEntry(entry)
@@ -151,7 +160,7 @@ func (logger *Logger) Warningf(format string, args ...interface{}) {
151} 160}
152 161
153func (logger *Logger) Errorf(format string, args ...interface{}) { 162func (logger *Logger) Errorf(format string, args ...interface{}) {
154 if logger.level() >= ErrorLevel { 163 if logger.IsLevelEnabled(ErrorLevel) {
155 entry := logger.newEntry() 164 entry := logger.newEntry()
156 entry.Errorf(format, args...) 165 entry.Errorf(format, args...)
157 logger.releaseEntry(entry) 166 logger.releaseEntry(entry)
@@ -159,7 +168,7 @@ func (logger *Logger) Errorf(format string, args ...interface{}) {
159} 168}
160 169
161func (logger *Logger) Fatalf(format string, args ...interface{}) { 170func (logger *Logger) Fatalf(format string, args ...interface{}) {
162 if logger.level() >= FatalLevel { 171 if logger.IsLevelEnabled(FatalLevel) {
163 entry := logger.newEntry() 172 entry := logger.newEntry()
164 entry.Fatalf(format, args...) 173 entry.Fatalf(format, args...)
165 logger.releaseEntry(entry) 174 logger.releaseEntry(entry)
@@ -168,7 +177,7 @@ func (logger *Logger) Fatalf(format string, args ...interface{}) {
168} 177}
169 178
170func (logger *Logger) Panicf(format string, args ...interface{}) { 179func (logger *Logger) Panicf(format string, args ...interface{}) {
171 if logger.level() >= PanicLevel { 180 if logger.IsLevelEnabled(PanicLevel) {
172 entry := logger.newEntry() 181 entry := logger.newEntry()
173 entry.Panicf(format, args...) 182 entry.Panicf(format, args...)
174 logger.releaseEntry(entry) 183 logger.releaseEntry(entry)
@@ -176,7 +185,7 @@ func (logger *Logger) Panicf(format string, args ...interface{}) {
176} 185}
177 186
178func (logger *Logger) Debug(args ...interface{}) { 187func (logger *Logger) Debug(args ...interface{}) {
179 if logger.level() >= DebugLevel { 188 if logger.IsLevelEnabled(DebugLevel) {
180 entry := logger.newEntry() 189 entry := logger.newEntry()
181 entry.Debug(args...) 190 entry.Debug(args...)
182 logger.releaseEntry(entry) 191 logger.releaseEntry(entry)
@@ -184,7 +193,7 @@ func (logger *Logger) Debug(args ...interface{}) {
184} 193}
185 194
186func (logger *Logger) Info(args ...interface{}) { 195func (logger *Logger) Info(args ...interface{}) {
187 if logger.level() >= InfoLevel { 196 if logger.IsLevelEnabled(InfoLevel) {
188 entry := logger.newEntry() 197 entry := logger.newEntry()
189 entry.Info(args...) 198 entry.Info(args...)
190 logger.releaseEntry(entry) 199 logger.releaseEntry(entry)
@@ -198,7 +207,7 @@ func (logger *Logger) Print(args ...interface{}) {
198} 207}
199 208
200func (logger *Logger) Warn(args ...interface{}) { 209func (logger *Logger) Warn(args ...interface{}) {
201 if logger.level() >= WarnLevel { 210 if logger.IsLevelEnabled(WarnLevel) {
202 entry := logger.newEntry() 211 entry := logger.newEntry()
203 entry.Warn(args...) 212 entry.Warn(args...)
204 logger.releaseEntry(entry) 213 logger.releaseEntry(entry)
@@ -206,7 +215,7 @@ func (logger *Logger) Warn(args ...interface{}) {
206} 215}
207 216
208func (logger *Logger) Warning(args ...interface{}) { 217func (logger *Logger) Warning(args ...interface{}) {
209 if logger.level() >= WarnLevel { 218 if logger.IsLevelEnabled(WarnLevel) {
210 entry := logger.newEntry() 219 entry := logger.newEntry()
211 entry.Warn(args...) 220 entry.Warn(args...)
212 logger.releaseEntry(entry) 221 logger.releaseEntry(entry)
@@ -214,7 +223,7 @@ func (logger *Logger) Warning(args ...interface{}) {
214} 223}
215 224
216func (logger *Logger) Error(args ...interface{}) { 225func (logger *Logger) Error(args ...interface{}) {
217 if logger.level() >= ErrorLevel { 226 if logger.IsLevelEnabled(ErrorLevel) {
218 entry := logger.newEntry() 227 entry := logger.newEntry()
219 entry.Error(args...) 228 entry.Error(args...)
220 logger.releaseEntry(entry) 229 logger.releaseEntry(entry)
@@ -222,7 +231,7 @@ func (logger *Logger) Error(args ...interface{}) {
222} 231}
223 232
224func (logger *Logger) Fatal(args ...interface{}) { 233func (logger *Logger) Fatal(args ...interface{}) {
225 if logger.level() >= FatalLevel { 234 if logger.IsLevelEnabled(FatalLevel) {
226 entry := logger.newEntry() 235 entry := logger.newEntry()
227 entry.Fatal(args...) 236 entry.Fatal(args...)
228 logger.releaseEntry(entry) 237 logger.releaseEntry(entry)
@@ -231,7 +240,7 @@ func (logger *Logger) Fatal(args ...interface{}) {
231} 240}
232 241
233func (logger *Logger) Panic(args ...interface{}) { 242func (logger *Logger) Panic(args ...interface{}) {
234 if logger.level() >= PanicLevel { 243 if logger.IsLevelEnabled(PanicLevel) {
235 entry := logger.newEntry() 244 entry := logger.newEntry()
236 entry.Panic(args...) 245 entry.Panic(args...)
237 logger.releaseEntry(entry) 246 logger.releaseEntry(entry)
@@ -239,7 +248,7 @@ func (logger *Logger) Panic(args ...interface{}) {
239} 248}
240 249
241func (logger *Logger) Debugln(args ...interface{}) { 250func (logger *Logger) Debugln(args ...interface{}) {
242 if logger.level() >= DebugLevel { 251 if logger.IsLevelEnabled(DebugLevel) {
243 entry := logger.newEntry() 252 entry := logger.newEntry()
244 entry.Debugln(args...) 253 entry.Debugln(args...)
245 logger.releaseEntry(entry) 254 logger.releaseEntry(entry)
@@ -247,7 +256,7 @@ func (logger *Logger) Debugln(args ...interface{}) {
247} 256}
248 257
249func (logger *Logger) Infoln(args ...interface{}) { 258func (logger *Logger) Infoln(args ...interface{}) {
250 if logger.level() >= InfoLevel { 259 if logger.IsLevelEnabled(InfoLevel) {
251 entry := logger.newEntry() 260 entry := logger.newEntry()
252 entry.Infoln(args...) 261 entry.Infoln(args...)
253 logger.releaseEntry(entry) 262 logger.releaseEntry(entry)
@@ -261,7 +270,7 @@ func (logger *Logger) Println(args ...interface{}) {
261} 270}
262 271
263func (logger *Logger) Warnln(args ...interface{}) { 272func (logger *Logger) Warnln(args ...interface{}) {
264 if logger.level() >= WarnLevel { 273 if logger.IsLevelEnabled(WarnLevel) {
265 entry := logger.newEntry() 274 entry := logger.newEntry()
266 entry.Warnln(args...) 275 entry.Warnln(args...)
267 logger.releaseEntry(entry) 276 logger.releaseEntry(entry)
@@ -269,7 +278,7 @@ func (logger *Logger) Warnln(args ...interface{}) {
269} 278}
270 279
271func (logger *Logger) Warningln(args ...interface{}) { 280func (logger *Logger) Warningln(args ...interface{}) {
272 if logger.level() >= WarnLevel { 281 if logger.IsLevelEnabled(WarnLevel) {
273 entry := logger.newEntry() 282 entry := logger.newEntry()
274 entry.Warnln(args...) 283 entry.Warnln(args...)
275 logger.releaseEntry(entry) 284 logger.releaseEntry(entry)
@@ -277,7 +286,7 @@ func (logger *Logger) Warningln(args ...interface{}) {
277} 286}
278 287
279func (logger *Logger) Errorln(args ...interface{}) { 288func (logger *Logger) Errorln(args ...interface{}) {
280 if logger.level() >= ErrorLevel { 289 if logger.IsLevelEnabled(ErrorLevel) {
281 entry := logger.newEntry() 290 entry := logger.newEntry()
282 entry.Errorln(args...) 291 entry.Errorln(args...)
283 logger.releaseEntry(entry) 292 logger.releaseEntry(entry)
@@ -285,7 +294,7 @@ func (logger *Logger) Errorln(args ...interface{}) {
285} 294}
286 295
287func (logger *Logger) Fatalln(args ...interface{}) { 296func (logger *Logger) Fatalln(args ...interface{}) {
288 if logger.level() >= FatalLevel { 297 if logger.IsLevelEnabled(FatalLevel) {
289 entry := logger.newEntry() 298 entry := logger.newEntry()
290 entry.Fatalln(args...) 299 entry.Fatalln(args...)
291 logger.releaseEntry(entry) 300 logger.releaseEntry(entry)
@@ -294,7 +303,7 @@ func (logger *Logger) Fatalln(args ...interface{}) {
294} 303}
295 304
296func (logger *Logger) Panicln(args ...interface{}) { 305func (logger *Logger) Panicln(args ...interface{}) {
297 if logger.level() >= PanicLevel { 306 if logger.IsLevelEnabled(PanicLevel) {
298 entry := logger.newEntry() 307 entry := logger.newEntry()
299 entry.Panicln(args...) 308 entry.Panicln(args...)
300 logger.releaseEntry(entry) 309 logger.releaseEntry(entry)
@@ -312,12 +321,47 @@ func (logger *Logger) level() Level {
312 return Level(atomic.LoadUint32((*uint32)(&logger.Level))) 321 return Level(atomic.LoadUint32((*uint32)(&logger.Level)))
313} 322}
314 323
324// SetLevel sets the logger level.
315func (logger *Logger) SetLevel(level Level) { 325func (logger *Logger) SetLevel(level Level) {
316 atomic.StoreUint32((*uint32)(&logger.Level), uint32(level)) 326 atomic.StoreUint32((*uint32)(&logger.Level), uint32(level))
317} 327}
318 328
329// GetLevel returns the logger level.
330func (logger *Logger) GetLevel() Level {
331 return logger.level()
332}
333
334// AddHook adds a hook to the logger hooks.
319func (logger *Logger) AddHook(hook Hook) { 335func (logger *Logger) AddHook(hook Hook) {
320 logger.mu.Lock() 336 logger.mu.Lock()
321 defer logger.mu.Unlock() 337 defer logger.mu.Unlock()
322 logger.Hooks.Add(hook) 338 logger.Hooks.Add(hook)
323} 339}
340
341// IsLevelEnabled checks if the log level of the logger is greater than the level param
342func (logger *Logger) IsLevelEnabled(level Level) bool {
343 return logger.level() >= level
344}
345
346// SetFormatter sets the logger formatter.
347func (logger *Logger) SetFormatter(formatter Formatter) {
348 logger.mu.Lock()
349 defer logger.mu.Unlock()
350 logger.Formatter = formatter
351}
352
353// SetOutput sets the logger output.
354func (logger *Logger) SetOutput(output io.Writer) {
355 logger.mu.Lock()
356 defer logger.mu.Unlock()
357 logger.Out = output
358}
359
360// ReplaceHooks replaces the logger hooks and returns the old ones
361func (logger *Logger) ReplaceHooks(hooks LevelHooks) LevelHooks {
362 logger.mu.Lock()
363 oldHooks := logger.Hooks
364 logger.Hooks = hooks
365 logger.mu.Unlock()
366 return oldHooks
367}
diff --git a/vendor/github.com/sirupsen/logrus/logrus.go b/vendor/github.com/sirupsen/logrus/logrus.go
index dd38999..fa0b9de 100644
--- a/vendor/github.com/sirupsen/logrus/logrus.go
+++ b/vendor/github.com/sirupsen/logrus/logrus.go
@@ -140,4 +140,11 @@ type FieldLogger interface {
140 Errorln(args ...interface{}) 140 Errorln(args ...interface{})
141 Fatalln(args ...interface{}) 141 Fatalln(args ...interface{})
142 Panicln(args ...interface{}) 142 Panicln(args ...interface{})
143
144 // IsDebugEnabled() bool
145 // IsInfoEnabled() bool
146 // IsWarnEnabled() bool
147 // IsErrorEnabled() bool
148 // IsFatalEnabled() bool
149 // IsPanicEnabled() bool
143} 150}
diff --git a/vendor/github.com/sirupsen/logrus/terminal_bsd.go b/vendor/github.com/sirupsen/logrus/terminal_bsd.go
deleted file mode 100644
index d7b3893..0000000
--- a/vendor/github.com/sirupsen/logrus/terminal_bsd.go
+++ /dev/null
@@ -1,10 +0,0 @@
1// +build darwin freebsd openbsd netbsd dragonfly
2// +build !appengine
3
4package logrus
5
6import "golang.org/x/sys/unix"
7
8const ioctlReadTermios = unix.TIOCGETA
9
10type Termios unix.Termios
diff --git a/vendor/github.com/sirupsen/logrus/terminal_check_js.go b/vendor/github.com/sirupsen/logrus/terminal_check_js.go
new file mode 100644
index 0000000..0c20975
--- /dev/null
+++ b/vendor/github.com/sirupsen/logrus/terminal_check_js.go
@@ -0,0 +1,11 @@
1// +build js
2
3package logrus
4
5import (
6 "io"
7)
8
9func checkIfTerminal(w io.Writer) bool {
10 return false
11}
diff --git a/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go b/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
index 116bcb4..cf309d6 100644
--- a/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
+++ b/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
@@ -1,4 +1,4 @@
1// +build !appengine 1// +build !appengine,!js,!windows
2 2
3package logrus 3package logrus
4 4
diff --git a/vendor/github.com/sirupsen/logrus/terminal_check_windows.go b/vendor/github.com/sirupsen/logrus/terminal_check_windows.go
new file mode 100644
index 0000000..3b9d286
--- /dev/null
+++ b/vendor/github.com/sirupsen/logrus/terminal_check_windows.go
@@ -0,0 +1,20 @@
1// +build !appengine,!js,windows
2
3package logrus
4
5import (
6 "io"
7 "os"
8 "syscall"
9)
10
11func checkIfTerminal(w io.Writer) bool {
12 switch v := w.(type) {
13 case *os.File:
14 var mode uint32
15 err := syscall.GetConsoleMode(syscall.Handle(v.Fd()), &mode)
16 return err == nil
17 default:
18 return false
19 }
20}
diff --git a/vendor/github.com/sirupsen/logrus/terminal_linux.go b/vendor/github.com/sirupsen/logrus/terminal_linux.go
deleted file mode 100644
index 88d7298..0000000
--- a/vendor/github.com/sirupsen/logrus/terminal_linux.go
+++ /dev/null
@@ -1,14 +0,0 @@
1// Based on ssh/terminal:
2// Copyright 2013 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// +build !appengine
7
8package logrus
9
10import "golang.org/x/sys/unix"
11
12const ioctlReadTermios = unix.TCGETS
13
14type Termios unix.Termios
diff --git a/vendor/github.com/sirupsen/logrus/terminal_notwindows.go b/vendor/github.com/sirupsen/logrus/terminal_notwindows.go
new file mode 100644
index 0000000..3dbd237
--- /dev/null
+++ b/vendor/github.com/sirupsen/logrus/terminal_notwindows.go
@@ -0,0 +1,8 @@
1// +build !windows
2
3package logrus
4
5import "io"
6
7func initTerminal(w io.Writer) {
8}
diff --git a/vendor/github.com/sirupsen/logrus/terminal_windows.go b/vendor/github.com/sirupsen/logrus/terminal_windows.go
new file mode 100644
index 0000000..b4ef528
--- /dev/null
+++ b/vendor/github.com/sirupsen/logrus/terminal_windows.go
@@ -0,0 +1,18 @@
1// +build !appengine,!js,windows
2
3package logrus
4
5import (
6 "io"
7 "os"
8 "syscall"
9
10 sequences "github.com/konsorten/go-windows-terminal-sequences"
11)
12
13func initTerminal(w io.Writer) {
14 switch v := w.(type) {
15 case *os.File:
16 sequences.EnableVirtualTerminalProcessing(syscall.Handle(v.Fd()), true)
17 }
18}
diff --git a/vendor/github.com/sirupsen/logrus/text_formatter.go b/vendor/github.com/sirupsen/logrus/text_formatter.go
index 61b21ca..d4663b8 100644
--- a/vendor/github.com/sirupsen/logrus/text_formatter.go
+++ b/vendor/github.com/sirupsen/logrus/text_formatter.go
@@ -3,6 +3,7 @@ package logrus
3import ( 3import (
4 "bytes" 4 "bytes"
5 "fmt" 5 "fmt"
6 "os"
6 "sort" 7 "sort"
7 "strings" 8 "strings"
8 "sync" 9 "sync"
@@ -20,6 +21,7 @@ const (
20 21
21var ( 22var (
22 baseTimestamp time.Time 23 baseTimestamp time.Time
24 emptyFieldMap FieldMap
23) 25)
24 26
25func init() { 27func init() {
@@ -34,6 +36,9 @@ type TextFormatter struct {
34 // Force disabling colors. 36 // Force disabling colors.
35 DisableColors bool 37 DisableColors bool
36 38
39 // Override coloring based on CLICOLOR and CLICOLOR_FORCE. - https://bixense.com/clicolors/
40 EnvironmentOverrideColors bool
41
37 // Disable timestamp logging. useful when output is redirected to logging 42 // Disable timestamp logging. useful when output is redirected to logging
38 // system that already adds timestamps. 43 // system that already adds timestamps.
39 DisableTimestamp bool 44 DisableTimestamp bool
@@ -50,60 +55,124 @@ type TextFormatter struct {
50 // be desired. 55 // be desired.
51 DisableSorting bool 56 DisableSorting bool
52 57
58 // The keys sorting function, when uninitialized it uses sort.Strings.
59 SortingFunc func([]string)
60
61 // Disables the truncation of the level text to 4 characters.
62 DisableLevelTruncation bool
63
53 // QuoteEmptyFields will wrap empty fields in quotes if true 64 // QuoteEmptyFields will wrap empty fields in quotes if true
54 QuoteEmptyFields bool 65 QuoteEmptyFields bool
55 66
56 // Whether the logger's out is to a terminal 67 // Whether the logger's out is to a terminal
57 isTerminal bool 68 isTerminal bool
58 69
59 sync.Once 70 // FieldMap allows users to customize the names of keys for default fields.
71 // As an example:
72 // formatter := &TextFormatter{
73 // FieldMap: FieldMap{
74 // FieldKeyTime: "@timestamp",
75 // FieldKeyLevel: "@level",
76 // FieldKeyMsg: "@message"}}
77 FieldMap FieldMap
78
79 terminalInitOnce sync.Once
60} 80}
61 81
62func (f *TextFormatter) init(entry *Entry) { 82func (f *TextFormatter) init(entry *Entry) {
63 if entry.Logger != nil { 83 if entry.Logger != nil {
64 f.isTerminal = checkIfTerminal(entry.Logger.Out) 84 f.isTerminal = checkIfTerminal(entry.Logger.Out)
85
86 if f.isTerminal {
87 initTerminal(entry.Logger.Out)
88 }
89 }
90}
91
92func (f *TextFormatter) isColored() bool {
93 isColored := f.ForceColors || f.isTerminal
94
95 if f.EnvironmentOverrideColors {
96 if force, ok := os.LookupEnv("CLICOLOR_FORCE"); ok && force != "0" {
97 isColored = true
98 } else if ok && force == "0" {
99 isColored = false
100 } else if os.Getenv("CLICOLOR") == "0" {
101 isColored = false
102 }
65 } 103 }
104
105 return isColored && !f.DisableColors
66} 106}
67 107
68// Format renders a single log entry 108// Format renders a single log entry
69func (f *TextFormatter) Format(entry *Entry) ([]byte, error) { 109func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
70 var b *bytes.Buffer 110 prefixFieldClashes(entry.Data, f.FieldMap)
111
71 keys := make([]string, 0, len(entry.Data)) 112 keys := make([]string, 0, len(entry.Data))
72 for k := range entry.Data { 113 for k := range entry.Data {
73 keys = append(keys, k) 114 keys = append(keys, k)
74 } 115 }
75 116
117 fixedKeys := make([]string, 0, 4+len(entry.Data))
118 if !f.DisableTimestamp {
119 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyTime))
120 }
121 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyLevel))
122 if entry.Message != "" {
123 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyMsg))
124 }
125 if entry.err != "" {
126 fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyLogrusError))
127 }
128
76 if !f.DisableSorting { 129 if !f.DisableSorting {
77 sort.Strings(keys) 130 if f.SortingFunc == nil {
131 sort.Strings(keys)
132 fixedKeys = append(fixedKeys, keys...)
133 } else {
134 if !f.isColored() {
135 fixedKeys = append(fixedKeys, keys...)
136 f.SortingFunc(fixedKeys)
137 } else {
138 f.SortingFunc(keys)
139 }
140 }
141 } else {
142 fixedKeys = append(fixedKeys, keys...)
78 } 143 }
144
145 var b *bytes.Buffer
79 if entry.Buffer != nil { 146 if entry.Buffer != nil {
80 b = entry.Buffer 147 b = entry.Buffer
81 } else { 148 } else {
82 b = &bytes.Buffer{} 149 b = &bytes.Buffer{}
83 } 150 }
84 151
85 prefixFieldClashes(entry.Data) 152 f.terminalInitOnce.Do(func() { f.init(entry) })
86
87 f.Do(func() { f.init(entry) })
88
89 isColored := (f.ForceColors || f.isTerminal) && !f.DisableColors
90 153
91 timestampFormat := f.TimestampFormat 154 timestampFormat := f.TimestampFormat
92 if timestampFormat == "" { 155 if timestampFormat == "" {
93 timestampFormat = defaultTimestampFormat 156 timestampFormat = defaultTimestampFormat
94 } 157 }
95 if isColored { 158 if f.isColored() {
96 f.printColored(b, entry, keys, timestampFormat) 159 f.printColored(b, entry, keys, timestampFormat)
97 } else { 160 } else {
98 if !f.DisableTimestamp { 161 for _, key := range fixedKeys {
99 f.appendKeyValue(b, "time", entry.Time.Format(timestampFormat)) 162 var value interface{}
100 } 163 switch key {
101 f.appendKeyValue(b, "level", entry.Level.String()) 164 case f.FieldMap.resolve(FieldKeyTime):
102 if entry.Message != "" { 165 value = entry.Time.Format(timestampFormat)
103 f.appendKeyValue(b, "msg", entry.Message) 166 case f.FieldMap.resolve(FieldKeyLevel):
104 } 167 value = entry.Level.String()
105 for _, key := range keys { 168 case f.FieldMap.resolve(FieldKeyMsg):
106 f.appendKeyValue(b, key, entry.Data[key]) 169 value = entry.Message
170 case f.FieldMap.resolve(FieldKeyLogrusError):
171 value = entry.err
172 default:
173 value = entry.Data[key]
174 }
175 f.appendKeyValue(b, key, value)
107 } 176 }
108 } 177 }
109 178
@@ -124,7 +193,14 @@ func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []strin
124 levelColor = blue 193 levelColor = blue
125 } 194 }
126 195
127 levelText := strings.ToUpper(entry.Level.String())[0:4] 196 levelText := strings.ToUpper(entry.Level.String())
197 if !f.DisableLevelTruncation {
198 levelText = levelText[0:4]
199 }
200
201 // Remove a single newline if it already exists in the message to keep
202 // the behavior of logrus text_formatter the same as the stdlib log package
203 entry.Message = strings.TrimSuffix(entry.Message, "\n")
128 204
129 if f.DisableTimestamp { 205 if f.DisableTimestamp {
130 fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m %-44s ", levelColor, levelText, entry.Message) 206 fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m %-44s ", levelColor, levelText, entry.Message)
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util.go b/vendor/golang.org/x/crypto/ssh/terminal/util.go
index 02dad48..731c89a 100644
--- a/vendor/golang.org/x/crypto/ssh/terminal/util.go
+++ b/vendor/golang.org/x/crypto/ssh/terminal/util.go
@@ -108,9 +108,7 @@ func ReadPassword(fd int) ([]byte, error) {
108 return nil, err 108 return nil, err
109 } 109 }
110 110
111 defer func() { 111 defer unix.IoctlSetTermios(fd, ioctlWriteTermios, termios)
112 unix.IoctlSetTermios(fd, ioctlWriteTermios, termios)
113 }()
114 112
115 return readPasswordLine(passwordReader(fd)) 113 return readPasswordLine(passwordReader(fd))
116} 114}
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go b/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go
index a2e1b57..9e41b9f 100644
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go
+++ b/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go
@@ -14,7 +14,7 @@ import (
14 14
15// State contains the state of a terminal. 15// State contains the state of a terminal.
16type State struct { 16type State struct {
17 state *unix.Termios 17 termios unix.Termios
18} 18}
19 19
20// IsTerminal returns true if the given file descriptor is a terminal. 20// IsTerminal returns true if the given file descriptor is a terminal.
@@ -75,47 +75,43 @@ func ReadPassword(fd int) ([]byte, error) {
75// restored. 75// restored.
76// see http://cr.illumos.org/~webrev/andy_js/1060/ 76// see http://cr.illumos.org/~webrev/andy_js/1060/
77func MakeRaw(fd int) (*State, error) { 77func MakeRaw(fd int) (*State, error) {
78 oldTermiosPtr, err := unix.IoctlGetTermios(fd, unix.TCGETS) 78 termios, err := unix.IoctlGetTermios(fd, unix.TCGETS)
79 if err != nil { 79 if err != nil {
80 return nil, err 80 return nil, err
81 } 81 }
82 oldTermios := *oldTermiosPtr 82
83 83 oldState := State{termios: *termios}
84 newTermios := oldTermios 84
85 newTermios.Iflag &^= syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | syscall.ICRNL | syscall.IXON 85 termios.Iflag &^= unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON
86 newTermios.Oflag &^= syscall.OPOST 86 termios.Oflag &^= unix.OPOST
87 newTermios.Lflag &^= syscall.ECHO | syscall.ECHONL | syscall.ICANON | syscall.ISIG | syscall.IEXTEN 87 termios.Lflag &^= unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN
88 newTermios.Cflag &^= syscall.CSIZE | syscall.PARENB 88 termios.Cflag &^= unix.CSIZE | unix.PARENB
89 newTermios.Cflag |= syscall.CS8 89 termios.Cflag |= unix.CS8
90 newTermios.Cc[unix.VMIN] = 1 90 termios.Cc[unix.VMIN] = 1
91 newTermios.Cc[unix.VTIME] = 0 91 termios.Cc[unix.VTIME] = 0
92 92
93 if err := unix.IoctlSetTermios(fd, unix.TCSETS, &newTermios); err != nil { 93 if err := unix.IoctlSetTermios(fd, unix.TCSETS, termios); err != nil {
94 return nil, err 94 return nil, err
95 } 95 }
96 96
97 return &State{ 97 return &oldState, nil
98 state: oldTermiosPtr,
99 }, nil
100} 98}
101 99
102// Restore restores the terminal connected to the given file descriptor to a 100// Restore restores the terminal connected to the given file descriptor to a
103// previous state. 101// previous state.
104func Restore(fd int, oldState *State) error { 102func Restore(fd int, oldState *State) error {
105 return unix.IoctlSetTermios(fd, unix.TCSETS, oldState.state) 103 return unix.IoctlSetTermios(fd, unix.TCSETS, &oldState.termios)
106} 104}
107 105
108// GetState returns the current state of a terminal which may be useful to 106// GetState returns the current state of a terminal which may be useful to
109// restore the terminal after a signal. 107// restore the terminal after a signal.
110func GetState(fd int) (*State, error) { 108func GetState(fd int) (*State, error) {
111 oldTermiosPtr, err := unix.IoctlGetTermios(fd, unix.TCGETS) 109 termios, err := unix.IoctlGetTermios(fd, unix.TCGETS)
112 if err != nil { 110 if err != nil {
113 return nil, err 111 return nil, err
114 } 112 }
115 113
116 return &State{ 114 return &State{termios: *termios}, nil
117 state: oldTermiosPtr,
118 }, nil
119} 115}
120 116
121// GetSize returns the dimensions of the given terminal. 117// GetSize returns the dimensions of the given terminal.
diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
index 4933ac3..8618955 100644
--- a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
+++ b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
@@ -89,9 +89,7 @@ func ReadPassword(fd int) ([]byte, error) {
89 return nil, err 89 return nil, err
90 } 90 }
91 91
92 defer func() { 92 defer windows.SetConsoleMode(windows.Handle(fd), old)
93 windows.SetConsoleMode(windows.Handle(fd), old)
94 }()
95 93
96 var h windows.Handle 94 var h windows.Handle
97 p, _ := windows.GetCurrentProcess() 95 p, _ := windows.GetCurrentProcess()
diff --git a/vendor/golang.org/x/net/bpf/instructions.go b/vendor/golang.org/x/net/bpf/instructions.go
index 3b4fd08..f9dc0e8 100644
--- a/vendor/golang.org/x/net/bpf/instructions.go
+++ b/vendor/golang.org/x/net/bpf/instructions.go
@@ -198,7 +198,7 @@ func (a LoadConstant) Assemble() (RawInstruction, error) {
198 return assembleLoad(a.Dst, 4, opAddrModeImmediate, a.Val) 198 return assembleLoad(a.Dst, 4, opAddrModeImmediate, a.Val)
199} 199}
200 200
201// String returns the the instruction in assembler notation. 201// String returns the instruction in assembler notation.
202func (a LoadConstant) String() string { 202func (a LoadConstant) String() string {
203 switch a.Dst { 203 switch a.Dst {
204 case RegA: 204 case RegA:
@@ -224,7 +224,7 @@ func (a LoadScratch) Assemble() (RawInstruction, error) {
224 return assembleLoad(a.Dst, 4, opAddrModeScratch, uint32(a.N)) 224 return assembleLoad(a.Dst, 4, opAddrModeScratch, uint32(a.N))
225} 225}
226 226
227// String returns the the instruction in assembler notation. 227// String returns the instruction in assembler notation.
228func (a LoadScratch) String() string { 228func (a LoadScratch) String() string {
229 switch a.Dst { 229 switch a.Dst {
230 case RegA: 230 case RegA:
@@ -248,7 +248,7 @@ func (a LoadAbsolute) Assemble() (RawInstruction, error) {
248 return assembleLoad(RegA, a.Size, opAddrModeAbsolute, a.Off) 248 return assembleLoad(RegA, a.Size, opAddrModeAbsolute, a.Off)
249} 249}
250 250
251// String returns the the instruction in assembler notation. 251// String returns the instruction in assembler notation.
252func (a LoadAbsolute) String() string { 252func (a LoadAbsolute) String() string {
253 switch a.Size { 253 switch a.Size {
254 case 1: // byte 254 case 1: // byte
@@ -277,7 +277,7 @@ func (a LoadIndirect) Assemble() (RawInstruction, error) {
277 return assembleLoad(RegA, a.Size, opAddrModeIndirect, a.Off) 277 return assembleLoad(RegA, a.Size, opAddrModeIndirect, a.Off)
278} 278}
279 279
280// String returns the the instruction in assembler notation. 280// String returns the instruction in assembler notation.
281func (a LoadIndirect) String() string { 281func (a LoadIndirect) String() string {
282 switch a.Size { 282 switch a.Size {
283 case 1: // byte 283 case 1: // byte
@@ -306,7 +306,7 @@ func (a LoadMemShift) Assemble() (RawInstruction, error) {
306 return assembleLoad(RegX, 1, opAddrModeMemShift, a.Off) 306 return assembleLoad(RegX, 1, opAddrModeMemShift, a.Off)
307} 307}
308 308
309// String returns the the instruction in assembler notation. 309// String returns the instruction in assembler notation.
310func (a LoadMemShift) String() string { 310func (a LoadMemShift) String() string {
311 return fmt.Sprintf("ldx 4*([%d]&0xf)", a.Off) 311 return fmt.Sprintf("ldx 4*([%d]&0xf)", a.Off)
312} 312}
@@ -325,7 +325,7 @@ func (a LoadExtension) Assemble() (RawInstruction, error) {
325 return assembleLoad(RegA, 4, opAddrModeAbsolute, uint32(extOffset+a.Num)) 325 return assembleLoad(RegA, 4, opAddrModeAbsolute, uint32(extOffset+a.Num))
326} 326}
327 327
328// String returns the the instruction in assembler notation. 328// String returns the instruction in assembler notation.
329func (a LoadExtension) String() string { 329func (a LoadExtension) String() string {
330 switch a.Num { 330 switch a.Num {
331 case ExtLen: 331 case ExtLen:
@@ -392,7 +392,7 @@ func (a StoreScratch) Assemble() (RawInstruction, error) {
392 }, nil 392 }, nil
393} 393}
394 394
395// String returns the the instruction in assembler notation. 395// String returns the instruction in assembler notation.
396func (a StoreScratch) String() string { 396func (a StoreScratch) String() string {
397 switch a.Src { 397 switch a.Src {
398 case RegA: 398 case RegA:
@@ -418,7 +418,7 @@ func (a ALUOpConstant) Assemble() (RawInstruction, error) {
418 }, nil 418 }, nil
419} 419}
420 420
421// String returns the the instruction in assembler notation. 421// String returns the instruction in assembler notation.
422func (a ALUOpConstant) String() string { 422func (a ALUOpConstant) String() string {
423 switch a.Op { 423 switch a.Op {
424 case ALUOpAdd: 424 case ALUOpAdd:
@@ -458,7 +458,7 @@ func (a ALUOpX) Assemble() (RawInstruction, error) {
458 }, nil 458 }, nil
459} 459}
460 460
461// String returns the the instruction in assembler notation. 461// String returns the instruction in assembler notation.
462func (a ALUOpX) String() string { 462func (a ALUOpX) String() string {
463 switch a.Op { 463 switch a.Op {
464 case ALUOpAdd: 464 case ALUOpAdd:
@@ -496,7 +496,7 @@ func (a NegateA) Assemble() (RawInstruction, error) {
496 }, nil 496 }, nil
497} 497}
498 498
499// String returns the the instruction in assembler notation. 499// String returns the instruction in assembler notation.
500func (a NegateA) String() string { 500func (a NegateA) String() string {
501 return fmt.Sprintf("neg") 501 return fmt.Sprintf("neg")
502} 502}
@@ -514,7 +514,7 @@ func (a Jump) Assemble() (RawInstruction, error) {
514 }, nil 514 }, nil
515} 515}
516 516
517// String returns the the instruction in assembler notation. 517// String returns the instruction in assembler notation.
518func (a Jump) String() string { 518func (a Jump) String() string {
519 return fmt.Sprintf("ja %d", a.Skip) 519 return fmt.Sprintf("ja %d", a.Skip)
520} 520}
@@ -566,7 +566,7 @@ func (a JumpIf) Assemble() (RawInstruction, error) {
566 }, nil 566 }, nil
567} 567}
568 568
569// String returns the the instruction in assembler notation. 569// String returns the instruction in assembler notation.
570func (a JumpIf) String() string { 570func (a JumpIf) String() string {
571 switch a.Cond { 571 switch a.Cond {
572 // K == A 572 // K == A
@@ -621,7 +621,7 @@ func (a RetA) Assemble() (RawInstruction, error) {
621 }, nil 621 }, nil
622} 622}
623 623
624// String returns the the instruction in assembler notation. 624// String returns the instruction in assembler notation.
625func (a RetA) String() string { 625func (a RetA) String() string {
626 return fmt.Sprintf("ret a") 626 return fmt.Sprintf("ret a")
627} 627}
@@ -639,7 +639,7 @@ func (a RetConstant) Assemble() (RawInstruction, error) {
639 }, nil 639 }, nil
640} 640}
641 641
642// String returns the the instruction in assembler notation. 642// String returns the instruction in assembler notation.
643func (a RetConstant) String() string { 643func (a RetConstant) String() string {
644 return fmt.Sprintf("ret #%d", a.Val) 644 return fmt.Sprintf("ret #%d", a.Val)
645} 645}
@@ -654,7 +654,7 @@ func (a TXA) Assemble() (RawInstruction, error) {
654 }, nil 654 }, nil
655} 655}
656 656
657// String returns the the instruction in assembler notation. 657// String returns the instruction in assembler notation.
658func (a TXA) String() string { 658func (a TXA) String() string {
659 return fmt.Sprintf("txa") 659 return fmt.Sprintf("txa")
660} 660}
@@ -669,7 +669,7 @@ func (a TAX) Assemble() (RawInstruction, error) {
669 }, nil 669 }, nil
670} 670}
671 671
672// String returns the the instruction in assembler notation. 672// String returns the instruction in assembler notation.
673func (a TAX) String() string { 673func (a TAX) String() string {
674 return fmt.Sprintf("tax") 674 return fmt.Sprintf("tax")
675} 675}
diff --git a/vendor/golang.org/x/net/internal/iana/const.go b/vendor/golang.org/x/net/internal/iana/const.go
index c9df24d..cea712f 100644
--- a/vendor/golang.org/x/net/internal/iana/const.go
+++ b/vendor/golang.org/x/net/internal/iana/const.go
@@ -1,44 +1,40 @@
1// go generate gen.go 1// go generate gen.go
2// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4// Package iana provides protocol number resources managed by the Internet Assigned Numbers Authority (IANA). 4// Package iana provides protocol number resources managed by the Internet Assigned Numbers Authority (IANA).
5package iana // import "golang.org/x/net/internal/iana" 5package iana // import "golang.org/x/net/internal/iana"
6 6
7// Differentiated Services Field Codepoints (DSCP), Updated: 2017-05-12 7// Differentiated Services Field Codepoints (DSCP), Updated: 2018-05-04
8const ( 8const (
9 DiffServCS0 = 0x0 // CS0 9 DiffServCS0 = 0x00 // CS0
10 DiffServCS1 = 0x20 // CS1 10 DiffServCS1 = 0x20 // CS1
11 DiffServCS2 = 0x40 // CS2 11 DiffServCS2 = 0x40 // CS2
12 DiffServCS3 = 0x60 // CS3 12 DiffServCS3 = 0x60 // CS3
13 DiffServCS4 = 0x80 // CS4 13 DiffServCS4 = 0x80 // CS4
14 DiffServCS5 = 0xa0 // CS5 14 DiffServCS5 = 0xa0 // CS5
15 DiffServCS6 = 0xc0 // CS6 15 DiffServCS6 = 0xc0 // CS6
16 DiffServCS7 = 0xe0 // CS7 16 DiffServCS7 = 0xe0 // CS7
17 DiffServAF11 = 0x28 // AF11 17 DiffServAF11 = 0x28 // AF11
18 DiffServAF12 = 0x30 // AF12 18 DiffServAF12 = 0x30 // AF12
19 DiffServAF13 = 0x38 // AF13 19 DiffServAF13 = 0x38 // AF13
20 DiffServAF21 = 0x48 // AF21 20 DiffServAF21 = 0x48 // AF21
21 DiffServAF22 = 0x50 // AF22 21 DiffServAF22 = 0x50 // AF22
22 DiffServAF23 = 0x58 // AF23 22 DiffServAF23 = 0x58 // AF23
23 DiffServAF31 = 0x68 // AF31 23 DiffServAF31 = 0x68 // AF31
24 DiffServAF32 = 0x70 // AF32 24 DiffServAF32 = 0x70 // AF32
25 DiffServAF33 = 0x78 // AF33 25 DiffServAF33 = 0x78 // AF33
26 DiffServAF41 = 0x88 // AF41 26 DiffServAF41 = 0x88 // AF41
27 DiffServAF42 = 0x90 // AF42 27 DiffServAF42 = 0x90 // AF42
28 DiffServAF43 = 0x98 // AF43 28 DiffServAF43 = 0x98 // AF43
29 DiffServEF = 0xb8 // EF 29 DiffServEF = 0xb8 // EF
30 DiffServVOICEADMIT = 0xb0 // VOICE-ADMIT 30 DiffServVOICEADMIT = 0xb0 // VOICE-ADMIT
31 NotECNTransport = 0x00 // Not-ECT (Not ECN-Capable Transport)
32 ECNTransport1 = 0x01 // ECT(1) (ECN-Capable Transport(1))
33 ECNTransport0 = 0x02 // ECT(0) (ECN-Capable Transport(0))
34 CongestionExperienced = 0x03 // CE (Congestion Experienced)
31) 35)
32 36
33// IPv4 TOS Byte and IPv6 Traffic Class Octet, Updated: 2001-09-06 37// Protocol Numbers, Updated: 2017-10-13
34const (
35 NotECNTransport = 0x0 // Not-ECT (Not ECN-Capable Transport)
36 ECNTransport1 = 0x1 // ECT(1) (ECN-Capable Transport(1))
37 ECNTransport0 = 0x2 // ECT(0) (ECN-Capable Transport(0))
38 CongestionExperienced = 0x3 // CE (Congestion Experienced)
39)
40
41// Protocol Numbers, Updated: 2016-06-22
42const ( 38const (
43 ProtocolIP = 0 // IPv4 encapsulation, pseudo protocol number 39 ProtocolIP = 0 // IPv4 encapsulation, pseudo protocol number
44 ProtocolHOPOPT = 0 // IPv6 Hop-by-Hop Option 40 ProtocolHOPOPT = 0 // IPv6 Hop-by-Hop Option
@@ -178,3 +174,50 @@ const (
178 ProtocolROHC = 142 // Robust Header Compression 174 ProtocolROHC = 142 // Robust Header Compression
179 ProtocolReserved = 255 // Reserved 175 ProtocolReserved = 255 // Reserved
180) 176)
177
178// Address Family Numbers, Updated: 2018-04-02
179const (
180 AddrFamilyIPv4 = 1 // IP (IP version 4)
181 AddrFamilyIPv6 = 2 // IP6 (IP version 6)
182 AddrFamilyNSAP = 3 // NSAP
183 AddrFamilyHDLC = 4 // HDLC (8-bit multidrop)
184 AddrFamilyBBN1822 = 5 // BBN 1822
185 AddrFamily802 = 6 // 802 (includes all 802 media plus Ethernet "canonical format")
186 AddrFamilyE163 = 7 // E.163
187 AddrFamilyE164 = 8 // E.164 (SMDS, Frame Relay, ATM)
188 AddrFamilyF69 = 9 // F.69 (Telex)
189 AddrFamilyX121 = 10 // X.121 (X.25, Frame Relay)
190 AddrFamilyIPX = 11 // IPX
191 AddrFamilyAppletalk = 12 // Appletalk
192 AddrFamilyDecnetIV = 13 // Decnet IV
193 AddrFamilyBanyanVines = 14 // Banyan Vines
194 AddrFamilyE164withSubaddress = 15 // E.164 with NSAP format subaddress
195 AddrFamilyDNS = 16 // DNS (Domain Name System)
196 AddrFamilyDistinguishedName = 17 // Distinguished Name
197 AddrFamilyASNumber = 18 // AS Number
198 AddrFamilyXTPoverIPv4 = 19 // XTP over IP version 4
199 AddrFamilyXTPoverIPv6 = 20 // XTP over IP version 6
200 AddrFamilyXTPnativemodeXTP = 21 // XTP native mode XTP
201 AddrFamilyFibreChannelWorldWidePortName = 22 // Fibre Channel World-Wide Port Name
202 AddrFamilyFibreChannelWorldWideNodeName = 23 // Fibre Channel World-Wide Node Name
203 AddrFamilyGWID = 24 // GWID
204 AddrFamilyL2VPN = 25 // AFI for L2VPN information
205 AddrFamilyMPLSTPSectionEndpointID = 26 // MPLS-TP Section Endpoint Identifier
206 AddrFamilyMPLSTPLSPEndpointID = 27 // MPLS-TP LSP Endpoint Identifier
207 AddrFamilyMPLSTPPseudowireEndpointID = 28 // MPLS-TP Pseudowire Endpoint Identifier
208 AddrFamilyMTIPv4 = 29 // MT IP: Multi-Topology IP version 4
209 AddrFamilyMTIPv6 = 30 // MT IPv6: Multi-Topology IP version 6
210 AddrFamilyEIGRPCommonServiceFamily = 16384 // EIGRP Common Service Family
211 AddrFamilyEIGRPIPv4ServiceFamily = 16385 // EIGRP IPv4 Service Family
212 AddrFamilyEIGRPIPv6ServiceFamily = 16386 // EIGRP IPv6 Service Family
213 AddrFamilyLISPCanonicalAddressFormat = 16387 // LISP Canonical Address Format (LCAF)
214 AddrFamilyBGPLS = 16388 // BGP-LS
215 AddrFamily48bitMAC = 16389 // 48-bit MAC
216 AddrFamily64bitMAC = 16390 // 64-bit MAC
217 AddrFamilyOUI = 16391 // OUI
218 AddrFamilyMACFinal24bits = 16392 // MAC/24
219 AddrFamilyMACFinal40bits = 16393 // MAC/40
220 AddrFamilyIPv6Initial64bits = 16394 // IPv6/64
221 AddrFamilyRBridgePortID = 16395 // RBridge Port ID
222 AddrFamilyTRILLNickname = 16396 // TRILL Nickname
223)
diff --git a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go
index 206ea2d..db60491 100644
--- a/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go
+++ b/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go
@@ -26,6 +26,11 @@ type msghdr struct {
26 Flags int32 26 Flags int32
27} 27}
28 28
29type mmsghdr struct {
30 Hdr msghdr
31 Len uint32
32}
33
29type cmsghdr struct { 34type cmsghdr struct {
30 Len uint32 35 Len uint32
31 Level int32 36 Level int32
@@ -52,6 +57,7 @@ type sockaddrInet6 struct {
52const ( 57const (
53 sizeofIovec = 0x8 58 sizeofIovec = 0x8
54 sizeofMsghdr = 0x1c 59 sizeofMsghdr = 0x1c
60 sizeofMmsghdr = 0x20
55 sizeofCmsghdr = 0xc 61 sizeofCmsghdr = 0xc
56 62
57 sizeofSockaddrInet = 0x10 63 sizeofSockaddrInet = 0x10
diff --git a/vendor/golang.org/x/net/ipv4/batch.go b/vendor/golang.org/x/net/ipv4/batch.go
index b445499..5ce9b35 100644
--- a/vendor/golang.org/x/net/ipv4/batch.go
+++ b/vendor/golang.org/x/net/ipv4/batch.go
@@ -9,7 +9,6 @@ package ipv4
9import ( 9import (
10 "net" 10 "net"
11 "runtime" 11 "runtime"
12 "syscall"
13 12
14 "golang.org/x/net/internal/socket" 13 "golang.org/x/net/internal/socket"
15) 14)
@@ -76,7 +75,7 @@ type Message = socket.Message
76// headers. 75// headers.
77func (c *payloadHandler) ReadBatch(ms []Message, flags int) (int, error) { 76func (c *payloadHandler) ReadBatch(ms []Message, flags int) (int, error) {
78 if !c.ok() { 77 if !c.ok() {
79 return 0, syscall.EINVAL 78 return 0, errInvalidConn
80 } 79 }
81 switch runtime.GOOS { 80 switch runtime.GOOS {
82 case "linux": 81 case "linux":
@@ -107,7 +106,7 @@ func (c *payloadHandler) ReadBatch(ms []Message, flags int) (int, error) {
107// On other platforms, this method will write only a single message. 106// On other platforms, this method will write only a single message.
108func (c *payloadHandler) WriteBatch(ms []Message, flags int) (int, error) { 107func (c *payloadHandler) WriteBatch(ms []Message, flags int) (int, error) {
109 if !c.ok() { 108 if !c.ok() {
110 return 0, syscall.EINVAL 109 return 0, errInvalidConn
111 } 110 }
112 switch runtime.GOOS { 111 switch runtime.GOOS {
113 case "linux": 112 case "linux":
@@ -139,7 +138,7 @@ func (c *payloadHandler) WriteBatch(ms []Message, flags int) (int, error) {
139// On other platforms, this method will read only a single message. 138// On other platforms, this method will read only a single message.
140func (c *packetHandler) ReadBatch(ms []Message, flags int) (int, error) { 139func (c *packetHandler) ReadBatch(ms []Message, flags int) (int, error) {
141 if !c.ok() { 140 if !c.ok() {
142 return 0, syscall.EINVAL 141 return 0, errInvalidConn
143 } 142 }
144 switch runtime.GOOS { 143 switch runtime.GOOS {
145 case "linux": 144 case "linux":
@@ -170,7 +169,7 @@ func (c *packetHandler) ReadBatch(ms []Message, flags int) (int, error) {
170// On other platforms, this method will write only a single message. 169// On other platforms, this method will write only a single message.
171func (c *packetHandler) WriteBatch(ms []Message, flags int) (int, error) { 170func (c *packetHandler) WriteBatch(ms []Message, flags int) (int, error) {
172 if !c.ok() { 171 if !c.ok() {
173 return 0, syscall.EINVAL 172 return 0, errInvalidConn
174 } 173 }
175 switch runtime.GOOS { 174 switch runtime.GOOS {
176 case "linux": 175 case "linux":
diff --git a/vendor/golang.org/x/net/ipv4/dgramopt.go b/vendor/golang.org/x/net/ipv4/dgramopt.go
index 54d77d5..3676449 100644
--- a/vendor/golang.org/x/net/ipv4/dgramopt.go
+++ b/vendor/golang.org/x/net/ipv4/dgramopt.go
@@ -6,7 +6,6 @@ package ipv4
6 6
7import ( 7import (
8 "net" 8 "net"
9 "syscall"
10 9
11 "golang.org/x/net/bpf" 10 "golang.org/x/net/bpf"
12) 11)
@@ -15,7 +14,7 @@ import (
15// multicast packets. 14// multicast packets.
16func (c *dgramOpt) MulticastTTL() (int, error) { 15func (c *dgramOpt) MulticastTTL() (int, error) {
17 if !c.ok() { 16 if !c.ok() {
18 return 0, syscall.EINVAL 17 return 0, errInvalidConn
19 } 18 }
20 so, ok := sockOpts[ssoMulticastTTL] 19 so, ok := sockOpts[ssoMulticastTTL]
21 if !ok { 20 if !ok {
@@ -28,7 +27,7 @@ func (c *dgramOpt) MulticastTTL() (int, error) {
28// outgoing multicast packets. 27// outgoing multicast packets.
29func (c *dgramOpt) SetMulticastTTL(ttl int) error { 28func (c *dgramOpt) SetMulticastTTL(ttl int) error {
30 if !c.ok() { 29 if !c.ok() {
31 return syscall.EINVAL 30 return errInvalidConn
32 } 31 }
33 so, ok := sockOpts[ssoMulticastTTL] 32 so, ok := sockOpts[ssoMulticastTTL]
34 if !ok { 33 if !ok {
@@ -41,7 +40,7 @@ func (c *dgramOpt) SetMulticastTTL(ttl int) error {
41// packet transmissions. 40// packet transmissions.
42func (c *dgramOpt) MulticastInterface() (*net.Interface, error) { 41func (c *dgramOpt) MulticastInterface() (*net.Interface, error) {
43 if !c.ok() { 42 if !c.ok() {
44 return nil, syscall.EINVAL 43 return nil, errInvalidConn
45 } 44 }
46 so, ok := sockOpts[ssoMulticastInterface] 45 so, ok := sockOpts[ssoMulticastInterface]
47 if !ok { 46 if !ok {
@@ -54,7 +53,7 @@ func (c *dgramOpt) MulticastInterface() (*net.Interface, error) {
54// multicast packet transmissions. 53// multicast packet transmissions.
55func (c *dgramOpt) SetMulticastInterface(ifi *net.Interface) error { 54func (c *dgramOpt) SetMulticastInterface(ifi *net.Interface) error {
56 if !c.ok() { 55 if !c.ok() {
57 return syscall.EINVAL 56 return errInvalidConn
58 } 57 }
59 so, ok := sockOpts[ssoMulticastInterface] 58 so, ok := sockOpts[ssoMulticastInterface]
60 if !ok { 59 if !ok {
@@ -67,7 +66,7 @@ func (c *dgramOpt) SetMulticastInterface(ifi *net.Interface) error {
67// should be copied and send back to the originator. 66// should be copied and send back to the originator.
68func (c *dgramOpt) MulticastLoopback() (bool, error) { 67func (c *dgramOpt) MulticastLoopback() (bool, error) {
69 if !c.ok() { 68 if !c.ok() {
70 return false, syscall.EINVAL 69 return false, errInvalidConn
71 } 70 }
72 so, ok := sockOpts[ssoMulticastLoopback] 71 so, ok := sockOpts[ssoMulticastLoopback]
73 if !ok { 72 if !ok {
@@ -84,7 +83,7 @@ func (c *dgramOpt) MulticastLoopback() (bool, error) {
84// should be copied and send back to the originator. 83// should be copied and send back to the originator.
85func (c *dgramOpt) SetMulticastLoopback(on bool) error { 84func (c *dgramOpt) SetMulticastLoopback(on bool) error {
86 if !c.ok() { 85 if !c.ok() {
87 return syscall.EINVAL 86 return errInvalidConn
88 } 87 }
89 so, ok := sockOpts[ssoMulticastLoopback] 88 so, ok := sockOpts[ssoMulticastLoopback]
90 if !ok { 89 if !ok {
@@ -104,7 +103,7 @@ func (c *dgramOpt) SetMulticastLoopback(on bool) error {
104// configuration. 103// configuration.
105func (c *dgramOpt) JoinGroup(ifi *net.Interface, group net.Addr) error { 104func (c *dgramOpt) JoinGroup(ifi *net.Interface, group net.Addr) error {
106 if !c.ok() { 105 if !c.ok() {
107 return syscall.EINVAL 106 return errInvalidConn
108 } 107 }
109 so, ok := sockOpts[ssoJoinGroup] 108 so, ok := sockOpts[ssoJoinGroup]
110 if !ok { 109 if !ok {
@@ -122,7 +121,7 @@ func (c *dgramOpt) JoinGroup(ifi *net.Interface, group net.Addr) error {
122// source-specific group. 121// source-specific group.
123func (c *dgramOpt) LeaveGroup(ifi *net.Interface, group net.Addr) error { 122func (c *dgramOpt) LeaveGroup(ifi *net.Interface, group net.Addr) error {
124 if !c.ok() { 123 if !c.ok() {
125 return syscall.EINVAL 124 return errInvalidConn
126 } 125 }
127 so, ok := sockOpts[ssoLeaveGroup] 126 so, ok := sockOpts[ssoLeaveGroup]
128 if !ok { 127 if !ok {
@@ -143,7 +142,7 @@ func (c *dgramOpt) LeaveGroup(ifi *net.Interface, group net.Addr) error {
143// routing configuration. 142// routing configuration.
144func (c *dgramOpt) JoinSourceSpecificGroup(ifi *net.Interface, group, source net.Addr) error { 143func (c *dgramOpt) JoinSourceSpecificGroup(ifi *net.Interface, group, source net.Addr) error {
145 if !c.ok() { 144 if !c.ok() {
146 return syscall.EINVAL 145 return errInvalidConn
147 } 146 }
148 so, ok := sockOpts[ssoJoinSourceGroup] 147 so, ok := sockOpts[ssoJoinSourceGroup]
149 if !ok { 148 if !ok {
@@ -164,7 +163,7 @@ func (c *dgramOpt) JoinSourceSpecificGroup(ifi *net.Interface, group, source net
164// interface ifi. 163// interface ifi.
165func (c *dgramOpt) LeaveSourceSpecificGroup(ifi *net.Interface, group, source net.Addr) error { 164func (c *dgramOpt) LeaveSourceSpecificGroup(ifi *net.Interface, group, source net.Addr) error {
166 if !c.ok() { 165 if !c.ok() {
167 return syscall.EINVAL 166 return errInvalidConn
168 } 167 }
169 so, ok := sockOpts[ssoLeaveSourceGroup] 168 so, ok := sockOpts[ssoLeaveSourceGroup]
170 if !ok { 169 if !ok {
@@ -186,7 +185,7 @@ func (c *dgramOpt) LeaveSourceSpecificGroup(ifi *net.Interface, group, source ne
186// ifi. 185// ifi.
187func (c *dgramOpt) ExcludeSourceSpecificGroup(ifi *net.Interface, group, source net.Addr) error { 186func (c *dgramOpt) ExcludeSourceSpecificGroup(ifi *net.Interface, group, source net.Addr) error {
188 if !c.ok() { 187 if !c.ok() {
189 return syscall.EINVAL 188 return errInvalidConn
190 } 189 }
191 so, ok := sockOpts[ssoBlockSourceGroup] 190 so, ok := sockOpts[ssoBlockSourceGroup]
192 if !ok { 191 if !ok {
@@ -207,7 +206,7 @@ func (c *dgramOpt) ExcludeSourceSpecificGroup(ifi *net.Interface, group, source
207// group by ExcludeSourceSpecificGroup again on the interface ifi. 206// group by ExcludeSourceSpecificGroup again on the interface ifi.
208func (c *dgramOpt) IncludeSourceSpecificGroup(ifi *net.Interface, group, source net.Addr) error { 207func (c *dgramOpt) IncludeSourceSpecificGroup(ifi *net.Interface, group, source net.Addr) error {
209 if !c.ok() { 208 if !c.ok() {
210 return syscall.EINVAL 209 return errInvalidConn
211 } 210 }
212 so, ok := sockOpts[ssoUnblockSourceGroup] 211 so, ok := sockOpts[ssoUnblockSourceGroup]
213 if !ok { 212 if !ok {
@@ -228,7 +227,7 @@ func (c *dgramOpt) IncludeSourceSpecificGroup(ifi *net.Interface, group, source
228// Currently only Linux supports this. 227// Currently only Linux supports this.
229func (c *dgramOpt) ICMPFilter() (*ICMPFilter, error) { 228func (c *dgramOpt) ICMPFilter() (*ICMPFilter, error) {
230 if !c.ok() { 229 if !c.ok() {
231 return nil, syscall.EINVAL 230 return nil, errInvalidConn
232 } 231 }
233 so, ok := sockOpts[ssoICMPFilter] 232 so, ok := sockOpts[ssoICMPFilter]
234 if !ok { 233 if !ok {
@@ -241,7 +240,7 @@ func (c *dgramOpt) ICMPFilter() (*ICMPFilter, error) {
241// Currently only Linux supports this. 240// Currently only Linux supports this.
242func (c *dgramOpt) SetICMPFilter(f *ICMPFilter) error { 241func (c *dgramOpt) SetICMPFilter(f *ICMPFilter) error {
243 if !c.ok() { 242 if !c.ok() {
244 return syscall.EINVAL 243 return errInvalidConn
245 } 244 }
246 so, ok := sockOpts[ssoICMPFilter] 245 so, ok := sockOpts[ssoICMPFilter]
247 if !ok { 246 if !ok {
@@ -255,7 +254,7 @@ func (c *dgramOpt) SetICMPFilter(f *ICMPFilter) error {
255// Only supported on Linux. 254// Only supported on Linux.
256func (c *dgramOpt) SetBPF(filter []bpf.RawInstruction) error { 255func (c *dgramOpt) SetBPF(filter []bpf.RawInstruction) error {
257 if !c.ok() { 256 if !c.ok() {
258 return syscall.EINVAL 257 return errInvalidConn
259 } 258 }
260 so, ok := sockOpts[ssoAttachFilter] 259 so, ok := sockOpts[ssoAttachFilter]
261 if !ok { 260 if !ok {
diff --git a/vendor/golang.org/x/net/ipv4/doc.go b/vendor/golang.org/x/net/ipv4/doc.go
index b43935a..3efa290 100644
--- a/vendor/golang.org/x/net/ipv4/doc.go
+++ b/vendor/golang.org/x/net/ipv4/doc.go
@@ -55,7 +55,7 @@
55// Multicasting 55// Multicasting
56// 56//
57// The options for multicasting are available for net.UDPConn and 57// The options for multicasting are available for net.UDPConn and
58// net.IPconn which are created as network connections that use the 58// net.IPConn which are created as network connections that use the
59// IPv4 transport. A few network facilities must be prepared before 59// IPv4 transport. A few network facilities must be prepared before
60// you begin multicasting, at a minimum joining network interfaces and 60// you begin multicasting, at a minimum joining network interfaces and
61// multicast groups. 61// multicast groups.
@@ -241,4 +241,4 @@
241// IncludeSourceSpecificGroup may return an error. 241// IncludeSourceSpecificGroup may return an error.
242package ipv4 // import "golang.org/x/net/ipv4" 242package ipv4 // import "golang.org/x/net/ipv4"
243 243
244// BUG(mikio): This package is not implemented on NaCl and Plan 9. 244// BUG(mikio): This package is not implemented on JS, NaCl and Plan 9.
diff --git a/vendor/golang.org/x/net/ipv4/endpoint.go b/vendor/golang.org/x/net/ipv4/endpoint.go
index 2ab8773..5009463 100644
--- a/vendor/golang.org/x/net/ipv4/endpoint.go
+++ b/vendor/golang.org/x/net/ipv4/endpoint.go
@@ -6,7 +6,6 @@ package ipv4
6 6
7import ( 7import (
8 "net" 8 "net"
9 "syscall"
10 "time" 9 "time"
11 10
12 "golang.org/x/net/internal/socket" 11 "golang.org/x/net/internal/socket"
@@ -58,7 +57,7 @@ func (c *dgramOpt) ok() bool { return c != nil && c.Conn != nil }
58// SetControlMessage sets the per packet IP-level socket options. 57// SetControlMessage sets the per packet IP-level socket options.
59func (c *PacketConn) SetControlMessage(cf ControlFlags, on bool) error { 58func (c *PacketConn) SetControlMessage(cf ControlFlags, on bool) error {
60 if !c.payloadHandler.ok() { 59 if !c.payloadHandler.ok() {
61 return syscall.EINVAL 60 return errInvalidConn
62 } 61 }
63 return setControlMessage(c.dgramOpt.Conn, &c.payloadHandler.rawOpt, cf, on) 62 return setControlMessage(c.dgramOpt.Conn, &c.payloadHandler.rawOpt, cf, on)
64} 63}
@@ -67,7 +66,7 @@ func (c *PacketConn) SetControlMessage(cf ControlFlags, on bool) error {
67// endpoint. 66// endpoint.
68func (c *PacketConn) SetDeadline(t time.Time) error { 67func (c *PacketConn) SetDeadline(t time.Time) error {
69 if !c.payloadHandler.ok() { 68 if !c.payloadHandler.ok() {
70 return syscall.EINVAL 69 return errInvalidConn
71 } 70 }
72 return c.payloadHandler.PacketConn.SetDeadline(t) 71 return c.payloadHandler.PacketConn.SetDeadline(t)
73} 72}
@@ -76,7 +75,7 @@ func (c *PacketConn) SetDeadline(t time.Time) error {
76// endpoint. 75// endpoint.
77func (c *PacketConn) SetReadDeadline(t time.Time) error { 76func (c *PacketConn) SetReadDeadline(t time.Time) error {
78 if !c.payloadHandler.ok() { 77 if !c.payloadHandler.ok() {
79 return syscall.EINVAL 78 return errInvalidConn
80 } 79 }
81 return c.payloadHandler.PacketConn.SetReadDeadline(t) 80 return c.payloadHandler.PacketConn.SetReadDeadline(t)
82} 81}
@@ -85,7 +84,7 @@ func (c *PacketConn) SetReadDeadline(t time.Time) error {
85// endpoint. 84// endpoint.
86func (c *PacketConn) SetWriteDeadline(t time.Time) error { 85func (c *PacketConn) SetWriteDeadline(t time.Time) error {
87 if !c.payloadHandler.ok() { 86 if !c.payloadHandler.ok() {
88 return syscall.EINVAL 87 return errInvalidConn
89 } 88 }
90 return c.payloadHandler.PacketConn.SetWriteDeadline(t) 89 return c.payloadHandler.PacketConn.SetWriteDeadline(t)
91} 90}
@@ -93,7 +92,7 @@ func (c *PacketConn) SetWriteDeadline(t time.Time) error {
93// Close closes the endpoint. 92// Close closes the endpoint.
94func (c *PacketConn) Close() error { 93func (c *PacketConn) Close() error {
95 if !c.payloadHandler.ok() { 94 if !c.payloadHandler.ok() {
96 return syscall.EINVAL 95 return errInvalidConn
97 } 96 }
98 return c.payloadHandler.PacketConn.Close() 97 return c.payloadHandler.PacketConn.Close()
99} 98}
@@ -124,7 +123,7 @@ type RawConn struct {
124// SetControlMessage sets the per packet IP-level socket options. 123// SetControlMessage sets the per packet IP-level socket options.
125func (c *RawConn) SetControlMessage(cf ControlFlags, on bool) error { 124func (c *RawConn) SetControlMessage(cf ControlFlags, on bool) error {
126 if !c.packetHandler.ok() { 125 if !c.packetHandler.ok() {
127 return syscall.EINVAL 126 return errInvalidConn
128 } 127 }
129 return setControlMessage(c.dgramOpt.Conn, &c.packetHandler.rawOpt, cf, on) 128 return setControlMessage(c.dgramOpt.Conn, &c.packetHandler.rawOpt, cf, on)
130} 129}
@@ -133,7 +132,7 @@ func (c *RawConn) SetControlMessage(cf ControlFlags, on bool) error {
133// endpoint. 132// endpoint.
134func (c *RawConn) SetDeadline(t time.Time) error { 133func (c *RawConn) SetDeadline(t time.Time) error {
135 if !c.packetHandler.ok() { 134 if !c.packetHandler.ok() {
136 return syscall.EINVAL 135 return errInvalidConn
137 } 136 }
138 return c.packetHandler.IPConn.SetDeadline(t) 137 return c.packetHandler.IPConn.SetDeadline(t)
139} 138}
@@ -142,7 +141,7 @@ func (c *RawConn) SetDeadline(t time.Time) error {
142// endpoint. 141// endpoint.
143func (c *RawConn) SetReadDeadline(t time.Time) error { 142func (c *RawConn) SetReadDeadline(t time.Time) error {
144 if !c.packetHandler.ok() { 143 if !c.packetHandler.ok() {
145 return syscall.EINVAL 144 return errInvalidConn
146 } 145 }
147 return c.packetHandler.IPConn.SetReadDeadline(t) 146 return c.packetHandler.IPConn.SetReadDeadline(t)
148} 147}
@@ -151,7 +150,7 @@ func (c *RawConn) SetReadDeadline(t time.Time) error {
151// endpoint. 150// endpoint.
152func (c *RawConn) SetWriteDeadline(t time.Time) error { 151func (c *RawConn) SetWriteDeadline(t time.Time) error {
153 if !c.packetHandler.ok() { 152 if !c.packetHandler.ok() {
154 return syscall.EINVAL 153 return errInvalidConn
155 } 154 }
156 return c.packetHandler.IPConn.SetWriteDeadline(t) 155 return c.packetHandler.IPConn.SetWriteDeadline(t)
157} 156}
@@ -159,7 +158,7 @@ func (c *RawConn) SetWriteDeadline(t time.Time) error {
159// Close closes the endpoint. 158// Close closes the endpoint.
160func (c *RawConn) Close() error { 159func (c *RawConn) Close() error {
161 if !c.packetHandler.ok() { 160 if !c.packetHandler.ok() {
162 return syscall.EINVAL 161 return errInvalidConn
163 } 162 }
164 return c.packetHandler.IPConn.Close() 163 return c.packetHandler.IPConn.Close()
165} 164}
diff --git a/vendor/golang.org/x/net/ipv4/genericopt.go b/vendor/golang.org/x/net/ipv4/genericopt.go
index 119bf84..587ae4a 100644
--- a/vendor/golang.org/x/net/ipv4/genericopt.go
+++ b/vendor/golang.org/x/net/ipv4/genericopt.go
@@ -4,12 +4,10 @@
4 4
5package ipv4 5package ipv4
6 6
7import "syscall"
8
9// TOS returns the type-of-service field value for outgoing packets. 7// TOS returns the type-of-service field value for outgoing packets.
10func (c *genericOpt) TOS() (int, error) { 8func (c *genericOpt) TOS() (int, error) {
11 if !c.ok() { 9 if !c.ok() {
12 return 0, syscall.EINVAL 10 return 0, errInvalidConn
13 } 11 }
14 so, ok := sockOpts[ssoTOS] 12 so, ok := sockOpts[ssoTOS]
15 if !ok { 13 if !ok {
@@ -22,7 +20,7 @@ func (c *genericOpt) TOS() (int, error) {
22// packets. 20// packets.
23func (c *genericOpt) SetTOS(tos int) error { 21func (c *genericOpt) SetTOS(tos int) error {
24 if !c.ok() { 22 if !c.ok() {
25 return syscall.EINVAL 23 return errInvalidConn
26 } 24 }
27 so, ok := sockOpts[ssoTOS] 25 so, ok := sockOpts[ssoTOS]
28 if !ok { 26 if !ok {
@@ -34,7 +32,7 @@ func (c *genericOpt) SetTOS(tos int) error {
34// TTL returns the time-to-live field value for outgoing packets. 32// TTL returns the time-to-live field value for outgoing packets.
35func (c *genericOpt) TTL() (int, error) { 33func (c *genericOpt) TTL() (int, error) {
36 if !c.ok() { 34 if !c.ok() {
37 return 0, syscall.EINVAL 35 return 0, errInvalidConn
38 } 36 }
39 so, ok := sockOpts[ssoTTL] 37 so, ok := sockOpts[ssoTTL]
40 if !ok { 38 if !ok {
@@ -47,7 +45,7 @@ func (c *genericOpt) TTL() (int, error) {
47// packets. 45// packets.
48func (c *genericOpt) SetTTL(ttl int) error { 46func (c *genericOpt) SetTTL(ttl int) error {
49 if !c.ok() { 47 if !c.ok() {
50 return syscall.EINVAL 48 return errInvalidConn
51 } 49 }
52 so, ok := sockOpts[ssoTTL] 50 so, ok := sockOpts[ssoTTL]
53 if !ok { 51 if !ok {
diff --git a/vendor/golang.org/x/net/ipv4/header.go b/vendor/golang.org/x/net/ipv4/header.go
index 8bb0f0f..a8c8f7a 100644
--- a/vendor/golang.org/x/net/ipv4/header.go
+++ b/vendor/golang.org/x/net/ipv4/header.go
@@ -9,7 +9,6 @@ import (
9 "fmt" 9 "fmt"
10 "net" 10 "net"
11 "runtime" 11 "runtime"
12 "syscall"
13 12
14 "golang.org/x/net/internal/socket" 13 "golang.org/x/net/internal/socket"
15) 14)
@@ -52,9 +51,13 @@ func (h *Header) String() string {
52} 51}
53 52
54// Marshal returns the binary encoding of h. 53// Marshal returns the binary encoding of h.
54//
55// The returned slice is in the format used by a raw IP socket on the
56// local system.
57// This may differ from the wire format, depending on the system.
55func (h *Header) Marshal() ([]byte, error) { 58func (h *Header) Marshal() ([]byte, error) {
56 if h == nil { 59 if h == nil {
57 return nil, syscall.EINVAL 60 return nil, errInvalidConn
58 } 61 }
59 if h.Len < HeaderLen { 62 if h.Len < HeaderLen {
60 return nil, errHeaderTooShort 63 return nil, errHeaderTooShort
@@ -98,7 +101,11 @@ func (h *Header) Marshal() ([]byte, error) {
98 return b, nil 101 return b, nil
99} 102}
100 103
101// Parse parses b as an IPv4 header and sotres the result in h. 104// Parse parses b as an IPv4 header and stores the result in h.
105//
106// The provided b must be in the format used by a raw IP socket on the
107// local system.
108// This may differ from the wire format, depending on the system.
102func (h *Header) Parse(b []byte) error { 109func (h *Header) Parse(b []byte) error {
103 if h == nil || len(b) < HeaderLen { 110 if h == nil || len(b) < HeaderLen {
104 return errHeaderTooShort 111 return errHeaderTooShort
@@ -150,6 +157,10 @@ func (h *Header) Parse(b []byte) error {
150} 157}
151 158
152// ParseHeader parses b as an IPv4 header. 159// ParseHeader parses b as an IPv4 header.
160//
161// The provided b must be in the format used by a raw IP socket on the
162// local system.
163// This may differ from the wire format, depending on the system.
153func ParseHeader(b []byte) (*Header, error) { 164func ParseHeader(b []byte) (*Header, error) {
154 h := new(Header) 165 h := new(Header)
155 if err := h.Parse(b); err != nil { 166 if err := h.Parse(b); err != nil {
diff --git a/vendor/golang.org/x/net/ipv4/helper.go b/vendor/golang.org/x/net/ipv4/helper.go
index a5052e3..8d8ff98 100644
--- a/vendor/golang.org/x/net/ipv4/helper.go
+++ b/vendor/golang.org/x/net/ipv4/helper.go
@@ -10,6 +10,7 @@ import (
10) 10)
11 11
12var ( 12var (
13 errInvalidConn = errors.New("invalid connection")
13 errMissingAddress = errors.New("missing address") 14 errMissingAddress = errors.New("missing address")
14 errMissingHeader = errors.New("missing header") 15 errMissingHeader = errors.New("missing header")
15 errHeaderTooShort = errors.New("header too short") 16 errHeaderTooShort = errors.New("header too short")
diff --git a/vendor/golang.org/x/net/ipv4/iana.go b/vendor/golang.org/x/net/ipv4/iana.go
index be10c94..4375b40 100644
--- a/vendor/golang.org/x/net/ipv4/iana.go
+++ b/vendor/golang.org/x/net/ipv4/iana.go
@@ -1,9 +1,9 @@
1// go generate gen.go 1// go generate gen.go
2// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4package ipv4 4package ipv4
5 5
6// Internet Control Message Protocol (ICMP) Parameters, Updated: 2013-04-19 6// Internet Control Message Protocol (ICMP) Parameters, Updated: 2018-02-26
7const ( 7const (
8 ICMPTypeEchoReply ICMPType = 0 // Echo Reply 8 ICMPTypeEchoReply ICMPType = 0 // Echo Reply
9 ICMPTypeDestinationUnreachable ICMPType = 3 // Destination Unreachable 9 ICMPTypeDestinationUnreachable ICMPType = 3 // Destination Unreachable
@@ -16,9 +16,11 @@ const (
16 ICMPTypeTimestamp ICMPType = 13 // Timestamp 16 ICMPTypeTimestamp ICMPType = 13 // Timestamp
17 ICMPTypeTimestampReply ICMPType = 14 // Timestamp Reply 17 ICMPTypeTimestampReply ICMPType = 14 // Timestamp Reply
18 ICMPTypePhoturis ICMPType = 40 // Photuris 18 ICMPTypePhoturis ICMPType = 40 // Photuris
19 ICMPTypeExtendedEchoRequest ICMPType = 42 // Extended Echo Request
20 ICMPTypeExtendedEchoReply ICMPType = 43 // Extended Echo Reply
19) 21)
20 22
21// Internet Control Message Protocol (ICMP) Parameters, Updated: 2013-04-19 23// Internet Control Message Protocol (ICMP) Parameters, Updated: 2018-02-26
22var icmpTypes = map[ICMPType]string{ 24var icmpTypes = map[ICMPType]string{
23 0: "echo reply", 25 0: "echo reply",
24 3: "destination unreachable", 26 3: "destination unreachable",
@@ -31,4 +33,6 @@ var icmpTypes = map[ICMPType]string{
31 13: "timestamp", 33 13: "timestamp",
32 14: "timestamp reply", 34 14: "timestamp reply",
33 40: "photuris", 35 40: "photuris",
36 42: "extended echo request",
37 43: "extended echo reply",
34} 38}
diff --git a/vendor/golang.org/x/net/ipv4/packet.go b/vendor/golang.org/x/net/ipv4/packet.go
index f00f5b0..966bb77 100644
--- a/vendor/golang.org/x/net/ipv4/packet.go
+++ b/vendor/golang.org/x/net/ipv4/packet.go
@@ -6,7 +6,6 @@ package ipv4
6 6
7import ( 7import (
8 "net" 8 "net"
9 "syscall"
10 9
11 "golang.org/x/net/internal/socket" 10 "golang.org/x/net/internal/socket"
12) 11)
@@ -28,7 +27,7 @@ func (c *packetHandler) ok() bool { return c != nil && c.IPConn != nil && c.Conn
28// header h, the payload p and the control message cm. 27// header h, the payload p and the control message cm.
29func (c *packetHandler) ReadFrom(b []byte) (h *Header, p []byte, cm *ControlMessage, err error) { 28func (c *packetHandler) ReadFrom(b []byte) (h *Header, p []byte, cm *ControlMessage, err error) {
30 if !c.ok() { 29 if !c.ok() {
31 return nil, nil, nil, syscall.EINVAL 30 return nil, nil, nil, errInvalidConn
32 } 31 }
33 return c.readFrom(b) 32 return c.readFrom(b)
34} 33}
@@ -63,7 +62,7 @@ func slicePacket(b []byte) (h, p []byte, err error) {
63// Options = optional 62// Options = optional
64func (c *packetHandler) WriteTo(h *Header, p []byte, cm *ControlMessage) error { 63func (c *packetHandler) WriteTo(h *Header, p []byte, cm *ControlMessage) error {
65 if !c.ok() { 64 if !c.ok() {
66 return syscall.EINVAL 65 return errInvalidConn
67 } 66 }
68 return c.writeTo(h, p, cm) 67 return c.writeTo(h, p, cm)
69} 68}
diff --git a/vendor/golang.org/x/net/ipv4/payload_cmsg.go b/vendor/golang.org/x/net/ipv4/payload_cmsg.go
index 3f06d76..204a49f 100644
--- a/vendor/golang.org/x/net/ipv4/payload_cmsg.go
+++ b/vendor/golang.org/x/net/ipv4/payload_cmsg.go
@@ -2,14 +2,11 @@
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 !nacl,!plan9,!windows 5// +build !js,!nacl,!plan9,!windows
6 6
7package ipv4 7package ipv4
8 8
9import ( 9import "net"
10 "net"
11 "syscall"
12)
13 10
14// ReadFrom reads a payload of the received IPv4 datagram, from the 11// ReadFrom reads a payload of the received IPv4 datagram, from the
15// endpoint c, copying the payload into b. It returns the number of 12// endpoint c, copying the payload into b. It returns the number of
@@ -17,7 +14,7 @@ import (
17// src of the received datagram. 14// src of the received datagram.
18func (c *payloadHandler) ReadFrom(b []byte) (n int, cm *ControlMessage, src net.Addr, err error) { 15func (c *payloadHandler) ReadFrom(b []byte) (n int, cm *ControlMessage, src net.Addr, err error) {
19 if !c.ok() { 16 if !c.ok() {
20 return 0, nil, nil, syscall.EINVAL 17 return 0, nil, nil, errInvalidConn
21 } 18 }
22 return c.readFrom(b) 19 return c.readFrom(b)
23} 20}
@@ -30,7 +27,7 @@ func (c *payloadHandler) ReadFrom(b []byte) (n int, cm *ControlMessage, src net.
30// control of the outgoing datagram is not required. 27// control of the outgoing datagram is not required.
31func (c *payloadHandler) WriteTo(b []byte, cm *ControlMessage, dst net.Addr) (n int, err error) { 28func (c *payloadHandler) WriteTo(b []byte, cm *ControlMessage, dst net.Addr) (n int, err error) {
32 if !c.ok() { 29 if !c.ok() {
33 return 0, syscall.EINVAL 30 return 0, errInvalidConn
34 } 31 }
35 return c.writeTo(b, cm, dst) 32 return c.writeTo(b, cm, dst)
36} 33}
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
index d26ccd9..8d45599 100644
--- a/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go
+++ b/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go
@@ -3,7 +3,7 @@
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 5// +build !go1.9
6// +build !nacl,!plan9,!windows 6// +build !js,!nacl,!plan9,!windows
7 7
8package ipv4 8package ipv4
9 9
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
index 2f19311..4081aad 100644
--- a/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go
+++ b/vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go
@@ -3,7 +3,7 @@
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 5// +build go1.9
6// +build !nacl,!plan9,!windows 6// +build !js,!nacl,!plan9,!windows
7 7
8package ipv4 8package ipv4
9 9
diff --git a/vendor/golang.org/x/net/ipv4/payload_nocmsg.go b/vendor/golang.org/x/net/ipv4/payload_nocmsg.go
index 3926de7..1d434c6 100644
--- a/vendor/golang.org/x/net/ipv4/payload_nocmsg.go
+++ b/vendor/golang.org/x/net/ipv4/payload_nocmsg.go
@@ -2,14 +2,11 @@
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 nacl plan9 windows 5// +build js nacl plan9 windows
6 6
7package ipv4 7package ipv4
8 8
9import ( 9import "net"
10 "net"
11 "syscall"
12)
13 10
14// ReadFrom reads a payload of the received IPv4 datagram, from the 11// ReadFrom reads a payload of the received IPv4 datagram, from the
15// endpoint c, copying the payload into b. It returns the number of 12// endpoint c, copying the payload into b. It returns the number of
@@ -17,7 +14,7 @@ import (
17// src of the received datagram. 14// src of the received datagram.
18func (c *payloadHandler) ReadFrom(b []byte) (n int, cm *ControlMessage, src net.Addr, err error) { 15func (c *payloadHandler) ReadFrom(b []byte) (n int, cm *ControlMessage, src net.Addr, err error) {
19 if !c.ok() { 16 if !c.ok() {
20 return 0, nil, nil, syscall.EINVAL 17 return 0, nil, nil, errInvalidConn
21 } 18 }
22 if n, src, err = c.PacketConn.ReadFrom(b); err != nil { 19 if n, src, err = c.PacketConn.ReadFrom(b); err != nil {
23 return 0, nil, nil, err 20 return 0, nil, nil, err
@@ -33,7 +30,7 @@ func (c *payloadHandler) ReadFrom(b []byte) (n int, cm *ControlMessage, src net.
33// control of the outgoing datagram is not required. 30// control of the outgoing datagram is not required.
34func (c *payloadHandler) WriteTo(b []byte, cm *ControlMessage, dst net.Addr) (n int, err error) { 31func (c *payloadHandler) WriteTo(b []byte, cm *ControlMessage, dst net.Addr) (n int, err error) {
35 if !c.ok() { 32 if !c.ok() {
36 return 0, syscall.EINVAL 33 return 0, errInvalidConn
37 } 34 }
38 if dst == nil { 35 if dst == nil {
39 return 0, errMissingAddress 36 return 0, errMissingAddress
diff --git a/vendor/golang.org/x/sys/unix/aliases.go b/vendor/golang.org/x/sys/unix/aliases.go
new file mode 100644
index 0000000..951fce4
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/aliases.go
@@ -0,0 +1,14 @@
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 darwin dragonfly freebsd linux netbsd openbsd solaris
6// +build go1.9
7
8package unix
9
10import "syscall"
11
12type Signal = syscall.Signal
13type Errno = syscall.Errno
14type SysProcAttr = syscall.SysProcAttr
diff --git a/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s b/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s
index d5ed672..603dd57 100644
--- a/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s
+++ b/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s
@@ -13,17 +13,17 @@
13// Just jump to package syscall's implementation for all these functions. 13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them. 14// The runtime may know about them.
15 15
16TEXT ·Syscall(SB),NOSPLIT,$0-64 16TEXT ·Syscall(SB),NOSPLIT,$0-56
17 JMP syscall·Syscall(SB) 17 JMP syscall·Syscall(SB)
18 18
19TEXT ·Syscall6(SB),NOSPLIT,$0-88 19TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP syscall·Syscall6(SB) 20 JMP syscall·Syscall6(SB)
21 21
22TEXT ·Syscall9(SB),NOSPLIT,$0-112 22TEXT ·Syscall9(SB),NOSPLIT,$0-104
23 JMP syscall·Syscall9(SB) 23 JMP syscall·Syscall9(SB)
24 24
25TEXT ·RawSyscall(SB),NOSPLIT,$0-64 25TEXT ·RawSyscall(SB),NOSPLIT,$0-56
26 JMP syscall·RawSyscall(SB) 26 JMP syscall·RawSyscall(SB)
27 27
28TEXT ·RawSyscall6(SB),NOSPLIT,$0-88 28TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
29 JMP syscall·RawSyscall6(SB) 29 JMP syscall·RawSyscall6(SB)
diff --git a/vendor/golang.org/x/sys/unix/cap_freebsd.go b/vendor/golang.org/x/sys/unix/cap_freebsd.go
index 83b6bce..df52048 100644
--- a/vendor/golang.org/x/sys/unix/cap_freebsd.go
+++ b/vendor/golang.org/x/sys/unix/cap_freebsd.go
@@ -7,7 +7,7 @@
7package unix 7package unix
8 8
9import ( 9import (
10 errorspkg "errors" 10 "errors"
11 "fmt" 11 "fmt"
12) 12)
13 13
@@ -60,26 +60,26 @@ func CapRightsSet(rights *CapRights, setrights []uint64) error {
60 60
61 n := caparsize(rights) 61 n := caparsize(rights)
62 if n < capArSizeMin || n > capArSizeMax { 62 if n < capArSizeMin || n > capArSizeMax {
63 return errorspkg.New("bad rights size") 63 return errors.New("bad rights size")
64 } 64 }
65 65
66 for _, right := range setrights { 66 for _, right := range setrights {
67 if caprver(right) != CAP_RIGHTS_VERSION_00 { 67 if caprver(right) != CAP_RIGHTS_VERSION_00 {
68 return errorspkg.New("bad right version") 68 return errors.New("bad right version")
69 } 69 }
70 i, err := rightToIndex(right) 70 i, err := rightToIndex(right)
71 if err != nil { 71 if err != nil {
72 return err 72 return err
73 } 73 }
74 if i >= n { 74 if i >= n {
75 return errorspkg.New("index overflow") 75 return errors.New("index overflow")
76 } 76 }
77 if capidxbit(rights.Rights[i]) != capidxbit(right) { 77 if capidxbit(rights.Rights[i]) != capidxbit(right) {
78 return errorspkg.New("index mismatch") 78 return errors.New("index mismatch")
79 } 79 }
80 rights.Rights[i] |= right 80 rights.Rights[i] |= right
81 if capidxbit(rights.Rights[i]) != capidxbit(right) { 81 if capidxbit(rights.Rights[i]) != capidxbit(right) {
82 return errorspkg.New("index mismatch (after assign)") 82 return errors.New("index mismatch (after assign)")
83 } 83 }
84 } 84 }
85 85
@@ -95,26 +95,26 @@ func CapRightsClear(rights *CapRights, clearrights []uint64) error {
95 95
96 n := caparsize(rights) 96 n := caparsize(rights)
97 if n < capArSizeMin || n > capArSizeMax { 97 if n < capArSizeMin || n > capArSizeMax {
98 return errorspkg.New("bad rights size") 98 return errors.New("bad rights size")
99 } 99 }
100 100
101 for _, right := range clearrights { 101 for _, right := range clearrights {
102 if caprver(right) != CAP_RIGHTS_VERSION_00 { 102 if caprver(right) != CAP_RIGHTS_VERSION_00 {
103 return errorspkg.New("bad right version") 103 return errors.New("bad right version")
104 } 104 }
105 i, err := rightToIndex(right) 105 i, err := rightToIndex(right)
106 if err != nil { 106 if err != nil {
107 return err 107 return err
108 } 108 }
109 if i >= n { 109 if i >= n {
110 return errorspkg.New("index overflow") 110 return errors.New("index overflow")
111 } 111 }
112 if capidxbit(rights.Rights[i]) != capidxbit(right) { 112 if capidxbit(rights.Rights[i]) != capidxbit(right) {
113 return errorspkg.New("index mismatch") 113 return errors.New("index mismatch")
114 } 114 }
115 rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF) 115 rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF)
116 if capidxbit(rights.Rights[i]) != capidxbit(right) { 116 if capidxbit(rights.Rights[i]) != capidxbit(right) {
117 return errorspkg.New("index mismatch (after assign)") 117 return errors.New("index mismatch (after assign)")
118 } 118 }
119 } 119 }
120 120
@@ -130,22 +130,22 @@ func CapRightsIsSet(rights *CapRights, setrights []uint64) (bool, error) {
130 130
131 n := caparsize(rights) 131 n := caparsize(rights)
132 if n < capArSizeMin || n > capArSizeMax { 132 if n < capArSizeMin || n > capArSizeMax {
133 return false, errorspkg.New("bad rights size") 133 return false, errors.New("bad rights size")
134 } 134 }
135 135
136 for _, right := range setrights { 136 for _, right := range setrights {
137 if caprver(right) != CAP_RIGHTS_VERSION_00 { 137 if caprver(right) != CAP_RIGHTS_VERSION_00 {
138 return false, errorspkg.New("bad right version") 138 return false, errors.New("bad right version")
139 } 139 }
140 i, err := rightToIndex(right) 140 i, err := rightToIndex(right)
141 if err != nil { 141 if err != nil {
142 return false, err 142 return false, err
143 } 143 }
144 if i >= n { 144 if i >= n {
145 return false, errorspkg.New("index overflow") 145 return false, errors.New("index overflow")
146 } 146 }
147 if capidxbit(rights.Rights[i]) != capidxbit(right) { 147 if capidxbit(rights.Rights[i]) != capidxbit(right) {
148 return false, errorspkg.New("index mismatch") 148 return false, errors.New("index mismatch")
149 } 149 }
150 if (rights.Rights[i] & right) != right { 150 if (rights.Rights[i] & right) != right {
151 return false, nil 151 return false, nil
diff --git a/vendor/golang.org/x/sys/unix/constants.go b/vendor/golang.org/x/sys/unix/constants.go
index a96f0eb..3a6ac64 100644
--- a/vendor/golang.org/x/sys/unix/constants.go
+++ b/vendor/golang.org/x/sys/unix/constants.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7package unix 7package unix
8 8
diff --git a/vendor/golang.org/x/sys/unix/dev_aix_ppc.go b/vendor/golang.org/x/sys/unix/dev_aix_ppc.go
new file mode 100644
index 0000000..5e5fb45
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/dev_aix_ppc.go
@@ -0,0 +1,27 @@
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// +build ppc
7
8// Functions to access/create device major and minor numbers matching the
9// encoding used by AIX.
10
11package unix
12
13// Major returns the major component of a Linux device number.
14func Major(dev uint64) uint32 {
15 return uint32((dev >> 16) & 0xffff)
16}
17
18// Minor returns the minor component of a Linux device number.
19func Minor(dev uint64) uint32 {
20 return uint32(dev & 0xffff)
21}
22
23// Mkdev returns a Linux device number generated from the given major and minor
24// components.
25func Mkdev(major, minor uint32) uint64 {
26 return uint64(((major) << 16) | (minor))
27}
diff --git a/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go b/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go
new file mode 100644
index 0000000..8b40124
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go
@@ -0,0 +1,29 @@
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// +build ppc64
7
8// Functions to access/create device major and minor numbers matching the
9// encoding used AIX.
10
11package unix
12
13// Major returns the major component of a Linux device number.
14func Major(dev uint64) uint32 {
15 return uint32((dev & 0x3fffffff00000000) >> 32)
16}
17
18// Minor returns the minor component of a Linux device number.
19func Minor(dev uint64) uint32 {
20 return uint32((dev & 0x00000000ffffffff) >> 0)
21}
22
23// Mkdev returns a Linux device number generated from the given major and minor
24// components.
25func Mkdev(major, minor uint32) uint64 {
26 var DEVNO64 uint64
27 DEVNO64 = 0x8000000000000000
28 return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64)
29}
diff --git a/vendor/golang.org/x/sys/unix/dirent.go b/vendor/golang.org/x/sys/unix/dirent.go
index 95fd353..4407c50 100644
--- a/vendor/golang.org/x/sys/unix/dirent.go
+++ b/vendor/golang.org/x/sys/unix/dirent.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris
6 6
7package unix 7package unix
8 8
diff --git a/vendor/golang.org/x/sys/unix/env_unix.go b/vendor/golang.org/x/sys/unix/env_unix.go
index 706b3cd..84178b0 100644
--- a/vendor/golang.org/x/sys/unix/env_unix.go
+++ b/vendor/golang.org/x/sys/unix/env_unix.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7// Unix environment variables. 7// Unix environment variables.
8 8
diff --git a/vendor/golang.org/x/sys/unix/flock.go b/vendor/golang.org/x/sys/unix/fcntl.go
index 2994ce7..9379ba9 100644
--- a/vendor/golang.org/x/sys/unix/flock.go
+++ b/vendor/golang.org/x/sys/unix/fcntl.go
@@ -12,6 +12,16 @@ import "unsafe"
12// systems by flock_linux_32bit.go to be SYS_FCNTL64. 12// systems by flock_linux_32bit.go to be SYS_FCNTL64.
13var fcntl64Syscall uintptr = SYS_FCNTL 13var fcntl64Syscall uintptr = SYS_FCNTL
14 14
15// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
16func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
17 valptr, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(arg))
18 var err error
19 if errno != 0 {
20 err = errno
21 }
22 return int(valptr), err
23}
24
15// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 25// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
16func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 26func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
17 _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) 27 _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
diff --git a/vendor/golang.org/x/sys/unix/flock_linux_32bit.go b/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go
index fc0e50e..fc0e50e 100644
--- a/vendor/golang.org/x/sys/unix/flock_linux_32bit.go
+++ b/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go
diff --git a/vendor/golang.org/x/sys/unix/gccgo.go b/vendor/golang.org/x/sys/unix/gccgo.go
index 50062e3..cd6f5a6 100644
--- a/vendor/golang.org/x/sys/unix/gccgo.go
+++ b/vendor/golang.org/x/sys/unix/gccgo.go
@@ -3,6 +3,7 @@
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build gccgo 5// +build gccgo
6// +build !aix
6 7
7package unix 8package unix
8 9
diff --git a/vendor/golang.org/x/sys/unix/gccgo_c.c b/vendor/golang.org/x/sys/unix/gccgo_c.c
index 24e96b1..c44730c 100644
--- a/vendor/golang.org/x/sys/unix/gccgo_c.c
+++ b/vendor/golang.org/x/sys/unix/gccgo_c.c
@@ -3,6 +3,7 @@
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build gccgo 5// +build gccgo
6// +build !aix
6 7
7#include <errno.h> 8#include <errno.h>
8#include <stdint.h> 9#include <stdint.h>
@@ -36,12 +37,3 @@ gccgoRealSyscallNoError(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3
36{ 37{
37 return syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9); 38 return syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9);
38} 39}
39
40// Define the use function in C so that it is not inlined.
41
42extern void use(void *) __asm__ (GOSYM_PREFIX GOPKGPATH ".use") __attribute__((noinline));
43
44void
45use(void *p __attribute__ ((unused)))
46{
47}
diff --git a/vendor/golang.org/x/sys/unix/ioctl.go b/vendor/golang.org/x/sys/unix/ioctl.go
new file mode 100644
index 0000000..f121a8d
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/ioctl.go
@@ -0,0 +1,30 @@
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 darwin dragonfly freebsd linux netbsd openbsd solaris
6
7package unix
8
9import "runtime"
10
11// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
12//
13// To change fd's window size, the req argument should be TIOCSWINSZ.
14func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
15 // TODO: if we get the chance, remove the req parameter and
16 // hardcode TIOCSWINSZ.
17 err := ioctlSetWinsize(fd, req, value)
18 runtime.KeepAlive(value)
19 return err
20}
21
22// IoctlSetTermios performs an ioctl on fd with a *Termios.
23//
24// The req value will usually be TCSETA or TIOCSETA.
25func IoctlSetTermios(fd int, req uint, value *Termios) error {
26 // TODO: if we get the chance, remove the req parameter.
27 err := ioctlSetTermios(fd, req, value)
28 runtime.KeepAlive(value)
29 return err
30}
diff --git a/vendor/golang.org/x/sys/unix/mkall.sh b/vendor/golang.org/x/sys/unix/mkall.sh
index 1715122..edb176f 100755
--- a/vendor/golang.org/x/sys/unix/mkall.sh
+++ b/vendor/golang.org/x/sys/unix/mkall.sh
@@ -59,6 +59,16 @@ _* | *_ | _)
59 echo 'undefined $GOOS_$GOARCH:' "$GOOSARCH" 1>&2 59 echo 'undefined $GOOS_$GOARCH:' "$GOOSARCH" 1>&2
60 exit 1 60 exit 1
61 ;; 61 ;;
62aix_ppc)
63 mkerrors="$mkerrors -maix32"
64 mksyscall="perl mksyscall_aix.pl -aix"
65 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
66 ;;
67aix_ppc64)
68 mkerrors="$mkerrors -maix64"
69 mksyscall="perl mksyscall_aix.pl -aix"
70 mktypes="GOARCH=$GOARCH go tool cgo -godefs"
71 ;;
62darwin_386) 72darwin_386)
63 mkerrors="$mkerrors -m32" 73 mkerrors="$mkerrors -m32"
64 mksyscall="./mksyscall.pl -l32" 74 mksyscall="./mksyscall.pl -l32"
diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh
index 4dd40c1..7943853 100755
--- a/vendor/golang.org/x/sys/unix/mkerrors.sh
+++ b/vendor/golang.org/x/sys/unix/mkerrors.sh
@@ -25,7 +25,11 @@ if [[ "$GOOS" = "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then
25 fi 25 fi
26fi 26fi
27 27
28CC=${CC:-cc} 28if [[ "$GOOS" = "aix" ]]; then
29 CC=${CC:-gcc}
30else
31 CC=${CC:-cc}
32fi
29 33
30if [[ "$GOOS" = "solaris" ]]; then 34if [[ "$GOOS" = "solaris" ]]; then
31 # Assumes GNU versions of utilities in PATH. 35 # Assumes GNU versions of utilities in PATH.
@@ -34,6 +38,21 @@ fi
34 38
35uname=$(uname) 39uname=$(uname)
36 40
41includes_AIX='
42#include <net/if.h>
43#include <net/netopt.h>
44#include <netinet/ip_mroute.h>
45#include <sys/protosw.h>
46#include <sys/stropts.h>
47#include <sys/mman.h>
48#include <sys/poll.h>
49#include <sys/termio.h>
50#include <termios.h>
51#include <fcntl.h>
52
53#define AF_LOCAL AF_UNIX
54'
55
37includes_Darwin=' 56includes_Darwin='
38#define _DARWIN_C_SOURCE 57#define _DARWIN_C_SOURCE
39#define KERNEL 58#define KERNEL
@@ -50,6 +69,7 @@ includes_Darwin='
50#include <sys/mount.h> 69#include <sys/mount.h>
51#include <sys/utsname.h> 70#include <sys/utsname.h>
52#include <sys/wait.h> 71#include <sys/wait.h>
72#include <sys/xattr.h>
53#include <net/bpf.h> 73#include <net/bpf.h>
54#include <net/if.h> 74#include <net/if.h>
55#include <net/if_types.h> 75#include <net/if_types.h>
@@ -64,8 +84,10 @@ includes_DragonFly='
64#include <sys/event.h> 84#include <sys/event.h>
65#include <sys/socket.h> 85#include <sys/socket.h>
66#include <sys/sockio.h> 86#include <sys/sockio.h>
87#include <sys/stat.h>
67#include <sys/sysctl.h> 88#include <sys/sysctl.h>
68#include <sys/mman.h> 89#include <sys/mman.h>
90#include <sys/mount.h>
69#include <sys/wait.h> 91#include <sys/wait.h>
70#include <sys/ioctl.h> 92#include <sys/ioctl.h>
71#include <net/bpf.h> 93#include <net/bpf.h>
@@ -85,6 +107,7 @@ includes_FreeBSD='
85#include <sys/event.h> 107#include <sys/event.h>
86#include <sys/socket.h> 108#include <sys/socket.h>
87#include <sys/sockio.h> 109#include <sys/sockio.h>
110#include <sys/stat.h>
88#include <sys/sysctl.h> 111#include <sys/sysctl.h>
89#include <sys/mman.h> 112#include <sys/mman.h>
90#include <sys/mount.h> 113#include <sys/mount.h>
@@ -170,8 +193,13 @@ struct ltchars {
170#include <linux/falloc.h> 193#include <linux/falloc.h>
171#include <linux/filter.h> 194#include <linux/filter.h>
172#include <linux/fs.h> 195#include <linux/fs.h>
196#include <linux/kexec.h>
173#include <linux/keyctl.h> 197#include <linux/keyctl.h>
198#include <linux/magic.h>
199#include <linux/memfd.h>
200#include <linux/netfilter/nfnetlink.h>
174#include <linux/netlink.h> 201#include <linux/netlink.h>
202#include <linux/net_namespace.h>
175#include <linux/perf_event.h> 203#include <linux/perf_event.h>
176#include <linux/random.h> 204#include <linux/random.h>
177#include <linux/reboot.h> 205#include <linux/reboot.h>
@@ -187,8 +215,11 @@ struct ltchars {
187#include <linux/vm_sockets.h> 215#include <linux/vm_sockets.h>
188#include <linux/taskstats.h> 216#include <linux/taskstats.h>
189#include <linux/genetlink.h> 217#include <linux/genetlink.h>
190#include <linux/stat.h>
191#include <linux/watchdog.h> 218#include <linux/watchdog.h>
219#include <linux/hdreg.h>
220#include <linux/rtc.h>
221#include <linux/if_xdp.h>
222#include <mtd/ubi-user.h>
192#include <net/route.h> 223#include <net/route.h>
193#include <asm/termbits.h> 224#include <asm/termbits.h>
194 225
@@ -218,13 +249,25 @@ struct ltchars {
218#define FS_KEY_DESC_PREFIX "fscrypt:" 249#define FS_KEY_DESC_PREFIX "fscrypt:"
219#define FS_KEY_DESC_PREFIX_SIZE 8 250#define FS_KEY_DESC_PREFIX_SIZE 8
220#define FS_MAX_KEY_SIZE 64 251#define FS_MAX_KEY_SIZE 64
252
253// XDP socket constants do not appear to be picked up otherwise.
254// Copied from samples/bpf/xdpsock_user.c.
255#ifndef SOL_XDP
256#define SOL_XDP 283
257#endif
258
259#ifndef AF_XDP
260#define AF_XDP 44
261#endif
221' 262'
222 263
223includes_NetBSD=' 264includes_NetBSD='
224#include <sys/types.h> 265#include <sys/types.h>
225#include <sys/param.h> 266#include <sys/param.h>
226#include <sys/event.h> 267#include <sys/event.h>
268#include <sys/extattr.h>
227#include <sys/mman.h> 269#include <sys/mman.h>
270#include <sys/mount.h>
228#include <sys/socket.h> 271#include <sys/socket.h>
229#include <sys/sockio.h> 272#include <sys/sockio.h>
230#include <sys/sysctl.h> 273#include <sys/sysctl.h>
@@ -250,11 +293,14 @@ includes_OpenBSD='
250#include <sys/param.h> 293#include <sys/param.h>
251#include <sys/event.h> 294#include <sys/event.h>
252#include <sys/mman.h> 295#include <sys/mman.h>
296#include <sys/mount.h>
253#include <sys/socket.h> 297#include <sys/socket.h>
254#include <sys/sockio.h> 298#include <sys/sockio.h>
299#include <sys/stat.h>
255#include <sys/sysctl.h> 300#include <sys/sysctl.h>
256#include <sys/termios.h> 301#include <sys/termios.h>
257#include <sys/ttycom.h> 302#include <sys/ttycom.h>
303#include <sys/unistd.h>
258#include <sys/wait.h> 304#include <sys/wait.h>
259#include <net/bpf.h> 305#include <net/bpf.h>
260#include <net/if.h> 306#include <net/if.h>
@@ -286,6 +332,7 @@ includes_SunOS='
286#include <sys/types.h> 332#include <sys/types.h>
287#include <sys/socket.h> 333#include <sys/socket.h>
288#include <sys/sockio.h> 334#include <sys/sockio.h>
335#include <sys/stat.h>
289#include <sys/mman.h> 336#include <sys/mman.h>
290#include <sys/wait.h> 337#include <sys/wait.h>
291#include <sys/ioctl.h> 338#include <sys/ioctl.h>
@@ -348,6 +395,7 @@ ccflags="$@"
348 $2 ~ /^EXTATTR_NAMESPACE_NAMES/ || 395 $2 ~ /^EXTATTR_NAMESPACE_NAMES/ ||
349 $2 ~ /^EXTATTR_NAMESPACE_[A-Z]+_STRING/ {next} 396 $2 ~ /^EXTATTR_NAMESPACE_[A-Z]+_STRING/ {next}
350 397
398 $2 !~ /^ECCAPBITS/ &&
351 $2 !~ /^ETH_/ && 399 $2 !~ /^ETH_/ &&
352 $2 !~ /^EPROC_/ && 400 $2 !~ /^EPROC_/ &&
353 $2 !~ /^EQUIV_/ && 401 $2 !~ /^EQUIV_/ &&
@@ -364,6 +412,7 @@ ccflags="$@"
364 $2 ~ /^IGN/ || 412 $2 ~ /^IGN/ ||
365 $2 ~ /^IX(ON|ANY|OFF)$/ || 413 $2 ~ /^IX(ON|ANY|OFF)$/ ||
366 $2 ~ /^IN(LCR|PCK)$/ || 414 $2 ~ /^IN(LCR|PCK)$/ ||
415 $2 !~ "X86_CR3_PCID_NOFLUSH" &&
367 $2 ~ /(^FLU?SH)|(FLU?SH$)/ || 416 $2 ~ /(^FLU?SH)|(FLU?SH$)/ ||
368 $2 ~ /^C(LOCAL|READ|MSPAR|RTSCTS)$/ || 417 $2 ~ /^C(LOCAL|READ|MSPAR|RTSCTS)$/ ||
369 $2 == "BRKINT" || 418 $2 == "BRKINT" ||
@@ -382,7 +431,8 @@ ccflags="$@"
382 $2 ~ /^TC[IO](ON|OFF)$/ || 431 $2 ~ /^TC[IO](ON|OFF)$/ ||
383 $2 ~ /^IN_/ || 432 $2 ~ /^IN_/ ||
384 $2 ~ /^LOCK_(SH|EX|NB|UN)$/ || 433 $2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
385 $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ || 434 $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
435 $2 ~ /^TP_STATUS_/ ||
386 $2 ~ /^FALLOC_/ || 436 $2 ~ /^FALLOC_/ ||
387 $2 == "ICMPV6_FILTER" || 437 $2 == "ICMPV6_FILTER" ||
388 $2 == "SOMAXCONN" || 438 $2 == "SOMAXCONN" ||
@@ -392,13 +442,15 @@ ccflags="$@"
392 $2 ~ /^KERN_(HOSTNAME|OS(RELEASE|TYPE)|VERSION)$/ || 442 $2 ~ /^KERN_(HOSTNAME|OS(RELEASE|TYPE)|VERSION)$/ ||
393 $2 ~ /^HW_MACHINE$/ || 443 $2 ~ /^HW_MACHINE$/ ||
394 $2 ~ /^SYSCTL_VERS/ || 444 $2 ~ /^SYSCTL_VERS/ ||
445 $2 !~ "MNT_BITS" &&
395 $2 ~ /^(MS|MNT|UMOUNT)_/ || 446 $2 ~ /^(MS|MNT|UMOUNT)_/ ||
396 $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || 447 $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
397 $2 ~ /^(O|F|E?FD|NAME|S|PTRACE|PT)_/ || 448 $2 ~ /^(O|F|E?FD|NAME|S|PTRACE|PT)_/ ||
449 $2 ~ /^KEXEC_/ ||
398 $2 ~ /^LINUX_REBOOT_CMD_/ || 450 $2 ~ /^LINUX_REBOOT_CMD_/ ||
399 $2 ~ /^LINUX_REBOOT_MAGIC[12]$/ || 451 $2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
400 $2 !~ "NLA_TYPE_MASK" && 452 $2 !~ "NLA_TYPE_MASK" &&
401 $2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P)_/ || 453 $2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ ||
402 $2 ~ /^SIOC/ || 454 $2 ~ /^SIOC/ ||
403 $2 ~ /^TIOC/ || 455 $2 ~ /^TIOC/ ||
404 $2 ~ /^TCGET/ || 456 $2 ~ /^TCGET/ ||
@@ -424,17 +476,26 @@ ccflags="$@"
424 $2 ~ /^PERF_EVENT_IOC_/ || 476 $2 ~ /^PERF_EVENT_IOC_/ ||
425 $2 ~ /^SECCOMP_MODE_/ || 477 $2 ~ /^SECCOMP_MODE_/ ||
426 $2 ~ /^SPLICE_/ || 478 $2 ~ /^SPLICE_/ ||
479 $2 ~ /^SYNC_FILE_RANGE_/ ||
480 $2 !~ /^AUDIT_RECORD_MAGIC/ &&
481 $2 !~ /IOC_MAGIC/ &&
482 $2 ~ /^[A-Z][A-Z0-9_]+_MAGIC2?$/ ||
427 $2 ~ /^(VM|VMADDR)_/ || 483 $2 ~ /^(VM|VMADDR)_/ ||
428 $2 ~ /^IOCTL_VM_SOCKETS_/ || 484 $2 ~ /^IOCTL_VM_SOCKETS_/ ||
429 $2 ~ /^(TASKSTATS|TS)_/ || 485 $2 ~ /^(TASKSTATS|TS)_/ ||
430 $2 ~ /^CGROUPSTATS_/ || 486 $2 ~ /^CGROUPSTATS_/ ||
431 $2 ~ /^GENL_/ || 487 $2 ~ /^GENL_/ ||
432 $2 ~ /^STATX_/ || 488 $2 ~ /^STATX_/ ||
489 $2 ~ /^RENAME/ ||
490 $2 ~ /^UBI_IOC[A-Z]/ ||
433 $2 ~ /^UTIME_/ || 491 $2 ~ /^UTIME_/ ||
434 $2 ~ /^XATTR_(CREATE|REPLACE)/ || 492 $2 ~ /^XATTR_(CREATE|REPLACE|NO(DEFAULT|FOLLOW|SECURITY)|SHOWCOMPRESSION)/ ||
435 $2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ || 493 $2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ ||
436 $2 ~ /^FSOPT_/ || 494 $2 ~ /^FSOPT_/ ||
437 $2 ~ /^WDIOC_/ || 495 $2 ~ /^WDIOC_/ ||
496 $2 ~ /^NFN/ ||
497 $2 ~ /^XDP_/ ||
498 $2 ~ /^(HDIO|WIN|SMART)_/ ||
438 $2 !~ "WMESGLEN" && 499 $2 !~ "WMESGLEN" &&
439 $2 ~ /^W[A-Z0-9]+$/ || 500 $2 ~ /^W[A-Z0-9]+$/ ||
440 $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)} 501 $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
@@ -458,7 +519,7 @@ errors=$(
458signals=$( 519signals=$(
459 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | 520 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
460 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | 521 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
461 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' | 522 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
462 sort 523 sort
463) 524)
464 525
@@ -468,7 +529,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
468 sort >_error.grep 529 sort >_error.grep
469echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | 530echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
470 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' | 531 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
471 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT)' | 532 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
472 sort >_signal.grep 533 sort >_signal.grep
473 534
474echo '// mkerrors.sh' "$@" 535echo '// mkerrors.sh' "$@"
@@ -504,21 +565,26 @@ echo ')'
504 565
505enum { A = 'A', Z = 'Z', a = 'a', z = 'z' }; // avoid need for single quotes below 566enum { A = 'A', Z = 'Z', a = 'a', z = 'z' }; // avoid need for single quotes below
506 567
507int errors[] = { 568struct tuple {
569 int num;
570 const char *name;
571};
572
573struct tuple errors[] = {
508" 574"
509 for i in $errors 575 for i in $errors
510 do 576 do
511 echo -E ' '$i, 577 echo -E ' {'$i', "'$i'" },'
512 done 578 done
513 579
514 echo -E " 580 echo -E "
515}; 581};
516 582
517int signals[] = { 583struct tuple signals[] = {
518" 584"
519 for i in $signals 585 for i in $signals
520 do 586 do
521 echo -E ' '$i, 587 echo -E ' {'$i', "'$i'" },'
522 done 588 done
523 589
524 # Use -E because on some systems bash builtin interprets \n itself. 590 # Use -E because on some systems bash builtin interprets \n itself.
@@ -526,9 +592,9 @@ int signals[] = {
526}; 592};
527 593
528static int 594static int
529intcmp(const void *a, const void *b) 595tuplecmp(const void *a, const void *b)
530{ 596{
531 return *(int*)a - *(int*)b; 597 return ((struct tuple *)a)->num - ((struct tuple *)b)->num;
532} 598}
533 599
534int 600int
@@ -538,26 +604,34 @@ main(void)
538 char buf[1024], *p; 604 char buf[1024], *p;
539 605
540 printf("\n\n// Error table\n"); 606 printf("\n\n// Error table\n");
541 printf("var errors = [...]string {\n"); 607 printf("var errorList = [...]struct {\n");
542 qsort(errors, nelem(errors), sizeof errors[0], intcmp); 608 printf("\tnum syscall.Errno\n");
609 printf("\tname string\n");
610 printf("\tdesc string\n");
611 printf("} {\n");
612 qsort(errors, nelem(errors), sizeof errors[0], tuplecmp);
543 for(i=0; i<nelem(errors); i++) { 613 for(i=0; i<nelem(errors); i++) {
544 e = errors[i]; 614 e = errors[i].num;
545 if(i > 0 && errors[i-1] == e) 615 if(i > 0 && errors[i-1].num == e)
546 continue; 616 continue;
547 strcpy(buf, strerror(e)); 617 strcpy(buf, strerror(e));
548 // lowercase first letter: Bad -> bad, but STREAM -> STREAM. 618 // lowercase first letter: Bad -> bad, but STREAM -> STREAM.
549 if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z) 619 if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
550 buf[0] += a - A; 620 buf[0] += a - A;
551 printf("\t%d: \"%s\",\n", e, buf); 621 printf("\t{ %d, \"%s\", \"%s\" },\n", e, errors[i].name, buf);
552 } 622 }
553 printf("}\n\n"); 623 printf("}\n\n");
554 624
555 printf("\n\n// Signal table\n"); 625 printf("\n\n// Signal table\n");
556 printf("var signals = [...]string {\n"); 626 printf("var signalList = [...]struct {\n");
557 qsort(signals, nelem(signals), sizeof signals[0], intcmp); 627 printf("\tnum syscall.Signal\n");
628 printf("\tname string\n");
629 printf("\tdesc string\n");
630 printf("} {\n");
631 qsort(signals, nelem(signals), sizeof signals[0], tuplecmp);
558 for(i=0; i<nelem(signals); i++) { 632 for(i=0; i<nelem(signals); i++) {
559 e = signals[i]; 633 e = signals[i].num;
560 if(i > 0 && signals[i-1] == e) 634 if(i > 0 && signals[i-1].num == e)
561 continue; 635 continue;
562 strcpy(buf, strsignal(e)); 636 strcpy(buf, strsignal(e));
563 // lowercase first letter: Bad -> bad, but STREAM -> STREAM. 637 // lowercase first letter: Bad -> bad, but STREAM -> STREAM.
@@ -567,7 +641,7 @@ main(void)
567 p = strrchr(buf, ":"[0]); 641 p = strrchr(buf, ":"[0]);
568 if(p) 642 if(p)
569 *p = '\0'; 643 *p = '\0';
570 printf("\t%d: \"%s\",\n", e, buf); 644 printf("\t{ %d, \"%s\", \"%s\" },\n", e, signals[i].name, buf);
571 } 645 }
572 printf("}\n\n"); 646 printf("}\n\n");
573 647
diff --git a/vendor/golang.org/x/sys/unix/mksyscall_aix.pl b/vendor/golang.org/x/sys/unix/mksyscall_aix.pl
new file mode 100644
index 0000000..c9b3954
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/mksyscall_aix.pl
@@ -0,0 +1,385 @@
1#!/usr/bin/env perl
2# Copyright 2018 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_aix.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_aix.pl " . join(' ', @ARGV);
23my $errors = 0;
24my $_32bit = "";
25my $tags = ""; # build tags
26my $aix = 0;
27my $solaris = 0;
28
29binmode STDOUT;
30
31if($ARGV[0] eq "-b32") {
32 $_32bit = "big-endian";
33 shift;
34} elsif($ARGV[0] eq "-l32") {
35 $_32bit = "little-endian";
36 shift;
37}
38if($ARGV[0] eq "-aix") {
39 $aix = 1;
40 shift;
41}
42if($ARGV[0] eq "-tags") {
43 shift;
44 $tags = $ARGV[0];
45 shift;
46}
47
48if($ARGV[0] =~ /^-/) {
49 print STDERR "usage: mksyscall_aix.pl [-b32 | -l32] [-tags x,y] [file ...]\n";
50 exit 1;
51}
52
53sub parseparamlist($) {
54 my ($list) = @_;
55 $list =~ s/^\s*//;
56 $list =~ s/\s*$//;
57 if($list eq "") {
58 return ();
59 }
60 return split(/\s*,\s*/, $list);
61}
62
63sub parseparam($) {
64 my ($p) = @_;
65 if($p !~ /^(\S*) (\S*)$/) {
66 print STDERR "$ARGV:$.: malformed parameter: $p\n";
67 $errors = 1;
68 return ("xx", "int");
69 }
70 return ($1, $2);
71}
72
73my $package = "";
74my $text = "";
75my $c_extern = "/*\n#include <stdint.h>\n";
76my @vars = ();
77while(<>) {
78 chomp;
79 s/\s+/ /g;
80 s/^\s+//;
81 s/\s+$//;
82 $package = $1 if !$package && /^package (\S+)$/;
83 my $nonblock = /^\/\/sysnb /;
84 next if !/^\/\/sys / && !$nonblock;
85
86 # Line must be of the form
87 # func Open(path string, mode int, perm int) (fd int, err error)
88 # Split into name, in params, out params.
89 if(!/^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$/) {
90 print STDERR "$ARGV:$.: malformed //sys declaration\n";
91 $errors = 1;
92 next;
93 }
94 my ($nb, $func, $in, $out, $modname, $sysname) = ($1, $2, $3, $4, $5, $6);
95
96 # Split argument lists on comma.
97 my @in = parseparamlist($in);
98 my @out = parseparamlist($out);
99
100 $in = join(', ', @in);
101 $out = join(', ', @out);
102
103 # Try in vain to keep people from editing this file.
104 # The theory is that they jump into the middle of the file
105 # without reading the header.
106 $text .= "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n";
107
108 # Check if value return, err return available
109 my $errvar = "";
110 my $retvar = "";
111 my $rettype = "";
112 foreach my $p (@out) {
113 my ($name, $type) = parseparam($p);
114 if($type eq "error") {
115 $errvar = $name;
116 } else {
117 $retvar = $name;
118 $rettype = $type;
119 }
120 }
121
122 # System call name.
123 #if($func ne "fcntl") {
124
125 if($sysname eq "") {
126 $sysname = "$func";
127 }
128
129 $sysname =~ s/([a-z])([A-Z])/${1}_$2/g;
130 $sysname =~ y/A-Z/a-z/; # All libc functions are lowercase.
131
132 my $C_rettype = "";
133 if($rettype eq "unsafe.Pointer") {
134 $C_rettype = "uintptr_t";
135 } elsif($rettype eq "uintptr") {
136 $C_rettype = "uintptr_t";
137 } elsif($rettype =~ /^_/) {
138 $C_rettype = "uintptr_t";
139 } elsif($rettype eq "int") {
140 $C_rettype = "int";
141 } elsif($rettype eq "int32") {
142 $C_rettype = "int";
143 } elsif($rettype eq "int64") {
144 $C_rettype = "long long";
145 } elsif($rettype eq "uint32") {
146 $C_rettype = "unsigned int";
147 } elsif($rettype eq "uint64") {
148 $C_rettype = "unsigned long long";
149 } else {
150 $C_rettype = "int";
151 }
152 if($sysname eq "exit") {
153 $C_rettype = "void";
154 }
155
156 # Change types to c
157 my @c_in = ();
158 foreach my $p (@in) {
159 my ($name, $type) = parseparam($p);
160 if($type =~ /^\*/) {
161 push @c_in, "uintptr_t";
162 } elsif($type eq "string") {
163 push @c_in, "uintptr_t";
164 } elsif($type =~ /^\[\](.*)/) {
165 push @c_in, "uintptr_t", "size_t";
166 } elsif($type eq "unsafe.Pointer") {
167 push @c_in, "uintptr_t";
168 } elsif($type eq "uintptr") {
169 push @c_in, "uintptr_t";
170 } elsif($type =~ /^_/) {
171 push @c_in, "uintptr_t";
172 } elsif($type eq "int") {
173 push @c_in, "int";
174 } elsif($type eq "int32") {
175 push @c_in, "int";
176 } elsif($type eq "int64") {
177 push @c_in, "long long";
178 } elsif($type eq "uint32") {
179 push @c_in, "unsigned int";
180 } elsif($type eq "uint64") {
181 push @c_in, "unsigned long long";
182 } else {
183 push @c_in, "int";
184 }
185 }
186
187 if ($func ne "fcntl" && $func ne "FcntlInt" && $func ne "readlen" && $func ne "writelen") {
188 # Imports of system calls from libc
189 $c_extern .= "$C_rettype $sysname";
190 my $c_in = join(', ', @c_in);
191 $c_extern .= "($c_in);\n";
192 }
193
194 # So file name.
195 if($aix) {
196 if($modname eq "") {
197 $modname = "libc.a/shr_64.o";
198 } else {
199 print STDERR "$func: only syscall using libc are available\n";
200 $errors = 1;
201 next;
202 }
203 }
204
205 my $strconvfunc = "C.CString";
206 my $strconvtype = "*byte";
207
208 # Go function header.
209 if($out ne "") {
210 $out = " ($out)";
211 }
212 if($text ne "") {
213 $text .= "\n"
214 }
215
216 $text .= sprintf "func %s(%s)%s {\n", $func, join(', ', @in), $out ;
217
218 # Prepare arguments to call.
219 my @args = ();
220 my $n = 0;
221 my $arg_n = 0;
222 foreach my $p (@in) {
223 my ($name, $type) = parseparam($p);
224 if($type =~ /^\*/) {
225 push @args, "C.uintptr_t(uintptr(unsafe.Pointer($name)))";
226 } elsif($type eq "string" && $errvar ne "") {
227 $text .= "\t_p$n := uintptr(unsafe.Pointer($strconvfunc($name)))\n";
228 push @args, "C.uintptr_t(_p$n)";
229 $n++;
230 } elsif($type eq "string") {
231 print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
232 $text .= "\t_p$n := uintptr(unsafe.Pointer($strconvfunc($name)))\n";
233 push @args, "C.uintptr_t(_p$n)";
234 $n++;
235 } elsif($type =~ /^\[\](.*)/) {
236 # Convert slice into pointer, length.
237 # Have to be careful not to take address of &a[0] if len == 0:
238 # pass nil in that case.
239 $text .= "\tvar _p$n *$1\n";
240 $text .= "\tif len($name) > 0 {\n\t\t_p$n = \&$name\[0]\n\t}\n";
241 push @args, "C.uintptr_t(uintptr(unsafe.Pointer(_p$n)))";
242 $n++;
243 $text .= "\tvar _p$n int\n";
244 $text .= "\t_p$n = len($name)\n";
245 push @args, "C.size_t(_p$n)";
246 $n++;
247 } elsif($type eq "int64" && $_32bit ne "") {
248 if($_32bit eq "big-endian") {
249 push @args, "uintptr($name >> 32)", "uintptr($name)";
250 } else {
251 push @args, "uintptr($name)", "uintptr($name >> 32)";
252 }
253 $n++;
254 } elsif($type eq "bool") {
255 $text .= "\tvar _p$n uint32\n";
256 $text .= "\tif $name {\n\t\t_p$n = 1\n\t} else {\n\t\t_p$n = 0\n\t}\n";
257 push @args, "_p$n";
258 $n++;
259 } elsif($type =~ /^_/) {
260 push @args, "C.uintptr_t(uintptr($name))";
261 } elsif($type eq "unsafe.Pointer") {
262 push @args, "C.uintptr_t(uintptr($name))";
263 } elsif($type eq "int") {
264 if (($arg_n == 2) && (($func eq "readlen") || ($func eq "writelen"))) {
265 push @args, "C.size_t($name)";
266 } elsif ($arg_n == 0 && $func eq "fcntl") {
267 push @args, "C.uintptr_t($name)";
268 } elsif (($arg_n == 2) && (($func eq "fcntl") || ($func eq "FcntlInt"))) {
269 push @args, "C.uintptr_t($name)";
270 } else {
271 push @args, "C.int($name)";
272 }
273 } elsif($type eq "int32") {
274 push @args, "C.int($name)";
275 } elsif($type eq "int64") {
276 push @args, "C.longlong($name)";
277 } elsif($type eq "uint32") {
278 push @args, "C.uint($name)";
279 } elsif($type eq "uint64") {
280 push @args, "C.ulonglong($name)";
281 } elsif($type eq "uintptr") {
282 push @args, "C.uintptr_t($name)";
283 } else {
284 push @args, "C.int($name)";
285 }
286 $arg_n++;
287 }
288 my $nargs = @args;
289
290
291 # Determine which form to use; pad args with zeros.
292 if ($nonblock) {
293 }
294
295 my $args = join(', ', @args);
296 my $call = "";
297 if ($sysname eq "exit") {
298 if ($errvar ne "") {
299 $call .= "er :=";
300 } else {
301 $call .= "";
302 }
303 } elsif ($errvar ne "") {
304 $call .= "r0,er :=";
305 } elsif ($retvar ne "") {
306 $call .= "r0,_ :=";
307 } else {
308 $call .= ""
309 }
310 $call .= "C.$sysname($args)";
311
312 # Assign return values.
313 my $body = "";
314 my $failexpr = "";
315
316 for(my $i=0; $i<@out; $i++) {
317 my $p = $out[$i];
318 my ($name, $type) = parseparam($p);
319 my $reg = "";
320 if($name eq "err") {
321 $reg = "e1";
322 } else {
323 $reg = "r0";
324 }
325 if($reg ne "e1" ) {
326 $body .= "\t$name = $type($reg)\n";
327 }
328 }
329
330 # verify return
331 if ($sysname ne "exit" && $errvar ne "") {
332 if ($C_rettype =~ /^uintptr/) {
333 $body .= "\tif \(uintptr\(r0\) ==\^uintptr\(0\) && er != nil\) {\n";
334 $body .= "\t\t$errvar = er\n";
335 $body .= "\t}\n";
336 } else {
337 $body .= "\tif \(r0 ==-1 && er != nil\) {\n";
338 $body .= "\t\t$errvar = er\n";
339 $body .= "\t}\n";
340 }
341 } elsif ($errvar ne "") {
342 $body .= "\tif \(er != nil\) {\n";
343 $body .= "\t\t$errvar = er\n";
344 $body .= "\t}\n";
345 }
346
347 $text .= "\t$call\n";
348 $text .= $body;
349
350 $text .= "\treturn\n";
351 $text .= "}\n";
352}
353
354if($errors) {
355 exit 1;
356}
357
358print <<EOF;
359// $cmdline
360// Code generated by the command above; see README.md. DO NOT EDIT.
361
362// +build $tags
363
364package $package
365
366
367$c_extern
368*/
369import "C"
370import (
371 "unsafe"
372 "syscall"
373)
374
375
376EOF
377
378print "import \"golang.org/x/sys/unix\"\n" if $package ne "unix";
379
380chomp($_=<<EOF);
381
382$text
383EOF
384print $_;
385exit 0;
diff --git a/vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl b/vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
index be67afa..20632e1 100755
--- a/vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
+++ b/vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
@@ -32,6 +32,7 @@ my @headers = qw (
32 sys/sem.h 32 sys/sem.h
33 sys/shm.h 33 sys/shm.h
34 sys/vmmeter.h 34 sys/vmmeter.h
35 uvm/uvmexp.h
35 uvm/uvm_param.h 36 uvm/uvm_param.h
36 uvm/uvm_swap_encrypt.h 37 uvm/uvm_swap_encrypt.h
37 ddb/db_var.h 38 ddb/db_var.h
@@ -240,7 +241,7 @@ foreach my $header (@headers) {
240 241
241print <<EOF; 242print <<EOF;
242// mksysctl_openbsd.pl 243// mksysctl_openbsd.pl
243// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 244// Code generated by the command above; DO NOT EDIT.
244 245
245// +build $ENV{'GOARCH'},$ENV{'GOOS'} 246// +build $ENV{'GOARCH'},$ENV{'GOOS'}
246 247
diff --git a/vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl b/vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
index a0a22bf..198993d 100755
--- a/vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
+++ b/vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
@@ -27,7 +27,7 @@ const (
27EOF 27EOF
28 28
29while(<>){ 29while(<>){
30 if(/^([0-9]+)\s+\S+\s+STD\s+({ \S+\s+(\w+).*)$/){ 30 if(/^([0-9]+)\s+\S+\s+(?:NO)?STD\s+({ \S+\s+(\w+).*)$/){
31 my $num = $1; 31 my $num = $1;
32 my $proto = $2; 32 my $proto = $2;
33 my $name = "SYS_$3"; 33 my $name = "SYS_$3";
diff --git a/vendor/golang.org/x/sys/unix/openbsd_pledge.go b/vendor/golang.org/x/sys/unix/openbsd_pledge.go
index db4f72e..11388e5 100644
--- a/vendor/golang.org/x/sys/unix/openbsd_pledge.go
+++ b/vendor/golang.org/x/sys/unix/openbsd_pledge.go
@@ -8,31 +8,88 @@
8package unix 8package unix
9 9
10import ( 10import (
11 "errors"
12 "fmt"
13 "strconv"
11 "syscall" 14 "syscall"
12 "unsafe" 15 "unsafe"
13) 16)
14 17
15const ( 18const (
16 SYS_PLEDGE = 108 19 _SYS_PLEDGE = 108
17) 20)
18 21
19// Pledge implements the pledge syscall. For more information see pledge(2). 22// Pledge implements the pledge syscall.
20func Pledge(promises string, paths []string) error { 23//
21 promisesPtr, err := syscall.BytePtrFromString(promises) 24// The pledge syscall does not accept execpromises on OpenBSD releases
25// before 6.3.
26//
27// execpromises must be empty when Pledge is called on OpenBSD
28// releases predating 6.3, otherwise an error will be returned.
29//
30// For more information see pledge(2).
31func Pledge(promises, execpromises string) error {
32 maj, min, err := majmin()
22 if err != nil { 33 if err != nil {
23 return err 34 return err
24 } 35 }
25 promisesUnsafe, pathsUnsafe := unsafe.Pointer(promisesPtr), unsafe.Pointer(nil) 36
26 if paths != nil { 37 // If OpenBSD <= 5.9, pledge is not available.
27 var pathsPtr []*byte 38 if (maj == 5 && min != 9) || maj < 5 {
28 if pathsPtr, err = syscall.SlicePtrFromStrings(paths); err != nil { 39 return fmt.Errorf("pledge syscall is not available on OpenBSD %d.%d", maj, min)
40 }
41
42 // If OpenBSD <= 6.2 and execpromises is not empty
43 // return an error - execpromises is not available before 6.3
44 if (maj < 6 || (maj == 6 && min <= 2)) && execpromises != "" {
45 return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min)
46 }
47
48 pptr, err := syscall.BytePtrFromString(promises)
49 if err != nil {
50 return err
51 }
52
53 // This variable will hold either a nil unsafe.Pointer or
54 // an unsafe.Pointer to a string (execpromises).
55 var expr unsafe.Pointer
56
57 // If we're running on OpenBSD > 6.2, pass execpromises to the syscall.
58 if maj > 6 || (maj == 6 && min > 2) {
59 exptr, err := syscall.BytePtrFromString(execpromises)
60 if err != nil {
29 return err 61 return err
30 } 62 }
31 pathsUnsafe = unsafe.Pointer(&pathsPtr[0]) 63 expr = unsafe.Pointer(exptr)
32 } 64 }
33 _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0) 65
66 _, _, e := syscall.Syscall(_SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
34 if e != 0 { 67 if e != 0 {
35 return e 68 return e
36 } 69 }
70
37 return nil 71 return nil
38} 72}
73
74// majmin returns major and minor version number for an OpenBSD system.
75func majmin() (major int, minor int, err error) {
76 var v Utsname
77 err = Uname(&v)
78 if err != nil {
79 return
80 }
81
82 major, err = strconv.Atoi(string(v.Release[0]))
83 if err != nil {
84 err = errors.New("cannot parse major version number returned by uname")
85 return
86 }
87
88 minor, err = strconv.Atoi(string(v.Release[2]))
89 if err != nil {
90 err = errors.New("cannot parse minor version number returned by uname")
91 return
92 }
93
94 return
95}
diff --git a/vendor/golang.org/x/sys/unix/pagesize_unix.go b/vendor/golang.org/x/sys/unix/pagesize_unix.go
index 83c85e0..bc2f362 100644
--- a/vendor/golang.org/x/sys/unix/pagesize_unix.go
+++ b/vendor/golang.org/x/sys/unix/pagesize_unix.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7// For Unix, get the pagesize from the runtime. 7// For Unix, get the pagesize from the runtime.
8 8
diff --git a/vendor/golang.org/x/sys/unix/race0.go b/vendor/golang.org/x/sys/unix/race0.go
index dd08204..ad02667 100644
--- a/vendor/golang.org/x/sys/unix/race0.go
+++ b/vendor/golang.org/x/sys/unix/race0.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 5// +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly
6 6
7package unix 7package unix
8 8
diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
index bb756ec..9dd2f32 100644
--- a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
+++ b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7// Socket control messages 7// Socket control messages
8 8
@@ -12,7 +12,7 @@ import "unsafe"
12 12
13// Round the length of a raw sockaddr up to align it properly. 13// Round the length of a raw sockaddr up to align it properly.
14func cmsgAlignOf(salen int) int { 14func cmsgAlignOf(salen int) int {
15 salign := sizeofPtr 15 salign := SizeofPtr
16 // NOTE: It seems like 64-bit Darwin, DragonFly BSD and 16 // NOTE: It seems like 64-bit Darwin, DragonFly BSD and
17 // Solaris kernels still require 32-bit aligned access to 17 // Solaris kernels still require 32-bit aligned access to
18 // network subsystem. 18 // network subsystem.
diff --git a/vendor/golang.org/x/sys/unix/str.go b/vendor/golang.org/x/sys/unix/str.go
index 35ed664..17fb698 100644
--- a/vendor/golang.org/x/sys/unix/str.go
+++ b/vendor/golang.org/x/sys/unix/str.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7package unix 7package unix
8 8
diff --git a/vendor/golang.org/x/sys/unix/syscall.go b/vendor/golang.org/x/sys/unix/syscall.go
index 857d2a4..0d4b1d7 100644
--- a/vendor/golang.org/x/sys/unix/syscall.go
+++ b/vendor/golang.org/x/sys/unix/syscall.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7// Package unix contains an interface to the low-level operating system 7// Package unix contains an interface to the low-level operating system
8// primitives. OS details vary depending on the underlying system, and 8// primitives. OS details vary depending on the underlying system, and
@@ -11,24 +11,27 @@
11// system, set $GOOS and $GOARCH to the desired system. For example, if 11// system, set $GOOS and $GOARCH to the desired system. For example, if
12// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS 12// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
13// to freebsd and $GOARCH to arm. 13// to freebsd and $GOARCH to arm.
14//
14// The primary use of this package is inside other packages that provide a more 15// The primary use of this package is inside other packages that provide a more
15// portable interface to the system, such as "os", "time" and "net". Use 16// portable interface to the system, such as "os", "time" and "net". Use
16// those packages rather than this one if you can. 17// those packages rather than this one if you can.
18//
17// For details of the functions and data types in this package consult 19// For details of the functions and data types in this package consult
18// the manuals for the appropriate operating system. 20// the manuals for the appropriate operating system.
21//
19// These calls return err == nil to indicate success; otherwise 22// These calls return err == nil to indicate success; otherwise
20// err represents an operating system error describing the failure and 23// err represents an operating system error describing the failure and
21// holds a value of type syscall.Errno. 24// holds a value of type syscall.Errno.
22package unix // import "golang.org/x/sys/unix" 25package unix // import "golang.org/x/sys/unix"
23 26
27import "strings"
28
24// ByteSliceFromString returns a NUL-terminated slice of bytes 29// ByteSliceFromString returns a NUL-terminated slice of bytes
25// containing the text of s. If s contains a NUL byte at any 30// containing the text of s. If s contains a NUL byte at any
26// location, it returns (nil, EINVAL). 31// location, it returns (nil, EINVAL).
27func ByteSliceFromString(s string) ([]byte, error) { 32func ByteSliceFromString(s string) ([]byte, error) {
28 for i := 0; i < len(s); i++ { 33 if strings.IndexByte(s, 0) != -1 {
29 if s[i] == 0 { 34 return nil, EINVAL
30 return nil, EINVAL
31 }
32 } 35 }
33 a := make([]byte, len(s)+1) 36 a := make([]byte, len(s)+1)
34 copy(a, s) 37 copy(a, s)
diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go
new file mode 100644
index 0000000..df1f9ea
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/syscall_aix.go
@@ -0,0 +1,564 @@
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
7// Aix system calls.
8// This file is compiled as ordinary Go code,
9// but it is also input to mksyscall,
10// which parses the //sys lines and generates system call stubs.
11// Note that sometimes we use a lowercase //sys name and
12// wrap it in our own nicer implementation.
13
14package unix
15
16import (
17 "syscall"
18 "unsafe"
19)
20
21/*
22 * Wrapped
23 */
24
25//sys utimes(path string, times *[2]Timeval) (err error)
26func Utimes(path string, tv []Timeval) error {
27 if len(tv) != 2 {
28 return EINVAL
29 }
30 return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
31}
32
33//sys utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error)
34func UtimesNano(path string, ts []Timespec) error {
35 if len(ts) != 2 {
36 return EINVAL
37 }
38 return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
39}
40
41func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
42 if ts == nil {
43 return utimensat(dirfd, path, nil, flags)
44 }
45 if len(ts) != 2 {
46 return EINVAL
47 }
48 return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
49}
50
51func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
52 if sa.Port < 0 || sa.Port > 0xFFFF {
53 return nil, 0, EINVAL
54 }
55 sa.raw.Family = AF_INET
56 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
57 p[0] = byte(sa.Port >> 8)
58 p[1] = byte(sa.Port)
59 for i := 0; i < len(sa.Addr); i++ {
60 sa.raw.Addr[i] = sa.Addr[i]
61 }
62 return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil
63}
64
65func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) {
66 if sa.Port < 0 || sa.Port > 0xFFFF {
67 return nil, 0, EINVAL
68 }
69 sa.raw.Family = AF_INET6
70 p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
71 p[0] = byte(sa.Port >> 8)
72 p[1] = byte(sa.Port)
73 sa.raw.Scope_id = sa.ZoneId
74 for i := 0; i < len(sa.Addr); i++ {
75 sa.raw.Addr[i] = sa.Addr[i]
76 }
77 return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil
78}
79
80func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) {
81 name := sa.Name
82 n := len(name)
83 if n > len(sa.raw.Path) {
84 return nil, 0, EINVAL
85 }
86 if n == len(sa.raw.Path) && name[0] != '@' {
87 return nil, 0, EINVAL
88 }
89 sa.raw.Family = AF_UNIX
90 for i := 0; i < n; i++ {
91 sa.raw.Path[i] = uint8(name[i])
92 }
93 // length is family (uint16), name, NUL.
94 sl := _Socklen(2)
95 if n > 0 {
96 sl += _Socklen(n) + 1
97 }
98 if sa.raw.Path[0] == '@' {
99 sa.raw.Path[0] = 0
100 // Don't count trailing NUL for abstract address.
101 sl--
102 }
103
104 return unsafe.Pointer(&sa.raw), sl, nil
105}
106
107func Getsockname(fd int) (sa Sockaddr, err error) {
108 var rsa RawSockaddrAny
109 var len _Socklen = SizeofSockaddrAny
110 if err = getsockname(fd, &rsa, &len); err != nil {
111 return
112 }
113 return anyToSockaddr(fd, &rsa)
114}
115
116//sys getcwd(buf []byte) (err error)
117
118const ImplementsGetwd = true
119
120func Getwd() (ret string, err error) {
121 for len := uint64(4096); ; len *= 2 {
122 b := make([]byte, len)
123 err := getcwd(b)
124 if err == nil {
125 i := 0
126 for b[i] != 0 {
127 i++
128 }
129 return string(b[0:i]), nil
130 }
131 if err != ERANGE {
132 return "", err
133 }
134 }
135}
136
137func Getcwd(buf []byte) (n int, err error) {
138 err = getcwd(buf)
139 if err == nil {
140 i := 0
141 for buf[i] != 0 {
142 i++
143 }
144 n = i + 1
145 }
146 return
147}
148
149func Getgroups() (gids []int, err error) {
150 n, err := getgroups(0, nil)
151 if err != nil {
152 return nil, err
153 }
154 if n == 0 {
155 return nil, nil
156 }
157
158 // Sanity check group count. Max is 16 on BSD.
159 if n < 0 || n > 1000 {
160 return nil, EINVAL
161 }
162
163 a := make([]_Gid_t, n)
164 n, err = getgroups(n, &a[0])
165 if err != nil {
166 return nil, err
167 }
168 gids = make([]int, n)
169 for i, v := range a[0:n] {
170 gids[i] = int(v)
171 }
172 return
173}
174
175func Setgroups(gids []int) (err error) {
176 if len(gids) == 0 {
177 return setgroups(0, nil)
178 }
179
180 a := make([]_Gid_t, len(gids))
181 for i, v := range gids {
182 a[i] = _Gid_t(v)
183 }
184 return setgroups(len(a), &a[0])
185}
186
187/*
188 * Socket
189 */
190
191//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
192
193func Accept(fd int) (nfd int, sa Sockaddr, err error) {
194 var rsa RawSockaddrAny
195 var len _Socklen = SizeofSockaddrAny
196 nfd, err = accept(fd, &rsa, &len)
197 if nfd == -1 {
198 return
199 }
200 sa, err = anyToSockaddr(fd, &rsa)
201 if err != nil {
202 Close(nfd)
203 nfd = 0
204 }
205 return
206}
207
208func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
209 // Recvmsg not implemented on AIX
210 sa := new(SockaddrUnix)
211 return -1, -1, -1, sa, ENOSYS
212}
213
214func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
215 _, err = SendmsgN(fd, p, oob, to, flags)
216 return
217}
218
219func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
220 // SendmsgN not implemented on AIX
221 return -1, ENOSYS
222}
223
224func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
225 switch rsa.Addr.Family {
226
227 case AF_UNIX:
228 pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
229 sa := new(SockaddrUnix)
230
231 // Some versions of AIX have a bug in getsockname (see IV78655).
232 // We can't rely on sa.Len being set correctly.
233 n := SizeofSockaddrUnix - 3 // substract leading Family, Len, terminating NUL.
234 for i := 0; i < n; i++ {
235 if pp.Path[i] == 0 {
236 n = i
237 break
238 }
239 }
240
241 bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
242 sa.Name = string(bytes)
243 return sa, nil
244
245 case AF_INET:
246 pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
247 sa := new(SockaddrInet4)
248 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
249 sa.Port = int(p[0])<<8 + int(p[1])
250 for i := 0; i < len(sa.Addr); i++ {
251 sa.Addr[i] = pp.Addr[i]
252 }
253 return sa, nil
254
255 case AF_INET6:
256 pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
257 sa := new(SockaddrInet6)
258 p := (*[2]byte)(unsafe.Pointer(&pp.Port))
259 sa.Port = int(p[0])<<8 + int(p[1])
260 sa.ZoneId = pp.Scope_id
261 for i := 0; i < len(sa.Addr); i++ {
262 sa.Addr[i] = pp.Addr[i]
263 }
264 return sa, nil
265 }
266 return nil, EAFNOSUPPORT
267}
268
269func Gettimeofday(tv *Timeval) (err error) {
270 err = gettimeofday(tv, nil)
271 return
272}
273
274// TODO
275func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
276 return -1, ENOSYS
277}
278
279//sys getdirent(fd int, buf []byte) (n int, err error)
280func ReadDirent(fd int, buf []byte) (n int, err error) {
281 return getdirent(fd, buf)
282}
283
284//sys wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error)
285func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
286 var status _C_int
287 var r Pid_t
288 err = ERESTART
289 // AIX wait4 may return with ERESTART errno, while the processus is still
290 // active.
291 for err == ERESTART {
292 r, err = wait4(Pid_t(pid), &status, options, rusage)
293 }
294 wpid = int(r)
295 if wstatus != nil {
296 *wstatus = WaitStatus(status)
297 }
298 return
299}
300
301/*
302 * Wait
303 */
304
305type WaitStatus uint32
306
307func (w WaitStatus) Stopped() bool { return w&0x40 != 0 }
308func (w WaitStatus) StopSignal() syscall.Signal {
309 if !w.Stopped() {
310 return -1
311 }
312 return syscall.Signal(w>>8) & 0xFF
313}
314
315func (w WaitStatus) Exited() bool { return w&0xFF == 0 }
316func (w WaitStatus) ExitStatus() int {
317 if !w.Exited() {
318 return -1
319 }
320 return int((w >> 8) & 0xFF)
321}
322
323func (w WaitStatus) Signaled() bool { return w&0x40 == 0 && w&0xFF != 0 }
324func (w WaitStatus) Signal() syscall.Signal {
325 if !w.Signaled() {
326 return -1
327 }
328 return syscall.Signal(w>>16) & 0xFF
329}
330
331func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 }
332
333func (w WaitStatus) CoreDump() bool { return w&0x200 != 0 }
334
335func (w WaitStatus) TrapCause() int { return -1 }
336
337//sys ioctl(fd int, req uint, arg uintptr) (err error)
338
339// ioctl itself should not be exposed directly, but additional get/set
340// functions for specific types are permissible.
341
342// IoctlSetInt performs an ioctl operation which sets an integer value
343// on fd, using the specified request number.
344func IoctlSetInt(fd int, req uint, value int) error {
345 return ioctl(fd, req, uintptr(value))
346}
347
348func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
349 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
350}
351
352func ioctlSetTermios(fd int, req uint, value *Termios) error {
353 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
354}
355
356// IoctlGetInt performs an ioctl operation which gets an integer value
357// from fd, using the specified request number.
358func IoctlGetInt(fd int, req uint) (int, error) {
359 var value int
360 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
361 return value, err
362}
363
364func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
365 var value Winsize
366 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
367 return &value, err
368}
369
370func IoctlGetTermios(fd int, req uint) (*Termios, error) {
371 var value Termios
372 err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
373 return &value, err
374}
375
376// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
377// There is no way to create a custom fcntl and to keep //sys fcntl easily,
378// Therefore, the programmer must call dup2 instead of fcntl in this case.
379
380// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
381//sys FcntlInt(fd uintptr, cmd int, arg int) (r int,err error) = fcntl
382
383// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
384//sys FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) = fcntl
385
386func Flock(fd int, how int) (err error) {
387 return syscall.Flock(fd, how)
388}
389
390/*
391 * Direct access
392 */
393
394//sys Acct(path string) (err error)
395//sys Chdir(path string) (err error)
396//sys Chroot(path string) (err error)
397//sys Close(fd int) (err error)
398//sys Dup(oldfd int) (fd int, err error)
399//sys Dup3(oldfd int, newfd int, flags int) (err error)
400//sys Exit(code int)
401//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
402//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error)
403//sys Fchdir(fd int) (err error)
404//sys Fchmod(fd int, mode uint32) (err error)
405//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
406//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
407//sys fcntl(fd int, cmd int, arg int) (val int, err error)
408//sys Fdatasync(fd int) (err error)
409//sys Fsync(fd int) (err error)
410// readdir_r
411//sysnb Getpgid(pid int) (pgid int, err error)
412
413//sys Getpgrp() (pid int)
414
415//sysnb Getpid() (pid int)
416//sysnb Getppid() (ppid int)
417//sys Getpriority(which int, who int) (prio int, err error)
418//sysnb Getrusage(who int, rusage *Rusage) (err error)
419//sysnb Getsid(pid int) (sid int, err error)
420//sysnb Kill(pid int, sig syscall.Signal) (err error)
421//sys Klogctl(typ int, buf []byte) (n int, err error) = syslog
422//sys Mkdir(dirfd int, path string, mode uint32) (err error)
423//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
424//sys Mkfifo(path string, mode uint32) (err error)
425//sys Mknod(path string, mode uint32, dev int) (err error)
426//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
427//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
428//sys Open(path string, mode int, perm uint32) (fd int, err error) = open64
429//sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)
430//sys read(fd int, p []byte) (n int, err error)
431//sys Readlink(path string, buf []byte) (n int, err error)
432//sys Removexattr(path string, attr string) (err error)
433//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
434//sys Setdomainname(p []byte) (err error)
435//sys Sethostname(p []byte) (err error)
436//sysnb Setpgid(pid int, pgid int) (err error)
437//sysnb Setsid() (pid int, err error)
438//sysnb Settimeofday(tv *Timeval) (err error)
439
440//sys Setuid(uid int) (err error)
441//sys Setgid(uid int) (err error)
442
443//sys Setpriority(which int, who int, prio int) (err error)
444//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error)
445//sys Sync()
446//sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error)
447//sysnb Times(tms *Tms) (ticks uintptr, err error)
448//sysnb Umask(mask int) (oldmask int)
449//sysnb Uname(buf *Utsname) (err error)
450//TODO umount
451// //sys Unmount(target string, flags int) (err error) = umount
452//sys Unlink(path string) (err error)
453//sys Unlinkat(dirfd int, path string, flags int) (err error)
454//sys Unshare(flags int) (err error)
455//sys Ustat(dev int, ubuf *Ustat_t) (err error)
456//sys write(fd int, p []byte) (n int, err error)
457//sys readlen(fd int, p *byte, np int) (n int, err error) = read
458//sys writelen(fd int, p *byte, np int) (n int, err error) = write
459
460//sys Dup2(oldfd int, newfd int) (err error)
461//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = posix_fadvise64
462//sys Fchown(fd int, uid int, gid int) (err error)
463//sys Fstat(fd int, stat *Stat_t) (err error)
464//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = fstatat
465//sys Fstatfs(fd int, buf *Statfs_t) (err error)
466//sys Ftruncate(fd int, length int64) (err error)
467//sysnb Getegid() (egid int)
468//sysnb Geteuid() (euid int)
469//sysnb Getgid() (gid int)
470//sysnb Getuid() (uid int)
471//sys Lchown(path string, uid int, gid int) (err error)
472//sys Listen(s int, n int) (err error)
473//sys Lstat(path string, stat *Stat_t) (err error)
474//sys Pause() (err error)
475//sys Pread(fd int, p []byte, offset int64) (n int, err error) = pread64
476//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = pwrite64
477//TODO Select
478// //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
479//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
480//sysnb Setregid(rgid int, egid int) (err error)
481//sysnb Setreuid(ruid int, euid int) (err error)
482//sys Shutdown(fd int, how int) (err error)
483//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
484//sys Stat(path string, stat *Stat_t) (err error)
485//sys Statfs(path string, buf *Statfs_t) (err error)
486//sys Truncate(path string, length int64) (err error)
487
488//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
489//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
490//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
491//sysnb setgroups(n int, list *_Gid_t) (err error)
492//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
493//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
494//sysnb socket(domain int, typ int, proto int) (fd int, err error)
495//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
496//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
497//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
498//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
499//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
500//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
501//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
502
503//sys munmap(addr uintptr, length uintptr) (err error)
504
505var mapper = &mmapper{
506 active: make(map[*byte][]byte),
507 mmap: mmap,
508 munmap: munmap,
509}
510
511func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
512 return mapper.Mmap(fd, offset, length, prot, flags)
513}
514
515func Munmap(b []byte) (err error) {
516 return mapper.Munmap(b)
517}
518
519//sys Madvise(b []byte, advice int) (err error)
520//sys Mprotect(b []byte, prot int) (err error)
521//sys Mlock(b []byte) (err error)
522//sys Mlockall(flags int) (err error)
523//sys Msync(b []byte, flags int) (err error)
524//sys Munlock(b []byte) (err error)
525//sys Munlockall() (err error)
526
527//sysnb pipe(p *[2]_C_int) (err error)
528
529func Pipe(p []int) (err error) {
530 if len(p) != 2 {
531 return EINVAL
532 }
533 var pp [2]_C_int
534 err = pipe(&pp)
535 p[0] = int(pp[0])
536 p[1] = int(pp[1])
537 return
538}
539
540//sysnb pipe2(p *[2]_C_int, flags int) (err error)
541
542func Pipe2(p []int, flags int) (err error) {
543 if len(p) != 2 {
544 return EINVAL
545 }
546 var pp [2]_C_int
547 err = pipe2(&pp, flags)
548 p[0] = int(pp[0])
549 p[1] = int(pp[1])
550 return
551}
552
553//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
554
555func Poll(fds []PollFd, timeout int) (n int, err error) {
556 if len(fds) == 0 {
557 return poll(nil, 0, timeout)
558 }
559 return poll(&fds[0], len(fds), timeout)
560}
561
562//sys gettimeofday(tv *Timeval, tzp *Timezone) (err error)
563//sysnb Time(t *Time_t) (tt Time_t, err error)
564//sys Utime(path string, buf *Utimbuf) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go b/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
new file mode 100644
index 0000000..c28af1f
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
@@ -0,0 +1,34 @@
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// +build ppc
7
8package unix
9
10//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = getrlimit64
11//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) = setrlimit64
12//sys Seek(fd int, offset int64, whence int) (off int64, err error) = lseek64
13
14//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
15
16func setTimespec(sec, nsec int64) Timespec {
17 return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
18}
19
20func setTimeval(sec, usec int64) Timeval {
21 return Timeval{Sec: int32(sec), Usec: int32(usec)}
22}
23
24func (iov *Iovec) SetLen(length int) {
25 iov.Len = uint32(length)
26}
27
28func (msghdr *Msghdr) SetControllen(length int) {
29 msghdr.Controllen = uint32(length)
30}
31
32func (cmsg *Cmsghdr) SetLen(length int) {
33 cmsg.Len = uint32(length)
34}
diff --git a/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go b/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
new file mode 100644
index 0000000..881cacc
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
@@ -0,0 +1,34 @@
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// +build ppc64
7
8package unix
9
10//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
11//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
12//sys Seek(fd int, offset int64, whence int) (off int64, err error) = lseek
13
14//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) = mmap64
15
16func setTimespec(sec, nsec int64) Timespec {
17 return Timespec{Sec: sec, Nsec: nsec}
18}
19
20func setTimeval(sec, usec int64) Timeval {
21 return Timeval{Sec: int64(sec), Usec: int32(usec)}
22}
23
24func (iov *Iovec) SetLen(length int) {
25 iov.Len = uint64(length)
26}
27
28func (msghdr *Msghdr) SetControllen(length int) {
29 msghdr.Controllen = uint32(length)
30}
31
32func (cmsg *Cmsghdr) SetLen(length int) {
33 cmsg.Len = uint32(length)
34}
diff --git a/vendor/golang.org/x/sys/unix/syscall_bsd.go b/vendor/golang.org/x/sys/unix/syscall_bsd.go
index d3903ed..33c8b5f 100644
--- a/vendor/golang.org/x/sys/unix/syscall_bsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_bsd.go
@@ -206,7 +206,7 @@ func (sa *SockaddrDatalink) sockaddr() (unsafe.Pointer, _Socklen, error) {
206 return unsafe.Pointer(&sa.raw), SizeofSockaddrDatalink, nil 206 return unsafe.Pointer(&sa.raw), SizeofSockaddrDatalink, nil
207} 207}
208 208
209func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) { 209func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
210 switch rsa.Addr.Family { 210 switch rsa.Addr.Family {
211 case AF_LINK: 211 case AF_LINK:
212 pp := (*RawSockaddrDatalink)(unsafe.Pointer(rsa)) 212 pp := (*RawSockaddrDatalink)(unsafe.Pointer(rsa))
@@ -286,7 +286,7 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
286 Close(nfd) 286 Close(nfd)
287 return 0, nil, ECONNABORTED 287 return 0, nil, ECONNABORTED
288 } 288 }
289 sa, err = anyToSockaddr(&rsa) 289 sa, err = anyToSockaddr(fd, &rsa)
290 if err != nil { 290 if err != nil {
291 Close(nfd) 291 Close(nfd)
292 nfd = 0 292 nfd = 0
@@ -306,52 +306,11 @@ func Getsockname(fd int) (sa Sockaddr, err error) {
306 rsa.Addr.Family = AF_UNIX 306 rsa.Addr.Family = AF_UNIX
307 rsa.Addr.Len = SizeofSockaddrUnix 307 rsa.Addr.Len = SizeofSockaddrUnix
308 } 308 }
309 return anyToSockaddr(&rsa) 309 return anyToSockaddr(fd, &rsa)
310} 310}
311 311
312//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) 312//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
313 313
314func GetsockoptByte(fd, level, opt int) (value byte, err error) {
315 var n byte
316 vallen := _Socklen(1)
317 err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
318 return n, err
319}
320
321func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
322 vallen := _Socklen(4)
323 err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
324 return value, err
325}
326
327func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
328 var value IPMreq
329 vallen := _Socklen(SizeofIPMreq)
330 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
331 return &value, err
332}
333
334func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
335 var value IPv6Mreq
336 vallen := _Socklen(SizeofIPv6Mreq)
337 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
338 return &value, err
339}
340
341func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
342 var value IPv6MTUInfo
343 vallen := _Socklen(SizeofIPv6MTUInfo)
344 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
345 return &value, err
346}
347
348func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
349 var value ICMPv6Filter
350 vallen := _Socklen(SizeofICMPv6Filter)
351 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
352 return &value, err
353}
354
355// GetsockoptString returns the string value of the socket option opt for the 314// GetsockoptString returns the string value of the socket option opt for the
356// socket associated with fd at the given socket level. 315// socket associated with fd at the given socket level.
357func GetsockoptString(fd, level, opt int) (string, error) { 316func GetsockoptString(fd, level, opt int) (string, error) {
@@ -397,7 +356,7 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
397 recvflags = int(msg.Flags) 356 recvflags = int(msg.Flags)
398 // source address is only specified if the socket is unconnected 357 // source address is only specified if the socket is unconnected
399 if rsa.Addr.Family != AF_UNSPEC { 358 if rsa.Addr.Family != AF_UNSPEC {
400 from, err = anyToSockaddr(&rsa) 359 from, err = anyToSockaddr(fd, &rsa)
401 } 360 }
402 return 361 return
403} 362}
diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go
index b959869..1aabc56 100644
--- a/vendor/golang.org/x/sys/unix/syscall_darwin.go
+++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go
@@ -13,7 +13,7 @@
13package unix 13package unix
14 14
15import ( 15import (
16 errorspkg "errors" 16 "errors"
17 "syscall" 17 "syscall"
18 "unsafe" 18 "unsafe"
19) 19)
@@ -98,7 +98,7 @@ type attrList struct {
98 98
99func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (attrs [][]byte, err error) { 99func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (attrs [][]byte, err error) {
100 if len(attrBuf) < 4 { 100 if len(attrBuf) < 4 {
101 return nil, errorspkg.New("attrBuf too small") 101 return nil, errors.New("attrBuf too small")
102 } 102 }
103 attrList.bitmapCount = attrBitMapCount 103 attrList.bitmapCount = attrBitMapCount
104 104
@@ -134,12 +134,12 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
134 for i := uint32(0); int(i) < len(dat); { 134 for i := uint32(0); int(i) < len(dat); {
135 header := dat[i:] 135 header := dat[i:]
136 if len(header) < 8 { 136 if len(header) < 8 {
137 return attrs, errorspkg.New("truncated attribute header") 137 return attrs, errors.New("truncated attribute header")
138 } 138 }
139 datOff := *(*int32)(unsafe.Pointer(&header[0])) 139 datOff := *(*int32)(unsafe.Pointer(&header[0]))
140 attrLen := *(*uint32)(unsafe.Pointer(&header[4])) 140 attrLen := *(*uint32)(unsafe.Pointer(&header[4]))
141 if datOff < 0 || uint32(datOff)+attrLen > uint32(len(dat)) { 141 if datOff < 0 || uint32(datOff)+attrLen > uint32(len(dat)) {
142 return attrs, errorspkg.New("truncated results; attrBuf too small") 142 return attrs, errors.New("truncated results; attrBuf too small")
143 } 143 }
144 end := uint32(datOff) + attrLen 144 end := uint32(datOff) + attrLen
145 attrs = append(attrs, dat[datOff:end]) 145 attrs = append(attrs, dat[datOff:end])
@@ -176,6 +176,112 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
176 return 176 return
177} 177}
178 178
179func xattrPointer(dest []byte) *byte {
180 // It's only when dest is set to NULL that the OS X implementations of
181 // getxattr() and listxattr() return the current sizes of the named attributes.
182 // An empty byte array is not sufficient. To maintain the same behaviour as the
183 // linux implementation, we wrap around the system calls and pass in NULL when
184 // dest is empty.
185 var destp *byte
186 if len(dest) > 0 {
187 destp = &dest[0]
188 }
189 return destp
190}
191
192//sys getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error)
193
194func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
195 return getxattr(path, attr, xattrPointer(dest), len(dest), 0, 0)
196}
197
198func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
199 return getxattr(link, attr, xattrPointer(dest), len(dest), 0, XATTR_NOFOLLOW)
200}
201
202//sys fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error)
203
204func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
205 return fgetxattr(fd, attr, xattrPointer(dest), len(dest), 0, 0)
206}
207
208//sys setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error)
209
210func Setxattr(path string, attr string, data []byte, flags int) (err error) {
211 // The parameters for the OS X implementation vary slightly compared to the
212 // linux system call, specifically the position parameter:
213 //
214 // linux:
215 // int setxattr(
216 // const char *path,
217 // const char *name,
218 // const void *value,
219 // size_t size,
220 // int flags
221 // );
222 //
223 // darwin:
224 // int setxattr(
225 // const char *path,
226 // const char *name,
227 // void *value,
228 // size_t size,
229 // u_int32_t position,
230 // int options
231 // );
232 //
233 // position specifies the offset within the extended attribute. In the
234 // current implementation, only the resource fork extended attribute makes
235 // use of this argument. For all others, position is reserved. We simply
236 // default to setting it to zero.
237 return setxattr(path, attr, xattrPointer(data), len(data), 0, flags)
238}
239
240func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
241 return setxattr(link, attr, xattrPointer(data), len(data), 0, flags|XATTR_NOFOLLOW)
242}
243
244//sys fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error)
245
246func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
247 return fsetxattr(fd, attr, xattrPointer(data), len(data), 0, 0)
248}
249
250//sys removexattr(path string, attr string, options int) (err error)
251
252func Removexattr(path string, attr string) (err error) {
253 // We wrap around and explicitly zero out the options provided to the OS X
254 // implementation of removexattr, we do so for interoperability with the
255 // linux variant.
256 return removexattr(path, attr, 0)
257}
258
259func Lremovexattr(link string, attr string) (err error) {
260 return removexattr(link, attr, XATTR_NOFOLLOW)
261}
262
263//sys fremovexattr(fd int, attr string, options int) (err error)
264
265func Fremovexattr(fd int, attr string) (err error) {
266 return fremovexattr(fd, attr, 0)
267}
268
269//sys listxattr(path string, dest *byte, size int, options int) (sz int, err error)
270
271func Listxattr(path string, dest []byte) (sz int, err error) {
272 return listxattr(path, xattrPointer(dest), len(dest), 0)
273}
274
275func Llistxattr(link string, dest []byte) (sz int, err error) {
276 return listxattr(link, xattrPointer(dest), len(dest), XATTR_NOFOLLOW)
277}
278
279//sys flistxattr(fd int, dest *byte, size int, options int) (sz int, err error)
280
281func Flistxattr(fd int, dest []byte) (sz int, err error) {
282 return flistxattr(fd, xattrPointer(dest), len(dest), 0)
283}
284
179func setattrlistTimes(path string, times []Timespec, flags int) error { 285func setattrlistTimes(path string, times []Timespec, flags int) error {
180 _p0, err := BytePtrFromString(path) 286 _p0, err := BytePtrFromString(path)
181 if err != nil { 287 if err != nil {
@@ -231,11 +337,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
231 return ioctl(fd, req, uintptr(value)) 337 return ioctl(fd, req, uintptr(value))
232} 338}
233 339
234func IoctlSetWinsize(fd int, req uint, value *Winsize) error { 340func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
235 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 341 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
236} 342}
237 343
238func IoctlSetTermios(fd int, req uint, value *Termios) error { 344func ioctlSetTermios(fd int, req uint, value *Termios) error {
239 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 345 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
240} 346}
241 347
@@ -330,6 +436,7 @@ func Uname(uname *Utsname) error {
330//sys Flock(fd int, how int) (err error) 436//sys Flock(fd int, how int) (err error)
331//sys Fpathconf(fd int, name int) (val int, err error) 437//sys Fpathconf(fd int, name int) (val int, err error)
332//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 438//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
439//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
333//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64 440//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
334//sys Fsync(fd int) (err error) 441//sys Fsync(fd int) (err error)
335//sys Ftruncate(fd int, length int64) (err error) 442//sys Ftruncate(fd int, length int64) (err error)
@@ -446,14 +553,6 @@ func Uname(uname *Utsname) error {
446// Watchevent 553// Watchevent
447// Waitevent 554// Waitevent
448// Modwatch 555// Modwatch
449// Getxattr
450// Fgetxattr
451// Setxattr
452// Fsetxattr
453// Removexattr
454// Fremovexattr
455// Listxattr
456// Flistxattr
457// Fsctl 556// Fsctl
458// Initgroups 557// Initgroups
459// Posix_spawn 558// Posix_spawn
diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
index 777860b..79d125b 100644
--- a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
+++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
@@ -87,7 +87,7 @@ func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) {
87 if len > SizeofSockaddrAny { 87 if len > SizeofSockaddrAny {
88 panic("RawSockaddrAny too small") 88 panic("RawSockaddrAny too small")
89 } 89 }
90 sa, err = anyToSockaddr(&rsa) 90 sa, err = anyToSockaddr(fd, &rsa)
91 if err != nil { 91 if err != nil {
92 Close(nfd) 92 Close(nfd)
93 nfd = 0 93 nfd = 0
@@ -143,11 +143,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
143 return ioctl(fd, req, uintptr(value)) 143 return ioctl(fd, req, uintptr(value))
144} 144}
145 145
146func IoctlSetWinsize(fd int, req uint, value *Winsize) error { 146func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
147 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 147 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
148} 148}
149 149
150func IoctlSetTermios(fd int, req uint, value *Termios) error { 150func ioctlSetTermios(fd int, req uint, value *Termios) error {
151 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 151 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
152} 152}
153 153
@@ -251,10 +251,12 @@ func Uname(uname *Utsname) error {
251//sys Fchdir(fd int) (err error) 251//sys Fchdir(fd int) (err error)
252//sys Fchflags(fd int, flags int) (err error) 252//sys Fchflags(fd int, flags int) (err error)
253//sys Fchmod(fd int, mode uint32) (err error) 253//sys Fchmod(fd int, mode uint32) (err error)
254//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
254//sys Fchown(fd int, uid int, gid int) (err error) 255//sys Fchown(fd int, uid int, gid int) (err error)
255//sys Flock(fd int, how int) (err error) 256//sys Flock(fd int, how int) (err error)
256//sys Fpathconf(fd int, name int) (val int, err error) 257//sys Fpathconf(fd int, name int) (val int, err error)
257//sys Fstat(fd int, stat *Stat_t) (err error) 258//sys Fstat(fd int, stat *Stat_t) (err error)
259//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
258//sys Fstatfs(fd int, stat *Statfs_t) (err error) 260//sys Fstatfs(fd int, stat *Statfs_t) (err error)
259//sys Fsync(fd int) (err error) 261//sys Fsync(fd int) (err error)
260//sys Ftruncate(fd int, length int64) (err error) 262//sys Ftruncate(fd int, length int64) (err error)
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go
index 89f2c3f..77a634c 100644
--- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go
@@ -12,7 +12,9 @@
12 12
13package unix 13package unix
14 14
15import "unsafe" 15import (
16 "unsafe"
17)
16 18
17// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. 19// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
18type SockaddrDatalink struct { 20type SockaddrDatalink struct {
@@ -55,14 +57,21 @@ func nametomib(name string) (mib []_C_int, err error) {
55 return buf[0 : n/siz], nil 57 return buf[0 : n/siz], nil
56} 58}
57 59
58//sysnb pipe() (r int, w int, err error)
59
60func Pipe(p []int) (err error) { 60func Pipe(p []int) (err error) {
61 return Pipe2(p, 0)
62}
63
64//sysnb pipe2(p *[2]_C_int, flags int) (err error)
65
66func Pipe2(p []int, flags int) error {
61 if len(p) != 2 { 67 if len(p) != 2 {
62 return EINVAL 68 return EINVAL
63 } 69 }
64 p[0], p[1], err = pipe() 70 var pp [2]_C_int
65 return 71 err := pipe2(&pp, flags)
72 p[0] = int(pp[0])
73 p[1] = int(pp[1])
74 return err
66} 75}
67 76
68func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { 77func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
@@ -86,7 +95,7 @@ func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) {
86 if len > SizeofSockaddrAny { 95 if len > SizeofSockaddrAny {
87 panic("RawSockaddrAny too small") 96 panic("RawSockaddrAny too small")
88 } 97 }
89 sa, err = anyToSockaddr(&rsa) 98 sa, err = anyToSockaddr(fd, &rsa)
90 if err != nil { 99 if err != nil {
91 Close(nfd) 100 Close(nfd)
92 nfd = 0 101 nfd = 0
@@ -131,232 +140,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
131 return ENOSYS 140 return ENOSYS
132} 141}
133 142
134// Derive extattr namespace and attribute name
135
136func xattrnamespace(fullattr string) (ns int, attr string, err error) {
137 s := -1
138 for idx, val := range fullattr {
139 if val == '.' {
140 s = idx
141 break
142 }
143 }
144
145 if s == -1 {
146 return -1, "", ENOATTR
147 }
148
149 namespace := fullattr[0:s]
150 attr = fullattr[s+1:]
151
152 switch namespace {
153 case "user":
154 return EXTATTR_NAMESPACE_USER, attr, nil
155 case "system":
156 return EXTATTR_NAMESPACE_SYSTEM, attr, nil
157 default:
158 return -1, "", ENOATTR
159 }
160}
161
162func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
163 if len(dest) > idx {
164 return unsafe.Pointer(&dest[idx])
165 } else {
166 return unsafe.Pointer(_zero)
167 }
168}
169
170// FreeBSD implements its own syscalls to handle extended attributes
171
172func Getxattr(file string, attr string, dest []byte) (sz int, err error) {
173 d := initxattrdest(dest, 0)
174 destsize := len(dest)
175
176 nsid, a, err := xattrnamespace(attr)
177 if err != nil {
178 return -1, err
179 }
180
181 return ExtattrGetFile(file, nsid, a, uintptr(d), destsize)
182}
183
184func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
185 d := initxattrdest(dest, 0)
186 destsize := len(dest)
187
188 nsid, a, err := xattrnamespace(attr)
189 if err != nil {
190 return -1, err
191 }
192
193 return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize)
194}
195
196func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
197 d := initxattrdest(dest, 0)
198 destsize := len(dest)
199
200 nsid, a, err := xattrnamespace(attr)
201 if err != nil {
202 return -1, err
203 }
204
205 return ExtattrGetLink(link, nsid, a, uintptr(d), destsize)
206}
207
208// flags are unused on FreeBSD
209
210func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
211 d := unsafe.Pointer(&data[0])
212 datasiz := len(data)
213
214 nsid, a, err := xattrnamespace(attr)
215 if err != nil {
216 return
217 }
218
219 _, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz)
220 return
221}
222
223func Setxattr(file string, attr string, data []byte, flags int) (err error) {
224 d := unsafe.Pointer(&data[0])
225 datasiz := len(data)
226
227 nsid, a, err := xattrnamespace(attr)
228 if err != nil {
229 return
230 }
231
232 _, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz)
233 return
234}
235
236func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
237 d := unsafe.Pointer(&data[0])
238 datasiz := len(data)
239
240 nsid, a, err := xattrnamespace(attr)
241 if err != nil {
242 return
243 }
244
245 _, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz)
246 return
247}
248
249func Removexattr(file string, attr string) (err error) {
250 nsid, a, err := xattrnamespace(attr)
251 if err != nil {
252 return
253 }
254
255 err = ExtattrDeleteFile(file, nsid, a)
256 return
257}
258
259func Fremovexattr(fd int, attr string) (err error) {
260 nsid, a, err := xattrnamespace(attr)
261 if err != nil {
262 return
263 }
264
265 err = ExtattrDeleteFd(fd, nsid, a)
266 return
267}
268
269func Lremovexattr(link string, attr string) (err error) {
270 nsid, a, err := xattrnamespace(attr)
271 if err != nil {
272 return
273 }
274
275 err = ExtattrDeleteLink(link, nsid, a)
276 return
277}
278
279func Listxattr(file string, dest []byte) (sz int, err error) {
280 d := initxattrdest(dest, 0)
281 destsiz := len(dest)
282
283 // FreeBSD won't allow you to list xattrs from multiple namespaces
284 s := 0
285 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
286 stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
287
288 /* Errors accessing system attrs are ignored so that
289 * we can implement the Linux-like behavior of omitting errors that
290 * we don't have read permissions on
291 *
292 * Linux will still error if we ask for user attributes on a file that
293 * we don't have read permissions on, so don't ignore those errors
294 */
295 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
296 continue
297 } else if e != nil {
298 return s, e
299 }
300
301 s += stmp
302 destsiz -= s
303 if destsiz < 0 {
304 destsiz = 0
305 }
306 d = initxattrdest(dest, s)
307 }
308
309 return s, nil
310}
311
312func Flistxattr(fd int, dest []byte) (sz int, err error) {
313 d := initxattrdest(dest, 0)
314 destsiz := len(dest)
315
316 s := 0
317 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
318 stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
319 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
320 continue
321 } else if e != nil {
322 return s, e
323 }
324
325 s += stmp
326 destsiz -= s
327 if destsiz < 0 {
328 destsiz = 0
329 }
330 d = initxattrdest(dest, s)
331 }
332
333 return s, nil
334}
335
336func Llistxattr(link string, dest []byte) (sz int, err error) {
337 d := initxattrdest(dest, 0)
338 destsiz := len(dest)
339
340 s := 0
341 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
342 stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
343 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
344 continue
345 } else if e != nil {
346 return s, e
347 }
348
349 s += stmp
350 destsiz -= s
351 if destsiz < 0 {
352 destsiz = 0
353 }
354 d = initxattrdest(dest, s)
355 }
356
357 return s, nil
358}
359
360//sys ioctl(fd int, req uint, arg uintptr) (err error) 143//sys ioctl(fd int, req uint, arg uintptr) (err error)
361 144
362// ioctl itself should not be exposed directly, but additional get/set 145// ioctl itself should not be exposed directly, but additional get/set
@@ -368,11 +151,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
368 return ioctl(fd, req, uintptr(value)) 151 return ioctl(fd, req, uintptr(value))
369} 152}
370 153
371func IoctlSetWinsize(fd int, req uint, value *Winsize) error { 154func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
372 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 155 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
373} 156}
374 157
375func IoctlSetTermios(fd int, req uint, value *Termios) error { 158func ioctlSetTermios(fd int, req uint, value *Termios) error {
376 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 159 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
377} 160}
378 161
@@ -482,6 +265,7 @@ func Uname(uname *Utsname) error {
482//sys Flock(fd int, how int) (err error) 265//sys Flock(fd int, how int) (err error)
483//sys Fpathconf(fd int, name int) (val int, err error) 266//sys Fpathconf(fd int, name int) (val int, err error)
484//sys Fstat(fd int, stat *Stat_t) (err error) 267//sys Fstat(fd int, stat *Stat_t) (err error)
268//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
485//sys Fstatfs(fd int, stat *Statfs_t) (err error) 269//sys Fstatfs(fd int, stat *Statfs_t) (err error)
486//sys Fsync(fd int) (err error) 270//sys Fsync(fd int) (err error)
487//sys Ftruncate(fd int, length int64) (err error) 271//sys Ftruncate(fd int, length int64) (err error)
@@ -605,14 +389,6 @@ func Uname(uname *Utsname) error {
605// Watchevent 389// Watchevent
606// Waitevent 390// Waitevent
607// Modwatch 391// Modwatch
608// Getxattr
609// Fgetxattr
610// Setxattr
611// Fsetxattr
612// Removexattr
613// Fremovexattr
614// Listxattr
615// Flistxattr
616// Fsctl 392// Fsctl
617// Initgroups 393// Initgroups
618// Posix_spawn 394// Posix_spawn
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go
index 76cf81f..bfa20a9 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux.go
@@ -61,11 +61,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
61 return ioctl(fd, req, uintptr(value)) 61 return ioctl(fd, req, uintptr(value))
62} 62}
63 63
64func IoctlSetWinsize(fd int, req uint, value *Winsize) error { 64func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
65 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 65 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
66} 66}
67 67
68func IoctlSetTermios(fd int, req uint, value *Termios) error { 68func ioctlSetTermios(fd int, req uint, value *Termios) error {
69 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 69 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
70} 70}
71 71
@@ -148,8 +148,6 @@ func Unlink(path string) error {
148 148
149//sys Unlinkat(dirfd int, path string, flags int) (err error) 149//sys Unlinkat(dirfd int, path string, flags int) (err error)
150 150
151//sys utimes(path string, times *[2]Timeval) (err error)
152
153func Utimes(path string, tv []Timeval) error { 151func Utimes(path string, tv []Timeval) error {
154 if tv == nil { 152 if tv == nil {
155 err := utimensat(AT_FDCWD, path, nil, 0) 153 err := utimensat(AT_FDCWD, path, nil, 0)
@@ -207,20 +205,14 @@ func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
207 return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) 205 return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
208} 206}
209 207
210//sys futimesat(dirfd int, path *byte, times *[2]Timeval) (err error)
211
212func Futimesat(dirfd int, path string, tv []Timeval) error { 208func Futimesat(dirfd int, path string, tv []Timeval) error {
213 pathp, err := BytePtrFromString(path)
214 if err != nil {
215 return err
216 }
217 if tv == nil { 209 if tv == nil {
218 return futimesat(dirfd, pathp, nil) 210 return futimesat(dirfd, path, nil)
219 } 211 }
220 if len(tv) != 2 { 212 if len(tv) != 2 {
221 return EINVAL 213 return EINVAL
222 } 214 }
223 return futimesat(dirfd, pathp, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) 215 return futimesat(dirfd, path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
224} 216}
225 217
226func Futimes(fd int, tv []Timeval) (err error) { 218func Futimes(fd int, tv []Timeval) (err error) {
@@ -497,6 +489,47 @@ func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) {
497 return unsafe.Pointer(&sa.raw), SizeofSockaddrL2, nil 489 return unsafe.Pointer(&sa.raw), SizeofSockaddrL2, nil
498} 490}
499 491
492// SockaddrRFCOMM implements the Sockaddr interface for AF_BLUETOOTH type sockets
493// using the RFCOMM protocol.
494//
495// Server example:
496//
497// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)
498// _ = unix.Bind(fd, &unix.SockaddrRFCOMM{
499// Channel: 1,
500// Addr: [6]uint8{0, 0, 0, 0, 0, 0}, // BDADDR_ANY or 00:00:00:00:00:00
501// })
502// _ = Listen(fd, 1)
503// nfd, sa, _ := Accept(fd)
504// fmt.Printf("conn addr=%v fd=%d", sa.(*unix.SockaddrRFCOMM).Addr, nfd)
505// Read(nfd, buf)
506//
507// Client example:
508//
509// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)
510// _ = Connect(fd, &SockaddrRFCOMM{
511// Channel: 1,
512// Addr: [6]byte{0x11, 0x22, 0x33, 0xaa, 0xbb, 0xcc}, // CC:BB:AA:33:22:11
513// })
514// Write(fd, []byte(`hello`))
515type SockaddrRFCOMM struct {
516 // Addr represents a bluetooth address, byte ordering is little-endian.
517 Addr [6]uint8
518
519 // Channel is a designated bluetooth channel, only 1-30 are available for use.
520 // Since Linux 2.6.7 and further zero value is the first available channel.
521 Channel uint8
522
523 raw RawSockaddrRFCOMM
524}
525
526func (sa *SockaddrRFCOMM) sockaddr() (unsafe.Pointer, _Socklen, error) {
527 sa.raw.Family = AF_BLUETOOTH
528 sa.raw.Channel = sa.Channel
529 sa.raw.Bdaddr = sa.Addr
530 return unsafe.Pointer(&sa.raw), SizeofSockaddrRFCOMM, nil
531}
532
500// SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets. 533// SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets.
501// The RxID and TxID fields are used for transport protocol addressing in 534// The RxID and TxID fields are used for transport protocol addressing in
502// (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with 535// (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with
@@ -659,7 +692,25 @@ func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) {
659 return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil 692 return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil
660} 693}
661 694
662func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) { 695type SockaddrXDP struct {
696 Flags uint16
697 Ifindex uint32
698 QueueID uint32
699 SharedUmemFD uint32
700 raw RawSockaddrXDP
701}
702
703func (sa *SockaddrXDP) sockaddr() (unsafe.Pointer, _Socklen, error) {
704 sa.raw.Family = AF_XDP
705 sa.raw.Flags = sa.Flags
706 sa.raw.Ifindex = sa.Ifindex
707 sa.raw.Queue_id = sa.QueueID
708 sa.raw.Shared_umem_fd = sa.SharedUmemFD
709
710 return unsafe.Pointer(&sa.raw), SizeofSockaddrXDP, nil
711}
712
713func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
663 switch rsa.Addr.Family { 714 switch rsa.Addr.Family {
664 case AF_NETLINK: 715 case AF_NETLINK:
665 pp := (*RawSockaddrNetlink)(unsafe.Pointer(rsa)) 716 pp := (*RawSockaddrNetlink)(unsafe.Pointer(rsa))
@@ -736,6 +787,39 @@ func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) {
736 Port: pp.Port, 787 Port: pp.Port,
737 } 788 }
738 return sa, nil 789 return sa, nil
790 case AF_BLUETOOTH:
791 proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
792 if err != nil {
793 return nil, err
794 }
795 // only BTPROTO_L2CAP and BTPROTO_RFCOMM can accept connections
796 switch proto {
797 case BTPROTO_L2CAP:
798 pp := (*RawSockaddrL2)(unsafe.Pointer(rsa))
799 sa := &SockaddrL2{
800 PSM: pp.Psm,
801 CID: pp.Cid,
802 Addr: pp.Bdaddr,
803 AddrType: pp.Bdaddr_type,
804 }
805 return sa, nil
806 case BTPROTO_RFCOMM:
807 pp := (*RawSockaddrRFCOMM)(unsafe.Pointer(rsa))
808 sa := &SockaddrRFCOMM{
809 Channel: pp.Channel,
810 Addr: pp.Bdaddr,
811 }
812 return sa, nil
813 }
814 case AF_XDP:
815 pp := (*RawSockaddrXDP)(unsafe.Pointer(rsa))
816 sa := &SockaddrXDP{
817 Flags: pp.Flags,
818 Ifindex: pp.Ifindex,
819 QueueID: pp.Queue_id,
820 SharedUmemFD: pp.Shared_umem_fd,
821 }
822 return sa, nil
739 } 823 }
740 return nil, EAFNOSUPPORT 824 return nil, EAFNOSUPPORT
741} 825}
@@ -747,7 +831,7 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
747 if err != nil { 831 if err != nil {
748 return 832 return
749 } 833 }
750 sa, err = anyToSockaddr(&rsa) 834 sa, err = anyToSockaddr(fd, &rsa)
751 if err != nil { 835 if err != nil {
752 Close(nfd) 836 Close(nfd)
753 nfd = 0 837 nfd = 0
@@ -765,7 +849,7 @@ func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {
765 if len > SizeofSockaddrAny { 849 if len > SizeofSockaddrAny {
766 panic("RawSockaddrAny too small") 850 panic("RawSockaddrAny too small")
767 } 851 }
768 sa, err = anyToSockaddr(&rsa) 852 sa, err = anyToSockaddr(fd, &rsa)
769 if err != nil { 853 if err != nil {
770 Close(nfd) 854 Close(nfd)
771 nfd = 0 855 nfd = 0
@@ -779,20 +863,7 @@ func Getsockname(fd int) (sa Sockaddr, err error) {
779 if err = getsockname(fd, &rsa, &len); err != nil { 863 if err = getsockname(fd, &rsa, &len); err != nil {
780 return 864 return
781 } 865 }
782 return anyToSockaddr(&rsa) 866 return anyToSockaddr(fd, &rsa)
783}
784
785func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
786 vallen := _Socklen(4)
787 err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
788 return value, err
789}
790
791func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
792 var value IPMreq
793 vallen := _Socklen(SizeofIPMreq)
794 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
795 return &value, err
796} 867}
797 868
798func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { 869func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
@@ -802,27 +873,6 @@ func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
802 return &value, err 873 return &value, err
803} 874}
804 875
805func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
806 var value IPv6Mreq
807 vallen := _Socklen(SizeofIPv6Mreq)
808 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
809 return &value, err
810}
811
812func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
813 var value IPv6MTUInfo
814 vallen := _Socklen(SizeofIPv6MTUInfo)
815 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
816 return &value, err
817}
818
819func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
820 var value ICMPv6Filter
821 vallen := _Socklen(SizeofICMPv6Filter)
822 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
823 return &value, err
824}
825
826func GetsockoptUcred(fd, level, opt int) (*Ucred, error) { 876func GetsockoptUcred(fd, level, opt int) (*Ucred, error) {
827 var value Ucred 877 var value Ucred
828 vallen := _Socklen(SizeofUcred) 878 vallen := _Socklen(SizeofUcred)
@@ -978,15 +1028,17 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
978 } 1028 }
979 var dummy byte 1029 var dummy byte
980 if len(oob) > 0 { 1030 if len(oob) > 0 {
981 var sockType int 1031 if len(p) == 0 {
982 sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) 1032 var sockType int
983 if err != nil { 1033 sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
984 return 1034 if err != nil {
985 } 1035 return
986 // receive at least one normal byte 1036 }
987 if sockType != SOCK_DGRAM && len(p) == 0 { 1037 // receive at least one normal byte
988 iov.Base = &dummy 1038 if sockType != SOCK_DGRAM {
989 iov.SetLen(1) 1039 iov.Base = &dummy
1040 iov.SetLen(1)
1041 }
990 } 1042 }
991 msg.Control = &oob[0] 1043 msg.Control = &oob[0]
992 msg.SetControllen(len(oob)) 1044 msg.SetControllen(len(oob))
@@ -1000,7 +1052,7 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
1000 recvflags = int(msg.Flags) 1052 recvflags = int(msg.Flags)
1001 // source address is only specified if the socket is unconnected 1053 // source address is only specified if the socket is unconnected
1002 if rsa.Addr.Family != AF_UNSPEC { 1054 if rsa.Addr.Family != AF_UNSPEC {
1003 from, err = anyToSockaddr(&rsa) 1055 from, err = anyToSockaddr(fd, &rsa)
1004 } 1056 }
1005 return 1057 return
1006} 1058}
@@ -1030,15 +1082,17 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
1030 } 1082 }
1031 var dummy byte 1083 var dummy byte
1032 if len(oob) > 0 { 1084 if len(oob) > 0 {
1033 var sockType int 1085 if len(p) == 0 {
1034 sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) 1086 var sockType int
1035 if err != nil { 1087 sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
1036 return 0, err 1088 if err != nil {
1037 } 1089 return 0, err
1038 // send at least one normal byte 1090 }
1039 if sockType != SOCK_DGRAM && len(p) == 0 { 1091 // send at least one normal byte
1040 iov.Base = &dummy 1092 if sockType != SOCK_DGRAM {
1041 iov.SetLen(1) 1093 iov.Base = &dummy
1094 iov.SetLen(1)
1095 }
1042 } 1096 }
1043 msg.Control = &oob[0] 1097 msg.Control = &oob[0]
1044 msg.SetControllen(len(oob)) 1098 msg.SetControllen(len(oob))
@@ -1068,7 +1122,7 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
1068 // The ptrace syscall differs from glibc's ptrace. 1122 // The ptrace syscall differs from glibc's ptrace.
1069 // Peeks returns the word in *data, not as the return value. 1123 // Peeks returns the word in *data, not as the return value.
1070 1124
1071 var buf [sizeofPtr]byte 1125 var buf [SizeofPtr]byte
1072 1126
1073 // Leading edge. PEEKTEXT/PEEKDATA don't require aligned 1127 // Leading edge. PEEKTEXT/PEEKDATA don't require aligned
1074 // access (PEEKUSER warns that it might), but if we don't 1128 // access (PEEKUSER warns that it might), but if we don't
@@ -1076,12 +1130,12 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
1076 // boundary and not get the bytes leading up to the page 1130 // boundary and not get the bytes leading up to the page
1077 // boundary. 1131 // boundary.
1078 n := 0 1132 n := 0
1079 if addr%sizeofPtr != 0 { 1133 if addr%SizeofPtr != 0 {
1080 err = ptrace(req, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0]))) 1134 err = ptrace(req, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
1081 if err != nil { 1135 if err != nil {
1082 return 0, err 1136 return 0, err
1083 } 1137 }
1084 n += copy(out, buf[addr%sizeofPtr:]) 1138 n += copy(out, buf[addr%SizeofPtr:])
1085 out = out[n:] 1139 out = out[n:]
1086 } 1140 }
1087 1141
@@ -1119,15 +1173,15 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
1119 1173
1120 // Leading edge. 1174 // Leading edge.
1121 n := 0 1175 n := 0
1122 if addr%sizeofPtr != 0 { 1176 if addr%SizeofPtr != 0 {
1123 var buf [sizeofPtr]byte 1177 var buf [SizeofPtr]byte
1124 err = ptrace(peekReq, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0]))) 1178 err = ptrace(peekReq, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
1125 if err != nil { 1179 if err != nil {
1126 return 0, err 1180 return 0, err
1127 } 1181 }
1128 n += copy(buf[addr%sizeofPtr:], data) 1182 n += copy(buf[addr%SizeofPtr:], data)
1129 word := *((*uintptr)(unsafe.Pointer(&buf[0]))) 1183 word := *((*uintptr)(unsafe.Pointer(&buf[0])))
1130 err = ptrace(pokeReq, pid, addr-addr%sizeofPtr, word) 1184 err = ptrace(pokeReq, pid, addr-addr%SizeofPtr, word)
1131 if err != nil { 1185 if err != nil {
1132 return 0, err 1186 return 0, err
1133 } 1187 }
@@ -1135,19 +1189,19 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
1135 } 1189 }
1136 1190
1137 // Interior. 1191 // Interior.
1138 for len(data) > sizeofPtr { 1192 for len(data) > SizeofPtr {
1139 word := *((*uintptr)(unsafe.Pointer(&data[0]))) 1193 word := *((*uintptr)(unsafe.Pointer(&data[0])))
1140 err = ptrace(pokeReq, pid, addr+uintptr(n), word) 1194 err = ptrace(pokeReq, pid, addr+uintptr(n), word)
1141 if err != nil { 1195 if err != nil {
1142 return n, err 1196 return n, err
1143 } 1197 }
1144 n += sizeofPtr 1198 n += SizeofPtr
1145 data = data[sizeofPtr:] 1199 data = data[SizeofPtr:]
1146 } 1200 }
1147 1201
1148 // Trailing edge. 1202 // Trailing edge.
1149 if len(data) > 0 { 1203 if len(data) > 0 {
1150 var buf [sizeofPtr]byte 1204 var buf [SizeofPtr]byte
1151 err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0]))) 1205 err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
1152 if err != nil { 1206 if err != nil {
1153 return n, err 1207 return n, err
@@ -1246,24 +1300,27 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
1246//sys Adjtimex(buf *Timex) (state int, err error) 1300//sys Adjtimex(buf *Timex) (state int, err error)
1247//sys Chdir(path string) (err error) 1301//sys Chdir(path string) (err error)
1248//sys Chroot(path string) (err error) 1302//sys Chroot(path string) (err error)
1303//sys ClockGetres(clockid int32, res *Timespec) (err error)
1249//sys ClockGettime(clockid int32, time *Timespec) (err error) 1304//sys ClockGettime(clockid int32, time *Timespec) (err error)
1250//sys Close(fd int) (err error) 1305//sys Close(fd int) (err error)
1251//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) 1306//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
1252//sys Dup(oldfd int) (fd int, err error) 1307//sys Dup(oldfd int) (fd int, err error)
1253//sys Dup3(oldfd int, newfd int, flags int) (err error) 1308//sys Dup3(oldfd int, newfd int, flags int) (err error)
1254//sysnb EpollCreate(size int) (fd int, err error)
1255//sysnb EpollCreate1(flag int) (fd int, err error) 1309//sysnb EpollCreate1(flag int) (fd int, err error)
1256//sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) 1310//sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)
1257//sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2 1311//sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2
1258//sys Exit(code int) = SYS_EXIT_GROUP 1312//sys Exit(code int) = SYS_EXIT_GROUP
1259//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
1260//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error) 1313//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error)
1261//sys Fchdir(fd int) (err error) 1314//sys Fchdir(fd int) (err error)
1262//sys Fchmod(fd int, mode uint32) (err error) 1315//sys Fchmod(fd int, mode uint32) (err error)
1263//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) 1316//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
1264//sys fcntl(fd int, cmd int, arg int) (val int, err error) 1317//sys fcntl(fd int, cmd int, arg int) (val int, err error)
1265//sys Fdatasync(fd int) (err error) 1318//sys Fdatasync(fd int) (err error)
1319//sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
1320//sys Flistxattr(fd int, dest []byte) (sz int, err error)
1266//sys Flock(fd int, how int) (err error) 1321//sys Flock(fd int, how int) (err error)
1322//sys Fremovexattr(fd int, attr string) (err error)
1323//sys Fsetxattr(fd int, attr string, dest []byte, flags int) (err error)
1267//sys Fsync(fd int) (err error) 1324//sys Fsync(fd int) (err error)
1268//sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64 1325//sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64
1269//sysnb Getpgid(pid int) (pgid int, err error) 1326//sysnb Getpgid(pid int) (pgid int, err error)
@@ -1291,9 +1348,11 @@ func Getpgrp() (pid int) {
1291//sys Llistxattr(path string, dest []byte) (sz int, err error) 1348//sys Llistxattr(path string, dest []byte) (sz int, err error)
1292//sys Lremovexattr(path string, attr string) (err error) 1349//sys Lremovexattr(path string, attr string) (err error)
1293//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error) 1350//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error)
1351//sys MemfdCreate(name string, flags int) (fd int, err error)
1294//sys Mkdirat(dirfd int, path string, mode uint32) (err error) 1352//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
1295//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) 1353//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
1296//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) 1354//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
1355//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
1297//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT 1356//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
1298//sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64 1357//sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64
1299//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) 1358//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
@@ -1301,6 +1360,7 @@ func Getpgrp() (pid int) {
1301//sys read(fd int, p []byte) (n int, err error) 1360//sys read(fd int, p []byte) (n int, err error)
1302//sys Removexattr(path string, attr string) (err error) 1361//sys Removexattr(path string, attr string) (err error)
1303//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) 1362//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
1363//sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error)
1304//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) 1364//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error)
1305//sys Setdomainname(p []byte) (err error) 1365//sys Setdomainname(p []byte) (err error)
1306//sys Sethostname(p []byte) (err error) 1366//sys Sethostname(p []byte) (err error)
@@ -1335,7 +1395,6 @@ func Setgid(uid int) (err error) {
1335//sysnb Uname(buf *Utsname) (err error) 1395//sysnb Uname(buf *Utsname) (err error)
1336//sys Unmount(target string, flags int) (err error) = SYS_UMOUNT2 1396//sys Unmount(target string, flags int) (err error) = SYS_UMOUNT2
1337//sys Unshare(flags int) (err error) 1397//sys Unshare(flags int) (err error)
1338//sys Ustat(dev int, ubuf *Ustat_t) (err error)
1339//sys write(fd int, p []byte) (n int, err error) 1398//sys write(fd int, p []byte) (n int, err error)
1340//sys exitThread(code int) (err error) = SYS_EXIT 1399//sys exitThread(code int) (err error) = SYS_EXIT
1341//sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ 1400//sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ
@@ -1385,6 +1444,77 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
1385 return int(n), nil 1444 return int(n), nil
1386} 1445}
1387 1446
1447//sys faccessat(dirfd int, path string, mode uint32) (err error)
1448
1449func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
1450 if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
1451 return EINVAL
1452 }
1453
1454 // The Linux kernel faccessat system call does not take any flags.
1455 // The glibc faccessat implements the flags itself; see
1456 // https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;hb=HEAD
1457 // Because people naturally expect syscall.Faccessat to act
1458 // like C faccessat, we do the same.
1459
1460 if flags == 0 {
1461 return faccessat(dirfd, path, mode)
1462 }
1463
1464 var st Stat_t
1465 if err := Fstatat(dirfd, path, &st, flags&AT_SYMLINK_NOFOLLOW); err != nil {
1466 return err
1467 }
1468
1469 mode &= 7
1470 if mode == 0 {
1471 return nil
1472 }
1473
1474 var uid int
1475 if flags&AT_EACCESS != 0 {
1476 uid = Geteuid()
1477 } else {
1478 uid = Getuid()
1479 }
1480
1481 if uid == 0 {
1482 if mode&1 == 0 {
1483 // Root can read and write any file.
1484 return nil
1485 }
1486 if st.Mode&0111 != 0 {
1487 // Root can execute any file that anybody can execute.
1488 return nil
1489 }
1490 return EACCES
1491 }
1492
1493 var fmode uint32
1494 if uint32(uid) == st.Uid {
1495 fmode = (st.Mode >> 6) & 7
1496 } else {
1497 var gid int
1498 if flags&AT_EACCESS != 0 {
1499 gid = Getegid()
1500 } else {
1501 gid = Getgid()
1502 }
1503
1504 if uint32(gid) == st.Gid {
1505 fmode = (st.Mode >> 3) & 7
1506 } else {
1507 fmode = st.Mode & 7
1508 }
1509 }
1510
1511 if fmode&mode == mode {
1512 return nil
1513 }
1514
1515 return EACCES
1516}
1517
1388/* 1518/*
1389 * Unimplemented 1519 * Unimplemented
1390 */ 1520 */
@@ -1394,7 +1524,6 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
1394// Brk 1524// Brk
1395// Capget 1525// Capget
1396// Capset 1526// Capset
1397// ClockGetres
1398// ClockNanosleep 1527// ClockNanosleep
1399// ClockSettime 1528// ClockSettime
1400// Clone 1529// Clone
@@ -1404,11 +1533,7 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
1404// EpollPwait 1533// EpollPwait
1405// EpollWaitOld 1534// EpollWaitOld
1406// Execve 1535// Execve
1407// Fgetxattr
1408// Flistxattr
1409// Fork 1536// Fork
1410// Fremovexattr
1411// Fsetxattr
1412// Futex 1537// Futex
1413// GetKernelSyms 1538// GetKernelSyms
1414// GetMempolicy 1539// GetMempolicy
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_386.go
index bb8e4fb..74bc098 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_386.go
@@ -10,7 +10,6 @@
10package unix 10package unix
11 11
12import ( 12import (
13 "syscall"
14 "unsafe" 13 "unsafe"
15) 14)
16 15
@@ -51,6 +50,8 @@ func Pipe2(p []int, flags int) (err error) {
51// 64-bit file system and 32-bit uid calls 50// 64-bit file system and 32-bit uid calls
52// (386 default is 32-bit file system and 16-bit uid). 51// (386 default is 32-bit file system and 16-bit uid).
53//sys Dup2(oldfd int, newfd int) (err error) 52//sys Dup2(oldfd int, newfd int) (err error)
53//sysnb EpollCreate(size int) (fd int, err error)
54//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
54//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64 55//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64
55//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 56//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
56//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 57//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
@@ -78,12 +79,12 @@ func Pipe2(p []int, flags int) (err error) {
78//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 79//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
79//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) 80//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
80//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 81//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
82//sys Ustat(dev int, ubuf *Ustat_t) (err error)
81//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32 83//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32
82//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32 84//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32
83//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT 85//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
84 86
85//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) 87//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
86//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
87//sys Pause() (err error) 88//sys Pause() (err error)
88 89
89func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { 90func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
@@ -157,10 +158,6 @@ func Setrlimit(resource int, rlim *Rlimit) (err error) {
157 return setrlimit(resource, &rl) 158 return setrlimit(resource, &rl)
158} 159}
159 160
160// Underlying system call writes to newoffset via pointer.
161// Implemented in assembly to avoid allocation.
162func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
163
164func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { 161func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
165 newoffset, errno := seek(fd, offset, whence) 162 newoffset, errno := seek(fd, offset, whence)
166 if errno != 0 { 163 if errno != 0 {
@@ -169,11 +166,11 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
169 return newoffset, nil 166 return newoffset, nil
170} 167}
171 168
172// Vsyscalls on amd64. 169//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
173//sysnb Gettimeofday(tv *Timeval) (err error) 170//sysnb Gettimeofday(tv *Timeval) (err error)
174//sysnb Time(t *Time_t) (tt Time_t, err error) 171//sysnb Time(t *Time_t) (tt Time_t, err error)
175
176//sys Utime(path string, buf *Utimbuf) (err error) 172//sys Utime(path string, buf *Utimbuf) (err error)
173//sys utimes(path string, times *[2]Timeval) (err error)
177 174
178// On x86 Linux, all the socket calls go through an extra indirection, 175// On x86 Linux, all the socket calls go through an extra indirection,
179// I think because the 5-register system call interface can't handle 176// I think because the 5-register system call interface can't handle
@@ -206,9 +203,6 @@ const (
206 _SENDMMSG = 20 203 _SENDMMSG = 20
207) 204)
208 205
209func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
210func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
211
212func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 206func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
213 fd, e := socketcall(_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) 207 fd, e := socketcall(_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
214 if e != 0 { 208 if e != 0 {
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
index 53d38a5..5247d9f 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
@@ -7,6 +7,7 @@
7package unix 7package unix
8 8
9//sys Dup2(oldfd int, newfd int) (err error) 9//sys Dup2(oldfd int, newfd int) (err error)
10//sysnb EpollCreate(size int) (fd int, err error)
10//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) 11//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
11//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 12//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
12//sys Fchown(fd int, uid int, gid int) (err error) 13//sys Fchown(fd int, uid int, gid int) (err error)
@@ -29,7 +30,15 @@ package unix
29//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 30//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
30//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 31//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
31//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK 32//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
32//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) 33
34func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
35 var ts *Timespec
36 if timeout != nil {
37 ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
38 }
39 return Pselect(nfd, r, w, e, ts, nil)
40}
41
33//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) 42//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
34//sys Setfsgid(gid int) (err error) 43//sys Setfsgid(gid int) (err error)
35//sys Setfsuid(uid int) (err error) 44//sys Setfsuid(uid int) (err error)
@@ -40,10 +49,16 @@ package unix
40//sysnb Setreuid(ruid int, euid int) (err error) 49//sysnb Setreuid(ruid int, euid int) (err error)
41//sys Shutdown(fd int, how int) (err error) 50//sys Shutdown(fd int, how int) (err error)
42//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) 51//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
43//sys Stat(path string, stat *Stat_t) (err error) 52
53func Stat(path string, stat *Stat_t) (err error) {
54 // Use fstatat, because Android's seccomp policy blocks stat.
55 return Fstatat(AT_FDCWD, path, stat, 0)
56}
57
44//sys Statfs(path string, buf *Statfs_t) (err error) 58//sys Statfs(path string, buf *Statfs_t) (err error)
45//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) 59//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
46//sys Truncate(path string, length int64) (err error) 60//sys Truncate(path string, length int64) (err error)
61//sys Ustat(dev int, ubuf *Ustat_t) (err error)
47//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) 62//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
48//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) 63//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
49//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) 64//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
@@ -62,6 +77,8 @@ package unix
62//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) 77//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
63//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) 78//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
64 79
80//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
81
65func Gettimeofday(tv *Timeval) (err error) { 82func Gettimeofday(tv *Timeval) (err error) {
66 errno := gettimeofday(tv) 83 errno := gettimeofday(tv)
67 if errno != 0 { 84 if errno != 0 {
@@ -83,6 +100,7 @@ func Time(t *Time_t) (tt Time_t, err error) {
83} 100}
84 101
85//sys Utime(path string, buf *Utimbuf) (err error) 102//sys Utime(path string, buf *Utimbuf) (err error)
103//sys utimes(path string, times *[2]Timeval) (err error)
86 104
87func setTimespec(sec, nsec int64) Timespec { 105func setTimespec(sec, nsec int64) Timespec {
88 return Timespec{Sec: sec, Nsec: nsec} 106 return Timespec{Sec: sec, Nsec: nsec}
@@ -142,3 +160,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
142 } 160 }
143 return poll(&fds[0], len(fds), timeout) 161 return poll(&fds[0], len(fds), timeout)
144} 162}
163
164//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
165
166func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
167 cmdlineLen := len(cmdline)
168 if cmdlineLen > 0 {
169 // Account for the additional NULL byte added by
170 // BytePtrFromString in kexecFileLoad. The kexec_file_load
171 // syscall expects a NULL-terminated string.
172 cmdlineLen++
173 }
174 return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
175}
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 c59f858..3ec7a93 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
@@ -75,6 +75,8 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
75// 64-bit file system and 32-bit uid calls 75// 64-bit file system and 32-bit uid calls
76// (16-bit uid calls are not always supported in newer kernels) 76// (16-bit uid calls are not always supported in newer kernels)
77//sys Dup2(oldfd int, newfd int) (err error) 77//sys Dup2(oldfd int, newfd int) (err error)
78//sysnb EpollCreate(size int) (fd int, err error)
79//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
78//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 80//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32
79//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 81//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
80//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 82//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
@@ -86,6 +88,7 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
86//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32 88//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32
87//sys Listen(s int, n int) (err error) 89//sys Listen(s int, n int) (err error)
88//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 90//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
91//sys Pause() (err error)
89//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 92//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
90//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT 93//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
91//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32 94//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
@@ -97,11 +100,10 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
97//sys Shutdown(fd int, how int) (err error) 100//sys Shutdown(fd int, how int) (err error)
98//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) 101//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
99//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 102//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
103//sys Ustat(dev int, ubuf *Ustat_t) (err error)
100 104
101// Vsyscalls on amd64. 105//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
102//sysnb Gettimeofday(tv *Timeval) (err error) 106//sysnb Gettimeofday(tv *Timeval) (err error)
103//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
104//sys Pause() (err error)
105 107
106func Time(t *Time_t) (Time_t, error) { 108func Time(t *Time_t) (Time_t, error) {
107 var tv Timeval 109 var tv Timeval
@@ -123,6 +125,8 @@ func Utime(path string, buf *Utimbuf) error {
123 return Utimes(path, tv) 125 return Utimes(path, tv)
124} 126}
125 127
128//sys utimes(path string, times *[2]Timeval) (err error)
129
126//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 130//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
127//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 131//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
128//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 132//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
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 9a8e6e4..646f295 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
@@ -6,7 +6,17 @@
6 6
7package unix 7package unix
8 8
9import "unsafe"
10
11func EpollCreate(size int) (fd int, err error) {
12 if size <= 0 {
13 return -1, EINVAL
14 }
15 return EpollCreate1(0)
16}
17
9//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT 18//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT
19//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
10//sys Fchown(fd int, uid int, gid int) (err error) 20//sys Fchown(fd int, uid int, gid int) (err error)
11//sys Fstat(fd int, stat *Stat_t) (err error) 21//sys Fstat(fd int, stat *Stat_t) (err error)
12//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) 22//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
@@ -23,8 +33,11 @@ package unix
23//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK 33//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
24 34
25func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { 35func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
26 ts := Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} 36 var ts *Timespec
27 return Pselect(nfd, r, w, e, &ts, nil) 37 if timeout != nil {
38 ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
39 }
40 return Pselect(nfd, r, w, e, ts, nil)
28} 41}
29 42
30//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) 43//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
@@ -53,6 +66,11 @@ func Lstat(path string, stat *Stat_t) (err error) {
53//sys Statfs(path string, buf *Statfs_t) (err error) 66//sys Statfs(path string, buf *Statfs_t) (err error)
54//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) 67//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
55//sys Truncate(path string, length int64) (err error) 68//sys Truncate(path string, length int64) (err error)
69
70func Ustat(dev int, ubuf *Ustat_t) (err error) {
71 return ENOSYS
72}
73
56//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) 74//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
57//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) 75//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
58//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) 76//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
@@ -81,6 +99,18 @@ func setTimeval(sec, usec int64) Timeval {
81 return Timeval{Sec: sec, Usec: usec} 99 return Timeval{Sec: sec, Usec: usec}
82} 100}
83 101
102func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
103 if tv == nil {
104 return utimensat(dirfd, path, nil, 0)
105 }
106
107 ts := []Timespec{
108 NsecToTimespec(TimevalToNsec(tv[0])),
109 NsecToTimespec(TimevalToNsec(tv[1])),
110 }
111 return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
112}
113
84func Time(t *Time_t) (Time_t, error) { 114func Time(t *Time_t) (Time_t, error) {
85 var tv Timeval 115 var tv Timeval
86 err := Gettimeofday(&tv) 116 err := Gettimeofday(&tv)
@@ -101,6 +131,18 @@ func Utime(path string, buf *Utimbuf) error {
101 return Utimes(path, tv) 131 return Utimes(path, tv)
102} 132}
103 133
134func utimes(path string, tv *[2]Timeval) (err error) {
135 if tv == nil {
136 return utimensat(AT_FDCWD, path, nil, 0)
137 }
138
139 ts := []Timespec{
140 NsecToTimespec(TimevalToNsec(tv[0])),
141 NsecToTimespec(TimevalToNsec(tv[1])),
142 }
143 return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
144}
145
104func Pipe(p []int) (err error) { 146func Pipe(p []int) (err error) {
105 if len(p) != 2 { 147 if len(p) != 2 {
106 return EINVAL 148 return EINVAL
@@ -157,22 +199,6 @@ func Pause() (err error) {
157 return 199 return
158} 200}
159 201
160// TODO(dfc): constants that should be in zsysnum_linux_arm64.go, remove
161// these when the deprecated syscalls that the syscall package relies on
162// are removed.
163const (
164 SYS_GETPGRP = 1060
165 SYS_UTIMES = 1037
166 SYS_FUTIMESAT = 1066
167 SYS_PAUSE = 1061
168 SYS_USTAT = 1070
169 SYS_UTIME = 1063
170 SYS_LCHOWN = 1032
171 SYS_TIME = 1062
172 SYS_EPOLL_CREATE = 1042
173 SYS_EPOLL_WAIT = 1069
174)
175
176func Poll(fds []PollFd, timeout int) (n int, err error) { 202func Poll(fds []PollFd, timeout int) (n int, err error) {
177 var ts *Timespec 203 var ts *Timespec
178 if timeout >= 0 { 204 if timeout >= 0 {
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go
new file mode 100644
index 0000000..070bd38
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go
@@ -0,0 +1,16 @@
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 linux,!gccgo,386
6
7package unix
8
9import "syscall"
10
11// Underlying system call writes to newoffset via pointer.
12// Implemented in assembly to avoid allocation.
13func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
14
15func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
16func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go
new file mode 100644
index 0000000..308eb7a
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go
@@ -0,0 +1,30 @@
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 linux,gccgo,386
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
15 var newoffset int64
16 offsetLow := uint32(offset & 0xffffffff)
17 offsetHigh := uint32((offset >> 32) & 0xffffffff)
18 _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
19 return newoffset, err
20}
21
22func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) {
23 fd, _, err := Syscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0)
24 return int(fd), err
25}
26
27func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) {
28 fd, _, err := RawSyscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0)
29 return int(fd), err
30}
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go
new file mode 100644
index 0000000..aa7fc9e
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go
@@ -0,0 +1,20 @@
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 linux,gccgo,arm
6
7package unix
8
9import (
10 "syscall"
11 "unsafe"
12)
13
14func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
15 var newoffset int64
16 offsetLow := uint32(offset & 0xffffffff)
17 offsetHigh := uint32((offset >> 32) & 0xffffffff)
18 _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
19 return newoffset, err
20}
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
index 46aa4ff..ad99103 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
@@ -8,7 +8,9 @@
8package unix 8package unix
9 9
10//sys Dup2(oldfd int, newfd int) (err error) 10//sys Dup2(oldfd int, newfd int) (err error)
11//sysnb EpollCreate(size int) (fd int, err error)
11//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) 12//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
13//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
12//sys Fchown(fd int, uid int, gid int) (err error) 14//sys Fchown(fd int, uid int, gid int) (err error)
13//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT 15//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT
14//sys Fstatfs(fd int, buf *Statfs_t) (err error) 16//sys Fstatfs(fd int, buf *Statfs_t) (err error)
@@ -26,8 +28,11 @@ package unix
26//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK 28//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
27 29
28func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { 30func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
29 ts := Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} 31 var ts *Timespec
30 return Pselect(nfd, r, w, e, &ts, nil) 32 if timeout != nil {
33 ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
34 }
35 return Pselect(nfd, r, w, e, ts, nil)
31} 36}
32 37
33//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) 38//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
@@ -43,6 +48,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
43//sys Statfs(path string, buf *Statfs_t) (err error) 48//sys Statfs(path string, buf *Statfs_t) (err error)
44//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) 49//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
45//sys Truncate(path string, length int64) (err error) 50//sys Truncate(path string, length int64) (err error)
51//sys Ustat(dev int, ubuf *Ustat_t) (err error)
46//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) 52//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
47//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) 53//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
48//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) 54//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
@@ -61,6 +67,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
61//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) 67//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
62//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) 68//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
63 69
70//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
64//sysnb Gettimeofday(tv *Timeval) (err error) 71//sysnb Gettimeofday(tv *Timeval) (err error)
65 72
66func Time(t *Time_t) (tt Time_t, err error) { 73func Time(t *Time_t) (tt Time_t, err error) {
@@ -76,6 +83,7 @@ func Time(t *Time_t) (tt Time_t, err error) {
76} 83}
77 84
78//sys Utime(path string, buf *Utimbuf) (err error) 85//sys Utime(path string, buf *Utimbuf) (err error)
86//sys utimes(path string, times *[2]Timeval) (err error)
79 87
80func setTimespec(sec, nsec int64) Timespec { 88func setTimespec(sec, nsec int64) Timespec {
81 return Timespec{Sec: sec, Nsec: nsec} 89 return Timespec{Sec: sec, Nsec: nsec}
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
index 40b8e4f..99e0e99 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
@@ -15,6 +15,9 @@ import (
15func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) 15func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
16 16
17//sys Dup2(oldfd int, newfd int) (err error) 17//sys Dup2(oldfd int, newfd int) (err error)
18//sysnb EpollCreate(size int) (fd int, err error)
19//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
20//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
18//sys Fchown(fd int, uid int, gid int) (err error) 21//sys Fchown(fd int, uid int, gid int) (err error)
19//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 22//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64
20//sysnb Getegid() (egid int) 23//sysnb Getegid() (egid int)
@@ -32,13 +35,12 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
32//sysnb Setregid(rgid int, egid int) (err error) 35//sysnb Setregid(rgid int, egid int) (err error)
33//sysnb Setresgid(rgid int, egid int, sgid int) (err error) 36//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
34//sysnb Setresuid(ruid int, euid int, suid int) (err error) 37//sysnb Setresuid(ruid int, euid int, suid int) (err error)
35
36//sysnb Setreuid(ruid int, euid int) (err error) 38//sysnb Setreuid(ruid int, euid int) (err error)
37//sys Shutdown(fd int, how int) (err error) 39//sys Shutdown(fd int, how int) (err error)
38//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) 40//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
39
40//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) 41//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
41//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 42//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
43//sys Ustat(dev int, ubuf *Ustat_t) (err error)
42//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) 44//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
43//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) 45//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
44//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) 46//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
@@ -60,16 +62,17 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
60//sys Ioperm(from int, num int, on int) (err error) 62//sys Ioperm(from int, num int, on int) (err error)
61//sys Iopl(level int) (err error) 63//sys Iopl(level int) (err error)
62 64
65//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
63//sysnb Gettimeofday(tv *Timeval) (err error) 66//sysnb Gettimeofday(tv *Timeval) (err error)
64//sysnb Time(t *Time_t) (tt Time_t, err error) 67//sysnb Time(t *Time_t) (tt Time_t, err error)
68//sys Utime(path string, buf *Utimbuf) (err error)
69//sys utimes(path string, times *[2]Timeval) (err error)
65 70
66//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 71//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
67//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 72//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
68//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 73//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
69//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 74//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
70 75
71//sys Utime(path string, buf *Utimbuf) (err error)
72//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
73//sys Pause() (err error) 76//sys Pause() (err error)
74 77
75func Fstatfs(fd int, buf *Statfs_t) (err error) { 78func Fstatfs(fd int, buf *Statfs_t) (err error) {
@@ -121,14 +124,13 @@ func Pipe2(p []int, flags int) (err error) {
121 return 124 return
122} 125}
123 126
127//sysnb pipe() (p1 int, p2 int, err error)
128
124func Pipe(p []int) (err error) { 129func Pipe(p []int) (err error) {
125 if len(p) != 2 { 130 if len(p) != 2 {
126 return EINVAL 131 return EINVAL
127 } 132 }
128 var pp [2]_C_int 133 p[0], p[1], err = pipe()
129 err = pipe2(&pp, 0)
130 p[0] = int(pp[0])
131 p[1] = int(pp[1])
132 return 134 return
133} 135}
134 136
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
index 17c9116..4145185 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
@@ -7,8 +7,10 @@
7 7
8package unix 8package unix
9 9
10//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
11//sys Dup2(oldfd int, newfd int) (err error) 10//sys Dup2(oldfd int, newfd int) (err error)
11//sysnb EpollCreate(size int) (fd int, err error)
12//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
13//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
12//sys Fchown(fd int, uid int, gid int) (err error) 14//sys Fchown(fd int, uid int, gid int) (err error)
13//sys Fstat(fd int, stat *Stat_t) (err error) 15//sys Fstat(fd int, stat *Stat_t) (err error)
14//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT 16//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT
@@ -42,8 +44,8 @@ package unix
42//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) 44//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
43//sys Stat(path string, stat *Stat_t) (err error) 45//sys Stat(path string, stat *Stat_t) (err error)
44//sys Statfs(path string, buf *Statfs_t) (err error) 46//sys Statfs(path string, buf *Statfs_t) (err error)
45//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) = SYS_SYNC_FILE_RANGE2
46//sys Truncate(path string, length int64) (err error) 47//sys Truncate(path string, length int64) (err error)
48//sys Ustat(dev int, ubuf *Ustat_t) (err error)
47//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) 49//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
48//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) 50//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
49//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) 51//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
@@ -62,10 +64,11 @@ package unix
62//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) 64//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
63//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) 65//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
64 66
67//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
65//sysnb Gettimeofday(tv *Timeval) (err error) 68//sysnb Gettimeofday(tv *Timeval) (err error)
66//sysnb Time(t *Time_t) (tt Time_t, err error) 69//sysnb Time(t *Time_t) (tt Time_t, err error)
67
68//sys Utime(path string, buf *Utimbuf) (err error) 70//sys Utime(path string, buf *Utimbuf) (err error)
71//sys utimes(path string, times *[2]Timeval) (err error)
69 72
70func setTimespec(sec, nsec int64) Timespec { 73func setTimespec(sec, nsec int64) Timespec {
71 return Timespec{Sec: sec, Nsec: nsec} 74 return Timespec{Sec: sec, Nsec: nsec}
@@ -125,3 +128,24 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
125 } 128 }
126 return poll(&fds[0], len(fds), timeout) 129 return poll(&fds[0], len(fds), timeout)
127} 130}
131
132//sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2
133
134func SyncFileRange(fd int, off int64, n int64, flags int) error {
135 // The sync_file_range and sync_file_range2 syscalls differ only in the
136 // order of their arguments.
137 return syncFileRange2(fd, flags, off, n)
138}
139
140//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
141
142func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
143 cmdlineLen := len(cmdline)
144 if cmdlineLen > 0 {
145 // Account for the additional NULL byte added by
146 // BytePtrFromString in kexecFileLoad. The kexec_file_load
147 // syscall expects a NULL-terminated string.
148 cmdlineLen++
149 }
150 return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
151}
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
new file mode 100644
index 0000000..512077f
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
@@ -0,0 +1,212 @@
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 riscv64,linux
6
7package unix
8
9import "unsafe"
10
11func EpollCreate(size int) (fd int, err error) {
12 if size <= 0 {
13 return -1, EINVAL
14 }
15 return EpollCreate1(0)
16}
17
18//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT
19//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
20//sys Fchown(fd int, uid int, gid int) (err error)
21//sys Fstat(fd int, stat *Stat_t) (err error)
22//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
23//sys Fstatfs(fd int, buf *Statfs_t) (err error)
24//sys Ftruncate(fd int, length int64) (err error)
25//sysnb Getegid() (egid int)
26//sysnb Geteuid() (euid int)
27//sysnb Getgid() (gid int)
28//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
29//sysnb Getuid() (uid int)
30//sys Listen(s int, n int) (err error)
31//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
32//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
33//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
34
35func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
36 var ts *Timespec
37 if timeout != nil {
38 ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
39 }
40 return Pselect(nfd, r, w, e, ts, nil)
41}
42
43//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
44//sys Setfsgid(gid int) (err error)
45//sys Setfsuid(uid int) (err error)
46//sysnb Setregid(rgid int, egid int) (err error)
47//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
48//sysnb Setresuid(ruid int, euid int, suid int) (err error)
49//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
50//sysnb Setreuid(ruid int, euid int) (err error)
51//sys Shutdown(fd int, how int) (err error)
52//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
53
54func Stat(path string, stat *Stat_t) (err error) {
55 return Fstatat(AT_FDCWD, path, stat, 0)
56}
57
58func Lchown(path string, uid int, gid int) (err error) {
59 return Fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW)
60}
61
62func Lstat(path string, stat *Stat_t) (err error) {
63 return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW)
64}
65
66//sys Statfs(path string, buf *Statfs_t) (err error)
67//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
68//sys Truncate(path string, length int64) (err error)
69
70func Ustat(dev int, ubuf *Ustat_t) (err error) {
71 return ENOSYS
72}
73
74//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
75//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
76//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
77//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
78//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
79//sysnb setgroups(n int, list *_Gid_t) (err error)
80//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
81//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
82//sysnb socket(domain int, typ int, proto int) (fd int, err error)
83//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
84//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
85//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
86//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
87//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
88//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
89//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
90//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
91
92//sysnb Gettimeofday(tv *Timeval) (err error)
93
94func setTimespec(sec, nsec int64) Timespec {
95 return Timespec{Sec: sec, Nsec: nsec}
96}
97
98func setTimeval(sec, usec int64) Timeval {
99 return Timeval{Sec: sec, Usec: usec}
100}
101
102func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) {
103 if tv == nil {
104 return utimensat(dirfd, path, nil, 0)
105 }
106
107 ts := []Timespec{
108 NsecToTimespec(TimevalToNsec(tv[0])),
109 NsecToTimespec(TimevalToNsec(tv[1])),
110 }
111 return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
112}
113
114func Time(t *Time_t) (Time_t, error) {
115 var tv Timeval
116 err := Gettimeofday(&tv)
117 if err != nil {
118 return 0, err
119 }
120 if t != nil {
121 *t = Time_t(tv.Sec)
122 }
123 return Time_t(tv.Sec), nil
124}
125
126func Utime(path string, buf *Utimbuf) error {
127 tv := []Timeval{
128 {Sec: buf.Actime},
129 {Sec: buf.Modtime},
130 }
131 return Utimes(path, tv)
132}
133
134func utimes(path string, tv *[2]Timeval) (err error) {
135 if tv == nil {
136 return utimensat(AT_FDCWD, path, nil, 0)
137 }
138
139 ts := []Timespec{
140 NsecToTimespec(TimevalToNsec(tv[0])),
141 NsecToTimespec(TimevalToNsec(tv[1])),
142 }
143 return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
144}
145
146func Pipe(p []int) (err error) {
147 if len(p) != 2 {
148 return EINVAL
149 }
150 var pp [2]_C_int
151 err = pipe2(&pp, 0)
152 p[0] = int(pp[0])
153 p[1] = int(pp[1])
154 return
155}
156
157//sysnb pipe2(p *[2]_C_int, flags int) (err error)
158
159func Pipe2(p []int, flags int) (err error) {
160 if len(p) != 2 {
161 return EINVAL
162 }
163 var pp [2]_C_int
164 err = pipe2(&pp, flags)
165 p[0] = int(pp[0])
166 p[1] = int(pp[1])
167 return
168}
169
170func (r *PtraceRegs) PC() uint64 { return r.Pc }
171
172func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
173
174func (iov *Iovec) SetLen(length int) {
175 iov.Len = uint64(length)
176}
177
178func (msghdr *Msghdr) SetControllen(length int) {
179 msghdr.Controllen = uint64(length)
180}
181
182func (cmsg *Cmsghdr) SetLen(length int) {
183 cmsg.Len = uint64(length)
184}
185
186func InotifyInit() (fd int, err error) {
187 return InotifyInit1(0)
188}
189
190func Dup2(oldfd int, newfd int) (err error) {
191 return Dup3(oldfd, newfd, 0)
192}
193
194func Pause() (err error) {
195 _, _, e1 := Syscall6(SYS_PPOLL, 0, 0, 0, 0, 0, 0)
196 if e1 != 0 {
197 err = errnoErr(e1)
198 }
199 return
200}
201
202func Poll(fds []PollFd, timeout int) (n int, err error) {
203 var ts *Timespec
204 if timeout >= 0 {
205 ts = new(Timespec)
206 *ts = NsecToTimespec(int64(timeout) * 1e6)
207 }
208 if len(fds) == 0 {
209 return ppoll(nil, 0, ts, nil)
210 }
211 return ppoll(&fds[0], len(fds), ts, nil)
212}
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
index c0d86e7..f52f148 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
@@ -11,6 +11,7 @@ import (
11) 11)
12 12
13//sys Dup2(oldfd int, newfd int) (err error) 13//sys Dup2(oldfd int, newfd int) (err error)
14//sysnb EpollCreate(size int) (fd int, err error)
14//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) 15//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
15//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 16//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
16//sys Fchown(fd int, uid int, gid int) (err error) 17//sys Fchown(fd int, uid int, gid int) (err error)
@@ -44,9 +45,11 @@ import (
44//sys Statfs(path string, buf *Statfs_t) (err error) 45//sys Statfs(path string, buf *Statfs_t) (err error)
45//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) 46//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
46//sys Truncate(path string, length int64) (err error) 47//sys Truncate(path string, length int64) (err error)
48//sys Ustat(dev int, ubuf *Ustat_t) (err error)
47//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) 49//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
48//sysnb setgroups(n int, list *_Gid_t) (err error) 50//sysnb setgroups(n int, list *_Gid_t) (err error)
49 51
52//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
50//sysnb Gettimeofday(tv *Timeval) (err error) 53//sysnb Gettimeofday(tv *Timeval) (err error)
51 54
52func Time(t *Time_t) (tt Time_t, err error) { 55func Time(t *Time_t) (tt Time_t, err error) {
@@ -62,6 +65,7 @@ func Time(t *Time_t) (tt Time_t, err error) {
62} 65}
63 66
64//sys Utime(path string, buf *Utimbuf) (err error) 67//sys Utime(path string, buf *Utimbuf) (err error)
68//sys utimes(path string, times *[2]Timeval) (err error)
65 69
66func setTimespec(sec, nsec int64) Timespec { 70func setTimespec(sec, nsec int64) Timespec {
67 return Timespec{Sec: sec, Nsec: nsec} 71 return Timespec{Sec: sec, Nsec: nsec}
@@ -318,3 +322,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
318 } 322 }
319 return poll(&fds[0], len(fds), timeout) 323 return poll(&fds[0], len(fds), timeout)
320} 324}
325
326//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
327
328func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
329 cmdlineLen := len(cmdline)
330 if cmdlineLen > 0 {
331 // Account for the additional NULL byte added by
332 // BytePtrFromString in kexecFileLoad. The kexec_file_load
333 // syscall expects a NULL-terminated string.
334 cmdlineLen++
335 }
336 return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
337}
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
index a00f992..72e6418 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
@@ -7,6 +7,7 @@
7package unix 7package unix
8 8
9//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) 9//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
10//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
10//sys Dup2(oldfd int, newfd int) (err error) 11//sys Dup2(oldfd int, newfd int) (err error)
11//sys Fchown(fd int, uid int, gid int) (err error) 12//sys Fchown(fd int, uid int, gid int) (err error)
12//sys Fstat(fd int, stat *Stat_t) (err error) 13//sys Fstat(fd int, stat *Stat_t) (err error)
@@ -67,6 +68,7 @@ func Iopl(level int) (err error) {
67 return ENOSYS 68 return ENOSYS
68} 69}
69 70
71//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
70//sysnb Gettimeofday(tv *Timeval) (err error) 72//sysnb Gettimeofday(tv *Timeval) (err error)
71 73
72func Time(t *Time_t) (tt Time_t, err error) { 74func Time(t *Time_t) (tt Time_t, err error) {
@@ -82,6 +84,7 @@ func Time(t *Time_t) (tt Time_t, err error) {
82} 84}
83 85
84//sys Utime(path string, buf *Utimbuf) (err error) 86//sys Utime(path string, buf *Utimbuf) (err error)
87//sys utimes(path string, times *[2]Timeval) (err error)
85 88
86func setTimespec(sec, nsec int64) Timespec { 89func setTimespec(sec, nsec int64) Timespec {
87 return Timespec{Sec: sec, Nsec: nsec} 90 return Timespec{Sec: sec, Nsec: nsec}
diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go
index 71b7078..206ce2a 100644
--- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go
+++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go
@@ -93,6 +93,23 @@ func nametomib(name string) (mib []_C_int, err error) {
93 return mib, nil 93 return mib, nil
94} 94}
95 95
96func SysctlClockinfo(name string) (*Clockinfo, error) {
97 mib, err := sysctlmib(name)
98 if err != nil {
99 return nil, err
100 }
101
102 n := uintptr(SizeofClockinfo)
103 var ci Clockinfo
104 if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
105 return nil, err
106 }
107 if n != SizeofClockinfo {
108 return nil, EIO
109 }
110 return &ci, nil
111}
112
96//sysnb pipe() (fd1 int, fd2 int, err error) 113//sysnb pipe() (fd1 int, fd2 int, err error)
97func Pipe(p []int) (err error) { 114func Pipe(p []int) (err error) {
98 if len(p) != 2 { 115 if len(p) != 2 {
@@ -145,11 +162,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
145 return ioctl(fd, req, uintptr(value)) 162 return ioctl(fd, req, uintptr(value))
146} 163}
147 164
148func IoctlSetWinsize(fd int, req uint, value *Winsize) error { 165func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
149 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 166 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
150} 167}
151 168
152func IoctlSetTermios(fd int, req uint, value *Termios) error { 169func ioctlSetTermios(fd int, req uint, value *Termios) error {
153 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 170 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
154} 171}
155 172
@@ -233,13 +250,29 @@ func Uname(uname *Utsname) error {
233//sys Dup(fd int) (nfd int, err error) 250//sys Dup(fd int) (nfd int, err error)
234//sys Dup2(from int, to int) (err error) 251//sys Dup2(from int, to int) (err error)
235//sys Exit(code int) 252//sys Exit(code int)
253//sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
254//sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
255//sys ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error)
256//sys ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
257//sys ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
258//sys ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
259//sys ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error)
260//sys ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
261//sys ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
262//sys ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
263//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error)
264//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
265//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
266//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
236//sys Fchdir(fd int) (err error) 267//sys Fchdir(fd int) (err error)
237//sys Fchflags(fd int, flags int) (err error) 268//sys Fchflags(fd int, flags int) (err error)
238//sys Fchmod(fd int, mode uint32) (err error) 269//sys Fchmod(fd int, mode uint32) (err error)
270//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
239//sys Fchown(fd int, uid int, gid int) (err error) 271//sys Fchown(fd int, uid int, gid int) (err error)
240//sys Flock(fd int, how int) (err error) 272//sys Flock(fd int, how int) (err error)
241//sys Fpathconf(fd int, name int) (val int, err error) 273//sys Fpathconf(fd int, name int) (val int, err error)
242//sys Fstat(fd int, stat *Stat_t) (err error) 274//sys Fstat(fd int, stat *Stat_t) (err error)
275//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
243//sys Fsync(fd int) (err error) 276//sys Fsync(fd int) (err error)
244//sys Ftruncate(fd int, length int64) (err error) 277//sys Ftruncate(fd int, length int64) (err error)
245//sysnb Getegid() (egid int) 278//sysnb Getegid() (egid int)
@@ -320,7 +353,6 @@ func Uname(uname *Utsname) error {
320// __msync13 353// __msync13
321// __ntp_gettime30 354// __ntp_gettime30
322// __posix_chown 355// __posix_chown
323// __posix_fadvise50
324// __posix_fchown 356// __posix_fchown
325// __posix_lchown 357// __posix_lchown
326// __posix_rename 358// __posix_rename
diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go
index 37556e7..2c674a5 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 SysctlUvmexp(name string) (*Uvmexp, error) {
47 mib, err := sysctlmib(name)
48 if err != nil {
49 return nil, err
50 }
51
52 n := uintptr(SizeofUvmexp)
53 var u Uvmexp
54 if err := sysctl(mib, (*byte)(unsafe.Pointer(&u)), &n, nil, 0); err != nil {
55 return nil, err
56 }
57 if n != SizeofUvmexp {
58 return nil, EIO
59 }
60 return &u, nil
61}
62
46//sysnb pipe(p *[2]_C_int) (err error) 63//sysnb pipe(p *[2]_C_int) (err error)
47func Pipe(p []int) (err error) { 64func Pipe(p []int) (err error) {
48 if len(p) != 2 { 65 if len(p) != 2 {
@@ -113,11 +130,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
113 return ioctl(fd, req, uintptr(value)) 130 return ioctl(fd, req, uintptr(value))
114} 131}
115 132
116func IoctlSetWinsize(fd int, req uint, value *Winsize) error { 133func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
117 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 134 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
118} 135}
119 136
120func IoctlSetTermios(fd int, req uint, value *Termios) error { 137func ioctlSetTermios(fd int, req uint, value *Termios) error {
121 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 138 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
122} 139}
123 140
@@ -201,13 +218,16 @@ func Uname(uname *Utsname) error {
201//sys Dup(fd int) (nfd int, err error) 218//sys Dup(fd int) (nfd int, err error)
202//sys Dup2(from int, to int) (err error) 219//sys Dup2(from int, to int) (err error)
203//sys Exit(code int) 220//sys Exit(code int)
221//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
204//sys Fchdir(fd int) (err error) 222//sys Fchdir(fd int) (err error)
205//sys Fchflags(fd int, flags int) (err error) 223//sys Fchflags(fd int, flags int) (err error)
206//sys Fchmod(fd int, mode uint32) (err error) 224//sys Fchmod(fd int, mode uint32) (err error)
225//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
207//sys Fchown(fd int, uid int, gid int) (err error) 226//sys Fchown(fd int, uid int, gid int) (err error)
208//sys Flock(fd int, how int) (err error) 227//sys Flock(fd int, how int) (err error)
209//sys Fpathconf(fd int, name int) (val int, err error) 228//sys Fpathconf(fd int, name int) (val int, err error)
210//sys Fstat(fd int, stat *Stat_t) (err error) 229//sys Fstat(fd int, stat *Stat_t) (err error)
230//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
211//sys Fstatfs(fd int, stat *Statfs_t) (err error) 231//sys Fstatfs(fd int, stat *Statfs_t) (err error)
212//sys Fsync(fd int) (err error) 232//sys Fsync(fd int) (err error)
213//sys Ftruncate(fd int, length int64) (err error) 233//sys Ftruncate(fd int, length int64) (err error)
@@ -220,6 +240,7 @@ func Uname(uname *Utsname) error {
220//sysnb Getppid() (ppid int) 240//sysnb Getppid() (ppid int)
221//sys Getpriority(which int, who int) (prio int, err error) 241//sys Getpriority(which int, who int) (prio int, err error)
222//sysnb Getrlimit(which int, lim *Rlimit) (err error) 242//sysnb Getrlimit(which int, lim *Rlimit) (err error)
243//sysnb Getrtable() (rtable int, err error)
223//sysnb Getrusage(who int, rusage *Rusage) (err error) 244//sysnb Getrusage(who int, rusage *Rusage) (err error)
224//sysnb Getsid(pid int) (sid int, err error) 245//sysnb Getsid(pid int) (sid int, err error)
225//sysnb Gettimeofday(tv *Timeval) (err error) 246//sysnb Gettimeofday(tv *Timeval) (err error)
@@ -257,6 +278,7 @@ func Uname(uname *Utsname) error {
257//sysnb Setresgid(rgid int, egid int, sgid int) (err error) 278//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
258//sysnb Setresuid(ruid int, euid int, suid int) (err error) 279//sysnb Setresuid(ruid int, euid int, suid int) (err error)
259//sysnb Setrlimit(which int, lim *Rlimit) (err error) 280//sysnb Setrlimit(which int, lim *Rlimit) (err error)
281//sysnb Setrtable(rtable int) (err error)
260//sysnb Setsid() (pid int, err error) 282//sysnb Setsid() (pid int, err error)
261//sysnb Settimeofday(tp *Timeval) (err error) 283//sysnb Settimeofday(tp *Timeval) (err error)
262//sysnb Setuid(uid int) (err error) 284//sysnb Setuid(uid int) (err error)
@@ -305,7 +327,6 @@ func Uname(uname *Utsname) error {
305// getlogin 327// getlogin
306// getresgid 328// getresgid
307// getresuid 329// getresuid
308// getrtable
309// getthrid 330// getthrid
310// ktrace 331// ktrace
311// lfs_bmapv 332// lfs_bmapv
@@ -341,7 +362,6 @@ func Uname(uname *Utsname) error {
341// semop 362// semop
342// setgroups 363// setgroups
343// setitimer 364// setitimer
344// setrtable
345// setsockopt 365// setsockopt
346// shmat 366// shmat
347// shmctl 367// shmctl
diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
index 649e67f..9a35334 100644
--- a/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
@@ -31,3 +31,7 @@ func (msghdr *Msghdr) SetControllen(length int) {
31func (cmsg *Cmsghdr) SetLen(length int) { 31func (cmsg *Cmsghdr) SetLen(length int) {
32 cmsg.Len = uint32(length) 32 cmsg.Len = uint32(length)
33} 33}
34
35// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
36// of openbsd/amd64 the syscall is called sysctl instead of __sysctl.
37const SYS___SYSCTL = SYS_SYSCTL
diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris.go b/vendor/golang.org/x/sys/unix/syscall_solaris.go
index eca8d1d..53b8078 100644
--- a/vendor/golang.org/x/sys/unix/syscall_solaris.go
+++ b/vendor/golang.org/x/sys/unix/syscall_solaris.go
@@ -112,7 +112,7 @@ func Getsockname(fd int) (sa Sockaddr, err error) {
112 if err = getsockname(fd, &rsa, &len); err != nil { 112 if err = getsockname(fd, &rsa, &len); err != nil {
113 return 113 return
114 } 114 }
115 return anyToSockaddr(&rsa) 115 return anyToSockaddr(fd, &rsa)
116} 116}
117 117
118// GetsockoptString returns the string value of the socket option opt for the 118// GetsockoptString returns the string value of the socket option opt for the
@@ -312,6 +312,16 @@ func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
312 312
313//sys fcntl(fd int, cmd int, arg int) (val int, err error) 313//sys fcntl(fd int, cmd int, arg int) (val int, err error)
314 314
315// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
316func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
317 valptr, _, errno := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
318 var err error
319 if errno != 0 {
320 err = errno
321 }
322 return int(valptr), err
323}
324
315// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 325// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
316func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 326func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
317 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0) 327 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0)
@@ -350,7 +360,7 @@ func Futimes(fd int, tv []Timeval) error {
350 return futimesat(fd, nil, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) 360 return futimesat(fd, nil, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
351} 361}
352 362
353func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) { 363func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
354 switch rsa.Addr.Family { 364 switch rsa.Addr.Family {
355 case AF_UNIX: 365 case AF_UNIX:
356 pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) 366 pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
@@ -401,7 +411,7 @@ func Accept(fd int) (nfd int, sa Sockaddr, err error) {
401 if nfd == -1 { 411 if nfd == -1 {
402 return 412 return
403 } 413 }
404 sa, err = anyToSockaddr(&rsa) 414 sa, err = anyToSockaddr(fd, &rsa)
405 if err != nil { 415 if err != nil {
406 Close(nfd) 416 Close(nfd)
407 nfd = 0 417 nfd = 0
@@ -438,7 +448,7 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
438 oobn = int(msg.Accrightslen) 448 oobn = int(msg.Accrightslen)
439 // source address is only specified if the socket is unconnected 449 // source address is only specified if the socket is unconnected
440 if rsa.Addr.Family != AF_UNSPEC { 450 if rsa.Addr.Family != AF_UNSPEC {
441 from, err = anyToSockaddr(&rsa) 451 from, err = anyToSockaddr(fd, &rsa)
442 } 452 }
443 return 453 return
444} 454}
@@ -530,11 +540,11 @@ func IoctlSetInt(fd int, req uint, value int) (err error) {
530 return ioctl(fd, req, uintptr(value)) 540 return ioctl(fd, req, uintptr(value))
531} 541}
532 542
533func IoctlSetWinsize(fd int, req uint, value *Winsize) (err error) { 543func ioctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
534 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 544 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
535} 545}
536 546
537func IoctlSetTermios(fd int, req uint, value *Termios) (err error) { 547func ioctlSetTermios(fd int, req uint, value *Termios) (err error) {
538 return ioctl(fd, req, uintptr(unsafe.Pointer(value))) 548 return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
539} 549}
540 550
@@ -589,15 +599,17 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
589//sys Dup(fd int) (nfd int, err error) 599//sys Dup(fd int) (nfd int, err error)
590//sys Dup2(oldfd int, newfd int) (err error) 600//sys Dup2(oldfd int, newfd int) (err error)
591//sys Exit(code int) 601//sys Exit(code int)
602//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
592//sys Fchdir(fd int) (err error) 603//sys Fchdir(fd int) (err error)
593//sys Fchmod(fd int, mode uint32) (err error) 604//sys Fchmod(fd int, mode uint32) (err error)
594//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) 605//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
595//sys Fchown(fd int, uid int, gid int) (err error) 606//sys Fchown(fd int, uid int, gid int) (err error)
596//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) 607//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
597//sys Fdatasync(fd int) (err error) 608//sys Fdatasync(fd int) (err error)
598//sys Flock(fd int, how int) (err error) 609//sys Flock(fd int, how int) (err error)
599//sys Fpathconf(fd int, name int) (val int, err error) 610//sys Fpathconf(fd int, name int) (val int, err error)
600//sys Fstat(fd int, stat *Stat_t) (err error) 611//sys Fstat(fd int, stat *Stat_t) (err error)
612//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
601//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) 613//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error)
602//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) 614//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error)
603//sysnb Getgid() (gid int) 615//sysnb Getgid() (gid int)
@@ -675,6 +687,7 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
675//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_connect 687//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_connect
676//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) 688//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
677//sys munmap(addr uintptr, length uintptr) (err error) 689//sys munmap(addr uintptr, length uintptr) (err error)
690//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = libsendfile.sendfile
678//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_sendto 691//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_sendto
679//sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.__xnet_socket 692//sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.__xnet_socket
680//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair 693//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair
diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
index 9d4e7a6..91c32dd 100644
--- a/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
@@ -21,8 +21,3 @@ func (iov *Iovec) SetLen(length int) {
21func (cmsg *Cmsghdr) SetLen(length int) { 21func (cmsg *Cmsghdr) SetLen(length int) {
22 cmsg.Len = uint32(length) 22 cmsg.Len = uint32(length)
23} 23}
24
25func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
26 // TODO(aram): implement this, see issue 5847.
27 panic("unimplemented")
28}
diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go
index cd8f3a9..64fcda4 100644
--- a/vendor/golang.org/x/sys/unix/syscall_unix.go
+++ b/vendor/golang.org/x/sys/unix/syscall_unix.go
@@ -2,12 +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 darwin dragonfly freebsd linux netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7package unix 7package unix
8 8
9import ( 9import (
10 "bytes"
10 "runtime" 11 "runtime"
12 "sort"
11 "sync" 13 "sync"
12 "syscall" 14 "syscall"
13 "unsafe" 15 "unsafe"
@@ -20,10 +22,10 @@ var (
20) 22)
21 23
22const ( 24const (
23 darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8 25 darwin64Bit = runtime.GOOS == "darwin" && SizeofPtr == 8
24 dragonfly64Bit = runtime.GOOS == "dragonfly" && sizeofPtr == 8 26 dragonfly64Bit = runtime.GOOS == "dragonfly" && SizeofPtr == 8
25 netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4 27 netbsd32Bit = runtime.GOOS == "netbsd" && SizeofPtr == 4
26 solaris64Bit = runtime.GOOS == "solaris" && sizeofPtr == 8 28 solaris64Bit = runtime.GOOS == "solaris" && SizeofPtr == 8
27) 29)
28 30
29// Do the interface allocations only once for common 31// Do the interface allocations only once for common
@@ -50,14 +52,35 @@ func errnoErr(e syscall.Errno) error {
50 return e 52 return e
51} 53}
52 54
55// ErrnoName returns the error name for error number e.
56func ErrnoName(e syscall.Errno) string {
57 i := sort.Search(len(errorList), func(i int) bool {
58 return errorList[i].num >= e
59 })
60 if i < len(errorList) && errorList[i].num == e {
61 return errorList[i].name
62 }
63 return ""
64}
65
66// SignalName returns the signal name for signal number s.
67func SignalName(s syscall.Signal) string {
68 i := sort.Search(len(signalList), func(i int) bool {
69 return signalList[i].num >= s
70 })
71 if i < len(signalList) && signalList[i].num == s {
72 return signalList[i].name
73 }
74 return ""
75}
76
53// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte. 77// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
54func clen(n []byte) int { 78func clen(n []byte) int {
55 for i := 0; i < len(n); i++ { 79 i := bytes.IndexByte(n, 0)
56 if n[i] == 0 { 80 if i == -1 {
57 return i 81 i = len(n)
58 }
59 } 82 }
60 return len(n) 83 return i
61} 84}
62 85
63// Mmap manager, for use by operating system-specific implementations. 86// Mmap manager, for use by operating system-specific implementations.
@@ -196,7 +219,14 @@ func Getpeername(fd int) (sa Sockaddr, err error) {
196 if err = getpeername(fd, &rsa, &len); err != nil { 219 if err = getpeername(fd, &rsa, &len); err != nil {
197 return 220 return
198 } 221 }
199 return anyToSockaddr(&rsa) 222 return anyToSockaddr(fd, &rsa)
223}
224
225func GetsockoptByte(fd, level, opt int) (value byte, err error) {
226 var n byte
227 vallen := _Socklen(1)
228 err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
229 return n, err
200} 230}
201 231
202func GetsockoptInt(fd, level, opt int) (value int, err error) { 232func GetsockoptInt(fd, level, opt int) (value int, err error) {
@@ -206,6 +236,54 @@ func GetsockoptInt(fd, level, opt int) (value int, err error) {
206 return int(n), err 236 return int(n), err
207} 237}
208 238
239func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
240 vallen := _Socklen(4)
241 err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
242 return value, err
243}
244
245func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
246 var value IPMreq
247 vallen := _Socklen(SizeofIPMreq)
248 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
249 return &value, err
250}
251
252func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
253 var value IPv6Mreq
254 vallen := _Socklen(SizeofIPv6Mreq)
255 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
256 return &value, err
257}
258
259func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
260 var value IPv6MTUInfo
261 vallen := _Socklen(SizeofIPv6MTUInfo)
262 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
263 return &value, err
264}
265
266func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
267 var value ICMPv6Filter
268 vallen := _Socklen(SizeofICMPv6Filter)
269 err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
270 return &value, err
271}
272
273func GetsockoptLinger(fd, level, opt int) (*Linger, error) {
274 var linger Linger
275 vallen := _Socklen(SizeofLinger)
276 err := getsockopt(fd, level, opt, unsafe.Pointer(&linger), &vallen)
277 return &linger, err
278}
279
280func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) {
281 var tv Timeval
282 vallen := _Socklen(unsafe.Sizeof(tv))
283 err := getsockopt(fd, level, opt, unsafe.Pointer(&tv), &vallen)
284 return &tv, err
285}
286
209func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) { 287func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
210 var rsa RawSockaddrAny 288 var rsa RawSockaddrAny
211 var len _Socklen = SizeofSockaddrAny 289 var len _Socklen = SizeofSockaddrAny
@@ -213,7 +291,7 @@ func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
213 return 291 return
214 } 292 }
215 if rsa.Addr.Family != AF_UNSPEC { 293 if rsa.Addr.Family != AF_UNSPEC {
216 from, err = anyToSockaddr(&rsa) 294 from, err = anyToSockaddr(fd, &rsa)
217 } 295 }
218 return 296 return
219} 297}
@@ -305,3 +383,12 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
305 _, err = fcntl(fd, F_SETFL, flag) 383 _, err = fcntl(fd, F_SETFL, flag)
306 return err 384 return err
307} 385}
386
387// Exec calls execve(2), which replaces the calling executable in the process
388// tree. argv0 should be the full path to an executable ("/bin/ls") and the
389// executable name should also be the first argument in argv (["ls", "-l"]).
390// envv are the environment variables that should be passed to the new
391// process (["USER=go", "PWD=/tmp"]).
392func Exec(argv0 string, argv []string, envv []string) error {
393 return syscall.Exec(argv0, argv, envv)
394}
diff --git a/vendor/golang.org/x/sys/unix/timestruct.go b/vendor/golang.org/x/sys/unix/timestruct.go
index 47b9011..4a672f5 100644
--- a/vendor/golang.org/x/sys/unix/timestruct.go
+++ b/vendor/golang.org/x/sys/unix/timestruct.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build darwin dragonfly freebsd linux netbsd openbsd solaris 5// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 6
7package unix 7package unix
8 8
diff --git a/vendor/golang.org/x/sys/unix/xattr_bsd.go b/vendor/golang.org/x/sys/unix/xattr_bsd.go
new file mode 100644
index 0000000..9304993
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/xattr_bsd.go
@@ -0,0 +1,231 @@
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 freebsd netbsd
6
7package unix
8
9import (
10 "strings"
11 "unsafe"
12)
13
14// Derive extattr namespace and attribute name
15
16func xattrnamespace(fullattr string) (ns int, attr string, err error) {
17 s := strings.IndexByte(fullattr, '.')
18 if s == -1 {
19 return -1, "", ENOATTR
20 }
21
22 namespace := fullattr[0:s]
23 attr = fullattr[s+1:]
24
25 switch namespace {
26 case "user":
27 return EXTATTR_NAMESPACE_USER, attr, nil
28 case "system":
29 return EXTATTR_NAMESPACE_SYSTEM, attr, nil
30 default:
31 return -1, "", ENOATTR
32 }
33}
34
35func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
36 if len(dest) > idx {
37 return unsafe.Pointer(&dest[idx])
38 } else {
39 return unsafe.Pointer(_zero)
40 }
41}
42
43// FreeBSD and NetBSD implement their own syscalls to handle extended attributes
44
45func Getxattr(file string, attr string, dest []byte) (sz int, err error) {
46 d := initxattrdest(dest, 0)
47 destsize := len(dest)
48
49 nsid, a, err := xattrnamespace(attr)
50 if err != nil {
51 return -1, err
52 }
53
54 return ExtattrGetFile(file, nsid, a, uintptr(d), destsize)
55}
56
57func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
58 d := initxattrdest(dest, 0)
59 destsize := len(dest)
60
61 nsid, a, err := xattrnamespace(attr)
62 if err != nil {
63 return -1, err
64 }
65
66 return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize)
67}
68
69func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
70 d := initxattrdest(dest, 0)
71 destsize := len(dest)
72
73 nsid, a, err := xattrnamespace(attr)
74 if err != nil {
75 return -1, err
76 }
77
78 return ExtattrGetLink(link, nsid, a, uintptr(d), destsize)
79}
80
81// flags are unused on FreeBSD
82
83func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
84 d := unsafe.Pointer(&data[0])
85 datasiz := len(data)
86
87 nsid, a, err := xattrnamespace(attr)
88 if err != nil {
89 return
90 }
91
92 _, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz)
93 return
94}
95
96func Setxattr(file string, attr string, data []byte, flags int) (err error) {
97 d := unsafe.Pointer(&data[0])
98 datasiz := len(data)
99
100 nsid, a, err := xattrnamespace(attr)
101 if err != nil {
102 return
103 }
104
105 _, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz)
106 return
107}
108
109func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
110 d := unsafe.Pointer(&data[0])
111 datasiz := len(data)
112
113 nsid, a, err := xattrnamespace(attr)
114 if err != nil {
115 return
116 }
117
118 _, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz)
119 return
120}
121
122func Removexattr(file string, attr string) (err error) {
123 nsid, a, err := xattrnamespace(attr)
124 if err != nil {
125 return
126 }
127
128 err = ExtattrDeleteFile(file, nsid, a)
129 return
130}
131
132func Fremovexattr(fd int, attr string) (err error) {
133 nsid, a, err := xattrnamespace(attr)
134 if err != nil {
135 return
136 }
137
138 err = ExtattrDeleteFd(fd, nsid, a)
139 return
140}
141
142func Lremovexattr(link string, attr string) (err error) {
143 nsid, a, err := xattrnamespace(attr)
144 if err != nil {
145 return
146 }
147
148 err = ExtattrDeleteLink(link, nsid, a)
149 return
150}
151
152func Listxattr(file string, dest []byte) (sz int, err error) {
153 d := initxattrdest(dest, 0)
154 destsiz := len(dest)
155
156 // FreeBSD won't allow you to list xattrs from multiple namespaces
157 s := 0
158 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
159 stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
160
161 /* Errors accessing system attrs are ignored so that
162 * we can implement the Linux-like behavior of omitting errors that
163 * we don't have read permissions on
164 *
165 * Linux will still error if we ask for user attributes on a file that
166 * we don't have read permissions on, so don't ignore those errors
167 */
168 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
169 continue
170 } else if e != nil {
171 return s, e
172 }
173
174 s += stmp
175 destsiz -= s
176 if destsiz < 0 {
177 destsiz = 0
178 }
179 d = initxattrdest(dest, s)
180 }
181
182 return s, nil
183}
184
185func Flistxattr(fd int, dest []byte) (sz int, err error) {
186 d := initxattrdest(dest, 0)
187 destsiz := len(dest)
188
189 s := 0
190 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
191 stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
192 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
193 continue
194 } else if e != nil {
195 return s, e
196 }
197
198 s += stmp
199 destsiz -= s
200 if destsiz < 0 {
201 destsiz = 0
202 }
203 d = initxattrdest(dest, s)
204 }
205
206 return s, nil
207}
208
209func Llistxattr(link string, dest []byte) (sz int, err error) {
210 d := initxattrdest(dest, 0)
211 destsiz := len(dest)
212
213 s := 0
214 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
215 stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
216 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
217 continue
218 } else if e != nil {
219 return s, e
220 }
221
222 s += stmp
223 destsiz -= s
224 if destsiz < 0 {
225 destsiz = 0
226 }
227 d = initxattrdest(dest, s)
228 }
229
230 return s, nil
231}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
new file mode 100644
index 0000000..4b7b965
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
@@ -0,0 +1,1372 @@
1// mkerrors.sh -maix32
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build ppc,aix
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -maix32 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_BYPASS = 0x19
16 AF_CCITT = 0xa
17 AF_CHAOS = 0x5
18 AF_DATAKIT = 0x9
19 AF_DECnet = 0xc
20 AF_DLI = 0xd
21 AF_ECMA = 0x8
22 AF_HYLINK = 0xf
23 AF_IMPLINK = 0x3
24 AF_INET = 0x2
25 AF_INET6 = 0x18
26 AF_INTF = 0x14
27 AF_ISO = 0x7
28 AF_LAT = 0xe
29 AF_LINK = 0x12
30 AF_LOCAL = 0x1
31 AF_MAX = 0x1e
32 AF_NDD = 0x17
33 AF_NETWARE = 0x16
34 AF_NS = 0x6
35 AF_OSI = 0x7
36 AF_PUP = 0x4
37 AF_RIF = 0x15
38 AF_ROUTE = 0x11
39 AF_SNA = 0xb
40 AF_UNIX = 0x1
41 AF_UNSPEC = 0x0
42 ALTWERASE = 0x400000
43 ARPHRD_802_3 = 0x6
44 ARPHRD_802_5 = 0x6
45 ARPHRD_ETHER = 0x1
46 ARPHRD_FDDI = 0x1
47 B0 = 0x0
48 B110 = 0x3
49 B1200 = 0x9
50 B134 = 0x4
51 B150 = 0x5
52 B1800 = 0xa
53 B19200 = 0xe
54 B200 = 0x6
55 B2400 = 0xb
56 B300 = 0x7
57 B38400 = 0xf
58 B4800 = 0xc
59 B50 = 0x1
60 B600 = 0x8
61 B75 = 0x2
62 B9600 = 0xd
63 BRKINT = 0x2
64 BS0 = 0x0
65 BS1 = 0x1000
66 BSDLY = 0x1000
67 CAP_AACCT = 0x6
68 CAP_ARM_APPLICATION = 0x5
69 CAP_BYPASS_RAC_VMM = 0x3
70 CAP_CLEAR = 0x0
71 CAP_CREDENTIALS = 0x7
72 CAP_EFFECTIVE = 0x1
73 CAP_EWLM_AGENT = 0x4
74 CAP_INHERITABLE = 0x2
75 CAP_MAXIMUM = 0x7
76 CAP_NUMA_ATTACH = 0x2
77 CAP_PERMITTED = 0x3
78 CAP_PROPAGATE = 0x1
79 CAP_PROPOGATE = 0x1
80 CAP_SET = 0x1
81 CBAUD = 0xf
82 CFLUSH = 0xf
83 CIBAUD = 0xf0000
84 CLOCAL = 0x800
85 CLOCK_MONOTONIC = 0xa
86 CLOCK_PROCESS_CPUTIME_ID = 0xb
87 CLOCK_REALTIME = 0x9
88 CLOCK_THREAD_CPUTIME_ID = 0xc
89 CR0 = 0x0
90 CR1 = 0x100
91 CR2 = 0x200
92 CR3 = 0x300
93 CRDLY = 0x300
94 CREAD = 0x80
95 CS5 = 0x0
96 CS6 = 0x10
97 CS7 = 0x20
98 CS8 = 0x30
99 CSIOCGIFCONF = -0x3ff796dc
100 CSIZE = 0x30
101 CSMAP_DIR = "/usr/lib/nls/csmap/"
102 CSTART = '\021'
103 CSTOP = '\023'
104 CSTOPB = 0x40
105 CSUSP = 0x1a
106 ECHO = 0x8
107 ECHOCTL = 0x20000
108 ECHOE = 0x10
109 ECHOK = 0x20
110 ECHOKE = 0x80000
111 ECHONL = 0x40
112 ECHOPRT = 0x40000
113 ECH_ICMPID = 0x2
114 ETHERNET_CSMACD = 0x6
115 EVENP = 0x80
116 EXCONTINUE = 0x0
117 EXDLOK = 0x3
118 EXIO = 0x2
119 EXPGIO = 0x0
120 EXRESUME = 0x2
121 EXRETURN = 0x1
122 EXSIG = 0x4
123 EXTA = 0xe
124 EXTB = 0xf
125 EXTRAP = 0x1
126 EYEC_RTENTRYA = 0x257274656e747241
127 EYEC_RTENTRYF = 0x257274656e747246
128 E_ACC = 0x0
129 FD_CLOEXEC = 0x1
130 FD_SETSIZE = 0xfffe
131 FF0 = 0x0
132 FF1 = 0x2000
133 FFDLY = 0x2000
134 FLUSHBAND = 0x40
135 FLUSHLOW = 0x8
136 FLUSHO = 0x100000
137 FLUSHR = 0x1
138 FLUSHRW = 0x3
139 FLUSHW = 0x2
140 F_CLOSEM = 0xa
141 F_DUP2FD = 0xe
142 F_DUPFD = 0x0
143 F_GETFD = 0x1
144 F_GETFL = 0x3
145 F_GETLK = 0x5
146 F_GETLK64 = 0xb
147 F_GETOWN = 0x8
148 F_LOCK = 0x1
149 F_OK = 0x0
150 F_RDLCK = 0x1
151 F_SETFD = 0x2
152 F_SETFL = 0x4
153 F_SETLK = 0x6
154 F_SETLK64 = 0xc
155 F_SETLKW = 0x7
156 F_SETLKW64 = 0xd
157 F_SETOWN = 0x9
158 F_TEST = 0x3
159 F_TLOCK = 0x2
160 F_TSTLK = 0xf
161 F_ULOCK = 0x0
162 F_UNLCK = 0x3
163 F_WRLCK = 0x2
164 HUPCL = 0x400
165 IBSHIFT = 0x10
166 ICANON = 0x2
167 ICMP6_FILTER = 0x26
168 ICMP6_SEC_SEND_DEL = 0x46
169 ICMP6_SEC_SEND_GET = 0x47
170 ICMP6_SEC_SEND_SET = 0x44
171 ICMP6_SEC_SEND_SET_CGA_ADDR = 0x45
172 ICRNL = 0x100
173 IEXTEN = 0x200000
174 IFA_FIRSTALIAS = 0x2000
175 IFA_ROUTE = 0x1
176 IFF_64BIT = 0x4000000
177 IFF_ALLCAST = 0x20000
178 IFF_ALLMULTI = 0x200
179 IFF_BPF = 0x8000000
180 IFF_BRIDGE = 0x40000
181 IFF_BROADCAST = 0x2
182 IFF_CANTCHANGE = 0x80c52
183 IFF_CHECKSUM_OFFLOAD = 0x10000000
184 IFF_D1 = 0x8000
185 IFF_D2 = 0x4000
186 IFF_D3 = 0x2000
187 IFF_D4 = 0x1000
188 IFF_DEBUG = 0x4
189 IFF_DEVHEALTH = 0x4000
190 IFF_DO_HW_LOOPBACK = 0x10000
191 IFF_GROUP_ROUTING = 0x2000000
192 IFF_IFBUFMGT = 0x800000
193 IFF_LINK0 = 0x100000
194 IFF_LINK1 = 0x200000
195 IFF_LINK2 = 0x400000
196 IFF_LOOPBACK = 0x8
197 IFF_MULTICAST = 0x80000
198 IFF_NOARP = 0x80
199 IFF_NOECHO = 0x800
200 IFF_NOTRAILERS = 0x20
201 IFF_OACTIVE = 0x400
202 IFF_POINTOPOINT = 0x10
203 IFF_PROMISC = 0x100
204 IFF_PSEG = 0x40000000
205 IFF_RUNNING = 0x40
206 IFF_SIMPLEX = 0x800
207 IFF_SNAP = 0x8000
208 IFF_TCP_DISABLE_CKSUM = 0x20000000
209 IFF_TCP_NOCKSUM = 0x1000000
210 IFF_UP = 0x1
211 IFF_VIPA = 0x80000000
212 IFNAMSIZ = 0x10
213 IFO_FLUSH = 0x1
214 IFT_1822 = 0x2
215 IFT_AAL5 = 0x31
216 IFT_ARCNET = 0x23
217 IFT_ARCNETPLUS = 0x24
218 IFT_ATM = 0x25
219 IFT_CEPT = 0x13
220 IFT_CLUSTER = 0x3e
221 IFT_DS3 = 0x1e
222 IFT_EON = 0x19
223 IFT_ETHER = 0x6
224 IFT_FCS = 0x3a
225 IFT_FDDI = 0xf
226 IFT_FRELAY = 0x20
227 IFT_FRELAYDCE = 0x2c
228 IFT_GIFTUNNEL = 0x3c
229 IFT_HDH1822 = 0x3
230 IFT_HF = 0x3d
231 IFT_HIPPI = 0x2f
232 IFT_HSSI = 0x2e
233 IFT_HY = 0xe
234 IFT_IB = 0xc7
235 IFT_ISDNBASIC = 0x14
236 IFT_ISDNPRIMARY = 0x15
237 IFT_ISO88022LLC = 0x29
238 IFT_ISO88023 = 0x7
239 IFT_ISO88024 = 0x8
240 IFT_ISO88025 = 0x9
241 IFT_ISO88026 = 0xa
242 IFT_LAPB = 0x10
243 IFT_LOCALTALK = 0x2a
244 IFT_LOOP = 0x18
245 IFT_MIOX25 = 0x26
246 IFT_MODEM = 0x30
247 IFT_NSIP = 0x1b
248 IFT_OTHER = 0x1
249 IFT_P10 = 0xc
250 IFT_P80 = 0xd
251 IFT_PARA = 0x22
252 IFT_PPP = 0x17
253 IFT_PROPMUX = 0x36
254 IFT_PROPVIRTUAL = 0x35
255 IFT_PTPSERIAL = 0x16
256 IFT_RS232 = 0x21
257 IFT_SDLC = 0x11
258 IFT_SIP = 0x1f
259 IFT_SLIP = 0x1c
260 IFT_SMDSDXI = 0x2b
261 IFT_SMDSICIP = 0x34
262 IFT_SN = 0x38
263 IFT_SONET = 0x27
264 IFT_SONETPATH = 0x32
265 IFT_SONETVT = 0x33
266 IFT_SP = 0x39
267 IFT_STARLAN = 0xb
268 IFT_T1 = 0x12
269 IFT_TUNNEL = 0x3b
270 IFT_ULTRA = 0x1d
271 IFT_V35 = 0x2d
272 IFT_VIPA = 0x37
273 IFT_X25 = 0x5
274 IFT_X25DDN = 0x4
275 IFT_X25PLE = 0x28
276 IFT_XETHER = 0x1a
277 IGNBRK = 0x1
278 IGNCR = 0x80
279 IGNPAR = 0x4
280 IMAXBEL = 0x10000
281 INLCR = 0x40
282 INPCK = 0x10
283 IN_CLASSA_HOST = 0xffffff
284 IN_CLASSA_MAX = 0x80
285 IN_CLASSA_NET = 0xff000000
286 IN_CLASSA_NSHIFT = 0x18
287 IN_CLASSB_HOST = 0xffff
288 IN_CLASSB_MAX = 0x10000
289 IN_CLASSB_NET = 0xffff0000
290 IN_CLASSB_NSHIFT = 0x10
291 IN_CLASSC_HOST = 0xff
292 IN_CLASSC_NET = 0xffffff00
293 IN_CLASSC_NSHIFT = 0x8
294 IN_CLASSD_HOST = 0xfffffff
295 IN_CLASSD_NET = 0xf0000000
296 IN_CLASSD_NSHIFT = 0x1c
297 IN_LOOPBACKNET = 0x7f
298 IN_USE = 0x1
299 IPPROTO_AH = 0x33
300 IPPROTO_BIP = 0x53
301 IPPROTO_DSTOPTS = 0x3c
302 IPPROTO_EGP = 0x8
303 IPPROTO_EON = 0x50
304 IPPROTO_ESP = 0x32
305 IPPROTO_FRAGMENT = 0x2c
306 IPPROTO_GGP = 0x3
307 IPPROTO_GIF = 0x8c
308 IPPROTO_GRE = 0x2f
309 IPPROTO_HOPOPTS = 0x0
310 IPPROTO_ICMP = 0x1
311 IPPROTO_ICMPV6 = 0x3a
312 IPPROTO_IDP = 0x16
313 IPPROTO_IGMP = 0x2
314 IPPROTO_IP = 0x0
315 IPPROTO_IPIP = 0x4
316 IPPROTO_IPV6 = 0x29
317 IPPROTO_LOCAL = 0x3f
318 IPPROTO_MAX = 0x100
319 IPPROTO_MH = 0x87
320 IPPROTO_NONE = 0x3b
321 IPPROTO_PUP = 0xc
322 IPPROTO_QOS = 0x2d
323 IPPROTO_RAW = 0xff
324 IPPROTO_ROUTING = 0x2b
325 IPPROTO_RSVP = 0x2e
326 IPPROTO_SCTP = 0x84
327 IPPROTO_TCP = 0x6
328 IPPROTO_TP = 0x1d
329 IPPROTO_UDP = 0x11
330 IPV6_ADDRFORM = 0x16
331 IPV6_ADDR_PREFERENCES = 0x4a
332 IPV6_ADD_MEMBERSHIP = 0xc
333 IPV6_AIXRAWSOCKET = 0x39
334 IPV6_CHECKSUM = 0x27
335 IPV6_DONTFRAG = 0x2d
336 IPV6_DROP_MEMBERSHIP = 0xd
337 IPV6_DSTOPTS = 0x36
338 IPV6_FLOWINFO_FLOWLABEL = 0xffffff
339 IPV6_FLOWINFO_PRIFLOW = 0xfffffff
340 IPV6_FLOWINFO_PRIORITY = 0xf000000
341 IPV6_FLOWINFO_SRFLAG = 0x10000000
342 IPV6_FLOWINFO_VERSION = 0xf0000000
343 IPV6_HOPLIMIT = 0x28
344 IPV6_HOPOPTS = 0x34
345 IPV6_JOIN_GROUP = 0xc
346 IPV6_LEAVE_GROUP = 0xd
347 IPV6_MIPDSTOPTS = 0x36
348 IPV6_MULTICAST_HOPS = 0xa
349 IPV6_MULTICAST_IF = 0x9
350 IPV6_MULTICAST_LOOP = 0xb
351 IPV6_NEXTHOP = 0x30
352 IPV6_NOPROBE = 0x1c
353 IPV6_PATHMTU = 0x2e
354 IPV6_PKTINFO = 0x21
355 IPV6_PKTOPTIONS = 0x24
356 IPV6_PRIORITY_10 = 0xa000000
357 IPV6_PRIORITY_11 = 0xb000000
358 IPV6_PRIORITY_12 = 0xc000000
359 IPV6_PRIORITY_13 = 0xd000000
360 IPV6_PRIORITY_14 = 0xe000000
361 IPV6_PRIORITY_15 = 0xf000000
362 IPV6_PRIORITY_8 = 0x8000000
363 IPV6_PRIORITY_9 = 0x9000000
364 IPV6_PRIORITY_BULK = 0x4000000
365 IPV6_PRIORITY_CONTROL = 0x7000000
366 IPV6_PRIORITY_FILLER = 0x1000000
367 IPV6_PRIORITY_INTERACTIVE = 0x6000000
368 IPV6_PRIORITY_RESERVED1 = 0x3000000
369 IPV6_PRIORITY_RESERVED2 = 0x5000000
370 IPV6_PRIORITY_UNATTENDED = 0x2000000
371 IPV6_PRIORITY_UNCHARACTERIZED = 0x0
372 IPV6_RECVDSTOPTS = 0x38
373 IPV6_RECVHOPLIMIT = 0x29
374 IPV6_RECVHOPOPTS = 0x35
375 IPV6_RECVHOPS = 0x22
376 IPV6_RECVIF = 0x1e
377 IPV6_RECVPATHMTU = 0x2f
378 IPV6_RECVPKTINFO = 0x23
379 IPV6_RECVRTHDR = 0x33
380 IPV6_RECVSRCRT = 0x1d
381 IPV6_RECVTCLASS = 0x2a
382 IPV6_RTHDR = 0x32
383 IPV6_RTHDRDSTOPTS = 0x37
384 IPV6_RTHDR_TYPE_0 = 0x0
385 IPV6_RTHDR_TYPE_2 = 0x2
386 IPV6_SENDIF = 0x1f
387 IPV6_SRFLAG_LOOSE = 0x0
388 IPV6_SRFLAG_STRICT = 0x10000000
389 IPV6_TCLASS = 0x2b
390 IPV6_TOKEN_LENGTH = 0x40
391 IPV6_UNICAST_HOPS = 0x4
392 IPV6_USE_MIN_MTU = 0x2c
393 IPV6_V6ONLY = 0x25
394 IPV6_VERSION = 0x60000000
395 IP_ADDRFORM = 0x16
396 IP_ADD_MEMBERSHIP = 0xc
397 IP_ADD_SOURCE_MEMBERSHIP = 0x3c
398 IP_BLOCK_SOURCE = 0x3a
399 IP_BROADCAST_IF = 0x10
400 IP_CACHE_LINE_SIZE = 0x80
401 IP_DEFAULT_MULTICAST_LOOP = 0x1
402 IP_DEFAULT_MULTICAST_TTL = 0x1
403 IP_DF = 0x4000
404 IP_DHCPMODE = 0x11
405 IP_DONTFRAG = 0x19
406 IP_DROP_MEMBERSHIP = 0xd
407 IP_DROP_SOURCE_MEMBERSHIP = 0x3d
408 IP_FINDPMTU = 0x1a
409 IP_HDRINCL = 0x2
410 IP_INC_MEMBERSHIPS = 0x14
411 IP_INIT_MEMBERSHIP = 0x14
412 IP_MAXPACKET = 0xffff
413 IP_MF = 0x2000
414 IP_MSS = 0x240
415 IP_MULTICAST_HOPS = 0xa
416 IP_MULTICAST_IF = 0x9
417 IP_MULTICAST_LOOP = 0xb
418 IP_MULTICAST_TTL = 0xa
419 IP_OPT = 0x1b
420 IP_OPTIONS = 0x1
421 IP_PMTUAGE = 0x1b
422 IP_RECVDSTADDR = 0x7
423 IP_RECVIF = 0x14
424 IP_RECVIFINFO = 0xf
425 IP_RECVINTERFACE = 0x20
426 IP_RECVMACHDR = 0xe
427 IP_RECVOPTS = 0x5
428 IP_RECVRETOPTS = 0x6
429 IP_RECVTTL = 0x22
430 IP_RETOPTS = 0x8
431 IP_SOURCE_FILTER = 0x48
432 IP_TOS = 0x3
433 IP_TTL = 0x4
434 IP_UNBLOCK_SOURCE = 0x3b
435 IP_UNICAST_HOPS = 0x4
436 ISIG = 0x1
437 ISTRIP = 0x20
438 IUCLC = 0x800
439 IXANY = 0x1000
440 IXOFF = 0x400
441 IXON = 0x200
442 I_FLUSH = 0x20005305
443 LNOFLSH = 0x8000
444 LOCK_EX = 0x2
445 LOCK_NB = 0x4
446 LOCK_SH = 0x1
447 LOCK_UN = 0x8
448 MADV_DONTNEED = 0x4
449 MADV_NORMAL = 0x0
450 MADV_RANDOM = 0x1
451 MADV_SEQUENTIAL = 0x2
452 MADV_SPACEAVAIL = 0x5
453 MADV_WILLNEED = 0x3
454 MAP_ANON = 0x10
455 MAP_ANONYMOUS = 0x10
456 MAP_FILE = 0x0
457 MAP_FIXED = 0x100
458 MAP_PRIVATE = 0x2
459 MAP_SHARED = 0x1
460 MAP_TYPE = 0xf0
461 MAP_VARIABLE = 0x0
462 MCL_CURRENT = 0x100
463 MCL_FUTURE = 0x200
464 MSG_ANY = 0x4
465 MSG_ARGEXT = 0x400
466 MSG_BAND = 0x2
467 MSG_COMPAT = 0x8000
468 MSG_CTRUNC = 0x20
469 MSG_DONTROUTE = 0x4
470 MSG_EOR = 0x8
471 MSG_HIPRI = 0x1
472 MSG_MAXIOVLEN = 0x10
473 MSG_MPEG2 = 0x80
474 MSG_NONBLOCK = 0x4000
475 MSG_NOSIGNAL = 0x100
476 MSG_OOB = 0x1
477 MSG_PEEK = 0x2
478 MSG_TRUNC = 0x10
479 MSG_WAITALL = 0x40
480 MSG_WAITFORONE = 0x200
481 MS_ASYNC = 0x10
482 MS_EINTR = 0x80
483 MS_INVALIDATE = 0x40
484 MS_PER_SEC = 0x3e8
485 MS_SYNC = 0x20
486 NL0 = 0x0
487 NL1 = 0x4000
488 NL2 = 0x8000
489 NL3 = 0xc000
490 NLDLY = 0x4000
491 NOFLSH = 0x80
492 NOFLUSH = 0x80000000
493 OCRNL = 0x8
494 OFDEL = 0x80
495 OFILL = 0x40
496 OLCUC = 0x2
497 ONLCR = 0x4
498 ONLRET = 0x20
499 ONOCR = 0x10
500 ONOEOT = 0x80000
501 OPOST = 0x1
502 OXTABS = 0x40000
503 O_ACCMODE = 0x23
504 O_APPEND = 0x8
505 O_CIO = 0x80
506 O_CIOR = 0x800000000
507 O_CLOEXEC = 0x800000
508 O_CREAT = 0x100
509 O_DEFER = 0x2000
510 O_DELAY = 0x4000
511 O_DIRECT = 0x8000000
512 O_DIRECTORY = 0x80000
513 O_DSYNC = 0x400000
514 O_EFSOFF = 0x400000000
515 O_EFSON = 0x200000000
516 O_EXCL = 0x400
517 O_EXEC = 0x20
518 O_LARGEFILE = 0x4000000
519 O_NDELAY = 0x8000
520 O_NOCACHE = 0x100000
521 O_NOCTTY = 0x800
522 O_NOFOLLOW = 0x1000000
523 O_NONBLOCK = 0x4
524 O_NONE = 0x3
525 O_NSHARE = 0x10000
526 O_RAW = 0x100000000
527 O_RDONLY = 0x0
528 O_RDWR = 0x2
529 O_RSHARE = 0x1000
530 O_RSYNC = 0x200000
531 O_SEARCH = 0x20
532 O_SNAPSHOT = 0x40
533 O_SYNC = 0x10
534 O_TRUNC = 0x200
535 O_TTY_INIT = 0x0
536 O_WRONLY = 0x1
537 PARENB = 0x100
538 PAREXT = 0x100000
539 PARMRK = 0x8
540 PARODD = 0x200
541 PENDIN = 0x20000000
542 PRIO_PGRP = 0x1
543 PRIO_PROCESS = 0x0
544 PRIO_USER = 0x2
545 PROT_EXEC = 0x4
546 PROT_NONE = 0x0
547 PROT_READ = 0x1
548 PROT_WRITE = 0x2
549 PR_64BIT = 0x20
550 PR_ADDR = 0x2
551 PR_ARGEXT = 0x400
552 PR_ATOMIC = 0x1
553 PR_CONNREQUIRED = 0x4
554 PR_FASTHZ = 0x5
555 PR_INP = 0x40
556 PR_INTRLEVEL = 0x8000
557 PR_MLS = 0x100
558 PR_MLS_1_LABEL = 0x200
559 PR_NOEOR = 0x4000
560 PR_RIGHTS = 0x10
561 PR_SLOWHZ = 0x2
562 PR_WANTRCVD = 0x8
563 RLIMIT_AS = 0x6
564 RLIMIT_CORE = 0x4
565 RLIMIT_CPU = 0x0
566 RLIMIT_DATA = 0x2
567 RLIMIT_FSIZE = 0x1
568 RLIMIT_NOFILE = 0x7
569 RLIMIT_NPROC = 0x9
570 RLIMIT_RSS = 0x5
571 RLIMIT_STACK = 0x3
572 RLIM_INFINITY = 0x7fffffff
573 RTAX_AUTHOR = 0x6
574 RTAX_BRD = 0x7
575 RTAX_DST = 0x0
576 RTAX_GATEWAY = 0x1
577 RTAX_GENMASK = 0x3
578 RTAX_IFA = 0x5
579 RTAX_IFP = 0x4
580 RTAX_MAX = 0x8
581 RTAX_NETMASK = 0x2
582 RTA_AUTHOR = 0x40
583 RTA_BRD = 0x80
584 RTA_DOWNSTREAM = 0x100
585 RTA_DST = 0x1
586 RTA_GATEWAY = 0x2
587 RTA_GENMASK = 0x8
588 RTA_IFA = 0x20
589 RTA_IFP = 0x10
590 RTA_NETMASK = 0x4
591 RTC_IA64 = 0x3
592 RTC_POWER = 0x1
593 RTC_POWER_PC = 0x2
594 RTF_ACTIVE_DGD = 0x1000000
595 RTF_BCE = 0x80000
596 RTF_BLACKHOLE = 0x1000
597 RTF_BROADCAST = 0x400000
598 RTF_BUL = 0x2000
599 RTF_CLONE = 0x10000
600 RTF_CLONED = 0x20000
601 RTF_CLONING = 0x100
602 RTF_DONE = 0x40
603 RTF_DYNAMIC = 0x10
604 RTF_FREE_IN_PROG = 0x4000000
605 RTF_GATEWAY = 0x2
606 RTF_HOST = 0x4
607 RTF_LLINFO = 0x400
608 RTF_LOCAL = 0x200000
609 RTF_MASK = 0x80
610 RTF_MODIFIED = 0x20
611 RTF_MULTICAST = 0x800000
612 RTF_PERMANENT6 = 0x8000000
613 RTF_PINNED = 0x100000
614 RTF_PROTO1 = 0x8000
615 RTF_PROTO2 = 0x4000
616 RTF_PROTO3 = 0x40000
617 RTF_REJECT = 0x8
618 RTF_SMALLMTU = 0x40000
619 RTF_STATIC = 0x800
620 RTF_STOPSRCH = 0x2000000
621 RTF_UNREACHABLE = 0x10000000
622 RTF_UP = 0x1
623 RTF_XRESOLVE = 0x200
624 RTM_ADD = 0x1
625 RTM_CHANGE = 0x3
626 RTM_DELADDR = 0xd
627 RTM_DELETE = 0x2
628 RTM_EXPIRE = 0xf
629 RTM_GET = 0x4
630 RTM_GETNEXT = 0x11
631 RTM_IFINFO = 0xe
632 RTM_LOCK = 0x8
633 RTM_LOSING = 0x5
634 RTM_MISS = 0x7
635 RTM_NEWADDR = 0xc
636 RTM_OLDADD = 0x9
637 RTM_OLDDEL = 0xa
638 RTM_REDIRECT = 0x6
639 RTM_RESOLVE = 0xb
640 RTM_RTLOST = 0x10
641 RTM_RTTUNIT = 0xf4240
642 RTM_SAMEADDR = 0x12
643 RTM_SET = 0x13
644 RTM_VERSION = 0x2
645 RTM_VERSION_GR = 0x4
646 RTM_VERSION_GR_COMPAT = 0x3
647 RTM_VERSION_POLICY = 0x5
648 RTM_VERSION_POLICY_EXT = 0x6
649 RTM_VERSION_POLICY_PRFN = 0x7
650 RTV_EXPIRE = 0x4
651 RTV_HOPCOUNT = 0x2
652 RTV_MTU = 0x1
653 RTV_RPIPE = 0x8
654 RTV_RTT = 0x40
655 RTV_RTTVAR = 0x80
656 RTV_SPIPE = 0x10
657 RTV_SSTHRESH = 0x20
658 RUSAGE_CHILDREN = -0x1
659 RUSAGE_SELF = 0x0
660 RUSAGE_THREAD = 0x1
661 SCM_RIGHTS = 0x1
662 SHUT_RD = 0x0
663 SHUT_RDWR = 0x2
664 SHUT_WR = 0x1
665 SIGMAX64 = 0xff
666 SIGQUEUE_MAX = 0x20
667 SIOCADDIFVIPA = 0x20006942
668 SIOCADDMTU = -0x7ffb9690
669 SIOCADDMULTI = -0x7fdf96cf
670 SIOCADDNETID = -0x7fd796a9
671 SIOCADDRT = -0x7fcf8df6
672 SIOCAIFADDR = -0x7fbf96e6
673 SIOCATMARK = 0x40047307
674 SIOCDARP = -0x7fb396e0
675 SIOCDELIFVIPA = 0x20006943
676 SIOCDELMTU = -0x7ffb968f
677 SIOCDELMULTI = -0x7fdf96ce
678 SIOCDELPMTU = -0x7fd78ff6
679 SIOCDELRT = -0x7fcf8df5
680 SIOCDIFADDR = -0x7fd796e7
681 SIOCDNETOPT = -0x3ffe9680
682 SIOCDX25XLATE = -0x7fd7969b
683 SIOCFIFADDR = -0x7fdf966d
684 SIOCGARP = -0x3fb396da
685 SIOCGETMTUS = 0x2000696f
686 SIOCGETSGCNT = -0x3feb8acc
687 SIOCGETVIFCNT = -0x3feb8acd
688 SIOCGHIWAT = 0x40047301
689 SIOCGIFADDR = -0x3fd796df
690 SIOCGIFADDRS = 0x2000698c
691 SIOCGIFBAUDRATE = -0x3fd79693
692 SIOCGIFBRDADDR = -0x3fd796dd
693 SIOCGIFCONF = -0x3ff796bb
694 SIOCGIFCONFGLOB = -0x3ff79670
695 SIOCGIFDSTADDR = -0x3fd796de
696 SIOCGIFFLAGS = -0x3fd796ef
697 SIOCGIFGIDLIST = 0x20006968
698 SIOCGIFHWADDR = -0x3fab966b
699 SIOCGIFMETRIC = -0x3fd796e9
700 SIOCGIFMTU = -0x3fd796aa
701 SIOCGIFNETMASK = -0x3fd796db
702 SIOCGIFOPTIONS = -0x3fd796d6
703 SIOCGISNO = -0x3fd79695
704 SIOCGLOADF = -0x3ffb967e
705 SIOCGLOWAT = 0x40047303
706 SIOCGNETOPT = -0x3ffe96a5
707 SIOCGNETOPT1 = -0x3fdf967f
708 SIOCGNMTUS = 0x2000696e
709 SIOCGPGRP = 0x40047309
710 SIOCGSIZIFCONF = 0x4004696a
711 SIOCGSRCFILTER = -0x3fe796cb
712 SIOCGTUNEPHASE = -0x3ffb9676
713 SIOCGX25XLATE = -0x3fd7969c
714 SIOCIFATTACH = -0x7fdf9699
715 SIOCIFDETACH = -0x7fdf969a
716 SIOCIFGETPKEY = -0x7fdf969b
717 SIOCIF_ATM_DARP = -0x7fdf9683
718 SIOCIF_ATM_DUMPARP = -0x7fdf9685
719 SIOCIF_ATM_GARP = -0x7fdf9682
720 SIOCIF_ATM_IDLE = -0x7fdf9686
721 SIOCIF_ATM_SARP = -0x7fdf9681
722 SIOCIF_ATM_SNMPARP = -0x7fdf9687
723 SIOCIF_ATM_SVC = -0x7fdf9684
724 SIOCIF_ATM_UBR = -0x7fdf9688
725 SIOCIF_DEVHEALTH = -0x7ffb966c
726 SIOCIF_IB_ARP_INCOMP = -0x7fdf9677
727 SIOCIF_IB_ARP_TIMER = -0x7fdf9678
728 SIOCIF_IB_CLEAR_PINFO = -0x3fdf966f
729 SIOCIF_IB_DEL_ARP = -0x7fdf967f
730 SIOCIF_IB_DEL_PINFO = -0x3fdf9670
731 SIOCIF_IB_DUMP_ARP = -0x7fdf9680
732 SIOCIF_IB_GET_ARP = -0x7fdf967e
733 SIOCIF_IB_GET_INFO = -0x3f879675
734 SIOCIF_IB_GET_STATS = -0x3f879672
735 SIOCIF_IB_NOTIFY_ADDR_REM = -0x3f87966a
736 SIOCIF_IB_RESET_STATS = -0x3f879671
737 SIOCIF_IB_RESIZE_CQ = -0x7fdf9679
738 SIOCIF_IB_SET_ARP = -0x7fdf967d
739 SIOCIF_IB_SET_PKEY = -0x7fdf967c
740 SIOCIF_IB_SET_PORT = -0x7fdf967b
741 SIOCIF_IB_SET_QKEY = -0x7fdf9676
742 SIOCIF_IB_SET_QSIZE = -0x7fdf967a
743 SIOCLISTIFVIPA = 0x20006944
744 SIOCSARP = -0x7fb396e2
745 SIOCSHIWAT = 0x80047300
746 SIOCSIFADDR = -0x7fd796f4
747 SIOCSIFADDRORI = -0x7fdb9673
748 SIOCSIFBRDADDR = -0x7fd796ed
749 SIOCSIFDSTADDR = -0x7fd796f2
750 SIOCSIFFLAGS = -0x7fd796f0
751 SIOCSIFGIDLIST = 0x20006969
752 SIOCSIFMETRIC = -0x7fd796e8
753 SIOCSIFMTU = -0x7fd796a8
754 SIOCSIFNETDUMP = -0x7fd796e4
755 SIOCSIFNETMASK = -0x7fd796ea
756 SIOCSIFOPTIONS = -0x7fd796d7
757 SIOCSIFSUBCHAN = -0x7fd796e5
758 SIOCSISNO = -0x7fd79694
759 SIOCSLOADF = -0x3ffb967d
760 SIOCSLOWAT = 0x80047302
761 SIOCSNETOPT = -0x7ffe96a6
762 SIOCSPGRP = 0x80047308
763 SIOCSX25XLATE = -0x7fd7969d
764 SOCK_CONN_DGRAM = 0x6
765 SOCK_DGRAM = 0x2
766 SOCK_RAW = 0x3
767 SOCK_RDM = 0x4
768 SOCK_SEQPACKET = 0x5
769 SOCK_STREAM = 0x1
770 SOL_SOCKET = 0xffff
771 SOMAXCONN = 0x400
772 SO_ACCEPTCONN = 0x2
773 SO_AUDIT = 0x8000
774 SO_BROADCAST = 0x20
775 SO_CKSUMRECV = 0x800
776 SO_DEBUG = 0x1
777 SO_DONTROUTE = 0x10
778 SO_ERROR = 0x1007
779 SO_KEEPALIVE = 0x8
780 SO_KERNACCEPT = 0x2000
781 SO_LINGER = 0x80
782 SO_NOMULTIPATH = 0x4000
783 SO_NOREUSEADDR = 0x1000
784 SO_OOBINLINE = 0x100
785 SO_PEERID = 0x1009
786 SO_RCVBUF = 0x1002
787 SO_RCVLOWAT = 0x1004
788 SO_RCVTIMEO = 0x1006
789 SO_REUSEADDR = 0x4
790 SO_REUSEPORT = 0x200
791 SO_SNDBUF = 0x1001
792 SO_SNDLOWAT = 0x1003
793 SO_SNDTIMEO = 0x1005
794 SO_TIMESTAMPNS = 0x100a
795 SO_TYPE = 0x1008
796 SO_USELOOPBACK = 0x40
797 SO_USE_IFBUFS = 0x400
798 S_BANDURG = 0x400
799 S_EMODFMT = 0x3c000000
800 S_ENFMT = 0x400
801 S_ERROR = 0x100
802 S_HANGUP = 0x200
803 S_HIPRI = 0x2
804 S_ICRYPTO = 0x80000
805 S_IEXEC = 0x40
806 S_IFBLK = 0x6000
807 S_IFCHR = 0x2000
808 S_IFDIR = 0x4000
809 S_IFIFO = 0x1000
810 S_IFJOURNAL = 0x10000
811 S_IFLNK = 0xa000
812 S_IFMPX = 0x2200
813 S_IFMT = 0xf000
814 S_IFPDIR = 0x4000000
815 S_IFPSDIR = 0x8000000
816 S_IFPSSDIR = 0xc000000
817 S_IFREG = 0x8000
818 S_IFSOCK = 0xc000
819 S_IFSYSEA = 0x30000000
820 S_INPUT = 0x1
821 S_IREAD = 0x100
822 S_IRGRP = 0x20
823 S_IROTH = 0x4
824 S_IRUSR = 0x100
825 S_IRWXG = 0x38
826 S_IRWXO = 0x7
827 S_IRWXU = 0x1c0
828 S_ISGID = 0x400
829 S_ISUID = 0x800
830 S_ISVTX = 0x200
831 S_ITCB = 0x1000000
832 S_ITP = 0x800000
833 S_IWGRP = 0x10
834 S_IWOTH = 0x2
835 S_IWRITE = 0x80
836 S_IWUSR = 0x80
837 S_IXACL = 0x2000000
838 S_IXATTR = 0x40000
839 S_IXGRP = 0x8
840 S_IXINTERFACE = 0x100000
841 S_IXMOD = 0x40000000
842 S_IXOTH = 0x1
843 S_IXUSR = 0x40
844 S_MSG = 0x8
845 S_OUTPUT = 0x4
846 S_RDBAND = 0x20
847 S_RDNORM = 0x10
848 S_RESERVED1 = 0x20000
849 S_RESERVED2 = 0x200000
850 S_RESERVED3 = 0x400000
851 S_RESERVED4 = 0x80000000
852 S_RESFMT1 = 0x10000000
853 S_RESFMT10 = 0x34000000
854 S_RESFMT11 = 0x38000000
855 S_RESFMT12 = 0x3c000000
856 S_RESFMT2 = 0x14000000
857 S_RESFMT3 = 0x18000000
858 S_RESFMT4 = 0x1c000000
859 S_RESFMT5 = 0x20000000
860 S_RESFMT6 = 0x24000000
861 S_RESFMT7 = 0x28000000
862 S_RESFMT8 = 0x2c000000
863 S_WRBAND = 0x80
864 S_WRNORM = 0x40
865 TAB0 = 0x0
866 TAB1 = 0x400
867 TAB2 = 0x800
868 TAB3 = 0xc00
869 TABDLY = 0xc00
870 TCFLSH = 0x540c
871 TCGETA = 0x5405
872 TCGETS = 0x5401
873 TCIFLUSH = 0x0
874 TCIOFF = 0x2
875 TCIOFLUSH = 0x2
876 TCION = 0x3
877 TCOFLUSH = 0x1
878 TCOOFF = 0x0
879 TCOON = 0x1
880 TCP_24DAYS_WORTH_OF_SLOWTICKS = 0x3f4800
881 TCP_ACLADD = 0x23
882 TCP_ACLBIND = 0x26
883 TCP_ACLCLEAR = 0x22
884 TCP_ACLDEL = 0x24
885 TCP_ACLDENY = 0x8
886 TCP_ACLFLUSH = 0x21
887 TCP_ACLGID = 0x1
888 TCP_ACLLS = 0x25
889 TCP_ACLSUBNET = 0x4
890 TCP_ACLUID = 0x2
891 TCP_CWND_DF = 0x16
892 TCP_CWND_IF = 0x15
893 TCP_DELAY_ACK_FIN = 0x2
894 TCP_DELAY_ACK_SYN = 0x1
895 TCP_FASTNAME = 0x101080a
896 TCP_KEEPCNT = 0x13
897 TCP_KEEPIDLE = 0x11
898 TCP_KEEPINTVL = 0x12
899 TCP_LSPRIV = 0x29
900 TCP_LUID = 0x20
901 TCP_MAXBURST = 0x8
902 TCP_MAXDF = 0x64
903 TCP_MAXIF = 0x64
904 TCP_MAXSEG = 0x2
905 TCP_MAXWIN = 0xffff
906 TCP_MAXWINDOWSCALE = 0xe
907 TCP_MAX_SACK = 0x4
908 TCP_MSS = 0x5b4
909 TCP_NODELAY = 0x1
910 TCP_NODELAYACK = 0x14
911 TCP_NOREDUCE_CWND_EXIT_FRXMT = 0x19
912 TCP_NOREDUCE_CWND_IN_FRXMT = 0x18
913 TCP_NOTENTER_SSTART = 0x17
914 TCP_OPT = 0x19
915 TCP_RFC1323 = 0x4
916 TCP_SETPRIV = 0x27
917 TCP_STDURG = 0x10
918 TCP_TIMESTAMP_OPTLEN = 0xc
919 TCP_UNSETPRIV = 0x28
920 TCSAFLUSH = 0x2
921 TCSBRK = 0x5409
922 TCSETA = 0x5406
923 TCSETAF = 0x5408
924 TCSETAW = 0x5407
925 TCSETS = 0x5402
926 TCSETSF = 0x5404
927 TCSETSW = 0x5403
928 TCXONC = 0x540b
929 TIOC = 0x5400
930 TIOCCBRK = 0x2000747a
931 TIOCCDTR = 0x20007478
932 TIOCCONS = 0x80047462
933 TIOCEXCL = 0x2000740d
934 TIOCFLUSH = 0x80047410
935 TIOCGETC = 0x40067412
936 TIOCGETD = 0x40047400
937 TIOCGETP = 0x40067408
938 TIOCGLTC = 0x40067474
939 TIOCGPGRP = 0x40047477
940 TIOCGSID = 0x40047448
941 TIOCGSIZE = 0x40087468
942 TIOCGWINSZ = 0x40087468
943 TIOCHPCL = 0x20007402
944 TIOCLBIC = 0x8004747e
945 TIOCLBIS = 0x8004747f
946 TIOCLGET = 0x4004747c
947 TIOCLSET = 0x8004747d
948 TIOCMBIC = 0x8004746b
949 TIOCMBIS = 0x8004746c
950 TIOCMGET = 0x4004746a
951 TIOCMIWAIT = 0x80047464
952 TIOCMODG = 0x40047403
953 TIOCMODS = 0x80047404
954 TIOCMSET = 0x8004746d
955 TIOCM_CAR = 0x40
956 TIOCM_CD = 0x40
957 TIOCM_CTS = 0x20
958 TIOCM_DSR = 0x100
959 TIOCM_DTR = 0x2
960 TIOCM_LE = 0x1
961 TIOCM_RI = 0x80
962 TIOCM_RNG = 0x80
963 TIOCM_RTS = 0x4
964 TIOCM_SR = 0x10
965 TIOCM_ST = 0x8
966 TIOCNOTTY = 0x20007471
967 TIOCNXCL = 0x2000740e
968 TIOCOUTQ = 0x40047473
969 TIOCPKT = 0x80047470
970 TIOCPKT_DATA = 0x0
971 TIOCPKT_DOSTOP = 0x20
972 TIOCPKT_FLUSHREAD = 0x1
973 TIOCPKT_FLUSHWRITE = 0x2
974 TIOCPKT_NOSTOP = 0x10
975 TIOCPKT_START = 0x8
976 TIOCPKT_STOP = 0x4
977 TIOCREMOTE = 0x80047469
978 TIOCSBRK = 0x2000747b
979 TIOCSDTR = 0x20007479
980 TIOCSETC = 0x80067411
981 TIOCSETD = 0x80047401
982 TIOCSETN = 0x8006740a
983 TIOCSETP = 0x80067409
984 TIOCSLTC = 0x80067475
985 TIOCSPGRP = 0x80047476
986 TIOCSSIZE = 0x80087467
987 TIOCSTART = 0x2000746e
988 TIOCSTI = 0x80017472
989 TIOCSTOP = 0x2000746f
990 TIOCSWINSZ = 0x80087467
991 TIOCUCNTL = 0x80047466
992 TOSTOP = 0x10000
993 UTIME_NOW = -0x2
994 UTIME_OMIT = -0x3
995 VDISCRD = 0xc
996 VDSUSP = 0xa
997 VEOF = 0x4
998 VEOL = 0x5
999 VEOL2 = 0x6
1000 VERASE = 0x2
1001 VINTR = 0x0
1002 VKILL = 0x3
1003 VLNEXT = 0xe
1004 VMIN = 0x4
1005 VQUIT = 0x1
1006 VREPRINT = 0xb
1007 VSTART = 0x7
1008 VSTOP = 0x8
1009 VSTRT = 0x7
1010 VSUSP = 0x9
1011 VT0 = 0x0
1012 VT1 = 0x8000
1013 VTDELAY = 0x2000
1014 VTDLY = 0x8000
1015 VTIME = 0x5
1016 VWERSE = 0xd
1017 WPARSTART = 0x1
1018 WPARSTOP = 0x2
1019 WPARTTYNAME = "Global"
1020 XCASE = 0x4
1021 XTABS = 0xc00
1022 _FDATAFLUSH = 0x2000000000
1023)
1024
1025// Errors
1026const (
1027 E2BIG = syscall.Errno(0x7)
1028 EACCES = syscall.Errno(0xd)
1029 EADDRINUSE = syscall.Errno(0x43)
1030 EADDRNOTAVAIL = syscall.Errno(0x44)
1031 EAFNOSUPPORT = syscall.Errno(0x42)
1032 EAGAIN = syscall.Errno(0xb)
1033 EALREADY = syscall.Errno(0x38)
1034 EBADF = syscall.Errno(0x9)
1035 EBADMSG = syscall.Errno(0x78)
1036 EBUSY = syscall.Errno(0x10)
1037 ECANCELED = syscall.Errno(0x75)
1038 ECHILD = syscall.Errno(0xa)
1039 ECHRNG = syscall.Errno(0x25)
1040 ECLONEME = syscall.Errno(0x52)
1041 ECONNABORTED = syscall.Errno(0x48)
1042 ECONNREFUSED = syscall.Errno(0x4f)
1043 ECONNRESET = syscall.Errno(0x49)
1044 ECORRUPT = syscall.Errno(0x59)
1045 EDEADLK = syscall.Errno(0x2d)
1046 EDESTADDREQ = syscall.Errno(0x3a)
1047 EDESTADDRREQ = syscall.Errno(0x3a)
1048 EDIST = syscall.Errno(0x35)
1049 EDOM = syscall.Errno(0x21)
1050 EDQUOT = syscall.Errno(0x58)
1051 EEXIST = syscall.Errno(0x11)
1052 EFAULT = syscall.Errno(0xe)
1053 EFBIG = syscall.Errno(0x1b)
1054 EFORMAT = syscall.Errno(0x30)
1055 EHOSTDOWN = syscall.Errno(0x50)
1056 EHOSTUNREACH = syscall.Errno(0x51)
1057 EIDRM = syscall.Errno(0x24)
1058 EILSEQ = syscall.Errno(0x74)
1059 EINPROGRESS = syscall.Errno(0x37)
1060 EINTR = syscall.Errno(0x4)
1061 EINVAL = syscall.Errno(0x16)
1062 EIO = syscall.Errno(0x5)
1063 EISCONN = syscall.Errno(0x4b)
1064 EISDIR = syscall.Errno(0x15)
1065 EL2HLT = syscall.Errno(0x2c)
1066 EL2NSYNC = syscall.Errno(0x26)
1067 EL3HLT = syscall.Errno(0x27)
1068 EL3RST = syscall.Errno(0x28)
1069 ELNRNG = syscall.Errno(0x29)
1070 ELOOP = syscall.Errno(0x55)
1071 EMEDIA = syscall.Errno(0x6e)
1072 EMFILE = syscall.Errno(0x18)
1073 EMLINK = syscall.Errno(0x1f)
1074 EMSGSIZE = syscall.Errno(0x3b)
1075 EMULTIHOP = syscall.Errno(0x7d)
1076 ENAMETOOLONG = syscall.Errno(0x56)
1077 ENETDOWN = syscall.Errno(0x45)
1078 ENETRESET = syscall.Errno(0x47)
1079 ENETUNREACH = syscall.Errno(0x46)
1080 ENFILE = syscall.Errno(0x17)
1081 ENOATTR = syscall.Errno(0x70)
1082 ENOBUFS = syscall.Errno(0x4a)
1083 ENOCONNECT = syscall.Errno(0x32)
1084 ENOCSI = syscall.Errno(0x2b)
1085 ENODATA = syscall.Errno(0x7a)
1086 ENODEV = syscall.Errno(0x13)
1087 ENOENT = syscall.Errno(0x2)
1088 ENOEXEC = syscall.Errno(0x8)
1089 ENOLCK = syscall.Errno(0x31)
1090 ENOLINK = syscall.Errno(0x7e)
1091 ENOMEM = syscall.Errno(0xc)
1092 ENOMSG = syscall.Errno(0x23)
1093 ENOPROTOOPT = syscall.Errno(0x3d)
1094 ENOSPC = syscall.Errno(0x1c)
1095 ENOSR = syscall.Errno(0x76)
1096 ENOSTR = syscall.Errno(0x7b)
1097 ENOSYS = syscall.Errno(0x6d)
1098 ENOTBLK = syscall.Errno(0xf)
1099 ENOTCONN = syscall.Errno(0x4c)
1100 ENOTDIR = syscall.Errno(0x14)
1101 ENOTEMPTY = syscall.Errno(0x11)
1102 ENOTREADY = syscall.Errno(0x2e)
1103 ENOTRECOVERABLE = syscall.Errno(0x5e)
1104 ENOTRUST = syscall.Errno(0x72)
1105 ENOTSOCK = syscall.Errno(0x39)
1106 ENOTSUP = syscall.Errno(0x7c)
1107 ENOTTY = syscall.Errno(0x19)
1108 ENXIO = syscall.Errno(0x6)
1109 EOPNOTSUPP = syscall.Errno(0x40)
1110 EOVERFLOW = syscall.Errno(0x7f)
1111 EOWNERDEAD = syscall.Errno(0x5f)
1112 EPERM = syscall.Errno(0x1)
1113 EPFNOSUPPORT = syscall.Errno(0x41)
1114 EPIPE = syscall.Errno(0x20)
1115 EPROCLIM = syscall.Errno(0x53)
1116 EPROTO = syscall.Errno(0x79)
1117 EPROTONOSUPPORT = syscall.Errno(0x3e)
1118 EPROTOTYPE = syscall.Errno(0x3c)
1119 ERANGE = syscall.Errno(0x22)
1120 EREMOTE = syscall.Errno(0x5d)
1121 ERESTART = syscall.Errno(0x52)
1122 EROFS = syscall.Errno(0x1e)
1123 ESAD = syscall.Errno(0x71)
1124 ESHUTDOWN = syscall.Errno(0x4d)
1125 ESOCKTNOSUPPORT = syscall.Errno(0x3f)
1126 ESOFT = syscall.Errno(0x6f)
1127 ESPIPE = syscall.Errno(0x1d)
1128 ESRCH = syscall.Errno(0x3)
1129 ESTALE = syscall.Errno(0x34)
1130 ESYSERROR = syscall.Errno(0x5a)
1131 ETIME = syscall.Errno(0x77)
1132 ETIMEDOUT = syscall.Errno(0x4e)
1133 ETOOMANYREFS = syscall.Errno(0x73)
1134 ETXTBSY = syscall.Errno(0x1a)
1135 EUNATCH = syscall.Errno(0x2a)
1136 EUSERS = syscall.Errno(0x54)
1137 EWOULDBLOCK = syscall.Errno(0xb)
1138 EWRPROTECT = syscall.Errno(0x2f)
1139 EXDEV = syscall.Errno(0x12)
1140)
1141
1142// Signals
1143const (
1144 SIGABRT = syscall.Signal(0x6)
1145 SIGAIO = syscall.Signal(0x17)
1146 SIGALRM = syscall.Signal(0xe)
1147 SIGALRM1 = syscall.Signal(0x26)
1148 SIGBUS = syscall.Signal(0xa)
1149 SIGCAPI = syscall.Signal(0x31)
1150 SIGCHLD = syscall.Signal(0x14)
1151 SIGCLD = syscall.Signal(0x14)
1152 SIGCONT = syscall.Signal(0x13)
1153 SIGCPUFAIL = syscall.Signal(0x3b)
1154 SIGDANGER = syscall.Signal(0x21)
1155 SIGEMT = syscall.Signal(0x7)
1156 SIGFPE = syscall.Signal(0x8)
1157 SIGGRANT = syscall.Signal(0x3c)
1158 SIGHUP = syscall.Signal(0x1)
1159 SIGILL = syscall.Signal(0x4)
1160 SIGINT = syscall.Signal(0x2)
1161 SIGIO = syscall.Signal(0x17)
1162 SIGIOINT = syscall.Signal(0x10)
1163 SIGIOT = syscall.Signal(0x6)
1164 SIGKAP = syscall.Signal(0x3c)
1165 SIGKILL = syscall.Signal(0x9)
1166 SIGLOST = syscall.Signal(0x6)
1167 SIGMAX = syscall.Signal(0x3f)
1168 SIGMAX32 = syscall.Signal(0x3f)
1169 SIGMIGRATE = syscall.Signal(0x23)
1170 SIGMSG = syscall.Signal(0x1b)
1171 SIGPIPE = syscall.Signal(0xd)
1172 SIGPOLL = syscall.Signal(0x17)
1173 SIGPRE = syscall.Signal(0x24)
1174 SIGPROF = syscall.Signal(0x20)
1175 SIGPTY = syscall.Signal(0x17)
1176 SIGPWR = syscall.Signal(0x1d)
1177 SIGQUIT = syscall.Signal(0x3)
1178 SIGRECONFIG = syscall.Signal(0x3a)
1179 SIGRETRACT = syscall.Signal(0x3d)
1180 SIGSAK = syscall.Signal(0x3f)
1181 SIGSEGV = syscall.Signal(0xb)
1182 SIGSOUND = syscall.Signal(0x3e)
1183 SIGSTOP = syscall.Signal(0x11)
1184 SIGSYS = syscall.Signal(0xc)
1185 SIGSYSERROR = syscall.Signal(0x30)
1186 SIGTALRM = syscall.Signal(0x26)
1187 SIGTERM = syscall.Signal(0xf)
1188 SIGTRAP = syscall.Signal(0x5)
1189 SIGTSTP = syscall.Signal(0x12)
1190 SIGTTIN = syscall.Signal(0x15)
1191 SIGTTOU = syscall.Signal(0x16)
1192 SIGURG = syscall.Signal(0x10)
1193 SIGUSR1 = syscall.Signal(0x1e)
1194 SIGUSR2 = syscall.Signal(0x1f)
1195 SIGVIRT = syscall.Signal(0x25)
1196 SIGVTALRM = syscall.Signal(0x22)
1197 SIGWAITING = syscall.Signal(0x27)
1198 SIGWINCH = syscall.Signal(0x1c)
1199 SIGXCPU = syscall.Signal(0x18)
1200 SIGXFSZ = syscall.Signal(0x19)
1201)
1202
1203// Error table
1204var errorList = [...]struct {
1205 num syscall.Errno
1206 name string
1207 desc string
1208}{
1209 {1, "EPERM", "not owner"},
1210 {2, "ENOENT", "no such file or directory"},
1211 {3, "ESRCH", "no such process"},
1212 {4, "EINTR", "interrupted system call"},
1213 {5, "EIO", "I/O error"},
1214 {6, "ENXIO", "no such device or address"},
1215 {7, "E2BIG", "arg list too long"},
1216 {8, "ENOEXEC", "exec format error"},
1217 {9, "EBADF", "bad file number"},
1218 {10, "ECHILD", "no child processes"},
1219 {11, "EWOULDBLOCK", "resource temporarily unavailable"},
1220 {12, "ENOMEM", "not enough space"},
1221 {13, "EACCES", "permission denied"},
1222 {14, "EFAULT", "bad address"},
1223 {15, "ENOTBLK", "block device required"},
1224 {16, "EBUSY", "device busy"},
1225 {17, "ENOTEMPTY", "file exists"},
1226 {18, "EXDEV", "cross-device link"},
1227 {19, "ENODEV", "no such device"},
1228 {20, "ENOTDIR", "not a directory"},
1229 {21, "EISDIR", "is a directory"},
1230 {22, "EINVAL", "invalid argument"},
1231 {23, "ENFILE", "file table overflow"},
1232 {24, "EMFILE", "too many open files"},
1233 {25, "ENOTTY", "not a typewriter"},
1234 {26, "ETXTBSY", "text file busy"},
1235 {27, "EFBIG", "file too large"},
1236 {28, "ENOSPC", "no space left on device"},
1237 {29, "ESPIPE", "illegal seek"},
1238 {30, "EROFS", "read-only file system"},
1239 {31, "EMLINK", "too many links"},
1240 {32, "EPIPE", "broken pipe"},
1241 {33, "EDOM", "argument out of domain"},
1242 {34, "ERANGE", "result too large"},
1243 {35, "ENOMSG", "no message of desired type"},
1244 {36, "EIDRM", "identifier removed"},
1245 {37, "ECHRNG", "channel number out of range"},
1246 {38, "EL2NSYNC", "level 2 not synchronized"},
1247 {39, "EL3HLT", "level 3 halted"},
1248 {40, "EL3RST", "level 3 reset"},
1249 {41, "ELNRNG", "link number out of range"},
1250 {42, "EUNATCH", "protocol driver not attached"},
1251 {43, "ENOCSI", "no CSI structure available"},
1252 {44, "EL2HLT", "level 2 halted"},
1253 {45, "EDEADLK", "deadlock condition if locked"},
1254 {46, "ENOTREADY", "device not ready"},
1255 {47, "EWRPROTECT", "write-protected media"},
1256 {48, "EFORMAT", "unformatted or incompatible media"},
1257 {49, "ENOLCK", "no locks available"},
1258 {50, "ENOCONNECT", "cannot Establish Connection"},
1259 {52, "ESTALE", "missing file or filesystem"},
1260 {53, "EDIST", "requests blocked by Administrator"},
1261 {55, "EINPROGRESS", "operation now in progress"},
1262 {56, "EALREADY", "operation already in progress"},
1263 {57, "ENOTSOCK", "socket operation on non-socket"},
1264 {58, "EDESTADDREQ", "destination address required"},
1265 {59, "EMSGSIZE", "message too long"},
1266 {60, "EPROTOTYPE", "protocol wrong type for socket"},
1267 {61, "ENOPROTOOPT", "protocol not available"},
1268 {62, "EPROTONOSUPPORT", "protocol not supported"},
1269 {63, "ESOCKTNOSUPPORT", "socket type not supported"},
1270 {64, "EOPNOTSUPP", "operation not supported on socket"},
1271 {65, "EPFNOSUPPORT", "protocol family not supported"},
1272 {66, "EAFNOSUPPORT", "addr family not supported by protocol"},
1273 {67, "EADDRINUSE", "address already in use"},
1274 {68, "EADDRNOTAVAIL", "can't assign requested address"},
1275 {69, "ENETDOWN", "network is down"},
1276 {70, "ENETUNREACH", "network is unreachable"},
1277 {71, "ENETRESET", "network dropped connection on reset"},
1278 {72, "ECONNABORTED", "software caused connection abort"},
1279 {73, "ECONNRESET", "connection reset by peer"},
1280 {74, "ENOBUFS", "no buffer space available"},
1281 {75, "EISCONN", "socket is already connected"},
1282 {76, "ENOTCONN", "socket is not connected"},
1283 {77, "ESHUTDOWN", "can't send after socket shutdown"},
1284 {78, "ETIMEDOUT", "connection timed out"},
1285 {79, "ECONNREFUSED", "connection refused"},
1286 {80, "EHOSTDOWN", "host is down"},
1287 {81, "EHOSTUNREACH", "no route to host"},
1288 {82, "ERESTART", "restart the system call"},
1289 {83, "EPROCLIM", "too many processes"},
1290 {84, "EUSERS", "too many users"},
1291 {85, "ELOOP", "too many levels of symbolic links"},
1292 {86, "ENAMETOOLONG", "file name too long"},
1293 {88, "EDQUOT", "disk quota exceeded"},
1294 {89, "ECORRUPT", "invalid file system control data detected"},
1295 {90, "ESYSERROR", "for future use "},
1296 {93, "EREMOTE", "item is not local to host"},
1297 {94, "ENOTRECOVERABLE", "state not recoverable "},
1298 {95, "EOWNERDEAD", "previous owner died "},
1299 {109, "ENOSYS", "function not implemented"},
1300 {110, "EMEDIA", "media surface error"},
1301 {111, "ESOFT", "I/O completed, but needs relocation"},
1302 {112, "ENOATTR", "no attribute found"},
1303 {113, "ESAD", "security Authentication Denied"},
1304 {114, "ENOTRUST", "not a Trusted Program"},
1305 {115, "ETOOMANYREFS", "too many references: can't splice"},
1306 {116, "EILSEQ", "invalid wide character"},
1307 {117, "ECANCELED", "asynchronous I/O cancelled"},
1308 {118, "ENOSR", "out of STREAMS resources"},
1309 {119, "ETIME", "system call timed out"},
1310 {120, "EBADMSG", "next message has wrong type"},
1311 {121, "EPROTO", "error in protocol"},
1312 {122, "ENODATA", "no message on stream head read q"},
1313 {123, "ENOSTR", "fd not associated with a stream"},
1314 {124, "ENOTSUP", "unsupported attribute value"},
1315 {125, "EMULTIHOP", "multihop is not allowed"},
1316 {126, "ENOLINK", "the server link has been severed"},
1317 {127, "EOVERFLOW", "value too large to be stored in data type"},
1318}
1319
1320// Signal table
1321var signalList = [...]struct {
1322 num syscall.Signal
1323 name string
1324 desc string
1325}{
1326 {1, "SIGHUP", "hangup"},
1327 {2, "SIGINT", "interrupt"},
1328 {3, "SIGQUIT", "quit"},
1329 {4, "SIGILL", "illegal instruction"},
1330 {5, "SIGTRAP", "trace/BPT trap"},
1331 {6, "SIGIOT", "IOT/Abort trap"},
1332 {7, "SIGEMT", "EMT trap"},
1333 {8, "SIGFPE", "floating point exception"},
1334 {9, "SIGKILL", "killed"},
1335 {10, "SIGBUS", "bus error"},
1336 {11, "SIGSEGV", "segmentation fault"},
1337 {12, "SIGSYS", "bad system call"},
1338 {13, "SIGPIPE", "broken pipe"},
1339 {14, "SIGALRM", "alarm clock"},
1340 {15, "SIGTERM", "terminated"},
1341 {16, "SIGURG", "urgent I/O condition"},
1342 {17, "SIGSTOP", "stopped (signal)"},
1343 {18, "SIGTSTP", "stopped"},
1344 {19, "SIGCONT", "continued"},
1345 {20, "SIGCHLD", "child exited"},
1346 {21, "SIGTTIN", "stopped (tty input)"},
1347 {22, "SIGTTOU", "stopped (tty output)"},
1348 {23, "SIGIO", "I/O possible/complete"},
1349 {24, "SIGXCPU", "cputime limit exceeded"},
1350 {25, "SIGXFSZ", "filesize limit exceeded"},
1351 {27, "SIGMSG", "input device data"},
1352 {28, "SIGWINCH", "window size changes"},
1353 {29, "SIGPWR", "power-failure"},
1354 {30, "SIGUSR1", "user defined signal 1"},
1355 {31, "SIGUSR2", "user defined signal 2"},
1356 {32, "SIGPROF", "profiling timer expired"},
1357 {33, "SIGDANGER", "paging space low"},
1358 {34, "SIGVTALRM", "virtual timer expired"},
1359 {35, "SIGMIGRATE", "signal 35"},
1360 {36, "SIGPRE", "signal 36"},
1361 {37, "SIGVIRT", "signal 37"},
1362 {38, "SIGTALRM", "signal 38"},
1363 {39, "SIGWAITING", "signal 39"},
1364 {48, "SIGSYSERROR", "signal 48"},
1365 {49, "SIGCAPI", "signal 49"},
1366 {58, "SIGRECONFIG", "signal 58"},
1367 {59, "SIGCPUFAIL", "CPU Failure Predicted"},
1368 {60, "SIGKAP", "monitor mode granted"},
1369 {61, "SIGRETRACT", "monitor mode retracted"},
1370 {62, "SIGSOUND", "sound completed"},
1371 {63, "SIGSAK", "secure attention"},
1372}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
new file mode 100644
index 0000000..ed04fd1
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
@@ -0,0 +1,1373 @@
1// mkerrors.sh -maix64
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build ppc64,aix
5
6// Created by cgo -godefs - DO NOT EDIT
7// cgo -godefs -- -maix64 _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AF_APPLETALK = 0x10
15 AF_BYPASS = 0x19
16 AF_CCITT = 0xa
17 AF_CHAOS = 0x5
18 AF_DATAKIT = 0x9
19 AF_DECnet = 0xc
20 AF_DLI = 0xd
21 AF_ECMA = 0x8
22 AF_HYLINK = 0xf
23 AF_IMPLINK = 0x3
24 AF_INET = 0x2
25 AF_INET6 = 0x18
26 AF_INTF = 0x14
27 AF_ISO = 0x7
28 AF_LAT = 0xe
29 AF_LINK = 0x12
30 AF_LOCAL = 0x1
31 AF_MAX = 0x1e
32 AF_NDD = 0x17
33 AF_NETWARE = 0x16
34 AF_NS = 0x6
35 AF_OSI = 0x7
36 AF_PUP = 0x4
37 AF_RIF = 0x15
38 AF_ROUTE = 0x11
39 AF_SNA = 0xb
40 AF_UNIX = 0x1
41 AF_UNSPEC = 0x0
42 ALTWERASE = 0x400000
43 ARPHRD_802_3 = 0x6
44 ARPHRD_802_5 = 0x6
45 ARPHRD_ETHER = 0x1
46 ARPHRD_FDDI = 0x1
47 B0 = 0x0
48 B110 = 0x3
49 B1200 = 0x9
50 B134 = 0x4
51 B150 = 0x5
52 B1800 = 0xa
53 B19200 = 0xe
54 B200 = 0x6
55 B2400 = 0xb
56 B300 = 0x7
57 B38400 = 0xf
58 B4800 = 0xc
59 B50 = 0x1
60 B600 = 0x8
61 B75 = 0x2
62 B9600 = 0xd
63 BRKINT = 0x2
64 BS0 = 0x0
65 BS1 = 0x1000
66 BSDLY = 0x1000
67 CAP_AACCT = 0x6
68 CAP_ARM_APPLICATION = 0x5
69 CAP_BYPASS_RAC_VMM = 0x3
70 CAP_CLEAR = 0x0
71 CAP_CREDENTIALS = 0x7
72 CAP_EFFECTIVE = 0x1
73 CAP_EWLM_AGENT = 0x4
74 CAP_INHERITABLE = 0x2
75 CAP_MAXIMUM = 0x7
76 CAP_NUMA_ATTACH = 0x2
77 CAP_PERMITTED = 0x3
78 CAP_PROPAGATE = 0x1
79 CAP_PROPOGATE = 0x1
80 CAP_SET = 0x1
81 CBAUD = 0xf
82 CFLUSH = 0xf
83 CIBAUD = 0xf0000
84 CLOCAL = 0x800
85 CLOCK_MONOTONIC = 0xa
86 CLOCK_PROCESS_CPUTIME_ID = 0xb
87 CLOCK_REALTIME = 0x9
88 CLOCK_THREAD_CPUTIME_ID = 0xc
89 CR0 = 0x0
90 CR1 = 0x100
91 CR2 = 0x200
92 CR3 = 0x300
93 CRDLY = 0x300
94 CREAD = 0x80
95 CS5 = 0x0
96 CS6 = 0x10
97 CS7 = 0x20
98 CS8 = 0x30
99 CSIOCGIFCONF = -0x3fef96dc
100 CSIZE = 0x30
101 CSMAP_DIR = "/usr/lib/nls/csmap/"
102 CSTART = '\021'
103 CSTOP = '\023'
104 CSTOPB = 0x40
105 CSUSP = 0x1a
106 ECHO = 0x8
107 ECHOCTL = 0x20000
108 ECHOE = 0x10
109 ECHOK = 0x20
110 ECHOKE = 0x80000
111 ECHONL = 0x40
112 ECHOPRT = 0x40000
113 ECH_ICMPID = 0x2
114 ETHERNET_CSMACD = 0x6
115 EVENP = 0x80
116 EXCONTINUE = 0x0
117 EXDLOK = 0x3
118 EXIO = 0x2
119 EXPGIO = 0x0
120 EXRESUME = 0x2
121 EXRETURN = 0x1
122 EXSIG = 0x4
123 EXTA = 0xe
124 EXTB = 0xf
125 EXTRAP = 0x1
126 EYEC_RTENTRYA = 0x257274656e747241
127 EYEC_RTENTRYF = 0x257274656e747246
128 E_ACC = 0x0
129 FD_CLOEXEC = 0x1
130 FD_SETSIZE = 0xfffe
131 FF0 = 0x0
132 FF1 = 0x2000
133 FFDLY = 0x2000
134 FLUSHBAND = 0x40
135 FLUSHLOW = 0x8
136 FLUSHO = 0x100000
137 FLUSHR = 0x1
138 FLUSHRW = 0x3
139 FLUSHW = 0x2
140 F_CLOSEM = 0xa
141 F_DUP2FD = 0xe
142 F_DUPFD = 0x0
143 F_GETFD = 0x1
144 F_GETFL = 0x3
145 F_GETLK = 0xb
146 F_GETLK64 = 0xb
147 F_GETOWN = 0x8
148 F_LOCK = 0x1
149 F_OK = 0x0
150 F_RDLCK = 0x1
151 F_SETFD = 0x2
152 F_SETFL = 0x4
153 F_SETLK = 0xc
154 F_SETLK64 = 0xc
155 F_SETLKW = 0xd
156 F_SETLKW64 = 0xd
157 F_SETOWN = 0x9
158 F_TEST = 0x3
159 F_TLOCK = 0x2
160 F_TSTLK = 0xf
161 F_ULOCK = 0x0
162 F_UNLCK = 0x3
163 F_WRLCK = 0x2
164 HUPCL = 0x400
165 IBSHIFT = 0x10
166 ICANON = 0x2
167 ICMP6_FILTER = 0x26
168 ICMP6_SEC_SEND_DEL = 0x46
169 ICMP6_SEC_SEND_GET = 0x47
170 ICMP6_SEC_SEND_SET = 0x44
171 ICMP6_SEC_SEND_SET_CGA_ADDR = 0x45
172 ICRNL = 0x100
173 IEXTEN = 0x200000
174 IFA_FIRSTALIAS = 0x2000
175 IFA_ROUTE = 0x1
176 IFF_64BIT = 0x4000000
177 IFF_ALLCAST = 0x20000
178 IFF_ALLMULTI = 0x200
179 IFF_BPF = 0x8000000
180 IFF_BRIDGE = 0x40000
181 IFF_BROADCAST = 0x2
182 IFF_CANTCHANGE = 0x80c52
183 IFF_CHECKSUM_OFFLOAD = 0x10000000
184 IFF_D1 = 0x8000
185 IFF_D2 = 0x4000
186 IFF_D3 = 0x2000
187 IFF_D4 = 0x1000
188 IFF_DEBUG = 0x4
189 IFF_DEVHEALTH = 0x4000
190 IFF_DO_HW_LOOPBACK = 0x10000
191 IFF_GROUP_ROUTING = 0x2000000
192 IFF_IFBUFMGT = 0x800000
193 IFF_LINK0 = 0x100000
194 IFF_LINK1 = 0x200000
195 IFF_LINK2 = 0x400000
196 IFF_LOOPBACK = 0x8
197 IFF_MULTICAST = 0x80000
198 IFF_NOARP = 0x80
199 IFF_NOECHO = 0x800
200 IFF_NOTRAILERS = 0x20
201 IFF_OACTIVE = 0x400
202 IFF_POINTOPOINT = 0x10
203 IFF_PROMISC = 0x100
204 IFF_PSEG = 0x40000000
205 IFF_RUNNING = 0x40
206 IFF_SIMPLEX = 0x800
207 IFF_SNAP = 0x8000
208 IFF_TCP_DISABLE_CKSUM = 0x20000000
209 IFF_TCP_NOCKSUM = 0x1000000
210 IFF_UP = 0x1
211 IFF_VIPA = 0x80000000
212 IFNAMSIZ = 0x10
213 IFO_FLUSH = 0x1
214 IFT_1822 = 0x2
215 IFT_AAL5 = 0x31
216 IFT_ARCNET = 0x23
217 IFT_ARCNETPLUS = 0x24
218 IFT_ATM = 0x25
219 IFT_CEPT = 0x13
220 IFT_CLUSTER = 0x3e
221 IFT_DS3 = 0x1e
222 IFT_EON = 0x19
223 IFT_ETHER = 0x6
224 IFT_FCS = 0x3a
225 IFT_FDDI = 0xf
226 IFT_FRELAY = 0x20
227 IFT_FRELAYDCE = 0x2c
228 IFT_GIFTUNNEL = 0x3c
229 IFT_HDH1822 = 0x3
230 IFT_HF = 0x3d
231 IFT_HIPPI = 0x2f
232 IFT_HSSI = 0x2e
233 IFT_HY = 0xe
234 IFT_IB = 0xc7
235 IFT_ISDNBASIC = 0x14
236 IFT_ISDNPRIMARY = 0x15
237 IFT_ISO88022LLC = 0x29
238 IFT_ISO88023 = 0x7
239 IFT_ISO88024 = 0x8
240 IFT_ISO88025 = 0x9
241 IFT_ISO88026 = 0xa
242 IFT_LAPB = 0x10
243 IFT_LOCALTALK = 0x2a
244 IFT_LOOP = 0x18
245 IFT_MIOX25 = 0x26
246 IFT_MODEM = 0x30
247 IFT_NSIP = 0x1b
248 IFT_OTHER = 0x1
249 IFT_P10 = 0xc
250 IFT_P80 = 0xd
251 IFT_PARA = 0x22
252 IFT_PPP = 0x17
253 IFT_PROPMUX = 0x36
254 IFT_PROPVIRTUAL = 0x35
255 IFT_PTPSERIAL = 0x16
256 IFT_RS232 = 0x21
257 IFT_SDLC = 0x11
258 IFT_SIP = 0x1f
259 IFT_SLIP = 0x1c
260 IFT_SMDSDXI = 0x2b
261 IFT_SMDSICIP = 0x34
262 IFT_SN = 0x38
263 IFT_SONET = 0x27
264 IFT_SONETPATH = 0x32
265 IFT_SONETVT = 0x33
266 IFT_SP = 0x39
267 IFT_STARLAN = 0xb
268 IFT_T1 = 0x12
269 IFT_TUNNEL = 0x3b
270 IFT_ULTRA = 0x1d
271 IFT_V35 = 0x2d
272 IFT_VIPA = 0x37
273 IFT_X25 = 0x5
274 IFT_X25DDN = 0x4
275 IFT_X25PLE = 0x28
276 IFT_XETHER = 0x1a
277 IGNBRK = 0x1
278 IGNCR = 0x80
279 IGNPAR = 0x4
280 IMAXBEL = 0x10000
281 INLCR = 0x40
282 INPCK = 0x10
283 IN_CLASSA_HOST = 0xffffff
284 IN_CLASSA_MAX = 0x80
285 IN_CLASSA_NET = 0xff000000
286 IN_CLASSA_NSHIFT = 0x18
287 IN_CLASSB_HOST = 0xffff
288 IN_CLASSB_MAX = 0x10000
289 IN_CLASSB_NET = 0xffff0000
290 IN_CLASSB_NSHIFT = 0x10
291 IN_CLASSC_HOST = 0xff
292 IN_CLASSC_NET = 0xffffff00
293 IN_CLASSC_NSHIFT = 0x8
294 IN_CLASSD_HOST = 0xfffffff
295 IN_CLASSD_NET = 0xf0000000
296 IN_CLASSD_NSHIFT = 0x1c
297 IN_LOOPBACKNET = 0x7f
298 IN_USE = 0x1
299 IPPROTO_AH = 0x33
300 IPPROTO_BIP = 0x53
301 IPPROTO_DSTOPTS = 0x3c
302 IPPROTO_EGP = 0x8
303 IPPROTO_EON = 0x50
304 IPPROTO_ESP = 0x32
305 IPPROTO_FRAGMENT = 0x2c
306 IPPROTO_GGP = 0x3
307 IPPROTO_GIF = 0x8c
308 IPPROTO_GRE = 0x2f
309 IPPROTO_HOPOPTS = 0x0
310 IPPROTO_ICMP = 0x1
311 IPPROTO_ICMPV6 = 0x3a
312 IPPROTO_IDP = 0x16
313 IPPROTO_IGMP = 0x2
314 IPPROTO_IP = 0x0
315 IPPROTO_IPIP = 0x4
316 IPPROTO_IPV6 = 0x29
317 IPPROTO_LOCAL = 0x3f
318 IPPROTO_MAX = 0x100
319 IPPROTO_MH = 0x87
320 IPPROTO_NONE = 0x3b
321 IPPROTO_PUP = 0xc
322 IPPROTO_QOS = 0x2d
323 IPPROTO_RAW = 0xff
324 IPPROTO_ROUTING = 0x2b
325 IPPROTO_RSVP = 0x2e
326 IPPROTO_SCTP = 0x84
327 IPPROTO_TCP = 0x6
328 IPPROTO_TP = 0x1d
329 IPPROTO_UDP = 0x11
330 IPV6_ADDRFORM = 0x16
331 IPV6_ADDR_PREFERENCES = 0x4a
332 IPV6_ADD_MEMBERSHIP = 0xc
333 IPV6_AIXRAWSOCKET = 0x39
334 IPV6_CHECKSUM = 0x27
335 IPV6_DONTFRAG = 0x2d
336 IPV6_DROP_MEMBERSHIP = 0xd
337 IPV6_DSTOPTS = 0x36
338 IPV6_FLOWINFO_FLOWLABEL = 0xffffff
339 IPV6_FLOWINFO_PRIFLOW = 0xfffffff
340 IPV6_FLOWINFO_PRIORITY = 0xf000000
341 IPV6_FLOWINFO_SRFLAG = 0x10000000
342 IPV6_FLOWINFO_VERSION = 0xf0000000
343 IPV6_HOPLIMIT = 0x28
344 IPV6_HOPOPTS = 0x34
345 IPV6_JOIN_GROUP = 0xc
346 IPV6_LEAVE_GROUP = 0xd
347 IPV6_MIPDSTOPTS = 0x36
348 IPV6_MULTICAST_HOPS = 0xa
349 IPV6_MULTICAST_IF = 0x9
350 IPV6_MULTICAST_LOOP = 0xb
351 IPV6_NEXTHOP = 0x30
352 IPV6_NOPROBE = 0x1c
353 IPV6_PATHMTU = 0x2e
354 IPV6_PKTINFO = 0x21
355 IPV6_PKTOPTIONS = 0x24
356 IPV6_PRIORITY_10 = 0xa000000
357 IPV6_PRIORITY_11 = 0xb000000
358 IPV6_PRIORITY_12 = 0xc000000
359 IPV6_PRIORITY_13 = 0xd000000
360 IPV6_PRIORITY_14 = 0xe000000
361 IPV6_PRIORITY_15 = 0xf000000
362 IPV6_PRIORITY_8 = 0x8000000
363 IPV6_PRIORITY_9 = 0x9000000
364 IPV6_PRIORITY_BULK = 0x4000000
365 IPV6_PRIORITY_CONTROL = 0x7000000
366 IPV6_PRIORITY_FILLER = 0x1000000
367 IPV6_PRIORITY_INTERACTIVE = 0x6000000
368 IPV6_PRIORITY_RESERVED1 = 0x3000000
369 IPV6_PRIORITY_RESERVED2 = 0x5000000
370 IPV6_PRIORITY_UNATTENDED = 0x2000000
371 IPV6_PRIORITY_UNCHARACTERIZED = 0x0
372 IPV6_RECVDSTOPTS = 0x38
373 IPV6_RECVHOPLIMIT = 0x29
374 IPV6_RECVHOPOPTS = 0x35
375 IPV6_RECVHOPS = 0x22
376 IPV6_RECVIF = 0x1e
377 IPV6_RECVPATHMTU = 0x2f
378 IPV6_RECVPKTINFO = 0x23
379 IPV6_RECVRTHDR = 0x33
380 IPV6_RECVSRCRT = 0x1d
381 IPV6_RECVTCLASS = 0x2a
382 IPV6_RTHDR = 0x32
383 IPV6_RTHDRDSTOPTS = 0x37
384 IPV6_RTHDR_TYPE_0 = 0x0
385 IPV6_RTHDR_TYPE_2 = 0x2
386 IPV6_SENDIF = 0x1f
387 IPV6_SRFLAG_LOOSE = 0x0
388 IPV6_SRFLAG_STRICT = 0x10000000
389 IPV6_TCLASS = 0x2b
390 IPV6_TOKEN_LENGTH = 0x40
391 IPV6_UNICAST_HOPS = 0x4
392 IPV6_USE_MIN_MTU = 0x2c
393 IPV6_V6ONLY = 0x25
394 IPV6_VERSION = 0x60000000
395 IP_ADDRFORM = 0x16
396 IP_ADD_MEMBERSHIP = 0xc
397 IP_ADD_SOURCE_MEMBERSHIP = 0x3c
398 IP_BLOCK_SOURCE = 0x3a
399 IP_BROADCAST_IF = 0x10
400 IP_CACHE_LINE_SIZE = 0x80
401 IP_DEFAULT_MULTICAST_LOOP = 0x1
402 IP_DEFAULT_MULTICAST_TTL = 0x1
403 IP_DF = 0x4000
404 IP_DHCPMODE = 0x11
405 IP_DONTFRAG = 0x19
406 IP_DROP_MEMBERSHIP = 0xd
407 IP_DROP_SOURCE_MEMBERSHIP = 0x3d
408 IP_FINDPMTU = 0x1a
409 IP_HDRINCL = 0x2
410 IP_INC_MEMBERSHIPS = 0x14
411 IP_INIT_MEMBERSHIP = 0x14
412 IP_MAXPACKET = 0xffff
413 IP_MF = 0x2000
414 IP_MSS = 0x240
415 IP_MULTICAST_HOPS = 0xa
416 IP_MULTICAST_IF = 0x9
417 IP_MULTICAST_LOOP = 0xb
418 IP_MULTICAST_TTL = 0xa
419 IP_OPT = 0x1b
420 IP_OPTIONS = 0x1
421 IP_PMTUAGE = 0x1b
422 IP_RECVDSTADDR = 0x7
423 IP_RECVIF = 0x14
424 IP_RECVIFINFO = 0xf
425 IP_RECVINTERFACE = 0x20
426 IP_RECVMACHDR = 0xe
427 IP_RECVOPTS = 0x5
428 IP_RECVRETOPTS = 0x6
429 IP_RECVTTL = 0x22
430 IP_RETOPTS = 0x8
431 IP_SOURCE_FILTER = 0x48
432 IP_TOS = 0x3
433 IP_TTL = 0x4
434 IP_UNBLOCK_SOURCE = 0x3b
435 IP_UNICAST_HOPS = 0x4
436 ISIG = 0x1
437 ISTRIP = 0x20
438 IUCLC = 0x800
439 IXANY = 0x1000
440 IXOFF = 0x400
441 IXON = 0x200
442 I_FLUSH = 0x20005305
443 LNOFLSH = 0x8000
444 LOCK_EX = 0x2
445 LOCK_NB = 0x4
446 LOCK_SH = 0x1
447 LOCK_UN = 0x8
448 MADV_DONTNEED = 0x4
449 MADV_NORMAL = 0x0
450 MADV_RANDOM = 0x1
451 MADV_SEQUENTIAL = 0x2
452 MADV_SPACEAVAIL = 0x5
453 MADV_WILLNEED = 0x3
454 MAP_ANON = 0x10
455 MAP_ANONYMOUS = 0x10
456 MAP_FILE = 0x0
457 MAP_FIXED = 0x100
458 MAP_PRIVATE = 0x2
459 MAP_SHARED = 0x1
460 MAP_TYPE = 0xf0
461 MAP_VARIABLE = 0x0
462 MCL_CURRENT = 0x100
463 MCL_FUTURE = 0x200
464 MSG_ANY = 0x4
465 MSG_ARGEXT = 0x400
466 MSG_BAND = 0x2
467 MSG_COMPAT = 0x8000
468 MSG_CTRUNC = 0x20
469 MSG_DONTROUTE = 0x4
470 MSG_EOR = 0x8
471 MSG_HIPRI = 0x1
472 MSG_MAXIOVLEN = 0x10
473 MSG_MPEG2 = 0x80
474 MSG_NONBLOCK = 0x4000
475 MSG_NOSIGNAL = 0x100
476 MSG_OOB = 0x1
477 MSG_PEEK = 0x2
478 MSG_TRUNC = 0x10
479 MSG_WAITALL = 0x40
480 MSG_WAITFORONE = 0x200
481 MS_ASYNC = 0x10
482 MS_EINTR = 0x80
483 MS_INVALIDATE = 0x40
484 MS_PER_SEC = 0x3e8
485 MS_SYNC = 0x20
486 NL0 = 0x0
487 NL1 = 0x4000
488 NL2 = 0x8000
489 NL3 = 0xc000
490 NLDLY = 0x4000
491 NOFLSH = 0x80
492 NOFLUSH = 0x80000000
493 OCRNL = 0x8
494 OFDEL = 0x80
495 OFILL = 0x40
496 OLCUC = 0x2
497 ONLCR = 0x4
498 ONLRET = 0x20
499 ONOCR = 0x10
500 ONOEOT = 0x80000
501 OPOST = 0x1
502 OXTABS = 0x40000
503 O_ACCMODE = 0x23
504 O_APPEND = 0x8
505 O_CIO = 0x80
506 O_CIOR = 0x800000000
507 O_CLOEXEC = 0x800000
508 O_CREAT = 0x100
509 O_DEFER = 0x2000
510 O_DELAY = 0x4000
511 O_DIRECT = 0x8000000
512 O_DIRECTORY = 0x80000
513 O_DSYNC = 0x400000
514 O_EFSOFF = 0x400000000
515 O_EFSON = 0x200000000
516 O_EXCL = 0x400
517 O_EXEC = 0x20
518 O_LARGEFILE = 0x4000000
519 O_NDELAY = 0x8000
520 O_NOCACHE = 0x100000
521 O_NOCTTY = 0x800
522 O_NOFOLLOW = 0x1000000
523 O_NONBLOCK = 0x4
524 O_NONE = 0x3
525 O_NSHARE = 0x10000
526 O_RAW = 0x100000000
527 O_RDONLY = 0x0
528 O_RDWR = 0x2
529 O_RSHARE = 0x1000
530 O_RSYNC = 0x200000
531 O_SEARCH = 0x20
532 O_SNAPSHOT = 0x40
533 O_SYNC = 0x10
534 O_TRUNC = 0x200
535 O_TTY_INIT = 0x0
536 O_WRONLY = 0x1
537 PARENB = 0x100
538 PAREXT = 0x100000
539 PARMRK = 0x8
540 PARODD = 0x200
541 PENDIN = 0x20000000
542 PRIO_PGRP = 0x1
543 PRIO_PROCESS = 0x0
544 PRIO_USER = 0x2
545 PROT_EXEC = 0x4
546 PROT_NONE = 0x0
547 PROT_READ = 0x1
548 PROT_WRITE = 0x2
549 PR_64BIT = 0x20
550 PR_ADDR = 0x2
551 PR_ARGEXT = 0x400
552 PR_ATOMIC = 0x1
553 PR_CONNREQUIRED = 0x4
554 PR_FASTHZ = 0x5
555 PR_INP = 0x40
556 PR_INTRLEVEL = 0x8000
557 PR_MLS = 0x100
558 PR_MLS_1_LABEL = 0x200
559 PR_NOEOR = 0x4000
560 PR_RIGHTS = 0x10
561 PR_SLOWHZ = 0x2
562 PR_WANTRCVD = 0x8
563 RLIMIT_AS = 0x6
564 RLIMIT_CORE = 0x4
565 RLIMIT_CPU = 0x0
566 RLIMIT_DATA = 0x2
567 RLIMIT_FSIZE = 0x1
568 RLIMIT_NOFILE = 0x7
569 RLIMIT_NPROC = 0x9
570 RLIMIT_RSS = 0x5
571 RLIMIT_STACK = 0x3
572 RLIM_INFINITY = 0x7fffffffffffffff
573 RTAX_AUTHOR = 0x6
574 RTAX_BRD = 0x7
575 RTAX_DST = 0x0
576 RTAX_GATEWAY = 0x1
577 RTAX_GENMASK = 0x3
578 RTAX_IFA = 0x5
579 RTAX_IFP = 0x4
580 RTAX_MAX = 0x8
581 RTAX_NETMASK = 0x2
582 RTA_AUTHOR = 0x40
583 RTA_BRD = 0x80
584 RTA_DOWNSTREAM = 0x100
585 RTA_DST = 0x1
586 RTA_GATEWAY = 0x2
587 RTA_GENMASK = 0x8
588 RTA_IFA = 0x20
589 RTA_IFP = 0x10
590 RTA_NETMASK = 0x4
591 RTC_IA64 = 0x3
592 RTC_POWER = 0x1
593 RTC_POWER_PC = 0x2
594 RTF_ACTIVE_DGD = 0x1000000
595 RTF_BCE = 0x80000
596 RTF_BLACKHOLE = 0x1000
597 RTF_BROADCAST = 0x400000
598 RTF_BUL = 0x2000
599 RTF_CLONE = 0x10000
600 RTF_CLONED = 0x20000
601 RTF_CLONING = 0x100
602 RTF_DONE = 0x40
603 RTF_DYNAMIC = 0x10
604 RTF_FREE_IN_PROG = 0x4000000
605 RTF_GATEWAY = 0x2
606 RTF_HOST = 0x4
607 RTF_LLINFO = 0x400
608 RTF_LOCAL = 0x200000
609 RTF_MASK = 0x80
610 RTF_MODIFIED = 0x20
611 RTF_MULTICAST = 0x800000
612 RTF_PERMANENT6 = 0x8000000
613 RTF_PINNED = 0x100000
614 RTF_PROTO1 = 0x8000
615 RTF_PROTO2 = 0x4000
616 RTF_PROTO3 = 0x40000
617 RTF_REJECT = 0x8
618 RTF_SMALLMTU = 0x40000
619 RTF_STATIC = 0x800
620 RTF_STOPSRCH = 0x2000000
621 RTF_UNREACHABLE = 0x10000000
622 RTF_UP = 0x1
623 RTF_XRESOLVE = 0x200
624 RTM_ADD = 0x1
625 RTM_CHANGE = 0x3
626 RTM_DELADDR = 0xd
627 RTM_DELETE = 0x2
628 RTM_EXPIRE = 0xf
629 RTM_GET = 0x4
630 RTM_GETNEXT = 0x11
631 RTM_IFINFO = 0xe
632 RTM_LOCK = 0x8
633 RTM_LOSING = 0x5
634 RTM_MISS = 0x7
635 RTM_NEWADDR = 0xc
636 RTM_OLDADD = 0x9
637 RTM_OLDDEL = 0xa
638 RTM_REDIRECT = 0x6
639 RTM_RESOLVE = 0xb
640 RTM_RTLOST = 0x10
641 RTM_RTTUNIT = 0xf4240
642 RTM_SAMEADDR = 0x12
643 RTM_SET = 0x13
644 RTM_VERSION = 0x2
645 RTM_VERSION_GR = 0x4
646 RTM_VERSION_GR_COMPAT = 0x3
647 RTM_VERSION_POLICY = 0x5
648 RTM_VERSION_POLICY_EXT = 0x6
649 RTM_VERSION_POLICY_PRFN = 0x7
650 RTV_EXPIRE = 0x4
651 RTV_HOPCOUNT = 0x2
652 RTV_MTU = 0x1
653 RTV_RPIPE = 0x8
654 RTV_RTT = 0x40
655 RTV_RTTVAR = 0x80
656 RTV_SPIPE = 0x10
657 RTV_SSTHRESH = 0x20
658 RUSAGE_CHILDREN = -0x1
659 RUSAGE_SELF = 0x0
660 RUSAGE_THREAD = 0x1
661 SCM_RIGHTS = 0x1
662 SHUT_RD = 0x0
663 SHUT_RDWR = 0x2
664 SHUT_WR = 0x1
665 SIGMAX64 = 0xff
666 SIGQUEUE_MAX = 0x20
667 SIOCADDIFVIPA = 0x20006942
668 SIOCADDMTU = -0x7ffb9690
669 SIOCADDMULTI = -0x7fdf96cf
670 SIOCADDNETID = -0x7fd796a9
671 SIOCADDRT = -0x7fc78df6
672 SIOCAIFADDR = -0x7fbf96e6
673 SIOCATMARK = 0x40047307
674 SIOCDARP = -0x7fb396e0
675 SIOCDELIFVIPA = 0x20006943
676 SIOCDELMTU = -0x7ffb968f
677 SIOCDELMULTI = -0x7fdf96ce
678 SIOCDELPMTU = -0x7fd78ff6
679 SIOCDELRT = -0x7fc78df5
680 SIOCDIFADDR = -0x7fd796e7
681 SIOCDNETOPT = -0x3ffe9680
682 SIOCDX25XLATE = -0x7fd7969b
683 SIOCFIFADDR = -0x7fdf966d
684 SIOCGARP = -0x3fb396da
685 SIOCGETMTUS = 0x2000696f
686 SIOCGETSGCNT = -0x3feb8acc
687 SIOCGETVIFCNT = -0x3feb8acd
688 SIOCGHIWAT = 0x40047301
689 SIOCGIFADDR = -0x3fd796df
690 SIOCGIFADDRS = 0x2000698c
691 SIOCGIFBAUDRATE = -0x3fd79693
692 SIOCGIFBRDADDR = -0x3fd796dd
693 SIOCGIFCONF = -0x3fef96bb
694 SIOCGIFCONFGLOB = -0x3fef9670
695 SIOCGIFDSTADDR = -0x3fd796de
696 SIOCGIFFLAGS = -0x3fd796ef
697 SIOCGIFGIDLIST = 0x20006968
698 SIOCGIFHWADDR = -0x3fab966b
699 SIOCGIFMETRIC = -0x3fd796e9
700 SIOCGIFMTU = -0x3fd796aa
701 SIOCGIFNETMASK = -0x3fd796db
702 SIOCGIFOPTIONS = -0x3fd796d6
703 SIOCGISNO = -0x3fd79695
704 SIOCGLOADF = -0x3ffb967e
705 SIOCGLOWAT = 0x40047303
706 SIOCGNETOPT = -0x3ffe96a5
707 SIOCGNETOPT1 = -0x3fdf967f
708 SIOCGNMTUS = 0x2000696e
709 SIOCGPGRP = 0x40047309
710 SIOCGSIZIFCONF = 0x4004696a
711 SIOCGSRCFILTER = -0x3fe796cb
712 SIOCGTUNEPHASE = -0x3ffb9676
713 SIOCGX25XLATE = -0x3fd7969c
714 SIOCIFATTACH = -0x7fdf9699
715 SIOCIFDETACH = -0x7fdf969a
716 SIOCIFGETPKEY = -0x7fdf969b
717 SIOCIF_ATM_DARP = -0x7fdf9683
718 SIOCIF_ATM_DUMPARP = -0x7fdf9685
719 SIOCIF_ATM_GARP = -0x7fdf9682
720 SIOCIF_ATM_IDLE = -0x7fdf9686
721 SIOCIF_ATM_SARP = -0x7fdf9681
722 SIOCIF_ATM_SNMPARP = -0x7fdf9687
723 SIOCIF_ATM_SVC = -0x7fdf9684
724 SIOCIF_ATM_UBR = -0x7fdf9688
725 SIOCIF_DEVHEALTH = -0x7ffb966c
726 SIOCIF_IB_ARP_INCOMP = -0x7fdf9677
727 SIOCIF_IB_ARP_TIMER = -0x7fdf9678
728 SIOCIF_IB_CLEAR_PINFO = -0x3fdf966f
729 SIOCIF_IB_DEL_ARP = -0x7fdf967f
730 SIOCIF_IB_DEL_PINFO = -0x3fdf9670
731 SIOCIF_IB_DUMP_ARP = -0x7fdf9680
732 SIOCIF_IB_GET_ARP = -0x7fdf967e
733 SIOCIF_IB_GET_INFO = -0x3f879675
734 SIOCIF_IB_GET_STATS = -0x3f879672
735 SIOCIF_IB_NOTIFY_ADDR_REM = -0x3f87966a
736 SIOCIF_IB_RESET_STATS = -0x3f879671
737 SIOCIF_IB_RESIZE_CQ = -0x7fdf9679
738 SIOCIF_IB_SET_ARP = -0x7fdf967d
739 SIOCIF_IB_SET_PKEY = -0x7fdf967c
740 SIOCIF_IB_SET_PORT = -0x7fdf967b
741 SIOCIF_IB_SET_QKEY = -0x7fdf9676
742 SIOCIF_IB_SET_QSIZE = -0x7fdf967a
743 SIOCLISTIFVIPA = 0x20006944
744 SIOCSARP = -0x7fb396e2
745 SIOCSHIWAT = 0xffffffff80047300
746 SIOCSIFADDR = -0x7fd796f4
747 SIOCSIFADDRORI = -0x7fdb9673
748 SIOCSIFBRDADDR = -0x7fd796ed
749 SIOCSIFDSTADDR = -0x7fd796f2
750 SIOCSIFFLAGS = -0x7fd796f0
751 SIOCSIFGIDLIST = 0x20006969
752 SIOCSIFMETRIC = -0x7fd796e8
753 SIOCSIFMTU = -0x7fd796a8
754 SIOCSIFNETDUMP = -0x7fd796e4
755 SIOCSIFNETMASK = -0x7fd796ea
756 SIOCSIFOPTIONS = -0x7fd796d7
757 SIOCSIFSUBCHAN = -0x7fd796e5
758 SIOCSISNO = -0x7fd79694
759 SIOCSLOADF = -0x3ffb967d
760 SIOCSLOWAT = 0xffffffff80047302
761 SIOCSNETOPT = -0x7ffe96a6
762 SIOCSPGRP = 0xffffffff80047308
763 SIOCSX25XLATE = -0x7fd7969d
764 SOCK_CONN_DGRAM = 0x6
765 SOCK_DGRAM = 0x2
766 SOCK_RAW = 0x3
767 SOCK_RDM = 0x4
768 SOCK_SEQPACKET = 0x5
769 SOCK_STREAM = 0x1
770 SOL_SOCKET = 0xffff
771 SOMAXCONN = 0x400
772 SO_ACCEPTCONN = 0x2
773 SO_AUDIT = 0x8000
774 SO_BROADCAST = 0x20
775 SO_CKSUMRECV = 0x800
776 SO_DEBUG = 0x1
777 SO_DONTROUTE = 0x10
778 SO_ERROR = 0x1007
779 SO_KEEPALIVE = 0x8
780 SO_KERNACCEPT = 0x2000
781 SO_LINGER = 0x80
782 SO_NOMULTIPATH = 0x4000
783 SO_NOREUSEADDR = 0x1000
784 SO_OOBINLINE = 0x100
785 SO_PEERID = 0x1009
786 SO_RCVBUF = 0x1002
787 SO_RCVLOWAT = 0x1004
788 SO_RCVTIMEO = 0x1006
789 SO_REUSEADDR = 0x4
790 SO_REUSEPORT = 0x200
791 SO_SNDBUF = 0x1001
792 SO_SNDLOWAT = 0x1003
793 SO_SNDTIMEO = 0x1005
794 SO_TIMESTAMPNS = 0x100a
795 SO_TYPE = 0x1008
796 SO_USELOOPBACK = 0x40
797 SO_USE_IFBUFS = 0x400
798 S_BANDURG = 0x400
799 S_EMODFMT = 0x3c000000
800 S_ENFMT = 0x400
801 S_ERROR = 0x100
802 S_HANGUP = 0x200
803 S_HIPRI = 0x2
804 S_ICRYPTO = 0x80000
805 S_IEXEC = 0x40
806 S_IFBLK = 0x6000
807 S_IFCHR = 0x2000
808 S_IFDIR = 0x4000
809 S_IFIFO = 0x1000
810 S_IFJOURNAL = 0x10000
811 S_IFLNK = 0xa000
812 S_IFMPX = 0x2200
813 S_IFMT = 0xf000
814 S_IFPDIR = 0x4000000
815 S_IFPSDIR = 0x8000000
816 S_IFPSSDIR = 0xc000000
817 S_IFREG = 0x8000
818 S_IFSOCK = 0xc000
819 S_IFSYSEA = 0x30000000
820 S_INPUT = 0x1
821 S_IREAD = 0x100
822 S_IRGRP = 0x20
823 S_IROTH = 0x4
824 S_IRUSR = 0x100
825 S_IRWXG = 0x38
826 S_IRWXO = 0x7
827 S_IRWXU = 0x1c0
828 S_ISGID = 0x400
829 S_ISUID = 0x800
830 S_ISVTX = 0x200
831 S_ITCB = 0x1000000
832 S_ITP = 0x800000
833 S_IWGRP = 0x10
834 S_IWOTH = 0x2
835 S_IWRITE = 0x80
836 S_IWUSR = 0x80
837 S_IXACL = 0x2000000
838 S_IXATTR = 0x40000
839 S_IXGRP = 0x8
840 S_IXINTERFACE = 0x100000
841 S_IXMOD = 0x40000000
842 S_IXOTH = 0x1
843 S_IXUSR = 0x40
844 S_MSG = 0x8
845 S_OUTPUT = 0x4
846 S_RDBAND = 0x20
847 S_RDNORM = 0x10
848 S_RESERVED1 = 0x20000
849 S_RESERVED2 = 0x200000
850 S_RESERVED3 = 0x400000
851 S_RESERVED4 = 0x80000000
852 S_RESFMT1 = 0x10000000
853 S_RESFMT10 = 0x34000000
854 S_RESFMT11 = 0x38000000
855 S_RESFMT12 = 0x3c000000
856 S_RESFMT2 = 0x14000000
857 S_RESFMT3 = 0x18000000
858 S_RESFMT4 = 0x1c000000
859 S_RESFMT5 = 0x20000000
860 S_RESFMT6 = 0x24000000
861 S_RESFMT7 = 0x28000000
862 S_RESFMT8 = 0x2c000000
863 S_WRBAND = 0x80
864 S_WRNORM = 0x40
865 TAB0 = 0x0
866 TAB1 = 0x400
867 TAB2 = 0x800
868 TAB3 = 0xc00
869 TABDLY = 0xc00
870 TCFLSH = 0x540c
871 TCGETA = 0x5405
872 TCGETS = 0x5401
873 TCIFLUSH = 0x0
874 TCIOFF = 0x2
875 TCIOFLUSH = 0x2
876 TCION = 0x3
877 TCOFLUSH = 0x1
878 TCOOFF = 0x0
879 TCOON = 0x1
880 TCP_24DAYS_WORTH_OF_SLOWTICKS = 0x3f4800
881 TCP_ACLADD = 0x23
882 TCP_ACLBIND = 0x26
883 TCP_ACLCLEAR = 0x22
884 TCP_ACLDEL = 0x24
885 TCP_ACLDENY = 0x8
886 TCP_ACLFLUSH = 0x21
887 TCP_ACLGID = 0x1
888 TCP_ACLLS = 0x25
889 TCP_ACLSUBNET = 0x4
890 TCP_ACLUID = 0x2
891 TCP_CWND_DF = 0x16
892 TCP_CWND_IF = 0x15
893 TCP_DELAY_ACK_FIN = 0x2
894 TCP_DELAY_ACK_SYN = 0x1
895 TCP_FASTNAME = 0x101080a
896 TCP_KEEPCNT = 0x13
897 TCP_KEEPIDLE = 0x11
898 TCP_KEEPINTVL = 0x12
899 TCP_LSPRIV = 0x29
900 TCP_LUID = 0x20
901 TCP_MAXBURST = 0x8
902 TCP_MAXDF = 0x64
903 TCP_MAXIF = 0x64
904 TCP_MAXSEG = 0x2
905 TCP_MAXWIN = 0xffff
906 TCP_MAXWINDOWSCALE = 0xe
907 TCP_MAX_SACK = 0x4
908 TCP_MSS = 0x5b4
909 TCP_NODELAY = 0x1
910 TCP_NODELAYACK = 0x14
911 TCP_NOREDUCE_CWND_EXIT_FRXMT = 0x19
912 TCP_NOREDUCE_CWND_IN_FRXMT = 0x18
913 TCP_NOTENTER_SSTART = 0x17
914 TCP_OPT = 0x19
915 TCP_RFC1323 = 0x4
916 TCP_SETPRIV = 0x27
917 TCP_STDURG = 0x10
918 TCP_TIMESTAMP_OPTLEN = 0xc
919 TCP_UNSETPRIV = 0x28
920 TCSAFLUSH = 0x2
921 TCSBRK = 0x5409
922 TCSETA = 0x5406
923 TCSETAF = 0x5408
924 TCSETAW = 0x5407
925 TCSETS = 0x5402
926 TCSETSF = 0x5404
927 TCSETSW = 0x5403
928 TCXONC = 0x540b
929 TIOC = 0x5400
930 TIOCCBRK = 0x2000747a
931 TIOCCDTR = 0x20007478
932 TIOCCONS = 0xffffffff80047462
933 TIOCEXCL = 0x2000740d
934 TIOCFLUSH = 0xffffffff80047410
935 TIOCGETC = 0x40067412
936 TIOCGETD = 0x40047400
937 TIOCGETP = 0x40067408
938 TIOCGLTC = 0x40067474
939 TIOCGPGRP = 0x40047477
940 TIOCGSID = 0x40047448
941 TIOCGSIZE = 0x40087468
942 TIOCGWINSZ = 0x40087468
943 TIOCHPCL = 0x20007402
944 TIOCLBIC = 0xffffffff8004747e
945 TIOCLBIS = 0xffffffff8004747f
946 TIOCLGET = 0x4004747c
947 TIOCLSET = 0xffffffff8004747d
948 TIOCMBIC = 0xffffffff8004746b
949 TIOCMBIS = 0xffffffff8004746c
950 TIOCMGET = 0x4004746a
951 TIOCMIWAIT = 0xffffffff80047464
952 TIOCMODG = 0x40047403
953 TIOCMODS = 0xffffffff80047404
954 TIOCMSET = 0xffffffff8004746d
955 TIOCM_CAR = 0x40
956 TIOCM_CD = 0x40
957 TIOCM_CTS = 0x20
958 TIOCM_DSR = 0x100
959 TIOCM_DTR = 0x2
960 TIOCM_LE = 0x1
961 TIOCM_RI = 0x80
962 TIOCM_RNG = 0x80
963 TIOCM_RTS = 0x4
964 TIOCM_SR = 0x10
965 TIOCM_ST = 0x8
966 TIOCNOTTY = 0x20007471
967 TIOCNXCL = 0x2000740e
968 TIOCOUTQ = 0x40047473
969 TIOCPKT = 0xffffffff80047470
970 TIOCPKT_DATA = 0x0
971 TIOCPKT_DOSTOP = 0x20
972 TIOCPKT_FLUSHREAD = 0x1
973 TIOCPKT_FLUSHWRITE = 0x2
974 TIOCPKT_NOSTOP = 0x10
975 TIOCPKT_START = 0x8
976 TIOCPKT_STOP = 0x4
977 TIOCREMOTE = 0xffffffff80047469
978 TIOCSBRK = 0x2000747b
979 TIOCSDTR = 0x20007479
980 TIOCSETC = 0xffffffff80067411
981 TIOCSETD = 0xffffffff80047401
982 TIOCSETN = 0xffffffff8006740a
983 TIOCSETP = 0xffffffff80067409
984 TIOCSLTC = 0xffffffff80067475
985 TIOCSPGRP = 0xffffffff80047476
986 TIOCSSIZE = 0xffffffff80087467
987 TIOCSTART = 0x2000746e
988 TIOCSTI = 0xffffffff80017472
989 TIOCSTOP = 0x2000746f
990 TIOCSWINSZ = 0xffffffff80087467
991 TIOCUCNTL = 0xffffffff80047466
992 TOSTOP = 0x10000
993 UTIME_NOW = -0x2
994 UTIME_OMIT = -0x3
995 VDISCRD = 0xc
996 VDSUSP = 0xa
997 VEOF = 0x4
998 VEOL = 0x5
999 VEOL2 = 0x6
1000 VERASE = 0x2
1001 VINTR = 0x0
1002 VKILL = 0x3
1003 VLNEXT = 0xe
1004 VMIN = 0x4
1005 VQUIT = 0x1
1006 VREPRINT = 0xb
1007 VSTART = 0x7
1008 VSTOP = 0x8
1009 VSTRT = 0x7
1010 VSUSP = 0x9
1011 VT0 = 0x0
1012 VT1 = 0x8000
1013 VTDELAY = 0x2000
1014 VTDLY = 0x8000
1015 VTIME = 0x5
1016 VWERSE = 0xd
1017 WPARSTART = 0x1
1018 WPARSTOP = 0x2
1019 WPARTTYNAME = "Global"
1020 XCASE = 0x4
1021 XTABS = 0xc00
1022 _FDATAFLUSH = 0x2000000000
1023)
1024
1025// Errors
1026const (
1027 E2BIG = syscall.Errno(0x7)
1028 EACCES = syscall.Errno(0xd)
1029 EADDRINUSE = syscall.Errno(0x43)
1030 EADDRNOTAVAIL = syscall.Errno(0x44)
1031 EAFNOSUPPORT = syscall.Errno(0x42)
1032 EAGAIN = syscall.Errno(0xb)
1033 EALREADY = syscall.Errno(0x38)
1034 EBADF = syscall.Errno(0x9)
1035 EBADMSG = syscall.Errno(0x78)
1036 EBUSY = syscall.Errno(0x10)
1037 ECANCELED = syscall.Errno(0x75)
1038 ECHILD = syscall.Errno(0xa)
1039 ECHRNG = syscall.Errno(0x25)
1040 ECLONEME = syscall.Errno(0x52)
1041 ECONNABORTED = syscall.Errno(0x48)
1042 ECONNREFUSED = syscall.Errno(0x4f)
1043 ECONNRESET = syscall.Errno(0x49)
1044 ECORRUPT = syscall.Errno(0x59)
1045 EDEADLK = syscall.Errno(0x2d)
1046 EDESTADDREQ = syscall.Errno(0x3a)
1047 EDESTADDRREQ = syscall.Errno(0x3a)
1048 EDIST = syscall.Errno(0x35)
1049 EDOM = syscall.Errno(0x21)
1050 EDQUOT = syscall.Errno(0x58)
1051 EEXIST = syscall.Errno(0x11)
1052 EFAULT = syscall.Errno(0xe)
1053 EFBIG = syscall.Errno(0x1b)
1054 EFORMAT = syscall.Errno(0x30)
1055 EHOSTDOWN = syscall.Errno(0x50)
1056 EHOSTUNREACH = syscall.Errno(0x51)
1057 EIDRM = syscall.Errno(0x24)
1058 EILSEQ = syscall.Errno(0x74)
1059 EINPROGRESS = syscall.Errno(0x37)
1060 EINTR = syscall.Errno(0x4)
1061 EINVAL = syscall.Errno(0x16)
1062 EIO = syscall.Errno(0x5)
1063 EISCONN = syscall.Errno(0x4b)
1064 EISDIR = syscall.Errno(0x15)
1065 EL2HLT = syscall.Errno(0x2c)
1066 EL2NSYNC = syscall.Errno(0x26)
1067 EL3HLT = syscall.Errno(0x27)
1068 EL3RST = syscall.Errno(0x28)
1069 ELNRNG = syscall.Errno(0x29)
1070 ELOOP = syscall.Errno(0x55)
1071 EMEDIA = syscall.Errno(0x6e)
1072 EMFILE = syscall.Errno(0x18)
1073 EMLINK = syscall.Errno(0x1f)
1074 EMSGSIZE = syscall.Errno(0x3b)
1075 EMULTIHOP = syscall.Errno(0x7d)
1076 ENAMETOOLONG = syscall.Errno(0x56)
1077 ENETDOWN = syscall.Errno(0x45)
1078 ENETRESET = syscall.Errno(0x47)
1079 ENETUNREACH = syscall.Errno(0x46)
1080 ENFILE = syscall.Errno(0x17)
1081 ENOATTR = syscall.Errno(0x70)
1082 ENOBUFS = syscall.Errno(0x4a)
1083 ENOCONNECT = syscall.Errno(0x32)
1084 ENOCSI = syscall.Errno(0x2b)
1085 ENODATA = syscall.Errno(0x7a)
1086 ENODEV = syscall.Errno(0x13)
1087 ENOENT = syscall.Errno(0x2)
1088 ENOEXEC = syscall.Errno(0x8)
1089 ENOLCK = syscall.Errno(0x31)
1090 ENOLINK = syscall.Errno(0x7e)
1091 ENOMEM = syscall.Errno(0xc)
1092 ENOMSG = syscall.Errno(0x23)
1093 ENOPROTOOPT = syscall.Errno(0x3d)
1094 ENOSPC = syscall.Errno(0x1c)
1095 ENOSR = syscall.Errno(0x76)
1096 ENOSTR = syscall.Errno(0x7b)
1097 ENOSYS = syscall.Errno(0x6d)
1098 ENOTBLK = syscall.Errno(0xf)
1099 ENOTCONN = syscall.Errno(0x4c)
1100 ENOTDIR = syscall.Errno(0x14)
1101 ENOTEMPTY = syscall.Errno(0x11)
1102 ENOTREADY = syscall.Errno(0x2e)
1103 ENOTRECOVERABLE = syscall.Errno(0x5e)
1104 ENOTRUST = syscall.Errno(0x72)
1105 ENOTSOCK = syscall.Errno(0x39)
1106 ENOTSUP = syscall.Errno(0x7c)
1107 ENOTTY = syscall.Errno(0x19)
1108 ENXIO = syscall.Errno(0x6)
1109 EOPNOTSUPP = syscall.Errno(0x40)
1110 EOVERFLOW = syscall.Errno(0x7f)
1111 EOWNERDEAD = syscall.Errno(0x5f)
1112 EPERM = syscall.Errno(0x1)
1113 EPFNOSUPPORT = syscall.Errno(0x41)
1114 EPIPE = syscall.Errno(0x20)
1115 EPROCLIM = syscall.Errno(0x53)
1116 EPROTO = syscall.Errno(0x79)
1117 EPROTONOSUPPORT = syscall.Errno(0x3e)
1118 EPROTOTYPE = syscall.Errno(0x3c)
1119 ERANGE = syscall.Errno(0x22)
1120 EREMOTE = syscall.Errno(0x5d)
1121 ERESTART = syscall.Errno(0x52)
1122 EROFS = syscall.Errno(0x1e)
1123 ESAD = syscall.Errno(0x71)
1124 ESHUTDOWN = syscall.Errno(0x4d)
1125 ESOCKTNOSUPPORT = syscall.Errno(0x3f)
1126 ESOFT = syscall.Errno(0x6f)
1127 ESPIPE = syscall.Errno(0x1d)
1128 ESRCH = syscall.Errno(0x3)
1129 ESTALE = syscall.Errno(0x34)
1130 ESYSERROR = syscall.Errno(0x5a)
1131 ETIME = syscall.Errno(0x77)
1132 ETIMEDOUT = syscall.Errno(0x4e)
1133 ETOOMANYREFS = syscall.Errno(0x73)
1134 ETXTBSY = syscall.Errno(0x1a)
1135 EUNATCH = syscall.Errno(0x2a)
1136 EUSERS = syscall.Errno(0x54)
1137 EWOULDBLOCK = syscall.Errno(0xb)
1138 EWRPROTECT = syscall.Errno(0x2f)
1139 EXDEV = syscall.Errno(0x12)
1140)
1141
1142// Signals
1143const (
1144 SIGABRT = syscall.Signal(0x6)
1145 SIGAIO = syscall.Signal(0x17)
1146 SIGALRM = syscall.Signal(0xe)
1147 SIGALRM1 = syscall.Signal(0x26)
1148 SIGBUS = syscall.Signal(0xa)
1149 SIGCAPI = syscall.Signal(0x31)
1150 SIGCHLD = syscall.Signal(0x14)
1151 SIGCLD = syscall.Signal(0x14)
1152 SIGCONT = syscall.Signal(0x13)
1153 SIGCPUFAIL = syscall.Signal(0x3b)
1154 SIGDANGER = syscall.Signal(0x21)
1155 SIGEMT = syscall.Signal(0x7)
1156 SIGFPE = syscall.Signal(0x8)
1157 SIGGRANT = syscall.Signal(0x3c)
1158 SIGHUP = syscall.Signal(0x1)
1159 SIGILL = syscall.Signal(0x4)
1160 SIGINT = syscall.Signal(0x2)
1161 SIGIO = syscall.Signal(0x17)
1162 SIGIOINT = syscall.Signal(0x10)
1163 SIGIOT = syscall.Signal(0x6)
1164 SIGKAP = syscall.Signal(0x3c)
1165 SIGKILL = syscall.Signal(0x9)
1166 SIGLOST = syscall.Signal(0x6)
1167 SIGMAX = syscall.Signal(0xff)
1168 SIGMAX32 = syscall.Signal(0x3f)
1169 SIGMIGRATE = syscall.Signal(0x23)
1170 SIGMSG = syscall.Signal(0x1b)
1171 SIGPIPE = syscall.Signal(0xd)
1172 SIGPOLL = syscall.Signal(0x17)
1173 SIGPRE = syscall.Signal(0x24)
1174 SIGPROF = syscall.Signal(0x20)
1175 SIGPTY = syscall.Signal(0x17)
1176 SIGPWR = syscall.Signal(0x1d)
1177 SIGQUIT = syscall.Signal(0x3)
1178 SIGRECONFIG = syscall.Signal(0x3a)
1179 SIGRETRACT = syscall.Signal(0x3d)
1180 SIGSAK = syscall.Signal(0x3f)
1181 SIGSEGV = syscall.Signal(0xb)
1182 SIGSOUND = syscall.Signal(0x3e)
1183 SIGSTOP = syscall.Signal(0x11)
1184 SIGSYS = syscall.Signal(0xc)
1185 SIGSYSERROR = syscall.Signal(0x30)
1186 SIGTALRM = syscall.Signal(0x26)
1187 SIGTERM = syscall.Signal(0xf)
1188 SIGTRAP = syscall.Signal(0x5)
1189 SIGTSTP = syscall.Signal(0x12)
1190 SIGTTIN = syscall.Signal(0x15)
1191 SIGTTOU = syscall.Signal(0x16)
1192 SIGURG = syscall.Signal(0x10)
1193 SIGUSR1 = syscall.Signal(0x1e)
1194 SIGUSR2 = syscall.Signal(0x1f)
1195 SIGVIRT = syscall.Signal(0x25)
1196 SIGVTALRM = syscall.Signal(0x22)
1197 SIGWAITING = syscall.Signal(0x27)
1198 SIGWINCH = syscall.Signal(0x1c)
1199 SIGXCPU = syscall.Signal(0x18)
1200 SIGXFSZ = syscall.Signal(0x19)
1201)
1202
1203// Error table
1204var errorList = [...]struct {
1205 num syscall.Errno
1206 name string
1207 desc string
1208}{
1209 {1, "EPERM", "not owner"},
1210 {2, "ENOENT", "no such file or directory"},
1211 {3, "ESRCH", "no such process"},
1212 {4, "EINTR", "interrupted system call"},
1213 {5, "EIO", "I/O error"},
1214 {6, "ENXIO", "no such device or address"},
1215 {7, "E2BIG", "arg list too long"},
1216 {8, "ENOEXEC", "exec format error"},
1217 {9, "EBADF", "bad file number"},
1218 {10, "ECHILD", "no child processes"},
1219 {11, "EWOULDBLOCK", "resource temporarily unavailable"},
1220 {12, "ENOMEM", "not enough space"},
1221 {13, "EACCES", "permission denied"},
1222 {14, "EFAULT", "bad address"},
1223 {15, "ENOTBLK", "block device required"},
1224 {16, "EBUSY", "device busy"},
1225 {17, "ENOTEMPTY", "file exists"},
1226 {18, "EXDEV", "cross-device link"},
1227 {19, "ENODEV", "no such device"},
1228 {20, "ENOTDIR", "not a directory"},
1229 {21, "EISDIR", "is a directory"},
1230 {22, "EINVAL", "invalid argument"},
1231 {23, "ENFILE", "file table overflow"},
1232 {24, "EMFILE", "too many open files"},
1233 {25, "ENOTTY", "not a typewriter"},
1234 {26, "ETXTBSY", "text file busy"},
1235 {27, "EFBIG", "file too large"},
1236 {28, "ENOSPC", "no space left on device"},
1237 {29, "ESPIPE", "illegal seek"},
1238 {30, "EROFS", "read-only file system"},
1239 {31, "EMLINK", "too many links"},
1240 {32, "EPIPE", "broken pipe"},
1241 {33, "EDOM", "argument out of domain"},
1242 {34, "ERANGE", "result too large"},
1243 {35, "ENOMSG", "no message of desired type"},
1244 {36, "EIDRM", "identifier removed"},
1245 {37, "ECHRNG", "channel number out of range"},
1246 {38, "EL2NSYNC", "level 2 not synchronized"},
1247 {39, "EL3HLT", "level 3 halted"},
1248 {40, "EL3RST", "level 3 reset"},
1249 {41, "ELNRNG", "link number out of range"},
1250 {42, "EUNATCH", "protocol driver not attached"},
1251 {43, "ENOCSI", "no CSI structure available"},
1252 {44, "EL2HLT", "level 2 halted"},
1253 {45, "EDEADLK", "deadlock condition if locked"},
1254 {46, "ENOTREADY", "device not ready"},
1255 {47, "EWRPROTECT", "write-protected media"},
1256 {48, "EFORMAT", "unformatted or incompatible media"},
1257 {49, "ENOLCK", "no locks available"},
1258 {50, "ENOCONNECT", "cannot Establish Connection"},
1259 {52, "ESTALE", "missing file or filesystem"},
1260 {53, "EDIST", "requests blocked by Administrator"},
1261 {55, "EINPROGRESS", "operation now in progress"},
1262 {56, "EALREADY", "operation already in progress"},
1263 {57, "ENOTSOCK", "socket operation on non-socket"},
1264 {58, "EDESTADDREQ", "destination address required"},
1265 {59, "EMSGSIZE", "message too long"},
1266 {60, "EPROTOTYPE", "protocol wrong type for socket"},
1267 {61, "ENOPROTOOPT", "protocol not available"},
1268 {62, "EPROTONOSUPPORT", "protocol not supported"},
1269 {63, "ESOCKTNOSUPPORT", "socket type not supported"},
1270 {64, "EOPNOTSUPP", "operation not supported on socket"},
1271 {65, "EPFNOSUPPORT", "protocol family not supported"},
1272 {66, "EAFNOSUPPORT", "addr family not supported by protocol"},
1273 {67, "EADDRINUSE", "address already in use"},
1274 {68, "EADDRNOTAVAIL", "can't assign requested address"},
1275 {69, "ENETDOWN", "network is down"},
1276 {70, "ENETUNREACH", "network is unreachable"},
1277 {71, "ENETRESET", "network dropped connection on reset"},
1278 {72, "ECONNABORTED", "software caused connection abort"},
1279 {73, "ECONNRESET", "connection reset by peer"},
1280 {74, "ENOBUFS", "no buffer space available"},
1281 {75, "EISCONN", "socket is already connected"},
1282 {76, "ENOTCONN", "socket is not connected"},
1283 {77, "ESHUTDOWN", "can't send after socket shutdown"},
1284 {78, "ETIMEDOUT", "connection timed out"},
1285 {79, "ECONNREFUSED", "connection refused"},
1286 {80, "EHOSTDOWN", "host is down"},
1287 {81, "EHOSTUNREACH", "no route to host"},
1288 {82, "ERESTART", "restart the system call"},
1289 {83, "EPROCLIM", "too many processes"},
1290 {84, "EUSERS", "too many users"},
1291 {85, "ELOOP", "too many levels of symbolic links"},
1292 {86, "ENAMETOOLONG", "file name too long"},
1293 {88, "EDQUOT", "disk quota exceeded"},
1294 {89, "ECORRUPT", "invalid file system control data detected"},
1295 {90, "ESYSERROR", "for future use "},
1296 {93, "EREMOTE", "item is not local to host"},
1297 {94, "ENOTRECOVERABLE", "state not recoverable "},
1298 {95, "EOWNERDEAD", "previous owner died "},
1299 {109, "ENOSYS", "function not implemented"},
1300 {110, "EMEDIA", "media surface error"},
1301 {111, "ESOFT", "I/O completed, but needs relocation"},
1302 {112, "ENOATTR", "no attribute found"},
1303 {113, "ESAD", "security Authentication Denied"},
1304 {114, "ENOTRUST", "not a Trusted Program"},
1305 {115, "ETOOMANYREFS", "too many references: can't splice"},
1306 {116, "EILSEQ", "invalid wide character"},
1307 {117, "ECANCELED", "asynchronous I/O cancelled"},
1308 {118, "ENOSR", "out of STREAMS resources"},
1309 {119, "ETIME", "system call timed out"},
1310 {120, "EBADMSG", "next message has wrong type"},
1311 {121, "EPROTO", "error in protocol"},
1312 {122, "ENODATA", "no message on stream head read q"},
1313 {123, "ENOSTR", "fd not associated with a stream"},
1314 {124, "ENOTSUP", "unsupported attribute value"},
1315 {125, "EMULTIHOP", "multihop is not allowed"},
1316 {126, "ENOLINK", "the server link has been severed"},
1317 {127, "EOVERFLOW", "value too large to be stored in data type"},
1318}
1319
1320// Signal table
1321var signalList = [...]struct {
1322 num syscall.Signal
1323 name string
1324 desc string
1325}{
1326 {1, "SIGHUP", "hangup"},
1327 {2, "SIGINT", "interrupt"},
1328 {3, "SIGQUIT", "quit"},
1329 {4, "SIGILL", "illegal instruction"},
1330 {5, "SIGTRAP", "trace/BPT trap"},
1331 {6, "SIGIOT", "IOT/Abort trap"},
1332 {7, "SIGEMT", "EMT trap"},
1333 {8, "SIGFPE", "floating point exception"},
1334 {9, "SIGKILL", "killed"},
1335 {10, "SIGBUS", "bus error"},
1336 {11, "SIGSEGV", "segmentation fault"},
1337 {12, "SIGSYS", "bad system call"},
1338 {13, "SIGPIPE", "broken pipe"},
1339 {14, "SIGALRM", "alarm clock"},
1340 {15, "SIGTERM", "terminated"},
1341 {16, "SIGURG", "urgent I/O condition"},
1342 {17, "SIGSTOP", "stopped (signal)"},
1343 {18, "SIGTSTP", "stopped"},
1344 {19, "SIGCONT", "continued"},
1345 {20, "SIGCHLD", "child exited"},
1346 {21, "SIGTTIN", "stopped (tty input)"},
1347 {22, "SIGTTOU", "stopped (tty output)"},
1348 {23, "SIGIO", "I/O possible/complete"},
1349 {24, "SIGXCPU", "cputime limit exceeded"},
1350 {25, "SIGXFSZ", "filesize limit exceeded"},
1351 {27, "SIGMSG", "input device data"},
1352 {28, "SIGWINCH", "window size changes"},
1353 {29, "SIGPWR", "power-failure"},
1354 {30, "SIGUSR1", "user defined signal 1"},
1355 {31, "SIGUSR2", "user defined signal 2"},
1356 {32, "SIGPROF", "profiling timer expired"},
1357 {33, "SIGDANGER", "paging space low"},
1358 {34, "SIGVTALRM", "virtual timer expired"},
1359 {35, "SIGMIGRATE", "signal 35"},
1360 {36, "SIGPRE", "signal 36"},
1361 {37, "SIGVIRT", "signal 37"},
1362 {38, "SIGTALRM", "signal 38"},
1363 {39, "SIGWAITING", "signal 39"},
1364 {48, "SIGSYSERROR", "signal 48"},
1365 {49, "SIGCAPI", "signal 49"},
1366 {58, "SIGRECONFIG", "signal 58"},
1367 {59, "SIGCPUFAIL", "CPU Failure Predicted"},
1368 {60, "SIGGRANT", "monitor mode granted"},
1369 {61, "SIGRETRACT", "monitor mode retracted"},
1370 {62, "SIGSOUND", "sound completed"},
1371 {63, "SIGMAX32", "secure attention"},
1372 {255, "SIGMAX", "signal 255"},
1373}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go
index dcba884..3b39d74 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go
@@ -1473,6 +1473,12 @@ const (
1473 WORDSIZE = 0x20 1473 WORDSIZE = 0x20
1474 WSTOPPED = 0x8 1474 WSTOPPED = 0x8
1475 WUNTRACED = 0x2 1475 WUNTRACED = 0x2
1476 XATTR_CREATE = 0x2
1477 XATTR_NODEFAULT = 0x10
1478 XATTR_NOFOLLOW = 0x1
1479 XATTR_NOSECURITY = 0x8
1480 XATTR_REPLACE = 0x4
1481 XATTR_SHOWCOMPRESSION = 0x20
1476) 1482)
1477 1483
1478// Errors 1484// Errors
@@ -1624,146 +1630,154 @@ const (
1624) 1630)
1625 1631
1626// Error table 1632// Error table
1627var errors = [...]string{ 1633var errorList = [...]struct {
1628 1: "operation not permitted", 1634 num syscall.Errno
1629 2: "no such file or directory", 1635 name string
1630 3: "no such process", 1636 desc string
1631 4: "interrupted system call", 1637}{
1632 5: "input/output error", 1638 {1, "EPERM", "operation not permitted"},
1633 6: "device not configured", 1639 {2, "ENOENT", "no such file or directory"},
1634 7: "argument list too long", 1640 {3, "ESRCH", "no such process"},
1635 8: "exec format error", 1641 {4, "EINTR", "interrupted system call"},
1636 9: "bad file descriptor", 1642 {5, "EIO", "input/output error"},
1637 10: "no child processes", 1643 {6, "ENXIO", "device not configured"},
1638 11: "resource deadlock avoided", 1644 {7, "E2BIG", "argument list too long"},
1639 12: "cannot allocate memory", 1645 {8, "ENOEXEC", "exec format error"},
1640 13: "permission denied", 1646 {9, "EBADF", "bad file descriptor"},
1641 14: "bad address", 1647 {10, "ECHILD", "no child processes"},
1642 15: "block device required", 1648 {11, "EDEADLK", "resource deadlock avoided"},
1643 16: "resource busy", 1649 {12, "ENOMEM", "cannot allocate memory"},
1644 17: "file exists", 1650 {13, "EACCES", "permission denied"},
1645 18: "cross-device link", 1651 {14, "EFAULT", "bad address"},
1646 19: "operation not supported by device", 1652 {15, "ENOTBLK", "block device required"},
1647 20: "not a directory", 1653 {16, "EBUSY", "resource busy"},
1648 21: "is a directory", 1654 {17, "EEXIST", "file exists"},
1649 22: "invalid argument", 1655 {18, "EXDEV", "cross-device link"},
1650 23: "too many open files in system", 1656 {19, "ENODEV", "operation not supported by device"},
1651 24: "too many open files", 1657 {20, "ENOTDIR", "not a directory"},
1652 25: "inappropriate ioctl for device", 1658 {21, "EISDIR", "is a directory"},
1653 26: "text file busy", 1659 {22, "EINVAL", "invalid argument"},
1654 27: "file too large", 1660 {23, "ENFILE", "too many open files in system"},
1655 28: "no space left on device", 1661 {24, "EMFILE", "too many open files"},
1656 29: "illegal seek", 1662 {25, "ENOTTY", "inappropriate ioctl for device"},
1657 30: "read-only file system", 1663 {26, "ETXTBSY", "text file busy"},
1658 31: "too many links", 1664 {27, "EFBIG", "file too large"},
1659 32: "broken pipe", 1665 {28, "ENOSPC", "no space left on device"},
1660 33: "numerical argument out of domain", 1666 {29, "ESPIPE", "illegal seek"},
1661 34: "result too large", 1667 {30, "EROFS", "read-only file system"},
1662 35: "resource temporarily unavailable", 1668 {31, "EMLINK", "too many links"},
1663 36: "operation now in progress", 1669 {32, "EPIPE", "broken pipe"},
1664 37: "operation already in progress", 1670 {33, "EDOM", "numerical argument out of domain"},
1665 38: "socket operation on non-socket", 1671 {34, "ERANGE", "result too large"},
1666 39: "destination address required", 1672 {35, "EAGAIN", "resource temporarily unavailable"},
1667 40: "message too long", 1673 {36, "EINPROGRESS", "operation now in progress"},
1668 41: "protocol wrong type for socket", 1674 {37, "EALREADY", "operation already in progress"},
1669 42: "protocol not available", 1675 {38, "ENOTSOCK", "socket operation on non-socket"},
1670 43: "protocol not supported", 1676 {39, "EDESTADDRREQ", "destination address required"},
1671 44: "socket type not supported", 1677 {40, "EMSGSIZE", "message too long"},
1672 45: "operation not supported", 1678 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1673 46: "protocol family not supported", 1679 {42, "ENOPROTOOPT", "protocol not available"},
1674 47: "address family not supported by protocol family", 1680 {43, "EPROTONOSUPPORT", "protocol not supported"},
1675 48: "address already in use", 1681 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1676 49: "can't assign requested address", 1682 {45, "ENOTSUP", "operation not supported"},
1677 50: "network is down", 1683 {46, "EPFNOSUPPORT", "protocol family not supported"},
1678 51: "network is unreachable", 1684 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1679 52: "network dropped connection on reset", 1685 {48, "EADDRINUSE", "address already in use"},
1680 53: "software caused connection abort", 1686 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1681 54: "connection reset by peer", 1687 {50, "ENETDOWN", "network is down"},
1682 55: "no buffer space available", 1688 {51, "ENETUNREACH", "network is unreachable"},
1683 56: "socket is already connected", 1689 {52, "ENETRESET", "network dropped connection on reset"},
1684 57: "socket is not connected", 1690 {53, "ECONNABORTED", "software caused connection abort"},
1685 58: "can't send after socket shutdown", 1691 {54, "ECONNRESET", "connection reset by peer"},
1686 59: "too many references: can't splice", 1692 {55, "ENOBUFS", "no buffer space available"},
1687 60: "operation timed out", 1693 {56, "EISCONN", "socket is already connected"},
1688 61: "connection refused", 1694 {57, "ENOTCONN", "socket is not connected"},
1689 62: "too many levels of symbolic links", 1695 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1690 63: "file name too long", 1696 {59, "ETOOMANYREFS", "too many references: can't splice"},
1691 64: "host is down", 1697 {60, "ETIMEDOUT", "operation timed out"},
1692 65: "no route to host", 1698 {61, "ECONNREFUSED", "connection refused"},
1693 66: "directory not empty", 1699 {62, "ELOOP", "too many levels of symbolic links"},
1694 67: "too many processes", 1700 {63, "ENAMETOOLONG", "file name too long"},
1695 68: "too many users", 1701 {64, "EHOSTDOWN", "host is down"},
1696 69: "disc quota exceeded", 1702 {65, "EHOSTUNREACH", "no route to host"},
1697 70: "stale NFS file handle", 1703 {66, "ENOTEMPTY", "directory not empty"},
1698 71: "too many levels of remote in path", 1704 {67, "EPROCLIM", "too many processes"},
1699 72: "RPC struct is bad", 1705 {68, "EUSERS", "too many users"},
1700 73: "RPC version wrong", 1706 {69, "EDQUOT", "disc quota exceeded"},
1701 74: "RPC prog. not avail", 1707 {70, "ESTALE", "stale NFS file handle"},
1702 75: "program version wrong", 1708 {71, "EREMOTE", "too many levels of remote in path"},
1703 76: "bad procedure for program", 1709 {72, "EBADRPC", "RPC struct is bad"},
1704 77: "no locks available", 1710 {73, "ERPCMISMATCH", "RPC version wrong"},
1705 78: "function not implemented", 1711 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1706 79: "inappropriate file type or format", 1712 {75, "EPROGMISMATCH", "program version wrong"},
1707 80: "authentication error", 1713 {76, "EPROCUNAVAIL", "bad procedure for program"},
1708 81: "need authenticator", 1714 {77, "ENOLCK", "no locks available"},
1709 82: "device power is off", 1715 {78, "ENOSYS", "function not implemented"},
1710 83: "device error", 1716 {79, "EFTYPE", "inappropriate file type or format"},
1711 84: "value too large to be stored in data type", 1717 {80, "EAUTH", "authentication error"},
1712 85: "bad executable (or shared library)", 1718 {81, "ENEEDAUTH", "need authenticator"},
1713 86: "bad CPU type in executable", 1719 {82, "EPWROFF", "device power is off"},
1714 87: "shared library version mismatch", 1720 {83, "EDEVERR", "device error"},
1715 88: "malformed Mach-o file", 1721 {84, "EOVERFLOW", "value too large to be stored in data type"},
1716 89: "operation canceled", 1722 {85, "EBADEXEC", "bad executable (or shared library)"},
1717 90: "identifier removed", 1723 {86, "EBADARCH", "bad CPU type in executable"},
1718 91: "no message of desired type", 1724 {87, "ESHLIBVERS", "shared library version mismatch"},
1719 92: "illegal byte sequence", 1725 {88, "EBADMACHO", "malformed Mach-o file"},
1720 93: "attribute not found", 1726 {89, "ECANCELED", "operation canceled"},
1721 94: "bad message", 1727 {90, "EIDRM", "identifier removed"},
1722 95: "EMULTIHOP (Reserved)", 1728 {91, "ENOMSG", "no message of desired type"},
1723 96: "no message available on STREAM", 1729 {92, "EILSEQ", "illegal byte sequence"},
1724 97: "ENOLINK (Reserved)", 1730 {93, "ENOATTR", "attribute not found"},
1725 98: "no STREAM resources", 1731 {94, "EBADMSG", "bad message"},
1726 99: "not a STREAM", 1732 {95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
1727 100: "protocol error", 1733 {96, "ENODATA", "no message available on STREAM"},
1728 101: "STREAM ioctl timeout", 1734 {97, "ENOLINK", "ENOLINK (Reserved)"},
1729 102: "operation not supported on socket", 1735 {98, "ENOSR", "no STREAM resources"},
1730 103: "policy not found", 1736 {99, "ENOSTR", "not a STREAM"},
1731 104: "state not recoverable", 1737 {100, "EPROTO", "protocol error"},
1732 105: "previous owner died", 1738 {101, "ETIME", "STREAM ioctl timeout"},
1733 106: "interface output queue is full", 1739 {102, "EOPNOTSUPP", "operation not supported on socket"},
1740 {103, "ENOPOLICY", "policy not found"},
1741 {104, "ENOTRECOVERABLE", "state not recoverable"},
1742 {105, "EOWNERDEAD", "previous owner died"},
1743 {106, "EQFULL", "interface output queue is full"},
1734} 1744}
1735 1745
1736// Signal table 1746// Signal table
1737var signals = [...]string{ 1747var signalList = [...]struct {
1738 1: "hangup", 1748 num syscall.Signal
1739 2: "interrupt", 1749 name string
1740 3: "quit", 1750 desc string
1741 4: "illegal instruction", 1751}{
1742 5: "trace/BPT trap", 1752 {1, "SIGHUP", "hangup"},
1743 6: "abort trap", 1753 {2, "SIGINT", "interrupt"},
1744 7: "EMT trap", 1754 {3, "SIGQUIT", "quit"},
1745 8: "floating point exception", 1755 {4, "SIGILL", "illegal instruction"},
1746 9: "killed", 1756 {5, "SIGTRAP", "trace/BPT trap"},
1747 10: "bus error", 1757 {6, "SIGABRT", "abort trap"},
1748 11: "segmentation fault", 1758 {7, "SIGEMT", "EMT trap"},
1749 12: "bad system call", 1759 {8, "SIGFPE", "floating point exception"},
1750 13: "broken pipe", 1760 {9, "SIGKILL", "killed"},
1751 14: "alarm clock", 1761 {10, "SIGBUS", "bus error"},
1752 15: "terminated", 1762 {11, "SIGSEGV", "segmentation fault"},
1753 16: "urgent I/O condition", 1763 {12, "SIGSYS", "bad system call"},
1754 17: "suspended (signal)", 1764 {13, "SIGPIPE", "broken pipe"},
1755 18: "suspended", 1765 {14, "SIGALRM", "alarm clock"},
1756 19: "continued", 1766 {15, "SIGTERM", "terminated"},
1757 20: "child exited", 1767 {16, "SIGURG", "urgent I/O condition"},
1758 21: "stopped (tty input)", 1768 {17, "SIGSTOP", "suspended (signal)"},
1759 22: "stopped (tty output)", 1769 {18, "SIGTSTP", "suspended"},
1760 23: "I/O possible", 1770 {19, "SIGCONT", "continued"},
1761 24: "cputime limit exceeded", 1771 {20, "SIGCHLD", "child exited"},
1762 25: "filesize limit exceeded", 1772 {21, "SIGTTIN", "stopped (tty input)"},
1763 26: "virtual timer expired", 1773 {22, "SIGTTOU", "stopped (tty output)"},
1764 27: "profiling timer expired", 1774 {23, "SIGIO", "I/O possible"},
1765 28: "window size changes", 1775 {24, "SIGXCPU", "cputime limit exceeded"},
1766 29: "information request", 1776 {25, "SIGXFSZ", "filesize limit exceeded"},
1767 30: "user defined signal 1", 1777 {26, "SIGVTALRM", "virtual timer expired"},
1768 31: "user defined signal 2", 1778 {27, "SIGPROF", "profiling timer expired"},
1779 {28, "SIGWINCH", "window size changes"},
1780 {29, "SIGINFO", "information request"},
1781 {30, "SIGUSR1", "user defined signal 1"},
1782 {31, "SIGUSR2", "user defined signal 2"},
1769} 1783}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
index 1a51c96..8fe5547 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
@@ -1473,6 +1473,12 @@ const (
1473 WORDSIZE = 0x40 1473 WORDSIZE = 0x40
1474 WSTOPPED = 0x8 1474 WSTOPPED = 0x8
1475 WUNTRACED = 0x2 1475 WUNTRACED = 0x2
1476 XATTR_CREATE = 0x2
1477 XATTR_NODEFAULT = 0x10
1478 XATTR_NOFOLLOW = 0x1
1479 XATTR_NOSECURITY = 0x8
1480 XATTR_REPLACE = 0x4
1481 XATTR_SHOWCOMPRESSION = 0x20
1476) 1482)
1477 1483
1478// Errors 1484// Errors
@@ -1624,146 +1630,154 @@ const (
1624) 1630)
1625 1631
1626// Error table 1632// Error table
1627var errors = [...]string{ 1633var errorList = [...]struct {
1628 1: "operation not permitted", 1634 num syscall.Errno
1629 2: "no such file or directory", 1635 name string
1630 3: "no such process", 1636 desc string
1631 4: "interrupted system call", 1637}{
1632 5: "input/output error", 1638 {1, "EPERM", "operation not permitted"},
1633 6: "device not configured", 1639 {2, "ENOENT", "no such file or directory"},
1634 7: "argument list too long", 1640 {3, "ESRCH", "no such process"},
1635 8: "exec format error", 1641 {4, "EINTR", "interrupted system call"},
1636 9: "bad file descriptor", 1642 {5, "EIO", "input/output error"},
1637 10: "no child processes", 1643 {6, "ENXIO", "device not configured"},
1638 11: "resource deadlock avoided", 1644 {7, "E2BIG", "argument list too long"},
1639 12: "cannot allocate memory", 1645 {8, "ENOEXEC", "exec format error"},
1640 13: "permission denied", 1646 {9, "EBADF", "bad file descriptor"},
1641 14: "bad address", 1647 {10, "ECHILD", "no child processes"},
1642 15: "block device required", 1648 {11, "EDEADLK", "resource deadlock avoided"},
1643 16: "resource busy", 1649 {12, "ENOMEM", "cannot allocate memory"},
1644 17: "file exists", 1650 {13, "EACCES", "permission denied"},
1645 18: "cross-device link", 1651 {14, "EFAULT", "bad address"},
1646 19: "operation not supported by device", 1652 {15, "ENOTBLK", "block device required"},
1647 20: "not a directory", 1653 {16, "EBUSY", "resource busy"},
1648 21: "is a directory", 1654 {17, "EEXIST", "file exists"},
1649 22: "invalid argument", 1655 {18, "EXDEV", "cross-device link"},
1650 23: "too many open files in system", 1656 {19, "ENODEV", "operation not supported by device"},
1651 24: "too many open files", 1657 {20, "ENOTDIR", "not a directory"},
1652 25: "inappropriate ioctl for device", 1658 {21, "EISDIR", "is a directory"},
1653 26: "text file busy", 1659 {22, "EINVAL", "invalid argument"},
1654 27: "file too large", 1660 {23, "ENFILE", "too many open files in system"},
1655 28: "no space left on device", 1661 {24, "EMFILE", "too many open files"},
1656 29: "illegal seek", 1662 {25, "ENOTTY", "inappropriate ioctl for device"},
1657 30: "read-only file system", 1663 {26, "ETXTBSY", "text file busy"},
1658 31: "too many links", 1664 {27, "EFBIG", "file too large"},
1659 32: "broken pipe", 1665 {28, "ENOSPC", "no space left on device"},
1660 33: "numerical argument out of domain", 1666 {29, "ESPIPE", "illegal seek"},
1661 34: "result too large", 1667 {30, "EROFS", "read-only file system"},
1662 35: "resource temporarily unavailable", 1668 {31, "EMLINK", "too many links"},
1663 36: "operation now in progress", 1669 {32, "EPIPE", "broken pipe"},
1664 37: "operation already in progress", 1670 {33, "EDOM", "numerical argument out of domain"},
1665 38: "socket operation on non-socket", 1671 {34, "ERANGE", "result too large"},
1666 39: "destination address required", 1672 {35, "EAGAIN", "resource temporarily unavailable"},
1667 40: "message too long", 1673 {36, "EINPROGRESS", "operation now in progress"},
1668 41: "protocol wrong type for socket", 1674 {37, "EALREADY", "operation already in progress"},
1669 42: "protocol not available", 1675 {38, "ENOTSOCK", "socket operation on non-socket"},
1670 43: "protocol not supported", 1676 {39, "EDESTADDRREQ", "destination address required"},
1671 44: "socket type not supported", 1677 {40, "EMSGSIZE", "message too long"},
1672 45: "operation not supported", 1678 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1673 46: "protocol family not supported", 1679 {42, "ENOPROTOOPT", "protocol not available"},
1674 47: "address family not supported by protocol family", 1680 {43, "EPROTONOSUPPORT", "protocol not supported"},
1675 48: "address already in use", 1681 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1676 49: "can't assign requested address", 1682 {45, "ENOTSUP", "operation not supported"},
1677 50: "network is down", 1683 {46, "EPFNOSUPPORT", "protocol family not supported"},
1678 51: "network is unreachable", 1684 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1679 52: "network dropped connection on reset", 1685 {48, "EADDRINUSE", "address already in use"},
1680 53: "software caused connection abort", 1686 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1681 54: "connection reset by peer", 1687 {50, "ENETDOWN", "network is down"},
1682 55: "no buffer space available", 1688 {51, "ENETUNREACH", "network is unreachable"},
1683 56: "socket is already connected", 1689 {52, "ENETRESET", "network dropped connection on reset"},
1684 57: "socket is not connected", 1690 {53, "ECONNABORTED", "software caused connection abort"},
1685 58: "can't send after socket shutdown", 1691 {54, "ECONNRESET", "connection reset by peer"},
1686 59: "too many references: can't splice", 1692 {55, "ENOBUFS", "no buffer space available"},
1687 60: "operation timed out", 1693 {56, "EISCONN", "socket is already connected"},
1688 61: "connection refused", 1694 {57, "ENOTCONN", "socket is not connected"},
1689 62: "too many levels of symbolic links", 1695 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1690 63: "file name too long", 1696 {59, "ETOOMANYREFS", "too many references: can't splice"},
1691 64: "host is down", 1697 {60, "ETIMEDOUT", "operation timed out"},
1692 65: "no route to host", 1698 {61, "ECONNREFUSED", "connection refused"},
1693 66: "directory not empty", 1699 {62, "ELOOP", "too many levels of symbolic links"},
1694 67: "too many processes", 1700 {63, "ENAMETOOLONG", "file name too long"},
1695 68: "too many users", 1701 {64, "EHOSTDOWN", "host is down"},
1696 69: "disc quota exceeded", 1702 {65, "EHOSTUNREACH", "no route to host"},
1697 70: "stale NFS file handle", 1703 {66, "ENOTEMPTY", "directory not empty"},
1698 71: "too many levels of remote in path", 1704 {67, "EPROCLIM", "too many processes"},
1699 72: "RPC struct is bad", 1705 {68, "EUSERS", "too many users"},
1700 73: "RPC version wrong", 1706 {69, "EDQUOT", "disc quota exceeded"},
1701 74: "RPC prog. not avail", 1707 {70, "ESTALE", "stale NFS file handle"},
1702 75: "program version wrong", 1708 {71, "EREMOTE", "too many levels of remote in path"},
1703 76: "bad procedure for program", 1709 {72, "EBADRPC", "RPC struct is bad"},
1704 77: "no locks available", 1710 {73, "ERPCMISMATCH", "RPC version wrong"},
1705 78: "function not implemented", 1711 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1706 79: "inappropriate file type or format", 1712 {75, "EPROGMISMATCH", "program version wrong"},
1707 80: "authentication error", 1713 {76, "EPROCUNAVAIL", "bad procedure for program"},
1708 81: "need authenticator", 1714 {77, "ENOLCK", "no locks available"},
1709 82: "device power is off", 1715 {78, "ENOSYS", "function not implemented"},
1710 83: "device error", 1716 {79, "EFTYPE", "inappropriate file type or format"},
1711 84: "value too large to be stored in data type", 1717 {80, "EAUTH", "authentication error"},
1712 85: "bad executable (or shared library)", 1718 {81, "ENEEDAUTH", "need authenticator"},
1713 86: "bad CPU type in executable", 1719 {82, "EPWROFF", "device power is off"},
1714 87: "shared library version mismatch", 1720 {83, "EDEVERR", "device error"},
1715 88: "malformed Mach-o file", 1721 {84, "EOVERFLOW", "value too large to be stored in data type"},
1716 89: "operation canceled", 1722 {85, "EBADEXEC", "bad executable (or shared library)"},
1717 90: "identifier removed", 1723 {86, "EBADARCH", "bad CPU type in executable"},
1718 91: "no message of desired type", 1724 {87, "ESHLIBVERS", "shared library version mismatch"},
1719 92: "illegal byte sequence", 1725 {88, "EBADMACHO", "malformed Mach-o file"},
1720 93: "attribute not found", 1726 {89, "ECANCELED", "operation canceled"},
1721 94: "bad message", 1727 {90, "EIDRM", "identifier removed"},
1722 95: "EMULTIHOP (Reserved)", 1728 {91, "ENOMSG", "no message of desired type"},
1723 96: "no message available on STREAM", 1729 {92, "EILSEQ", "illegal byte sequence"},
1724 97: "ENOLINK (Reserved)", 1730 {93, "ENOATTR", "attribute not found"},
1725 98: "no STREAM resources", 1731 {94, "EBADMSG", "bad message"},
1726 99: "not a STREAM", 1732 {95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
1727 100: "protocol error", 1733 {96, "ENODATA", "no message available on STREAM"},
1728 101: "STREAM ioctl timeout", 1734 {97, "ENOLINK", "ENOLINK (Reserved)"},
1729 102: "operation not supported on socket", 1735 {98, "ENOSR", "no STREAM resources"},
1730 103: "policy not found", 1736 {99, "ENOSTR", "not a STREAM"},
1731 104: "state not recoverable", 1737 {100, "EPROTO", "protocol error"},
1732 105: "previous owner died", 1738 {101, "ETIME", "STREAM ioctl timeout"},
1733 106: "interface output queue is full", 1739 {102, "EOPNOTSUPP", "operation not supported on socket"},
1740 {103, "ENOPOLICY", "policy not found"},
1741 {104, "ENOTRECOVERABLE", "state not recoverable"},
1742 {105, "EOWNERDEAD", "previous owner died"},
1743 {106, "EQFULL", "interface output queue is full"},
1734} 1744}
1735 1745
1736// Signal table 1746// Signal table
1737var signals = [...]string{ 1747var signalList = [...]struct {
1738 1: "hangup", 1748 num syscall.Signal
1739 2: "interrupt", 1749 name string
1740 3: "quit", 1750 desc string
1741 4: "illegal instruction", 1751}{
1742 5: "trace/BPT trap", 1752 {1, "SIGHUP", "hangup"},
1743 6: "abort trap", 1753 {2, "SIGINT", "interrupt"},
1744 7: "EMT trap", 1754 {3, "SIGQUIT", "quit"},
1745 8: "floating point exception", 1755 {4, "SIGILL", "illegal instruction"},
1746 9: "killed", 1756 {5, "SIGTRAP", "trace/BPT trap"},
1747 10: "bus error", 1757 {6, "SIGABRT", "abort trap"},
1748 11: "segmentation fault", 1758 {7, "SIGEMT", "EMT trap"},
1749 12: "bad system call", 1759 {8, "SIGFPE", "floating point exception"},
1750 13: "broken pipe", 1760 {9, "SIGKILL", "killed"},
1751 14: "alarm clock", 1761 {10, "SIGBUS", "bus error"},
1752 15: "terminated", 1762 {11, "SIGSEGV", "segmentation fault"},
1753 16: "urgent I/O condition", 1763 {12, "SIGSYS", "bad system call"},
1754 17: "suspended (signal)", 1764 {13, "SIGPIPE", "broken pipe"},
1755 18: "suspended", 1765 {14, "SIGALRM", "alarm clock"},
1756 19: "continued", 1766 {15, "SIGTERM", "terminated"},
1757 20: "child exited", 1767 {16, "SIGURG", "urgent I/O condition"},
1758 21: "stopped (tty input)", 1768 {17, "SIGSTOP", "suspended (signal)"},
1759 22: "stopped (tty output)", 1769 {18, "SIGTSTP", "suspended"},
1760 23: "I/O possible", 1770 {19, "SIGCONT", "continued"},
1761 24: "cputime limit exceeded", 1771 {20, "SIGCHLD", "child exited"},
1762 25: "filesize limit exceeded", 1772 {21, "SIGTTIN", "stopped (tty input)"},
1763 26: "virtual timer expired", 1773 {22, "SIGTTOU", "stopped (tty output)"},
1764 27: "profiling timer expired", 1774 {23, "SIGIO", "I/O possible"},
1765 28: "window size changes", 1775 {24, "SIGXCPU", "cputime limit exceeded"},
1766 29: "information request", 1776 {25, "SIGXFSZ", "filesize limit exceeded"},
1767 30: "user defined signal 1", 1777 {26, "SIGVTALRM", "virtual timer expired"},
1768 31: "user defined signal 2", 1778 {27, "SIGPROF", "profiling timer expired"},
1779 {28, "SIGWINCH", "window size changes"},
1780 {29, "SIGINFO", "information request"},
1781 {30, "SIGUSR1", "user defined signal 1"},
1782 {31, "SIGUSR2", "user defined signal 2"},
1769} 1783}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go
index fa135b1..7a97777 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go
@@ -1473,6 +1473,12 @@ const (
1473 WORDSIZE = 0x40 1473 WORDSIZE = 0x40
1474 WSTOPPED = 0x8 1474 WSTOPPED = 0x8
1475 WUNTRACED = 0x2 1475 WUNTRACED = 0x2
1476 XATTR_CREATE = 0x2
1477 XATTR_NODEFAULT = 0x10
1478 XATTR_NOFOLLOW = 0x1
1479 XATTR_NOSECURITY = 0x8
1480 XATTR_REPLACE = 0x4
1481 XATTR_SHOWCOMPRESSION = 0x20
1476) 1482)
1477 1483
1478// Errors 1484// Errors
@@ -1624,146 +1630,154 @@ const (
1624) 1630)
1625 1631
1626// Error table 1632// Error table
1627var errors = [...]string{ 1633var errorList = [...]struct {
1628 1: "operation not permitted", 1634 num syscall.Errno
1629 2: "no such file or directory", 1635 name string
1630 3: "no such process", 1636 desc string
1631 4: "interrupted system call", 1637}{
1632 5: "input/output error", 1638 {1, "EPERM", "operation not permitted"},
1633 6: "device not configured", 1639 {2, "ENOENT", "no such file or directory"},
1634 7: "argument list too long", 1640 {3, "ESRCH", "no such process"},
1635 8: "exec format error", 1641 {4, "EINTR", "interrupted system call"},
1636 9: "bad file descriptor", 1642 {5, "EIO", "input/output error"},
1637 10: "no child processes", 1643 {6, "ENXIO", "device not configured"},
1638 11: "resource deadlock avoided", 1644 {7, "E2BIG", "argument list too long"},
1639 12: "cannot allocate memory", 1645 {8, "ENOEXEC", "exec format error"},
1640 13: "permission denied", 1646 {9, "EBADF", "bad file descriptor"},
1641 14: "bad address", 1647 {10, "ECHILD", "no child processes"},
1642 15: "block device required", 1648 {11, "EDEADLK", "resource deadlock avoided"},
1643 16: "resource busy", 1649 {12, "ENOMEM", "cannot allocate memory"},
1644 17: "file exists", 1650 {13, "EACCES", "permission denied"},
1645 18: "cross-device link", 1651 {14, "EFAULT", "bad address"},
1646 19: "operation not supported by device", 1652 {15, "ENOTBLK", "block device required"},
1647 20: "not a directory", 1653 {16, "EBUSY", "resource busy"},
1648 21: "is a directory", 1654 {17, "EEXIST", "file exists"},
1649 22: "invalid argument", 1655 {18, "EXDEV", "cross-device link"},
1650 23: "too many open files in system", 1656 {19, "ENODEV", "operation not supported by device"},
1651 24: "too many open files", 1657 {20, "ENOTDIR", "not a directory"},
1652 25: "inappropriate ioctl for device", 1658 {21, "EISDIR", "is a directory"},
1653 26: "text file busy", 1659 {22, "EINVAL", "invalid argument"},
1654 27: "file too large", 1660 {23, "ENFILE", "too many open files in system"},
1655 28: "no space left on device", 1661 {24, "EMFILE", "too many open files"},
1656 29: "illegal seek", 1662 {25, "ENOTTY", "inappropriate ioctl for device"},
1657 30: "read-only file system", 1663 {26, "ETXTBSY", "text file busy"},
1658 31: "too many links", 1664 {27, "EFBIG", "file too large"},
1659 32: "broken pipe", 1665 {28, "ENOSPC", "no space left on device"},
1660 33: "numerical argument out of domain", 1666 {29, "ESPIPE", "illegal seek"},
1661 34: "result too large", 1667 {30, "EROFS", "read-only file system"},
1662 35: "resource temporarily unavailable", 1668 {31, "EMLINK", "too many links"},
1663 36: "operation now in progress", 1669 {32, "EPIPE", "broken pipe"},
1664 37: "operation already in progress", 1670 {33, "EDOM", "numerical argument out of domain"},
1665 38: "socket operation on non-socket", 1671 {34, "ERANGE", "result too large"},
1666 39: "destination address required", 1672 {35, "EAGAIN", "resource temporarily unavailable"},
1667 40: "message too long", 1673 {36, "EINPROGRESS", "operation now in progress"},
1668 41: "protocol wrong type for socket", 1674 {37, "EALREADY", "operation already in progress"},
1669 42: "protocol not available", 1675 {38, "ENOTSOCK", "socket operation on non-socket"},
1670 43: "protocol not supported", 1676 {39, "EDESTADDRREQ", "destination address required"},
1671 44: "socket type not supported", 1677 {40, "EMSGSIZE", "message too long"},
1672 45: "operation not supported", 1678 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1673 46: "protocol family not supported", 1679 {42, "ENOPROTOOPT", "protocol not available"},
1674 47: "address family not supported by protocol family", 1680 {43, "EPROTONOSUPPORT", "protocol not supported"},
1675 48: "address already in use", 1681 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1676 49: "can't assign requested address", 1682 {45, "ENOTSUP", "operation not supported"},
1677 50: "network is down", 1683 {46, "EPFNOSUPPORT", "protocol family not supported"},
1678 51: "network is unreachable", 1684 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1679 52: "network dropped connection on reset", 1685 {48, "EADDRINUSE", "address already in use"},
1680 53: "software caused connection abort", 1686 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1681 54: "connection reset by peer", 1687 {50, "ENETDOWN", "network is down"},
1682 55: "no buffer space available", 1688 {51, "ENETUNREACH", "network is unreachable"},
1683 56: "socket is already connected", 1689 {52, "ENETRESET", "network dropped connection on reset"},
1684 57: "socket is not connected", 1690 {53, "ECONNABORTED", "software caused connection abort"},
1685 58: "can't send after socket shutdown", 1691 {54, "ECONNRESET", "connection reset by peer"},
1686 59: "too many references: can't splice", 1692 {55, "ENOBUFS", "no buffer space available"},
1687 60: "operation timed out", 1693 {56, "EISCONN", "socket is already connected"},
1688 61: "connection refused", 1694 {57, "ENOTCONN", "socket is not connected"},
1689 62: "too many levels of symbolic links", 1695 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1690 63: "file name too long", 1696 {59, "ETOOMANYREFS", "too many references: can't splice"},
1691 64: "host is down", 1697 {60, "ETIMEDOUT", "operation timed out"},
1692 65: "no route to host", 1698 {61, "ECONNREFUSED", "connection refused"},
1693 66: "directory not empty", 1699 {62, "ELOOP", "too many levels of symbolic links"},
1694 67: "too many processes", 1700 {63, "ENAMETOOLONG", "file name too long"},
1695 68: "too many users", 1701 {64, "EHOSTDOWN", "host is down"},
1696 69: "disc quota exceeded", 1702 {65, "EHOSTUNREACH", "no route to host"},
1697 70: "stale NFS file handle", 1703 {66, "ENOTEMPTY", "directory not empty"},
1698 71: "too many levels of remote in path", 1704 {67, "EPROCLIM", "too many processes"},
1699 72: "RPC struct is bad", 1705 {68, "EUSERS", "too many users"},
1700 73: "RPC version wrong", 1706 {69, "EDQUOT", "disc quota exceeded"},
1701 74: "RPC prog. not avail", 1707 {70, "ESTALE", "stale NFS file handle"},
1702 75: "program version wrong", 1708 {71, "EREMOTE", "too many levels of remote in path"},
1703 76: "bad procedure for program", 1709 {72, "EBADRPC", "RPC struct is bad"},
1704 77: "no locks available", 1710 {73, "ERPCMISMATCH", "RPC version wrong"},
1705 78: "function not implemented", 1711 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1706 79: "inappropriate file type or format", 1712 {75, "EPROGMISMATCH", "program version wrong"},
1707 80: "authentication error", 1713 {76, "EPROCUNAVAIL", "bad procedure for program"},
1708 81: "need authenticator", 1714 {77, "ENOLCK", "no locks available"},
1709 82: "device power is off", 1715 {78, "ENOSYS", "function not implemented"},
1710 83: "device error", 1716 {79, "EFTYPE", "inappropriate file type or format"},
1711 84: "value too large to be stored in data type", 1717 {80, "EAUTH", "authentication error"},
1712 85: "bad executable (or shared library)", 1718 {81, "ENEEDAUTH", "need authenticator"},
1713 86: "bad CPU type in executable", 1719 {82, "EPWROFF", "device power is off"},
1714 87: "shared library version mismatch", 1720 {83, "EDEVERR", "device error"},
1715 88: "malformed Mach-o file", 1721 {84, "EOVERFLOW", "value too large to be stored in data type"},
1716 89: "operation canceled", 1722 {85, "EBADEXEC", "bad executable (or shared library)"},
1717 90: "identifier removed", 1723 {86, "EBADARCH", "bad CPU type in executable"},
1718 91: "no message of desired type", 1724 {87, "ESHLIBVERS", "shared library version mismatch"},
1719 92: "illegal byte sequence", 1725 {88, "EBADMACHO", "malformed Mach-o file"},
1720 93: "attribute not found", 1726 {89, "ECANCELED", "operation canceled"},
1721 94: "bad message", 1727 {90, "EIDRM", "identifier removed"},
1722 95: "EMULTIHOP (Reserved)", 1728 {91, "ENOMSG", "no message of desired type"},
1723 96: "no message available on STREAM", 1729 {92, "EILSEQ", "illegal byte sequence"},
1724 97: "ENOLINK (Reserved)", 1730 {93, "ENOATTR", "attribute not found"},
1725 98: "no STREAM resources", 1731 {94, "EBADMSG", "bad message"},
1726 99: "not a STREAM", 1732 {95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
1727 100: "protocol error", 1733 {96, "ENODATA", "no message available on STREAM"},
1728 101: "STREAM ioctl timeout", 1734 {97, "ENOLINK", "ENOLINK (Reserved)"},
1729 102: "operation not supported on socket", 1735 {98, "ENOSR", "no STREAM resources"},
1730 103: "policy not found", 1736 {99, "ENOSTR", "not a STREAM"},
1731 104: "state not recoverable", 1737 {100, "EPROTO", "protocol error"},
1732 105: "previous owner died", 1738 {101, "ETIME", "STREAM ioctl timeout"},
1733 106: "interface output queue is full", 1739 {102, "EOPNOTSUPP", "operation not supported on socket"},
1740 {103, "ENOPOLICY", "policy not found"},
1741 {104, "ENOTRECOVERABLE", "state not recoverable"},
1742 {105, "EOWNERDEAD", "previous owner died"},
1743 {106, "EQFULL", "interface output queue is full"},
1734} 1744}
1735 1745
1736// Signal table 1746// Signal table
1737var signals = [...]string{ 1747var signalList = [...]struct {
1738 1: "hangup", 1748 num syscall.Signal
1739 2: "interrupt", 1749 name string
1740 3: "quit", 1750 desc string
1741 4: "illegal instruction", 1751}{
1742 5: "trace/BPT trap", 1752 {1, "SIGHUP", "hangup"},
1743 6: "abort trap", 1753 {2, "SIGINT", "interrupt"},
1744 7: "EMT trap", 1754 {3, "SIGQUIT", "quit"},
1745 8: "floating point exception", 1755 {4, "SIGILL", "illegal instruction"},
1746 9: "killed", 1756 {5, "SIGTRAP", "trace/BPT trap"},
1747 10: "bus error", 1757 {6, "SIGABRT", "abort trap"},
1748 11: "segmentation fault", 1758 {7, "SIGEMT", "EMT trap"},
1749 12: "bad system call", 1759 {8, "SIGFPE", "floating point exception"},
1750 13: "broken pipe", 1760 {9, "SIGKILL", "killed"},
1751 14: "alarm clock", 1761 {10, "SIGBUS", "bus error"},
1752 15: "terminated", 1762 {11, "SIGSEGV", "segmentation fault"},
1753 16: "urgent I/O condition", 1763 {12, "SIGSYS", "bad system call"},
1754 17: "suspended (signal)", 1764 {13, "SIGPIPE", "broken pipe"},
1755 18: "suspended", 1765 {14, "SIGALRM", "alarm clock"},
1756 19: "continued", 1766 {15, "SIGTERM", "terminated"},
1757 20: "child exited", 1767 {16, "SIGURG", "urgent I/O condition"},
1758 21: "stopped (tty input)", 1768 {17, "SIGSTOP", "suspended (signal)"},
1759 22: "stopped (tty output)", 1769 {18, "SIGTSTP", "suspended"},
1760 23: "I/O possible", 1770 {19, "SIGCONT", "continued"},
1761 24: "cputime limit exceeded", 1771 {20, "SIGCHLD", "child exited"},
1762 25: "filesize limit exceeded", 1772 {21, "SIGTTIN", "stopped (tty input)"},
1763 26: "virtual timer expired", 1773 {22, "SIGTTOU", "stopped (tty output)"},
1764 27: "profiling timer expired", 1774 {23, "SIGIO", "I/O possible"},
1765 28: "window size changes", 1775 {24, "SIGXCPU", "cputime limit exceeded"},
1766 29: "information request", 1776 {25, "SIGXFSZ", "filesize limit exceeded"},
1767 30: "user defined signal 1", 1777 {26, "SIGVTALRM", "virtual timer expired"},
1768 31: "user defined signal 2", 1778 {27, "SIGPROF", "profiling timer expired"},
1779 {28, "SIGWINCH", "window size changes"},
1780 {29, "SIGINFO", "information request"},
1781 {30, "SIGUSR1", "user defined signal 1"},
1782 {31, "SIGUSR2", "user defined signal 2"},
1769} 1783}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
index 6419c65..6d56d8a 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
@@ -1473,6 +1473,12 @@ const (
1473 WORDSIZE = 0x40 1473 WORDSIZE = 0x40
1474 WSTOPPED = 0x8 1474 WSTOPPED = 0x8
1475 WUNTRACED = 0x2 1475 WUNTRACED = 0x2
1476 XATTR_CREATE = 0x2
1477 XATTR_NODEFAULT = 0x10
1478 XATTR_NOFOLLOW = 0x1
1479 XATTR_NOSECURITY = 0x8
1480 XATTR_REPLACE = 0x4
1481 XATTR_SHOWCOMPRESSION = 0x20
1476) 1482)
1477 1483
1478// Errors 1484// Errors
@@ -1624,146 +1630,154 @@ const (
1624) 1630)
1625 1631
1626// Error table 1632// Error table
1627var errors = [...]string{ 1633var errorList = [...]struct {
1628 1: "operation not permitted", 1634 num syscall.Errno
1629 2: "no such file or directory", 1635 name string
1630 3: "no such process", 1636 desc string
1631 4: "interrupted system call", 1637}{
1632 5: "input/output error", 1638 {1, "EPERM", "operation not permitted"},
1633 6: "device not configured", 1639 {2, "ENOENT", "no such file or directory"},
1634 7: "argument list too long", 1640 {3, "ESRCH", "no such process"},
1635 8: "exec format error", 1641 {4, "EINTR", "interrupted system call"},
1636 9: "bad file descriptor", 1642 {5, "EIO", "input/output error"},
1637 10: "no child processes", 1643 {6, "ENXIO", "device not configured"},
1638 11: "resource deadlock avoided", 1644 {7, "E2BIG", "argument list too long"},
1639 12: "cannot allocate memory", 1645 {8, "ENOEXEC", "exec format error"},
1640 13: "permission denied", 1646 {9, "EBADF", "bad file descriptor"},
1641 14: "bad address", 1647 {10, "ECHILD", "no child processes"},
1642 15: "block device required", 1648 {11, "EDEADLK", "resource deadlock avoided"},
1643 16: "resource busy", 1649 {12, "ENOMEM", "cannot allocate memory"},
1644 17: "file exists", 1650 {13, "EACCES", "permission denied"},
1645 18: "cross-device link", 1651 {14, "EFAULT", "bad address"},
1646 19: "operation not supported by device", 1652 {15, "ENOTBLK", "block device required"},
1647 20: "not a directory", 1653 {16, "EBUSY", "resource busy"},
1648 21: "is a directory", 1654 {17, "EEXIST", "file exists"},
1649 22: "invalid argument", 1655 {18, "EXDEV", "cross-device link"},
1650 23: "too many open files in system", 1656 {19, "ENODEV", "operation not supported by device"},
1651 24: "too many open files", 1657 {20, "ENOTDIR", "not a directory"},
1652 25: "inappropriate ioctl for device", 1658 {21, "EISDIR", "is a directory"},
1653 26: "text file busy", 1659 {22, "EINVAL", "invalid argument"},
1654 27: "file too large", 1660 {23, "ENFILE", "too many open files in system"},
1655 28: "no space left on device", 1661 {24, "EMFILE", "too many open files"},
1656 29: "illegal seek", 1662 {25, "ENOTTY", "inappropriate ioctl for device"},
1657 30: "read-only file system", 1663 {26, "ETXTBSY", "text file busy"},
1658 31: "too many links", 1664 {27, "EFBIG", "file too large"},
1659 32: "broken pipe", 1665 {28, "ENOSPC", "no space left on device"},
1660 33: "numerical argument out of domain", 1666 {29, "ESPIPE", "illegal seek"},
1661 34: "result too large", 1667 {30, "EROFS", "read-only file system"},
1662 35: "resource temporarily unavailable", 1668 {31, "EMLINK", "too many links"},
1663 36: "operation now in progress", 1669 {32, "EPIPE", "broken pipe"},
1664 37: "operation already in progress", 1670 {33, "EDOM", "numerical argument out of domain"},
1665 38: "socket operation on non-socket", 1671 {34, "ERANGE", "result too large"},
1666 39: "destination address required", 1672 {35, "EAGAIN", "resource temporarily unavailable"},
1667 40: "message too long", 1673 {36, "EINPROGRESS", "operation now in progress"},
1668 41: "protocol wrong type for socket", 1674 {37, "EALREADY", "operation already in progress"},
1669 42: "protocol not available", 1675 {38, "ENOTSOCK", "socket operation on non-socket"},
1670 43: "protocol not supported", 1676 {39, "EDESTADDRREQ", "destination address required"},
1671 44: "socket type not supported", 1677 {40, "EMSGSIZE", "message too long"},
1672 45: "operation not supported", 1678 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1673 46: "protocol family not supported", 1679 {42, "ENOPROTOOPT", "protocol not available"},
1674 47: "address family not supported by protocol family", 1680 {43, "EPROTONOSUPPORT", "protocol not supported"},
1675 48: "address already in use", 1681 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1676 49: "can't assign requested address", 1682 {45, "ENOTSUP", "operation not supported"},
1677 50: "network is down", 1683 {46, "EPFNOSUPPORT", "protocol family not supported"},
1678 51: "network is unreachable", 1684 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1679 52: "network dropped connection on reset", 1685 {48, "EADDRINUSE", "address already in use"},
1680 53: "software caused connection abort", 1686 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1681 54: "connection reset by peer", 1687 {50, "ENETDOWN", "network is down"},
1682 55: "no buffer space available", 1688 {51, "ENETUNREACH", "network is unreachable"},
1683 56: "socket is already connected", 1689 {52, "ENETRESET", "network dropped connection on reset"},
1684 57: "socket is not connected", 1690 {53, "ECONNABORTED", "software caused connection abort"},
1685 58: "can't send after socket shutdown", 1691 {54, "ECONNRESET", "connection reset by peer"},
1686 59: "too many references: can't splice", 1692 {55, "ENOBUFS", "no buffer space available"},
1687 60: "operation timed out", 1693 {56, "EISCONN", "socket is already connected"},
1688 61: "connection refused", 1694 {57, "ENOTCONN", "socket is not connected"},
1689 62: "too many levels of symbolic links", 1695 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1690 63: "file name too long", 1696 {59, "ETOOMANYREFS", "too many references: can't splice"},
1691 64: "host is down", 1697 {60, "ETIMEDOUT", "operation timed out"},
1692 65: "no route to host", 1698 {61, "ECONNREFUSED", "connection refused"},
1693 66: "directory not empty", 1699 {62, "ELOOP", "too many levels of symbolic links"},
1694 67: "too many processes", 1700 {63, "ENAMETOOLONG", "file name too long"},
1695 68: "too many users", 1701 {64, "EHOSTDOWN", "host is down"},
1696 69: "disc quota exceeded", 1702 {65, "EHOSTUNREACH", "no route to host"},
1697 70: "stale NFS file handle", 1703 {66, "ENOTEMPTY", "directory not empty"},
1698 71: "too many levels of remote in path", 1704 {67, "EPROCLIM", "too many processes"},
1699 72: "RPC struct is bad", 1705 {68, "EUSERS", "too many users"},
1700 73: "RPC version wrong", 1706 {69, "EDQUOT", "disc quota exceeded"},
1701 74: "RPC prog. not avail", 1707 {70, "ESTALE", "stale NFS file handle"},
1702 75: "program version wrong", 1708 {71, "EREMOTE", "too many levels of remote in path"},
1703 76: "bad procedure for program", 1709 {72, "EBADRPC", "RPC struct is bad"},
1704 77: "no locks available", 1710 {73, "ERPCMISMATCH", "RPC version wrong"},
1705 78: "function not implemented", 1711 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1706 79: "inappropriate file type or format", 1712 {75, "EPROGMISMATCH", "program version wrong"},
1707 80: "authentication error", 1713 {76, "EPROCUNAVAIL", "bad procedure for program"},
1708 81: "need authenticator", 1714 {77, "ENOLCK", "no locks available"},
1709 82: "device power is off", 1715 {78, "ENOSYS", "function not implemented"},
1710 83: "device error", 1716 {79, "EFTYPE", "inappropriate file type or format"},
1711 84: "value too large to be stored in data type", 1717 {80, "EAUTH", "authentication error"},
1712 85: "bad executable (or shared library)", 1718 {81, "ENEEDAUTH", "need authenticator"},
1713 86: "bad CPU type in executable", 1719 {82, "EPWROFF", "device power is off"},
1714 87: "shared library version mismatch", 1720 {83, "EDEVERR", "device error"},
1715 88: "malformed Mach-o file", 1721 {84, "EOVERFLOW", "value too large to be stored in data type"},
1716 89: "operation canceled", 1722 {85, "EBADEXEC", "bad executable (or shared library)"},
1717 90: "identifier removed", 1723 {86, "EBADARCH", "bad CPU type in executable"},
1718 91: "no message of desired type", 1724 {87, "ESHLIBVERS", "shared library version mismatch"},
1719 92: "illegal byte sequence", 1725 {88, "EBADMACHO", "malformed Mach-o file"},
1720 93: "attribute not found", 1726 {89, "ECANCELED", "operation canceled"},
1721 94: "bad message", 1727 {90, "EIDRM", "identifier removed"},
1722 95: "EMULTIHOP (Reserved)", 1728 {91, "ENOMSG", "no message of desired type"},
1723 96: "no message available on STREAM", 1729 {92, "EILSEQ", "illegal byte sequence"},
1724 97: "ENOLINK (Reserved)", 1730 {93, "ENOATTR", "attribute not found"},
1725 98: "no STREAM resources", 1731 {94, "EBADMSG", "bad message"},
1726 99: "not a STREAM", 1732 {95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
1727 100: "protocol error", 1733 {96, "ENODATA", "no message available on STREAM"},
1728 101: "STREAM ioctl timeout", 1734 {97, "ENOLINK", "ENOLINK (Reserved)"},
1729 102: "operation not supported on socket", 1735 {98, "ENOSR", "no STREAM resources"},
1730 103: "policy not found", 1736 {99, "ENOSTR", "not a STREAM"},
1731 104: "state not recoverable", 1737 {100, "EPROTO", "protocol error"},
1732 105: "previous owner died", 1738 {101, "ETIME", "STREAM ioctl timeout"},
1733 106: "interface output queue is full", 1739 {102, "EOPNOTSUPP", "operation not supported on socket"},
1740 {103, "ENOPOLICY", "policy not found"},
1741 {104, "ENOTRECOVERABLE", "state not recoverable"},
1742 {105, "EOWNERDEAD", "previous owner died"},
1743 {106, "EQFULL", "interface output queue is full"},
1734} 1744}
1735 1745
1736// Signal table 1746// Signal table
1737var signals = [...]string{ 1747var signalList = [...]struct {
1738 1: "hangup", 1748 num syscall.Signal
1739 2: "interrupt", 1749 name string
1740 3: "quit", 1750 desc string
1741 4: "illegal instruction", 1751}{
1742 5: "trace/BPT trap", 1752 {1, "SIGHUP", "hangup"},
1743 6: "abort trap", 1753 {2, "SIGINT", "interrupt"},
1744 7: "EMT trap", 1754 {3, "SIGQUIT", "quit"},
1745 8: "floating point exception", 1755 {4, "SIGILL", "illegal instruction"},
1746 9: "killed", 1756 {5, "SIGTRAP", "trace/BPT trap"},
1747 10: "bus error", 1757 {6, "SIGABRT", "abort trap"},
1748 11: "segmentation fault", 1758 {7, "SIGEMT", "EMT trap"},
1749 12: "bad system call", 1759 {8, "SIGFPE", "floating point exception"},
1750 13: "broken pipe", 1760 {9, "SIGKILL", "killed"},
1751 14: "alarm clock", 1761 {10, "SIGBUS", "bus error"},
1752 15: "terminated", 1762 {11, "SIGSEGV", "segmentation fault"},
1753 16: "urgent I/O condition", 1763 {12, "SIGSYS", "bad system call"},
1754 17: "suspended (signal)", 1764 {13, "SIGPIPE", "broken pipe"},
1755 18: "suspended", 1765 {14, "SIGALRM", "alarm clock"},
1756 19: "continued", 1766 {15, "SIGTERM", "terminated"},
1757 20: "child exited", 1767 {16, "SIGURG", "urgent I/O condition"},
1758 21: "stopped (tty input)", 1768 {17, "SIGSTOP", "suspended (signal)"},
1759 22: "stopped (tty output)", 1769 {18, "SIGTSTP", "suspended"},
1760 23: "I/O possible", 1770 {19, "SIGCONT", "continued"},
1761 24: "cputime limit exceeded", 1771 {20, "SIGCHLD", "child exited"},
1762 25: "filesize limit exceeded", 1772 {21, "SIGTTIN", "stopped (tty input)"},
1763 26: "virtual timer expired", 1773 {22, "SIGTTOU", "stopped (tty output)"},
1764 27: "profiling timer expired", 1774 {23, "SIGIO", "I/O possible"},
1765 28: "window size changes", 1775 {24, "SIGXCPU", "cputime limit exceeded"},
1766 29: "information request", 1776 {25, "SIGXFSZ", "filesize limit exceeded"},
1767 30: "user defined signal 1", 1777 {26, "SIGVTALRM", "virtual timer expired"},
1768 31: "user defined signal 2", 1778 {27, "SIGPROF", "profiling timer expired"},
1779 {28, "SIGWINCH", "window size changes"},
1780 {29, "SIGINFO", "information request"},
1781 {30, "SIGUSR1", "user defined signal 1"},
1782 {31, "SIGUSR2", "user defined signal 2"},
1769} 1783}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
index d960155..bbe6089 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
@@ -3,7 +3,7 @@
3 3
4// +build amd64,dragonfly 4// +build amd64,dragonfly
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -m64 _const.go 7// cgo -godefs -- -m64 _const.go
8 8
9package unix 9package unix
@@ -880,6 +880,40 @@ const (
880 MAP_VPAGETABLE = 0x2000 880 MAP_VPAGETABLE = 0x2000
881 MCL_CURRENT = 0x1 881 MCL_CURRENT = 0x1
882 MCL_FUTURE = 0x2 882 MCL_FUTURE = 0x2
883 MNT_ASYNC = 0x40
884 MNT_AUTOMOUNTED = 0x20
885 MNT_CMDFLAGS = 0xf0000
886 MNT_DEFEXPORTED = 0x200
887 MNT_DELEXPORT = 0x20000
888 MNT_EXKERB = 0x800
889 MNT_EXPORTANON = 0x400
890 MNT_EXPORTED = 0x100
891 MNT_EXPUBLIC = 0x20000000
892 MNT_EXRDONLY = 0x80
893 MNT_FORCE = 0x80000
894 MNT_IGNORE = 0x800000
895 MNT_LAZY = 0x4
896 MNT_LOCAL = 0x1000
897 MNT_NOATIME = 0x10000000
898 MNT_NOCLUSTERR = 0x40000000
899 MNT_NOCLUSTERW = 0x80000000
900 MNT_NODEV = 0x10
901 MNT_NOEXEC = 0x4
902 MNT_NOSUID = 0x8
903 MNT_NOSYMFOLLOW = 0x400000
904 MNT_NOWAIT = 0x2
905 MNT_QUOTA = 0x2000
906 MNT_RDONLY = 0x1
907 MNT_RELOAD = 0x40000
908 MNT_ROOTFS = 0x4000
909 MNT_SOFTDEP = 0x200000
910 MNT_SUIDDIR = 0x100000
911 MNT_SYNCHRONOUS = 0x2
912 MNT_TRIM = 0x1000000
913 MNT_UPDATE = 0x10000
914 MNT_USER = 0x8000
915 MNT_VISFLAGMASK = 0xf1f0ffff
916 MNT_WAIT = 0x1
883 MSG_CMSG_CLOEXEC = 0x1000 917 MSG_CMSG_CLOEXEC = 0x1000
884 MSG_CTRUNC = 0x20 918 MSG_CTRUNC = 0x20
885 MSG_DONTROUTE = 0x4 919 MSG_DONTROUTE = 0x4
@@ -980,7 +1014,10 @@ const (
980 RLIMIT_CPU = 0x0 1014 RLIMIT_CPU = 0x0
981 RLIMIT_DATA = 0x2 1015 RLIMIT_DATA = 0x2
982 RLIMIT_FSIZE = 0x1 1016 RLIMIT_FSIZE = 0x1
1017 RLIMIT_MEMLOCK = 0x6
983 RLIMIT_NOFILE = 0x8 1018 RLIMIT_NOFILE = 0x8
1019 RLIMIT_NPROC = 0x7
1020 RLIMIT_RSS = 0x5
984 RLIMIT_STACK = 0x3 1021 RLIMIT_STACK = 0x3
985 RLIM_INFINITY = 0x7fffffffffffffff 1022 RLIM_INFINITY = 0x7fffffffffffffff
986 RTAX_AUTHOR = 0x6 1023 RTAX_AUTHOR = 0x6
@@ -1165,6 +1202,36 @@ const (
1165 SO_TIMESTAMP = 0x400 1202 SO_TIMESTAMP = 0x400
1166 SO_TYPE = 0x1008 1203 SO_TYPE = 0x1008
1167 SO_USELOOPBACK = 0x40 1204 SO_USELOOPBACK = 0x40
1205 S_BLKSIZE = 0x200
1206 S_IEXEC = 0x40
1207 S_IFBLK = 0x6000
1208 S_IFCHR = 0x2000
1209 S_IFDB = 0x9000
1210 S_IFDIR = 0x4000
1211 S_IFIFO = 0x1000
1212 S_IFLNK = 0xa000
1213 S_IFMT = 0xf000
1214 S_IFREG = 0x8000
1215 S_IFSOCK = 0xc000
1216 S_IFWHT = 0xe000
1217 S_IREAD = 0x100
1218 S_IRGRP = 0x20
1219 S_IROTH = 0x4
1220 S_IRUSR = 0x100
1221 S_IRWXG = 0x38
1222 S_IRWXO = 0x7
1223 S_IRWXU = 0x1c0
1224 S_ISGID = 0x400
1225 S_ISTXT = 0x200
1226 S_ISUID = 0x800
1227 S_ISVTX = 0x200
1228 S_IWGRP = 0x10
1229 S_IWOTH = 0x2
1230 S_IWRITE = 0x80
1231 S_IWUSR = 0x80
1232 S_IXGRP = 0x8
1233 S_IXOTH = 0x1
1234 S_IXUSR = 0x40
1168 TCIFLUSH = 0x1 1235 TCIFLUSH = 0x1
1169 TCIOFF = 0x3 1236 TCIOFF = 0x3
1170 TCIOFLUSH = 0x3 1237 TCIOFLUSH = 0x3
@@ -1434,142 +1501,150 @@ const (
1434) 1501)
1435 1502
1436// Error table 1503// Error table
1437var errors = [...]string{ 1504var errorList = [...]struct {
1438 1: "operation not permitted", 1505 num syscall.Errno
1439 2: "no such file or directory", 1506 name string
1440 3: "no such process", 1507 desc string
1441 4: "interrupted system call", 1508}{
1442 5: "input/output error", 1509 {1, "EPERM", "operation not permitted"},
1443 6: "device not configured", 1510 {2, "ENOENT", "no such file or directory"},
1444 7: "argument list too long", 1511 {3, "ESRCH", "no such process"},
1445 8: "exec format error", 1512 {4, "EINTR", "interrupted system call"},
1446 9: "bad file descriptor", 1513 {5, "EIO", "input/output error"},
1447 10: "no child processes", 1514 {6, "ENXIO", "device not configured"},
1448 11: "resource deadlock avoided", 1515 {7, "E2BIG", "argument list too long"},
1449 12: "cannot allocate memory", 1516 {8, "ENOEXEC", "exec format error"},
1450 13: "permission denied", 1517 {9, "EBADF", "bad file descriptor"},
1451 14: "bad address", 1518 {10, "ECHILD", "no child processes"},
1452 15: "block device required", 1519 {11, "EDEADLK", "resource deadlock avoided"},
1453 16: "device busy", 1520 {12, "ENOMEM", "cannot allocate memory"},
1454 17: "file exists", 1521 {13, "EACCES", "permission denied"},
1455 18: "cross-device link", 1522 {14, "EFAULT", "bad address"},
1456 19: "operation not supported by device", 1523 {15, "ENOTBLK", "block device required"},
1457 20: "not a directory", 1524 {16, "EBUSY", "device busy"},
1458 21: "is a directory", 1525 {17, "EEXIST", "file exists"},
1459 22: "invalid argument", 1526 {18, "EXDEV", "cross-device link"},
1460 23: "too many open files in system", 1527 {19, "ENODEV", "operation not supported by device"},
1461 24: "too many open files", 1528 {20, "ENOTDIR", "not a directory"},
1462 25: "inappropriate ioctl for device", 1529 {21, "EISDIR", "is a directory"},
1463 26: "text file busy", 1530 {22, "EINVAL", "invalid argument"},
1464 27: "file too large", 1531 {23, "ENFILE", "too many open files in system"},
1465 28: "no space left on device", 1532 {24, "EMFILE", "too many open files"},
1466 29: "illegal seek", 1533 {25, "ENOTTY", "inappropriate ioctl for device"},
1467 30: "read-only file system", 1534 {26, "ETXTBSY", "text file busy"},
1468 31: "too many links", 1535 {27, "EFBIG", "file too large"},
1469 32: "broken pipe", 1536 {28, "ENOSPC", "no space left on device"},
1470 33: "numerical argument out of domain", 1537 {29, "ESPIPE", "illegal seek"},
1471 34: "result too large", 1538 {30, "EROFS", "read-only file system"},
1472 35: "resource temporarily unavailable", 1539 {31, "EMLINK", "too many links"},
1473 36: "operation now in progress", 1540 {32, "EPIPE", "broken pipe"},
1474 37: "operation already in progress", 1541 {33, "EDOM", "numerical argument out of domain"},
1475 38: "socket operation on non-socket", 1542 {34, "ERANGE", "result too large"},
1476 39: "destination address required", 1543 {35, "EWOULDBLOCK", "resource temporarily unavailable"},
1477 40: "message too long", 1544 {36, "EINPROGRESS", "operation now in progress"},
1478 41: "protocol wrong type for socket", 1545 {37, "EALREADY", "operation already in progress"},
1479 42: "protocol not available", 1546 {38, "ENOTSOCK", "socket operation on non-socket"},
1480 43: "protocol not supported", 1547 {39, "EDESTADDRREQ", "destination address required"},
1481 44: "socket type not supported", 1548 {40, "EMSGSIZE", "message too long"},
1482 45: "operation not supported", 1549 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1483 46: "protocol family not supported", 1550 {42, "ENOPROTOOPT", "protocol not available"},
1484 47: "address family not supported by protocol family", 1551 {43, "EPROTONOSUPPORT", "protocol not supported"},
1485 48: "address already in use", 1552 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1486 49: "can't assign requested address", 1553 {45, "EOPNOTSUPP", "operation not supported"},
1487 50: "network is down", 1554 {46, "EPFNOSUPPORT", "protocol family not supported"},
1488 51: "network is unreachable", 1555 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1489 52: "network dropped connection on reset", 1556 {48, "EADDRINUSE", "address already in use"},
1490 53: "software caused connection abort", 1557 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1491 54: "connection reset by peer", 1558 {50, "ENETDOWN", "network is down"},
1492 55: "no buffer space available", 1559 {51, "ENETUNREACH", "network is unreachable"},
1493 56: "socket is already connected", 1560 {52, "ENETRESET", "network dropped connection on reset"},
1494 57: "socket is not connected", 1561 {53, "ECONNABORTED", "software caused connection abort"},
1495 58: "can't send after socket shutdown", 1562 {54, "ECONNRESET", "connection reset by peer"},
1496 59: "too many references: can't splice", 1563 {55, "ENOBUFS", "no buffer space available"},
1497 60: "operation timed out", 1564 {56, "EISCONN", "socket is already connected"},
1498 61: "connection refused", 1565 {57, "ENOTCONN", "socket is not connected"},
1499 62: "too many levels of symbolic links", 1566 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1500 63: "file name too long", 1567 {59, "ETOOMANYREFS", "too many references: can't splice"},
1501 64: "host is down", 1568 {60, "ETIMEDOUT", "operation timed out"},
1502 65: "no route to host", 1569 {61, "ECONNREFUSED", "connection refused"},
1503 66: "directory not empty", 1570 {62, "ELOOP", "too many levels of symbolic links"},
1504 67: "too many processes", 1571 {63, "ENAMETOOLONG", "file name too long"},
1505 68: "too many users", 1572 {64, "EHOSTDOWN", "host is down"},
1506 69: "disc quota exceeded", 1573 {65, "EHOSTUNREACH", "no route to host"},
1507 70: "stale NFS file handle", 1574 {66, "ENOTEMPTY", "directory not empty"},
1508 71: "too many levels of remote in path", 1575 {67, "EPROCLIM", "too many processes"},
1509 72: "RPC struct is bad", 1576 {68, "EUSERS", "too many users"},
1510 73: "RPC version wrong", 1577 {69, "EDQUOT", "disc quota exceeded"},
1511 74: "RPC prog. not avail", 1578 {70, "ESTALE", "stale NFS file handle"},
1512 75: "program version wrong", 1579 {71, "EREMOTE", "too many levels of remote in path"},
1513 76: "bad procedure for program", 1580 {72, "EBADRPC", "RPC struct is bad"},
1514 77: "no locks available", 1581 {73, "ERPCMISMATCH", "RPC version wrong"},
1515 78: "function not implemented", 1582 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1516 79: "inappropriate file type or format", 1583 {75, "EPROGMISMATCH", "program version wrong"},
1517 80: "authentication error", 1584 {76, "EPROCUNAVAIL", "bad procedure for program"},
1518 81: "need authenticator", 1585 {77, "ENOLCK", "no locks available"},
1519 82: "identifier removed", 1586 {78, "ENOSYS", "function not implemented"},
1520 83: "no message of desired type", 1587 {79, "EFTYPE", "inappropriate file type or format"},
1521 84: "value too large to be stored in data type", 1588 {80, "EAUTH", "authentication error"},
1522 85: "operation canceled", 1589 {81, "ENEEDAUTH", "need authenticator"},
1523 86: "illegal byte sequence", 1590 {82, "EIDRM", "identifier removed"},
1524 87: "attribute not found", 1591 {83, "ENOMSG", "no message of desired type"},
1525 88: "programming error", 1592 {84, "EOVERFLOW", "value too large to be stored in data type"},
1526 89: "bad message", 1593 {85, "ECANCELED", "operation canceled"},
1527 90: "multihop attempted", 1594 {86, "EILSEQ", "illegal byte sequence"},
1528 91: "link has been severed", 1595 {87, "ENOATTR", "attribute not found"},
1529 92: "protocol error", 1596 {88, "EDOOFUS", "programming error"},
1530 93: "no medium found", 1597 {89, "EBADMSG", "bad message"},
1531 94: "unknown error: 94", 1598 {90, "EMULTIHOP", "multihop attempted"},
1532 95: "unknown error: 95", 1599 {91, "ENOLINK", "link has been severed"},
1533 96: "unknown error: 96", 1600 {92, "EPROTO", "protocol error"},
1534 97: "unknown error: 97", 1601 {93, "ENOMEDIUM", "no medium found"},
1535 98: "unknown error: 98", 1602 {94, "EUNUSED94", "unknown error: 94"},
1536 99: "unknown error: 99", 1603 {95, "EUNUSED95", "unknown error: 95"},
1604 {96, "EUNUSED96", "unknown error: 96"},
1605 {97, "EUNUSED97", "unknown error: 97"},
1606 {98, "EUNUSED98", "unknown error: 98"},
1607 {99, "ELAST", "unknown error: 99"},
1537} 1608}
1538 1609
1539// Signal table 1610// Signal table
1540var signals = [...]string{ 1611var signalList = [...]struct {
1541 1: "hangup", 1612 num syscall.Signal
1542 2: "interrupt", 1613 name string
1543 3: "quit", 1614 desc string
1544 4: "illegal instruction", 1615}{
1545 5: "trace/BPT trap", 1616 {1, "SIGHUP", "hangup"},
1546 6: "abort trap", 1617 {2, "SIGINT", "interrupt"},
1547 7: "EMT trap", 1618 {3, "SIGQUIT", "quit"},
1548 8: "floating point exception", 1619 {4, "SIGILL", "illegal instruction"},
1549 9: "killed", 1620 {5, "SIGTRAP", "trace/BPT trap"},
1550 10: "bus error", 1621 {6, "SIGIOT", "abort trap"},
1551 11: "segmentation fault", 1622 {7, "SIGEMT", "EMT trap"},
1552 12: "bad system call", 1623 {8, "SIGFPE", "floating point exception"},
1553 13: "broken pipe", 1624 {9, "SIGKILL", "killed"},
1554 14: "alarm clock", 1625 {10, "SIGBUS", "bus error"},
1555 15: "terminated", 1626 {11, "SIGSEGV", "segmentation fault"},
1556 16: "urgent I/O condition", 1627 {12, "SIGSYS", "bad system call"},
1557 17: "suspended (signal)", 1628 {13, "SIGPIPE", "broken pipe"},
1558 18: "suspended", 1629 {14, "SIGALRM", "alarm clock"},
1559 19: "continued", 1630 {15, "SIGTERM", "terminated"},
1560 20: "child exited", 1631 {16, "SIGURG", "urgent I/O condition"},
1561 21: "stopped (tty input)", 1632 {17, "SIGSTOP", "suspended (signal)"},
1562 22: "stopped (tty output)", 1633 {18, "SIGTSTP", "suspended"},
1563 23: "I/O possible", 1634 {19, "SIGCONT", "continued"},
1564 24: "cputime limit exceeded", 1635 {20, "SIGCHLD", "child exited"},
1565 25: "filesize limit exceeded", 1636 {21, "SIGTTIN", "stopped (tty input)"},
1566 26: "virtual timer expired", 1637 {22, "SIGTTOU", "stopped (tty output)"},
1567 27: "profiling timer expired", 1638 {23, "SIGIO", "I/O possible"},
1568 28: "window size changes", 1639 {24, "SIGXCPU", "cputime limit exceeded"},
1569 29: "information request", 1640 {25, "SIGXFSZ", "filesize limit exceeded"},
1570 30: "user defined signal 1", 1641 {26, "SIGVTALRM", "virtual timer expired"},
1571 31: "user defined signal 2", 1642 {27, "SIGPROF", "profiling timer expired"},
1572 32: "thread Scheduler", 1643 {28, "SIGWINCH", "window size changes"},
1573 33: "checkPoint", 1644 {29, "SIGINFO", "information request"},
1574 34: "checkPointExit", 1645 {30, "SIGUSR1", "user defined signal 1"},
1646 {31, "SIGUSR2", "user defined signal 2"},
1647 {32, "SIGTHR", "thread Scheduler"},
1648 {33, "SIGCKPT", "checkPoint"},
1649 {34, "SIGCKPTEXIT", "checkPointExit"},
1575} 1650}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
index a8b0587..d2bbaab 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
@@ -1345,6 +1345,35 @@ const (
1345 SO_USELOOPBACK = 0x40 1345 SO_USELOOPBACK = 0x40
1346 SO_USER_COOKIE = 0x1015 1346 SO_USER_COOKIE = 0x1015
1347 SO_VENDOR = 0x80000000 1347 SO_VENDOR = 0x80000000
1348 S_BLKSIZE = 0x200
1349 S_IEXEC = 0x40
1350 S_IFBLK = 0x6000
1351 S_IFCHR = 0x2000
1352 S_IFDIR = 0x4000
1353 S_IFIFO = 0x1000
1354 S_IFLNK = 0xa000
1355 S_IFMT = 0xf000
1356 S_IFREG = 0x8000
1357 S_IFSOCK = 0xc000
1358 S_IFWHT = 0xe000
1359 S_IREAD = 0x100
1360 S_IRGRP = 0x20
1361 S_IROTH = 0x4
1362 S_IRUSR = 0x100
1363 S_IRWXG = 0x38
1364 S_IRWXO = 0x7
1365 S_IRWXU = 0x1c0
1366 S_ISGID = 0x400
1367 S_ISTXT = 0x200
1368 S_ISUID = 0x800
1369 S_ISVTX = 0x200
1370 S_IWGRP = 0x10
1371 S_IWOTH = 0x2
1372 S_IWRITE = 0x80
1373 S_IWUSR = 0x80
1374 S_IXGRP = 0x8
1375 S_IXOTH = 0x1
1376 S_IXUSR = 0x40
1348 TAB0 = 0x0 1377 TAB0 = 0x0
1349 TAB3 = 0x4 1378 TAB3 = 0x4
1350 TABDLY = 0x4 1379 TABDLY = 0x4
@@ -1619,138 +1648,146 @@ const (
1619) 1648)
1620 1649
1621// Error table 1650// Error table
1622var errors = [...]string{ 1651var errorList = [...]struct {
1623 1: "operation not permitted", 1652 num syscall.Errno
1624 2: "no such file or directory", 1653 name string
1625 3: "no such process", 1654 desc string
1626 4: "interrupted system call", 1655}{
1627 5: "input/output error", 1656 {1, "EPERM", "operation not permitted"},
1628 6: "device not configured", 1657 {2, "ENOENT", "no such file or directory"},
1629 7: "argument list too long", 1658 {3, "ESRCH", "no such process"},
1630 8: "exec format error", 1659 {4, "EINTR", "interrupted system call"},
1631 9: "bad file descriptor", 1660 {5, "EIO", "input/output error"},
1632 10: "no child processes", 1661 {6, "ENXIO", "device not configured"},
1633 11: "resource deadlock avoided", 1662 {7, "E2BIG", "argument list too long"},
1634 12: "cannot allocate memory", 1663 {8, "ENOEXEC", "exec format error"},
1635 13: "permission denied", 1664 {9, "EBADF", "bad file descriptor"},
1636 14: "bad address", 1665 {10, "ECHILD", "no child processes"},
1637 15: "block device required", 1666 {11, "EDEADLK", "resource deadlock avoided"},
1638 16: "device busy", 1667 {12, "ENOMEM", "cannot allocate memory"},
1639 17: "file exists", 1668 {13, "EACCES", "permission denied"},
1640 18: "cross-device link", 1669 {14, "EFAULT", "bad address"},
1641 19: "operation not supported by device", 1670 {15, "ENOTBLK", "block device required"},
1642 20: "not a directory", 1671 {16, "EBUSY", "device busy"},
1643 21: "is a directory", 1672 {17, "EEXIST", "file exists"},
1644 22: "invalid argument", 1673 {18, "EXDEV", "cross-device link"},
1645 23: "too many open files in system", 1674 {19, "ENODEV", "operation not supported by device"},
1646 24: "too many open files", 1675 {20, "ENOTDIR", "not a directory"},
1647 25: "inappropriate ioctl for device", 1676 {21, "EISDIR", "is a directory"},
1648 26: "text file busy", 1677 {22, "EINVAL", "invalid argument"},
1649 27: "file too large", 1678 {23, "ENFILE", "too many open files in system"},
1650 28: "no space left on device", 1679 {24, "EMFILE", "too many open files"},
1651 29: "illegal seek", 1680 {25, "ENOTTY", "inappropriate ioctl for device"},
1652 30: "read-only file system", 1681 {26, "ETXTBSY", "text file busy"},
1653 31: "too many links", 1682 {27, "EFBIG", "file too large"},
1654 32: "broken pipe", 1683 {28, "ENOSPC", "no space left on device"},
1655 33: "numerical argument out of domain", 1684 {29, "ESPIPE", "illegal seek"},
1656 34: "result too large", 1685 {30, "EROFS", "read-only file system"},
1657 35: "resource temporarily unavailable", 1686 {31, "EMLINK", "too many links"},
1658 36: "operation now in progress", 1687 {32, "EPIPE", "broken pipe"},
1659 37: "operation already in progress", 1688 {33, "EDOM", "numerical argument out of domain"},
1660 38: "socket operation on non-socket", 1689 {34, "ERANGE", "result too large"},
1661 39: "destination address required", 1690 {35, "EAGAIN", "resource temporarily unavailable"},
1662 40: "message too long", 1691 {36, "EINPROGRESS", "operation now in progress"},
1663 41: "protocol wrong type for socket", 1692 {37, "EALREADY", "operation already in progress"},
1664 42: "protocol not available", 1693 {38, "ENOTSOCK", "socket operation on non-socket"},
1665 43: "protocol not supported", 1694 {39, "EDESTADDRREQ", "destination address required"},
1666 44: "socket type not supported", 1695 {40, "EMSGSIZE", "message too long"},
1667 45: "operation not supported", 1696 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1668 46: "protocol family not supported", 1697 {42, "ENOPROTOOPT", "protocol not available"},
1669 47: "address family not supported by protocol family", 1698 {43, "EPROTONOSUPPORT", "protocol not supported"},
1670 48: "address already in use", 1699 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1671 49: "can't assign requested address", 1700 {45, "EOPNOTSUPP", "operation not supported"},
1672 50: "network is down", 1701 {46, "EPFNOSUPPORT", "protocol family not supported"},
1673 51: "network is unreachable", 1702 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1674 52: "network dropped connection on reset", 1703 {48, "EADDRINUSE", "address already in use"},
1675 53: "software caused connection abort", 1704 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1676 54: "connection reset by peer", 1705 {50, "ENETDOWN", "network is down"},
1677 55: "no buffer space available", 1706 {51, "ENETUNREACH", "network is unreachable"},
1678 56: "socket is already connected", 1707 {52, "ENETRESET", "network dropped connection on reset"},
1679 57: "socket is not connected", 1708 {53, "ECONNABORTED", "software caused connection abort"},
1680 58: "can't send after socket shutdown", 1709 {54, "ECONNRESET", "connection reset by peer"},
1681 59: "too many references: can't splice", 1710 {55, "ENOBUFS", "no buffer space available"},
1682 60: "operation timed out", 1711 {56, "EISCONN", "socket is already connected"},
1683 61: "connection refused", 1712 {57, "ENOTCONN", "socket is not connected"},
1684 62: "too many levels of symbolic links", 1713 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1685 63: "file name too long", 1714 {59, "ETOOMANYREFS", "too many references: can't splice"},
1686 64: "host is down", 1715 {60, "ETIMEDOUT", "operation timed out"},
1687 65: "no route to host", 1716 {61, "ECONNREFUSED", "connection refused"},
1688 66: "directory not empty", 1717 {62, "ELOOP", "too many levels of symbolic links"},
1689 67: "too many processes", 1718 {63, "ENAMETOOLONG", "file name too long"},
1690 68: "too many users", 1719 {64, "EHOSTDOWN", "host is down"},
1691 69: "disc quota exceeded", 1720 {65, "EHOSTUNREACH", "no route to host"},
1692 70: "stale NFS file handle", 1721 {66, "ENOTEMPTY", "directory not empty"},
1693 71: "too many levels of remote in path", 1722 {67, "EPROCLIM", "too many processes"},
1694 72: "RPC struct is bad", 1723 {68, "EUSERS", "too many users"},
1695 73: "RPC version wrong", 1724 {69, "EDQUOT", "disc quota exceeded"},
1696 74: "RPC prog. not avail", 1725 {70, "ESTALE", "stale NFS file handle"},
1697 75: "program version wrong", 1726 {71, "EREMOTE", "too many levels of remote in path"},
1698 76: "bad procedure for program", 1727 {72, "EBADRPC", "RPC struct is bad"},
1699 77: "no locks available", 1728 {73, "ERPCMISMATCH", "RPC version wrong"},
1700 78: "function not implemented", 1729 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1701 79: "inappropriate file type or format", 1730 {75, "EPROGMISMATCH", "program version wrong"},
1702 80: "authentication error", 1731 {76, "EPROCUNAVAIL", "bad procedure for program"},
1703 81: "need authenticator", 1732 {77, "ENOLCK", "no locks available"},
1704 82: "identifier removed", 1733 {78, "ENOSYS", "function not implemented"},
1705 83: "no message of desired type", 1734 {79, "EFTYPE", "inappropriate file type or format"},
1706 84: "value too large to be stored in data type", 1735 {80, "EAUTH", "authentication error"},
1707 85: "operation canceled", 1736 {81, "ENEEDAUTH", "need authenticator"},
1708 86: "illegal byte sequence", 1737 {82, "EIDRM", "identifier removed"},
1709 87: "attribute not found", 1738 {83, "ENOMSG", "no message of desired type"},
1710 88: "programming error", 1739 {84, "EOVERFLOW", "value too large to be stored in data type"},
1711 89: "bad message", 1740 {85, "ECANCELED", "operation canceled"},
1712 90: "multihop attempted", 1741 {86, "EILSEQ", "illegal byte sequence"},
1713 91: "link has been severed", 1742 {87, "ENOATTR", "attribute not found"},
1714 92: "protocol error", 1743 {88, "EDOOFUS", "programming error"},
1715 93: "capabilities insufficient", 1744 {89, "EBADMSG", "bad message"},
1716 94: "not permitted in capability mode", 1745 {90, "EMULTIHOP", "multihop attempted"},
1717 95: "state not recoverable", 1746 {91, "ENOLINK", "link has been severed"},
1718 96: "previous owner died", 1747 {92, "EPROTO", "protocol error"},
1748 {93, "ENOTCAPABLE", "capabilities insufficient"},
1749 {94, "ECAPMODE", "not permitted in capability mode"},
1750 {95, "ENOTRECOVERABLE", "state not recoverable"},
1751 {96, "EOWNERDEAD", "previous owner died"},
1719} 1752}
1720 1753
1721// Signal table 1754// Signal table
1722var signals = [...]string{ 1755var signalList = [...]struct {
1723 1: "hangup", 1756 num syscall.Signal
1724 2: "interrupt", 1757 name string
1725 3: "quit", 1758 desc string
1726 4: "illegal instruction", 1759}{
1727 5: "trace/BPT trap", 1760 {1, "SIGHUP", "hangup"},
1728 6: "abort trap", 1761 {2, "SIGINT", "interrupt"},
1729 7: "EMT trap", 1762 {3, "SIGQUIT", "quit"},
1730 8: "floating point exception", 1763 {4, "SIGILL", "illegal instruction"},
1731 9: "killed", 1764 {5, "SIGTRAP", "trace/BPT trap"},
1732 10: "bus error", 1765 {6, "SIGIOT", "abort trap"},
1733 11: "segmentation fault", 1766 {7, "SIGEMT", "EMT trap"},
1734 12: "bad system call", 1767 {8, "SIGFPE", "floating point exception"},
1735 13: "broken pipe", 1768 {9, "SIGKILL", "killed"},
1736 14: "alarm clock", 1769 {10, "SIGBUS", "bus error"},
1737 15: "terminated", 1770 {11, "SIGSEGV", "segmentation fault"},
1738 16: "urgent I/O condition", 1771 {12, "SIGSYS", "bad system call"},
1739 17: "suspended (signal)", 1772 {13, "SIGPIPE", "broken pipe"},
1740 18: "suspended", 1773 {14, "SIGALRM", "alarm clock"},
1741 19: "continued", 1774 {15, "SIGTERM", "terminated"},
1742 20: "child exited", 1775 {16, "SIGURG", "urgent I/O condition"},
1743 21: "stopped (tty input)", 1776 {17, "SIGSTOP", "suspended (signal)"},
1744 22: "stopped (tty output)", 1777 {18, "SIGTSTP", "suspended"},
1745 23: "I/O possible", 1778 {19, "SIGCONT", "continued"},
1746 24: "cputime limit exceeded", 1779 {20, "SIGCHLD", "child exited"},
1747 25: "filesize limit exceeded", 1780 {21, "SIGTTIN", "stopped (tty input)"},
1748 26: "virtual timer expired", 1781 {22, "SIGTTOU", "stopped (tty output)"},
1749 27: "profiling timer expired", 1782 {23, "SIGIO", "I/O possible"},
1750 28: "window size changes", 1783 {24, "SIGXCPU", "cputime limit exceeded"},
1751 29: "information request", 1784 {25, "SIGXFSZ", "filesize limit exceeded"},
1752 30: "user defined signal 1", 1785 {26, "SIGVTALRM", "virtual timer expired"},
1753 31: "user defined signal 2", 1786 {27, "SIGPROF", "profiling timer expired"},
1754 32: "unknown signal", 1787 {28, "SIGWINCH", "window size changes"},
1755 33: "unknown signal", 1788 {29, "SIGINFO", "information request"},
1789 {30, "SIGUSR1", "user defined signal 1"},
1790 {31, "SIGUSR2", "user defined signal 2"},
1791 {32, "SIGTHR", "unknown signal"},
1792 {33, "SIGLIBRT", "unknown signal"},
1756} 1793}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
index cf5f012..4f8db78 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
@@ -1346,6 +1346,35 @@ const (
1346 SO_USELOOPBACK = 0x40 1346 SO_USELOOPBACK = 0x40
1347 SO_USER_COOKIE = 0x1015 1347 SO_USER_COOKIE = 0x1015
1348 SO_VENDOR = 0x80000000 1348 SO_VENDOR = 0x80000000
1349 S_BLKSIZE = 0x200
1350 S_IEXEC = 0x40
1351 S_IFBLK = 0x6000
1352 S_IFCHR = 0x2000
1353 S_IFDIR = 0x4000
1354 S_IFIFO = 0x1000
1355 S_IFLNK = 0xa000
1356 S_IFMT = 0xf000
1357 S_IFREG = 0x8000
1358 S_IFSOCK = 0xc000
1359 S_IFWHT = 0xe000
1360 S_IREAD = 0x100
1361 S_IRGRP = 0x20
1362 S_IROTH = 0x4
1363 S_IRUSR = 0x100
1364 S_IRWXG = 0x38
1365 S_IRWXO = 0x7
1366 S_IRWXU = 0x1c0
1367 S_ISGID = 0x400
1368 S_ISTXT = 0x200
1369 S_ISUID = 0x800
1370 S_ISVTX = 0x200
1371 S_IWGRP = 0x10
1372 S_IWOTH = 0x2
1373 S_IWRITE = 0x80
1374 S_IWUSR = 0x80
1375 S_IXGRP = 0x8
1376 S_IXOTH = 0x1
1377 S_IXUSR = 0x40
1349 TAB0 = 0x0 1378 TAB0 = 0x0
1350 TAB3 = 0x4 1379 TAB3 = 0x4
1351 TABDLY = 0x4 1380 TABDLY = 0x4
@@ -1620,138 +1649,146 @@ const (
1620) 1649)
1621 1650
1622// Error table 1651// Error table
1623var errors = [...]string{ 1652var errorList = [...]struct {
1624 1: "operation not permitted", 1653 num syscall.Errno
1625 2: "no such file or directory", 1654 name string
1626 3: "no such process", 1655 desc string
1627 4: "interrupted system call", 1656}{
1628 5: "input/output error", 1657 {1, "EPERM", "operation not permitted"},
1629 6: "device not configured", 1658 {2, "ENOENT", "no such file or directory"},
1630 7: "argument list too long", 1659 {3, "ESRCH", "no such process"},
1631 8: "exec format error", 1660 {4, "EINTR", "interrupted system call"},
1632 9: "bad file descriptor", 1661 {5, "EIO", "input/output error"},
1633 10: "no child processes", 1662 {6, "ENXIO", "device not configured"},
1634 11: "resource deadlock avoided", 1663 {7, "E2BIG", "argument list too long"},
1635 12: "cannot allocate memory", 1664 {8, "ENOEXEC", "exec format error"},
1636 13: "permission denied", 1665 {9, "EBADF", "bad file descriptor"},
1637 14: "bad address", 1666 {10, "ECHILD", "no child processes"},
1638 15: "block device required", 1667 {11, "EDEADLK", "resource deadlock avoided"},
1639 16: "device busy", 1668 {12, "ENOMEM", "cannot allocate memory"},
1640 17: "file exists", 1669 {13, "EACCES", "permission denied"},
1641 18: "cross-device link", 1670 {14, "EFAULT", "bad address"},
1642 19: "operation not supported by device", 1671 {15, "ENOTBLK", "block device required"},
1643 20: "not a directory", 1672 {16, "EBUSY", "device busy"},
1644 21: "is a directory", 1673 {17, "EEXIST", "file exists"},
1645 22: "invalid argument", 1674 {18, "EXDEV", "cross-device link"},
1646 23: "too many open files in system", 1675 {19, "ENODEV", "operation not supported by device"},
1647 24: "too many open files", 1676 {20, "ENOTDIR", "not a directory"},
1648 25: "inappropriate ioctl for device", 1677 {21, "EISDIR", "is a directory"},
1649 26: "text file busy", 1678 {22, "EINVAL", "invalid argument"},
1650 27: "file too large", 1679 {23, "ENFILE", "too many open files in system"},
1651 28: "no space left on device", 1680 {24, "EMFILE", "too many open files"},
1652 29: "illegal seek", 1681 {25, "ENOTTY", "inappropriate ioctl for device"},
1653 30: "read-only file system", 1682 {26, "ETXTBSY", "text file busy"},
1654 31: "too many links", 1683 {27, "EFBIG", "file too large"},
1655 32: "broken pipe", 1684 {28, "ENOSPC", "no space left on device"},
1656 33: "numerical argument out of domain", 1685 {29, "ESPIPE", "illegal seek"},
1657 34: "result too large", 1686 {30, "EROFS", "read-only file system"},
1658 35: "resource temporarily unavailable", 1687 {31, "EMLINK", "too many links"},
1659 36: "operation now in progress", 1688 {32, "EPIPE", "broken pipe"},
1660 37: "operation already in progress", 1689 {33, "EDOM", "numerical argument out of domain"},
1661 38: "socket operation on non-socket", 1690 {34, "ERANGE", "result too large"},
1662 39: "destination address required", 1691 {35, "EAGAIN", "resource temporarily unavailable"},
1663 40: "message too long", 1692 {36, "EINPROGRESS", "operation now in progress"},
1664 41: "protocol wrong type for socket", 1693 {37, "EALREADY", "operation already in progress"},
1665 42: "protocol not available", 1694 {38, "ENOTSOCK", "socket operation on non-socket"},
1666 43: "protocol not supported", 1695 {39, "EDESTADDRREQ", "destination address required"},
1667 44: "socket type not supported", 1696 {40, "EMSGSIZE", "message too long"},
1668 45: "operation not supported", 1697 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1669 46: "protocol family not supported", 1698 {42, "ENOPROTOOPT", "protocol not available"},
1670 47: "address family not supported by protocol family", 1699 {43, "EPROTONOSUPPORT", "protocol not supported"},
1671 48: "address already in use", 1700 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1672 49: "can't assign requested address", 1701 {45, "EOPNOTSUPP", "operation not supported"},
1673 50: "network is down", 1702 {46, "EPFNOSUPPORT", "protocol family not supported"},
1674 51: "network is unreachable", 1703 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1675 52: "network dropped connection on reset", 1704 {48, "EADDRINUSE", "address already in use"},
1676 53: "software caused connection abort", 1705 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1677 54: "connection reset by peer", 1706 {50, "ENETDOWN", "network is down"},
1678 55: "no buffer space available", 1707 {51, "ENETUNREACH", "network is unreachable"},
1679 56: "socket is already connected", 1708 {52, "ENETRESET", "network dropped connection on reset"},
1680 57: "socket is not connected", 1709 {53, "ECONNABORTED", "software caused connection abort"},
1681 58: "can't send after socket shutdown", 1710 {54, "ECONNRESET", "connection reset by peer"},
1682 59: "too many references: can't splice", 1711 {55, "ENOBUFS", "no buffer space available"},
1683 60: "operation timed out", 1712 {56, "EISCONN", "socket is already connected"},
1684 61: "connection refused", 1713 {57, "ENOTCONN", "socket is not connected"},
1685 62: "too many levels of symbolic links", 1714 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1686 63: "file name too long", 1715 {59, "ETOOMANYREFS", "too many references: can't splice"},
1687 64: "host is down", 1716 {60, "ETIMEDOUT", "operation timed out"},
1688 65: "no route to host", 1717 {61, "ECONNREFUSED", "connection refused"},
1689 66: "directory not empty", 1718 {62, "ELOOP", "too many levels of symbolic links"},
1690 67: "too many processes", 1719 {63, "ENAMETOOLONG", "file name too long"},
1691 68: "too many users", 1720 {64, "EHOSTDOWN", "host is down"},
1692 69: "disc quota exceeded", 1721 {65, "EHOSTUNREACH", "no route to host"},
1693 70: "stale NFS file handle", 1722 {66, "ENOTEMPTY", "directory not empty"},
1694 71: "too many levels of remote in path", 1723 {67, "EPROCLIM", "too many processes"},
1695 72: "RPC struct is bad", 1724 {68, "EUSERS", "too many users"},
1696 73: "RPC version wrong", 1725 {69, "EDQUOT", "disc quota exceeded"},
1697 74: "RPC prog. not avail", 1726 {70, "ESTALE", "stale NFS file handle"},
1698 75: "program version wrong", 1727 {71, "EREMOTE", "too many levels of remote in path"},
1699 76: "bad procedure for program", 1728 {72, "EBADRPC", "RPC struct is bad"},
1700 77: "no locks available", 1729 {73, "ERPCMISMATCH", "RPC version wrong"},
1701 78: "function not implemented", 1730 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1702 79: "inappropriate file type or format", 1731 {75, "EPROGMISMATCH", "program version wrong"},
1703 80: "authentication error", 1732 {76, "EPROCUNAVAIL", "bad procedure for program"},
1704 81: "need authenticator", 1733 {77, "ENOLCK", "no locks available"},
1705 82: "identifier removed", 1734 {78, "ENOSYS", "function not implemented"},
1706 83: "no message of desired type", 1735 {79, "EFTYPE", "inappropriate file type or format"},
1707 84: "value too large to be stored in data type", 1736 {80, "EAUTH", "authentication error"},
1708 85: "operation canceled", 1737 {81, "ENEEDAUTH", "need authenticator"},
1709 86: "illegal byte sequence", 1738 {82, "EIDRM", "identifier removed"},
1710 87: "attribute not found", 1739 {83, "ENOMSG", "no message of desired type"},
1711 88: "programming error", 1740 {84, "EOVERFLOW", "value too large to be stored in data type"},
1712 89: "bad message", 1741 {85, "ECANCELED", "operation canceled"},
1713 90: "multihop attempted", 1742 {86, "EILSEQ", "illegal byte sequence"},
1714 91: "link has been severed", 1743 {87, "ENOATTR", "attribute not found"},
1715 92: "protocol error", 1744 {88, "EDOOFUS", "programming error"},
1716 93: "capabilities insufficient", 1745 {89, "EBADMSG", "bad message"},
1717 94: "not permitted in capability mode", 1746 {90, "EMULTIHOP", "multihop attempted"},
1718 95: "state not recoverable", 1747 {91, "ENOLINK", "link has been severed"},
1719 96: "previous owner died", 1748 {92, "EPROTO", "protocol error"},
1749 {93, "ENOTCAPABLE", "capabilities insufficient"},
1750 {94, "ECAPMODE", "not permitted in capability mode"},
1751 {95, "ENOTRECOVERABLE", "state not recoverable"},
1752 {96, "EOWNERDEAD", "previous owner died"},
1720} 1753}
1721 1754
1722// Signal table 1755// Signal table
1723var signals = [...]string{ 1756var signalList = [...]struct {
1724 1: "hangup", 1757 num syscall.Signal
1725 2: "interrupt", 1758 name string
1726 3: "quit", 1759 desc string
1727 4: "illegal instruction", 1760}{
1728 5: "trace/BPT trap", 1761 {1, "SIGHUP", "hangup"},
1729 6: "abort trap", 1762 {2, "SIGINT", "interrupt"},
1730 7: "EMT trap", 1763 {3, "SIGQUIT", "quit"},
1731 8: "floating point exception", 1764 {4, "SIGILL", "illegal instruction"},
1732 9: "killed", 1765 {5, "SIGTRAP", "trace/BPT trap"},
1733 10: "bus error", 1766 {6, "SIGIOT", "abort trap"},
1734 11: "segmentation fault", 1767 {7, "SIGEMT", "EMT trap"},
1735 12: "bad system call", 1768 {8, "SIGFPE", "floating point exception"},
1736 13: "broken pipe", 1769 {9, "SIGKILL", "killed"},
1737 14: "alarm clock", 1770 {10, "SIGBUS", "bus error"},
1738 15: "terminated", 1771 {11, "SIGSEGV", "segmentation fault"},
1739 16: "urgent I/O condition", 1772 {12, "SIGSYS", "bad system call"},
1740 17: "suspended (signal)", 1773 {13, "SIGPIPE", "broken pipe"},
1741 18: "suspended", 1774 {14, "SIGALRM", "alarm clock"},
1742 19: "continued", 1775 {15, "SIGTERM", "terminated"},
1743 20: "child exited", 1776 {16, "SIGURG", "urgent I/O condition"},
1744 21: "stopped (tty input)", 1777 {17, "SIGSTOP", "suspended (signal)"},
1745 22: "stopped (tty output)", 1778 {18, "SIGTSTP", "suspended"},
1746 23: "I/O possible", 1779 {19, "SIGCONT", "continued"},
1747 24: "cputime limit exceeded", 1780 {20, "SIGCHLD", "child exited"},
1748 25: "filesize limit exceeded", 1781 {21, "SIGTTIN", "stopped (tty input)"},
1749 26: "virtual timer expired", 1782 {22, "SIGTTOU", "stopped (tty output)"},
1750 27: "profiling timer expired", 1783 {23, "SIGIO", "I/O possible"},
1751 28: "window size changes", 1784 {24, "SIGXCPU", "cputime limit exceeded"},
1752 29: "information request", 1785 {25, "SIGXFSZ", "filesize limit exceeded"},
1753 30: "user defined signal 1", 1786 {26, "SIGVTALRM", "virtual timer expired"},
1754 31: "user defined signal 2", 1787 {27, "SIGPROF", "profiling timer expired"},
1755 32: "unknown signal", 1788 {28, "SIGWINCH", "window size changes"},
1756 33: "unknown signal", 1789 {29, "SIGINFO", "information request"},
1790 {30, "SIGUSR1", "user defined signal 1"},
1791 {31, "SIGUSR2", "user defined signal 2"},
1792 {32, "SIGTHR", "unknown signal"},
1793 {33, "SIGLIBRT", "unknown signal"},
1757} 1794}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
index 9bbb90a..53e5de6 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
@@ -1354,6 +1354,35 @@ const (
1354 SO_USELOOPBACK = 0x40 1354 SO_USELOOPBACK = 0x40
1355 SO_USER_COOKIE = 0x1015 1355 SO_USER_COOKIE = 0x1015
1356 SO_VENDOR = 0x80000000 1356 SO_VENDOR = 0x80000000
1357 S_BLKSIZE = 0x200
1358 S_IEXEC = 0x40
1359 S_IFBLK = 0x6000
1360 S_IFCHR = 0x2000
1361 S_IFDIR = 0x4000
1362 S_IFIFO = 0x1000
1363 S_IFLNK = 0xa000
1364 S_IFMT = 0xf000
1365 S_IFREG = 0x8000
1366 S_IFSOCK = 0xc000
1367 S_IFWHT = 0xe000
1368 S_IREAD = 0x100
1369 S_IRGRP = 0x20
1370 S_IROTH = 0x4
1371 S_IRUSR = 0x100
1372 S_IRWXG = 0x38
1373 S_IRWXO = 0x7
1374 S_IRWXU = 0x1c0
1375 S_ISGID = 0x400
1376 S_ISTXT = 0x200
1377 S_ISUID = 0x800
1378 S_ISVTX = 0x200
1379 S_IWGRP = 0x10
1380 S_IWOTH = 0x2
1381 S_IWRITE = 0x80
1382 S_IWUSR = 0x80
1383 S_IXGRP = 0x8
1384 S_IXOTH = 0x1
1385 S_IXUSR = 0x40
1357 TAB0 = 0x0 1386 TAB0 = 0x0
1358 TAB3 = 0x4 1387 TAB3 = 0x4
1359 TABDLY = 0x4 1388 TABDLY = 0x4
@@ -1628,138 +1657,146 @@ const (
1628) 1657)
1629 1658
1630// Error table 1659// Error table
1631var errors = [...]string{ 1660var errorList = [...]struct {
1632 1: "operation not permitted", 1661 num syscall.Errno
1633 2: "no such file or directory", 1662 name string
1634 3: "no such process", 1663 desc string
1635 4: "interrupted system call", 1664}{
1636 5: "input/output error", 1665 {1, "EPERM", "operation not permitted"},
1637 6: "device not configured", 1666 {2, "ENOENT", "no such file or directory"},
1638 7: "argument list too long", 1667 {3, "ESRCH", "no such process"},
1639 8: "exec format error", 1668 {4, "EINTR", "interrupted system call"},
1640 9: "bad file descriptor", 1669 {5, "EIO", "input/output error"},
1641 10: "no child processes", 1670 {6, "ENXIO", "device not configured"},
1642 11: "resource deadlock avoided", 1671 {7, "E2BIG", "argument list too long"},
1643 12: "cannot allocate memory", 1672 {8, "ENOEXEC", "exec format error"},
1644 13: "permission denied", 1673 {9, "EBADF", "bad file descriptor"},
1645 14: "bad address", 1674 {10, "ECHILD", "no child processes"},
1646 15: "block device required", 1675 {11, "EDEADLK", "resource deadlock avoided"},
1647 16: "device busy", 1676 {12, "ENOMEM", "cannot allocate memory"},
1648 17: "file exists", 1677 {13, "EACCES", "permission denied"},
1649 18: "cross-device link", 1678 {14, "EFAULT", "bad address"},
1650 19: "operation not supported by device", 1679 {15, "ENOTBLK", "block device required"},
1651 20: "not a directory", 1680 {16, "EBUSY", "device busy"},
1652 21: "is a directory", 1681 {17, "EEXIST", "file exists"},
1653 22: "invalid argument", 1682 {18, "EXDEV", "cross-device link"},
1654 23: "too many open files in system", 1683 {19, "ENODEV", "operation not supported by device"},
1655 24: "too many open files", 1684 {20, "ENOTDIR", "not a directory"},
1656 25: "inappropriate ioctl for device", 1685 {21, "EISDIR", "is a directory"},
1657 26: "text file busy", 1686 {22, "EINVAL", "invalid argument"},
1658 27: "file too large", 1687 {23, "ENFILE", "too many open files in system"},
1659 28: "no space left on device", 1688 {24, "EMFILE", "too many open files"},
1660 29: "illegal seek", 1689 {25, "ENOTTY", "inappropriate ioctl for device"},
1661 30: "read-only file system", 1690 {26, "ETXTBSY", "text file busy"},
1662 31: "too many links", 1691 {27, "EFBIG", "file too large"},
1663 32: "broken pipe", 1692 {28, "ENOSPC", "no space left on device"},
1664 33: "numerical argument out of domain", 1693 {29, "ESPIPE", "illegal seek"},
1665 34: "result too large", 1694 {30, "EROFS", "read-only file system"},
1666 35: "resource temporarily unavailable", 1695 {31, "EMLINK", "too many links"},
1667 36: "operation now in progress", 1696 {32, "EPIPE", "broken pipe"},
1668 37: "operation already in progress", 1697 {33, "EDOM", "numerical argument out of domain"},
1669 38: "socket operation on non-socket", 1698 {34, "ERANGE", "result too large"},
1670 39: "destination address required", 1699 {35, "EAGAIN", "resource temporarily unavailable"},
1671 40: "message too long", 1700 {36, "EINPROGRESS", "operation now in progress"},
1672 41: "protocol wrong type for socket", 1701 {37, "EALREADY", "operation already in progress"},
1673 42: "protocol not available", 1702 {38, "ENOTSOCK", "socket operation on non-socket"},
1674 43: "protocol not supported", 1703 {39, "EDESTADDRREQ", "destination address required"},
1675 44: "socket type not supported", 1704 {40, "EMSGSIZE", "message too long"},
1676 45: "operation not supported", 1705 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1677 46: "protocol family not supported", 1706 {42, "ENOPROTOOPT", "protocol not available"},
1678 47: "address family not supported by protocol family", 1707 {43, "EPROTONOSUPPORT", "protocol not supported"},
1679 48: "address already in use", 1708 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1680 49: "can't assign requested address", 1709 {45, "EOPNOTSUPP", "operation not supported"},
1681 50: "network is down", 1710 {46, "EPFNOSUPPORT", "protocol family not supported"},
1682 51: "network is unreachable", 1711 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1683 52: "network dropped connection on reset", 1712 {48, "EADDRINUSE", "address already in use"},
1684 53: "software caused connection abort", 1713 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1685 54: "connection reset by peer", 1714 {50, "ENETDOWN", "network is down"},
1686 55: "no buffer space available", 1715 {51, "ENETUNREACH", "network is unreachable"},
1687 56: "socket is already connected", 1716 {52, "ENETRESET", "network dropped connection on reset"},
1688 57: "socket is not connected", 1717 {53, "ECONNABORTED", "software caused connection abort"},
1689 58: "can't send after socket shutdown", 1718 {54, "ECONNRESET", "connection reset by peer"},
1690 59: "too many references: can't splice", 1719 {55, "ENOBUFS", "no buffer space available"},
1691 60: "operation timed out", 1720 {56, "EISCONN", "socket is already connected"},
1692 61: "connection refused", 1721 {57, "ENOTCONN", "socket is not connected"},
1693 62: "too many levels of symbolic links", 1722 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1694 63: "file name too long", 1723 {59, "ETOOMANYREFS", "too many references: can't splice"},
1695 64: "host is down", 1724 {60, "ETIMEDOUT", "operation timed out"},
1696 65: "no route to host", 1725 {61, "ECONNREFUSED", "connection refused"},
1697 66: "directory not empty", 1726 {62, "ELOOP", "too many levels of symbolic links"},
1698 67: "too many processes", 1727 {63, "ENAMETOOLONG", "file name too long"},
1699 68: "too many users", 1728 {64, "EHOSTDOWN", "host is down"},
1700 69: "disc quota exceeded", 1729 {65, "EHOSTUNREACH", "no route to host"},
1701 70: "stale NFS file handle", 1730 {66, "ENOTEMPTY", "directory not empty"},
1702 71: "too many levels of remote in path", 1731 {67, "EPROCLIM", "too many processes"},
1703 72: "RPC struct is bad", 1732 {68, "EUSERS", "too many users"},
1704 73: "RPC version wrong", 1733 {69, "EDQUOT", "disc quota exceeded"},
1705 74: "RPC prog. not avail", 1734 {70, "ESTALE", "stale NFS file handle"},
1706 75: "program version wrong", 1735 {71, "EREMOTE", "too many levels of remote in path"},
1707 76: "bad procedure for program", 1736 {72, "EBADRPC", "RPC struct is bad"},
1708 77: "no locks available", 1737 {73, "ERPCMISMATCH", "RPC version wrong"},
1709 78: "function not implemented", 1738 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1710 79: "inappropriate file type or format", 1739 {75, "EPROGMISMATCH", "program version wrong"},
1711 80: "authentication error", 1740 {76, "EPROCUNAVAIL", "bad procedure for program"},
1712 81: "need authenticator", 1741 {77, "ENOLCK", "no locks available"},
1713 82: "identifier removed", 1742 {78, "ENOSYS", "function not implemented"},
1714 83: "no message of desired type", 1743 {79, "EFTYPE", "inappropriate file type or format"},
1715 84: "value too large to be stored in data type", 1744 {80, "EAUTH", "authentication error"},
1716 85: "operation canceled", 1745 {81, "ENEEDAUTH", "need authenticator"},
1717 86: "illegal byte sequence", 1746 {82, "EIDRM", "identifier removed"},
1718 87: "attribute not found", 1747 {83, "ENOMSG", "no message of desired type"},
1719 88: "programming error", 1748 {84, "EOVERFLOW", "value too large to be stored in data type"},
1720 89: "bad message", 1749 {85, "ECANCELED", "operation canceled"},
1721 90: "multihop attempted", 1750 {86, "EILSEQ", "illegal byte sequence"},
1722 91: "link has been severed", 1751 {87, "ENOATTR", "attribute not found"},
1723 92: "protocol error", 1752 {88, "EDOOFUS", "programming error"},
1724 93: "capabilities insufficient", 1753 {89, "EBADMSG", "bad message"},
1725 94: "not permitted in capability mode", 1754 {90, "EMULTIHOP", "multihop attempted"},
1726 95: "state not recoverable", 1755 {91, "ENOLINK", "link has been severed"},
1727 96: "previous owner died", 1756 {92, "EPROTO", "protocol error"},
1757 {93, "ENOTCAPABLE", "capabilities insufficient"},
1758 {94, "ECAPMODE", "not permitted in capability mode"},
1759 {95, "ENOTRECOVERABLE", "state not recoverable"},
1760 {96, "EOWNERDEAD", "previous owner died"},
1728} 1761}
1729 1762
1730// Signal table 1763// Signal table
1731var signals = [...]string{ 1764var signalList = [...]struct {
1732 1: "hangup", 1765 num syscall.Signal
1733 2: "interrupt", 1766 name string
1734 3: "quit", 1767 desc string
1735 4: "illegal instruction", 1768}{
1736 5: "trace/BPT trap", 1769 {1, "SIGHUP", "hangup"},
1737 6: "abort trap", 1770 {2, "SIGINT", "interrupt"},
1738 7: "EMT trap", 1771 {3, "SIGQUIT", "quit"},
1739 8: "floating point exception", 1772 {4, "SIGILL", "illegal instruction"},
1740 9: "killed", 1773 {5, "SIGTRAP", "trace/BPT trap"},
1741 10: "bus error", 1774 {6, "SIGIOT", "abort trap"},
1742 11: "segmentation fault", 1775 {7, "SIGEMT", "EMT trap"},
1743 12: "bad system call", 1776 {8, "SIGFPE", "floating point exception"},
1744 13: "broken pipe", 1777 {9, "SIGKILL", "killed"},
1745 14: "alarm clock", 1778 {10, "SIGBUS", "bus error"},
1746 15: "terminated", 1779 {11, "SIGSEGV", "segmentation fault"},
1747 16: "urgent I/O condition", 1780 {12, "SIGSYS", "bad system call"},
1748 17: "suspended (signal)", 1781 {13, "SIGPIPE", "broken pipe"},
1749 18: "suspended", 1782 {14, "SIGALRM", "alarm clock"},
1750 19: "continued", 1783 {15, "SIGTERM", "terminated"},
1751 20: "child exited", 1784 {16, "SIGURG", "urgent I/O condition"},
1752 21: "stopped (tty input)", 1785 {17, "SIGSTOP", "suspended (signal)"},
1753 22: "stopped (tty output)", 1786 {18, "SIGTSTP", "suspended"},
1754 23: "I/O possible", 1787 {19, "SIGCONT", "continued"},
1755 24: "cputime limit exceeded", 1788 {20, "SIGCHLD", "child exited"},
1756 25: "filesize limit exceeded", 1789 {21, "SIGTTIN", "stopped (tty input)"},
1757 26: "virtual timer expired", 1790 {22, "SIGTTOU", "stopped (tty output)"},
1758 27: "profiling timer expired", 1791 {23, "SIGIO", "I/O possible"},
1759 28: "window size changes", 1792 {24, "SIGXCPU", "cputime limit exceeded"},
1760 29: "information request", 1793 {25, "SIGXFSZ", "filesize limit exceeded"},
1761 30: "user defined signal 1", 1794 {26, "SIGVTALRM", "virtual timer expired"},
1762 31: "user defined signal 2", 1795 {27, "SIGPROF", "profiling timer expired"},
1763 32: "unknown signal", 1796 {28, "SIGWINCH", "window size changes"},
1764 33: "unknown signal", 1797 {29, "SIGINFO", "information request"},
1798 {30, "SIGUSR1", "user defined signal 1"},
1799 {31, "SIGUSR2", "user defined signal 2"},
1800 {32, "SIGTHR", "unknown signal"},
1801 {33, "SIGLIBRT", "unknown signal"},
1765} 1802}
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 4fba476..86b980a 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
@@ -3,7 +3,7 @@
3 3
4// +build 386,linux 4// +build 386,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x80041270 178 BLKBSZGET = 0x80041270
167 BLKBSZSET = 0x40041271 179 BLKBSZSET = 0x40041271
168 BLKFLSBUF = 0x1261 180 BLKFLSBUF = 0x1261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x800 354 EFD_NONBLOCK = 0x800
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000 480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -456,6 +492,7 @@ const (
456 FF1 = 0x8000 492 FF1 = 0x8000
457 FFDLY = 0x8000 493 FFDLY = 0x8000
458 FLUSHO = 0x1000 494 FLUSHO = 0x1000
495 FP_XSTATE_MAGIC2 = 0x46505845
459 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 496 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
460 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 497 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
461 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 498 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -463,6 +500,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 500 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 501 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 502 FS_ENCRYPTION_MODE_INVALID = 0x0
503 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
504 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 505 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 506 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 507 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
@@ -476,6 +515,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 515 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 516 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 517 FS_POLICY_FLAGS_VALID = 0x3
518 FUTEXFS_SUPER_MAGIC = 0xbad1dea
519 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 520 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 521 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 522 F_EXLCK = 0x4
@@ -488,6 +529,9 @@ const (
488 F_GETOWN_EX = 0x10 529 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 530 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 531 F_GETSIG = 0xb
532 F_GET_FILE_RW_HINT = 0x40d
533 F_GET_RW_HINT = 0x40b
534 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 535 F_LOCK = 0x1
492 F_NOTIFY = 0x402 536 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 537 F_OFD_GETLK = 0x24
@@ -495,6 +539,10 @@ const (
495 F_OFD_SETLKW = 0x26 539 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 540 F_OK = 0x0
497 F_RDLCK = 0x0 541 F_RDLCK = 0x0
542 F_SEAL_GROW = 0x4
543 F_SEAL_SEAL = 0x1
544 F_SEAL_SHRINK = 0x2
545 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 546 F_SETFD = 0x2
499 F_SETFL = 0x4 547 F_SETFL = 0x4
500 F_SETLEASE = 0x400 548 F_SETLEASE = 0x400
@@ -506,6 +554,8 @@ const (
506 F_SETOWN_EX = 0xf 554 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 555 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 556 F_SETSIG = 0xa
557 F_SET_FILE_RW_HINT = 0x40e
558 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 559 F_SHLCK = 0x8
510 F_TEST = 0x3 560 F_TEST = 0x3
511 F_TLOCK = 0x2 561 F_TLOCK = 0x2
@@ -527,6 +577,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 577 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 578 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 579 GRND_RANDOM = 0x2
580 HDIO_DRIVE_CMD = 0x31f
581 HDIO_DRIVE_CMD_AEB = 0x31e
582 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
583 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
584 HDIO_DRIVE_RESET = 0x31c
585 HDIO_DRIVE_TASK = 0x31e
586 HDIO_DRIVE_TASKFILE = 0x31d
587 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
588 HDIO_GETGEO = 0x301
589 HDIO_GET_32BIT = 0x309
590 HDIO_GET_ACOUSTIC = 0x30f
591 HDIO_GET_ADDRESS = 0x310
592 HDIO_GET_BUSSTATE = 0x31a
593 HDIO_GET_DMA = 0x30b
594 HDIO_GET_IDENTITY = 0x30d
595 HDIO_GET_KEEPSETTINGS = 0x308
596 HDIO_GET_MULTCOUNT = 0x304
597 HDIO_GET_NICE = 0x30c
598 HDIO_GET_NOWERR = 0x30a
599 HDIO_GET_QDMA = 0x305
600 HDIO_GET_UNMASKINTR = 0x302
601 HDIO_GET_WCACHE = 0x30e
602 HDIO_OBSOLETE_IDENTITY = 0x307
603 HDIO_SCAN_HWIF = 0x328
604 HDIO_SET_32BIT = 0x324
605 HDIO_SET_ACOUSTIC = 0x32c
606 HDIO_SET_ADDRESS = 0x32f
607 HDIO_SET_BUSSTATE = 0x32d
608 HDIO_SET_DMA = 0x326
609 HDIO_SET_KEEPSETTINGS = 0x323
610 HDIO_SET_MULTCOUNT = 0x321
611 HDIO_SET_NICE = 0x329
612 HDIO_SET_NOWERR = 0x325
613 HDIO_SET_PIO_MODE = 0x327
614 HDIO_SET_QDMA = 0x32e
615 HDIO_SET_UNMASKINTR = 0x322
616 HDIO_SET_WCACHE = 0x32b
617 HDIO_SET_XFER = 0x306
618 HDIO_TRISTATE_HWIF = 0x31b
619 HDIO_UNREGISTER_HWIF = 0x32a
620 HOSTFS_SUPER_MAGIC = 0xc0ffee
621 HPFS_SUPER_MAGIC = 0xf995e849
622 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x400 623 HUPCL = 0x400
531 IBSHIFT = 0x10 624 IBSHIFT = 0x10
532 ICANON = 0x2 625 ICANON = 0x2
@@ -546,7 +639,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 639 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 640 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 641 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 642 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 643 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 644 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 645 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +654,8 @@ const (
561 IFF_MASTER = 0x400 654 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 655 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 656 IFF_MULTI_QUEUE = 0x100
657 IFF_NAPI = 0x10
658 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 659 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 660 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 661 IFF_NOTRAILERS = 0x20
@@ -671,6 +766,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 766 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 767 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 768 IPV6_DSTOPTS = 0x3b
769 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 770 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 771 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 772 IPV6_HOPOPTS = 0x36
@@ -775,12 +871,34 @@ const (
775 IP_UNICAST_IF = 0x32 871 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 872 IP_XFRM_POLICY = 0x11
777 ISIG = 0x1 873 ISIG = 0x1
874 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 875 ISTRIP = 0x20
779 IUCLC = 0x200 876 IUCLC = 0x200
780 IUTF8 = 0x4000 877 IUTF8 = 0x4000
781 IXANY = 0x800 878 IXANY = 0x800
782 IXOFF = 0x1000 879 IXOFF = 0x1000
783 IXON = 0x400 880 IXON = 0x400
881 JFFS2_SUPER_MAGIC = 0x72b6
882 KEXEC_ARCH_386 = 0x30000
883 KEXEC_ARCH_68K = 0x40000
884 KEXEC_ARCH_AARCH64 = 0xb70000
885 KEXEC_ARCH_ARM = 0x280000
886 KEXEC_ARCH_DEFAULT = 0x0
887 KEXEC_ARCH_IA_64 = 0x320000
888 KEXEC_ARCH_MASK = 0xffff0000
889 KEXEC_ARCH_MIPS = 0x80000
890 KEXEC_ARCH_MIPS_LE = 0xa0000
891 KEXEC_ARCH_PPC = 0x140000
892 KEXEC_ARCH_PPC64 = 0x150000
893 KEXEC_ARCH_S390 = 0x160000
894 KEXEC_ARCH_SH = 0x2a0000
895 KEXEC_ARCH_X86_64 = 0x3e0000
896 KEXEC_FILE_NO_INITRAMFS = 0x4
897 KEXEC_FILE_ON_CRASH = 0x2
898 KEXEC_FILE_UNLOAD = 0x1
899 KEXEC_ON_CRASH = 0x1
900 KEXEC_PRESERVE_CONTEXT = 0x2
901 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 902 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 903 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 904 KEYCTL_CLEAR = 0x7
@@ -845,6 +963,7 @@ const (
845 MADV_FREE = 0x8 963 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 964 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 965 MADV_HWPOISON = 0x64
966 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 967 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 968 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 969 MADV_NORMAL = 0x0
@@ -853,6 +972,7 @@ const (
853 MADV_SEQUENTIAL = 0x2 972 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 973 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 974 MADV_WILLNEED = 0x3
975 MADV_WIPEONFORK = 0x12
856 MAP_32BIT = 0x40 976 MAP_32BIT = 0x40
857 MAP_ANON = 0x20 977 MAP_ANON = 0x20
858 MAP_ANONYMOUS = 0x20 978 MAP_ANONYMOUS = 0x20
@@ -860,6 +980,7 @@ const (
860 MAP_EXECUTABLE = 0x1000 980 MAP_EXECUTABLE = 0x1000
861 MAP_FILE = 0x0 981 MAP_FILE = 0x0
862 MAP_FIXED = 0x10 982 MAP_FIXED = 0x10
983 MAP_FIXED_NOREPLACE = 0x100000
863 MAP_GROWSDOWN = 0x100 984 MAP_GROWSDOWN = 0x100
864 MAP_HUGETLB = 0x40000 985 MAP_HUGETLB = 0x40000
865 MAP_HUGE_MASK = 0x3f 986 MAP_HUGE_MASK = 0x3f
@@ -870,14 +991,37 @@ const (
870 MAP_POPULATE = 0x8000 991 MAP_POPULATE = 0x8000
871 MAP_PRIVATE = 0x2 992 MAP_PRIVATE = 0x2
872 MAP_SHARED = 0x1 993 MAP_SHARED = 0x1
994 MAP_SHARED_VALIDATE = 0x3
873 MAP_STACK = 0x20000 995 MAP_STACK = 0x20000
996 MAP_SYNC = 0x80000
874 MAP_TYPE = 0xf 997 MAP_TYPE = 0xf
875 MCL_CURRENT = 0x1 998 MCL_CURRENT = 0x1
876 MCL_FUTURE = 0x2 999 MCL_FUTURE = 0x2
877 MCL_ONFAULT = 0x4 1000 MCL_ONFAULT = 0x4
1001 MFD_ALLOW_SEALING = 0x2
1002 MFD_CLOEXEC = 0x1
1003 MFD_HUGETLB = 0x4
1004 MFD_HUGE_16GB = -0x78000000
1005 MFD_HUGE_16MB = 0x60000000
1006 MFD_HUGE_1GB = 0x78000000
1007 MFD_HUGE_1MB = 0x50000000
1008 MFD_HUGE_256MB = 0x70000000
1009 MFD_HUGE_2GB = 0x7c000000
1010 MFD_HUGE_2MB = 0x54000000
1011 MFD_HUGE_512KB = 0x4c000000
1012 MFD_HUGE_64KB = 0x40000000
1013 MFD_HUGE_8MB = 0x5c000000
1014 MFD_HUGE_MASK = 0x3f
1015 MFD_HUGE_SHIFT = 0x1a
1016 MINIX2_SUPER_MAGIC = 0x2468
1017 MINIX2_SUPER_MAGIC2 = 0x2478
1018 MINIX3_SUPER_MAGIC = 0x4d5a
1019 MINIX_SUPER_MAGIC = 0x137f
1020 MINIX_SUPER_MAGIC2 = 0x138f
878 MNT_DETACH = 0x2 1021 MNT_DETACH = 0x2
879 MNT_EXPIRE = 0x4 1022 MNT_EXPIRE = 0x4
880 MNT_FORCE = 0x1 1023 MNT_FORCE = 0x1
1024 MSDOS_SUPER_MAGIC = 0x4d44
881 MSG_BATCH = 0x40000 1025 MSG_BATCH = 0x40000
882 MSG_CMSG_CLOEXEC = 0x40000000 1026 MSG_CMSG_CLOEXEC = 0x40000000
883 MSG_CONFIRM = 0x800 1027 MSG_CONFIRM = 0x800
@@ -899,6 +1043,7 @@ const (
899 MSG_TRYHARD = 0x4 1043 MSG_TRYHARD = 0x4
900 MSG_WAITALL = 0x100 1044 MSG_WAITALL = 0x100
901 MSG_WAITFORONE = 0x10000 1045 MSG_WAITFORONE = 0x10000
1046 MSG_ZEROCOPY = 0x4000000
902 MS_ACTIVE = 0x40000000 1047 MS_ACTIVE = 0x40000000
903 MS_ASYNC = 0x1 1048 MS_ASYNC = 0x1
904 MS_BIND = 0x1000 1049 MS_BIND = 0x1000
@@ -936,7 +1081,9 @@ const (
936 MS_SYNCHRONOUS = 0x10 1081 MS_SYNCHRONOUS = 0x10
937 MS_UNBINDABLE = 0x20000 1082 MS_UNBINDABLE = 0x20000
938 MS_VERBOSE = 0x8000 1083 MS_VERBOSE = 0x8000
1084 MTD_INODE_FS_MAGIC = 0x11307854
939 NAME_MAX = 0xff 1085 NAME_MAX = 0xff
1086 NCP_SUPER_MAGIC = 0x564c
940 NETLINK_ADD_MEMBERSHIP = 0x1 1087 NETLINK_ADD_MEMBERSHIP = 0x1
941 NETLINK_AUDIT = 0x9 1088 NETLINK_AUDIT = 0x9
942 NETLINK_BROADCAST_ERROR = 0x4 1089 NETLINK_BROADCAST_ERROR = 0x4
@@ -971,6 +1118,39 @@ const (
971 NETLINK_UNUSED = 0x1 1118 NETLINK_UNUSED = 0x1
972 NETLINK_USERSOCK = 0x2 1119 NETLINK_USERSOCK = 0x2
973 NETLINK_XFRM = 0x6 1120 NETLINK_XFRM = 0x6
1121 NETNSA_MAX = 0x3
1122 NETNSA_NSID_NOT_ASSIGNED = -0x1
1123 NFNETLINK_V0 = 0x0
1124 NFNLGRP_ACCT_QUOTA = 0x8
1125 NFNLGRP_CONNTRACK_DESTROY = 0x3
1126 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1127 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1128 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1129 NFNLGRP_CONNTRACK_NEW = 0x1
1130 NFNLGRP_CONNTRACK_UPDATE = 0x2
1131 NFNLGRP_MAX = 0x9
1132 NFNLGRP_NFTABLES = 0x7
1133 NFNLGRP_NFTRACE = 0x9
1134 NFNLGRP_NONE = 0x0
1135 NFNL_BATCH_MAX = 0x1
1136 NFNL_MSG_BATCH_BEGIN = 0x10
1137 NFNL_MSG_BATCH_END = 0x11
1138 NFNL_NFA_NEST = 0x8000
1139 NFNL_SUBSYS_ACCT = 0x7
1140 NFNL_SUBSYS_COUNT = 0xc
1141 NFNL_SUBSYS_CTHELPER = 0x9
1142 NFNL_SUBSYS_CTNETLINK = 0x1
1143 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1144 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1145 NFNL_SUBSYS_IPSET = 0x6
1146 NFNL_SUBSYS_NFTABLES = 0xa
1147 NFNL_SUBSYS_NFT_COMPAT = 0xb
1148 NFNL_SUBSYS_NONE = 0x0
1149 NFNL_SUBSYS_OSF = 0x5
1150 NFNL_SUBSYS_QUEUE = 0x3
1151 NFNL_SUBSYS_ULOG = 0x4
1152 NFS_SUPER_MAGIC = 0x6969
1153 NILFS_SUPER_MAGIC = 0x3434
974 NL0 = 0x0 1154 NL0 = 0x0
975 NL1 = 0x100 1155 NL1 = 0x100
976 NLA_ALIGNTO = 0x4 1156 NLA_ALIGNTO = 0x4
@@ -998,10 +1178,13 @@ const (
998 NLM_F_EXCL = 0x200 1178 NLM_F_EXCL = 0x200
999 NLM_F_MATCH = 0x200 1179 NLM_F_MATCH = 0x200
1000 NLM_F_MULTI = 0x2 1180 NLM_F_MULTI = 0x2
1181 NLM_F_NONREC = 0x100
1001 NLM_F_REPLACE = 0x100 1182 NLM_F_REPLACE = 0x100
1002 NLM_F_REQUEST = 0x1 1183 NLM_F_REQUEST = 0x1
1003 NLM_F_ROOT = 0x100 1184 NLM_F_ROOT = 0x100
1004 NOFLSH = 0x80 1185 NOFLSH = 0x80
1186 NSFS_MAGIC = 0x6e736673
1187 OCFS2_SUPER_MAGIC = 0x7461636f
1005 OCRNL = 0x8 1188 OCRNL = 0x8
1006 OFDEL = 0x80 1189 OFDEL = 0x80
1007 OFILL = 0x40 1190 OFILL = 0x40
@@ -1009,7 +1192,9 @@ const (
1009 ONLCR = 0x4 1192 ONLCR = 0x4
1010 ONLRET = 0x20 1193 ONLRET = 0x20
1011 ONOCR = 0x10 1194 ONOCR = 0x10
1195 OPENPROM_SUPER_MAGIC = 0x9fa1
1012 OPOST = 0x1 1196 OPOST = 0x1
1197 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1013 O_ACCMODE = 0x3 1198 O_ACCMODE = 0x3
1014 O_APPEND = 0x400 1199 O_APPEND = 0x400
1015 O_ASYNC = 0x2000 1200 O_ASYNC = 0x2000
@@ -1094,16 +1279,20 @@ const (
1094 PERF_EVENT_IOC_DISABLE = 0x2401 1279 PERF_EVENT_IOC_DISABLE = 0x2401
1095 PERF_EVENT_IOC_ENABLE = 0x2400 1280 PERF_EVENT_IOC_ENABLE = 0x2400
1096 PERF_EVENT_IOC_ID = 0x80042407 1281 PERF_EVENT_IOC_ID = 0x80042407
1282 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
1097 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 1283 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
1098 PERF_EVENT_IOC_PERIOD = 0x40082404 1284 PERF_EVENT_IOC_PERIOD = 0x40082404
1285 PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
1099 PERF_EVENT_IOC_REFRESH = 0x2402 1286 PERF_EVENT_IOC_REFRESH = 0x2402
1100 PERF_EVENT_IOC_RESET = 0x2403 1287 PERF_EVENT_IOC_RESET = 0x2403
1101 PERF_EVENT_IOC_SET_BPF = 0x40042408 1288 PERF_EVENT_IOC_SET_BPF = 0x40042408
1102 PERF_EVENT_IOC_SET_FILTER = 0x40042406 1289 PERF_EVENT_IOC_SET_FILTER = 0x40042406
1103 PERF_EVENT_IOC_SET_OUTPUT = 0x2405 1290 PERF_EVENT_IOC_SET_OUTPUT = 0x2405
1291 PIPEFS_MAGIC = 0x50495045
1104 PRIO_PGRP = 0x1 1292 PRIO_PGRP = 0x1
1105 PRIO_PROCESS = 0x0 1293 PRIO_PROCESS = 0x0
1106 PRIO_USER = 0x2 1294 PRIO_USER = 0x2
1295 PROC_SUPER_MAGIC = 0x9fa0
1107 PROT_EXEC = 0x4 1296 PROT_EXEC = 0x4
1108 PROT_GROWSDOWN = 0x1000000 1297 PROT_GROWSDOWN = 0x1000000
1109 PROT_GROWSUP = 0x2000000 1298 PROT_GROWSUP = 0x2000000
@@ -1146,6 +1335,7 @@ const (
1146 PR_GET_PDEATHSIG = 0x2 1335 PR_GET_PDEATHSIG = 0x2
1147 PR_GET_SECCOMP = 0x15 1336 PR_GET_SECCOMP = 0x15
1148 PR_GET_SECUREBITS = 0x1b 1337 PR_GET_SECUREBITS = 0x1b
1338 PR_GET_SPECULATION_CTRL = 0x34
1149 PR_GET_THP_DISABLE = 0x2a 1339 PR_GET_THP_DISABLE = 0x2a
1150 PR_GET_TID_ADDRESS = 0x28 1340 PR_GET_TID_ADDRESS = 0x28
1151 PR_GET_TIMERSLACK = 0x1e 1341 PR_GET_TIMERSLACK = 0x1e
@@ -1191,11 +1381,23 @@ const (
1191 PR_SET_PTRACER_ANY = 0xffffffff 1381 PR_SET_PTRACER_ANY = 0xffffffff
1192 PR_SET_SECCOMP = 0x16 1382 PR_SET_SECCOMP = 0x16
1193 PR_SET_SECUREBITS = 0x1c 1383 PR_SET_SECUREBITS = 0x1c
1384 PR_SET_SPECULATION_CTRL = 0x35
1194 PR_SET_THP_DISABLE = 0x29 1385 PR_SET_THP_DISABLE = 0x29
1195 PR_SET_TIMERSLACK = 0x1d 1386 PR_SET_TIMERSLACK = 0x1d
1196 PR_SET_TIMING = 0xe 1387 PR_SET_TIMING = 0xe
1197 PR_SET_TSC = 0x1a 1388 PR_SET_TSC = 0x1a
1198 PR_SET_UNALIGN = 0x6 1389 PR_SET_UNALIGN = 0x6
1390 PR_SPEC_DISABLE = 0x4
1391 PR_SPEC_ENABLE = 0x2
1392 PR_SPEC_FORCE_DISABLE = 0x8
1393 PR_SPEC_NOT_AFFECTED = 0x0
1394 PR_SPEC_PRCTL = 0x1
1395 PR_SPEC_STORE_BYPASS = 0x0
1396 PR_SVE_GET_VL = 0x33
1397 PR_SVE_SET_VL = 0x32
1398 PR_SVE_SET_VL_ONEXEC = 0x40000
1399 PR_SVE_VL_INHERIT = 0x20000
1400 PR_SVE_VL_LEN_MASK = 0xffff
1199 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1401 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1200 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1402 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1201 PR_TIMING_STATISTICAL = 0x0 1403 PR_TIMING_STATISTICAL = 0x0
@@ -1204,6 +1406,7 @@ const (
1204 PR_TSC_SIGSEGV = 0x2 1406 PR_TSC_SIGSEGV = 0x2
1205 PR_UNALIGN_NOPRINT = 0x1 1407 PR_UNALIGN_NOPRINT = 0x1
1206 PR_UNALIGN_SIGBUS = 0x2 1408 PR_UNALIGN_SIGBUS = 0x2
1409 PSTOREFS_MAGIC = 0x6165676c
1207 PTRACE_ATTACH = 0x10 1410 PTRACE_ATTACH = 0x10
1208 PTRACE_CONT = 0x7 1411 PTRACE_CONT = 0x7
1209 PTRACE_DETACH = 0x11 1412 PTRACE_DETACH = 0x11
@@ -1247,6 +1450,7 @@ const (
1247 PTRACE_POKETEXT = 0x4 1450 PTRACE_POKETEXT = 0x4
1248 PTRACE_POKEUSR = 0x6 1451 PTRACE_POKEUSR = 0x6
1249 PTRACE_SECCOMP_GET_FILTER = 0x420c 1452 PTRACE_SECCOMP_GET_FILTER = 0x420c
1453 PTRACE_SECCOMP_GET_METADATA = 0x420d
1250 PTRACE_SEIZE = 0x4206 1454 PTRACE_SEIZE = 0x4206
1251 PTRACE_SETFPREGS = 0xf 1455 PTRACE_SETFPREGS = 0xf
1252 PTRACE_SETFPXREGS = 0x13 1456 PTRACE_SETFPXREGS = 0x13
@@ -1262,6 +1466,14 @@ const (
1262 PTRACE_SYSEMU = 0x1f 1466 PTRACE_SYSEMU = 0x1f
1263 PTRACE_SYSEMU_SINGLESTEP = 0x20 1467 PTRACE_SYSEMU_SINGLESTEP = 0x20
1264 PTRACE_TRACEME = 0x0 1468 PTRACE_TRACEME = 0x0
1469 QNX4_SUPER_MAGIC = 0x2f
1470 QNX6_SUPER_MAGIC = 0x68191122
1471 RAMFS_MAGIC = 0x858458f6
1472 RDTGROUP_SUPER_MAGIC = 0x7655821
1473 REISERFS_SUPER_MAGIC = 0x52654973
1474 RENAME_EXCHANGE = 0x2
1475 RENAME_NOREPLACE = 0x1
1476 RENAME_WHITEOUT = 0x4
1265 RLIMIT_AS = 0x9 1477 RLIMIT_AS = 0x9
1266 RLIMIT_CORE = 0x4 1478 RLIMIT_CORE = 0x4
1267 RLIMIT_CPU = 0x0 1479 RLIMIT_CPU = 0x0
@@ -1282,6 +1494,7 @@ const (
1282 RTAX_ADVMSS = 0x8 1494 RTAX_ADVMSS = 0x8
1283 RTAX_CC_ALGO = 0x10 1495 RTAX_CC_ALGO = 0x10
1284 RTAX_CWND = 0x7 1496 RTAX_CWND = 0x7
1497 RTAX_FASTOPEN_NO_COOKIE = 0x11
1285 RTAX_FEATURES = 0xc 1498 RTAX_FEATURES = 0xc
1286 RTAX_FEATURE_ALLFRAG = 0x8 1499 RTAX_FEATURE_ALLFRAG = 0x8
1287 RTAX_FEATURE_ECN = 0x1 1500 RTAX_FEATURE_ECN = 0x1
@@ -1292,7 +1505,7 @@ const (
1292 RTAX_INITCWND = 0xb 1505 RTAX_INITCWND = 0xb
1293 RTAX_INITRWND = 0xe 1506 RTAX_INITRWND = 0xe
1294 RTAX_LOCK = 0x1 1507 RTAX_LOCK = 0x1
1295 RTAX_MAX = 0x10 1508 RTAX_MAX = 0x11
1296 RTAX_MTU = 0x2 1509 RTAX_MTU = 0x2
1297 RTAX_QUICKACK = 0xf 1510 RTAX_QUICKACK = 0xf
1298 RTAX_REORDERING = 0x9 1511 RTAX_REORDERING = 0x9
@@ -1303,13 +1516,40 @@ const (
1303 RTAX_UNSPEC = 0x0 1516 RTAX_UNSPEC = 0x0
1304 RTAX_WINDOW = 0x3 1517 RTAX_WINDOW = 0x3
1305 RTA_ALIGNTO = 0x4 1518 RTA_ALIGNTO = 0x4
1306 RTA_MAX = 0x1a 1519 RTA_MAX = 0x1d
1307 RTCF_DIRECTSRC = 0x4000000 1520 RTCF_DIRECTSRC = 0x4000000
1308 RTCF_DOREDIRECT = 0x1000000 1521 RTCF_DOREDIRECT = 0x1000000
1309 RTCF_LOG = 0x2000000 1522 RTCF_LOG = 0x2000000
1310 RTCF_MASQ = 0x400000 1523 RTCF_MASQ = 0x400000
1311 RTCF_NAT = 0x800000 1524 RTCF_NAT = 0x800000
1312 RTCF_VALVE = 0x200000 1525 RTCF_VALVE = 0x200000
1526 RTC_AF = 0x20
1527 RTC_AIE_OFF = 0x7002
1528 RTC_AIE_ON = 0x7001
1529 RTC_ALM_READ = 0x80247008
1530 RTC_ALM_SET = 0x40247007
1531 RTC_EPOCH_READ = 0x8004700d
1532 RTC_EPOCH_SET = 0x4004700e
1533 RTC_IRQF = 0x80
1534 RTC_IRQP_READ = 0x8004700b
1535 RTC_IRQP_SET = 0x4004700c
1536 RTC_MAX_FREQ = 0x2000
1537 RTC_PF = 0x40
1538 RTC_PIE_OFF = 0x7006
1539 RTC_PIE_ON = 0x7005
1540 RTC_PLL_GET = 0x801c7011
1541 RTC_PLL_SET = 0x401c7012
1542 RTC_RD_TIME = 0x80247009
1543 RTC_SET_TIME = 0x4024700a
1544 RTC_UF = 0x10
1545 RTC_UIE_OFF = 0x7004
1546 RTC_UIE_ON = 0x7003
1547 RTC_VL_CLR = 0x7014
1548 RTC_VL_READ = 0x80047013
1549 RTC_WIE_OFF = 0x7010
1550 RTC_WIE_ON = 0x700f
1551 RTC_WKALM_RD = 0x80287010
1552 RTC_WKALM_SET = 0x4028700f
1313 RTF_ADDRCLASSMASK = 0xf8000000 1553 RTF_ADDRCLASSMASK = 0xf8000000
1314 RTF_ADDRCONF = 0x40000 1554 RTF_ADDRCONF = 0x40000
1315 RTF_ALLONLINK = 0x20000 1555 RTF_ALLONLINK = 0x20000
@@ -1412,17 +1652,22 @@ const (
1412 RTNH_F_UNRESOLVED = 0x20 1652 RTNH_F_UNRESOLVED = 0x20
1413 RTN_MAX = 0xb 1653 RTN_MAX = 0xb
1414 RTPROT_BABEL = 0x2a 1654 RTPROT_BABEL = 0x2a
1655 RTPROT_BGP = 0xba
1415 RTPROT_BIRD = 0xc 1656 RTPROT_BIRD = 0xc
1416 RTPROT_BOOT = 0x3 1657 RTPROT_BOOT = 0x3
1417 RTPROT_DHCP = 0x10 1658 RTPROT_DHCP = 0x10
1418 RTPROT_DNROUTED = 0xd 1659 RTPROT_DNROUTED = 0xd
1660 RTPROT_EIGRP = 0xc0
1419 RTPROT_GATED = 0x8 1661 RTPROT_GATED = 0x8
1662 RTPROT_ISIS = 0xbb
1420 RTPROT_KERNEL = 0x2 1663 RTPROT_KERNEL = 0x2
1421 RTPROT_MROUTED = 0x11 1664 RTPROT_MROUTED = 0x11
1422 RTPROT_MRT = 0xa 1665 RTPROT_MRT = 0xa
1423 RTPROT_NTK = 0xf 1666 RTPROT_NTK = 0xf
1667 RTPROT_OSPF = 0xbc
1424 RTPROT_RA = 0x9 1668 RTPROT_RA = 0x9
1425 RTPROT_REDIRECT = 0x1 1669 RTPROT_REDIRECT = 0x1
1670 RTPROT_RIP = 0xbd
1426 RTPROT_STATIC = 0x4 1671 RTPROT_STATIC = 0x4
1427 RTPROT_UNSPEC = 0x0 1672 RTPROT_UNSPEC = 0x0
1428 RTPROT_XORP = 0xe 1673 RTPROT_XORP = 0xe
@@ -1446,6 +1691,8 @@ const (
1446 SECCOMP_MODE_DISABLED = 0x0 1691 SECCOMP_MODE_DISABLED = 0x0
1447 SECCOMP_MODE_FILTER = 0x2 1692 SECCOMP_MODE_FILTER = 0x2
1448 SECCOMP_MODE_STRICT = 0x1 1693 SECCOMP_MODE_STRICT = 0x1
1694 SECURITYFS_MAGIC = 0x73636673
1695 SELINUX_MAGIC = 0xf97cff8c
1449 SHUT_RD = 0x0 1696 SHUT_RD = 0x0
1450 SHUT_RDWR = 0x2 1697 SHUT_RDWR = 0x2
1451 SHUT_WR = 0x1 1698 SHUT_WR = 0x1
@@ -1530,6 +1777,23 @@ const (
1530 SIOCSPGRP = 0x8902 1777 SIOCSPGRP = 0x8902
1531 SIOCSRARP = 0x8962 1778 SIOCSRARP = 0x8962
1532 SIOCWANDEV = 0x894a 1779 SIOCWANDEV = 0x894a
1780 SMACK_MAGIC = 0x43415d53
1781 SMART_AUTOSAVE = 0xd2
1782 SMART_AUTO_OFFLINE = 0xdb
1783 SMART_DISABLE = 0xd9
1784 SMART_ENABLE = 0xd8
1785 SMART_HCYL_PASS = 0xc2
1786 SMART_IMMEDIATE_OFFLINE = 0xd4
1787 SMART_LCYL_PASS = 0x4f
1788 SMART_READ_LOG_SECTOR = 0xd5
1789 SMART_READ_THRESHOLDS = 0xd1
1790 SMART_READ_VALUES = 0xd0
1791 SMART_SAVE = 0xd3
1792 SMART_STATUS = 0xda
1793 SMART_WRITE_LOG_SECTOR = 0xd6
1794 SMART_WRITE_THRESHOLDS = 0xd7
1795 SMB_SUPER_MAGIC = 0x517b
1796 SOCKFS_MAGIC = 0x534f434b
1533 SOCK_CLOEXEC = 0x80000 1797 SOCK_CLOEXEC = 0x80000
1534 SOCK_DCCP = 0x6 1798 SOCK_DCCP = 0x6
1535 SOCK_DGRAM = 0x2 1799 SOCK_DGRAM = 0x2
@@ -1566,7 +1830,9 @@ const (
1566 SOL_SOCKET = 0x1 1830 SOL_SOCKET = 0x1
1567 SOL_TCP = 0x6 1831 SOL_TCP = 0x6
1568 SOL_TIPC = 0x10f 1832 SOL_TIPC = 0x10f
1833 SOL_TLS = 0x11a
1569 SOL_X25 = 0x106 1834 SOL_X25 = 0x106
1835 SOL_XDP = 0x11b
1570 SOMAXCONN = 0x80 1836 SOMAXCONN = 0x80
1571 SO_ACCEPTCONN = 0x1e 1837 SO_ACCEPTCONN = 0x1e
1572 SO_ATTACH_BPF = 0x32 1838 SO_ATTACH_BPF = 0x32
@@ -1634,10 +1900,13 @@ const (
1634 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1900 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1635 SO_VM_SOCKETS_TRUSTED = 0x5 1901 SO_VM_SOCKETS_TRUSTED = 0x5
1636 SO_WIFI_STATUS = 0x29 1902 SO_WIFI_STATUS = 0x29
1903 SO_ZEROCOPY = 0x3c
1637 SPLICE_F_GIFT = 0x8 1904 SPLICE_F_GIFT = 0x8
1638 SPLICE_F_MORE = 0x4 1905 SPLICE_F_MORE = 0x4
1639 SPLICE_F_MOVE = 0x1 1906 SPLICE_F_MOVE = 0x1
1640 SPLICE_F_NONBLOCK = 0x2 1907 SPLICE_F_NONBLOCK = 0x2
1908 SQUASHFS_MAGIC = 0x73717368
1909 STACK_END_MAGIC = 0x57ac6e9d
1641 STATX_ALL = 0xfff 1910 STATX_ALL = 0xfff
1642 STATX_ATIME = 0x20 1911 STATX_ATIME = 0x20
1643 STATX_ATTR_APPEND = 0x20 1912 STATX_ATTR_APPEND = 0x20
@@ -1659,6 +1928,10 @@ const (
1659 STATX_TYPE = 0x1 1928 STATX_TYPE = 0x1
1660 STATX_UID = 0x8 1929 STATX_UID = 0x8
1661 STATX__RESERVED = 0x80000000 1930 STATX__RESERVED = 0x80000000
1931 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1932 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1933 SYNC_FILE_RANGE_WRITE = 0x2
1934 SYSFS_MAGIC = 0x62656572
1662 S_BLKSIZE = 0x200 1935 S_BLKSIZE = 0x200
1663 S_IEXEC = 0x40 1936 S_IEXEC = 0x40
1664 S_IFBLK = 0x6000 1937 S_IFBLK = 0x6000
@@ -1721,6 +1994,8 @@ const (
1721 TCP_DEFER_ACCEPT = 0x9 1994 TCP_DEFER_ACCEPT = 0x9
1722 TCP_FASTOPEN = 0x17 1995 TCP_FASTOPEN = 0x17
1723 TCP_FASTOPEN_CONNECT = 0x1e 1996 TCP_FASTOPEN_CONNECT = 0x1e
1997 TCP_FASTOPEN_KEY = 0x21
1998 TCP_FASTOPEN_NO_COOKIE = 0x22
1724 TCP_INFO = 0xb 1999 TCP_INFO = 0xb
1725 TCP_KEEPCNT = 0x6 2000 TCP_KEEPCNT = 0x6
1726 TCP_KEEPIDLE = 0x4 2001 TCP_KEEPIDLE = 0x4
@@ -1730,6 +2005,8 @@ const (
1730 TCP_MAXWIN = 0xffff 2005 TCP_MAXWIN = 0xffff
1731 TCP_MAX_WINSHIFT = 0xe 2006 TCP_MAX_WINSHIFT = 0xe
1732 TCP_MD5SIG = 0xe 2007 TCP_MD5SIG = 0xe
2008 TCP_MD5SIG_EXT = 0x20
2009 TCP_MD5SIG_FLAG_PREFIX = 0x1
1733 TCP_MD5SIG_MAXKEYLEN = 0x50 2010 TCP_MD5SIG_MAXKEYLEN = 0x50
1734 TCP_MSS = 0x200 2011 TCP_MSS = 0x200
1735 TCP_MSS_DEFAULT = 0x218 2012 TCP_MSS_DEFAULT = 0x218
@@ -1750,6 +2027,7 @@ const (
1750 TCP_THIN_DUPACK = 0x11 2027 TCP_THIN_DUPACK = 0x11
1751 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2028 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1752 TCP_TIMESTAMP = 0x18 2029 TCP_TIMESTAMP = 0x18
2030 TCP_ULP = 0x1f
1753 TCP_USER_TIMEOUT = 0x12 2031 TCP_USER_TIMEOUT = 0x12
1754 TCP_WINDOW_CLAMP = 0xa 2032 TCP_WINDOW_CLAMP = 0xa
1755 TCSAFLUSH = 0x2 2033 TCSAFLUSH = 0x2
@@ -1837,7 +2115,27 @@ const (
1837 TIOCSTI = 0x5412 2115 TIOCSTI = 0x5412
1838 TIOCSWINSZ = 0x5414 2116 TIOCSWINSZ = 0x5414
1839 TIOCVHANGUP = 0x5437 2117 TIOCVHANGUP = 0x5437
2118 TMPFS_MAGIC = 0x1021994
1840 TOSTOP = 0x100 2119 TOSTOP = 0x100
2120 TPACKET_ALIGNMENT = 0x10
2121 TPACKET_HDRLEN = 0x34
2122 TP_STATUS_AVAILABLE = 0x0
2123 TP_STATUS_BLK_TMO = 0x20
2124 TP_STATUS_COPY = 0x2
2125 TP_STATUS_CSUMNOTREADY = 0x8
2126 TP_STATUS_CSUM_VALID = 0x80
2127 TP_STATUS_KERNEL = 0x0
2128 TP_STATUS_LOSING = 0x4
2129 TP_STATUS_SENDING = 0x2
2130 TP_STATUS_SEND_REQUEST = 0x1
2131 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2132 TP_STATUS_TS_SOFTWARE = 0x20000000
2133 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2134 TP_STATUS_USER = 0x1
2135 TP_STATUS_VLAN_TPID_VALID = 0x40
2136 TP_STATUS_VLAN_VALID = 0x10
2137 TP_STATUS_WRONG_FORMAT = 0x4
2138 TRACEFS_MAGIC = 0x74726163
1841 TS_COMM_LEN = 0x20 2139 TS_COMM_LEN = 0x20
1842 TUNATTACHFILTER = 0x400854d5 2140 TUNATTACHFILTER = 0x400854d5
1843 TUNDETACHFILTER = 0x400854d6 2141 TUNDETACHFILTER = 0x400854d6
@@ -1849,6 +2147,7 @@ const (
1849 TUNGETVNETHDRSZ = 0x800454d7 2147 TUNGETVNETHDRSZ = 0x800454d7
1850 TUNGETVNETLE = 0x800454dd 2148 TUNGETVNETLE = 0x800454dd
1851 TUNSETDEBUG = 0x400454c9 2149 TUNSETDEBUG = 0x400454c9
2150 TUNSETFILTEREBPF = 0x800454e1
1852 TUNSETGROUP = 0x400454ce 2151 TUNSETGROUP = 0x400454ce
1853 TUNSETIFF = 0x400454ca 2152 TUNSETIFF = 0x400454ca
1854 TUNSETIFINDEX = 0x400454da 2153 TUNSETIFINDEX = 0x400454da
@@ -1859,13 +2158,32 @@ const (
1859 TUNSETPERSIST = 0x400454cb 2158 TUNSETPERSIST = 0x400454cb
1860 TUNSETQUEUE = 0x400454d9 2159 TUNSETQUEUE = 0x400454d9
1861 TUNSETSNDBUF = 0x400454d4 2160 TUNSETSNDBUF = 0x400454d4
2161 TUNSETSTEERINGEBPF = 0x800454e0
1862 TUNSETTXFILTER = 0x400454d1 2162 TUNSETTXFILTER = 0x400454d1
1863 TUNSETVNETBE = 0x400454de 2163 TUNSETVNETBE = 0x400454de
1864 TUNSETVNETHDRSZ = 0x400454d8 2164 TUNSETVNETHDRSZ = 0x400454d8
1865 TUNSETVNETLE = 0x400454dc 2165 TUNSETVNETLE = 0x400454dc
2166 UBI_IOCATT = 0x40186f40
2167 UBI_IOCDET = 0x40046f41
2168 UBI_IOCEBCH = 0x40044f02
2169 UBI_IOCEBER = 0x40044f01
2170 UBI_IOCEBISMAP = 0x80044f05
2171 UBI_IOCEBMAP = 0x40084f03
2172 UBI_IOCEBUNMAP = 0x40044f04
2173 UBI_IOCMKVOL = 0x40986f00
2174 UBI_IOCRMVOL = 0x40046f01
2175 UBI_IOCRNVOL = 0x51106f03
2176 UBI_IOCRSVOL = 0x400c6f02
2177 UBI_IOCSETVOLPROP = 0x40104f06
2178 UBI_IOCVOLCRBLK = 0x40804f07
2179 UBI_IOCVOLRMBLK = 0x4f08
2180 UBI_IOCVOLUP = 0x40084f00
2181 UDF_SUPER_MAGIC = 0x15013346
1866 UMOUNT_NOFOLLOW = 0x8 2182 UMOUNT_NOFOLLOW = 0x8
2183 USBDEVICE_SUPER_MAGIC = 0x9fa2
1867 UTIME_NOW = 0x3fffffff 2184 UTIME_NOW = 0x3fffffff
1868 UTIME_OMIT = 0x3ffffffe 2185 UTIME_OMIT = 0x3ffffffe
2186 V9FS_MAGIC = 0x1021997
1869 VDISCARD = 0xd 2187 VDISCARD = 0xd
1870 VEOF = 0x4 2188 VEOF = 0x4
1871 VEOL = 0xb 2189 VEOL = 0xb
@@ -1907,16 +2225,119 @@ const (
1907 WDIOC_SETPRETIMEOUT = 0xc0045708 2225 WDIOC_SETPRETIMEOUT = 0xc0045708
1908 WDIOC_SETTIMEOUT = 0xc0045706 2226 WDIOC_SETTIMEOUT = 0xc0045706
1909 WEXITED = 0x4 2227 WEXITED = 0x4
2228 WIN_ACKMEDIACHANGE = 0xdb
2229 WIN_CHECKPOWERMODE1 = 0xe5
2230 WIN_CHECKPOWERMODE2 = 0x98
2231 WIN_DEVICE_RESET = 0x8
2232 WIN_DIAGNOSE = 0x90
2233 WIN_DOORLOCK = 0xde
2234 WIN_DOORUNLOCK = 0xdf
2235 WIN_DOWNLOAD_MICROCODE = 0x92
2236 WIN_FLUSH_CACHE = 0xe7
2237 WIN_FLUSH_CACHE_EXT = 0xea
2238 WIN_FORMAT = 0x50
2239 WIN_GETMEDIASTATUS = 0xda
2240 WIN_IDENTIFY = 0xec
2241 WIN_IDENTIFY_DMA = 0xee
2242 WIN_IDLEIMMEDIATE = 0xe1
2243 WIN_INIT = 0x60
2244 WIN_MEDIAEJECT = 0xed
2245 WIN_MULTREAD = 0xc4
2246 WIN_MULTREAD_EXT = 0x29
2247 WIN_MULTWRITE = 0xc5
2248 WIN_MULTWRITE_EXT = 0x39
2249 WIN_NOP = 0x0
2250 WIN_PACKETCMD = 0xa0
2251 WIN_PIDENTIFY = 0xa1
2252 WIN_POSTBOOT = 0xdc
2253 WIN_PREBOOT = 0xdd
2254 WIN_QUEUED_SERVICE = 0xa2
2255 WIN_READ = 0x20
2256 WIN_READDMA = 0xc8
2257 WIN_READDMA_EXT = 0x25
2258 WIN_READDMA_ONCE = 0xc9
2259 WIN_READDMA_QUEUED = 0xc7
2260 WIN_READDMA_QUEUED_EXT = 0x26
2261 WIN_READ_BUFFER = 0xe4
2262 WIN_READ_EXT = 0x24
2263 WIN_READ_LONG = 0x22
2264 WIN_READ_LONG_ONCE = 0x23
2265 WIN_READ_NATIVE_MAX = 0xf8
2266 WIN_READ_NATIVE_MAX_EXT = 0x27
2267 WIN_READ_ONCE = 0x21
2268 WIN_RECAL = 0x10
2269 WIN_RESTORE = 0x10
2270 WIN_SECURITY_DISABLE = 0xf6
2271 WIN_SECURITY_ERASE_PREPARE = 0xf3
2272 WIN_SECURITY_ERASE_UNIT = 0xf4
2273 WIN_SECURITY_FREEZE_LOCK = 0xf5
2274 WIN_SECURITY_SET_PASS = 0xf1
2275 WIN_SECURITY_UNLOCK = 0xf2
2276 WIN_SEEK = 0x70
2277 WIN_SETFEATURES = 0xef
2278 WIN_SETIDLE1 = 0xe3
2279 WIN_SETIDLE2 = 0x97
2280 WIN_SETMULT = 0xc6
2281 WIN_SET_MAX = 0xf9
2282 WIN_SET_MAX_EXT = 0x37
2283 WIN_SLEEPNOW1 = 0xe6
2284 WIN_SLEEPNOW2 = 0x99
2285 WIN_SMART = 0xb0
2286 WIN_SPECIFY = 0x91
2287 WIN_SRST = 0x8
2288 WIN_STANDBY = 0xe2
2289 WIN_STANDBY2 = 0x96
2290 WIN_STANDBYNOW1 = 0xe0
2291 WIN_STANDBYNOW2 = 0x94
2292 WIN_VERIFY = 0x40
2293 WIN_VERIFY_EXT = 0x42
2294 WIN_VERIFY_ONCE = 0x41
2295 WIN_WRITE = 0x30
2296 WIN_WRITEDMA = 0xca
2297 WIN_WRITEDMA_EXT = 0x35
2298 WIN_WRITEDMA_ONCE = 0xcb
2299 WIN_WRITEDMA_QUEUED = 0xcc
2300 WIN_WRITEDMA_QUEUED_EXT = 0x36
2301 WIN_WRITE_BUFFER = 0xe8
2302 WIN_WRITE_EXT = 0x34
2303 WIN_WRITE_LONG = 0x32
2304 WIN_WRITE_LONG_ONCE = 0x33
2305 WIN_WRITE_ONCE = 0x31
2306 WIN_WRITE_SAME = 0xe9
2307 WIN_WRITE_VERIFY = 0x3c
1910 WNOHANG = 0x1 2308 WNOHANG = 0x1
1911 WNOTHREAD = 0x20000000 2309 WNOTHREAD = 0x20000000
1912 WNOWAIT = 0x1000000 2310 WNOWAIT = 0x1000000
1913 WORDSIZE = 0x20 2311 WORDSIZE = 0x20
1914 WSTOPPED = 0x2 2312 WSTOPPED = 0x2
1915 WUNTRACED = 0x2 2313 WUNTRACED = 0x2
2314 X86_FXSR_MAGIC = 0x0
1916 XATTR_CREATE = 0x1 2315 XATTR_CREATE = 0x1
1917 XATTR_REPLACE = 0x2 2316 XATTR_REPLACE = 0x2
1918 XCASE = 0x4 2317 XCASE = 0x4
2318 XDP_COPY = 0x2
2319 XDP_FLAGS_DRV_MODE = 0x4
2320 XDP_FLAGS_HW_MODE = 0x8
2321 XDP_FLAGS_MASK = 0xf
2322 XDP_FLAGS_MODES = 0xe
2323 XDP_FLAGS_SKB_MODE = 0x2
2324 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2325 XDP_MMAP_OFFSETS = 0x1
2326 XDP_PGOFF_RX_RING = 0x0
2327 XDP_PGOFF_TX_RING = 0x80000000
2328 XDP_RX_RING = 0x2
2329 XDP_SHARED_UMEM = 0x1
2330 XDP_STATISTICS = 0x7
2331 XDP_TX_RING = 0x3
2332 XDP_UMEM_COMPLETION_RING = 0x6
2333 XDP_UMEM_FILL_RING = 0x5
2334 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2335 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2336 XDP_UMEM_REG = 0x4
2337 XDP_ZEROCOPY = 0x4
2338 XENFS_SUPER_MAGIC = 0xabba1974
1919 XTABS = 0x1800 2339 XTABS = 0x1800
2340 ZSMALLOC_MAGIC = 0x58295829
1920) 2341)
1921 2342
1922// Errors 2343// Errors
@@ -2096,171 +2517,179 @@ const (
2096) 2517)
2097 2518
2098// Error table 2519// Error table
2099var errors = [...]string{ 2520var errorList = [...]struct {
2100 1: "operation not permitted", 2521 num syscall.Errno
2101 2: "no such file or directory", 2522 name string
2102 3: "no such process", 2523 desc string
2103 4: "interrupted system call", 2524}{
2104 5: "input/output error", 2525 {1, "EPERM", "operation not permitted"},
2105 6: "no such device or address", 2526 {2, "ENOENT", "no such file or directory"},
2106 7: "argument list too long", 2527 {3, "ESRCH", "no such process"},
2107 8: "exec format error", 2528 {4, "EINTR", "interrupted system call"},
2108 9: "bad file descriptor", 2529 {5, "EIO", "input/output error"},
2109 10: "no child processes", 2530 {6, "ENXIO", "no such device or address"},
2110 11: "resource temporarily unavailable", 2531 {7, "E2BIG", "argument list too long"},
2111 12: "cannot allocate memory", 2532 {8, "ENOEXEC", "exec format error"},
2112 13: "permission denied", 2533 {9, "EBADF", "bad file descriptor"},
2113 14: "bad address", 2534 {10, "ECHILD", "no child processes"},
2114 15: "block device required", 2535 {11, "EAGAIN", "resource temporarily unavailable"},
2115 16: "device or resource busy", 2536 {12, "ENOMEM", "cannot allocate memory"},
2116 17: "file exists", 2537 {13, "EACCES", "permission denied"},
2117 18: "invalid cross-device link", 2538 {14, "EFAULT", "bad address"},
2118 19: "no such device", 2539 {15, "ENOTBLK", "block device required"},
2119 20: "not a directory", 2540 {16, "EBUSY", "device or resource busy"},
2120 21: "is a directory", 2541 {17, "EEXIST", "file exists"},
2121 22: "invalid argument", 2542 {18, "EXDEV", "invalid cross-device link"},
2122 23: "too many open files in system", 2543 {19, "ENODEV", "no such device"},
2123 24: "too many open files", 2544 {20, "ENOTDIR", "not a directory"},
2124 25: "inappropriate ioctl for device", 2545 {21, "EISDIR", "is a directory"},
2125 26: "text file busy", 2546 {22, "EINVAL", "invalid argument"},
2126 27: "file too large", 2547 {23, "ENFILE", "too many open files in system"},
2127 28: "no space left on device", 2548 {24, "EMFILE", "too many open files"},
2128 29: "illegal seek", 2549 {25, "ENOTTY", "inappropriate ioctl for device"},
2129 30: "read-only file system", 2550 {26, "ETXTBSY", "text file busy"},
2130 31: "too many links", 2551 {27, "EFBIG", "file too large"},
2131 32: "broken pipe", 2552 {28, "ENOSPC", "no space left on device"},
2132 33: "numerical argument out of domain", 2553 {29, "ESPIPE", "illegal seek"},
2133 34: "numerical result out of range", 2554 {30, "EROFS", "read-only file system"},
2134 35: "resource deadlock avoided", 2555 {31, "EMLINK", "too many links"},
2135 36: "file name too long", 2556 {32, "EPIPE", "broken pipe"},
2136 37: "no locks available", 2557 {33, "EDOM", "numerical argument out of domain"},
2137 38: "function not implemented", 2558 {34, "ERANGE", "numerical result out of range"},
2138 39: "directory not empty", 2559 {35, "EDEADLK", "resource deadlock avoided"},
2139 40: "too many levels of symbolic links", 2560 {36, "ENAMETOOLONG", "file name too long"},
2140 42: "no message of desired type", 2561 {37, "ENOLCK", "no locks available"},
2141 43: "identifier removed", 2562 {38, "ENOSYS", "function not implemented"},
2142 44: "channel number out of range", 2563 {39, "ENOTEMPTY", "directory not empty"},
2143 45: "level 2 not synchronized", 2564 {40, "ELOOP", "too many levels of symbolic links"},
2144 46: "level 3 halted", 2565 {42, "ENOMSG", "no message of desired type"},
2145 47: "level 3 reset", 2566 {43, "EIDRM", "identifier removed"},
2146 48: "link number out of range", 2567 {44, "ECHRNG", "channel number out of range"},
2147 49: "protocol driver not attached", 2568 {45, "EL2NSYNC", "level 2 not synchronized"},
2148 50: "no CSI structure available", 2569 {46, "EL3HLT", "level 3 halted"},
2149 51: "level 2 halted", 2570 {47, "EL3RST", "level 3 reset"},
2150 52: "invalid exchange", 2571 {48, "ELNRNG", "link number out of range"},
2151 53: "invalid request descriptor", 2572 {49, "EUNATCH", "protocol driver not attached"},
2152 54: "exchange full", 2573 {50, "ENOCSI", "no CSI structure available"},
2153 55: "no anode", 2574 {51, "EL2HLT", "level 2 halted"},
2154 56: "invalid request code", 2575 {52, "EBADE", "invalid exchange"},
2155 57: "invalid slot", 2576 {53, "EBADR", "invalid request descriptor"},
2156 59: "bad font file format", 2577 {54, "EXFULL", "exchange full"},
2157 60: "device not a stream", 2578 {55, "ENOANO", "no anode"},
2158 61: "no data available", 2579 {56, "EBADRQC", "invalid request code"},
2159 62: "timer expired", 2580 {57, "EBADSLT", "invalid slot"},
2160 63: "out of streams resources", 2581 {59, "EBFONT", "bad font file format"},
2161 64: "machine is not on the network", 2582 {60, "ENOSTR", "device not a stream"},
2162 65: "package not installed", 2583 {61, "ENODATA", "no data available"},
2163 66: "object is remote", 2584 {62, "ETIME", "timer expired"},
2164 67: "link has been severed", 2585 {63, "ENOSR", "out of streams resources"},
2165 68: "advertise error", 2586 {64, "ENONET", "machine is not on the network"},
2166 69: "srmount error", 2587 {65, "ENOPKG", "package not installed"},
2167 70: "communication error on send", 2588 {66, "EREMOTE", "object is remote"},
2168 71: "protocol error", 2589 {67, "ENOLINK", "link has been severed"},
2169 72: "multihop attempted", 2590 {68, "EADV", "advertise error"},
2170 73: "RFS specific error", 2591 {69, "ESRMNT", "srmount error"},
2171 74: "bad message", 2592 {70, "ECOMM", "communication error on send"},
2172 75: "value too large for defined data type", 2593 {71, "EPROTO", "protocol error"},
2173 76: "name not unique on network", 2594 {72, "EMULTIHOP", "multihop attempted"},
2174 77: "file descriptor in bad state", 2595 {73, "EDOTDOT", "RFS specific error"},
2175 78: "remote address changed", 2596 {74, "EBADMSG", "bad message"},
2176 79: "can not access a needed shared library", 2597 {75, "EOVERFLOW", "value too large for defined data type"},
2177 80: "accessing a corrupted shared library", 2598 {76, "ENOTUNIQ", "name not unique on network"},
2178 81: ".lib section in a.out corrupted", 2599 {77, "EBADFD", "file descriptor in bad state"},
2179 82: "attempting to link in too many shared libraries", 2600 {78, "EREMCHG", "remote address changed"},
2180 83: "cannot exec a shared library directly", 2601 {79, "ELIBACC", "can not access a needed shared library"},
2181 84: "invalid or incomplete multibyte or wide character", 2602 {80, "ELIBBAD", "accessing a corrupted shared library"},
2182 85: "interrupted system call should be restarted", 2603 {81, "ELIBSCN", ".lib section in a.out corrupted"},
2183 86: "streams pipe error", 2604 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
2184 87: "too many users", 2605 {83, "ELIBEXEC", "cannot exec a shared library directly"},
2185 88: "socket operation on non-socket", 2606 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2186 89: "destination address required", 2607 {85, "ERESTART", "interrupted system call should be restarted"},
2187 90: "message too long", 2608 {86, "ESTRPIPE", "streams pipe error"},
2188 91: "protocol wrong type for socket", 2609 {87, "EUSERS", "too many users"},
2189 92: "protocol not available", 2610 {88, "ENOTSOCK", "socket operation on non-socket"},
2190 93: "protocol not supported", 2611 {89, "EDESTADDRREQ", "destination address required"},
2191 94: "socket type not supported", 2612 {90, "EMSGSIZE", "message too long"},
2192 95: "operation not supported", 2613 {91, "EPROTOTYPE", "protocol wrong type for socket"},
2193 96: "protocol family not supported", 2614 {92, "ENOPROTOOPT", "protocol not available"},
2194 97: "address family not supported by protocol", 2615 {93, "EPROTONOSUPPORT", "protocol not supported"},
2195 98: "address already in use", 2616 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
2196 99: "cannot assign requested address", 2617 {95, "ENOTSUP", "operation not supported"},
2197 100: "network is down", 2618 {96, "EPFNOSUPPORT", "protocol family not supported"},
2198 101: "network is unreachable", 2619 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
2199 102: "network dropped connection on reset", 2620 {98, "EADDRINUSE", "address already in use"},
2200 103: "software caused connection abort", 2621 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
2201 104: "connection reset by peer", 2622 {100, "ENETDOWN", "network is down"},
2202 105: "no buffer space available", 2623 {101, "ENETUNREACH", "network is unreachable"},
2203 106: "transport endpoint is already connected", 2624 {102, "ENETRESET", "network dropped connection on reset"},
2204 107: "transport endpoint is not connected", 2625 {103, "ECONNABORTED", "software caused connection abort"},
2205 108: "cannot send after transport endpoint shutdown", 2626 {104, "ECONNRESET", "connection reset by peer"},
2206 109: "too many references: cannot splice", 2627 {105, "ENOBUFS", "no buffer space available"},
2207 110: "connection timed out", 2628 {106, "EISCONN", "transport endpoint is already connected"},
2208 111: "connection refused", 2629 {107, "ENOTCONN", "transport endpoint is not connected"},
2209 112: "host is down", 2630 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2210 113: "no route to host", 2631 {109, "ETOOMANYREFS", "too many references: cannot splice"},
2211 114: "operation already in progress", 2632 {110, "ETIMEDOUT", "connection timed out"},
2212 115: "operation now in progress", 2633 {111, "ECONNREFUSED", "connection refused"},
2213 116: "stale file handle", 2634 {112, "EHOSTDOWN", "host is down"},
2214 117: "structure needs cleaning", 2635 {113, "EHOSTUNREACH", "no route to host"},
2215 118: "not a XENIX named type file", 2636 {114, "EALREADY", "operation already in progress"},
2216 119: "no XENIX semaphores available", 2637 {115, "EINPROGRESS", "operation now in progress"},
2217 120: "is a named type file", 2638 {116, "ESTALE", "stale file handle"},
2218 121: "remote I/O error", 2639 {117, "EUCLEAN", "structure needs cleaning"},
2219 122: "disk quota exceeded", 2640 {118, "ENOTNAM", "not a XENIX named type file"},
2220 123: "no medium found", 2641 {119, "ENAVAIL", "no XENIX semaphores available"},
2221 124: "wrong medium type", 2642 {120, "EISNAM", "is a named type file"},
2222 125: "operation canceled", 2643 {121, "EREMOTEIO", "remote I/O error"},
2223 126: "required key not available", 2644 {122, "EDQUOT", "disk quota exceeded"},
2224 127: "key has expired", 2645 {123, "ENOMEDIUM", "no medium found"},
2225 128: "key has been revoked", 2646 {124, "EMEDIUMTYPE", "wrong medium type"},
2226 129: "key was rejected by service", 2647 {125, "ECANCELED", "operation canceled"},
2227 130: "owner died", 2648 {126, "ENOKEY", "required key not available"},
2228 131: "state not recoverable", 2649 {127, "EKEYEXPIRED", "key has expired"},
2229 132: "operation not possible due to RF-kill", 2650 {128, "EKEYREVOKED", "key has been revoked"},
2230 133: "memory page has hardware error", 2651 {129, "EKEYREJECTED", "key was rejected by service"},
2652 {130, "EOWNERDEAD", "owner died"},
2653 {131, "ENOTRECOVERABLE", "state not recoverable"},
2654 {132, "ERFKILL", "operation not possible due to RF-kill"},
2655 {133, "EHWPOISON", "memory page has hardware error"},
2231} 2656}
2232 2657
2233// Signal table 2658// Signal table
2234var signals = [...]string{ 2659var signalList = [...]struct {
2235 1: "hangup", 2660 num syscall.Signal
2236 2: "interrupt", 2661 name string
2237 3: "quit", 2662 desc string
2238 4: "illegal instruction", 2663}{
2239 5: "trace/breakpoint trap", 2664 {1, "SIGHUP", "hangup"},
2240 6: "aborted", 2665 {2, "SIGINT", "interrupt"},
2241 7: "bus error", 2666 {3, "SIGQUIT", "quit"},
2242 8: "floating point exception", 2667 {4, "SIGILL", "illegal instruction"},
2243 9: "killed", 2668 {5, "SIGTRAP", "trace/breakpoint trap"},
2244 10: "user defined signal 1", 2669 {6, "SIGABRT", "aborted"},
2245 11: "segmentation fault", 2670 {7, "SIGBUS", "bus error"},
2246 12: "user defined signal 2", 2671 {8, "SIGFPE", "floating point exception"},
2247 13: "broken pipe", 2672 {9, "SIGKILL", "killed"},
2248 14: "alarm clock", 2673 {10, "SIGUSR1", "user defined signal 1"},
2249 15: "terminated", 2674 {11, "SIGSEGV", "segmentation fault"},
2250 16: "stack fault", 2675 {12, "SIGUSR2", "user defined signal 2"},
2251 17: "child exited", 2676 {13, "SIGPIPE", "broken pipe"},
2252 18: "continued", 2677 {14, "SIGALRM", "alarm clock"},
2253 19: "stopped (signal)", 2678 {15, "SIGTERM", "terminated"},
2254 20: "stopped", 2679 {16, "SIGSTKFLT", "stack fault"},
2255 21: "stopped (tty input)", 2680 {17, "SIGCHLD", "child exited"},
2256 22: "stopped (tty output)", 2681 {18, "SIGCONT", "continued"},
2257 23: "urgent I/O condition", 2682 {19, "SIGSTOP", "stopped (signal)"},
2258 24: "CPU time limit exceeded", 2683 {20, "SIGTSTP", "stopped"},
2259 25: "file size limit exceeded", 2684 {21, "SIGTTIN", "stopped (tty input)"},
2260 26: "virtual timer expired", 2685 {22, "SIGTTOU", "stopped (tty output)"},
2261 27: "profiling timer expired", 2686 {23, "SIGURG", "urgent I/O condition"},
2262 28: "window changed", 2687 {24, "SIGXCPU", "CPU time limit exceeded"},
2263 29: "I/O possible", 2688 {25, "SIGXFSZ", "file size limit exceeded"},
2264 30: "power failure", 2689 {26, "SIGVTALRM", "virtual timer expired"},
2265 31: "bad system call", 2690 {27, "SIGPROF", "profiling timer expired"},
2691 {28, "SIGWINCH", "window changed"},
2692 {29, "SIGIO", "I/O possible"},
2693 {30, "SIGPWR", "power failure"},
2694 {31, "SIGSYS", "bad system call"},
2266} 2695}
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 7e2a108..2863115 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
@@ -3,7 +3,7 @@
3 3
4// +build amd64,linux 4// +build amd64,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x80081270 178 BLKBSZGET = 0x80081270
167 BLKBSZSET = 0x40081271 179 BLKBSZSET = 0x40081271
168 BLKFLSBUF = 0x1261 180 BLKFLSBUF = 0x1261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x800 354 EFD_NONBLOCK = 0x800
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000 480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -456,6 +492,7 @@ const (
456 FF1 = 0x8000 492 FF1 = 0x8000
457 FFDLY = 0x8000 493 FFDLY = 0x8000
458 FLUSHO = 0x1000 494 FLUSHO = 0x1000
495 FP_XSTATE_MAGIC2 = 0x46505845
459 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 496 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
460 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 497 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
461 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 498 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -463,6 +500,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 500 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 501 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 502 FS_ENCRYPTION_MODE_INVALID = 0x0
503 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
504 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 505 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 506 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 507 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
@@ -476,6 +515,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 515 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 516 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 517 FS_POLICY_FLAGS_VALID = 0x3
518 FUTEXFS_SUPER_MAGIC = 0xbad1dea
519 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 520 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 521 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 522 F_EXLCK = 0x4
@@ -488,6 +529,9 @@ const (
488 F_GETOWN_EX = 0x10 529 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 530 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 531 F_GETSIG = 0xb
532 F_GET_FILE_RW_HINT = 0x40d
533 F_GET_RW_HINT = 0x40b
534 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 535 F_LOCK = 0x1
492 F_NOTIFY = 0x402 536 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 537 F_OFD_GETLK = 0x24
@@ -495,6 +539,10 @@ const (
495 F_OFD_SETLKW = 0x26 539 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 540 F_OK = 0x0
497 F_RDLCK = 0x0 541 F_RDLCK = 0x0
542 F_SEAL_GROW = 0x4
543 F_SEAL_SEAL = 0x1
544 F_SEAL_SHRINK = 0x2
545 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 546 F_SETFD = 0x2
499 F_SETFL = 0x4 547 F_SETFL = 0x4
500 F_SETLEASE = 0x400 548 F_SETLEASE = 0x400
@@ -506,6 +554,8 @@ const (
506 F_SETOWN_EX = 0xf 554 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 555 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 556 F_SETSIG = 0xa
557 F_SET_FILE_RW_HINT = 0x40e
558 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 559 F_SHLCK = 0x8
510 F_TEST = 0x3 560 F_TEST = 0x3
511 F_TLOCK = 0x2 561 F_TLOCK = 0x2
@@ -527,6 +577,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 577 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 578 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 579 GRND_RANDOM = 0x2
580 HDIO_DRIVE_CMD = 0x31f
581 HDIO_DRIVE_CMD_AEB = 0x31e
582 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
583 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
584 HDIO_DRIVE_RESET = 0x31c
585 HDIO_DRIVE_TASK = 0x31e
586 HDIO_DRIVE_TASKFILE = 0x31d
587 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
588 HDIO_GETGEO = 0x301
589 HDIO_GET_32BIT = 0x309
590 HDIO_GET_ACOUSTIC = 0x30f
591 HDIO_GET_ADDRESS = 0x310
592 HDIO_GET_BUSSTATE = 0x31a
593 HDIO_GET_DMA = 0x30b
594 HDIO_GET_IDENTITY = 0x30d
595 HDIO_GET_KEEPSETTINGS = 0x308
596 HDIO_GET_MULTCOUNT = 0x304
597 HDIO_GET_NICE = 0x30c
598 HDIO_GET_NOWERR = 0x30a
599 HDIO_GET_QDMA = 0x305
600 HDIO_GET_UNMASKINTR = 0x302
601 HDIO_GET_WCACHE = 0x30e
602 HDIO_OBSOLETE_IDENTITY = 0x307
603 HDIO_SCAN_HWIF = 0x328
604 HDIO_SET_32BIT = 0x324
605 HDIO_SET_ACOUSTIC = 0x32c
606 HDIO_SET_ADDRESS = 0x32f
607 HDIO_SET_BUSSTATE = 0x32d
608 HDIO_SET_DMA = 0x326
609 HDIO_SET_KEEPSETTINGS = 0x323
610 HDIO_SET_MULTCOUNT = 0x321
611 HDIO_SET_NICE = 0x329
612 HDIO_SET_NOWERR = 0x325
613 HDIO_SET_PIO_MODE = 0x327
614 HDIO_SET_QDMA = 0x32e
615 HDIO_SET_UNMASKINTR = 0x322
616 HDIO_SET_WCACHE = 0x32b
617 HDIO_SET_XFER = 0x306
618 HDIO_TRISTATE_HWIF = 0x31b
619 HDIO_UNREGISTER_HWIF = 0x32a
620 HOSTFS_SUPER_MAGIC = 0xc0ffee
621 HPFS_SUPER_MAGIC = 0xf995e849
622 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x400 623 HUPCL = 0x400
531 IBSHIFT = 0x10 624 IBSHIFT = 0x10
532 ICANON = 0x2 625 ICANON = 0x2
@@ -546,7 +639,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 639 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 640 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 641 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 642 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 643 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 644 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 645 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +654,8 @@ const (
561 IFF_MASTER = 0x400 654 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 655 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 656 IFF_MULTI_QUEUE = 0x100
657 IFF_NAPI = 0x10
658 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 659 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 660 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 661 IFF_NOTRAILERS = 0x20
@@ -671,6 +766,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 766 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 767 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 768 IPV6_DSTOPTS = 0x3b
769 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 770 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 771 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 772 IPV6_HOPOPTS = 0x36
@@ -775,12 +871,34 @@ const (
775 IP_UNICAST_IF = 0x32 871 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 872 IP_XFRM_POLICY = 0x11
777 ISIG = 0x1 873 ISIG = 0x1
874 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 875 ISTRIP = 0x20
779 IUCLC = 0x200 876 IUCLC = 0x200
780 IUTF8 = 0x4000 877 IUTF8 = 0x4000
781 IXANY = 0x800 878 IXANY = 0x800
782 IXOFF = 0x1000 879 IXOFF = 0x1000
783 IXON = 0x400 880 IXON = 0x400
881 JFFS2_SUPER_MAGIC = 0x72b6
882 KEXEC_ARCH_386 = 0x30000
883 KEXEC_ARCH_68K = 0x40000
884 KEXEC_ARCH_AARCH64 = 0xb70000
885 KEXEC_ARCH_ARM = 0x280000
886 KEXEC_ARCH_DEFAULT = 0x0
887 KEXEC_ARCH_IA_64 = 0x320000
888 KEXEC_ARCH_MASK = 0xffff0000
889 KEXEC_ARCH_MIPS = 0x80000
890 KEXEC_ARCH_MIPS_LE = 0xa0000
891 KEXEC_ARCH_PPC = 0x140000
892 KEXEC_ARCH_PPC64 = 0x150000
893 KEXEC_ARCH_S390 = 0x160000
894 KEXEC_ARCH_SH = 0x2a0000
895 KEXEC_ARCH_X86_64 = 0x3e0000
896 KEXEC_FILE_NO_INITRAMFS = 0x4
897 KEXEC_FILE_ON_CRASH = 0x2
898 KEXEC_FILE_UNLOAD = 0x1
899 KEXEC_ON_CRASH = 0x1
900 KEXEC_PRESERVE_CONTEXT = 0x2
901 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 902 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 903 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 904 KEYCTL_CLEAR = 0x7
@@ -845,6 +963,7 @@ const (
845 MADV_FREE = 0x8 963 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 964 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 965 MADV_HWPOISON = 0x64
966 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 967 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 968 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 969 MADV_NORMAL = 0x0
@@ -853,6 +972,7 @@ const (
853 MADV_SEQUENTIAL = 0x2 972 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 973 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 974 MADV_WILLNEED = 0x3
975 MADV_WIPEONFORK = 0x12
856 MAP_32BIT = 0x40 976 MAP_32BIT = 0x40
857 MAP_ANON = 0x20 977 MAP_ANON = 0x20
858 MAP_ANONYMOUS = 0x20 978 MAP_ANONYMOUS = 0x20
@@ -860,6 +980,7 @@ const (
860 MAP_EXECUTABLE = 0x1000 980 MAP_EXECUTABLE = 0x1000
861 MAP_FILE = 0x0 981 MAP_FILE = 0x0
862 MAP_FIXED = 0x10 982 MAP_FIXED = 0x10
983 MAP_FIXED_NOREPLACE = 0x100000
863 MAP_GROWSDOWN = 0x100 984 MAP_GROWSDOWN = 0x100
864 MAP_HUGETLB = 0x40000 985 MAP_HUGETLB = 0x40000
865 MAP_HUGE_MASK = 0x3f 986 MAP_HUGE_MASK = 0x3f
@@ -870,14 +991,37 @@ const (
870 MAP_POPULATE = 0x8000 991 MAP_POPULATE = 0x8000
871 MAP_PRIVATE = 0x2 992 MAP_PRIVATE = 0x2
872 MAP_SHARED = 0x1 993 MAP_SHARED = 0x1
994 MAP_SHARED_VALIDATE = 0x3
873 MAP_STACK = 0x20000 995 MAP_STACK = 0x20000
996 MAP_SYNC = 0x80000
874 MAP_TYPE = 0xf 997 MAP_TYPE = 0xf
875 MCL_CURRENT = 0x1 998 MCL_CURRENT = 0x1
876 MCL_FUTURE = 0x2 999 MCL_FUTURE = 0x2
877 MCL_ONFAULT = 0x4 1000 MCL_ONFAULT = 0x4
1001 MFD_ALLOW_SEALING = 0x2
1002 MFD_CLOEXEC = 0x1
1003 MFD_HUGETLB = 0x4
1004 MFD_HUGE_16GB = -0x78000000
1005 MFD_HUGE_16MB = 0x60000000
1006 MFD_HUGE_1GB = 0x78000000
1007 MFD_HUGE_1MB = 0x50000000
1008 MFD_HUGE_256MB = 0x70000000
1009 MFD_HUGE_2GB = 0x7c000000
1010 MFD_HUGE_2MB = 0x54000000
1011 MFD_HUGE_512KB = 0x4c000000
1012 MFD_HUGE_64KB = 0x40000000
1013 MFD_HUGE_8MB = 0x5c000000
1014 MFD_HUGE_MASK = 0x3f
1015 MFD_HUGE_SHIFT = 0x1a
1016 MINIX2_SUPER_MAGIC = 0x2468
1017 MINIX2_SUPER_MAGIC2 = 0x2478
1018 MINIX3_SUPER_MAGIC = 0x4d5a
1019 MINIX_SUPER_MAGIC = 0x137f
1020 MINIX_SUPER_MAGIC2 = 0x138f
878 MNT_DETACH = 0x2 1021 MNT_DETACH = 0x2
879 MNT_EXPIRE = 0x4 1022 MNT_EXPIRE = 0x4
880 MNT_FORCE = 0x1 1023 MNT_FORCE = 0x1
1024 MSDOS_SUPER_MAGIC = 0x4d44
881 MSG_BATCH = 0x40000 1025 MSG_BATCH = 0x40000
882 MSG_CMSG_CLOEXEC = 0x40000000 1026 MSG_CMSG_CLOEXEC = 0x40000000
883 MSG_CONFIRM = 0x800 1027 MSG_CONFIRM = 0x800
@@ -899,6 +1043,7 @@ const (
899 MSG_TRYHARD = 0x4 1043 MSG_TRYHARD = 0x4
900 MSG_WAITALL = 0x100 1044 MSG_WAITALL = 0x100
901 MSG_WAITFORONE = 0x10000 1045 MSG_WAITFORONE = 0x10000
1046 MSG_ZEROCOPY = 0x4000000
902 MS_ACTIVE = 0x40000000 1047 MS_ACTIVE = 0x40000000
903 MS_ASYNC = 0x1 1048 MS_ASYNC = 0x1
904 MS_BIND = 0x1000 1049 MS_BIND = 0x1000
@@ -936,7 +1081,9 @@ const (
936 MS_SYNCHRONOUS = 0x10 1081 MS_SYNCHRONOUS = 0x10
937 MS_UNBINDABLE = 0x20000 1082 MS_UNBINDABLE = 0x20000
938 MS_VERBOSE = 0x8000 1083 MS_VERBOSE = 0x8000
1084 MTD_INODE_FS_MAGIC = 0x11307854
939 NAME_MAX = 0xff 1085 NAME_MAX = 0xff
1086 NCP_SUPER_MAGIC = 0x564c
940 NETLINK_ADD_MEMBERSHIP = 0x1 1087 NETLINK_ADD_MEMBERSHIP = 0x1
941 NETLINK_AUDIT = 0x9 1088 NETLINK_AUDIT = 0x9
942 NETLINK_BROADCAST_ERROR = 0x4 1089 NETLINK_BROADCAST_ERROR = 0x4
@@ -971,6 +1118,39 @@ const (
971 NETLINK_UNUSED = 0x1 1118 NETLINK_UNUSED = 0x1
972 NETLINK_USERSOCK = 0x2 1119 NETLINK_USERSOCK = 0x2
973 NETLINK_XFRM = 0x6 1120 NETLINK_XFRM = 0x6
1121 NETNSA_MAX = 0x3
1122 NETNSA_NSID_NOT_ASSIGNED = -0x1
1123 NFNETLINK_V0 = 0x0
1124 NFNLGRP_ACCT_QUOTA = 0x8
1125 NFNLGRP_CONNTRACK_DESTROY = 0x3
1126 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1127 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1128 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1129 NFNLGRP_CONNTRACK_NEW = 0x1
1130 NFNLGRP_CONNTRACK_UPDATE = 0x2
1131 NFNLGRP_MAX = 0x9
1132 NFNLGRP_NFTABLES = 0x7
1133 NFNLGRP_NFTRACE = 0x9
1134 NFNLGRP_NONE = 0x0
1135 NFNL_BATCH_MAX = 0x1
1136 NFNL_MSG_BATCH_BEGIN = 0x10
1137 NFNL_MSG_BATCH_END = 0x11
1138 NFNL_NFA_NEST = 0x8000
1139 NFNL_SUBSYS_ACCT = 0x7
1140 NFNL_SUBSYS_COUNT = 0xc
1141 NFNL_SUBSYS_CTHELPER = 0x9
1142 NFNL_SUBSYS_CTNETLINK = 0x1
1143 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1144 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1145 NFNL_SUBSYS_IPSET = 0x6
1146 NFNL_SUBSYS_NFTABLES = 0xa
1147 NFNL_SUBSYS_NFT_COMPAT = 0xb
1148 NFNL_SUBSYS_NONE = 0x0
1149 NFNL_SUBSYS_OSF = 0x5
1150 NFNL_SUBSYS_QUEUE = 0x3
1151 NFNL_SUBSYS_ULOG = 0x4
1152 NFS_SUPER_MAGIC = 0x6969
1153 NILFS_SUPER_MAGIC = 0x3434
974 NL0 = 0x0 1154 NL0 = 0x0
975 NL1 = 0x100 1155 NL1 = 0x100
976 NLA_ALIGNTO = 0x4 1156 NLA_ALIGNTO = 0x4
@@ -998,10 +1178,13 @@ const (
998 NLM_F_EXCL = 0x200 1178 NLM_F_EXCL = 0x200
999 NLM_F_MATCH = 0x200 1179 NLM_F_MATCH = 0x200
1000 NLM_F_MULTI = 0x2 1180 NLM_F_MULTI = 0x2
1181 NLM_F_NONREC = 0x100
1001 NLM_F_REPLACE = 0x100 1182 NLM_F_REPLACE = 0x100
1002 NLM_F_REQUEST = 0x1 1183 NLM_F_REQUEST = 0x1
1003 NLM_F_ROOT = 0x100 1184 NLM_F_ROOT = 0x100
1004 NOFLSH = 0x80 1185 NOFLSH = 0x80
1186 NSFS_MAGIC = 0x6e736673
1187 OCFS2_SUPER_MAGIC = 0x7461636f
1005 OCRNL = 0x8 1188 OCRNL = 0x8
1006 OFDEL = 0x80 1189 OFDEL = 0x80
1007 OFILL = 0x40 1190 OFILL = 0x40
@@ -1009,7 +1192,9 @@ const (
1009 ONLCR = 0x4 1192 ONLCR = 0x4
1010 ONLRET = 0x20 1193 ONLRET = 0x20
1011 ONOCR = 0x10 1194 ONOCR = 0x10
1195 OPENPROM_SUPER_MAGIC = 0x9fa1
1012 OPOST = 0x1 1196 OPOST = 0x1
1197 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1013 O_ACCMODE = 0x3 1198 O_ACCMODE = 0x3
1014 O_APPEND = 0x400 1199 O_APPEND = 0x400
1015 O_ASYNC = 0x2000 1200 O_ASYNC = 0x2000
@@ -1094,16 +1279,20 @@ const (
1094 PERF_EVENT_IOC_DISABLE = 0x2401 1279 PERF_EVENT_IOC_DISABLE = 0x2401
1095 PERF_EVENT_IOC_ENABLE = 0x2400 1280 PERF_EVENT_IOC_ENABLE = 0x2400
1096 PERF_EVENT_IOC_ID = 0x80082407 1281 PERF_EVENT_IOC_ID = 0x80082407
1282 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
1097 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 1283 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
1098 PERF_EVENT_IOC_PERIOD = 0x40082404 1284 PERF_EVENT_IOC_PERIOD = 0x40082404
1285 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
1099 PERF_EVENT_IOC_REFRESH = 0x2402 1286 PERF_EVENT_IOC_REFRESH = 0x2402
1100 PERF_EVENT_IOC_RESET = 0x2403 1287 PERF_EVENT_IOC_RESET = 0x2403
1101 PERF_EVENT_IOC_SET_BPF = 0x40042408 1288 PERF_EVENT_IOC_SET_BPF = 0x40042408
1102 PERF_EVENT_IOC_SET_FILTER = 0x40082406 1289 PERF_EVENT_IOC_SET_FILTER = 0x40082406
1103 PERF_EVENT_IOC_SET_OUTPUT = 0x2405 1290 PERF_EVENT_IOC_SET_OUTPUT = 0x2405
1291 PIPEFS_MAGIC = 0x50495045
1104 PRIO_PGRP = 0x1 1292 PRIO_PGRP = 0x1
1105 PRIO_PROCESS = 0x0 1293 PRIO_PROCESS = 0x0
1106 PRIO_USER = 0x2 1294 PRIO_USER = 0x2
1295 PROC_SUPER_MAGIC = 0x9fa0
1107 PROT_EXEC = 0x4 1296 PROT_EXEC = 0x4
1108 PROT_GROWSDOWN = 0x1000000 1297 PROT_GROWSDOWN = 0x1000000
1109 PROT_GROWSUP = 0x2000000 1298 PROT_GROWSUP = 0x2000000
@@ -1146,6 +1335,7 @@ const (
1146 PR_GET_PDEATHSIG = 0x2 1335 PR_GET_PDEATHSIG = 0x2
1147 PR_GET_SECCOMP = 0x15 1336 PR_GET_SECCOMP = 0x15
1148 PR_GET_SECUREBITS = 0x1b 1337 PR_GET_SECUREBITS = 0x1b
1338 PR_GET_SPECULATION_CTRL = 0x34
1149 PR_GET_THP_DISABLE = 0x2a 1339 PR_GET_THP_DISABLE = 0x2a
1150 PR_GET_TID_ADDRESS = 0x28 1340 PR_GET_TID_ADDRESS = 0x28
1151 PR_GET_TIMERSLACK = 0x1e 1341 PR_GET_TIMERSLACK = 0x1e
@@ -1191,11 +1381,23 @@ const (
1191 PR_SET_PTRACER_ANY = 0xffffffffffffffff 1381 PR_SET_PTRACER_ANY = 0xffffffffffffffff
1192 PR_SET_SECCOMP = 0x16 1382 PR_SET_SECCOMP = 0x16
1193 PR_SET_SECUREBITS = 0x1c 1383 PR_SET_SECUREBITS = 0x1c
1384 PR_SET_SPECULATION_CTRL = 0x35
1194 PR_SET_THP_DISABLE = 0x29 1385 PR_SET_THP_DISABLE = 0x29
1195 PR_SET_TIMERSLACK = 0x1d 1386 PR_SET_TIMERSLACK = 0x1d
1196 PR_SET_TIMING = 0xe 1387 PR_SET_TIMING = 0xe
1197 PR_SET_TSC = 0x1a 1388 PR_SET_TSC = 0x1a
1198 PR_SET_UNALIGN = 0x6 1389 PR_SET_UNALIGN = 0x6
1390 PR_SPEC_DISABLE = 0x4
1391 PR_SPEC_ENABLE = 0x2
1392 PR_SPEC_FORCE_DISABLE = 0x8
1393 PR_SPEC_NOT_AFFECTED = 0x0
1394 PR_SPEC_PRCTL = 0x1
1395 PR_SPEC_STORE_BYPASS = 0x0
1396 PR_SVE_GET_VL = 0x33
1397 PR_SVE_SET_VL = 0x32
1398 PR_SVE_SET_VL_ONEXEC = 0x40000
1399 PR_SVE_VL_INHERIT = 0x20000
1400 PR_SVE_VL_LEN_MASK = 0xffff
1199 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1401 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1200 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1402 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1201 PR_TIMING_STATISTICAL = 0x0 1403 PR_TIMING_STATISTICAL = 0x0
@@ -1204,6 +1406,7 @@ const (
1204 PR_TSC_SIGSEGV = 0x2 1406 PR_TSC_SIGSEGV = 0x2
1205 PR_UNALIGN_NOPRINT = 0x1 1407 PR_UNALIGN_NOPRINT = 0x1
1206 PR_UNALIGN_SIGBUS = 0x2 1408 PR_UNALIGN_SIGBUS = 0x2
1409 PSTOREFS_MAGIC = 0x6165676c
1207 PTRACE_ARCH_PRCTL = 0x1e 1410 PTRACE_ARCH_PRCTL = 0x1e
1208 PTRACE_ATTACH = 0x10 1411 PTRACE_ATTACH = 0x10
1209 PTRACE_CONT = 0x7 1412 PTRACE_CONT = 0x7
@@ -1248,6 +1451,7 @@ const (
1248 PTRACE_POKETEXT = 0x4 1451 PTRACE_POKETEXT = 0x4
1249 PTRACE_POKEUSR = 0x6 1452 PTRACE_POKEUSR = 0x6
1250 PTRACE_SECCOMP_GET_FILTER = 0x420c 1453 PTRACE_SECCOMP_GET_FILTER = 0x420c
1454 PTRACE_SECCOMP_GET_METADATA = 0x420d
1251 PTRACE_SEIZE = 0x4206 1455 PTRACE_SEIZE = 0x4206
1252 PTRACE_SETFPREGS = 0xf 1456 PTRACE_SETFPREGS = 0xf
1253 PTRACE_SETFPXREGS = 0x13 1457 PTRACE_SETFPXREGS = 0x13
@@ -1263,6 +1467,14 @@ const (
1263 PTRACE_SYSEMU = 0x1f 1467 PTRACE_SYSEMU = 0x1f
1264 PTRACE_SYSEMU_SINGLESTEP = 0x20 1468 PTRACE_SYSEMU_SINGLESTEP = 0x20
1265 PTRACE_TRACEME = 0x0 1469 PTRACE_TRACEME = 0x0
1470 QNX4_SUPER_MAGIC = 0x2f
1471 QNX6_SUPER_MAGIC = 0x68191122
1472 RAMFS_MAGIC = 0x858458f6
1473 RDTGROUP_SUPER_MAGIC = 0x7655821
1474 REISERFS_SUPER_MAGIC = 0x52654973
1475 RENAME_EXCHANGE = 0x2
1476 RENAME_NOREPLACE = 0x1
1477 RENAME_WHITEOUT = 0x4
1266 RLIMIT_AS = 0x9 1478 RLIMIT_AS = 0x9
1267 RLIMIT_CORE = 0x4 1479 RLIMIT_CORE = 0x4
1268 RLIMIT_CPU = 0x0 1480 RLIMIT_CPU = 0x0
@@ -1283,6 +1495,7 @@ const (
1283 RTAX_ADVMSS = 0x8 1495 RTAX_ADVMSS = 0x8
1284 RTAX_CC_ALGO = 0x10 1496 RTAX_CC_ALGO = 0x10
1285 RTAX_CWND = 0x7 1497 RTAX_CWND = 0x7
1498 RTAX_FASTOPEN_NO_COOKIE = 0x11
1286 RTAX_FEATURES = 0xc 1499 RTAX_FEATURES = 0xc
1287 RTAX_FEATURE_ALLFRAG = 0x8 1500 RTAX_FEATURE_ALLFRAG = 0x8
1288 RTAX_FEATURE_ECN = 0x1 1501 RTAX_FEATURE_ECN = 0x1
@@ -1293,7 +1506,7 @@ const (
1293 RTAX_INITCWND = 0xb 1506 RTAX_INITCWND = 0xb
1294 RTAX_INITRWND = 0xe 1507 RTAX_INITRWND = 0xe
1295 RTAX_LOCK = 0x1 1508 RTAX_LOCK = 0x1
1296 RTAX_MAX = 0x10 1509 RTAX_MAX = 0x11
1297 RTAX_MTU = 0x2 1510 RTAX_MTU = 0x2
1298 RTAX_QUICKACK = 0xf 1511 RTAX_QUICKACK = 0xf
1299 RTAX_REORDERING = 0x9 1512 RTAX_REORDERING = 0x9
@@ -1304,13 +1517,40 @@ const (
1304 RTAX_UNSPEC = 0x0 1517 RTAX_UNSPEC = 0x0
1305 RTAX_WINDOW = 0x3 1518 RTAX_WINDOW = 0x3
1306 RTA_ALIGNTO = 0x4 1519 RTA_ALIGNTO = 0x4
1307 RTA_MAX = 0x1a 1520 RTA_MAX = 0x1d
1308 RTCF_DIRECTSRC = 0x4000000 1521 RTCF_DIRECTSRC = 0x4000000
1309 RTCF_DOREDIRECT = 0x1000000 1522 RTCF_DOREDIRECT = 0x1000000
1310 RTCF_LOG = 0x2000000 1523 RTCF_LOG = 0x2000000
1311 RTCF_MASQ = 0x400000 1524 RTCF_MASQ = 0x400000
1312 RTCF_NAT = 0x800000 1525 RTCF_NAT = 0x800000
1313 RTCF_VALVE = 0x200000 1526 RTCF_VALVE = 0x200000
1527 RTC_AF = 0x20
1528 RTC_AIE_OFF = 0x7002
1529 RTC_AIE_ON = 0x7001
1530 RTC_ALM_READ = 0x80247008
1531 RTC_ALM_SET = 0x40247007
1532 RTC_EPOCH_READ = 0x8008700d
1533 RTC_EPOCH_SET = 0x4008700e
1534 RTC_IRQF = 0x80
1535 RTC_IRQP_READ = 0x8008700b
1536 RTC_IRQP_SET = 0x4008700c
1537 RTC_MAX_FREQ = 0x2000
1538 RTC_PF = 0x40
1539 RTC_PIE_OFF = 0x7006
1540 RTC_PIE_ON = 0x7005
1541 RTC_PLL_GET = 0x80207011
1542 RTC_PLL_SET = 0x40207012
1543 RTC_RD_TIME = 0x80247009
1544 RTC_SET_TIME = 0x4024700a
1545 RTC_UF = 0x10
1546 RTC_UIE_OFF = 0x7004
1547 RTC_UIE_ON = 0x7003
1548 RTC_VL_CLR = 0x7014
1549 RTC_VL_READ = 0x80047013
1550 RTC_WIE_OFF = 0x7010
1551 RTC_WIE_ON = 0x700f
1552 RTC_WKALM_RD = 0x80287010
1553 RTC_WKALM_SET = 0x4028700f
1314 RTF_ADDRCLASSMASK = 0xf8000000 1554 RTF_ADDRCLASSMASK = 0xf8000000
1315 RTF_ADDRCONF = 0x40000 1555 RTF_ADDRCONF = 0x40000
1316 RTF_ALLONLINK = 0x20000 1556 RTF_ALLONLINK = 0x20000
@@ -1413,17 +1653,22 @@ const (
1413 RTNH_F_UNRESOLVED = 0x20 1653 RTNH_F_UNRESOLVED = 0x20
1414 RTN_MAX = 0xb 1654 RTN_MAX = 0xb
1415 RTPROT_BABEL = 0x2a 1655 RTPROT_BABEL = 0x2a
1656 RTPROT_BGP = 0xba
1416 RTPROT_BIRD = 0xc 1657 RTPROT_BIRD = 0xc
1417 RTPROT_BOOT = 0x3 1658 RTPROT_BOOT = 0x3
1418 RTPROT_DHCP = 0x10 1659 RTPROT_DHCP = 0x10
1419 RTPROT_DNROUTED = 0xd 1660 RTPROT_DNROUTED = 0xd
1661 RTPROT_EIGRP = 0xc0
1420 RTPROT_GATED = 0x8 1662 RTPROT_GATED = 0x8
1663 RTPROT_ISIS = 0xbb
1421 RTPROT_KERNEL = 0x2 1664 RTPROT_KERNEL = 0x2
1422 RTPROT_MROUTED = 0x11 1665 RTPROT_MROUTED = 0x11
1423 RTPROT_MRT = 0xa 1666 RTPROT_MRT = 0xa
1424 RTPROT_NTK = 0xf 1667 RTPROT_NTK = 0xf
1668 RTPROT_OSPF = 0xbc
1425 RTPROT_RA = 0x9 1669 RTPROT_RA = 0x9
1426 RTPROT_REDIRECT = 0x1 1670 RTPROT_REDIRECT = 0x1
1671 RTPROT_RIP = 0xbd
1427 RTPROT_STATIC = 0x4 1672 RTPROT_STATIC = 0x4
1428 RTPROT_UNSPEC = 0x0 1673 RTPROT_UNSPEC = 0x0
1429 RTPROT_XORP = 0xe 1674 RTPROT_XORP = 0xe
@@ -1447,6 +1692,8 @@ const (
1447 SECCOMP_MODE_DISABLED = 0x0 1692 SECCOMP_MODE_DISABLED = 0x0
1448 SECCOMP_MODE_FILTER = 0x2 1693 SECCOMP_MODE_FILTER = 0x2
1449 SECCOMP_MODE_STRICT = 0x1 1694 SECCOMP_MODE_STRICT = 0x1
1695 SECURITYFS_MAGIC = 0x73636673
1696 SELINUX_MAGIC = 0xf97cff8c
1450 SHUT_RD = 0x0 1697 SHUT_RD = 0x0
1451 SHUT_RDWR = 0x2 1698 SHUT_RDWR = 0x2
1452 SHUT_WR = 0x1 1699 SHUT_WR = 0x1
@@ -1531,6 +1778,23 @@ const (
1531 SIOCSPGRP = 0x8902 1778 SIOCSPGRP = 0x8902
1532 SIOCSRARP = 0x8962 1779 SIOCSRARP = 0x8962
1533 SIOCWANDEV = 0x894a 1780 SIOCWANDEV = 0x894a
1781 SMACK_MAGIC = 0x43415d53
1782 SMART_AUTOSAVE = 0xd2
1783 SMART_AUTO_OFFLINE = 0xdb
1784 SMART_DISABLE = 0xd9
1785 SMART_ENABLE = 0xd8
1786 SMART_HCYL_PASS = 0xc2
1787 SMART_IMMEDIATE_OFFLINE = 0xd4
1788 SMART_LCYL_PASS = 0x4f
1789 SMART_READ_LOG_SECTOR = 0xd5
1790 SMART_READ_THRESHOLDS = 0xd1
1791 SMART_READ_VALUES = 0xd0
1792 SMART_SAVE = 0xd3
1793 SMART_STATUS = 0xda
1794 SMART_WRITE_LOG_SECTOR = 0xd6
1795 SMART_WRITE_THRESHOLDS = 0xd7
1796 SMB_SUPER_MAGIC = 0x517b
1797 SOCKFS_MAGIC = 0x534f434b
1534 SOCK_CLOEXEC = 0x80000 1798 SOCK_CLOEXEC = 0x80000
1535 SOCK_DCCP = 0x6 1799 SOCK_DCCP = 0x6
1536 SOCK_DGRAM = 0x2 1800 SOCK_DGRAM = 0x2
@@ -1567,7 +1831,9 @@ const (
1567 SOL_SOCKET = 0x1 1831 SOL_SOCKET = 0x1
1568 SOL_TCP = 0x6 1832 SOL_TCP = 0x6
1569 SOL_TIPC = 0x10f 1833 SOL_TIPC = 0x10f
1834 SOL_TLS = 0x11a
1570 SOL_X25 = 0x106 1835 SOL_X25 = 0x106
1836 SOL_XDP = 0x11b
1571 SOMAXCONN = 0x80 1837 SOMAXCONN = 0x80
1572 SO_ACCEPTCONN = 0x1e 1838 SO_ACCEPTCONN = 0x1e
1573 SO_ATTACH_BPF = 0x32 1839 SO_ATTACH_BPF = 0x32
@@ -1635,10 +1901,13 @@ const (
1635 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1901 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1636 SO_VM_SOCKETS_TRUSTED = 0x5 1902 SO_VM_SOCKETS_TRUSTED = 0x5
1637 SO_WIFI_STATUS = 0x29 1903 SO_WIFI_STATUS = 0x29
1904 SO_ZEROCOPY = 0x3c
1638 SPLICE_F_GIFT = 0x8 1905 SPLICE_F_GIFT = 0x8
1639 SPLICE_F_MORE = 0x4 1906 SPLICE_F_MORE = 0x4
1640 SPLICE_F_MOVE = 0x1 1907 SPLICE_F_MOVE = 0x1
1641 SPLICE_F_NONBLOCK = 0x2 1908 SPLICE_F_NONBLOCK = 0x2
1909 SQUASHFS_MAGIC = 0x73717368
1910 STACK_END_MAGIC = 0x57ac6e9d
1642 STATX_ALL = 0xfff 1911 STATX_ALL = 0xfff
1643 STATX_ATIME = 0x20 1912 STATX_ATIME = 0x20
1644 STATX_ATTR_APPEND = 0x20 1913 STATX_ATTR_APPEND = 0x20
@@ -1660,6 +1929,10 @@ const (
1660 STATX_TYPE = 0x1 1929 STATX_TYPE = 0x1
1661 STATX_UID = 0x8 1930 STATX_UID = 0x8
1662 STATX__RESERVED = 0x80000000 1931 STATX__RESERVED = 0x80000000
1932 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1933 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1934 SYNC_FILE_RANGE_WRITE = 0x2
1935 SYSFS_MAGIC = 0x62656572
1663 S_BLKSIZE = 0x200 1936 S_BLKSIZE = 0x200
1664 S_IEXEC = 0x40 1937 S_IEXEC = 0x40
1665 S_IFBLK = 0x6000 1938 S_IFBLK = 0x6000
@@ -1722,6 +1995,8 @@ const (
1722 TCP_DEFER_ACCEPT = 0x9 1995 TCP_DEFER_ACCEPT = 0x9
1723 TCP_FASTOPEN = 0x17 1996 TCP_FASTOPEN = 0x17
1724 TCP_FASTOPEN_CONNECT = 0x1e 1997 TCP_FASTOPEN_CONNECT = 0x1e
1998 TCP_FASTOPEN_KEY = 0x21
1999 TCP_FASTOPEN_NO_COOKIE = 0x22
1725 TCP_INFO = 0xb 2000 TCP_INFO = 0xb
1726 TCP_KEEPCNT = 0x6 2001 TCP_KEEPCNT = 0x6
1727 TCP_KEEPIDLE = 0x4 2002 TCP_KEEPIDLE = 0x4
@@ -1731,6 +2006,8 @@ const (
1731 TCP_MAXWIN = 0xffff 2006 TCP_MAXWIN = 0xffff
1732 TCP_MAX_WINSHIFT = 0xe 2007 TCP_MAX_WINSHIFT = 0xe
1733 TCP_MD5SIG = 0xe 2008 TCP_MD5SIG = 0xe
2009 TCP_MD5SIG_EXT = 0x20
2010 TCP_MD5SIG_FLAG_PREFIX = 0x1
1734 TCP_MD5SIG_MAXKEYLEN = 0x50 2011 TCP_MD5SIG_MAXKEYLEN = 0x50
1735 TCP_MSS = 0x200 2012 TCP_MSS = 0x200
1736 TCP_MSS_DEFAULT = 0x218 2013 TCP_MSS_DEFAULT = 0x218
@@ -1751,6 +2028,7 @@ const (
1751 TCP_THIN_DUPACK = 0x11 2028 TCP_THIN_DUPACK = 0x11
1752 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2029 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1753 TCP_TIMESTAMP = 0x18 2030 TCP_TIMESTAMP = 0x18
2031 TCP_ULP = 0x1f
1754 TCP_USER_TIMEOUT = 0x12 2032 TCP_USER_TIMEOUT = 0x12
1755 TCP_WINDOW_CLAMP = 0xa 2033 TCP_WINDOW_CLAMP = 0xa
1756 TCSAFLUSH = 0x2 2034 TCSAFLUSH = 0x2
@@ -1838,7 +2116,27 @@ const (
1838 TIOCSTI = 0x5412 2116 TIOCSTI = 0x5412
1839 TIOCSWINSZ = 0x5414 2117 TIOCSWINSZ = 0x5414
1840 TIOCVHANGUP = 0x5437 2118 TIOCVHANGUP = 0x5437
2119 TMPFS_MAGIC = 0x1021994
1841 TOSTOP = 0x100 2120 TOSTOP = 0x100
2121 TPACKET_ALIGNMENT = 0x10
2122 TPACKET_HDRLEN = 0x34
2123 TP_STATUS_AVAILABLE = 0x0
2124 TP_STATUS_BLK_TMO = 0x20
2125 TP_STATUS_COPY = 0x2
2126 TP_STATUS_CSUMNOTREADY = 0x8
2127 TP_STATUS_CSUM_VALID = 0x80
2128 TP_STATUS_KERNEL = 0x0
2129 TP_STATUS_LOSING = 0x4
2130 TP_STATUS_SENDING = 0x2
2131 TP_STATUS_SEND_REQUEST = 0x1
2132 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2133 TP_STATUS_TS_SOFTWARE = 0x20000000
2134 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2135 TP_STATUS_USER = 0x1
2136 TP_STATUS_VLAN_TPID_VALID = 0x40
2137 TP_STATUS_VLAN_VALID = 0x10
2138 TP_STATUS_WRONG_FORMAT = 0x4
2139 TRACEFS_MAGIC = 0x74726163
1842 TS_COMM_LEN = 0x20 2140 TS_COMM_LEN = 0x20
1843 TUNATTACHFILTER = 0x401054d5 2141 TUNATTACHFILTER = 0x401054d5
1844 TUNDETACHFILTER = 0x401054d6 2142 TUNDETACHFILTER = 0x401054d6
@@ -1850,6 +2148,7 @@ const (
1850 TUNGETVNETHDRSZ = 0x800454d7 2148 TUNGETVNETHDRSZ = 0x800454d7
1851 TUNGETVNETLE = 0x800454dd 2149 TUNGETVNETLE = 0x800454dd
1852 TUNSETDEBUG = 0x400454c9 2150 TUNSETDEBUG = 0x400454c9
2151 TUNSETFILTEREBPF = 0x800454e1
1853 TUNSETGROUP = 0x400454ce 2152 TUNSETGROUP = 0x400454ce
1854 TUNSETIFF = 0x400454ca 2153 TUNSETIFF = 0x400454ca
1855 TUNSETIFINDEX = 0x400454da 2154 TUNSETIFINDEX = 0x400454da
@@ -1860,13 +2159,32 @@ const (
1860 TUNSETPERSIST = 0x400454cb 2159 TUNSETPERSIST = 0x400454cb
1861 TUNSETQUEUE = 0x400454d9 2160 TUNSETQUEUE = 0x400454d9
1862 TUNSETSNDBUF = 0x400454d4 2161 TUNSETSNDBUF = 0x400454d4
2162 TUNSETSTEERINGEBPF = 0x800454e0
1863 TUNSETTXFILTER = 0x400454d1 2163 TUNSETTXFILTER = 0x400454d1
1864 TUNSETVNETBE = 0x400454de 2164 TUNSETVNETBE = 0x400454de
1865 TUNSETVNETHDRSZ = 0x400454d8 2165 TUNSETVNETHDRSZ = 0x400454d8
1866 TUNSETVNETLE = 0x400454dc 2166 TUNSETVNETLE = 0x400454dc
2167 UBI_IOCATT = 0x40186f40
2168 UBI_IOCDET = 0x40046f41
2169 UBI_IOCEBCH = 0x40044f02
2170 UBI_IOCEBER = 0x40044f01
2171 UBI_IOCEBISMAP = 0x80044f05
2172 UBI_IOCEBMAP = 0x40084f03
2173 UBI_IOCEBUNMAP = 0x40044f04
2174 UBI_IOCMKVOL = 0x40986f00
2175 UBI_IOCRMVOL = 0x40046f01
2176 UBI_IOCRNVOL = 0x51106f03
2177 UBI_IOCRSVOL = 0x400c6f02
2178 UBI_IOCSETVOLPROP = 0x40104f06
2179 UBI_IOCVOLCRBLK = 0x40804f07
2180 UBI_IOCVOLRMBLK = 0x4f08
2181 UBI_IOCVOLUP = 0x40084f00
2182 UDF_SUPER_MAGIC = 0x15013346
1867 UMOUNT_NOFOLLOW = 0x8 2183 UMOUNT_NOFOLLOW = 0x8
2184 USBDEVICE_SUPER_MAGIC = 0x9fa2
1868 UTIME_NOW = 0x3fffffff 2185 UTIME_NOW = 0x3fffffff
1869 UTIME_OMIT = 0x3ffffffe 2186 UTIME_OMIT = 0x3ffffffe
2187 V9FS_MAGIC = 0x1021997
1870 VDISCARD = 0xd 2188 VDISCARD = 0xd
1871 VEOF = 0x4 2189 VEOF = 0x4
1872 VEOL = 0xb 2190 VEOL = 0xb
@@ -1908,6 +2226,86 @@ const (
1908 WDIOC_SETPRETIMEOUT = 0xc0045708 2226 WDIOC_SETPRETIMEOUT = 0xc0045708
1909 WDIOC_SETTIMEOUT = 0xc0045706 2227 WDIOC_SETTIMEOUT = 0xc0045706
1910 WEXITED = 0x4 2228 WEXITED = 0x4
2229 WIN_ACKMEDIACHANGE = 0xdb
2230 WIN_CHECKPOWERMODE1 = 0xe5
2231 WIN_CHECKPOWERMODE2 = 0x98
2232 WIN_DEVICE_RESET = 0x8
2233 WIN_DIAGNOSE = 0x90
2234 WIN_DOORLOCK = 0xde
2235 WIN_DOORUNLOCK = 0xdf
2236 WIN_DOWNLOAD_MICROCODE = 0x92
2237 WIN_FLUSH_CACHE = 0xe7
2238 WIN_FLUSH_CACHE_EXT = 0xea
2239 WIN_FORMAT = 0x50
2240 WIN_GETMEDIASTATUS = 0xda
2241 WIN_IDENTIFY = 0xec
2242 WIN_IDENTIFY_DMA = 0xee
2243 WIN_IDLEIMMEDIATE = 0xe1
2244 WIN_INIT = 0x60
2245 WIN_MEDIAEJECT = 0xed
2246 WIN_MULTREAD = 0xc4
2247 WIN_MULTREAD_EXT = 0x29
2248 WIN_MULTWRITE = 0xc5
2249 WIN_MULTWRITE_EXT = 0x39
2250 WIN_NOP = 0x0
2251 WIN_PACKETCMD = 0xa0
2252 WIN_PIDENTIFY = 0xa1
2253 WIN_POSTBOOT = 0xdc
2254 WIN_PREBOOT = 0xdd
2255 WIN_QUEUED_SERVICE = 0xa2
2256 WIN_READ = 0x20
2257 WIN_READDMA = 0xc8
2258 WIN_READDMA_EXT = 0x25
2259 WIN_READDMA_ONCE = 0xc9
2260 WIN_READDMA_QUEUED = 0xc7
2261 WIN_READDMA_QUEUED_EXT = 0x26
2262 WIN_READ_BUFFER = 0xe4
2263 WIN_READ_EXT = 0x24
2264 WIN_READ_LONG = 0x22
2265 WIN_READ_LONG_ONCE = 0x23
2266 WIN_READ_NATIVE_MAX = 0xf8
2267 WIN_READ_NATIVE_MAX_EXT = 0x27
2268 WIN_READ_ONCE = 0x21
2269 WIN_RECAL = 0x10
2270 WIN_RESTORE = 0x10
2271 WIN_SECURITY_DISABLE = 0xf6
2272 WIN_SECURITY_ERASE_PREPARE = 0xf3
2273 WIN_SECURITY_ERASE_UNIT = 0xf4
2274 WIN_SECURITY_FREEZE_LOCK = 0xf5
2275 WIN_SECURITY_SET_PASS = 0xf1
2276 WIN_SECURITY_UNLOCK = 0xf2
2277 WIN_SEEK = 0x70
2278 WIN_SETFEATURES = 0xef
2279 WIN_SETIDLE1 = 0xe3
2280 WIN_SETIDLE2 = 0x97
2281 WIN_SETMULT = 0xc6
2282 WIN_SET_MAX = 0xf9
2283 WIN_SET_MAX_EXT = 0x37
2284 WIN_SLEEPNOW1 = 0xe6
2285 WIN_SLEEPNOW2 = 0x99
2286 WIN_SMART = 0xb0
2287 WIN_SPECIFY = 0x91
2288 WIN_SRST = 0x8
2289 WIN_STANDBY = 0xe2
2290 WIN_STANDBY2 = 0x96
2291 WIN_STANDBYNOW1 = 0xe0
2292 WIN_STANDBYNOW2 = 0x94
2293 WIN_VERIFY = 0x40
2294 WIN_VERIFY_EXT = 0x42
2295 WIN_VERIFY_ONCE = 0x41
2296 WIN_WRITE = 0x30
2297 WIN_WRITEDMA = 0xca
2298 WIN_WRITEDMA_EXT = 0x35
2299 WIN_WRITEDMA_ONCE = 0xcb
2300 WIN_WRITEDMA_QUEUED = 0xcc
2301 WIN_WRITEDMA_QUEUED_EXT = 0x36
2302 WIN_WRITE_BUFFER = 0xe8
2303 WIN_WRITE_EXT = 0x34
2304 WIN_WRITE_LONG = 0x32
2305 WIN_WRITE_LONG_ONCE = 0x33
2306 WIN_WRITE_ONCE = 0x31
2307 WIN_WRITE_SAME = 0xe9
2308 WIN_WRITE_VERIFY = 0x3c
1911 WNOHANG = 0x1 2309 WNOHANG = 0x1
1912 WNOTHREAD = 0x20000000 2310 WNOTHREAD = 0x20000000
1913 WNOWAIT = 0x1000000 2311 WNOWAIT = 0x1000000
@@ -1917,7 +2315,29 @@ const (
1917 XATTR_CREATE = 0x1 2315 XATTR_CREATE = 0x1
1918 XATTR_REPLACE = 0x2 2316 XATTR_REPLACE = 0x2
1919 XCASE = 0x4 2317 XCASE = 0x4
2318 XDP_COPY = 0x2
2319 XDP_FLAGS_DRV_MODE = 0x4
2320 XDP_FLAGS_HW_MODE = 0x8
2321 XDP_FLAGS_MASK = 0xf
2322 XDP_FLAGS_MODES = 0xe
2323 XDP_FLAGS_SKB_MODE = 0x2
2324 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2325 XDP_MMAP_OFFSETS = 0x1
2326 XDP_PGOFF_RX_RING = 0x0
2327 XDP_PGOFF_TX_RING = 0x80000000
2328 XDP_RX_RING = 0x2
2329 XDP_SHARED_UMEM = 0x1
2330 XDP_STATISTICS = 0x7
2331 XDP_TX_RING = 0x3
2332 XDP_UMEM_COMPLETION_RING = 0x6
2333 XDP_UMEM_FILL_RING = 0x5
2334 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2335 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2336 XDP_UMEM_REG = 0x4
2337 XDP_ZEROCOPY = 0x4
2338 XENFS_SUPER_MAGIC = 0xabba1974
1920 XTABS = 0x1800 2339 XTABS = 0x1800
2340 ZSMALLOC_MAGIC = 0x58295829
1921) 2341)
1922 2342
1923// Errors 2343// Errors
@@ -2097,171 +2517,179 @@ const (
2097) 2517)
2098 2518
2099// Error table 2519// Error table
2100var errors = [...]string{ 2520var errorList = [...]struct {
2101 1: "operation not permitted", 2521 num syscall.Errno
2102 2: "no such file or directory", 2522 name string
2103 3: "no such process", 2523 desc string
2104 4: "interrupted system call", 2524}{
2105 5: "input/output error", 2525 {1, "EPERM", "operation not permitted"},
2106 6: "no such device or address", 2526 {2, "ENOENT", "no such file or directory"},
2107 7: "argument list too long", 2527 {3, "ESRCH", "no such process"},
2108 8: "exec format error", 2528 {4, "EINTR", "interrupted system call"},
2109 9: "bad file descriptor", 2529 {5, "EIO", "input/output error"},
2110 10: "no child processes", 2530 {6, "ENXIO", "no such device or address"},
2111 11: "resource temporarily unavailable", 2531 {7, "E2BIG", "argument list too long"},
2112 12: "cannot allocate memory", 2532 {8, "ENOEXEC", "exec format error"},
2113 13: "permission denied", 2533 {9, "EBADF", "bad file descriptor"},
2114 14: "bad address", 2534 {10, "ECHILD", "no child processes"},
2115 15: "block device required", 2535 {11, "EAGAIN", "resource temporarily unavailable"},
2116 16: "device or resource busy", 2536 {12, "ENOMEM", "cannot allocate memory"},
2117 17: "file exists", 2537 {13, "EACCES", "permission denied"},
2118 18: "invalid cross-device link", 2538 {14, "EFAULT", "bad address"},
2119 19: "no such device", 2539 {15, "ENOTBLK", "block device required"},
2120 20: "not a directory", 2540 {16, "EBUSY", "device or resource busy"},
2121 21: "is a directory", 2541 {17, "EEXIST", "file exists"},
2122 22: "invalid argument", 2542 {18, "EXDEV", "invalid cross-device link"},
2123 23: "too many open files in system", 2543 {19, "ENODEV", "no such device"},
2124 24: "too many open files", 2544 {20, "ENOTDIR", "not a directory"},
2125 25: "inappropriate ioctl for device", 2545 {21, "EISDIR", "is a directory"},
2126 26: "text file busy", 2546 {22, "EINVAL", "invalid argument"},
2127 27: "file too large", 2547 {23, "ENFILE", "too many open files in system"},
2128 28: "no space left on device", 2548 {24, "EMFILE", "too many open files"},
2129 29: "illegal seek", 2549 {25, "ENOTTY", "inappropriate ioctl for device"},
2130 30: "read-only file system", 2550 {26, "ETXTBSY", "text file busy"},
2131 31: "too many links", 2551 {27, "EFBIG", "file too large"},
2132 32: "broken pipe", 2552 {28, "ENOSPC", "no space left on device"},
2133 33: "numerical argument out of domain", 2553 {29, "ESPIPE", "illegal seek"},
2134 34: "numerical result out of range", 2554 {30, "EROFS", "read-only file system"},
2135 35: "resource deadlock avoided", 2555 {31, "EMLINK", "too many links"},
2136 36: "file name too long", 2556 {32, "EPIPE", "broken pipe"},
2137 37: "no locks available", 2557 {33, "EDOM", "numerical argument out of domain"},
2138 38: "function not implemented", 2558 {34, "ERANGE", "numerical result out of range"},
2139 39: "directory not empty", 2559 {35, "EDEADLK", "resource deadlock avoided"},
2140 40: "too many levels of symbolic links", 2560 {36, "ENAMETOOLONG", "file name too long"},
2141 42: "no message of desired type", 2561 {37, "ENOLCK", "no locks available"},
2142 43: "identifier removed", 2562 {38, "ENOSYS", "function not implemented"},
2143 44: "channel number out of range", 2563 {39, "ENOTEMPTY", "directory not empty"},
2144 45: "level 2 not synchronized", 2564 {40, "ELOOP", "too many levels of symbolic links"},
2145 46: "level 3 halted", 2565 {42, "ENOMSG", "no message of desired type"},
2146 47: "level 3 reset", 2566 {43, "EIDRM", "identifier removed"},
2147 48: "link number out of range", 2567 {44, "ECHRNG", "channel number out of range"},
2148 49: "protocol driver not attached", 2568 {45, "EL2NSYNC", "level 2 not synchronized"},
2149 50: "no CSI structure available", 2569 {46, "EL3HLT", "level 3 halted"},
2150 51: "level 2 halted", 2570 {47, "EL3RST", "level 3 reset"},
2151 52: "invalid exchange", 2571 {48, "ELNRNG", "link number out of range"},
2152 53: "invalid request descriptor", 2572 {49, "EUNATCH", "protocol driver not attached"},
2153 54: "exchange full", 2573 {50, "ENOCSI", "no CSI structure available"},
2154 55: "no anode", 2574 {51, "EL2HLT", "level 2 halted"},
2155 56: "invalid request code", 2575 {52, "EBADE", "invalid exchange"},
2156 57: "invalid slot", 2576 {53, "EBADR", "invalid request descriptor"},
2157 59: "bad font file format", 2577 {54, "EXFULL", "exchange full"},
2158 60: "device not a stream", 2578 {55, "ENOANO", "no anode"},
2159 61: "no data available", 2579 {56, "EBADRQC", "invalid request code"},
2160 62: "timer expired", 2580 {57, "EBADSLT", "invalid slot"},
2161 63: "out of streams resources", 2581 {59, "EBFONT", "bad font file format"},
2162 64: "machine is not on the network", 2582 {60, "ENOSTR", "device not a stream"},
2163 65: "package not installed", 2583 {61, "ENODATA", "no data available"},
2164 66: "object is remote", 2584 {62, "ETIME", "timer expired"},
2165 67: "link has been severed", 2585 {63, "ENOSR", "out of streams resources"},
2166 68: "advertise error", 2586 {64, "ENONET", "machine is not on the network"},
2167 69: "srmount error", 2587 {65, "ENOPKG", "package not installed"},
2168 70: "communication error on send", 2588 {66, "EREMOTE", "object is remote"},
2169 71: "protocol error", 2589 {67, "ENOLINK", "link has been severed"},
2170 72: "multihop attempted", 2590 {68, "EADV", "advertise error"},
2171 73: "RFS specific error", 2591 {69, "ESRMNT", "srmount error"},
2172 74: "bad message", 2592 {70, "ECOMM", "communication error on send"},
2173 75: "value too large for defined data type", 2593 {71, "EPROTO", "protocol error"},
2174 76: "name not unique on network", 2594 {72, "EMULTIHOP", "multihop attempted"},
2175 77: "file descriptor in bad state", 2595 {73, "EDOTDOT", "RFS specific error"},
2176 78: "remote address changed", 2596 {74, "EBADMSG", "bad message"},
2177 79: "can not access a needed shared library", 2597 {75, "EOVERFLOW", "value too large for defined data type"},
2178 80: "accessing a corrupted shared library", 2598 {76, "ENOTUNIQ", "name not unique on network"},
2179 81: ".lib section in a.out corrupted", 2599 {77, "EBADFD", "file descriptor in bad state"},
2180 82: "attempting to link in too many shared libraries", 2600 {78, "EREMCHG", "remote address changed"},
2181 83: "cannot exec a shared library directly", 2601 {79, "ELIBACC", "can not access a needed shared library"},
2182 84: "invalid or incomplete multibyte or wide character", 2602 {80, "ELIBBAD", "accessing a corrupted shared library"},
2183 85: "interrupted system call should be restarted", 2603 {81, "ELIBSCN", ".lib section in a.out corrupted"},
2184 86: "streams pipe error", 2604 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
2185 87: "too many users", 2605 {83, "ELIBEXEC", "cannot exec a shared library directly"},
2186 88: "socket operation on non-socket", 2606 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2187 89: "destination address required", 2607 {85, "ERESTART", "interrupted system call should be restarted"},
2188 90: "message too long", 2608 {86, "ESTRPIPE", "streams pipe error"},
2189 91: "protocol wrong type for socket", 2609 {87, "EUSERS", "too many users"},
2190 92: "protocol not available", 2610 {88, "ENOTSOCK", "socket operation on non-socket"},
2191 93: "protocol not supported", 2611 {89, "EDESTADDRREQ", "destination address required"},
2192 94: "socket type not supported", 2612 {90, "EMSGSIZE", "message too long"},
2193 95: "operation not supported", 2613 {91, "EPROTOTYPE", "protocol wrong type for socket"},
2194 96: "protocol family not supported", 2614 {92, "ENOPROTOOPT", "protocol not available"},
2195 97: "address family not supported by protocol", 2615 {93, "EPROTONOSUPPORT", "protocol not supported"},
2196 98: "address already in use", 2616 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
2197 99: "cannot assign requested address", 2617 {95, "ENOTSUP", "operation not supported"},
2198 100: "network is down", 2618 {96, "EPFNOSUPPORT", "protocol family not supported"},
2199 101: "network is unreachable", 2619 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
2200 102: "network dropped connection on reset", 2620 {98, "EADDRINUSE", "address already in use"},
2201 103: "software caused connection abort", 2621 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
2202 104: "connection reset by peer", 2622 {100, "ENETDOWN", "network is down"},
2203 105: "no buffer space available", 2623 {101, "ENETUNREACH", "network is unreachable"},
2204 106: "transport endpoint is already connected", 2624 {102, "ENETRESET", "network dropped connection on reset"},
2205 107: "transport endpoint is not connected", 2625 {103, "ECONNABORTED", "software caused connection abort"},
2206 108: "cannot send after transport endpoint shutdown", 2626 {104, "ECONNRESET", "connection reset by peer"},
2207 109: "too many references: cannot splice", 2627 {105, "ENOBUFS", "no buffer space available"},
2208 110: "connection timed out", 2628 {106, "EISCONN", "transport endpoint is already connected"},
2209 111: "connection refused", 2629 {107, "ENOTCONN", "transport endpoint is not connected"},
2210 112: "host is down", 2630 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2211 113: "no route to host", 2631 {109, "ETOOMANYREFS", "too many references: cannot splice"},
2212 114: "operation already in progress", 2632 {110, "ETIMEDOUT", "connection timed out"},
2213 115: "operation now in progress", 2633 {111, "ECONNREFUSED", "connection refused"},
2214 116: "stale file handle", 2634 {112, "EHOSTDOWN", "host is down"},
2215 117: "structure needs cleaning", 2635 {113, "EHOSTUNREACH", "no route to host"},
2216 118: "not a XENIX named type file", 2636 {114, "EALREADY", "operation already in progress"},
2217 119: "no XENIX semaphores available", 2637 {115, "EINPROGRESS", "operation now in progress"},
2218 120: "is a named type file", 2638 {116, "ESTALE", "stale file handle"},
2219 121: "remote I/O error", 2639 {117, "EUCLEAN", "structure needs cleaning"},
2220 122: "disk quota exceeded", 2640 {118, "ENOTNAM", "not a XENIX named type file"},
2221 123: "no medium found", 2641 {119, "ENAVAIL", "no XENIX semaphores available"},
2222 124: "wrong medium type", 2642 {120, "EISNAM", "is a named type file"},
2223 125: "operation canceled", 2643 {121, "EREMOTEIO", "remote I/O error"},
2224 126: "required key not available", 2644 {122, "EDQUOT", "disk quota exceeded"},
2225 127: "key has expired", 2645 {123, "ENOMEDIUM", "no medium found"},
2226 128: "key has been revoked", 2646 {124, "EMEDIUMTYPE", "wrong medium type"},
2227 129: "key was rejected by service", 2647 {125, "ECANCELED", "operation canceled"},
2228 130: "owner died", 2648 {126, "ENOKEY", "required key not available"},
2229 131: "state not recoverable", 2649 {127, "EKEYEXPIRED", "key has expired"},
2230 132: "operation not possible due to RF-kill", 2650 {128, "EKEYREVOKED", "key has been revoked"},
2231 133: "memory page has hardware error", 2651 {129, "EKEYREJECTED", "key was rejected by service"},
2652 {130, "EOWNERDEAD", "owner died"},
2653 {131, "ENOTRECOVERABLE", "state not recoverable"},
2654 {132, "ERFKILL", "operation not possible due to RF-kill"},
2655 {133, "EHWPOISON", "memory page has hardware error"},
2232} 2656}
2233 2657
2234// Signal table 2658// Signal table
2235var signals = [...]string{ 2659var signalList = [...]struct {
2236 1: "hangup", 2660 num syscall.Signal
2237 2: "interrupt", 2661 name string
2238 3: "quit", 2662 desc string
2239 4: "illegal instruction", 2663}{
2240 5: "trace/breakpoint trap", 2664 {1, "SIGHUP", "hangup"},
2241 6: "aborted", 2665 {2, "SIGINT", "interrupt"},
2242 7: "bus error", 2666 {3, "SIGQUIT", "quit"},
2243 8: "floating point exception", 2667 {4, "SIGILL", "illegal instruction"},
2244 9: "killed", 2668 {5, "SIGTRAP", "trace/breakpoint trap"},
2245 10: "user defined signal 1", 2669 {6, "SIGABRT", "aborted"},
2246 11: "segmentation fault", 2670 {7, "SIGBUS", "bus error"},
2247 12: "user defined signal 2", 2671 {8, "SIGFPE", "floating point exception"},
2248 13: "broken pipe", 2672 {9, "SIGKILL", "killed"},
2249 14: "alarm clock", 2673 {10, "SIGUSR1", "user defined signal 1"},
2250 15: "terminated", 2674 {11, "SIGSEGV", "segmentation fault"},
2251 16: "stack fault", 2675 {12, "SIGUSR2", "user defined signal 2"},
2252 17: "child exited", 2676 {13, "SIGPIPE", "broken pipe"},
2253 18: "continued", 2677 {14, "SIGALRM", "alarm clock"},
2254 19: "stopped (signal)", 2678 {15, "SIGTERM", "terminated"},
2255 20: "stopped", 2679 {16, "SIGSTKFLT", "stack fault"},
2256 21: "stopped (tty input)", 2680 {17, "SIGCHLD", "child exited"},
2257 22: "stopped (tty output)", 2681 {18, "SIGCONT", "continued"},
2258 23: "urgent I/O condition", 2682 {19, "SIGSTOP", "stopped (signal)"},
2259 24: "CPU time limit exceeded", 2683 {20, "SIGTSTP", "stopped"},
2260 25: "file size limit exceeded", 2684 {21, "SIGTTIN", "stopped (tty input)"},
2261 26: "virtual timer expired", 2685 {22, "SIGTTOU", "stopped (tty output)"},
2262 27: "profiling timer expired", 2686 {23, "SIGURG", "urgent I/O condition"},
2263 28: "window changed", 2687 {24, "SIGXCPU", "CPU time limit exceeded"},
2264 29: "I/O possible", 2688 {25, "SIGXFSZ", "file size limit exceeded"},
2265 30: "power failure", 2689 {26, "SIGVTALRM", "virtual timer expired"},
2266 31: "bad system call", 2690 {27, "SIGPROF", "profiling timer expired"},
2691 {28, "SIGWINCH", "window changed"},
2692 {29, "SIGIO", "I/O possible"},
2693 {30, "SIGPWR", "power failure"},
2694 {31, "SIGSYS", "bad system call"},
2267} 2695}
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 250841b..1b58da1 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
@@ -3,7 +3,7 @@
3 3
4// +build arm,linux 4// +build arm,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x80041270 178 BLKBSZGET = 0x80041270
167 BLKBSZSET = 0x40041271 179 BLKBSZSET = 0x40041271
168 BLKFLSBUF = 0x1261 180 BLKFLSBUF = 0x1261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x800 354 EFD_NONBLOCK = 0x800
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000 480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -463,6 +499,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 504 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 506 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
@@ -476,6 +514,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 514 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 515 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 519 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 520 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 521 F_EXLCK = 0x4
@@ -488,6 +528,9 @@ const (
488 F_GETOWN_EX = 0x10 528 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 529 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 534 F_LOCK = 0x1
492 F_NOTIFY = 0x402 535 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 536 F_OFD_GETLK = 0x24
@@ -495,6 +538,10 @@ const (
495 F_OFD_SETLKW = 0x26 538 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 539 F_OK = 0x0
497 F_RDLCK = 0x0 540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 545 F_SETFD = 0x2
499 F_SETFL = 0x4 546 F_SETFL = 0x4
500 F_SETLEASE = 0x400 547 F_SETLEASE = 0x400
@@ -506,6 +553,8 @@ const (
506 F_SETOWN_EX = 0xf 553 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 554 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 558 F_SHLCK = 0x8
510 F_TEST = 0x3 559 F_TEST = 0x3
511 F_TLOCK = 0x2 560 F_TLOCK = 0x2
@@ -527,6 +576,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 576 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 577 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x400 622 HUPCL = 0x400
531 IBSHIFT = 0x10 623 IBSHIFT = 0x10
532 ICANON = 0x2 624 ICANON = 0x2
@@ -546,7 +638,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 638 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 639 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 640 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 641 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 642 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 643 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 644 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +653,8 @@ const (
561 IFF_MASTER = 0x400 653 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 654 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 658 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 659 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 660 IFF_NOTRAILERS = 0x20
@@ -671,6 +765,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 765 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 766 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 769 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 770 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 771 IPV6_HOPOPTS = 0x36
@@ -775,12 +870,34 @@ const (
775 IP_UNICAST_IF = 0x32 870 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 871 IP_XFRM_POLICY = 0x11
777 ISIG = 0x1 872 ISIG = 0x1
873 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 874 ISTRIP = 0x20
779 IUCLC = 0x200 875 IUCLC = 0x200
780 IUTF8 = 0x4000 876 IUTF8 = 0x4000
781 IXANY = 0x800 877 IXANY = 0x800
782 IXOFF = 0x1000 878 IXOFF = 0x1000
783 IXON = 0x400 879 IXON = 0x400
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 901 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 902 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 903 KEYCTL_CLEAR = 0x7
@@ -845,6 +962,7 @@ const (
845 MADV_FREE = 0x8 962 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 963 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 966 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 967 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 968 MADV_NORMAL = 0x0
@@ -853,12 +971,14 @@ const (
853 MADV_SEQUENTIAL = 0x2 971 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 972 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
856 MAP_ANON = 0x20 975 MAP_ANON = 0x20
857 MAP_ANONYMOUS = 0x20 976 MAP_ANONYMOUS = 0x20
858 MAP_DENYWRITE = 0x800 977 MAP_DENYWRITE = 0x800
859 MAP_EXECUTABLE = 0x1000 978 MAP_EXECUTABLE = 0x1000
860 MAP_FILE = 0x0 979 MAP_FILE = 0x0
861 MAP_FIXED = 0x10 980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
862 MAP_GROWSDOWN = 0x100 982 MAP_GROWSDOWN = 0x100
863 MAP_HUGETLB = 0x40000 983 MAP_HUGETLB = 0x40000
864 MAP_HUGE_MASK = 0x3f 984 MAP_HUGE_MASK = 0x3f
@@ -869,14 +989,37 @@ const (
869 MAP_POPULATE = 0x8000 989 MAP_POPULATE = 0x8000
870 MAP_PRIVATE = 0x2 990 MAP_PRIVATE = 0x2
871 MAP_SHARED = 0x1 991 MAP_SHARED = 0x1
992 MAP_SHARED_VALIDATE = 0x3
872 MAP_STACK = 0x20000 993 MAP_STACK = 0x20000
994 MAP_SYNC = 0x80000
873 MAP_TYPE = 0xf 995 MAP_TYPE = 0xf
874 MCL_CURRENT = 0x1 996 MCL_CURRENT = 0x1
875 MCL_FUTURE = 0x2 997 MCL_FUTURE = 0x2
876 MCL_ONFAULT = 0x4 998 MCL_ONFAULT = 0x4
999 MFD_ALLOW_SEALING = 0x2
1000 MFD_CLOEXEC = 0x1
1001 MFD_HUGETLB = 0x4
1002 MFD_HUGE_16GB = -0x78000000
1003 MFD_HUGE_16MB = 0x60000000
1004 MFD_HUGE_1GB = 0x78000000
1005 MFD_HUGE_1MB = 0x50000000
1006 MFD_HUGE_256MB = 0x70000000
1007 MFD_HUGE_2GB = 0x7c000000
1008 MFD_HUGE_2MB = 0x54000000
1009 MFD_HUGE_512KB = 0x4c000000
1010 MFD_HUGE_64KB = 0x40000000
1011 MFD_HUGE_8MB = 0x5c000000
1012 MFD_HUGE_MASK = 0x3f
1013 MFD_HUGE_SHIFT = 0x1a
1014 MINIX2_SUPER_MAGIC = 0x2468
1015 MINIX2_SUPER_MAGIC2 = 0x2478
1016 MINIX3_SUPER_MAGIC = 0x4d5a
1017 MINIX_SUPER_MAGIC = 0x137f
1018 MINIX_SUPER_MAGIC2 = 0x138f
877 MNT_DETACH = 0x2 1019 MNT_DETACH = 0x2
878 MNT_EXPIRE = 0x4 1020 MNT_EXPIRE = 0x4
879 MNT_FORCE = 0x1 1021 MNT_FORCE = 0x1
1022 MSDOS_SUPER_MAGIC = 0x4d44
880 MSG_BATCH = 0x40000 1023 MSG_BATCH = 0x40000
881 MSG_CMSG_CLOEXEC = 0x40000000 1024 MSG_CMSG_CLOEXEC = 0x40000000
882 MSG_CONFIRM = 0x800 1025 MSG_CONFIRM = 0x800
@@ -898,6 +1041,7 @@ const (
898 MSG_TRYHARD = 0x4 1041 MSG_TRYHARD = 0x4
899 MSG_WAITALL = 0x100 1042 MSG_WAITALL = 0x100
900 MSG_WAITFORONE = 0x10000 1043 MSG_WAITFORONE = 0x10000
1044 MSG_ZEROCOPY = 0x4000000
901 MS_ACTIVE = 0x40000000 1045 MS_ACTIVE = 0x40000000
902 MS_ASYNC = 0x1 1046 MS_ASYNC = 0x1
903 MS_BIND = 0x1000 1047 MS_BIND = 0x1000
@@ -935,7 +1079,9 @@ const (
935 MS_SYNCHRONOUS = 0x10 1079 MS_SYNCHRONOUS = 0x10
936 MS_UNBINDABLE = 0x20000 1080 MS_UNBINDABLE = 0x20000
937 MS_VERBOSE = 0x8000 1081 MS_VERBOSE = 0x8000
1082 MTD_INODE_FS_MAGIC = 0x11307854
938 NAME_MAX = 0xff 1083 NAME_MAX = 0xff
1084 NCP_SUPER_MAGIC = 0x564c
939 NETLINK_ADD_MEMBERSHIP = 0x1 1085 NETLINK_ADD_MEMBERSHIP = 0x1
940 NETLINK_AUDIT = 0x9 1086 NETLINK_AUDIT = 0x9
941 NETLINK_BROADCAST_ERROR = 0x4 1087 NETLINK_BROADCAST_ERROR = 0x4
@@ -970,6 +1116,39 @@ const (
970 NETLINK_UNUSED = 0x1 1116 NETLINK_UNUSED = 0x1
971 NETLINK_USERSOCK = 0x2 1117 NETLINK_USERSOCK = 0x2
972 NETLINK_XFRM = 0x6 1118 NETLINK_XFRM = 0x6
1119 NETNSA_MAX = 0x3
1120 NETNSA_NSID_NOT_ASSIGNED = -0x1
1121 NFNETLINK_V0 = 0x0
1122 NFNLGRP_ACCT_QUOTA = 0x8
1123 NFNLGRP_CONNTRACK_DESTROY = 0x3
1124 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1125 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1126 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1127 NFNLGRP_CONNTRACK_NEW = 0x1
1128 NFNLGRP_CONNTRACK_UPDATE = 0x2
1129 NFNLGRP_MAX = 0x9
1130 NFNLGRP_NFTABLES = 0x7
1131 NFNLGRP_NFTRACE = 0x9
1132 NFNLGRP_NONE = 0x0
1133 NFNL_BATCH_MAX = 0x1
1134 NFNL_MSG_BATCH_BEGIN = 0x10
1135 NFNL_MSG_BATCH_END = 0x11
1136 NFNL_NFA_NEST = 0x8000
1137 NFNL_SUBSYS_ACCT = 0x7
1138 NFNL_SUBSYS_COUNT = 0xc
1139 NFNL_SUBSYS_CTHELPER = 0x9
1140 NFNL_SUBSYS_CTNETLINK = 0x1
1141 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1142 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1143 NFNL_SUBSYS_IPSET = 0x6
1144 NFNL_SUBSYS_NFTABLES = 0xa
1145 NFNL_SUBSYS_NFT_COMPAT = 0xb
1146 NFNL_SUBSYS_NONE = 0x0
1147 NFNL_SUBSYS_OSF = 0x5
1148 NFNL_SUBSYS_QUEUE = 0x3
1149 NFNL_SUBSYS_ULOG = 0x4
1150 NFS_SUPER_MAGIC = 0x6969
1151 NILFS_SUPER_MAGIC = 0x3434
973 NL0 = 0x0 1152 NL0 = 0x0
974 NL1 = 0x100 1153 NL1 = 0x100
975 NLA_ALIGNTO = 0x4 1154 NLA_ALIGNTO = 0x4
@@ -997,10 +1176,13 @@ const (
997 NLM_F_EXCL = 0x200 1176 NLM_F_EXCL = 0x200
998 NLM_F_MATCH = 0x200 1177 NLM_F_MATCH = 0x200
999 NLM_F_MULTI = 0x2 1178 NLM_F_MULTI = 0x2
1179 NLM_F_NONREC = 0x100
1000 NLM_F_REPLACE = 0x100 1180 NLM_F_REPLACE = 0x100
1001 NLM_F_REQUEST = 0x1 1181 NLM_F_REQUEST = 0x1
1002 NLM_F_ROOT = 0x100 1182 NLM_F_ROOT = 0x100
1003 NOFLSH = 0x80 1183 NOFLSH = 0x80
1184 NSFS_MAGIC = 0x6e736673
1185 OCFS2_SUPER_MAGIC = 0x7461636f
1004 OCRNL = 0x8 1186 OCRNL = 0x8
1005 OFDEL = 0x80 1187 OFDEL = 0x80
1006 OFILL = 0x40 1188 OFILL = 0x40
@@ -1008,7 +1190,9 @@ const (
1008 ONLCR = 0x4 1190 ONLCR = 0x4
1009 ONLRET = 0x20 1191 ONLRET = 0x20
1010 ONOCR = 0x10 1192 ONOCR = 0x10
1193 OPENPROM_SUPER_MAGIC = 0x9fa1
1011 OPOST = 0x1 1194 OPOST = 0x1
1195 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1012 O_ACCMODE = 0x3 1196 O_ACCMODE = 0x3
1013 O_APPEND = 0x400 1197 O_APPEND = 0x400
1014 O_ASYNC = 0x2000 1198 O_ASYNC = 0x2000
@@ -1093,16 +1277,20 @@ const (
1093 PERF_EVENT_IOC_DISABLE = 0x2401 1277 PERF_EVENT_IOC_DISABLE = 0x2401
1094 PERF_EVENT_IOC_ENABLE = 0x2400 1278 PERF_EVENT_IOC_ENABLE = 0x2400
1095 PERF_EVENT_IOC_ID = 0x80042407 1279 PERF_EVENT_IOC_ID = 0x80042407
1280 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
1096 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 1281 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
1097 PERF_EVENT_IOC_PERIOD = 0x40082404 1282 PERF_EVENT_IOC_PERIOD = 0x40082404
1283 PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
1098 PERF_EVENT_IOC_REFRESH = 0x2402 1284 PERF_EVENT_IOC_REFRESH = 0x2402
1099 PERF_EVENT_IOC_RESET = 0x2403 1285 PERF_EVENT_IOC_RESET = 0x2403
1100 PERF_EVENT_IOC_SET_BPF = 0x40042408 1286 PERF_EVENT_IOC_SET_BPF = 0x40042408
1101 PERF_EVENT_IOC_SET_FILTER = 0x40042406 1287 PERF_EVENT_IOC_SET_FILTER = 0x40042406
1102 PERF_EVENT_IOC_SET_OUTPUT = 0x2405 1288 PERF_EVENT_IOC_SET_OUTPUT = 0x2405
1289 PIPEFS_MAGIC = 0x50495045
1103 PRIO_PGRP = 0x1 1290 PRIO_PGRP = 0x1
1104 PRIO_PROCESS = 0x0 1291 PRIO_PROCESS = 0x0
1105 PRIO_USER = 0x2 1292 PRIO_USER = 0x2
1293 PROC_SUPER_MAGIC = 0x9fa0
1106 PROT_EXEC = 0x4 1294 PROT_EXEC = 0x4
1107 PROT_GROWSDOWN = 0x1000000 1295 PROT_GROWSDOWN = 0x1000000
1108 PROT_GROWSUP = 0x2000000 1296 PROT_GROWSUP = 0x2000000
@@ -1145,6 +1333,7 @@ const (
1145 PR_GET_PDEATHSIG = 0x2 1333 PR_GET_PDEATHSIG = 0x2
1146 PR_GET_SECCOMP = 0x15 1334 PR_GET_SECCOMP = 0x15
1147 PR_GET_SECUREBITS = 0x1b 1335 PR_GET_SECUREBITS = 0x1b
1336 PR_GET_SPECULATION_CTRL = 0x34
1148 PR_GET_THP_DISABLE = 0x2a 1337 PR_GET_THP_DISABLE = 0x2a
1149 PR_GET_TID_ADDRESS = 0x28 1338 PR_GET_TID_ADDRESS = 0x28
1150 PR_GET_TIMERSLACK = 0x1e 1339 PR_GET_TIMERSLACK = 0x1e
@@ -1190,11 +1379,23 @@ const (
1190 PR_SET_PTRACER_ANY = 0xffffffff 1379 PR_SET_PTRACER_ANY = 0xffffffff
1191 PR_SET_SECCOMP = 0x16 1380 PR_SET_SECCOMP = 0x16
1192 PR_SET_SECUREBITS = 0x1c 1381 PR_SET_SECUREBITS = 0x1c
1382 PR_SET_SPECULATION_CTRL = 0x35
1193 PR_SET_THP_DISABLE = 0x29 1383 PR_SET_THP_DISABLE = 0x29
1194 PR_SET_TIMERSLACK = 0x1d 1384 PR_SET_TIMERSLACK = 0x1d
1195 PR_SET_TIMING = 0xe 1385 PR_SET_TIMING = 0xe
1196 PR_SET_TSC = 0x1a 1386 PR_SET_TSC = 0x1a
1197 PR_SET_UNALIGN = 0x6 1387 PR_SET_UNALIGN = 0x6
1388 PR_SPEC_DISABLE = 0x4
1389 PR_SPEC_ENABLE = 0x2
1390 PR_SPEC_FORCE_DISABLE = 0x8
1391 PR_SPEC_NOT_AFFECTED = 0x0
1392 PR_SPEC_PRCTL = 0x1
1393 PR_SPEC_STORE_BYPASS = 0x0
1394 PR_SVE_GET_VL = 0x33
1395 PR_SVE_SET_VL = 0x32
1396 PR_SVE_SET_VL_ONEXEC = 0x40000
1397 PR_SVE_VL_INHERIT = 0x20000
1398 PR_SVE_VL_LEN_MASK = 0xffff
1198 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1399 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1199 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1400 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1200 PR_TIMING_STATISTICAL = 0x0 1401 PR_TIMING_STATISTICAL = 0x0
@@ -1203,6 +1404,7 @@ const (
1203 PR_TSC_SIGSEGV = 0x2 1404 PR_TSC_SIGSEGV = 0x2
1204 PR_UNALIGN_NOPRINT = 0x1 1405 PR_UNALIGN_NOPRINT = 0x1
1205 PR_UNALIGN_SIGBUS = 0x2 1406 PR_UNALIGN_SIGBUS = 0x2
1407 PSTOREFS_MAGIC = 0x6165676c
1206 PTRACE_ATTACH = 0x10 1408 PTRACE_ATTACH = 0x10
1207 PTRACE_CONT = 0x7 1409 PTRACE_CONT = 0x7
1208 PTRACE_DETACH = 0x11 1410 PTRACE_DETACH = 0x11
@@ -1216,6 +1418,9 @@ const (
1216 PTRACE_EVENT_VFORK_DONE = 0x5 1418 PTRACE_EVENT_VFORK_DONE = 0x5
1217 PTRACE_GETCRUNCHREGS = 0x19 1419 PTRACE_GETCRUNCHREGS = 0x19
1218 PTRACE_GETEVENTMSG = 0x4201 1420 PTRACE_GETEVENTMSG = 0x4201
1421 PTRACE_GETFDPIC = 0x1f
1422 PTRACE_GETFDPIC_EXEC = 0x0
1423 PTRACE_GETFDPIC_INTERP = 0x1
1219 PTRACE_GETFPREGS = 0xe 1424 PTRACE_GETFPREGS = 0xe
1220 PTRACE_GETHBPREGS = 0x1d 1425 PTRACE_GETHBPREGS = 0x1d
1221 PTRACE_GETREGS = 0xc 1426 PTRACE_GETREGS = 0xc
@@ -1249,6 +1454,7 @@ const (
1249 PTRACE_POKETEXT = 0x4 1454 PTRACE_POKETEXT = 0x4
1250 PTRACE_POKEUSR = 0x6 1455 PTRACE_POKEUSR = 0x6
1251 PTRACE_SECCOMP_GET_FILTER = 0x420c 1456 PTRACE_SECCOMP_GET_FILTER = 0x420c
1457 PTRACE_SECCOMP_GET_METADATA = 0x420d
1252 PTRACE_SEIZE = 0x4206 1458 PTRACE_SEIZE = 0x4206
1253 PTRACE_SETCRUNCHREGS = 0x1a 1459 PTRACE_SETCRUNCHREGS = 0x1a
1254 PTRACE_SETFPREGS = 0xf 1460 PTRACE_SETFPREGS = 0xf
@@ -1267,6 +1473,14 @@ const (
1267 PT_DATA_ADDR = 0x10004 1473 PT_DATA_ADDR = 0x10004
1268 PT_TEXT_ADDR = 0x10000 1474 PT_TEXT_ADDR = 0x10000
1269 PT_TEXT_END_ADDR = 0x10008 1475 PT_TEXT_END_ADDR = 0x10008
1476 QNX4_SUPER_MAGIC = 0x2f
1477 QNX6_SUPER_MAGIC = 0x68191122
1478 RAMFS_MAGIC = 0x858458f6
1479 RDTGROUP_SUPER_MAGIC = 0x7655821
1480 REISERFS_SUPER_MAGIC = 0x52654973
1481 RENAME_EXCHANGE = 0x2
1482 RENAME_NOREPLACE = 0x1
1483 RENAME_WHITEOUT = 0x4
1270 RLIMIT_AS = 0x9 1484 RLIMIT_AS = 0x9
1271 RLIMIT_CORE = 0x4 1485 RLIMIT_CORE = 0x4
1272 RLIMIT_CPU = 0x0 1486 RLIMIT_CPU = 0x0
@@ -1287,6 +1501,7 @@ const (
1287 RTAX_ADVMSS = 0x8 1501 RTAX_ADVMSS = 0x8
1288 RTAX_CC_ALGO = 0x10 1502 RTAX_CC_ALGO = 0x10
1289 RTAX_CWND = 0x7 1503 RTAX_CWND = 0x7
1504 RTAX_FASTOPEN_NO_COOKIE = 0x11
1290 RTAX_FEATURES = 0xc 1505 RTAX_FEATURES = 0xc
1291 RTAX_FEATURE_ALLFRAG = 0x8 1506 RTAX_FEATURE_ALLFRAG = 0x8
1292 RTAX_FEATURE_ECN = 0x1 1507 RTAX_FEATURE_ECN = 0x1
@@ -1297,7 +1512,7 @@ const (
1297 RTAX_INITCWND = 0xb 1512 RTAX_INITCWND = 0xb
1298 RTAX_INITRWND = 0xe 1513 RTAX_INITRWND = 0xe
1299 RTAX_LOCK = 0x1 1514 RTAX_LOCK = 0x1
1300 RTAX_MAX = 0x10 1515 RTAX_MAX = 0x11
1301 RTAX_MTU = 0x2 1516 RTAX_MTU = 0x2
1302 RTAX_QUICKACK = 0xf 1517 RTAX_QUICKACK = 0xf
1303 RTAX_REORDERING = 0x9 1518 RTAX_REORDERING = 0x9
@@ -1308,13 +1523,40 @@ const (
1308 RTAX_UNSPEC = 0x0 1523 RTAX_UNSPEC = 0x0
1309 RTAX_WINDOW = 0x3 1524 RTAX_WINDOW = 0x3
1310 RTA_ALIGNTO = 0x4 1525 RTA_ALIGNTO = 0x4
1311 RTA_MAX = 0x1a 1526 RTA_MAX = 0x1d
1312 RTCF_DIRECTSRC = 0x4000000 1527 RTCF_DIRECTSRC = 0x4000000
1313 RTCF_DOREDIRECT = 0x1000000 1528 RTCF_DOREDIRECT = 0x1000000
1314 RTCF_LOG = 0x2000000 1529 RTCF_LOG = 0x2000000
1315 RTCF_MASQ = 0x400000 1530 RTCF_MASQ = 0x400000
1316 RTCF_NAT = 0x800000 1531 RTCF_NAT = 0x800000
1317 RTCF_VALVE = 0x200000 1532 RTCF_VALVE = 0x200000
1533 RTC_AF = 0x20
1534 RTC_AIE_OFF = 0x7002
1535 RTC_AIE_ON = 0x7001
1536 RTC_ALM_READ = 0x80247008
1537 RTC_ALM_SET = 0x40247007
1538 RTC_EPOCH_READ = 0x8004700d
1539 RTC_EPOCH_SET = 0x4004700e
1540 RTC_IRQF = 0x80
1541 RTC_IRQP_READ = 0x8004700b
1542 RTC_IRQP_SET = 0x4004700c
1543 RTC_MAX_FREQ = 0x2000
1544 RTC_PF = 0x40
1545 RTC_PIE_OFF = 0x7006
1546 RTC_PIE_ON = 0x7005
1547 RTC_PLL_GET = 0x801c7011
1548 RTC_PLL_SET = 0x401c7012
1549 RTC_RD_TIME = 0x80247009
1550 RTC_SET_TIME = 0x4024700a
1551 RTC_UF = 0x10
1552 RTC_UIE_OFF = 0x7004
1553 RTC_UIE_ON = 0x7003
1554 RTC_VL_CLR = 0x7014
1555 RTC_VL_READ = 0x80047013
1556 RTC_WIE_OFF = 0x7010
1557 RTC_WIE_ON = 0x700f
1558 RTC_WKALM_RD = 0x80287010
1559 RTC_WKALM_SET = 0x4028700f
1318 RTF_ADDRCLASSMASK = 0xf8000000 1560 RTF_ADDRCLASSMASK = 0xf8000000
1319 RTF_ADDRCONF = 0x40000 1561 RTF_ADDRCONF = 0x40000
1320 RTF_ALLONLINK = 0x20000 1562 RTF_ALLONLINK = 0x20000
@@ -1417,17 +1659,22 @@ const (
1417 RTNH_F_UNRESOLVED = 0x20 1659 RTNH_F_UNRESOLVED = 0x20
1418 RTN_MAX = 0xb 1660 RTN_MAX = 0xb
1419 RTPROT_BABEL = 0x2a 1661 RTPROT_BABEL = 0x2a
1662 RTPROT_BGP = 0xba
1420 RTPROT_BIRD = 0xc 1663 RTPROT_BIRD = 0xc
1421 RTPROT_BOOT = 0x3 1664 RTPROT_BOOT = 0x3
1422 RTPROT_DHCP = 0x10 1665 RTPROT_DHCP = 0x10
1423 RTPROT_DNROUTED = 0xd 1666 RTPROT_DNROUTED = 0xd
1667 RTPROT_EIGRP = 0xc0
1424 RTPROT_GATED = 0x8 1668 RTPROT_GATED = 0x8
1669 RTPROT_ISIS = 0xbb
1425 RTPROT_KERNEL = 0x2 1670 RTPROT_KERNEL = 0x2
1426 RTPROT_MROUTED = 0x11 1671 RTPROT_MROUTED = 0x11
1427 RTPROT_MRT = 0xa 1672 RTPROT_MRT = 0xa
1428 RTPROT_NTK = 0xf 1673 RTPROT_NTK = 0xf
1674 RTPROT_OSPF = 0xbc
1429 RTPROT_RA = 0x9 1675 RTPROT_RA = 0x9
1430 RTPROT_REDIRECT = 0x1 1676 RTPROT_REDIRECT = 0x1
1677 RTPROT_RIP = 0xbd
1431 RTPROT_STATIC = 0x4 1678 RTPROT_STATIC = 0x4
1432 RTPROT_UNSPEC = 0x0 1679 RTPROT_UNSPEC = 0x0
1433 RTPROT_XORP = 0xe 1680 RTPROT_XORP = 0xe
@@ -1451,6 +1698,8 @@ const (
1451 SECCOMP_MODE_DISABLED = 0x0 1698 SECCOMP_MODE_DISABLED = 0x0
1452 SECCOMP_MODE_FILTER = 0x2 1699 SECCOMP_MODE_FILTER = 0x2
1453 SECCOMP_MODE_STRICT = 0x1 1700 SECCOMP_MODE_STRICT = 0x1
1701 SECURITYFS_MAGIC = 0x73636673
1702 SELINUX_MAGIC = 0xf97cff8c
1454 SHUT_RD = 0x0 1703 SHUT_RD = 0x0
1455 SHUT_RDWR = 0x2 1704 SHUT_RDWR = 0x2
1456 SHUT_WR = 0x1 1705 SHUT_WR = 0x1
@@ -1535,6 +1784,23 @@ const (
1535 SIOCSPGRP = 0x8902 1784 SIOCSPGRP = 0x8902
1536 SIOCSRARP = 0x8962 1785 SIOCSRARP = 0x8962
1537 SIOCWANDEV = 0x894a 1786 SIOCWANDEV = 0x894a
1787 SMACK_MAGIC = 0x43415d53
1788 SMART_AUTOSAVE = 0xd2
1789 SMART_AUTO_OFFLINE = 0xdb
1790 SMART_DISABLE = 0xd9
1791 SMART_ENABLE = 0xd8
1792 SMART_HCYL_PASS = 0xc2
1793 SMART_IMMEDIATE_OFFLINE = 0xd4
1794 SMART_LCYL_PASS = 0x4f
1795 SMART_READ_LOG_SECTOR = 0xd5
1796 SMART_READ_THRESHOLDS = 0xd1
1797 SMART_READ_VALUES = 0xd0
1798 SMART_SAVE = 0xd3
1799 SMART_STATUS = 0xda
1800 SMART_WRITE_LOG_SECTOR = 0xd6
1801 SMART_WRITE_THRESHOLDS = 0xd7
1802 SMB_SUPER_MAGIC = 0x517b
1803 SOCKFS_MAGIC = 0x534f434b
1538 SOCK_CLOEXEC = 0x80000 1804 SOCK_CLOEXEC = 0x80000
1539 SOCK_DCCP = 0x6 1805 SOCK_DCCP = 0x6
1540 SOCK_DGRAM = 0x2 1806 SOCK_DGRAM = 0x2
@@ -1571,7 +1837,9 @@ const (
1571 SOL_SOCKET = 0x1 1837 SOL_SOCKET = 0x1
1572 SOL_TCP = 0x6 1838 SOL_TCP = 0x6
1573 SOL_TIPC = 0x10f 1839 SOL_TIPC = 0x10f
1840 SOL_TLS = 0x11a
1574 SOL_X25 = 0x106 1841 SOL_X25 = 0x106
1842 SOL_XDP = 0x11b
1575 SOMAXCONN = 0x80 1843 SOMAXCONN = 0x80
1576 SO_ACCEPTCONN = 0x1e 1844 SO_ACCEPTCONN = 0x1e
1577 SO_ATTACH_BPF = 0x32 1845 SO_ATTACH_BPF = 0x32
@@ -1639,10 +1907,13 @@ const (
1639 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1907 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1640 SO_VM_SOCKETS_TRUSTED = 0x5 1908 SO_VM_SOCKETS_TRUSTED = 0x5
1641 SO_WIFI_STATUS = 0x29 1909 SO_WIFI_STATUS = 0x29
1910 SO_ZEROCOPY = 0x3c
1642 SPLICE_F_GIFT = 0x8 1911 SPLICE_F_GIFT = 0x8
1643 SPLICE_F_MORE = 0x4 1912 SPLICE_F_MORE = 0x4
1644 SPLICE_F_MOVE = 0x1 1913 SPLICE_F_MOVE = 0x1
1645 SPLICE_F_NONBLOCK = 0x2 1914 SPLICE_F_NONBLOCK = 0x2
1915 SQUASHFS_MAGIC = 0x73717368
1916 STACK_END_MAGIC = 0x57ac6e9d
1646 STATX_ALL = 0xfff 1917 STATX_ALL = 0xfff
1647 STATX_ATIME = 0x20 1918 STATX_ATIME = 0x20
1648 STATX_ATTR_APPEND = 0x20 1919 STATX_ATTR_APPEND = 0x20
@@ -1664,6 +1935,10 @@ const (
1664 STATX_TYPE = 0x1 1935 STATX_TYPE = 0x1
1665 STATX_UID = 0x8 1936 STATX_UID = 0x8
1666 STATX__RESERVED = 0x80000000 1937 STATX__RESERVED = 0x80000000
1938 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1939 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1940 SYNC_FILE_RANGE_WRITE = 0x2
1941 SYSFS_MAGIC = 0x62656572
1667 S_BLKSIZE = 0x200 1942 S_BLKSIZE = 0x200
1668 S_IEXEC = 0x40 1943 S_IEXEC = 0x40
1669 S_IFBLK = 0x6000 1944 S_IFBLK = 0x6000
@@ -1726,6 +2001,8 @@ const (
1726 TCP_DEFER_ACCEPT = 0x9 2001 TCP_DEFER_ACCEPT = 0x9
1727 TCP_FASTOPEN = 0x17 2002 TCP_FASTOPEN = 0x17
1728 TCP_FASTOPEN_CONNECT = 0x1e 2003 TCP_FASTOPEN_CONNECT = 0x1e
2004 TCP_FASTOPEN_KEY = 0x21
2005 TCP_FASTOPEN_NO_COOKIE = 0x22
1729 TCP_INFO = 0xb 2006 TCP_INFO = 0xb
1730 TCP_KEEPCNT = 0x6 2007 TCP_KEEPCNT = 0x6
1731 TCP_KEEPIDLE = 0x4 2008 TCP_KEEPIDLE = 0x4
@@ -1735,6 +2012,8 @@ const (
1735 TCP_MAXWIN = 0xffff 2012 TCP_MAXWIN = 0xffff
1736 TCP_MAX_WINSHIFT = 0xe 2013 TCP_MAX_WINSHIFT = 0xe
1737 TCP_MD5SIG = 0xe 2014 TCP_MD5SIG = 0xe
2015 TCP_MD5SIG_EXT = 0x20
2016 TCP_MD5SIG_FLAG_PREFIX = 0x1
1738 TCP_MD5SIG_MAXKEYLEN = 0x50 2017 TCP_MD5SIG_MAXKEYLEN = 0x50
1739 TCP_MSS = 0x200 2018 TCP_MSS = 0x200
1740 TCP_MSS_DEFAULT = 0x218 2019 TCP_MSS_DEFAULT = 0x218
@@ -1755,6 +2034,7 @@ const (
1755 TCP_THIN_DUPACK = 0x11 2034 TCP_THIN_DUPACK = 0x11
1756 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2035 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1757 TCP_TIMESTAMP = 0x18 2036 TCP_TIMESTAMP = 0x18
2037 TCP_ULP = 0x1f
1758 TCP_USER_TIMEOUT = 0x12 2038 TCP_USER_TIMEOUT = 0x12
1759 TCP_WINDOW_CLAMP = 0xa 2039 TCP_WINDOW_CLAMP = 0xa
1760 TCSAFLUSH = 0x2 2040 TCSAFLUSH = 0x2
@@ -1842,7 +2122,27 @@ const (
1842 TIOCSTI = 0x5412 2122 TIOCSTI = 0x5412
1843 TIOCSWINSZ = 0x5414 2123 TIOCSWINSZ = 0x5414
1844 TIOCVHANGUP = 0x5437 2124 TIOCVHANGUP = 0x5437
2125 TMPFS_MAGIC = 0x1021994
1845 TOSTOP = 0x100 2126 TOSTOP = 0x100
2127 TPACKET_ALIGNMENT = 0x10
2128 TPACKET_HDRLEN = 0x34
2129 TP_STATUS_AVAILABLE = 0x0
2130 TP_STATUS_BLK_TMO = 0x20
2131 TP_STATUS_COPY = 0x2
2132 TP_STATUS_CSUMNOTREADY = 0x8
2133 TP_STATUS_CSUM_VALID = 0x80
2134 TP_STATUS_KERNEL = 0x0
2135 TP_STATUS_LOSING = 0x4
2136 TP_STATUS_SENDING = 0x2
2137 TP_STATUS_SEND_REQUEST = 0x1
2138 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2139 TP_STATUS_TS_SOFTWARE = 0x20000000
2140 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2141 TP_STATUS_USER = 0x1
2142 TP_STATUS_VLAN_TPID_VALID = 0x40
2143 TP_STATUS_VLAN_VALID = 0x10
2144 TP_STATUS_WRONG_FORMAT = 0x4
2145 TRACEFS_MAGIC = 0x74726163
1846 TS_COMM_LEN = 0x20 2146 TS_COMM_LEN = 0x20
1847 TUNATTACHFILTER = 0x400854d5 2147 TUNATTACHFILTER = 0x400854d5
1848 TUNDETACHFILTER = 0x400854d6 2148 TUNDETACHFILTER = 0x400854d6
@@ -1854,6 +2154,7 @@ const (
1854 TUNGETVNETHDRSZ = 0x800454d7 2154 TUNGETVNETHDRSZ = 0x800454d7
1855 TUNGETVNETLE = 0x800454dd 2155 TUNGETVNETLE = 0x800454dd
1856 TUNSETDEBUG = 0x400454c9 2156 TUNSETDEBUG = 0x400454c9
2157 TUNSETFILTEREBPF = 0x800454e1
1857 TUNSETGROUP = 0x400454ce 2158 TUNSETGROUP = 0x400454ce
1858 TUNSETIFF = 0x400454ca 2159 TUNSETIFF = 0x400454ca
1859 TUNSETIFINDEX = 0x400454da 2160 TUNSETIFINDEX = 0x400454da
@@ -1864,13 +2165,32 @@ const (
1864 TUNSETPERSIST = 0x400454cb 2165 TUNSETPERSIST = 0x400454cb
1865 TUNSETQUEUE = 0x400454d9 2166 TUNSETQUEUE = 0x400454d9
1866 TUNSETSNDBUF = 0x400454d4 2167 TUNSETSNDBUF = 0x400454d4
2168 TUNSETSTEERINGEBPF = 0x800454e0
1867 TUNSETTXFILTER = 0x400454d1 2169 TUNSETTXFILTER = 0x400454d1
1868 TUNSETVNETBE = 0x400454de 2170 TUNSETVNETBE = 0x400454de
1869 TUNSETVNETHDRSZ = 0x400454d8 2171 TUNSETVNETHDRSZ = 0x400454d8
1870 TUNSETVNETLE = 0x400454dc 2172 TUNSETVNETLE = 0x400454dc
2173 UBI_IOCATT = 0x40186f40
2174 UBI_IOCDET = 0x40046f41
2175 UBI_IOCEBCH = 0x40044f02
2176 UBI_IOCEBER = 0x40044f01
2177 UBI_IOCEBISMAP = 0x80044f05
2178 UBI_IOCEBMAP = 0x40084f03
2179 UBI_IOCEBUNMAP = 0x40044f04
2180 UBI_IOCMKVOL = 0x40986f00
2181 UBI_IOCRMVOL = 0x40046f01
2182 UBI_IOCRNVOL = 0x51106f03
2183 UBI_IOCRSVOL = 0x400c6f02
2184 UBI_IOCSETVOLPROP = 0x40104f06
2185 UBI_IOCVOLCRBLK = 0x40804f07
2186 UBI_IOCVOLRMBLK = 0x4f08
2187 UBI_IOCVOLUP = 0x40084f00
2188 UDF_SUPER_MAGIC = 0x15013346
1871 UMOUNT_NOFOLLOW = 0x8 2189 UMOUNT_NOFOLLOW = 0x8
2190 USBDEVICE_SUPER_MAGIC = 0x9fa2
1872 UTIME_NOW = 0x3fffffff 2191 UTIME_NOW = 0x3fffffff
1873 UTIME_OMIT = 0x3ffffffe 2192 UTIME_OMIT = 0x3ffffffe
2193 V9FS_MAGIC = 0x1021997
1874 VDISCARD = 0xd 2194 VDISCARD = 0xd
1875 VEOF = 0x4 2195 VEOF = 0x4
1876 VEOL = 0xb 2196 VEOL = 0xb
@@ -1912,6 +2232,86 @@ const (
1912 WDIOC_SETPRETIMEOUT = 0xc0045708 2232 WDIOC_SETPRETIMEOUT = 0xc0045708
1913 WDIOC_SETTIMEOUT = 0xc0045706 2233 WDIOC_SETTIMEOUT = 0xc0045706
1914 WEXITED = 0x4 2234 WEXITED = 0x4
2235 WIN_ACKMEDIACHANGE = 0xdb
2236 WIN_CHECKPOWERMODE1 = 0xe5
2237 WIN_CHECKPOWERMODE2 = 0x98
2238 WIN_DEVICE_RESET = 0x8
2239 WIN_DIAGNOSE = 0x90
2240 WIN_DOORLOCK = 0xde
2241 WIN_DOORUNLOCK = 0xdf
2242 WIN_DOWNLOAD_MICROCODE = 0x92
2243 WIN_FLUSH_CACHE = 0xe7
2244 WIN_FLUSH_CACHE_EXT = 0xea
2245 WIN_FORMAT = 0x50
2246 WIN_GETMEDIASTATUS = 0xda
2247 WIN_IDENTIFY = 0xec
2248 WIN_IDENTIFY_DMA = 0xee
2249 WIN_IDLEIMMEDIATE = 0xe1
2250 WIN_INIT = 0x60
2251 WIN_MEDIAEJECT = 0xed
2252 WIN_MULTREAD = 0xc4
2253 WIN_MULTREAD_EXT = 0x29
2254 WIN_MULTWRITE = 0xc5
2255 WIN_MULTWRITE_EXT = 0x39
2256 WIN_NOP = 0x0
2257 WIN_PACKETCMD = 0xa0
2258 WIN_PIDENTIFY = 0xa1
2259 WIN_POSTBOOT = 0xdc
2260 WIN_PREBOOT = 0xdd
2261 WIN_QUEUED_SERVICE = 0xa2
2262 WIN_READ = 0x20
2263 WIN_READDMA = 0xc8
2264 WIN_READDMA_EXT = 0x25
2265 WIN_READDMA_ONCE = 0xc9
2266 WIN_READDMA_QUEUED = 0xc7
2267 WIN_READDMA_QUEUED_EXT = 0x26
2268 WIN_READ_BUFFER = 0xe4
2269 WIN_READ_EXT = 0x24
2270 WIN_READ_LONG = 0x22
2271 WIN_READ_LONG_ONCE = 0x23
2272 WIN_READ_NATIVE_MAX = 0xf8
2273 WIN_READ_NATIVE_MAX_EXT = 0x27
2274 WIN_READ_ONCE = 0x21
2275 WIN_RECAL = 0x10
2276 WIN_RESTORE = 0x10
2277 WIN_SECURITY_DISABLE = 0xf6
2278 WIN_SECURITY_ERASE_PREPARE = 0xf3
2279 WIN_SECURITY_ERASE_UNIT = 0xf4
2280 WIN_SECURITY_FREEZE_LOCK = 0xf5
2281 WIN_SECURITY_SET_PASS = 0xf1
2282 WIN_SECURITY_UNLOCK = 0xf2
2283 WIN_SEEK = 0x70
2284 WIN_SETFEATURES = 0xef
2285 WIN_SETIDLE1 = 0xe3
2286 WIN_SETIDLE2 = 0x97
2287 WIN_SETMULT = 0xc6
2288 WIN_SET_MAX = 0xf9
2289 WIN_SET_MAX_EXT = 0x37
2290 WIN_SLEEPNOW1 = 0xe6
2291 WIN_SLEEPNOW2 = 0x99
2292 WIN_SMART = 0xb0
2293 WIN_SPECIFY = 0x91
2294 WIN_SRST = 0x8
2295 WIN_STANDBY = 0xe2
2296 WIN_STANDBY2 = 0x96
2297 WIN_STANDBYNOW1 = 0xe0
2298 WIN_STANDBYNOW2 = 0x94
2299 WIN_VERIFY = 0x40
2300 WIN_VERIFY_EXT = 0x42
2301 WIN_VERIFY_ONCE = 0x41
2302 WIN_WRITE = 0x30
2303 WIN_WRITEDMA = 0xca
2304 WIN_WRITEDMA_EXT = 0x35
2305 WIN_WRITEDMA_ONCE = 0xcb
2306 WIN_WRITEDMA_QUEUED = 0xcc
2307 WIN_WRITEDMA_QUEUED_EXT = 0x36
2308 WIN_WRITE_BUFFER = 0xe8
2309 WIN_WRITE_EXT = 0x34
2310 WIN_WRITE_LONG = 0x32
2311 WIN_WRITE_LONG_ONCE = 0x33
2312 WIN_WRITE_ONCE = 0x31
2313 WIN_WRITE_SAME = 0xe9
2314 WIN_WRITE_VERIFY = 0x3c
1915 WNOHANG = 0x1 2315 WNOHANG = 0x1
1916 WNOTHREAD = 0x20000000 2316 WNOTHREAD = 0x20000000
1917 WNOWAIT = 0x1000000 2317 WNOWAIT = 0x1000000
@@ -1921,7 +2321,29 @@ const (
1921 XATTR_CREATE = 0x1 2321 XATTR_CREATE = 0x1
1922 XATTR_REPLACE = 0x2 2322 XATTR_REPLACE = 0x2
1923 XCASE = 0x4 2323 XCASE = 0x4
2324 XDP_COPY = 0x2
2325 XDP_FLAGS_DRV_MODE = 0x4
2326 XDP_FLAGS_HW_MODE = 0x8
2327 XDP_FLAGS_MASK = 0xf
2328 XDP_FLAGS_MODES = 0xe
2329 XDP_FLAGS_SKB_MODE = 0x2
2330 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2331 XDP_MMAP_OFFSETS = 0x1
2332 XDP_PGOFF_RX_RING = 0x0
2333 XDP_PGOFF_TX_RING = 0x80000000
2334 XDP_RX_RING = 0x2
2335 XDP_SHARED_UMEM = 0x1
2336 XDP_STATISTICS = 0x7
2337 XDP_TX_RING = 0x3
2338 XDP_UMEM_COMPLETION_RING = 0x6
2339 XDP_UMEM_FILL_RING = 0x5
2340 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2341 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2342 XDP_UMEM_REG = 0x4
2343 XDP_ZEROCOPY = 0x4
2344 XENFS_SUPER_MAGIC = 0xabba1974
1924 XTABS = 0x1800 2345 XTABS = 0x1800
2346 ZSMALLOC_MAGIC = 0x58295829
1925) 2347)
1926 2348
1927// Errors 2349// Errors
@@ -2101,171 +2523,179 @@ const (
2101) 2523)
2102 2524
2103// Error table 2525// Error table
2104var errors = [...]string{ 2526var errorList = [...]struct {
2105 1: "operation not permitted", 2527 num syscall.Errno
2106 2: "no such file or directory", 2528 name string
2107 3: "no such process", 2529 desc string
2108 4: "interrupted system call", 2530}{
2109 5: "input/output error", 2531 {1, "EPERM", "operation not permitted"},
2110 6: "no such device or address", 2532 {2, "ENOENT", "no such file or directory"},
2111 7: "argument list too long", 2533 {3, "ESRCH", "no such process"},
2112 8: "exec format error", 2534 {4, "EINTR", "interrupted system call"},
2113 9: "bad file descriptor", 2535 {5, "EIO", "input/output error"},
2114 10: "no child processes", 2536 {6, "ENXIO", "no such device or address"},
2115 11: "resource temporarily unavailable", 2537 {7, "E2BIG", "argument list too long"},
2116 12: "cannot allocate memory", 2538 {8, "ENOEXEC", "exec format error"},
2117 13: "permission denied", 2539 {9, "EBADF", "bad file descriptor"},
2118 14: "bad address", 2540 {10, "ECHILD", "no child processes"},
2119 15: "block device required", 2541 {11, "EAGAIN", "resource temporarily unavailable"},
2120 16: "device or resource busy", 2542 {12, "ENOMEM", "cannot allocate memory"},
2121 17: "file exists", 2543 {13, "EACCES", "permission denied"},
2122 18: "invalid cross-device link", 2544 {14, "EFAULT", "bad address"},
2123 19: "no such device", 2545 {15, "ENOTBLK", "block device required"},
2124 20: "not a directory", 2546 {16, "EBUSY", "device or resource busy"},
2125 21: "is a directory", 2547 {17, "EEXIST", "file exists"},
2126 22: "invalid argument", 2548 {18, "EXDEV", "invalid cross-device link"},
2127 23: "too many open files in system", 2549 {19, "ENODEV", "no such device"},
2128 24: "too many open files", 2550 {20, "ENOTDIR", "not a directory"},
2129 25: "inappropriate ioctl for device", 2551 {21, "EISDIR", "is a directory"},
2130 26: "text file busy", 2552 {22, "EINVAL", "invalid argument"},
2131 27: "file too large", 2553 {23, "ENFILE", "too many open files in system"},
2132 28: "no space left on device", 2554 {24, "EMFILE", "too many open files"},
2133 29: "illegal seek", 2555 {25, "ENOTTY", "inappropriate ioctl for device"},
2134 30: "read-only file system", 2556 {26, "ETXTBSY", "text file busy"},
2135 31: "too many links", 2557 {27, "EFBIG", "file too large"},
2136 32: "broken pipe", 2558 {28, "ENOSPC", "no space left on device"},
2137 33: "numerical argument out of domain", 2559 {29, "ESPIPE", "illegal seek"},
2138 34: "numerical result out of range", 2560 {30, "EROFS", "read-only file system"},
2139 35: "resource deadlock avoided", 2561 {31, "EMLINK", "too many links"},
2140 36: "file name too long", 2562 {32, "EPIPE", "broken pipe"},
2141 37: "no locks available", 2563 {33, "EDOM", "numerical argument out of domain"},
2142 38: "function not implemented", 2564 {34, "ERANGE", "numerical result out of range"},
2143 39: "directory not empty", 2565 {35, "EDEADLK", "resource deadlock avoided"},
2144 40: "too many levels of symbolic links", 2566 {36, "ENAMETOOLONG", "file name too long"},
2145 42: "no message of desired type", 2567 {37, "ENOLCK", "no locks available"},
2146 43: "identifier removed", 2568 {38, "ENOSYS", "function not implemented"},
2147 44: "channel number out of range", 2569 {39, "ENOTEMPTY", "directory not empty"},
2148 45: "level 2 not synchronized", 2570 {40, "ELOOP", "too many levels of symbolic links"},
2149 46: "level 3 halted", 2571 {42, "ENOMSG", "no message of desired type"},
2150 47: "level 3 reset", 2572 {43, "EIDRM", "identifier removed"},
2151 48: "link number out of range", 2573 {44, "ECHRNG", "channel number out of range"},
2152 49: "protocol driver not attached", 2574 {45, "EL2NSYNC", "level 2 not synchronized"},
2153 50: "no CSI structure available", 2575 {46, "EL3HLT", "level 3 halted"},
2154 51: "level 2 halted", 2576 {47, "EL3RST", "level 3 reset"},
2155 52: "invalid exchange", 2577 {48, "ELNRNG", "link number out of range"},
2156 53: "invalid request descriptor", 2578 {49, "EUNATCH", "protocol driver not attached"},
2157 54: "exchange full", 2579 {50, "ENOCSI", "no CSI structure available"},
2158 55: "no anode", 2580 {51, "EL2HLT", "level 2 halted"},
2159 56: "invalid request code", 2581 {52, "EBADE", "invalid exchange"},
2160 57: "invalid slot", 2582 {53, "EBADR", "invalid request descriptor"},
2161 59: "bad font file format", 2583 {54, "EXFULL", "exchange full"},
2162 60: "device not a stream", 2584 {55, "ENOANO", "no anode"},
2163 61: "no data available", 2585 {56, "EBADRQC", "invalid request code"},
2164 62: "timer expired", 2586 {57, "EBADSLT", "invalid slot"},
2165 63: "out of streams resources", 2587 {59, "EBFONT", "bad font file format"},
2166 64: "machine is not on the network", 2588 {60, "ENOSTR", "device not a stream"},
2167 65: "package not installed", 2589 {61, "ENODATA", "no data available"},
2168 66: "object is remote", 2590 {62, "ETIME", "timer expired"},
2169 67: "link has been severed", 2591 {63, "ENOSR", "out of streams resources"},
2170 68: "advertise error", 2592 {64, "ENONET", "machine is not on the network"},
2171 69: "srmount error", 2593 {65, "ENOPKG", "package not installed"},
2172 70: "communication error on send", 2594 {66, "EREMOTE", "object is remote"},
2173 71: "protocol error", 2595 {67, "ENOLINK", "link has been severed"},
2174 72: "multihop attempted", 2596 {68, "EADV", "advertise error"},
2175 73: "RFS specific error", 2597 {69, "ESRMNT", "srmount error"},
2176 74: "bad message", 2598 {70, "ECOMM", "communication error on send"},
2177 75: "value too large for defined data type", 2599 {71, "EPROTO", "protocol error"},
2178 76: "name not unique on network", 2600 {72, "EMULTIHOP", "multihop attempted"},
2179 77: "file descriptor in bad state", 2601 {73, "EDOTDOT", "RFS specific error"},
2180 78: "remote address changed", 2602 {74, "EBADMSG", "bad message"},
2181 79: "can not access a needed shared library", 2603 {75, "EOVERFLOW", "value too large for defined data type"},
2182 80: "accessing a corrupted shared library", 2604 {76, "ENOTUNIQ", "name not unique on network"},
2183 81: ".lib section in a.out corrupted", 2605 {77, "EBADFD", "file descriptor in bad state"},
2184 82: "attempting to link in too many shared libraries", 2606 {78, "EREMCHG", "remote address changed"},
2185 83: "cannot exec a shared library directly", 2607 {79, "ELIBACC", "can not access a needed shared library"},
2186 84: "invalid or incomplete multibyte or wide character", 2608 {80, "ELIBBAD", "accessing a corrupted shared library"},
2187 85: "interrupted system call should be restarted", 2609 {81, "ELIBSCN", ".lib section in a.out corrupted"},
2188 86: "streams pipe error", 2610 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
2189 87: "too many users", 2611 {83, "ELIBEXEC", "cannot exec a shared library directly"},
2190 88: "socket operation on non-socket", 2612 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2191 89: "destination address required", 2613 {85, "ERESTART", "interrupted system call should be restarted"},
2192 90: "message too long", 2614 {86, "ESTRPIPE", "streams pipe error"},
2193 91: "protocol wrong type for socket", 2615 {87, "EUSERS", "too many users"},
2194 92: "protocol not available", 2616 {88, "ENOTSOCK", "socket operation on non-socket"},
2195 93: "protocol not supported", 2617 {89, "EDESTADDRREQ", "destination address required"},
2196 94: "socket type not supported", 2618 {90, "EMSGSIZE", "message too long"},
2197 95: "operation not supported", 2619 {91, "EPROTOTYPE", "protocol wrong type for socket"},
2198 96: "protocol family not supported", 2620 {92, "ENOPROTOOPT", "protocol not available"},
2199 97: "address family not supported by protocol", 2621 {93, "EPROTONOSUPPORT", "protocol not supported"},
2200 98: "address already in use", 2622 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
2201 99: "cannot assign requested address", 2623 {95, "ENOTSUP", "operation not supported"},
2202 100: "network is down", 2624 {96, "EPFNOSUPPORT", "protocol family not supported"},
2203 101: "network is unreachable", 2625 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
2204 102: "network dropped connection on reset", 2626 {98, "EADDRINUSE", "address already in use"},
2205 103: "software caused connection abort", 2627 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
2206 104: "connection reset by peer", 2628 {100, "ENETDOWN", "network is down"},
2207 105: "no buffer space available", 2629 {101, "ENETUNREACH", "network is unreachable"},
2208 106: "transport endpoint is already connected", 2630 {102, "ENETRESET", "network dropped connection on reset"},
2209 107: "transport endpoint is not connected", 2631 {103, "ECONNABORTED", "software caused connection abort"},
2210 108: "cannot send after transport endpoint shutdown", 2632 {104, "ECONNRESET", "connection reset by peer"},
2211 109: "too many references: cannot splice", 2633 {105, "ENOBUFS", "no buffer space available"},
2212 110: "connection timed out", 2634 {106, "EISCONN", "transport endpoint is already connected"},
2213 111: "connection refused", 2635 {107, "ENOTCONN", "transport endpoint is not connected"},
2214 112: "host is down", 2636 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2215 113: "no route to host", 2637 {109, "ETOOMANYREFS", "too many references: cannot splice"},
2216 114: "operation already in progress", 2638 {110, "ETIMEDOUT", "connection timed out"},
2217 115: "operation now in progress", 2639 {111, "ECONNREFUSED", "connection refused"},
2218 116: "stale file handle", 2640 {112, "EHOSTDOWN", "host is down"},
2219 117: "structure needs cleaning", 2641 {113, "EHOSTUNREACH", "no route to host"},
2220 118: "not a XENIX named type file", 2642 {114, "EALREADY", "operation already in progress"},
2221 119: "no XENIX semaphores available", 2643 {115, "EINPROGRESS", "operation now in progress"},
2222 120: "is a named type file", 2644 {116, "ESTALE", "stale file handle"},
2223 121: "remote I/O error", 2645 {117, "EUCLEAN", "structure needs cleaning"},
2224 122: "disk quota exceeded", 2646 {118, "ENOTNAM", "not a XENIX named type file"},
2225 123: "no medium found", 2647 {119, "ENAVAIL", "no XENIX semaphores available"},
2226 124: "wrong medium type", 2648 {120, "EISNAM", "is a named type file"},
2227 125: "operation canceled", 2649 {121, "EREMOTEIO", "remote I/O error"},
2228 126: "required key not available", 2650 {122, "EDQUOT", "disk quota exceeded"},
2229 127: "key has expired", 2651 {123, "ENOMEDIUM", "no medium found"},
2230 128: "key has been revoked", 2652 {124, "EMEDIUMTYPE", "wrong medium type"},
2231 129: "key was rejected by service", 2653 {125, "ECANCELED", "operation canceled"},
2232 130: "owner died", 2654 {126, "ENOKEY", "required key not available"},
2233 131: "state not recoverable", 2655 {127, "EKEYEXPIRED", "key has expired"},
2234 132: "operation not possible due to RF-kill", 2656 {128, "EKEYREVOKED", "key has been revoked"},
2235 133: "memory page has hardware error", 2657 {129, "EKEYREJECTED", "key was rejected by service"},
2658 {130, "EOWNERDEAD", "owner died"},
2659 {131, "ENOTRECOVERABLE", "state not recoverable"},
2660 {132, "ERFKILL", "operation not possible due to RF-kill"},
2661 {133, "EHWPOISON", "memory page has hardware error"},
2236} 2662}
2237 2663
2238// Signal table 2664// Signal table
2239var signals = [...]string{ 2665var signalList = [...]struct {
2240 1: "hangup", 2666 num syscall.Signal
2241 2: "interrupt", 2667 name string
2242 3: "quit", 2668 desc string
2243 4: "illegal instruction", 2669}{
2244 5: "trace/breakpoint trap", 2670 {1, "SIGHUP", "hangup"},
2245 6: "aborted", 2671 {2, "SIGINT", "interrupt"},
2246 7: "bus error", 2672 {3, "SIGQUIT", "quit"},
2247 8: "floating point exception", 2673 {4, "SIGILL", "illegal instruction"},
2248 9: "killed", 2674 {5, "SIGTRAP", "trace/breakpoint trap"},
2249 10: "user defined signal 1", 2675 {6, "SIGABRT", "aborted"},
2250 11: "segmentation fault", 2676 {7, "SIGBUS", "bus error"},
2251 12: "user defined signal 2", 2677 {8, "SIGFPE", "floating point exception"},
2252 13: "broken pipe", 2678 {9, "SIGKILL", "killed"},
2253 14: "alarm clock", 2679 {10, "SIGUSR1", "user defined signal 1"},
2254 15: "terminated", 2680 {11, "SIGSEGV", "segmentation fault"},
2255 16: "stack fault", 2681 {12, "SIGUSR2", "user defined signal 2"},
2256 17: "child exited", 2682 {13, "SIGPIPE", "broken pipe"},
2257 18: "continued", 2683 {14, "SIGALRM", "alarm clock"},
2258 19: "stopped (signal)", 2684 {15, "SIGTERM", "terminated"},
2259 20: "stopped", 2685 {16, "SIGSTKFLT", "stack fault"},
2260 21: "stopped (tty input)", 2686 {17, "SIGCHLD", "child exited"},
2261 22: "stopped (tty output)", 2687 {18, "SIGCONT", "continued"},
2262 23: "urgent I/O condition", 2688 {19, "SIGSTOP", "stopped (signal)"},
2263 24: "CPU time limit exceeded", 2689 {20, "SIGTSTP", "stopped"},
2264 25: "file size limit exceeded", 2690 {21, "SIGTTIN", "stopped (tty input)"},
2265 26: "virtual timer expired", 2691 {22, "SIGTTOU", "stopped (tty output)"},
2266 27: "profiling timer expired", 2692 {23, "SIGURG", "urgent I/O condition"},
2267 28: "window changed", 2693 {24, "SIGXCPU", "CPU time limit exceeded"},
2268 29: "I/O possible", 2694 {25, "SIGXFSZ", "file size limit exceeded"},
2269 30: "power failure", 2695 {26, "SIGVTALRM", "virtual timer expired"},
2270 31: "bad system call", 2696 {27, "SIGPROF", "profiling timer expired"},
2697 {28, "SIGWINCH", "window changed"},
2698 {29, "SIGIO", "I/O possible"},
2699 {30, "SIGPWR", "power failure"},
2700 {31, "SIGSYS", "bad system call"},
2271} 2701}
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 f5d7856..08377eb 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
@@ -3,7 +3,7 @@
3 3
4// +build arm64,linux 4// +build arm64,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x80081270 178 BLKBSZGET = 0x80081270
167 BLKBSZSET = 0x40081271 179 BLKBSZSET = 0x40081271
168 BLKFLSBUF = 0x1261 180 BLKFLSBUF = 0x1261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x800 354 EFD_NONBLOCK = 0x800
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -391,6 +416,8 @@ const (
391 ETH_P_DSA = 0x1b 416 ETH_P_DSA = 0x1b
392 ETH_P_ECONET = 0x18 417 ETH_P_ECONET = 0x18
393 ETH_P_EDSA = 0xdada 418 ETH_P_EDSA = 0xdada
419 ETH_P_ERSPAN = 0x88be
420 ETH_P_ERSPAN2 = 0x22eb
394 ETH_P_FCOE = 0x8906 421 ETH_P_FCOE = 0x8906
395 ETH_P_FIP = 0x8914 422 ETH_P_FIP = 0x8914
396 ETH_P_HDLC = 0x19 423 ETH_P_HDLC = 0x19
@@ -399,6 +426,7 @@ const (
399 ETH_P_IEEE802154 = 0xf6 426 ETH_P_IEEE802154 = 0xf6
400 ETH_P_IEEEPUP = 0xa00 427 ETH_P_IEEEPUP = 0xa00
401 ETH_P_IEEEPUPAT = 0xa01 428 ETH_P_IEEEPUPAT = 0xa01
429 ETH_P_IFE = 0xed3e
402 ETH_P_IP = 0x800 430 ETH_P_IP = 0x800
403 ETH_P_IPV6 = 0x86dd 431 ETH_P_IPV6 = 0x86dd
404 ETH_P_IPX = 0x8137 432 ETH_P_IPX = 0x8137
@@ -409,11 +437,13 @@ const (
409 ETH_P_LOOP = 0x60 437 ETH_P_LOOP = 0x60
410 ETH_P_LOOPBACK = 0x9000 438 ETH_P_LOOPBACK = 0x9000
411 ETH_P_MACSEC = 0x88e5 439 ETH_P_MACSEC = 0x88e5
440 ETH_P_MAP = 0xf9
412 ETH_P_MOBITEX = 0x15 441 ETH_P_MOBITEX = 0x15
413 ETH_P_MPLS_MC = 0x8848 442 ETH_P_MPLS_MC = 0x8848
414 ETH_P_MPLS_UC = 0x8847 443 ETH_P_MPLS_UC = 0x8847
415 ETH_P_MVRP = 0x88f5 444 ETH_P_MVRP = 0x88f5
416 ETH_P_NCSI = 0x88f8 445 ETH_P_NCSI = 0x88f8
446 ETH_P_NSH = 0x894f
417 ETH_P_PAE = 0x888e 447 ETH_P_PAE = 0x888e
418 ETH_P_PAUSE = 0x8808 448 ETH_P_PAUSE = 0x8808
419 ETH_P_PHONET = 0xf5 449 ETH_P_PHONET = 0xf5
@@ -421,6 +451,7 @@ const (
421 ETH_P_PPP_DISC = 0x8863 451 ETH_P_PPP_DISC = 0x8863
422 ETH_P_PPP_MP = 0x8 452 ETH_P_PPP_MP = 0x8
423 ETH_P_PPP_SES = 0x8864 453 ETH_P_PPP_SES = 0x8864
454 ETH_P_PREAUTH = 0x88c7
424 ETH_P_PRP = 0x88fb 455 ETH_P_PRP = 0x88fb
425 ETH_P_PUP = 0x200 456 ETH_P_PUP = 0x200
426 ETH_P_PUPAT = 0x201 457 ETH_P_PUPAT = 0x201
@@ -441,10 +472,15 @@ const (
441 ETH_P_WCCP = 0x883e 472 ETH_P_WCCP = 0x883e
442 ETH_P_X25 = 0x805 473 ETH_P_X25 = 0x805
443 ETH_P_XDSA = 0xf8 474 ETH_P_XDSA = 0xf8
475 EXABYTE_ENABLE_NEST = 0xf0
476 EXT2_SUPER_MAGIC = 0xef53
477 EXT3_SUPER_MAGIC = 0xef53
478 EXT4_SUPER_MAGIC = 0xef53
444 EXTA = 0xe 479 EXTA = 0xe
445 EXTB = 0xf 480 EXTB = 0xf
446 EXTPROC = 0x10000 481 EXTPROC = 0x10000
447 EXTRA_MAGIC = 0x45585401 482 EXTRA_MAGIC = 0x45585401
483 F2FS_SUPER_MAGIC = 0xf2f52010
448 FALLOC_FL_COLLAPSE_RANGE = 0x8 484 FALLOC_FL_COLLAPSE_RANGE = 0x8
449 FALLOC_FL_INSERT_RANGE = 0x20 485 FALLOC_FL_INSERT_RANGE = 0x20
450 FALLOC_FL_KEEP_SIZE = 0x1 486 FALLOC_FL_KEEP_SIZE = 0x1
@@ -458,6 +494,7 @@ const (
458 FF1 = 0x8000 494 FF1 = 0x8000
459 FFDLY = 0x8000 495 FFDLY = 0x8000
460 FLUSHO = 0x1000 496 FLUSHO = 0x1000
497 FPSIMD_MAGIC = 0x46508001
461 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 498 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
462 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 499 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
463 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 500 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
@@ -465,6 +502,8 @@ const (
465 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 502 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
466 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 503 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
467 FS_ENCRYPTION_MODE_INVALID = 0x0 504 FS_ENCRYPTION_MODE_INVALID = 0x0
505 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
506 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
468 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 507 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
469 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 508 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
470 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 509 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
@@ -478,6 +517,8 @@ const (
478 FS_POLICY_FLAGS_PAD_8 = 0x1 517 FS_POLICY_FLAGS_PAD_8 = 0x1
479 FS_POLICY_FLAGS_PAD_MASK = 0x3 518 FS_POLICY_FLAGS_PAD_MASK = 0x3
480 FS_POLICY_FLAGS_VALID = 0x3 519 FS_POLICY_FLAGS_VALID = 0x3
520 FUTEXFS_SUPER_MAGIC = 0xbad1dea
521 F_ADD_SEALS = 0x409
481 F_DUPFD = 0x0 522 F_DUPFD = 0x0
482 F_DUPFD_CLOEXEC = 0x406 523 F_DUPFD_CLOEXEC = 0x406
483 F_EXLCK = 0x4 524 F_EXLCK = 0x4
@@ -490,6 +531,9 @@ const (
490 F_GETOWN_EX = 0x10 531 F_GETOWN_EX = 0x10
491 F_GETPIPE_SZ = 0x408 532 F_GETPIPE_SZ = 0x408
492 F_GETSIG = 0xb 533 F_GETSIG = 0xb
534 F_GET_FILE_RW_HINT = 0x40d
535 F_GET_RW_HINT = 0x40b
536 F_GET_SEALS = 0x40a
493 F_LOCK = 0x1 537 F_LOCK = 0x1
494 F_NOTIFY = 0x402 538 F_NOTIFY = 0x402
495 F_OFD_GETLK = 0x24 539 F_OFD_GETLK = 0x24
@@ -497,6 +541,10 @@ const (
497 F_OFD_SETLKW = 0x26 541 F_OFD_SETLKW = 0x26
498 F_OK = 0x0 542 F_OK = 0x0
499 F_RDLCK = 0x0 543 F_RDLCK = 0x0
544 F_SEAL_GROW = 0x4
545 F_SEAL_SEAL = 0x1
546 F_SEAL_SHRINK = 0x2
547 F_SEAL_WRITE = 0x8
500 F_SETFD = 0x2 548 F_SETFD = 0x2
501 F_SETFL = 0x4 549 F_SETFL = 0x4
502 F_SETLEASE = 0x400 550 F_SETLEASE = 0x400
@@ -508,6 +556,8 @@ const (
508 F_SETOWN_EX = 0xf 556 F_SETOWN_EX = 0xf
509 F_SETPIPE_SZ = 0x407 557 F_SETPIPE_SZ = 0x407
510 F_SETSIG = 0xa 558 F_SETSIG = 0xa
559 F_SET_FILE_RW_HINT = 0x40e
560 F_SET_RW_HINT = 0x40c
511 F_SHLCK = 0x8 561 F_SHLCK = 0x8
512 F_TEST = 0x3 562 F_TEST = 0x3
513 F_TLOCK = 0x2 563 F_TLOCK = 0x2
@@ -529,6 +579,49 @@ const (
529 GENL_UNS_ADMIN_PERM = 0x10 579 GENL_UNS_ADMIN_PERM = 0x10
530 GRND_NONBLOCK = 0x1 580 GRND_NONBLOCK = 0x1
531 GRND_RANDOM = 0x2 581 GRND_RANDOM = 0x2
582 HDIO_DRIVE_CMD = 0x31f
583 HDIO_DRIVE_CMD_AEB = 0x31e
584 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
585 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
586 HDIO_DRIVE_RESET = 0x31c
587 HDIO_DRIVE_TASK = 0x31e
588 HDIO_DRIVE_TASKFILE = 0x31d
589 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
590 HDIO_GETGEO = 0x301
591 HDIO_GET_32BIT = 0x309
592 HDIO_GET_ACOUSTIC = 0x30f
593 HDIO_GET_ADDRESS = 0x310
594 HDIO_GET_BUSSTATE = 0x31a
595 HDIO_GET_DMA = 0x30b
596 HDIO_GET_IDENTITY = 0x30d
597 HDIO_GET_KEEPSETTINGS = 0x308
598 HDIO_GET_MULTCOUNT = 0x304
599 HDIO_GET_NICE = 0x30c
600 HDIO_GET_NOWERR = 0x30a
601 HDIO_GET_QDMA = 0x305
602 HDIO_GET_UNMASKINTR = 0x302
603 HDIO_GET_WCACHE = 0x30e
604 HDIO_OBSOLETE_IDENTITY = 0x307
605 HDIO_SCAN_HWIF = 0x328
606 HDIO_SET_32BIT = 0x324
607 HDIO_SET_ACOUSTIC = 0x32c
608 HDIO_SET_ADDRESS = 0x32f
609 HDIO_SET_BUSSTATE = 0x32d
610 HDIO_SET_DMA = 0x326
611 HDIO_SET_KEEPSETTINGS = 0x323
612 HDIO_SET_MULTCOUNT = 0x321
613 HDIO_SET_NICE = 0x329
614 HDIO_SET_NOWERR = 0x325
615 HDIO_SET_PIO_MODE = 0x327
616 HDIO_SET_QDMA = 0x32e
617 HDIO_SET_UNMASKINTR = 0x322
618 HDIO_SET_WCACHE = 0x32b
619 HDIO_SET_XFER = 0x306
620 HDIO_TRISTATE_HWIF = 0x31b
621 HDIO_UNREGISTER_HWIF = 0x32a
622 HOSTFS_SUPER_MAGIC = 0xc0ffee
623 HPFS_SUPER_MAGIC = 0xf995e849
624 HUGETLBFS_MAGIC = 0x958458f6
532 HUPCL = 0x400 625 HUPCL = 0x400
533 IBSHIFT = 0x10 626 IBSHIFT = 0x10
534 ICANON = 0x2 627 ICANON = 0x2
@@ -548,7 +641,7 @@ const (
548 IFA_F_STABLE_PRIVACY = 0x800 641 IFA_F_STABLE_PRIVACY = 0x800
549 IFA_F_TEMPORARY = 0x1 642 IFA_F_TEMPORARY = 0x1
550 IFA_F_TENTATIVE = 0x40 643 IFA_F_TENTATIVE = 0x40
551 IFA_MAX = 0x8 644 IFA_MAX = 0x9
552 IFF_ALLMULTI = 0x200 645 IFF_ALLMULTI = 0x200
553 IFF_ATTACH_QUEUE = 0x200 646 IFF_ATTACH_QUEUE = 0x200
554 IFF_AUTOMEDIA = 0x4000 647 IFF_AUTOMEDIA = 0x4000
@@ -563,6 +656,8 @@ const (
563 IFF_MASTER = 0x400 656 IFF_MASTER = 0x400
564 IFF_MULTICAST = 0x1000 657 IFF_MULTICAST = 0x1000
565 IFF_MULTI_QUEUE = 0x100 658 IFF_MULTI_QUEUE = 0x100
659 IFF_NAPI = 0x10
660 IFF_NAPI_FRAGS = 0x20
566 IFF_NOARP = 0x80 661 IFF_NOARP = 0x80
567 IFF_NOFILTER = 0x1000 662 IFF_NOFILTER = 0x1000
568 IFF_NOTRAILERS = 0x20 663 IFF_NOTRAILERS = 0x20
@@ -673,6 +768,7 @@ const (
673 IPV6_DONTFRAG = 0x3e 768 IPV6_DONTFRAG = 0x3e
674 IPV6_DROP_MEMBERSHIP = 0x15 769 IPV6_DROP_MEMBERSHIP = 0x15
675 IPV6_DSTOPTS = 0x3b 770 IPV6_DSTOPTS = 0x3b
771 IPV6_FREEBIND = 0x4e
676 IPV6_HDRINCL = 0x24 772 IPV6_HDRINCL = 0x24
677 IPV6_HOPLIMIT = 0x34 773 IPV6_HOPLIMIT = 0x34
678 IPV6_HOPOPTS = 0x36 774 IPV6_HOPOPTS = 0x36
@@ -777,12 +873,34 @@ const (
777 IP_UNICAST_IF = 0x32 873 IP_UNICAST_IF = 0x32
778 IP_XFRM_POLICY = 0x11 874 IP_XFRM_POLICY = 0x11
779 ISIG = 0x1 875 ISIG = 0x1
876 ISOFS_SUPER_MAGIC = 0x9660
780 ISTRIP = 0x20 877 ISTRIP = 0x20
781 IUCLC = 0x200 878 IUCLC = 0x200
782 IUTF8 = 0x4000 879 IUTF8 = 0x4000
783 IXANY = 0x800 880 IXANY = 0x800
784 IXOFF = 0x1000 881 IXOFF = 0x1000
785 IXON = 0x400 882 IXON = 0x400
883 JFFS2_SUPER_MAGIC = 0x72b6
884 KEXEC_ARCH_386 = 0x30000
885 KEXEC_ARCH_68K = 0x40000
886 KEXEC_ARCH_AARCH64 = 0xb70000
887 KEXEC_ARCH_ARM = 0x280000
888 KEXEC_ARCH_DEFAULT = 0x0
889 KEXEC_ARCH_IA_64 = 0x320000
890 KEXEC_ARCH_MASK = 0xffff0000
891 KEXEC_ARCH_MIPS = 0x80000
892 KEXEC_ARCH_MIPS_LE = 0xa0000
893 KEXEC_ARCH_PPC = 0x140000
894 KEXEC_ARCH_PPC64 = 0x150000
895 KEXEC_ARCH_S390 = 0x160000
896 KEXEC_ARCH_SH = 0x2a0000
897 KEXEC_ARCH_X86_64 = 0x3e0000
898 KEXEC_FILE_NO_INITRAMFS = 0x4
899 KEXEC_FILE_ON_CRASH = 0x2
900 KEXEC_FILE_UNLOAD = 0x1
901 KEXEC_ON_CRASH = 0x1
902 KEXEC_PRESERVE_CONTEXT = 0x2
903 KEXEC_SEGMENT_MAX = 0x10
786 KEYCTL_ASSUME_AUTHORITY = 0x10 904 KEYCTL_ASSUME_AUTHORITY = 0x10
787 KEYCTL_CHOWN = 0x4 905 KEYCTL_CHOWN = 0x4
788 KEYCTL_CLEAR = 0x7 906 KEYCTL_CLEAR = 0x7
@@ -847,6 +965,7 @@ const (
847 MADV_FREE = 0x8 965 MADV_FREE = 0x8
848 MADV_HUGEPAGE = 0xe 966 MADV_HUGEPAGE = 0xe
849 MADV_HWPOISON = 0x64 967 MADV_HWPOISON = 0x64
968 MADV_KEEPONFORK = 0x13
850 MADV_MERGEABLE = 0xc 969 MADV_MERGEABLE = 0xc
851 MADV_NOHUGEPAGE = 0xf 970 MADV_NOHUGEPAGE = 0xf
852 MADV_NORMAL = 0x0 971 MADV_NORMAL = 0x0
@@ -855,12 +974,14 @@ const (
855 MADV_SEQUENTIAL = 0x2 974 MADV_SEQUENTIAL = 0x2
856 MADV_UNMERGEABLE = 0xd 975 MADV_UNMERGEABLE = 0xd
857 MADV_WILLNEED = 0x3 976 MADV_WILLNEED = 0x3
977 MADV_WIPEONFORK = 0x12
858 MAP_ANON = 0x20 978 MAP_ANON = 0x20
859 MAP_ANONYMOUS = 0x20 979 MAP_ANONYMOUS = 0x20
860 MAP_DENYWRITE = 0x800 980 MAP_DENYWRITE = 0x800
861 MAP_EXECUTABLE = 0x1000 981 MAP_EXECUTABLE = 0x1000
862 MAP_FILE = 0x0 982 MAP_FILE = 0x0
863 MAP_FIXED = 0x10 983 MAP_FIXED = 0x10
984 MAP_FIXED_NOREPLACE = 0x100000
864 MAP_GROWSDOWN = 0x100 985 MAP_GROWSDOWN = 0x100
865 MAP_HUGETLB = 0x40000 986 MAP_HUGETLB = 0x40000
866 MAP_HUGE_MASK = 0x3f 987 MAP_HUGE_MASK = 0x3f
@@ -871,14 +992,37 @@ const (
871 MAP_POPULATE = 0x8000 992 MAP_POPULATE = 0x8000
872 MAP_PRIVATE = 0x2 993 MAP_PRIVATE = 0x2
873 MAP_SHARED = 0x1 994 MAP_SHARED = 0x1
995 MAP_SHARED_VALIDATE = 0x3
874 MAP_STACK = 0x20000 996 MAP_STACK = 0x20000
997 MAP_SYNC = 0x80000
875 MAP_TYPE = 0xf 998 MAP_TYPE = 0xf
876 MCL_CURRENT = 0x1 999 MCL_CURRENT = 0x1
877 MCL_FUTURE = 0x2 1000 MCL_FUTURE = 0x2
878 MCL_ONFAULT = 0x4 1001 MCL_ONFAULT = 0x4
1002 MFD_ALLOW_SEALING = 0x2
1003 MFD_CLOEXEC = 0x1
1004 MFD_HUGETLB = 0x4
1005 MFD_HUGE_16GB = -0x78000000
1006 MFD_HUGE_16MB = 0x60000000
1007 MFD_HUGE_1GB = 0x78000000
1008 MFD_HUGE_1MB = 0x50000000
1009 MFD_HUGE_256MB = 0x70000000
1010 MFD_HUGE_2GB = 0x7c000000
1011 MFD_HUGE_2MB = 0x54000000
1012 MFD_HUGE_512KB = 0x4c000000
1013 MFD_HUGE_64KB = 0x40000000
1014 MFD_HUGE_8MB = 0x5c000000
1015 MFD_HUGE_MASK = 0x3f
1016 MFD_HUGE_SHIFT = 0x1a
1017 MINIX2_SUPER_MAGIC = 0x2468
1018 MINIX2_SUPER_MAGIC2 = 0x2478
1019 MINIX3_SUPER_MAGIC = 0x4d5a
1020 MINIX_SUPER_MAGIC = 0x137f
1021 MINIX_SUPER_MAGIC2 = 0x138f
879 MNT_DETACH = 0x2 1022 MNT_DETACH = 0x2
880 MNT_EXPIRE = 0x4 1023 MNT_EXPIRE = 0x4
881 MNT_FORCE = 0x1 1024 MNT_FORCE = 0x1
1025 MSDOS_SUPER_MAGIC = 0x4d44
882 MSG_BATCH = 0x40000 1026 MSG_BATCH = 0x40000
883 MSG_CMSG_CLOEXEC = 0x40000000 1027 MSG_CMSG_CLOEXEC = 0x40000000
884 MSG_CONFIRM = 0x800 1028 MSG_CONFIRM = 0x800
@@ -900,6 +1044,7 @@ const (
900 MSG_TRYHARD = 0x4 1044 MSG_TRYHARD = 0x4
901 MSG_WAITALL = 0x100 1045 MSG_WAITALL = 0x100
902 MSG_WAITFORONE = 0x10000 1046 MSG_WAITFORONE = 0x10000
1047 MSG_ZEROCOPY = 0x4000000
903 MS_ACTIVE = 0x40000000 1048 MS_ACTIVE = 0x40000000
904 MS_ASYNC = 0x1 1049 MS_ASYNC = 0x1
905 MS_BIND = 0x1000 1050 MS_BIND = 0x1000
@@ -937,7 +1082,9 @@ const (
937 MS_SYNCHRONOUS = 0x10 1082 MS_SYNCHRONOUS = 0x10
938 MS_UNBINDABLE = 0x20000 1083 MS_UNBINDABLE = 0x20000
939 MS_VERBOSE = 0x8000 1084 MS_VERBOSE = 0x8000
1085 MTD_INODE_FS_MAGIC = 0x11307854
940 NAME_MAX = 0xff 1086 NAME_MAX = 0xff
1087 NCP_SUPER_MAGIC = 0x564c
941 NETLINK_ADD_MEMBERSHIP = 0x1 1088 NETLINK_ADD_MEMBERSHIP = 0x1
942 NETLINK_AUDIT = 0x9 1089 NETLINK_AUDIT = 0x9
943 NETLINK_BROADCAST_ERROR = 0x4 1090 NETLINK_BROADCAST_ERROR = 0x4
@@ -972,6 +1119,39 @@ const (
972 NETLINK_UNUSED = 0x1 1119 NETLINK_UNUSED = 0x1
973 NETLINK_USERSOCK = 0x2 1120 NETLINK_USERSOCK = 0x2
974 NETLINK_XFRM = 0x6 1121 NETLINK_XFRM = 0x6
1122 NETNSA_MAX = 0x3
1123 NETNSA_NSID_NOT_ASSIGNED = -0x1
1124 NFNETLINK_V0 = 0x0
1125 NFNLGRP_ACCT_QUOTA = 0x8
1126 NFNLGRP_CONNTRACK_DESTROY = 0x3
1127 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1128 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1129 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1130 NFNLGRP_CONNTRACK_NEW = 0x1
1131 NFNLGRP_CONNTRACK_UPDATE = 0x2
1132 NFNLGRP_MAX = 0x9
1133 NFNLGRP_NFTABLES = 0x7
1134 NFNLGRP_NFTRACE = 0x9
1135 NFNLGRP_NONE = 0x0
1136 NFNL_BATCH_MAX = 0x1
1137 NFNL_MSG_BATCH_BEGIN = 0x10
1138 NFNL_MSG_BATCH_END = 0x11
1139 NFNL_NFA_NEST = 0x8000
1140 NFNL_SUBSYS_ACCT = 0x7
1141 NFNL_SUBSYS_COUNT = 0xc
1142 NFNL_SUBSYS_CTHELPER = 0x9
1143 NFNL_SUBSYS_CTNETLINK = 0x1
1144 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1145 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1146 NFNL_SUBSYS_IPSET = 0x6
1147 NFNL_SUBSYS_NFTABLES = 0xa
1148 NFNL_SUBSYS_NFT_COMPAT = 0xb
1149 NFNL_SUBSYS_NONE = 0x0
1150 NFNL_SUBSYS_OSF = 0x5
1151 NFNL_SUBSYS_QUEUE = 0x3
1152 NFNL_SUBSYS_ULOG = 0x4
1153 NFS_SUPER_MAGIC = 0x6969
1154 NILFS_SUPER_MAGIC = 0x3434
975 NL0 = 0x0 1155 NL0 = 0x0
976 NL1 = 0x100 1156 NL1 = 0x100
977 NLA_ALIGNTO = 0x4 1157 NLA_ALIGNTO = 0x4
@@ -999,10 +1179,13 @@ const (
999 NLM_F_EXCL = 0x200 1179 NLM_F_EXCL = 0x200
1000 NLM_F_MATCH = 0x200 1180 NLM_F_MATCH = 0x200
1001 NLM_F_MULTI = 0x2 1181 NLM_F_MULTI = 0x2
1182 NLM_F_NONREC = 0x100
1002 NLM_F_REPLACE = 0x100 1183 NLM_F_REPLACE = 0x100
1003 NLM_F_REQUEST = 0x1 1184 NLM_F_REQUEST = 0x1
1004 NLM_F_ROOT = 0x100 1185 NLM_F_ROOT = 0x100
1005 NOFLSH = 0x80 1186 NOFLSH = 0x80
1187 NSFS_MAGIC = 0x6e736673
1188 OCFS2_SUPER_MAGIC = 0x7461636f
1006 OCRNL = 0x8 1189 OCRNL = 0x8
1007 OFDEL = 0x80 1190 OFDEL = 0x80
1008 OFILL = 0x40 1191 OFILL = 0x40
@@ -1010,7 +1193,9 @@ const (
1010 ONLCR = 0x4 1193 ONLCR = 0x4
1011 ONLRET = 0x20 1194 ONLRET = 0x20
1012 ONOCR = 0x10 1195 ONOCR = 0x10
1196 OPENPROM_SUPER_MAGIC = 0x9fa1
1013 OPOST = 0x1 1197 OPOST = 0x1
1198 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1014 O_ACCMODE = 0x3 1199 O_ACCMODE = 0x3
1015 O_APPEND = 0x400 1200 O_APPEND = 0x400
1016 O_ASYNC = 0x2000 1201 O_ASYNC = 0x2000
@@ -1095,16 +1280,20 @@ const (
1095 PERF_EVENT_IOC_DISABLE = 0x2401 1280 PERF_EVENT_IOC_DISABLE = 0x2401
1096 PERF_EVENT_IOC_ENABLE = 0x2400 1281 PERF_EVENT_IOC_ENABLE = 0x2400
1097 PERF_EVENT_IOC_ID = 0x80082407 1282 PERF_EVENT_IOC_ID = 0x80082407
1283 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
1098 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 1284 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
1099 PERF_EVENT_IOC_PERIOD = 0x40082404 1285 PERF_EVENT_IOC_PERIOD = 0x40082404
1286 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
1100 PERF_EVENT_IOC_REFRESH = 0x2402 1287 PERF_EVENT_IOC_REFRESH = 0x2402
1101 PERF_EVENT_IOC_RESET = 0x2403 1288 PERF_EVENT_IOC_RESET = 0x2403
1102 PERF_EVENT_IOC_SET_BPF = 0x40042408 1289 PERF_EVENT_IOC_SET_BPF = 0x40042408
1103 PERF_EVENT_IOC_SET_FILTER = 0x40082406 1290 PERF_EVENT_IOC_SET_FILTER = 0x40082406
1104 PERF_EVENT_IOC_SET_OUTPUT = 0x2405 1291 PERF_EVENT_IOC_SET_OUTPUT = 0x2405
1292 PIPEFS_MAGIC = 0x50495045
1105 PRIO_PGRP = 0x1 1293 PRIO_PGRP = 0x1
1106 PRIO_PROCESS = 0x0 1294 PRIO_PROCESS = 0x0
1107 PRIO_USER = 0x2 1295 PRIO_USER = 0x2
1296 PROC_SUPER_MAGIC = 0x9fa0
1108 PROT_EXEC = 0x4 1297 PROT_EXEC = 0x4
1109 PROT_GROWSDOWN = 0x1000000 1298 PROT_GROWSDOWN = 0x1000000
1110 PROT_GROWSUP = 0x2000000 1299 PROT_GROWSUP = 0x2000000
@@ -1147,6 +1336,7 @@ const (
1147 PR_GET_PDEATHSIG = 0x2 1336 PR_GET_PDEATHSIG = 0x2
1148 PR_GET_SECCOMP = 0x15 1337 PR_GET_SECCOMP = 0x15
1149 PR_GET_SECUREBITS = 0x1b 1338 PR_GET_SECUREBITS = 0x1b
1339 PR_GET_SPECULATION_CTRL = 0x34
1150 PR_GET_THP_DISABLE = 0x2a 1340 PR_GET_THP_DISABLE = 0x2a
1151 PR_GET_TID_ADDRESS = 0x28 1341 PR_GET_TID_ADDRESS = 0x28
1152 PR_GET_TIMERSLACK = 0x1e 1342 PR_GET_TIMERSLACK = 0x1e
@@ -1192,11 +1382,23 @@ const (
1192 PR_SET_PTRACER_ANY = 0xffffffffffffffff 1382 PR_SET_PTRACER_ANY = 0xffffffffffffffff
1193 PR_SET_SECCOMP = 0x16 1383 PR_SET_SECCOMP = 0x16
1194 PR_SET_SECUREBITS = 0x1c 1384 PR_SET_SECUREBITS = 0x1c
1385 PR_SET_SPECULATION_CTRL = 0x35
1195 PR_SET_THP_DISABLE = 0x29 1386 PR_SET_THP_DISABLE = 0x29
1196 PR_SET_TIMERSLACK = 0x1d 1387 PR_SET_TIMERSLACK = 0x1d
1197 PR_SET_TIMING = 0xe 1388 PR_SET_TIMING = 0xe
1198 PR_SET_TSC = 0x1a 1389 PR_SET_TSC = 0x1a
1199 PR_SET_UNALIGN = 0x6 1390 PR_SET_UNALIGN = 0x6
1391 PR_SPEC_DISABLE = 0x4
1392 PR_SPEC_ENABLE = 0x2
1393 PR_SPEC_FORCE_DISABLE = 0x8
1394 PR_SPEC_NOT_AFFECTED = 0x0
1395 PR_SPEC_PRCTL = 0x1
1396 PR_SPEC_STORE_BYPASS = 0x0
1397 PR_SVE_GET_VL = 0x33
1398 PR_SVE_SET_VL = 0x32
1399 PR_SVE_SET_VL_ONEXEC = 0x40000
1400 PR_SVE_VL_INHERIT = 0x20000
1401 PR_SVE_VL_LEN_MASK = 0xffff
1200 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1402 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1201 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1403 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1202 PR_TIMING_STATISTICAL = 0x0 1404 PR_TIMING_STATISTICAL = 0x0
@@ -1205,6 +1407,7 @@ const (
1205 PR_TSC_SIGSEGV = 0x2 1407 PR_TSC_SIGSEGV = 0x2
1206 PR_UNALIGN_NOPRINT = 0x1 1408 PR_UNALIGN_NOPRINT = 0x1
1207 PR_UNALIGN_SIGBUS = 0x2 1409 PR_UNALIGN_SIGBUS = 0x2
1410 PSTOREFS_MAGIC = 0x6165676c
1208 PTRACE_ATTACH = 0x10 1411 PTRACE_ATTACH = 0x10
1209 PTRACE_CONT = 0x7 1412 PTRACE_CONT = 0x7
1210 PTRACE_DETACH = 0x11 1413 PTRACE_DETACH = 0x11
@@ -1244,6 +1447,7 @@ const (
1244 PTRACE_POKETEXT = 0x4 1447 PTRACE_POKETEXT = 0x4
1245 PTRACE_POKEUSR = 0x6 1448 PTRACE_POKEUSR = 0x6
1246 PTRACE_SECCOMP_GET_FILTER = 0x420c 1449 PTRACE_SECCOMP_GET_FILTER = 0x420c
1450 PTRACE_SECCOMP_GET_METADATA = 0x420d
1247 PTRACE_SEIZE = 0x4206 1451 PTRACE_SEIZE = 0x4206
1248 PTRACE_SETOPTIONS = 0x4200 1452 PTRACE_SETOPTIONS = 0x4200
1249 PTRACE_SETREGS = 0xd 1453 PTRACE_SETREGS = 0xd
@@ -1253,6 +1457,14 @@ const (
1253 PTRACE_SINGLESTEP = 0x9 1457 PTRACE_SINGLESTEP = 0x9
1254 PTRACE_SYSCALL = 0x18 1458 PTRACE_SYSCALL = 0x18
1255 PTRACE_TRACEME = 0x0 1459 PTRACE_TRACEME = 0x0
1460 QNX4_SUPER_MAGIC = 0x2f
1461 QNX6_SUPER_MAGIC = 0x68191122
1462 RAMFS_MAGIC = 0x858458f6
1463 RDTGROUP_SUPER_MAGIC = 0x7655821
1464 REISERFS_SUPER_MAGIC = 0x52654973
1465 RENAME_EXCHANGE = 0x2
1466 RENAME_NOREPLACE = 0x1
1467 RENAME_WHITEOUT = 0x4
1256 RLIMIT_AS = 0x9 1468 RLIMIT_AS = 0x9
1257 RLIMIT_CORE = 0x4 1469 RLIMIT_CORE = 0x4
1258 RLIMIT_CPU = 0x0 1470 RLIMIT_CPU = 0x0
@@ -1273,6 +1485,7 @@ const (
1273 RTAX_ADVMSS = 0x8 1485 RTAX_ADVMSS = 0x8
1274 RTAX_CC_ALGO = 0x10 1486 RTAX_CC_ALGO = 0x10
1275 RTAX_CWND = 0x7 1487 RTAX_CWND = 0x7
1488 RTAX_FASTOPEN_NO_COOKIE = 0x11
1276 RTAX_FEATURES = 0xc 1489 RTAX_FEATURES = 0xc
1277 RTAX_FEATURE_ALLFRAG = 0x8 1490 RTAX_FEATURE_ALLFRAG = 0x8
1278 RTAX_FEATURE_ECN = 0x1 1491 RTAX_FEATURE_ECN = 0x1
@@ -1283,7 +1496,7 @@ const (
1283 RTAX_INITCWND = 0xb 1496 RTAX_INITCWND = 0xb
1284 RTAX_INITRWND = 0xe 1497 RTAX_INITRWND = 0xe
1285 RTAX_LOCK = 0x1 1498 RTAX_LOCK = 0x1
1286 RTAX_MAX = 0x10 1499 RTAX_MAX = 0x11
1287 RTAX_MTU = 0x2 1500 RTAX_MTU = 0x2
1288 RTAX_QUICKACK = 0xf 1501 RTAX_QUICKACK = 0xf
1289 RTAX_REORDERING = 0x9 1502 RTAX_REORDERING = 0x9
@@ -1294,13 +1507,40 @@ const (
1294 RTAX_UNSPEC = 0x0 1507 RTAX_UNSPEC = 0x0
1295 RTAX_WINDOW = 0x3 1508 RTAX_WINDOW = 0x3
1296 RTA_ALIGNTO = 0x4 1509 RTA_ALIGNTO = 0x4
1297 RTA_MAX = 0x1a 1510 RTA_MAX = 0x1d
1298 RTCF_DIRECTSRC = 0x4000000 1511 RTCF_DIRECTSRC = 0x4000000
1299 RTCF_DOREDIRECT = 0x1000000 1512 RTCF_DOREDIRECT = 0x1000000
1300 RTCF_LOG = 0x2000000 1513 RTCF_LOG = 0x2000000
1301 RTCF_MASQ = 0x400000 1514 RTCF_MASQ = 0x400000
1302 RTCF_NAT = 0x800000 1515 RTCF_NAT = 0x800000
1303 RTCF_VALVE = 0x200000 1516 RTCF_VALVE = 0x200000
1517 RTC_AF = 0x20
1518 RTC_AIE_OFF = 0x7002
1519 RTC_AIE_ON = 0x7001
1520 RTC_ALM_READ = 0x80247008
1521 RTC_ALM_SET = 0x40247007
1522 RTC_EPOCH_READ = 0x8008700d
1523 RTC_EPOCH_SET = 0x4008700e
1524 RTC_IRQF = 0x80
1525 RTC_IRQP_READ = 0x8008700b
1526 RTC_IRQP_SET = 0x4008700c
1527 RTC_MAX_FREQ = 0x2000
1528 RTC_PF = 0x40
1529 RTC_PIE_OFF = 0x7006
1530 RTC_PIE_ON = 0x7005
1531 RTC_PLL_GET = 0x80207011
1532 RTC_PLL_SET = 0x40207012
1533 RTC_RD_TIME = 0x80247009
1534 RTC_SET_TIME = 0x4024700a
1535 RTC_UF = 0x10
1536 RTC_UIE_OFF = 0x7004
1537 RTC_UIE_ON = 0x7003
1538 RTC_VL_CLR = 0x7014
1539 RTC_VL_READ = 0x80047013
1540 RTC_WIE_OFF = 0x7010
1541 RTC_WIE_ON = 0x700f
1542 RTC_WKALM_RD = 0x80287010
1543 RTC_WKALM_SET = 0x4028700f
1304 RTF_ADDRCLASSMASK = 0xf8000000 1544 RTF_ADDRCLASSMASK = 0xf8000000
1305 RTF_ADDRCONF = 0x40000 1545 RTF_ADDRCONF = 0x40000
1306 RTF_ALLONLINK = 0x20000 1546 RTF_ALLONLINK = 0x20000
@@ -1403,17 +1643,22 @@ const (
1403 RTNH_F_UNRESOLVED = 0x20 1643 RTNH_F_UNRESOLVED = 0x20
1404 RTN_MAX = 0xb 1644 RTN_MAX = 0xb
1405 RTPROT_BABEL = 0x2a 1645 RTPROT_BABEL = 0x2a
1646 RTPROT_BGP = 0xba
1406 RTPROT_BIRD = 0xc 1647 RTPROT_BIRD = 0xc
1407 RTPROT_BOOT = 0x3 1648 RTPROT_BOOT = 0x3
1408 RTPROT_DHCP = 0x10 1649 RTPROT_DHCP = 0x10
1409 RTPROT_DNROUTED = 0xd 1650 RTPROT_DNROUTED = 0xd
1651 RTPROT_EIGRP = 0xc0
1410 RTPROT_GATED = 0x8 1652 RTPROT_GATED = 0x8
1653 RTPROT_ISIS = 0xbb
1411 RTPROT_KERNEL = 0x2 1654 RTPROT_KERNEL = 0x2
1412 RTPROT_MROUTED = 0x11 1655 RTPROT_MROUTED = 0x11
1413 RTPROT_MRT = 0xa 1656 RTPROT_MRT = 0xa
1414 RTPROT_NTK = 0xf 1657 RTPROT_NTK = 0xf
1658 RTPROT_OSPF = 0xbc
1415 RTPROT_RA = 0x9 1659 RTPROT_RA = 0x9
1416 RTPROT_REDIRECT = 0x1 1660 RTPROT_REDIRECT = 0x1
1661 RTPROT_RIP = 0xbd
1417 RTPROT_STATIC = 0x4 1662 RTPROT_STATIC = 0x4
1418 RTPROT_UNSPEC = 0x0 1663 RTPROT_UNSPEC = 0x0
1419 RTPROT_XORP = 0xe 1664 RTPROT_XORP = 0xe
@@ -1437,6 +1682,8 @@ const (
1437 SECCOMP_MODE_DISABLED = 0x0 1682 SECCOMP_MODE_DISABLED = 0x0
1438 SECCOMP_MODE_FILTER = 0x2 1683 SECCOMP_MODE_FILTER = 0x2
1439 SECCOMP_MODE_STRICT = 0x1 1684 SECCOMP_MODE_STRICT = 0x1
1685 SECURITYFS_MAGIC = 0x73636673
1686 SELINUX_MAGIC = 0xf97cff8c
1440 SHUT_RD = 0x0 1687 SHUT_RD = 0x0
1441 SHUT_RDWR = 0x2 1688 SHUT_RDWR = 0x2
1442 SHUT_WR = 0x1 1689 SHUT_WR = 0x1
@@ -1521,6 +1768,23 @@ const (
1521 SIOCSPGRP = 0x8902 1768 SIOCSPGRP = 0x8902
1522 SIOCSRARP = 0x8962 1769 SIOCSRARP = 0x8962
1523 SIOCWANDEV = 0x894a 1770 SIOCWANDEV = 0x894a
1771 SMACK_MAGIC = 0x43415d53
1772 SMART_AUTOSAVE = 0xd2
1773 SMART_AUTO_OFFLINE = 0xdb
1774 SMART_DISABLE = 0xd9
1775 SMART_ENABLE = 0xd8
1776 SMART_HCYL_PASS = 0xc2
1777 SMART_IMMEDIATE_OFFLINE = 0xd4
1778 SMART_LCYL_PASS = 0x4f
1779 SMART_READ_LOG_SECTOR = 0xd5
1780 SMART_READ_THRESHOLDS = 0xd1
1781 SMART_READ_VALUES = 0xd0
1782 SMART_SAVE = 0xd3
1783 SMART_STATUS = 0xda
1784 SMART_WRITE_LOG_SECTOR = 0xd6
1785 SMART_WRITE_THRESHOLDS = 0xd7
1786 SMB_SUPER_MAGIC = 0x517b
1787 SOCKFS_MAGIC = 0x534f434b
1524 SOCK_CLOEXEC = 0x80000 1788 SOCK_CLOEXEC = 0x80000
1525 SOCK_DCCP = 0x6 1789 SOCK_DCCP = 0x6
1526 SOCK_DGRAM = 0x2 1790 SOCK_DGRAM = 0x2
@@ -1557,7 +1821,9 @@ const (
1557 SOL_SOCKET = 0x1 1821 SOL_SOCKET = 0x1
1558 SOL_TCP = 0x6 1822 SOL_TCP = 0x6
1559 SOL_TIPC = 0x10f 1823 SOL_TIPC = 0x10f
1824 SOL_TLS = 0x11a
1560 SOL_X25 = 0x106 1825 SOL_X25 = 0x106
1826 SOL_XDP = 0x11b
1561 SOMAXCONN = 0x80 1827 SOMAXCONN = 0x80
1562 SO_ACCEPTCONN = 0x1e 1828 SO_ACCEPTCONN = 0x1e
1563 SO_ATTACH_BPF = 0x32 1829 SO_ATTACH_BPF = 0x32
@@ -1625,10 +1891,13 @@ const (
1625 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1891 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1626 SO_VM_SOCKETS_TRUSTED = 0x5 1892 SO_VM_SOCKETS_TRUSTED = 0x5
1627 SO_WIFI_STATUS = 0x29 1893 SO_WIFI_STATUS = 0x29
1894 SO_ZEROCOPY = 0x3c
1628 SPLICE_F_GIFT = 0x8 1895 SPLICE_F_GIFT = 0x8
1629 SPLICE_F_MORE = 0x4 1896 SPLICE_F_MORE = 0x4
1630 SPLICE_F_MOVE = 0x1 1897 SPLICE_F_MOVE = 0x1
1631 SPLICE_F_NONBLOCK = 0x2 1898 SPLICE_F_NONBLOCK = 0x2
1899 SQUASHFS_MAGIC = 0x73717368
1900 STACK_END_MAGIC = 0x57ac6e9d
1632 STATX_ALL = 0xfff 1901 STATX_ALL = 0xfff
1633 STATX_ATIME = 0x20 1902 STATX_ATIME = 0x20
1634 STATX_ATTR_APPEND = 0x20 1903 STATX_ATTR_APPEND = 0x20
@@ -1650,6 +1919,11 @@ const (
1650 STATX_TYPE = 0x1 1919 STATX_TYPE = 0x1
1651 STATX_UID = 0x8 1920 STATX_UID = 0x8
1652 STATX__RESERVED = 0x80000000 1921 STATX__RESERVED = 0x80000000
1922 SVE_MAGIC = 0x53564501
1923 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1924 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1925 SYNC_FILE_RANGE_WRITE = 0x2
1926 SYSFS_MAGIC = 0x62656572
1653 S_BLKSIZE = 0x200 1927 S_BLKSIZE = 0x200
1654 S_IEXEC = 0x40 1928 S_IEXEC = 0x40
1655 S_IFBLK = 0x6000 1929 S_IFBLK = 0x6000
@@ -1712,6 +1986,8 @@ const (
1712 TCP_DEFER_ACCEPT = 0x9 1986 TCP_DEFER_ACCEPT = 0x9
1713 TCP_FASTOPEN = 0x17 1987 TCP_FASTOPEN = 0x17
1714 TCP_FASTOPEN_CONNECT = 0x1e 1988 TCP_FASTOPEN_CONNECT = 0x1e
1989 TCP_FASTOPEN_KEY = 0x21
1990 TCP_FASTOPEN_NO_COOKIE = 0x22
1715 TCP_INFO = 0xb 1991 TCP_INFO = 0xb
1716 TCP_KEEPCNT = 0x6 1992 TCP_KEEPCNT = 0x6
1717 TCP_KEEPIDLE = 0x4 1993 TCP_KEEPIDLE = 0x4
@@ -1721,6 +1997,8 @@ const (
1721 TCP_MAXWIN = 0xffff 1997 TCP_MAXWIN = 0xffff
1722 TCP_MAX_WINSHIFT = 0xe 1998 TCP_MAX_WINSHIFT = 0xe
1723 TCP_MD5SIG = 0xe 1999 TCP_MD5SIG = 0xe
2000 TCP_MD5SIG_EXT = 0x20
2001 TCP_MD5SIG_FLAG_PREFIX = 0x1
1724 TCP_MD5SIG_MAXKEYLEN = 0x50 2002 TCP_MD5SIG_MAXKEYLEN = 0x50
1725 TCP_MSS = 0x200 2003 TCP_MSS = 0x200
1726 TCP_MSS_DEFAULT = 0x218 2004 TCP_MSS_DEFAULT = 0x218
@@ -1741,6 +2019,7 @@ const (
1741 TCP_THIN_DUPACK = 0x11 2019 TCP_THIN_DUPACK = 0x11
1742 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2020 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1743 TCP_TIMESTAMP = 0x18 2021 TCP_TIMESTAMP = 0x18
2022 TCP_ULP = 0x1f
1744 TCP_USER_TIMEOUT = 0x12 2023 TCP_USER_TIMEOUT = 0x12
1745 TCP_WINDOW_CLAMP = 0xa 2024 TCP_WINDOW_CLAMP = 0xa
1746 TCSAFLUSH = 0x2 2025 TCSAFLUSH = 0x2
@@ -1828,7 +2107,27 @@ const (
1828 TIOCSTI = 0x5412 2107 TIOCSTI = 0x5412
1829 TIOCSWINSZ = 0x5414 2108 TIOCSWINSZ = 0x5414
1830 TIOCVHANGUP = 0x5437 2109 TIOCVHANGUP = 0x5437
2110 TMPFS_MAGIC = 0x1021994
1831 TOSTOP = 0x100 2111 TOSTOP = 0x100
2112 TPACKET_ALIGNMENT = 0x10
2113 TPACKET_HDRLEN = 0x34
2114 TP_STATUS_AVAILABLE = 0x0
2115 TP_STATUS_BLK_TMO = 0x20
2116 TP_STATUS_COPY = 0x2
2117 TP_STATUS_CSUMNOTREADY = 0x8
2118 TP_STATUS_CSUM_VALID = 0x80
2119 TP_STATUS_KERNEL = 0x0
2120 TP_STATUS_LOSING = 0x4
2121 TP_STATUS_SENDING = 0x2
2122 TP_STATUS_SEND_REQUEST = 0x1
2123 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2124 TP_STATUS_TS_SOFTWARE = 0x20000000
2125 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2126 TP_STATUS_USER = 0x1
2127 TP_STATUS_VLAN_TPID_VALID = 0x40
2128 TP_STATUS_VLAN_VALID = 0x10
2129 TP_STATUS_WRONG_FORMAT = 0x4
2130 TRACEFS_MAGIC = 0x74726163
1832 TS_COMM_LEN = 0x20 2131 TS_COMM_LEN = 0x20
1833 TUNATTACHFILTER = 0x401054d5 2132 TUNATTACHFILTER = 0x401054d5
1834 TUNDETACHFILTER = 0x401054d6 2133 TUNDETACHFILTER = 0x401054d6
@@ -1840,6 +2139,7 @@ const (
1840 TUNGETVNETHDRSZ = 0x800454d7 2139 TUNGETVNETHDRSZ = 0x800454d7
1841 TUNGETVNETLE = 0x800454dd 2140 TUNGETVNETLE = 0x800454dd
1842 TUNSETDEBUG = 0x400454c9 2141 TUNSETDEBUG = 0x400454c9
2142 TUNSETFILTEREBPF = 0x800454e1
1843 TUNSETGROUP = 0x400454ce 2143 TUNSETGROUP = 0x400454ce
1844 TUNSETIFF = 0x400454ca 2144 TUNSETIFF = 0x400454ca
1845 TUNSETIFINDEX = 0x400454da 2145 TUNSETIFINDEX = 0x400454da
@@ -1850,13 +2150,32 @@ const (
1850 TUNSETPERSIST = 0x400454cb 2150 TUNSETPERSIST = 0x400454cb
1851 TUNSETQUEUE = 0x400454d9 2151 TUNSETQUEUE = 0x400454d9
1852 TUNSETSNDBUF = 0x400454d4 2152 TUNSETSNDBUF = 0x400454d4
2153 TUNSETSTEERINGEBPF = 0x800454e0
1853 TUNSETTXFILTER = 0x400454d1 2154 TUNSETTXFILTER = 0x400454d1
1854 TUNSETVNETBE = 0x400454de 2155 TUNSETVNETBE = 0x400454de
1855 TUNSETVNETHDRSZ = 0x400454d8 2156 TUNSETVNETHDRSZ = 0x400454d8
1856 TUNSETVNETLE = 0x400454dc 2157 TUNSETVNETLE = 0x400454dc
2158 UBI_IOCATT = 0x40186f40
2159 UBI_IOCDET = 0x40046f41
2160 UBI_IOCEBCH = 0x40044f02
2161 UBI_IOCEBER = 0x40044f01
2162 UBI_IOCEBISMAP = 0x80044f05
2163 UBI_IOCEBMAP = 0x40084f03
2164 UBI_IOCEBUNMAP = 0x40044f04
2165 UBI_IOCMKVOL = 0x40986f00
2166 UBI_IOCRMVOL = 0x40046f01
2167 UBI_IOCRNVOL = 0x51106f03
2168 UBI_IOCRSVOL = 0x400c6f02
2169 UBI_IOCSETVOLPROP = 0x40104f06
2170 UBI_IOCVOLCRBLK = 0x40804f07
2171 UBI_IOCVOLRMBLK = 0x4f08
2172 UBI_IOCVOLUP = 0x40084f00
2173 UDF_SUPER_MAGIC = 0x15013346
1857 UMOUNT_NOFOLLOW = 0x8 2174 UMOUNT_NOFOLLOW = 0x8
2175 USBDEVICE_SUPER_MAGIC = 0x9fa2
1858 UTIME_NOW = 0x3fffffff 2176 UTIME_NOW = 0x3fffffff
1859 UTIME_OMIT = 0x3ffffffe 2177 UTIME_OMIT = 0x3ffffffe
2178 V9FS_MAGIC = 0x1021997
1860 VDISCARD = 0xd 2179 VDISCARD = 0xd
1861 VEOF = 0x4 2180 VEOF = 0x4
1862 VEOL = 0xb 2181 VEOL = 0xb
@@ -1898,6 +2217,86 @@ const (
1898 WDIOC_SETPRETIMEOUT = 0xc0045708 2217 WDIOC_SETPRETIMEOUT = 0xc0045708
1899 WDIOC_SETTIMEOUT = 0xc0045706 2218 WDIOC_SETTIMEOUT = 0xc0045706
1900 WEXITED = 0x4 2219 WEXITED = 0x4
2220 WIN_ACKMEDIACHANGE = 0xdb
2221 WIN_CHECKPOWERMODE1 = 0xe5
2222 WIN_CHECKPOWERMODE2 = 0x98
2223 WIN_DEVICE_RESET = 0x8
2224 WIN_DIAGNOSE = 0x90
2225 WIN_DOORLOCK = 0xde
2226 WIN_DOORUNLOCK = 0xdf
2227 WIN_DOWNLOAD_MICROCODE = 0x92
2228 WIN_FLUSH_CACHE = 0xe7
2229 WIN_FLUSH_CACHE_EXT = 0xea
2230 WIN_FORMAT = 0x50
2231 WIN_GETMEDIASTATUS = 0xda
2232 WIN_IDENTIFY = 0xec
2233 WIN_IDENTIFY_DMA = 0xee
2234 WIN_IDLEIMMEDIATE = 0xe1
2235 WIN_INIT = 0x60
2236 WIN_MEDIAEJECT = 0xed
2237 WIN_MULTREAD = 0xc4
2238 WIN_MULTREAD_EXT = 0x29
2239 WIN_MULTWRITE = 0xc5
2240 WIN_MULTWRITE_EXT = 0x39
2241 WIN_NOP = 0x0
2242 WIN_PACKETCMD = 0xa0
2243 WIN_PIDENTIFY = 0xa1
2244 WIN_POSTBOOT = 0xdc
2245 WIN_PREBOOT = 0xdd
2246 WIN_QUEUED_SERVICE = 0xa2
2247 WIN_READ = 0x20
2248 WIN_READDMA = 0xc8
2249 WIN_READDMA_EXT = 0x25
2250 WIN_READDMA_ONCE = 0xc9
2251 WIN_READDMA_QUEUED = 0xc7
2252 WIN_READDMA_QUEUED_EXT = 0x26
2253 WIN_READ_BUFFER = 0xe4
2254 WIN_READ_EXT = 0x24
2255 WIN_READ_LONG = 0x22
2256 WIN_READ_LONG_ONCE = 0x23
2257 WIN_READ_NATIVE_MAX = 0xf8
2258 WIN_READ_NATIVE_MAX_EXT = 0x27
2259 WIN_READ_ONCE = 0x21
2260 WIN_RECAL = 0x10
2261 WIN_RESTORE = 0x10
2262 WIN_SECURITY_DISABLE = 0xf6
2263 WIN_SECURITY_ERASE_PREPARE = 0xf3
2264 WIN_SECURITY_ERASE_UNIT = 0xf4
2265 WIN_SECURITY_FREEZE_LOCK = 0xf5
2266 WIN_SECURITY_SET_PASS = 0xf1
2267 WIN_SECURITY_UNLOCK = 0xf2
2268 WIN_SEEK = 0x70
2269 WIN_SETFEATURES = 0xef
2270 WIN_SETIDLE1 = 0xe3
2271 WIN_SETIDLE2 = 0x97
2272 WIN_SETMULT = 0xc6
2273 WIN_SET_MAX = 0xf9
2274 WIN_SET_MAX_EXT = 0x37
2275 WIN_SLEEPNOW1 = 0xe6
2276 WIN_SLEEPNOW2 = 0x99
2277 WIN_SMART = 0xb0
2278 WIN_SPECIFY = 0x91
2279 WIN_SRST = 0x8
2280 WIN_STANDBY = 0xe2
2281 WIN_STANDBY2 = 0x96
2282 WIN_STANDBYNOW1 = 0xe0
2283 WIN_STANDBYNOW2 = 0x94
2284 WIN_VERIFY = 0x40
2285 WIN_VERIFY_EXT = 0x42
2286 WIN_VERIFY_ONCE = 0x41
2287 WIN_WRITE = 0x30
2288 WIN_WRITEDMA = 0xca
2289 WIN_WRITEDMA_EXT = 0x35
2290 WIN_WRITEDMA_ONCE = 0xcb
2291 WIN_WRITEDMA_QUEUED = 0xcc
2292 WIN_WRITEDMA_QUEUED_EXT = 0x36
2293 WIN_WRITE_BUFFER = 0xe8
2294 WIN_WRITE_EXT = 0x34
2295 WIN_WRITE_LONG = 0x32
2296 WIN_WRITE_LONG_ONCE = 0x33
2297 WIN_WRITE_ONCE = 0x31
2298 WIN_WRITE_SAME = 0xe9
2299 WIN_WRITE_VERIFY = 0x3c
1901 WNOHANG = 0x1 2300 WNOHANG = 0x1
1902 WNOTHREAD = 0x20000000 2301 WNOTHREAD = 0x20000000
1903 WNOWAIT = 0x1000000 2302 WNOWAIT = 0x1000000
@@ -1907,7 +2306,29 @@ const (
1907 XATTR_CREATE = 0x1 2306 XATTR_CREATE = 0x1
1908 XATTR_REPLACE = 0x2 2307 XATTR_REPLACE = 0x2
1909 XCASE = 0x4 2308 XCASE = 0x4
2309 XDP_COPY = 0x2
2310 XDP_FLAGS_DRV_MODE = 0x4
2311 XDP_FLAGS_HW_MODE = 0x8
2312 XDP_FLAGS_MASK = 0xf
2313 XDP_FLAGS_MODES = 0xe
2314 XDP_FLAGS_SKB_MODE = 0x2
2315 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2316 XDP_MMAP_OFFSETS = 0x1
2317 XDP_PGOFF_RX_RING = 0x0
2318 XDP_PGOFF_TX_RING = 0x80000000
2319 XDP_RX_RING = 0x2
2320 XDP_SHARED_UMEM = 0x1
2321 XDP_STATISTICS = 0x7
2322 XDP_TX_RING = 0x3
2323 XDP_UMEM_COMPLETION_RING = 0x6
2324 XDP_UMEM_FILL_RING = 0x5
2325 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2326 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2327 XDP_UMEM_REG = 0x4
2328 XDP_ZEROCOPY = 0x4
2329 XENFS_SUPER_MAGIC = 0xabba1974
1910 XTABS = 0x1800 2330 XTABS = 0x1800
2331 ZSMALLOC_MAGIC = 0x58295829
1911) 2332)
1912 2333
1913// Errors 2334// Errors
@@ -2087,171 +2508,179 @@ const (
2087) 2508)
2088 2509
2089// Error table 2510// Error table
2090var errors = [...]string{ 2511var errorList = [...]struct {
2091 1: "operation not permitted", 2512 num syscall.Errno
2092 2: "no such file or directory", 2513 name string
2093 3: "no such process", 2514 desc string
2094 4: "interrupted system call", 2515}{
2095 5: "input/output error", 2516 {1, "EPERM", "operation not permitted"},
2096 6: "no such device or address", 2517 {2, "ENOENT", "no such file or directory"},
2097 7: "argument list too long", 2518 {3, "ESRCH", "no such process"},
2098 8: "exec format error", 2519 {4, "EINTR", "interrupted system call"},
2099 9: "bad file descriptor", 2520 {5, "EIO", "input/output error"},
2100 10: "no child processes", 2521 {6, "ENXIO", "no such device or address"},
2101 11: "resource temporarily unavailable", 2522 {7, "E2BIG", "argument list too long"},
2102 12: "cannot allocate memory", 2523 {8, "ENOEXEC", "exec format error"},
2103 13: "permission denied", 2524 {9, "EBADF", "bad file descriptor"},
2104 14: "bad address", 2525 {10, "ECHILD", "no child processes"},
2105 15: "block device required", 2526 {11, "EAGAIN", "resource temporarily unavailable"},
2106 16: "device or resource busy", 2527 {12, "ENOMEM", "cannot allocate memory"},
2107 17: "file exists", 2528 {13, "EACCES", "permission denied"},
2108 18: "invalid cross-device link", 2529 {14, "EFAULT", "bad address"},
2109 19: "no such device", 2530 {15, "ENOTBLK", "block device required"},
2110 20: "not a directory", 2531 {16, "EBUSY", "device or resource busy"},
2111 21: "is a directory", 2532 {17, "EEXIST", "file exists"},
2112 22: "invalid argument", 2533 {18, "EXDEV", "invalid cross-device link"},
2113 23: "too many open files in system", 2534 {19, "ENODEV", "no such device"},
2114 24: "too many open files", 2535 {20, "ENOTDIR", "not a directory"},
2115 25: "inappropriate ioctl for device", 2536 {21, "EISDIR", "is a directory"},
2116 26: "text file busy", 2537 {22, "EINVAL", "invalid argument"},
2117 27: "file too large", 2538 {23, "ENFILE", "too many open files in system"},
2118 28: "no space left on device", 2539 {24, "EMFILE", "too many open files"},
2119 29: "illegal seek", 2540 {25, "ENOTTY", "inappropriate ioctl for device"},
2120 30: "read-only file system", 2541 {26, "ETXTBSY", "text file busy"},
2121 31: "too many links", 2542 {27, "EFBIG", "file too large"},
2122 32: "broken pipe", 2543 {28, "ENOSPC", "no space left on device"},
2123 33: "numerical argument out of domain", 2544 {29, "ESPIPE", "illegal seek"},
2124 34: "numerical result out of range", 2545 {30, "EROFS", "read-only file system"},
2125 35: "resource deadlock avoided", 2546 {31, "EMLINK", "too many links"},
2126 36: "file name too long", 2547 {32, "EPIPE", "broken pipe"},
2127 37: "no locks available", 2548 {33, "EDOM", "numerical argument out of domain"},
2128 38: "function not implemented", 2549 {34, "ERANGE", "numerical result out of range"},
2129 39: "directory not empty", 2550 {35, "EDEADLK", "resource deadlock avoided"},
2130 40: "too many levels of symbolic links", 2551 {36, "ENAMETOOLONG", "file name too long"},
2131 42: "no message of desired type", 2552 {37, "ENOLCK", "no locks available"},
2132 43: "identifier removed", 2553 {38, "ENOSYS", "function not implemented"},
2133 44: "channel number out of range", 2554 {39, "ENOTEMPTY", "directory not empty"},
2134 45: "level 2 not synchronized", 2555 {40, "ELOOP", "too many levels of symbolic links"},
2135 46: "level 3 halted", 2556 {42, "ENOMSG", "no message of desired type"},
2136 47: "level 3 reset", 2557 {43, "EIDRM", "identifier removed"},
2137 48: "link number out of range", 2558 {44, "ECHRNG", "channel number out of range"},
2138 49: "protocol driver not attached", 2559 {45, "EL2NSYNC", "level 2 not synchronized"},
2139 50: "no CSI structure available", 2560 {46, "EL3HLT", "level 3 halted"},
2140 51: "level 2 halted", 2561 {47, "EL3RST", "level 3 reset"},
2141 52: "invalid exchange", 2562 {48, "ELNRNG", "link number out of range"},
2142 53: "invalid request descriptor", 2563 {49, "EUNATCH", "protocol driver not attached"},
2143 54: "exchange full", 2564 {50, "ENOCSI", "no CSI structure available"},
2144 55: "no anode", 2565 {51, "EL2HLT", "level 2 halted"},
2145 56: "invalid request code", 2566 {52, "EBADE", "invalid exchange"},
2146 57: "invalid slot", 2567 {53, "EBADR", "invalid request descriptor"},
2147 59: "bad font file format", 2568 {54, "EXFULL", "exchange full"},
2148 60: "device not a stream", 2569 {55, "ENOANO", "no anode"},
2149 61: "no data available", 2570 {56, "EBADRQC", "invalid request code"},
2150 62: "timer expired", 2571 {57, "EBADSLT", "invalid slot"},
2151 63: "out of streams resources", 2572 {59, "EBFONT", "bad font file format"},
2152 64: "machine is not on the network", 2573 {60, "ENOSTR", "device not a stream"},
2153 65: "package not installed", 2574 {61, "ENODATA", "no data available"},
2154 66: "object is remote", 2575 {62, "ETIME", "timer expired"},
2155 67: "link has been severed", 2576 {63, "ENOSR", "out of streams resources"},
2156 68: "advertise error", 2577 {64, "ENONET", "machine is not on the network"},
2157 69: "srmount error", 2578 {65, "ENOPKG", "package not installed"},
2158 70: "communication error on send", 2579 {66, "EREMOTE", "object is remote"},
2159 71: "protocol error", 2580 {67, "ENOLINK", "link has been severed"},
2160 72: "multihop attempted", 2581 {68, "EADV", "advertise error"},
2161 73: "RFS specific error", 2582 {69, "ESRMNT", "srmount error"},
2162 74: "bad message", 2583 {70, "ECOMM", "communication error on send"},
2163 75: "value too large for defined data type", 2584 {71, "EPROTO", "protocol error"},
2164 76: "name not unique on network", 2585 {72, "EMULTIHOP", "multihop attempted"},
2165 77: "file descriptor in bad state", 2586 {73, "EDOTDOT", "RFS specific error"},
2166 78: "remote address changed", 2587 {74, "EBADMSG", "bad message"},
2167 79: "can not access a needed shared library", 2588 {75, "EOVERFLOW", "value too large for defined data type"},
2168 80: "accessing a corrupted shared library", 2589 {76, "ENOTUNIQ", "name not unique on network"},
2169 81: ".lib section in a.out corrupted", 2590 {77, "EBADFD", "file descriptor in bad state"},
2170 82: "attempting to link in too many shared libraries", 2591 {78, "EREMCHG", "remote address changed"},
2171 83: "cannot exec a shared library directly", 2592 {79, "ELIBACC", "can not access a needed shared library"},
2172 84: "invalid or incomplete multibyte or wide character", 2593 {80, "ELIBBAD", "accessing a corrupted shared library"},
2173 85: "interrupted system call should be restarted", 2594 {81, "ELIBSCN", ".lib section in a.out corrupted"},
2174 86: "streams pipe error", 2595 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
2175 87: "too many users", 2596 {83, "ELIBEXEC", "cannot exec a shared library directly"},
2176 88: "socket operation on non-socket", 2597 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2177 89: "destination address required", 2598 {85, "ERESTART", "interrupted system call should be restarted"},
2178 90: "message too long", 2599 {86, "ESTRPIPE", "streams pipe error"},
2179 91: "protocol wrong type for socket", 2600 {87, "EUSERS", "too many users"},
2180 92: "protocol not available", 2601 {88, "ENOTSOCK", "socket operation on non-socket"},
2181 93: "protocol not supported", 2602 {89, "EDESTADDRREQ", "destination address required"},
2182 94: "socket type not supported", 2603 {90, "EMSGSIZE", "message too long"},
2183 95: "operation not supported", 2604 {91, "EPROTOTYPE", "protocol wrong type for socket"},
2184 96: "protocol family not supported", 2605 {92, "ENOPROTOOPT", "protocol not available"},
2185 97: "address family not supported by protocol", 2606 {93, "EPROTONOSUPPORT", "protocol not supported"},
2186 98: "address already in use", 2607 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
2187 99: "cannot assign requested address", 2608 {95, "ENOTSUP", "operation not supported"},
2188 100: "network is down", 2609 {96, "EPFNOSUPPORT", "protocol family not supported"},
2189 101: "network is unreachable", 2610 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
2190 102: "network dropped connection on reset", 2611 {98, "EADDRINUSE", "address already in use"},
2191 103: "software caused connection abort", 2612 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
2192 104: "connection reset by peer", 2613 {100, "ENETDOWN", "network is down"},
2193 105: "no buffer space available", 2614 {101, "ENETUNREACH", "network is unreachable"},
2194 106: "transport endpoint is already connected", 2615 {102, "ENETRESET", "network dropped connection on reset"},
2195 107: "transport endpoint is not connected", 2616 {103, "ECONNABORTED", "software caused connection abort"},
2196 108: "cannot send after transport endpoint shutdown", 2617 {104, "ECONNRESET", "connection reset by peer"},
2197 109: "too many references: cannot splice", 2618 {105, "ENOBUFS", "no buffer space available"},
2198 110: "connection timed out", 2619 {106, "EISCONN", "transport endpoint is already connected"},
2199 111: "connection refused", 2620 {107, "ENOTCONN", "transport endpoint is not connected"},
2200 112: "host is down", 2621 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2201 113: "no route to host", 2622 {109, "ETOOMANYREFS", "too many references: cannot splice"},
2202 114: "operation already in progress", 2623 {110, "ETIMEDOUT", "connection timed out"},
2203 115: "operation now in progress", 2624 {111, "ECONNREFUSED", "connection refused"},
2204 116: "stale file handle", 2625 {112, "EHOSTDOWN", "host is down"},
2205 117: "structure needs cleaning", 2626 {113, "EHOSTUNREACH", "no route to host"},
2206 118: "not a XENIX named type file", 2627 {114, "EALREADY", "operation already in progress"},
2207 119: "no XENIX semaphores available", 2628 {115, "EINPROGRESS", "operation now in progress"},
2208 120: "is a named type file", 2629 {116, "ESTALE", "stale file handle"},
2209 121: "remote I/O error", 2630 {117, "EUCLEAN", "structure needs cleaning"},
2210 122: "disk quota exceeded", 2631 {118, "ENOTNAM", "not a XENIX named type file"},
2211 123: "no medium found", 2632 {119, "ENAVAIL", "no XENIX semaphores available"},
2212 124: "wrong medium type", 2633 {120, "EISNAM", "is a named type file"},
2213 125: "operation canceled", 2634 {121, "EREMOTEIO", "remote I/O error"},
2214 126: "required key not available", 2635 {122, "EDQUOT", "disk quota exceeded"},
2215 127: "key has expired", 2636 {123, "ENOMEDIUM", "no medium found"},
2216 128: "key has been revoked", 2637 {124, "EMEDIUMTYPE", "wrong medium type"},
2217 129: "key was rejected by service", 2638 {125, "ECANCELED", "operation canceled"},
2218 130: "owner died", 2639 {126, "ENOKEY", "required key not available"},
2219 131: "state not recoverable", 2640 {127, "EKEYEXPIRED", "key has expired"},
2220 132: "operation not possible due to RF-kill", 2641 {128, "EKEYREVOKED", "key has been revoked"},
2221 133: "memory page has hardware error", 2642 {129, "EKEYREJECTED", "key was rejected by service"},
2643 {130, "EOWNERDEAD", "owner died"},
2644 {131, "ENOTRECOVERABLE", "state not recoverable"},
2645 {132, "ERFKILL", "operation not possible due to RF-kill"},
2646 {133, "EHWPOISON", "memory page has hardware error"},
2222} 2647}
2223 2648
2224// Signal table 2649// Signal table
2225var signals = [...]string{ 2650var signalList = [...]struct {
2226 1: "hangup", 2651 num syscall.Signal
2227 2: "interrupt", 2652 name string
2228 3: "quit", 2653 desc string
2229 4: "illegal instruction", 2654}{
2230 5: "trace/breakpoint trap", 2655 {1, "SIGHUP", "hangup"},
2231 6: "aborted", 2656 {2, "SIGINT", "interrupt"},
2232 7: "bus error", 2657 {3, "SIGQUIT", "quit"},
2233 8: "floating point exception", 2658 {4, "SIGILL", "illegal instruction"},
2234 9: "killed", 2659 {5, "SIGTRAP", "trace/breakpoint trap"},
2235 10: "user defined signal 1", 2660 {6, "SIGABRT", "aborted"},
2236 11: "segmentation fault", 2661 {7, "SIGBUS", "bus error"},
2237 12: "user defined signal 2", 2662 {8, "SIGFPE", "floating point exception"},
2238 13: "broken pipe", 2663 {9, "SIGKILL", "killed"},
2239 14: "alarm clock", 2664 {10, "SIGUSR1", "user defined signal 1"},
2240 15: "terminated", 2665 {11, "SIGSEGV", "segmentation fault"},
2241 16: "stack fault", 2666 {12, "SIGUSR2", "user defined signal 2"},
2242 17: "child exited", 2667 {13, "SIGPIPE", "broken pipe"},
2243 18: "continued", 2668 {14, "SIGALRM", "alarm clock"},
2244 19: "stopped (signal)", 2669 {15, "SIGTERM", "terminated"},
2245 20: "stopped", 2670 {16, "SIGSTKFLT", "stack fault"},
2246 21: "stopped (tty input)", 2671 {17, "SIGCHLD", "child exited"},
2247 22: "stopped (tty output)", 2672 {18, "SIGCONT", "continued"},
2248 23: "urgent I/O condition", 2673 {19, "SIGSTOP", "stopped (signal)"},
2249 24: "CPU time limit exceeded", 2674 {20, "SIGTSTP", "stopped"},
2250 25: "file size limit exceeded", 2675 {21, "SIGTTIN", "stopped (tty input)"},
2251 26: "virtual timer expired", 2676 {22, "SIGTTOU", "stopped (tty output)"},
2252 27: "profiling timer expired", 2677 {23, "SIGURG", "urgent I/O condition"},
2253 28: "window changed", 2678 {24, "SIGXCPU", "CPU time limit exceeded"},
2254 29: "I/O possible", 2679 {25, "SIGXFSZ", "file size limit exceeded"},
2255 30: "power failure", 2680 {26, "SIGVTALRM", "virtual timer expired"},
2256 31: "bad system call", 2681 {27, "SIGPROF", "profiling timer expired"},
2682 {28, "SIGWINCH", "window changed"},
2683 {29, "SIGIO", "I/O possible"},
2684 {30, "SIGPWR", "power failure"},
2685 {31, "SIGSYS", "bad system call"},
2257} 2686}
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 f45492d..5de2c7a 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
@@ -3,7 +3,7 @@
3 3
4// +build mips,linux 4// +build mips,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x40041270 178 BLKBSZGET = 0x40041270
167 BLKBSZSET = 0x80041271 179 BLKBSZSET = 0x80041271
168 BLKFLSBUF = 0x20001261 180 BLKFLSBUF = 0x20001261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x80 354 EFD_NONBLOCK = 0x80
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000 480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -463,6 +499,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 504 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 506 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
@@ -476,6 +514,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 514 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 515 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 519 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 520 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 521 F_EXLCK = 0x4
@@ -488,6 +528,9 @@ const (
488 F_GETOWN_EX = 0x10 528 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 529 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 534 F_LOCK = 0x1
492 F_NOTIFY = 0x402 535 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 536 F_OFD_GETLK = 0x24
@@ -495,6 +538,10 @@ const (
495 F_OFD_SETLKW = 0x26 538 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 539 F_OK = 0x0
497 F_RDLCK = 0x0 540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 545 F_SETFD = 0x2
499 F_SETFL = 0x4 546 F_SETFL = 0x4
500 F_SETLEASE = 0x400 547 F_SETLEASE = 0x400
@@ -506,6 +553,8 @@ const (
506 F_SETOWN_EX = 0xf 553 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 554 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 558 F_SHLCK = 0x8
510 F_TEST = 0x3 559 F_TEST = 0x3
511 F_TLOCK = 0x2 560 F_TLOCK = 0x2
@@ -527,6 +576,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 576 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 577 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x400 622 HUPCL = 0x400
531 IBSHIFT = 0x10 623 IBSHIFT = 0x10
532 ICANON = 0x2 624 ICANON = 0x2
@@ -546,7 +638,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 638 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 639 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 640 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 641 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 642 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 643 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 644 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +653,8 @@ const (
561 IFF_MASTER = 0x400 653 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 654 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 658 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 659 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 660 IFF_NOTRAILERS = 0x20
@@ -671,6 +765,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 765 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 766 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 769 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 770 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 771 IPV6_HOPOPTS = 0x36
@@ -775,12 +870,34 @@ const (
775 IP_UNICAST_IF = 0x32 870 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 871 IP_XFRM_POLICY = 0x11
777 ISIG = 0x1 872 ISIG = 0x1
873 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 874 ISTRIP = 0x20
779 IUCLC = 0x200 875 IUCLC = 0x200
780 IUTF8 = 0x4000 876 IUTF8 = 0x4000
781 IXANY = 0x800 877 IXANY = 0x800
782 IXOFF = 0x1000 878 IXOFF = 0x1000
783 IXON = 0x400 879 IXON = 0x400
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 901 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 902 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 903 KEYCTL_CLEAR = 0x7
@@ -845,6 +962,7 @@ const (
845 MADV_FREE = 0x8 962 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 963 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 966 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 967 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 968 MADV_NORMAL = 0x0
@@ -853,12 +971,14 @@ const (
853 MADV_SEQUENTIAL = 0x2 971 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 972 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
856 MAP_ANON = 0x800 975 MAP_ANON = 0x800
857 MAP_ANONYMOUS = 0x800 976 MAP_ANONYMOUS = 0x800
858 MAP_DENYWRITE = 0x2000 977 MAP_DENYWRITE = 0x2000
859 MAP_EXECUTABLE = 0x4000 978 MAP_EXECUTABLE = 0x4000
860 MAP_FILE = 0x0 979 MAP_FILE = 0x0
861 MAP_FIXED = 0x10 980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
862 MAP_GROWSDOWN = 0x1000 982 MAP_GROWSDOWN = 0x1000
863 MAP_HUGETLB = 0x80000 983 MAP_HUGETLB = 0x80000
864 MAP_HUGE_MASK = 0x3f 984 MAP_HUGE_MASK = 0x3f
@@ -870,14 +990,36 @@ const (
870 MAP_PRIVATE = 0x2 990 MAP_PRIVATE = 0x2
871 MAP_RENAME = 0x800 991 MAP_RENAME = 0x800
872 MAP_SHARED = 0x1 992 MAP_SHARED = 0x1
993 MAP_SHARED_VALIDATE = 0x3
873 MAP_STACK = 0x40000 994 MAP_STACK = 0x40000
874 MAP_TYPE = 0xf 995 MAP_TYPE = 0xf
875 MCL_CURRENT = 0x1 996 MCL_CURRENT = 0x1
876 MCL_FUTURE = 0x2 997 MCL_FUTURE = 0x2
877 MCL_ONFAULT = 0x4 998 MCL_ONFAULT = 0x4
999 MFD_ALLOW_SEALING = 0x2
1000 MFD_CLOEXEC = 0x1
1001 MFD_HUGETLB = 0x4
1002 MFD_HUGE_16GB = -0x78000000
1003 MFD_HUGE_16MB = 0x60000000
1004 MFD_HUGE_1GB = 0x78000000
1005 MFD_HUGE_1MB = 0x50000000
1006 MFD_HUGE_256MB = 0x70000000
1007 MFD_HUGE_2GB = 0x7c000000
1008 MFD_HUGE_2MB = 0x54000000
1009 MFD_HUGE_512KB = 0x4c000000
1010 MFD_HUGE_64KB = 0x40000000
1011 MFD_HUGE_8MB = 0x5c000000
1012 MFD_HUGE_MASK = 0x3f
1013 MFD_HUGE_SHIFT = 0x1a
1014 MINIX2_SUPER_MAGIC = 0x2468
1015 MINIX2_SUPER_MAGIC2 = 0x2478
1016 MINIX3_SUPER_MAGIC = 0x4d5a
1017 MINIX_SUPER_MAGIC = 0x137f
1018 MINIX_SUPER_MAGIC2 = 0x138f
878 MNT_DETACH = 0x2 1019 MNT_DETACH = 0x2
879 MNT_EXPIRE = 0x4 1020 MNT_EXPIRE = 0x4
880 MNT_FORCE = 0x1 1021 MNT_FORCE = 0x1
1022 MSDOS_SUPER_MAGIC = 0x4d44
881 MSG_BATCH = 0x40000 1023 MSG_BATCH = 0x40000
882 MSG_CMSG_CLOEXEC = 0x40000000 1024 MSG_CMSG_CLOEXEC = 0x40000000
883 MSG_CONFIRM = 0x800 1025 MSG_CONFIRM = 0x800
@@ -899,6 +1041,7 @@ const (
899 MSG_TRYHARD = 0x4 1041 MSG_TRYHARD = 0x4
900 MSG_WAITALL = 0x100 1042 MSG_WAITALL = 0x100
901 MSG_WAITFORONE = 0x10000 1043 MSG_WAITFORONE = 0x10000
1044 MSG_ZEROCOPY = 0x4000000
902 MS_ACTIVE = 0x40000000 1045 MS_ACTIVE = 0x40000000
903 MS_ASYNC = 0x1 1046 MS_ASYNC = 0x1
904 MS_BIND = 0x1000 1047 MS_BIND = 0x1000
@@ -936,7 +1079,9 @@ const (
936 MS_SYNCHRONOUS = 0x10 1079 MS_SYNCHRONOUS = 0x10
937 MS_UNBINDABLE = 0x20000 1080 MS_UNBINDABLE = 0x20000
938 MS_VERBOSE = 0x8000 1081 MS_VERBOSE = 0x8000
1082 MTD_INODE_FS_MAGIC = 0x11307854
939 NAME_MAX = 0xff 1083 NAME_MAX = 0xff
1084 NCP_SUPER_MAGIC = 0x564c
940 NETLINK_ADD_MEMBERSHIP = 0x1 1085 NETLINK_ADD_MEMBERSHIP = 0x1
941 NETLINK_AUDIT = 0x9 1086 NETLINK_AUDIT = 0x9
942 NETLINK_BROADCAST_ERROR = 0x4 1087 NETLINK_BROADCAST_ERROR = 0x4
@@ -971,6 +1116,39 @@ const (
971 NETLINK_UNUSED = 0x1 1116 NETLINK_UNUSED = 0x1
972 NETLINK_USERSOCK = 0x2 1117 NETLINK_USERSOCK = 0x2
973 NETLINK_XFRM = 0x6 1118 NETLINK_XFRM = 0x6
1119 NETNSA_MAX = 0x3
1120 NETNSA_NSID_NOT_ASSIGNED = -0x1
1121 NFNETLINK_V0 = 0x0
1122 NFNLGRP_ACCT_QUOTA = 0x8
1123 NFNLGRP_CONNTRACK_DESTROY = 0x3
1124 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1125 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1126 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1127 NFNLGRP_CONNTRACK_NEW = 0x1
1128 NFNLGRP_CONNTRACK_UPDATE = 0x2
1129 NFNLGRP_MAX = 0x9
1130 NFNLGRP_NFTABLES = 0x7
1131 NFNLGRP_NFTRACE = 0x9
1132 NFNLGRP_NONE = 0x0
1133 NFNL_BATCH_MAX = 0x1
1134 NFNL_MSG_BATCH_BEGIN = 0x10
1135 NFNL_MSG_BATCH_END = 0x11
1136 NFNL_NFA_NEST = 0x8000
1137 NFNL_SUBSYS_ACCT = 0x7
1138 NFNL_SUBSYS_COUNT = 0xc
1139 NFNL_SUBSYS_CTHELPER = 0x9
1140 NFNL_SUBSYS_CTNETLINK = 0x1
1141 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1142 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1143 NFNL_SUBSYS_IPSET = 0x6
1144 NFNL_SUBSYS_NFTABLES = 0xa
1145 NFNL_SUBSYS_NFT_COMPAT = 0xb
1146 NFNL_SUBSYS_NONE = 0x0
1147 NFNL_SUBSYS_OSF = 0x5
1148 NFNL_SUBSYS_QUEUE = 0x3
1149 NFNL_SUBSYS_ULOG = 0x4
1150 NFS_SUPER_MAGIC = 0x6969
1151 NILFS_SUPER_MAGIC = 0x3434
974 NL0 = 0x0 1152 NL0 = 0x0
975 NL1 = 0x100 1153 NL1 = 0x100
976 NLA_ALIGNTO = 0x4 1154 NLA_ALIGNTO = 0x4
@@ -998,10 +1176,13 @@ const (
998 NLM_F_EXCL = 0x200 1176 NLM_F_EXCL = 0x200
999 NLM_F_MATCH = 0x200 1177 NLM_F_MATCH = 0x200
1000 NLM_F_MULTI = 0x2 1178 NLM_F_MULTI = 0x2
1179 NLM_F_NONREC = 0x100
1001 NLM_F_REPLACE = 0x100 1180 NLM_F_REPLACE = 0x100
1002 NLM_F_REQUEST = 0x1 1181 NLM_F_REQUEST = 0x1
1003 NLM_F_ROOT = 0x100 1182 NLM_F_ROOT = 0x100
1004 NOFLSH = 0x80 1183 NOFLSH = 0x80
1184 NSFS_MAGIC = 0x6e736673
1185 OCFS2_SUPER_MAGIC = 0x7461636f
1005 OCRNL = 0x8 1186 OCRNL = 0x8
1006 OFDEL = 0x80 1187 OFDEL = 0x80
1007 OFILL = 0x40 1188 OFILL = 0x40
@@ -1009,7 +1190,9 @@ const (
1009 ONLCR = 0x4 1190 ONLCR = 0x4
1010 ONLRET = 0x20 1191 ONLRET = 0x20
1011 ONOCR = 0x10 1192 ONOCR = 0x10
1193 OPENPROM_SUPER_MAGIC = 0x9fa1
1012 OPOST = 0x1 1194 OPOST = 0x1
1195 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1013 O_ACCMODE = 0x3 1196 O_ACCMODE = 0x3
1014 O_APPEND = 0x8 1197 O_APPEND = 0x8
1015 O_ASYNC = 0x1000 1198 O_ASYNC = 0x1000
@@ -1094,16 +1277,20 @@ const (
1094 PERF_EVENT_IOC_DISABLE = 0x20002401 1277 PERF_EVENT_IOC_DISABLE = 0x20002401
1095 PERF_EVENT_IOC_ENABLE = 0x20002400 1278 PERF_EVENT_IOC_ENABLE = 0x20002400
1096 PERF_EVENT_IOC_ID = 0x40042407 1279 PERF_EVENT_IOC_ID = 0x40042407
1280 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b
1097 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 1281 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
1098 PERF_EVENT_IOC_PERIOD = 0x80082404 1282 PERF_EVENT_IOC_PERIOD = 0x80082404
1283 PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
1099 PERF_EVENT_IOC_REFRESH = 0x20002402 1284 PERF_EVENT_IOC_REFRESH = 0x20002402
1100 PERF_EVENT_IOC_RESET = 0x20002403 1285 PERF_EVENT_IOC_RESET = 0x20002403
1101 PERF_EVENT_IOC_SET_BPF = 0x80042408 1286 PERF_EVENT_IOC_SET_BPF = 0x80042408
1102 PERF_EVENT_IOC_SET_FILTER = 0x80042406 1287 PERF_EVENT_IOC_SET_FILTER = 0x80042406
1103 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 1288 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
1289 PIPEFS_MAGIC = 0x50495045
1104 PRIO_PGRP = 0x1 1290 PRIO_PGRP = 0x1
1105 PRIO_PROCESS = 0x0 1291 PRIO_PROCESS = 0x0
1106 PRIO_USER = 0x2 1292 PRIO_USER = 0x2
1293 PROC_SUPER_MAGIC = 0x9fa0
1107 PROT_EXEC = 0x4 1294 PROT_EXEC = 0x4
1108 PROT_GROWSDOWN = 0x1000000 1295 PROT_GROWSDOWN = 0x1000000
1109 PROT_GROWSUP = 0x2000000 1296 PROT_GROWSUP = 0x2000000
@@ -1146,6 +1333,7 @@ const (
1146 PR_GET_PDEATHSIG = 0x2 1333 PR_GET_PDEATHSIG = 0x2
1147 PR_GET_SECCOMP = 0x15 1334 PR_GET_SECCOMP = 0x15
1148 PR_GET_SECUREBITS = 0x1b 1335 PR_GET_SECUREBITS = 0x1b
1336 PR_GET_SPECULATION_CTRL = 0x34
1149 PR_GET_THP_DISABLE = 0x2a 1337 PR_GET_THP_DISABLE = 0x2a
1150 PR_GET_TID_ADDRESS = 0x28 1338 PR_GET_TID_ADDRESS = 0x28
1151 PR_GET_TIMERSLACK = 0x1e 1339 PR_GET_TIMERSLACK = 0x1e
@@ -1191,11 +1379,23 @@ const (
1191 PR_SET_PTRACER_ANY = 0xffffffff 1379 PR_SET_PTRACER_ANY = 0xffffffff
1192 PR_SET_SECCOMP = 0x16 1380 PR_SET_SECCOMP = 0x16
1193 PR_SET_SECUREBITS = 0x1c 1381 PR_SET_SECUREBITS = 0x1c
1382 PR_SET_SPECULATION_CTRL = 0x35
1194 PR_SET_THP_DISABLE = 0x29 1383 PR_SET_THP_DISABLE = 0x29
1195 PR_SET_TIMERSLACK = 0x1d 1384 PR_SET_TIMERSLACK = 0x1d
1196 PR_SET_TIMING = 0xe 1385 PR_SET_TIMING = 0xe
1197 PR_SET_TSC = 0x1a 1386 PR_SET_TSC = 0x1a
1198 PR_SET_UNALIGN = 0x6 1387 PR_SET_UNALIGN = 0x6
1388 PR_SPEC_DISABLE = 0x4
1389 PR_SPEC_ENABLE = 0x2
1390 PR_SPEC_FORCE_DISABLE = 0x8
1391 PR_SPEC_NOT_AFFECTED = 0x0
1392 PR_SPEC_PRCTL = 0x1
1393 PR_SPEC_STORE_BYPASS = 0x0
1394 PR_SVE_GET_VL = 0x33
1395 PR_SVE_SET_VL = 0x32
1396 PR_SVE_SET_VL_ONEXEC = 0x40000
1397 PR_SVE_VL_INHERIT = 0x20000
1398 PR_SVE_VL_LEN_MASK = 0xffff
1199 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1399 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1200 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1400 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1201 PR_TIMING_STATISTICAL = 0x0 1401 PR_TIMING_STATISTICAL = 0x0
@@ -1204,6 +1404,7 @@ const (
1204 PR_TSC_SIGSEGV = 0x2 1404 PR_TSC_SIGSEGV = 0x2
1205 PR_UNALIGN_NOPRINT = 0x1 1405 PR_UNALIGN_NOPRINT = 0x1
1206 PR_UNALIGN_SIGBUS = 0x2 1406 PR_UNALIGN_SIGBUS = 0x2
1407 PSTOREFS_MAGIC = 0x6165676c
1207 PTRACE_ATTACH = 0x10 1408 PTRACE_ATTACH = 0x10
1208 PTRACE_CONT = 0x7 1409 PTRACE_CONT = 0x7
1209 PTRACE_DETACH = 0x11 1410 PTRACE_DETACH = 0x11
@@ -1252,6 +1453,7 @@ const (
1252 PTRACE_POKETEXT_3264 = 0xc2 1453 PTRACE_POKETEXT_3264 = 0xc2
1253 PTRACE_POKEUSR = 0x6 1454 PTRACE_POKEUSR = 0x6
1254 PTRACE_SECCOMP_GET_FILTER = 0x420c 1455 PTRACE_SECCOMP_GET_FILTER = 0x420c
1456 PTRACE_SECCOMP_GET_METADATA = 0x420d
1255 PTRACE_SEIZE = 0x4206 1457 PTRACE_SEIZE = 0x4206
1256 PTRACE_SETFPREGS = 0xf 1458 PTRACE_SETFPREGS = 0xf
1257 PTRACE_SETOPTIONS = 0x4200 1459 PTRACE_SETOPTIONS = 0x4200
@@ -1264,6 +1466,14 @@ const (
1264 PTRACE_SINGLESTEP = 0x9 1466 PTRACE_SINGLESTEP = 0x9
1265 PTRACE_SYSCALL = 0x18 1467 PTRACE_SYSCALL = 0x18
1266 PTRACE_TRACEME = 0x0 1468 PTRACE_TRACEME = 0x0
1469 QNX4_SUPER_MAGIC = 0x2f
1470 QNX6_SUPER_MAGIC = 0x68191122
1471 RAMFS_MAGIC = 0x858458f6
1472 RDTGROUP_SUPER_MAGIC = 0x7655821
1473 REISERFS_SUPER_MAGIC = 0x52654973
1474 RENAME_EXCHANGE = 0x2
1475 RENAME_NOREPLACE = 0x1
1476 RENAME_WHITEOUT = 0x4
1267 RLIMIT_AS = 0x6 1477 RLIMIT_AS = 0x6
1268 RLIMIT_CORE = 0x4 1478 RLIMIT_CORE = 0x4
1269 RLIMIT_CPU = 0x0 1479 RLIMIT_CPU = 0x0
@@ -1284,6 +1494,7 @@ const (
1284 RTAX_ADVMSS = 0x8 1494 RTAX_ADVMSS = 0x8
1285 RTAX_CC_ALGO = 0x10 1495 RTAX_CC_ALGO = 0x10
1286 RTAX_CWND = 0x7 1496 RTAX_CWND = 0x7
1497 RTAX_FASTOPEN_NO_COOKIE = 0x11
1287 RTAX_FEATURES = 0xc 1498 RTAX_FEATURES = 0xc
1288 RTAX_FEATURE_ALLFRAG = 0x8 1499 RTAX_FEATURE_ALLFRAG = 0x8
1289 RTAX_FEATURE_ECN = 0x1 1500 RTAX_FEATURE_ECN = 0x1
@@ -1294,7 +1505,7 @@ const (
1294 RTAX_INITCWND = 0xb 1505 RTAX_INITCWND = 0xb
1295 RTAX_INITRWND = 0xe 1506 RTAX_INITRWND = 0xe
1296 RTAX_LOCK = 0x1 1507 RTAX_LOCK = 0x1
1297 RTAX_MAX = 0x10 1508 RTAX_MAX = 0x11
1298 RTAX_MTU = 0x2 1509 RTAX_MTU = 0x2
1299 RTAX_QUICKACK = 0xf 1510 RTAX_QUICKACK = 0xf
1300 RTAX_REORDERING = 0x9 1511 RTAX_REORDERING = 0x9
@@ -1305,13 +1516,40 @@ const (
1305 RTAX_UNSPEC = 0x0 1516 RTAX_UNSPEC = 0x0
1306 RTAX_WINDOW = 0x3 1517 RTAX_WINDOW = 0x3
1307 RTA_ALIGNTO = 0x4 1518 RTA_ALIGNTO = 0x4
1308 RTA_MAX = 0x1a 1519 RTA_MAX = 0x1d
1309 RTCF_DIRECTSRC = 0x4000000 1520 RTCF_DIRECTSRC = 0x4000000
1310 RTCF_DOREDIRECT = 0x1000000 1521 RTCF_DOREDIRECT = 0x1000000
1311 RTCF_LOG = 0x2000000 1522 RTCF_LOG = 0x2000000
1312 RTCF_MASQ = 0x400000 1523 RTCF_MASQ = 0x400000
1313 RTCF_NAT = 0x800000 1524 RTCF_NAT = 0x800000
1314 RTCF_VALVE = 0x200000 1525 RTCF_VALVE = 0x200000
1526 RTC_AF = 0x20
1527 RTC_AIE_OFF = 0x20007002
1528 RTC_AIE_ON = 0x20007001
1529 RTC_ALM_READ = 0x40247008
1530 RTC_ALM_SET = 0x80247007
1531 RTC_EPOCH_READ = 0x4004700d
1532 RTC_EPOCH_SET = 0x8004700e
1533 RTC_IRQF = 0x80
1534 RTC_IRQP_READ = 0x4004700b
1535 RTC_IRQP_SET = 0x8004700c
1536 RTC_MAX_FREQ = 0x2000
1537 RTC_PF = 0x40
1538 RTC_PIE_OFF = 0x20007006
1539 RTC_PIE_ON = 0x20007005
1540 RTC_PLL_GET = 0x401c7011
1541 RTC_PLL_SET = 0x801c7012
1542 RTC_RD_TIME = 0x40247009
1543 RTC_SET_TIME = 0x8024700a
1544 RTC_UF = 0x10
1545 RTC_UIE_OFF = 0x20007004
1546 RTC_UIE_ON = 0x20007003
1547 RTC_VL_CLR = 0x20007014
1548 RTC_VL_READ = 0x40047013
1549 RTC_WIE_OFF = 0x20007010
1550 RTC_WIE_ON = 0x2000700f
1551 RTC_WKALM_RD = 0x40287010
1552 RTC_WKALM_SET = 0x8028700f
1315 RTF_ADDRCLASSMASK = 0xf8000000 1553 RTF_ADDRCLASSMASK = 0xf8000000
1316 RTF_ADDRCONF = 0x40000 1554 RTF_ADDRCONF = 0x40000
1317 RTF_ALLONLINK = 0x20000 1555 RTF_ALLONLINK = 0x20000
@@ -1414,17 +1652,22 @@ const (
1414 RTNH_F_UNRESOLVED = 0x20 1652 RTNH_F_UNRESOLVED = 0x20
1415 RTN_MAX = 0xb 1653 RTN_MAX = 0xb
1416 RTPROT_BABEL = 0x2a 1654 RTPROT_BABEL = 0x2a
1655 RTPROT_BGP = 0xba
1417 RTPROT_BIRD = 0xc 1656 RTPROT_BIRD = 0xc
1418 RTPROT_BOOT = 0x3 1657 RTPROT_BOOT = 0x3
1419 RTPROT_DHCP = 0x10 1658 RTPROT_DHCP = 0x10
1420 RTPROT_DNROUTED = 0xd 1659 RTPROT_DNROUTED = 0xd
1660 RTPROT_EIGRP = 0xc0
1421 RTPROT_GATED = 0x8 1661 RTPROT_GATED = 0x8
1662 RTPROT_ISIS = 0xbb
1422 RTPROT_KERNEL = 0x2 1663 RTPROT_KERNEL = 0x2
1423 RTPROT_MROUTED = 0x11 1664 RTPROT_MROUTED = 0x11
1424 RTPROT_MRT = 0xa 1665 RTPROT_MRT = 0xa
1425 RTPROT_NTK = 0xf 1666 RTPROT_NTK = 0xf
1667 RTPROT_OSPF = 0xbc
1426 RTPROT_RA = 0x9 1668 RTPROT_RA = 0x9
1427 RTPROT_REDIRECT = 0x1 1669 RTPROT_REDIRECT = 0x1
1670 RTPROT_RIP = 0xbd
1428 RTPROT_STATIC = 0x4 1671 RTPROT_STATIC = 0x4
1429 RTPROT_UNSPEC = 0x0 1672 RTPROT_UNSPEC = 0x0
1430 RTPROT_XORP = 0xe 1673 RTPROT_XORP = 0xe
@@ -1448,6 +1691,8 @@ const (
1448 SECCOMP_MODE_DISABLED = 0x0 1691 SECCOMP_MODE_DISABLED = 0x0
1449 SECCOMP_MODE_FILTER = 0x2 1692 SECCOMP_MODE_FILTER = 0x2
1450 SECCOMP_MODE_STRICT = 0x1 1693 SECCOMP_MODE_STRICT = 0x1
1694 SECURITYFS_MAGIC = 0x73636673
1695 SELINUX_MAGIC = 0xf97cff8c
1451 SHUT_RD = 0x0 1696 SHUT_RD = 0x0
1452 SHUT_RDWR = 0x2 1697 SHUT_RDWR = 0x2
1453 SHUT_WR = 0x1 1698 SHUT_WR = 0x1
@@ -1532,6 +1777,23 @@ const (
1532 SIOCSPGRP = 0x80047308 1777 SIOCSPGRP = 0x80047308
1533 SIOCSRARP = 0x8962 1778 SIOCSRARP = 0x8962
1534 SIOCWANDEV = 0x894a 1779 SIOCWANDEV = 0x894a
1780 SMACK_MAGIC = 0x43415d53
1781 SMART_AUTOSAVE = 0xd2
1782 SMART_AUTO_OFFLINE = 0xdb
1783 SMART_DISABLE = 0xd9
1784 SMART_ENABLE = 0xd8
1785 SMART_HCYL_PASS = 0xc2
1786 SMART_IMMEDIATE_OFFLINE = 0xd4
1787 SMART_LCYL_PASS = 0x4f
1788 SMART_READ_LOG_SECTOR = 0xd5
1789 SMART_READ_THRESHOLDS = 0xd1
1790 SMART_READ_VALUES = 0xd0
1791 SMART_SAVE = 0xd3
1792 SMART_STATUS = 0xda
1793 SMART_WRITE_LOG_SECTOR = 0xd6
1794 SMART_WRITE_THRESHOLDS = 0xd7
1795 SMB_SUPER_MAGIC = 0x517b
1796 SOCKFS_MAGIC = 0x534f434b
1535 SOCK_CLOEXEC = 0x80000 1797 SOCK_CLOEXEC = 0x80000
1536 SOCK_DCCP = 0x6 1798 SOCK_DCCP = 0x6
1537 SOCK_DGRAM = 0x1 1799 SOCK_DGRAM = 0x1
@@ -1568,7 +1830,9 @@ const (
1568 SOL_SOCKET = 0xffff 1830 SOL_SOCKET = 0xffff
1569 SOL_TCP = 0x6 1831 SOL_TCP = 0x6
1570 SOL_TIPC = 0x10f 1832 SOL_TIPC = 0x10f
1833 SOL_TLS = 0x11a
1571 SOL_X25 = 0x106 1834 SOL_X25 = 0x106
1835 SOL_XDP = 0x11b
1572 SOMAXCONN = 0x80 1836 SOMAXCONN = 0x80
1573 SO_ACCEPTCONN = 0x1009 1837 SO_ACCEPTCONN = 0x1009
1574 SO_ATTACH_BPF = 0x32 1838 SO_ATTACH_BPF = 0x32
@@ -1637,10 +1901,13 @@ const (
1637 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1901 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1638 SO_VM_SOCKETS_TRUSTED = 0x5 1902 SO_VM_SOCKETS_TRUSTED = 0x5
1639 SO_WIFI_STATUS = 0x29 1903 SO_WIFI_STATUS = 0x29
1904 SO_ZEROCOPY = 0x3c
1640 SPLICE_F_GIFT = 0x8 1905 SPLICE_F_GIFT = 0x8
1641 SPLICE_F_MORE = 0x4 1906 SPLICE_F_MORE = 0x4
1642 SPLICE_F_MOVE = 0x1 1907 SPLICE_F_MOVE = 0x1
1643 SPLICE_F_NONBLOCK = 0x2 1908 SPLICE_F_NONBLOCK = 0x2
1909 SQUASHFS_MAGIC = 0x73717368
1910 STACK_END_MAGIC = 0x57ac6e9d
1644 STATX_ALL = 0xfff 1911 STATX_ALL = 0xfff
1645 STATX_ATIME = 0x20 1912 STATX_ATIME = 0x20
1646 STATX_ATTR_APPEND = 0x20 1913 STATX_ATTR_APPEND = 0x20
@@ -1662,6 +1929,10 @@ const (
1662 STATX_TYPE = 0x1 1929 STATX_TYPE = 0x1
1663 STATX_UID = 0x8 1930 STATX_UID = 0x8
1664 STATX__RESERVED = 0x80000000 1931 STATX__RESERVED = 0x80000000
1932 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1933 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1934 SYNC_FILE_RANGE_WRITE = 0x2
1935 SYSFS_MAGIC = 0x62656572
1665 S_BLKSIZE = 0x200 1936 S_BLKSIZE = 0x200
1666 S_IEXEC = 0x40 1937 S_IEXEC = 0x40
1667 S_IFBLK = 0x6000 1938 S_IFBLK = 0x6000
@@ -1723,6 +1994,8 @@ const (
1723 TCP_DEFER_ACCEPT = 0x9 1994 TCP_DEFER_ACCEPT = 0x9
1724 TCP_FASTOPEN = 0x17 1995 TCP_FASTOPEN = 0x17
1725 TCP_FASTOPEN_CONNECT = 0x1e 1996 TCP_FASTOPEN_CONNECT = 0x1e
1997 TCP_FASTOPEN_KEY = 0x21
1998 TCP_FASTOPEN_NO_COOKIE = 0x22
1726 TCP_INFO = 0xb 1999 TCP_INFO = 0xb
1727 TCP_KEEPCNT = 0x6 2000 TCP_KEEPCNT = 0x6
1728 TCP_KEEPIDLE = 0x4 2001 TCP_KEEPIDLE = 0x4
@@ -1732,6 +2005,8 @@ const (
1732 TCP_MAXWIN = 0xffff 2005 TCP_MAXWIN = 0xffff
1733 TCP_MAX_WINSHIFT = 0xe 2006 TCP_MAX_WINSHIFT = 0xe
1734 TCP_MD5SIG = 0xe 2007 TCP_MD5SIG = 0xe
2008 TCP_MD5SIG_EXT = 0x20
2009 TCP_MD5SIG_FLAG_PREFIX = 0x1
1735 TCP_MD5SIG_MAXKEYLEN = 0x50 2010 TCP_MD5SIG_MAXKEYLEN = 0x50
1736 TCP_MSS = 0x200 2011 TCP_MSS = 0x200
1737 TCP_MSS_DEFAULT = 0x218 2012 TCP_MSS_DEFAULT = 0x218
@@ -1752,6 +2027,7 @@ const (
1752 TCP_THIN_DUPACK = 0x11 2027 TCP_THIN_DUPACK = 0x11
1753 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2028 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1754 TCP_TIMESTAMP = 0x18 2029 TCP_TIMESTAMP = 0x18
2030 TCP_ULP = 0x1f
1755 TCP_USER_TIMEOUT = 0x12 2031 TCP_USER_TIMEOUT = 0x12
1756 TCP_WINDOW_CLAMP = 0xa 2032 TCP_WINDOW_CLAMP = 0xa
1757 TCSAFLUSH = 0x5410 2033 TCSAFLUSH = 0x5410
@@ -1841,7 +2117,27 @@ const (
1841 TIOCSTI = 0x5472 2117 TIOCSTI = 0x5472
1842 TIOCSWINSZ = 0x80087467 2118 TIOCSWINSZ = 0x80087467
1843 TIOCVHANGUP = 0x5437 2119 TIOCVHANGUP = 0x5437
2120 TMPFS_MAGIC = 0x1021994
1844 TOSTOP = 0x8000 2121 TOSTOP = 0x8000
2122 TPACKET_ALIGNMENT = 0x10
2123 TPACKET_HDRLEN = 0x34
2124 TP_STATUS_AVAILABLE = 0x0
2125 TP_STATUS_BLK_TMO = 0x20
2126 TP_STATUS_COPY = 0x2
2127 TP_STATUS_CSUMNOTREADY = 0x8
2128 TP_STATUS_CSUM_VALID = 0x80
2129 TP_STATUS_KERNEL = 0x0
2130 TP_STATUS_LOSING = 0x4
2131 TP_STATUS_SENDING = 0x2
2132 TP_STATUS_SEND_REQUEST = 0x1
2133 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2134 TP_STATUS_TS_SOFTWARE = 0x20000000
2135 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2136 TP_STATUS_USER = 0x1
2137 TP_STATUS_VLAN_TPID_VALID = 0x40
2138 TP_STATUS_VLAN_VALID = 0x10
2139 TP_STATUS_WRONG_FORMAT = 0x4
2140 TRACEFS_MAGIC = 0x74726163
1845 TS_COMM_LEN = 0x20 2141 TS_COMM_LEN = 0x20
1846 TUNATTACHFILTER = 0x800854d5 2142 TUNATTACHFILTER = 0x800854d5
1847 TUNDETACHFILTER = 0x800854d6 2143 TUNDETACHFILTER = 0x800854d6
@@ -1853,6 +2149,7 @@ const (
1853 TUNGETVNETHDRSZ = 0x400454d7 2149 TUNGETVNETHDRSZ = 0x400454d7
1854 TUNGETVNETLE = 0x400454dd 2150 TUNGETVNETLE = 0x400454dd
1855 TUNSETDEBUG = 0x800454c9 2151 TUNSETDEBUG = 0x800454c9
2152 TUNSETFILTEREBPF = 0x400454e1
1856 TUNSETGROUP = 0x800454ce 2153 TUNSETGROUP = 0x800454ce
1857 TUNSETIFF = 0x800454ca 2154 TUNSETIFF = 0x800454ca
1858 TUNSETIFINDEX = 0x800454da 2155 TUNSETIFINDEX = 0x800454da
@@ -1863,13 +2160,32 @@ const (
1863 TUNSETPERSIST = 0x800454cb 2160 TUNSETPERSIST = 0x800454cb
1864 TUNSETQUEUE = 0x800454d9 2161 TUNSETQUEUE = 0x800454d9
1865 TUNSETSNDBUF = 0x800454d4 2162 TUNSETSNDBUF = 0x800454d4
2163 TUNSETSTEERINGEBPF = 0x400454e0
1866 TUNSETTXFILTER = 0x800454d1 2164 TUNSETTXFILTER = 0x800454d1
1867 TUNSETVNETBE = 0x800454de 2165 TUNSETVNETBE = 0x800454de
1868 TUNSETVNETHDRSZ = 0x800454d8 2166 TUNSETVNETHDRSZ = 0x800454d8
1869 TUNSETVNETLE = 0x800454dc 2167 TUNSETVNETLE = 0x800454dc
2168 UBI_IOCATT = 0x80186f40
2169 UBI_IOCDET = 0x80046f41
2170 UBI_IOCEBCH = 0x80044f02
2171 UBI_IOCEBER = 0x80044f01
2172 UBI_IOCEBISMAP = 0x40044f05
2173 UBI_IOCEBMAP = 0x80084f03
2174 UBI_IOCEBUNMAP = 0x80044f04
2175 UBI_IOCMKVOL = 0x80986f00
2176 UBI_IOCRMVOL = 0x80046f01
2177 UBI_IOCRNVOL = 0x91106f03
2178 UBI_IOCRSVOL = 0x800c6f02
2179 UBI_IOCSETVOLPROP = 0x80104f06
2180 UBI_IOCVOLCRBLK = 0x80804f07
2181 UBI_IOCVOLRMBLK = 0x20004f08
2182 UBI_IOCVOLUP = 0x80084f00
2183 UDF_SUPER_MAGIC = 0x15013346
1870 UMOUNT_NOFOLLOW = 0x8 2184 UMOUNT_NOFOLLOW = 0x8
2185 USBDEVICE_SUPER_MAGIC = 0x9fa2
1871 UTIME_NOW = 0x3fffffff 2186 UTIME_NOW = 0x3fffffff
1872 UTIME_OMIT = 0x3ffffffe 2187 UTIME_OMIT = 0x3ffffffe
2188 V9FS_MAGIC = 0x1021997
1873 VDISCARD = 0xd 2189 VDISCARD = 0xd
1874 VEOF = 0x10 2190 VEOF = 0x10
1875 VEOL = 0x11 2191 VEOL = 0x11
@@ -1912,6 +2228,86 @@ const (
1912 WDIOC_SETPRETIMEOUT = 0xc0045708 2228 WDIOC_SETPRETIMEOUT = 0xc0045708
1913 WDIOC_SETTIMEOUT = 0xc0045706 2229 WDIOC_SETTIMEOUT = 0xc0045706
1914 WEXITED = 0x4 2230 WEXITED = 0x4
2231 WIN_ACKMEDIACHANGE = 0xdb
2232 WIN_CHECKPOWERMODE1 = 0xe5
2233 WIN_CHECKPOWERMODE2 = 0x98
2234 WIN_DEVICE_RESET = 0x8
2235 WIN_DIAGNOSE = 0x90
2236 WIN_DOORLOCK = 0xde
2237 WIN_DOORUNLOCK = 0xdf
2238 WIN_DOWNLOAD_MICROCODE = 0x92
2239 WIN_FLUSH_CACHE = 0xe7
2240 WIN_FLUSH_CACHE_EXT = 0xea
2241 WIN_FORMAT = 0x50
2242 WIN_GETMEDIASTATUS = 0xda
2243 WIN_IDENTIFY = 0xec
2244 WIN_IDENTIFY_DMA = 0xee
2245 WIN_IDLEIMMEDIATE = 0xe1
2246 WIN_INIT = 0x60
2247 WIN_MEDIAEJECT = 0xed
2248 WIN_MULTREAD = 0xc4
2249 WIN_MULTREAD_EXT = 0x29
2250 WIN_MULTWRITE = 0xc5
2251 WIN_MULTWRITE_EXT = 0x39
2252 WIN_NOP = 0x0
2253 WIN_PACKETCMD = 0xa0
2254 WIN_PIDENTIFY = 0xa1
2255 WIN_POSTBOOT = 0xdc
2256 WIN_PREBOOT = 0xdd
2257 WIN_QUEUED_SERVICE = 0xa2
2258 WIN_READ = 0x20
2259 WIN_READDMA = 0xc8
2260 WIN_READDMA_EXT = 0x25
2261 WIN_READDMA_ONCE = 0xc9
2262 WIN_READDMA_QUEUED = 0xc7
2263 WIN_READDMA_QUEUED_EXT = 0x26
2264 WIN_READ_BUFFER = 0xe4
2265 WIN_READ_EXT = 0x24
2266 WIN_READ_LONG = 0x22
2267 WIN_READ_LONG_ONCE = 0x23
2268 WIN_READ_NATIVE_MAX = 0xf8
2269 WIN_READ_NATIVE_MAX_EXT = 0x27
2270 WIN_READ_ONCE = 0x21
2271 WIN_RECAL = 0x10
2272 WIN_RESTORE = 0x10
2273 WIN_SECURITY_DISABLE = 0xf6
2274 WIN_SECURITY_ERASE_PREPARE = 0xf3
2275 WIN_SECURITY_ERASE_UNIT = 0xf4
2276 WIN_SECURITY_FREEZE_LOCK = 0xf5
2277 WIN_SECURITY_SET_PASS = 0xf1
2278 WIN_SECURITY_UNLOCK = 0xf2
2279 WIN_SEEK = 0x70
2280 WIN_SETFEATURES = 0xef
2281 WIN_SETIDLE1 = 0xe3
2282 WIN_SETIDLE2 = 0x97
2283 WIN_SETMULT = 0xc6
2284 WIN_SET_MAX = 0xf9
2285 WIN_SET_MAX_EXT = 0x37
2286 WIN_SLEEPNOW1 = 0xe6
2287 WIN_SLEEPNOW2 = 0x99
2288 WIN_SMART = 0xb0
2289 WIN_SPECIFY = 0x91
2290 WIN_SRST = 0x8
2291 WIN_STANDBY = 0xe2
2292 WIN_STANDBY2 = 0x96
2293 WIN_STANDBYNOW1 = 0xe0
2294 WIN_STANDBYNOW2 = 0x94
2295 WIN_VERIFY = 0x40
2296 WIN_VERIFY_EXT = 0x42
2297 WIN_VERIFY_ONCE = 0x41
2298 WIN_WRITE = 0x30
2299 WIN_WRITEDMA = 0xca
2300 WIN_WRITEDMA_EXT = 0x35
2301 WIN_WRITEDMA_ONCE = 0xcb
2302 WIN_WRITEDMA_QUEUED = 0xcc
2303 WIN_WRITEDMA_QUEUED_EXT = 0x36
2304 WIN_WRITE_BUFFER = 0xe8
2305 WIN_WRITE_EXT = 0x34
2306 WIN_WRITE_LONG = 0x32
2307 WIN_WRITE_LONG_ONCE = 0x33
2308 WIN_WRITE_ONCE = 0x31
2309 WIN_WRITE_SAME = 0xe9
2310 WIN_WRITE_VERIFY = 0x3c
1915 WNOHANG = 0x1 2311 WNOHANG = 0x1
1916 WNOTHREAD = 0x20000000 2312 WNOTHREAD = 0x20000000
1917 WNOWAIT = 0x1000000 2313 WNOWAIT = 0x1000000
@@ -1921,7 +2317,29 @@ const (
1921 XATTR_CREATE = 0x1 2317 XATTR_CREATE = 0x1
1922 XATTR_REPLACE = 0x2 2318 XATTR_REPLACE = 0x2
1923 XCASE = 0x4 2319 XCASE = 0x4
2320 XDP_COPY = 0x2
2321 XDP_FLAGS_DRV_MODE = 0x4
2322 XDP_FLAGS_HW_MODE = 0x8
2323 XDP_FLAGS_MASK = 0xf
2324 XDP_FLAGS_MODES = 0xe
2325 XDP_FLAGS_SKB_MODE = 0x2
2326 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2327 XDP_MMAP_OFFSETS = 0x1
2328 XDP_PGOFF_RX_RING = 0x0
2329 XDP_PGOFF_TX_RING = 0x80000000
2330 XDP_RX_RING = 0x2
2331 XDP_SHARED_UMEM = 0x1
2332 XDP_STATISTICS = 0x7
2333 XDP_TX_RING = 0x3
2334 XDP_UMEM_COMPLETION_RING = 0x6
2335 XDP_UMEM_FILL_RING = 0x5
2336 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2337 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2338 XDP_UMEM_REG = 0x4
2339 XDP_ZEROCOPY = 0x4
2340 XENFS_SUPER_MAGIC = 0xabba1974
1924 XTABS = 0x1800 2341 XTABS = 0x1800
2342 ZSMALLOC_MAGIC = 0x58295829
1925) 2343)
1926 2344
1927// Errors 2345// Errors
@@ -2103,174 +2521,182 @@ const (
2103) 2521)
2104 2522
2105// Error table 2523// Error table
2106var errors = [...]string{ 2524var errorList = [...]struct {
2107 1: "operation not permitted", 2525 num syscall.Errno
2108 2: "no such file or directory", 2526 name string
2109 3: "no such process", 2527 desc string
2110 4: "interrupted system call", 2528}{
2111 5: "input/output error", 2529 {1, "EPERM", "operation not permitted"},
2112 6: "no such device or address", 2530 {2, "ENOENT", "no such file or directory"},
2113 7: "argument list too long", 2531 {3, "ESRCH", "no such process"},
2114 8: "exec format error", 2532 {4, "EINTR", "interrupted system call"},
2115 9: "bad file descriptor", 2533 {5, "EIO", "input/output error"},
2116 10: "no child processes", 2534 {6, "ENXIO", "no such device or address"},
2117 11: "resource temporarily unavailable", 2535 {7, "E2BIG", "argument list too long"},
2118 12: "cannot allocate memory", 2536 {8, "ENOEXEC", "exec format error"},
2119 13: "permission denied", 2537 {9, "EBADF", "bad file descriptor"},
2120 14: "bad address", 2538 {10, "ECHILD", "no child processes"},
2121 15: "block device required", 2539 {11, "EAGAIN", "resource temporarily unavailable"},
2122 16: "device or resource busy", 2540 {12, "ENOMEM", "cannot allocate memory"},
2123 17: "file exists", 2541 {13, "EACCES", "permission denied"},
2124 18: "invalid cross-device link", 2542 {14, "EFAULT", "bad address"},
2125 19: "no such device", 2543 {15, "ENOTBLK", "block device required"},
2126 20: "not a directory", 2544 {16, "EBUSY", "device or resource busy"},
2127 21: "is a directory", 2545 {17, "EEXIST", "file exists"},
2128 22: "invalid argument", 2546 {18, "EXDEV", "invalid cross-device link"},
2129 23: "too many open files in system", 2547 {19, "ENODEV", "no such device"},
2130 24: "too many open files", 2548 {20, "ENOTDIR", "not a directory"},
2131 25: "inappropriate ioctl for device", 2549 {21, "EISDIR", "is a directory"},
2132 26: "text file busy", 2550 {22, "EINVAL", "invalid argument"},
2133 27: "file too large", 2551 {23, "ENFILE", "too many open files in system"},
2134 28: "no space left on device", 2552 {24, "EMFILE", "too many open files"},
2135 29: "illegal seek", 2553 {25, "ENOTTY", "inappropriate ioctl for device"},
2136 30: "read-only file system", 2554 {26, "ETXTBSY", "text file busy"},
2137 31: "too many links", 2555 {27, "EFBIG", "file too large"},
2138 32: "broken pipe", 2556 {28, "ENOSPC", "no space left on device"},
2139 33: "numerical argument out of domain", 2557 {29, "ESPIPE", "illegal seek"},
2140 34: "numerical result out of range", 2558 {30, "EROFS", "read-only file system"},
2141 35: "no message of desired type", 2559 {31, "EMLINK", "too many links"},
2142 36: "identifier removed", 2560 {32, "EPIPE", "broken pipe"},
2143 37: "channel number out of range", 2561 {33, "EDOM", "numerical argument out of domain"},
2144 38: "level 2 not synchronized", 2562 {34, "ERANGE", "numerical result out of range"},
2145 39: "level 3 halted", 2563 {35, "ENOMSG", "no message of desired type"},
2146 40: "level 3 reset", 2564 {36, "EIDRM", "identifier removed"},
2147 41: "link number out of range", 2565 {37, "ECHRNG", "channel number out of range"},
2148 42: "protocol driver not attached", 2566 {38, "EL2NSYNC", "level 2 not synchronized"},
2149 43: "no CSI structure available", 2567 {39, "EL3HLT", "level 3 halted"},
2150 44: "level 2 halted", 2568 {40, "EL3RST", "level 3 reset"},
2151 45: "resource deadlock avoided", 2569 {41, "ELNRNG", "link number out of range"},
2152 46: "no locks available", 2570 {42, "EUNATCH", "protocol driver not attached"},
2153 50: "invalid exchange", 2571 {43, "ENOCSI", "no CSI structure available"},
2154 51: "invalid request descriptor", 2572 {44, "EL2HLT", "level 2 halted"},
2155 52: "exchange full", 2573 {45, "EDEADLK", "resource deadlock avoided"},
2156 53: "no anode", 2574 {46, "ENOLCK", "no locks available"},
2157 54: "invalid request code", 2575 {50, "EBADE", "invalid exchange"},
2158 55: "invalid slot", 2576 {51, "EBADR", "invalid request descriptor"},
2159 56: "file locking deadlock error", 2577 {52, "EXFULL", "exchange full"},
2160 59: "bad font file format", 2578 {53, "ENOANO", "no anode"},
2161 60: "device not a stream", 2579 {54, "EBADRQC", "invalid request code"},
2162 61: "no data available", 2580 {55, "EBADSLT", "invalid slot"},
2163 62: "timer expired", 2581 {56, "EDEADLOCK", "file locking deadlock error"},
2164 63: "out of streams resources", 2582 {59, "EBFONT", "bad font file format"},
2165 64: "machine is not on the network", 2583 {60, "ENOSTR", "device not a stream"},
2166 65: "package not installed", 2584 {61, "ENODATA", "no data available"},
2167 66: "object is remote", 2585 {62, "ETIME", "timer expired"},
2168 67: "link has been severed", 2586 {63, "ENOSR", "out of streams resources"},
2169 68: "advertise error", 2587 {64, "ENONET", "machine is not on the network"},
2170 69: "srmount error", 2588 {65, "ENOPKG", "package not installed"},
2171 70: "communication error on send", 2589 {66, "EREMOTE", "object is remote"},
2172 71: "protocol error", 2590 {67, "ENOLINK", "link has been severed"},
2173 73: "RFS specific error", 2591 {68, "EADV", "advertise error"},
2174 74: "multihop attempted", 2592 {69, "ESRMNT", "srmount error"},
2175 77: "bad message", 2593 {70, "ECOMM", "communication error on send"},
2176 78: "file name too long", 2594 {71, "EPROTO", "protocol error"},
2177 79: "value too large for defined data type", 2595 {73, "EDOTDOT", "RFS specific error"},
2178 80: "name not unique on network", 2596 {74, "EMULTIHOP", "multihop attempted"},
2179 81: "file descriptor in bad state", 2597 {77, "EBADMSG", "bad message"},
2180 82: "remote address changed", 2598 {78, "ENAMETOOLONG", "file name too long"},
2181 83: "can not access a needed shared library", 2599 {79, "EOVERFLOW", "value too large for defined data type"},
2182 84: "accessing a corrupted shared library", 2600 {80, "ENOTUNIQ", "name not unique on network"},
2183 85: ".lib section in a.out corrupted", 2601 {81, "EBADFD", "file descriptor in bad state"},
2184 86: "attempting to link in too many shared libraries", 2602 {82, "EREMCHG", "remote address changed"},
2185 87: "cannot exec a shared library directly", 2603 {83, "ELIBACC", "can not access a needed shared library"},
2186 88: "invalid or incomplete multibyte or wide character", 2604 {84, "ELIBBAD", "accessing a corrupted shared library"},
2187 89: "function not implemented", 2605 {85, "ELIBSCN", ".lib section in a.out corrupted"},
2188 90: "too many levels of symbolic links", 2606 {86, "ELIBMAX", "attempting to link in too many shared libraries"},
2189 91: "interrupted system call should be restarted", 2607 {87, "ELIBEXEC", "cannot exec a shared library directly"},
2190 92: "streams pipe error", 2608 {88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2191 93: "directory not empty", 2609 {89, "ENOSYS", "function not implemented"},
2192 94: "too many users", 2610 {90, "ELOOP", "too many levels of symbolic links"},
2193 95: "socket operation on non-socket", 2611 {91, "ERESTART", "interrupted system call should be restarted"},
2194 96: "destination address required", 2612 {92, "ESTRPIPE", "streams pipe error"},
2195 97: "message too long", 2613 {93, "ENOTEMPTY", "directory not empty"},
2196 98: "protocol wrong type for socket", 2614 {94, "EUSERS", "too many users"},
2197 99: "protocol not available", 2615 {95, "ENOTSOCK", "socket operation on non-socket"},
2198 120: "protocol not supported", 2616 {96, "EDESTADDRREQ", "destination address required"},
2199 121: "socket type not supported", 2617 {97, "EMSGSIZE", "message too long"},
2200 122: "operation not supported", 2618 {98, "EPROTOTYPE", "protocol wrong type for socket"},
2201 123: "protocol family not supported", 2619 {99, "ENOPROTOOPT", "protocol not available"},
2202 124: "address family not supported by protocol", 2620 {120, "EPROTONOSUPPORT", "protocol not supported"},
2203 125: "address already in use", 2621 {121, "ESOCKTNOSUPPORT", "socket type not supported"},
2204 126: "cannot assign requested address", 2622 {122, "ENOTSUP", "operation not supported"},
2205 127: "network is down", 2623 {123, "EPFNOSUPPORT", "protocol family not supported"},
2206 128: "network is unreachable", 2624 {124, "EAFNOSUPPORT", "address family not supported by protocol"},
2207 129: "network dropped connection on reset", 2625 {125, "EADDRINUSE", "address already in use"},
2208 130: "software caused connection abort", 2626 {126, "EADDRNOTAVAIL", "cannot assign requested address"},
2209 131: "connection reset by peer", 2627 {127, "ENETDOWN", "network is down"},
2210 132: "no buffer space available", 2628 {128, "ENETUNREACH", "network is unreachable"},
2211 133: "transport endpoint is already connected", 2629 {129, "ENETRESET", "network dropped connection on reset"},
2212 134: "transport endpoint is not connected", 2630 {130, "ECONNABORTED", "software caused connection abort"},
2213 135: "structure needs cleaning", 2631 {131, "ECONNRESET", "connection reset by peer"},
2214 137: "not a XENIX named type file", 2632 {132, "ENOBUFS", "no buffer space available"},
2215 138: "no XENIX semaphores available", 2633 {133, "EISCONN", "transport endpoint is already connected"},
2216 139: "is a named type file", 2634 {134, "ENOTCONN", "transport endpoint is not connected"},
2217 140: "remote I/O error", 2635 {135, "EUCLEAN", "structure needs cleaning"},
2218 141: "unknown error 141", 2636 {137, "ENOTNAM", "not a XENIX named type file"},
2219 142: "unknown error 142", 2637 {138, "ENAVAIL", "no XENIX semaphores available"},
2220 143: "cannot send after transport endpoint shutdown", 2638 {139, "EISNAM", "is a named type file"},
2221 144: "too many references: cannot splice", 2639 {140, "EREMOTEIO", "remote I/O error"},
2222 145: "connection timed out", 2640 {141, "EINIT", "unknown error 141"},
2223 146: "connection refused", 2641 {142, "EREMDEV", "unknown error 142"},
2224 147: "host is down", 2642 {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2225 148: "no route to host", 2643 {144, "ETOOMANYREFS", "too many references: cannot splice"},
2226 149: "operation already in progress", 2644 {145, "ETIMEDOUT", "connection timed out"},
2227 150: "operation now in progress", 2645 {146, "ECONNREFUSED", "connection refused"},
2228 151: "stale file handle", 2646 {147, "EHOSTDOWN", "host is down"},
2229 158: "operation canceled", 2647 {148, "EHOSTUNREACH", "no route to host"},
2230 159: "no medium found", 2648 {149, "EALREADY", "operation already in progress"},
2231 160: "wrong medium type", 2649 {150, "EINPROGRESS", "operation now in progress"},
2232 161: "required key not available", 2650 {151, "ESTALE", "stale file handle"},
2233 162: "key has expired", 2651 {158, "ECANCELED", "operation canceled"},
2234 163: "key has been revoked", 2652 {159, "ENOMEDIUM", "no medium found"},
2235 164: "key was rejected by service", 2653 {160, "EMEDIUMTYPE", "wrong medium type"},
2236 165: "owner died", 2654 {161, "ENOKEY", "required key not available"},
2237 166: "state not recoverable", 2655 {162, "EKEYEXPIRED", "key has expired"},
2238 167: "operation not possible due to RF-kill", 2656 {163, "EKEYREVOKED", "key has been revoked"},
2239 168: "memory page has hardware error", 2657 {164, "EKEYREJECTED", "key was rejected by service"},
2240 1133: "disk quota exceeded", 2658 {165, "EOWNERDEAD", "owner died"},
2659 {166, "ENOTRECOVERABLE", "state not recoverable"},
2660 {167, "ERFKILL", "operation not possible due to RF-kill"},
2661 {168, "EHWPOISON", "memory page has hardware error"},
2662 {1133, "EDQUOT", "disk quota exceeded"},
2241} 2663}
2242 2664
2243// Signal table 2665// Signal table
2244var signals = [...]string{ 2666var signalList = [...]struct {
2245 1: "hangup", 2667 num syscall.Signal
2246 2: "interrupt", 2668 name string
2247 3: "quit", 2669 desc string
2248 4: "illegal instruction", 2670}{
2249 5: "trace/breakpoint trap", 2671 {1, "SIGHUP", "hangup"},
2250 6: "aborted", 2672 {2, "SIGINT", "interrupt"},
2251 7: "EMT trap", 2673 {3, "SIGQUIT", "quit"},
2252 8: "floating point exception", 2674 {4, "SIGILL", "illegal instruction"},
2253 9: "killed", 2675 {5, "SIGTRAP", "trace/breakpoint trap"},
2254 10: "bus error", 2676 {6, "SIGABRT", "aborted"},
2255 11: "segmentation fault", 2677 {7, "SIGEMT", "EMT trap"},
2256 12: "bad system call", 2678 {8, "SIGFPE", "floating point exception"},
2257 13: "broken pipe", 2679 {9, "SIGKILL", "killed"},
2258 14: "alarm clock", 2680 {10, "SIGBUS", "bus error"},
2259 15: "terminated", 2681 {11, "SIGSEGV", "segmentation fault"},
2260 16: "user defined signal 1", 2682 {12, "SIGSYS", "bad system call"},
2261 17: "user defined signal 2", 2683 {13, "SIGPIPE", "broken pipe"},
2262 18: "child exited", 2684 {14, "SIGALRM", "alarm clock"},
2263 19: "power failure", 2685 {15, "SIGTERM", "terminated"},
2264 20: "window changed", 2686 {16, "SIGUSR1", "user defined signal 1"},
2265 21: "urgent I/O condition", 2687 {17, "SIGUSR2", "user defined signal 2"},
2266 22: "I/O possible", 2688 {18, "SIGCHLD", "child exited"},
2267 23: "stopped (signal)", 2689 {19, "SIGPWR", "power failure"},
2268 24: "stopped", 2690 {20, "SIGWINCH", "window changed"},
2269 25: "continued", 2691 {21, "SIGURG", "urgent I/O condition"},
2270 26: "stopped (tty input)", 2692 {22, "SIGIO", "I/O possible"},
2271 27: "stopped (tty output)", 2693 {23, "SIGSTOP", "stopped (signal)"},
2272 28: "virtual timer expired", 2694 {24, "SIGTSTP", "stopped"},
2273 29: "profiling timer expired", 2695 {25, "SIGCONT", "continued"},
2274 30: "CPU time limit exceeded", 2696 {26, "SIGTTIN", "stopped (tty input)"},
2275 31: "file size limit exceeded", 2697 {27, "SIGTTOU", "stopped (tty output)"},
2698 {28, "SIGVTALRM", "virtual timer expired"},
2699 {29, "SIGPROF", "profiling timer expired"},
2700 {30, "SIGXCPU", "CPU time limit exceeded"},
2701 {31, "SIGXFSZ", "file size limit exceeded"},
2276} 2702}
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 f5a64fb..51015f3 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
@@ -3,7 +3,7 @@
3 3
4// +build mips64,linux 4// +build mips64,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x40081270 178 BLKBSZGET = 0x40081270
167 BLKBSZSET = 0x80081271 179 BLKBSZSET = 0x80081271
168 BLKFLSBUF = 0x20001261 180 BLKFLSBUF = 0x20001261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x80 354 EFD_NONBLOCK = 0x80
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000 480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -463,6 +499,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 504 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 506 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
@@ -476,6 +514,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 514 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 515 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 519 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 520 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 521 F_EXLCK = 0x4
@@ -488,6 +528,9 @@ const (
488 F_GETOWN_EX = 0x10 528 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 529 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 534 F_LOCK = 0x1
492 F_NOTIFY = 0x402 535 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 536 F_OFD_GETLK = 0x24
@@ -495,6 +538,10 @@ const (
495 F_OFD_SETLKW = 0x26 538 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 539 F_OK = 0x0
497 F_RDLCK = 0x0 540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 545 F_SETFD = 0x2
499 F_SETFL = 0x4 546 F_SETFL = 0x4
500 F_SETLEASE = 0x400 547 F_SETLEASE = 0x400
@@ -506,6 +553,8 @@ const (
506 F_SETOWN_EX = 0xf 553 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 554 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 558 F_SHLCK = 0x8
510 F_TEST = 0x3 559 F_TEST = 0x3
511 F_TLOCK = 0x2 560 F_TLOCK = 0x2
@@ -527,6 +576,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 576 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 577 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x400 622 HUPCL = 0x400
531 IBSHIFT = 0x10 623 IBSHIFT = 0x10
532 ICANON = 0x2 624 ICANON = 0x2
@@ -546,7 +638,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 638 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 639 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 640 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 641 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 642 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 643 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 644 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +653,8 @@ const (
561 IFF_MASTER = 0x400 653 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 654 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 658 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 659 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 660 IFF_NOTRAILERS = 0x20
@@ -671,6 +765,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 765 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 766 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 769 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 770 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 771 IPV6_HOPOPTS = 0x36
@@ -775,12 +870,34 @@ const (
775 IP_UNICAST_IF = 0x32 870 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 871 IP_XFRM_POLICY = 0x11
777 ISIG = 0x1 872 ISIG = 0x1
873 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 874 ISTRIP = 0x20
779 IUCLC = 0x200 875 IUCLC = 0x200
780 IUTF8 = 0x4000 876 IUTF8 = 0x4000
781 IXANY = 0x800 877 IXANY = 0x800
782 IXOFF = 0x1000 878 IXOFF = 0x1000
783 IXON = 0x400 879 IXON = 0x400
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 901 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 902 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 903 KEYCTL_CLEAR = 0x7
@@ -845,6 +962,7 @@ const (
845 MADV_FREE = 0x8 962 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 963 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 966 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 967 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 968 MADV_NORMAL = 0x0
@@ -853,12 +971,14 @@ const (
853 MADV_SEQUENTIAL = 0x2 971 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 972 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
856 MAP_ANON = 0x800 975 MAP_ANON = 0x800
857 MAP_ANONYMOUS = 0x800 976 MAP_ANONYMOUS = 0x800
858 MAP_DENYWRITE = 0x2000 977 MAP_DENYWRITE = 0x2000
859 MAP_EXECUTABLE = 0x4000 978 MAP_EXECUTABLE = 0x4000
860 MAP_FILE = 0x0 979 MAP_FILE = 0x0
861 MAP_FIXED = 0x10 980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
862 MAP_GROWSDOWN = 0x1000 982 MAP_GROWSDOWN = 0x1000
863 MAP_HUGETLB = 0x80000 983 MAP_HUGETLB = 0x80000
864 MAP_HUGE_MASK = 0x3f 984 MAP_HUGE_MASK = 0x3f
@@ -870,14 +990,36 @@ const (
870 MAP_PRIVATE = 0x2 990 MAP_PRIVATE = 0x2
871 MAP_RENAME = 0x800 991 MAP_RENAME = 0x800
872 MAP_SHARED = 0x1 992 MAP_SHARED = 0x1
993 MAP_SHARED_VALIDATE = 0x3
873 MAP_STACK = 0x40000 994 MAP_STACK = 0x40000
874 MAP_TYPE = 0xf 995 MAP_TYPE = 0xf
875 MCL_CURRENT = 0x1 996 MCL_CURRENT = 0x1
876 MCL_FUTURE = 0x2 997 MCL_FUTURE = 0x2
877 MCL_ONFAULT = 0x4 998 MCL_ONFAULT = 0x4
999 MFD_ALLOW_SEALING = 0x2
1000 MFD_CLOEXEC = 0x1
1001 MFD_HUGETLB = 0x4
1002 MFD_HUGE_16GB = -0x78000000
1003 MFD_HUGE_16MB = 0x60000000
1004 MFD_HUGE_1GB = 0x78000000
1005 MFD_HUGE_1MB = 0x50000000
1006 MFD_HUGE_256MB = 0x70000000
1007 MFD_HUGE_2GB = 0x7c000000
1008 MFD_HUGE_2MB = 0x54000000
1009 MFD_HUGE_512KB = 0x4c000000
1010 MFD_HUGE_64KB = 0x40000000
1011 MFD_HUGE_8MB = 0x5c000000
1012 MFD_HUGE_MASK = 0x3f
1013 MFD_HUGE_SHIFT = 0x1a
1014 MINIX2_SUPER_MAGIC = 0x2468
1015 MINIX2_SUPER_MAGIC2 = 0x2478
1016 MINIX3_SUPER_MAGIC = 0x4d5a
1017 MINIX_SUPER_MAGIC = 0x137f
1018 MINIX_SUPER_MAGIC2 = 0x138f
878 MNT_DETACH = 0x2 1019 MNT_DETACH = 0x2
879 MNT_EXPIRE = 0x4 1020 MNT_EXPIRE = 0x4
880 MNT_FORCE = 0x1 1021 MNT_FORCE = 0x1
1022 MSDOS_SUPER_MAGIC = 0x4d44
881 MSG_BATCH = 0x40000 1023 MSG_BATCH = 0x40000
882 MSG_CMSG_CLOEXEC = 0x40000000 1024 MSG_CMSG_CLOEXEC = 0x40000000
883 MSG_CONFIRM = 0x800 1025 MSG_CONFIRM = 0x800
@@ -899,6 +1041,7 @@ const (
899 MSG_TRYHARD = 0x4 1041 MSG_TRYHARD = 0x4
900 MSG_WAITALL = 0x100 1042 MSG_WAITALL = 0x100
901 MSG_WAITFORONE = 0x10000 1043 MSG_WAITFORONE = 0x10000
1044 MSG_ZEROCOPY = 0x4000000
902 MS_ACTIVE = 0x40000000 1045 MS_ACTIVE = 0x40000000
903 MS_ASYNC = 0x1 1046 MS_ASYNC = 0x1
904 MS_BIND = 0x1000 1047 MS_BIND = 0x1000
@@ -936,7 +1079,9 @@ const (
936 MS_SYNCHRONOUS = 0x10 1079 MS_SYNCHRONOUS = 0x10
937 MS_UNBINDABLE = 0x20000 1080 MS_UNBINDABLE = 0x20000
938 MS_VERBOSE = 0x8000 1081 MS_VERBOSE = 0x8000
1082 MTD_INODE_FS_MAGIC = 0x11307854
939 NAME_MAX = 0xff 1083 NAME_MAX = 0xff
1084 NCP_SUPER_MAGIC = 0x564c
940 NETLINK_ADD_MEMBERSHIP = 0x1 1085 NETLINK_ADD_MEMBERSHIP = 0x1
941 NETLINK_AUDIT = 0x9 1086 NETLINK_AUDIT = 0x9
942 NETLINK_BROADCAST_ERROR = 0x4 1087 NETLINK_BROADCAST_ERROR = 0x4
@@ -971,6 +1116,39 @@ const (
971 NETLINK_UNUSED = 0x1 1116 NETLINK_UNUSED = 0x1
972 NETLINK_USERSOCK = 0x2 1117 NETLINK_USERSOCK = 0x2
973 NETLINK_XFRM = 0x6 1118 NETLINK_XFRM = 0x6
1119 NETNSA_MAX = 0x3
1120 NETNSA_NSID_NOT_ASSIGNED = -0x1
1121 NFNETLINK_V0 = 0x0
1122 NFNLGRP_ACCT_QUOTA = 0x8
1123 NFNLGRP_CONNTRACK_DESTROY = 0x3
1124 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1125 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1126 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1127 NFNLGRP_CONNTRACK_NEW = 0x1
1128 NFNLGRP_CONNTRACK_UPDATE = 0x2
1129 NFNLGRP_MAX = 0x9
1130 NFNLGRP_NFTABLES = 0x7
1131 NFNLGRP_NFTRACE = 0x9
1132 NFNLGRP_NONE = 0x0
1133 NFNL_BATCH_MAX = 0x1
1134 NFNL_MSG_BATCH_BEGIN = 0x10
1135 NFNL_MSG_BATCH_END = 0x11
1136 NFNL_NFA_NEST = 0x8000
1137 NFNL_SUBSYS_ACCT = 0x7
1138 NFNL_SUBSYS_COUNT = 0xc
1139 NFNL_SUBSYS_CTHELPER = 0x9
1140 NFNL_SUBSYS_CTNETLINK = 0x1
1141 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1142 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1143 NFNL_SUBSYS_IPSET = 0x6
1144 NFNL_SUBSYS_NFTABLES = 0xa
1145 NFNL_SUBSYS_NFT_COMPAT = 0xb
1146 NFNL_SUBSYS_NONE = 0x0
1147 NFNL_SUBSYS_OSF = 0x5
1148 NFNL_SUBSYS_QUEUE = 0x3
1149 NFNL_SUBSYS_ULOG = 0x4
1150 NFS_SUPER_MAGIC = 0x6969
1151 NILFS_SUPER_MAGIC = 0x3434
974 NL0 = 0x0 1152 NL0 = 0x0
975 NL1 = 0x100 1153 NL1 = 0x100
976 NLA_ALIGNTO = 0x4 1154 NLA_ALIGNTO = 0x4
@@ -998,10 +1176,13 @@ const (
998 NLM_F_EXCL = 0x200 1176 NLM_F_EXCL = 0x200
999 NLM_F_MATCH = 0x200 1177 NLM_F_MATCH = 0x200
1000 NLM_F_MULTI = 0x2 1178 NLM_F_MULTI = 0x2
1179 NLM_F_NONREC = 0x100
1001 NLM_F_REPLACE = 0x100 1180 NLM_F_REPLACE = 0x100
1002 NLM_F_REQUEST = 0x1 1181 NLM_F_REQUEST = 0x1
1003 NLM_F_ROOT = 0x100 1182 NLM_F_ROOT = 0x100
1004 NOFLSH = 0x80 1183 NOFLSH = 0x80
1184 NSFS_MAGIC = 0x6e736673
1185 OCFS2_SUPER_MAGIC = 0x7461636f
1005 OCRNL = 0x8 1186 OCRNL = 0x8
1006 OFDEL = 0x80 1187 OFDEL = 0x80
1007 OFILL = 0x40 1188 OFILL = 0x40
@@ -1009,7 +1190,9 @@ const (
1009 ONLCR = 0x4 1190 ONLCR = 0x4
1010 ONLRET = 0x20 1191 ONLRET = 0x20
1011 ONOCR = 0x10 1192 ONOCR = 0x10
1193 OPENPROM_SUPER_MAGIC = 0x9fa1
1012 OPOST = 0x1 1194 OPOST = 0x1
1195 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1013 O_ACCMODE = 0x3 1196 O_ACCMODE = 0x3
1014 O_APPEND = 0x8 1197 O_APPEND = 0x8
1015 O_ASYNC = 0x1000 1198 O_ASYNC = 0x1000
@@ -1094,16 +1277,20 @@ const (
1094 PERF_EVENT_IOC_DISABLE = 0x20002401 1277 PERF_EVENT_IOC_DISABLE = 0x20002401
1095 PERF_EVENT_IOC_ENABLE = 0x20002400 1278 PERF_EVENT_IOC_ENABLE = 0x20002400
1096 PERF_EVENT_IOC_ID = 0x40082407 1279 PERF_EVENT_IOC_ID = 0x40082407
1280 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
1097 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 1281 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
1098 PERF_EVENT_IOC_PERIOD = 0x80082404 1282 PERF_EVENT_IOC_PERIOD = 0x80082404
1283 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
1099 PERF_EVENT_IOC_REFRESH = 0x20002402 1284 PERF_EVENT_IOC_REFRESH = 0x20002402
1100 PERF_EVENT_IOC_RESET = 0x20002403 1285 PERF_EVENT_IOC_RESET = 0x20002403
1101 PERF_EVENT_IOC_SET_BPF = 0x80042408 1286 PERF_EVENT_IOC_SET_BPF = 0x80042408
1102 PERF_EVENT_IOC_SET_FILTER = 0x80082406 1287 PERF_EVENT_IOC_SET_FILTER = 0x80082406
1103 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 1288 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
1289 PIPEFS_MAGIC = 0x50495045
1104 PRIO_PGRP = 0x1 1290 PRIO_PGRP = 0x1
1105 PRIO_PROCESS = 0x0 1291 PRIO_PROCESS = 0x0
1106 PRIO_USER = 0x2 1292 PRIO_USER = 0x2
1293 PROC_SUPER_MAGIC = 0x9fa0
1107 PROT_EXEC = 0x4 1294 PROT_EXEC = 0x4
1108 PROT_GROWSDOWN = 0x1000000 1295 PROT_GROWSDOWN = 0x1000000
1109 PROT_GROWSUP = 0x2000000 1296 PROT_GROWSUP = 0x2000000
@@ -1146,6 +1333,7 @@ const (
1146 PR_GET_PDEATHSIG = 0x2 1333 PR_GET_PDEATHSIG = 0x2
1147 PR_GET_SECCOMP = 0x15 1334 PR_GET_SECCOMP = 0x15
1148 PR_GET_SECUREBITS = 0x1b 1335 PR_GET_SECUREBITS = 0x1b
1336 PR_GET_SPECULATION_CTRL = 0x34
1149 PR_GET_THP_DISABLE = 0x2a 1337 PR_GET_THP_DISABLE = 0x2a
1150 PR_GET_TID_ADDRESS = 0x28 1338 PR_GET_TID_ADDRESS = 0x28
1151 PR_GET_TIMERSLACK = 0x1e 1339 PR_GET_TIMERSLACK = 0x1e
@@ -1191,11 +1379,23 @@ const (
1191 PR_SET_PTRACER_ANY = 0xffffffffffffffff 1379 PR_SET_PTRACER_ANY = 0xffffffffffffffff
1192 PR_SET_SECCOMP = 0x16 1380 PR_SET_SECCOMP = 0x16
1193 PR_SET_SECUREBITS = 0x1c 1381 PR_SET_SECUREBITS = 0x1c
1382 PR_SET_SPECULATION_CTRL = 0x35
1194 PR_SET_THP_DISABLE = 0x29 1383 PR_SET_THP_DISABLE = 0x29
1195 PR_SET_TIMERSLACK = 0x1d 1384 PR_SET_TIMERSLACK = 0x1d
1196 PR_SET_TIMING = 0xe 1385 PR_SET_TIMING = 0xe
1197 PR_SET_TSC = 0x1a 1386 PR_SET_TSC = 0x1a
1198 PR_SET_UNALIGN = 0x6 1387 PR_SET_UNALIGN = 0x6
1388 PR_SPEC_DISABLE = 0x4
1389 PR_SPEC_ENABLE = 0x2
1390 PR_SPEC_FORCE_DISABLE = 0x8
1391 PR_SPEC_NOT_AFFECTED = 0x0
1392 PR_SPEC_PRCTL = 0x1
1393 PR_SPEC_STORE_BYPASS = 0x0
1394 PR_SVE_GET_VL = 0x33
1395 PR_SVE_SET_VL = 0x32
1396 PR_SVE_SET_VL_ONEXEC = 0x40000
1397 PR_SVE_VL_INHERIT = 0x20000
1398 PR_SVE_VL_LEN_MASK = 0xffff
1199 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1399 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1200 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1400 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1201 PR_TIMING_STATISTICAL = 0x0 1401 PR_TIMING_STATISTICAL = 0x0
@@ -1204,6 +1404,7 @@ const (
1204 PR_TSC_SIGSEGV = 0x2 1404 PR_TSC_SIGSEGV = 0x2
1205 PR_UNALIGN_NOPRINT = 0x1 1405 PR_UNALIGN_NOPRINT = 0x1
1206 PR_UNALIGN_SIGBUS = 0x2 1406 PR_UNALIGN_SIGBUS = 0x2
1407 PSTOREFS_MAGIC = 0x6165676c
1207 PTRACE_ATTACH = 0x10 1408 PTRACE_ATTACH = 0x10
1208 PTRACE_CONT = 0x7 1409 PTRACE_CONT = 0x7
1209 PTRACE_DETACH = 0x11 1410 PTRACE_DETACH = 0x11
@@ -1252,6 +1453,7 @@ const (
1252 PTRACE_POKETEXT_3264 = 0xc2 1453 PTRACE_POKETEXT_3264 = 0xc2
1253 PTRACE_POKEUSR = 0x6 1454 PTRACE_POKEUSR = 0x6
1254 PTRACE_SECCOMP_GET_FILTER = 0x420c 1455 PTRACE_SECCOMP_GET_FILTER = 0x420c
1456 PTRACE_SECCOMP_GET_METADATA = 0x420d
1255 PTRACE_SEIZE = 0x4206 1457 PTRACE_SEIZE = 0x4206
1256 PTRACE_SETFPREGS = 0xf 1458 PTRACE_SETFPREGS = 0xf
1257 PTRACE_SETOPTIONS = 0x4200 1459 PTRACE_SETOPTIONS = 0x4200
@@ -1264,6 +1466,14 @@ const (
1264 PTRACE_SINGLESTEP = 0x9 1466 PTRACE_SINGLESTEP = 0x9
1265 PTRACE_SYSCALL = 0x18 1467 PTRACE_SYSCALL = 0x18
1266 PTRACE_TRACEME = 0x0 1468 PTRACE_TRACEME = 0x0
1469 QNX4_SUPER_MAGIC = 0x2f
1470 QNX6_SUPER_MAGIC = 0x68191122
1471 RAMFS_MAGIC = 0x858458f6
1472 RDTGROUP_SUPER_MAGIC = 0x7655821
1473 REISERFS_SUPER_MAGIC = 0x52654973
1474 RENAME_EXCHANGE = 0x2
1475 RENAME_NOREPLACE = 0x1
1476 RENAME_WHITEOUT = 0x4
1267 RLIMIT_AS = 0x6 1477 RLIMIT_AS = 0x6
1268 RLIMIT_CORE = 0x4 1478 RLIMIT_CORE = 0x4
1269 RLIMIT_CPU = 0x0 1479 RLIMIT_CPU = 0x0
@@ -1284,6 +1494,7 @@ const (
1284 RTAX_ADVMSS = 0x8 1494 RTAX_ADVMSS = 0x8
1285 RTAX_CC_ALGO = 0x10 1495 RTAX_CC_ALGO = 0x10
1286 RTAX_CWND = 0x7 1496 RTAX_CWND = 0x7
1497 RTAX_FASTOPEN_NO_COOKIE = 0x11
1287 RTAX_FEATURES = 0xc 1498 RTAX_FEATURES = 0xc
1288 RTAX_FEATURE_ALLFRAG = 0x8 1499 RTAX_FEATURE_ALLFRAG = 0x8
1289 RTAX_FEATURE_ECN = 0x1 1500 RTAX_FEATURE_ECN = 0x1
@@ -1294,7 +1505,7 @@ const (
1294 RTAX_INITCWND = 0xb 1505 RTAX_INITCWND = 0xb
1295 RTAX_INITRWND = 0xe 1506 RTAX_INITRWND = 0xe
1296 RTAX_LOCK = 0x1 1507 RTAX_LOCK = 0x1
1297 RTAX_MAX = 0x10 1508 RTAX_MAX = 0x11
1298 RTAX_MTU = 0x2 1509 RTAX_MTU = 0x2
1299 RTAX_QUICKACK = 0xf 1510 RTAX_QUICKACK = 0xf
1300 RTAX_REORDERING = 0x9 1511 RTAX_REORDERING = 0x9
@@ -1305,13 +1516,40 @@ const (
1305 RTAX_UNSPEC = 0x0 1516 RTAX_UNSPEC = 0x0
1306 RTAX_WINDOW = 0x3 1517 RTAX_WINDOW = 0x3
1307 RTA_ALIGNTO = 0x4 1518 RTA_ALIGNTO = 0x4
1308 RTA_MAX = 0x1a 1519 RTA_MAX = 0x1d
1309 RTCF_DIRECTSRC = 0x4000000 1520 RTCF_DIRECTSRC = 0x4000000
1310 RTCF_DOREDIRECT = 0x1000000 1521 RTCF_DOREDIRECT = 0x1000000
1311 RTCF_LOG = 0x2000000 1522 RTCF_LOG = 0x2000000
1312 RTCF_MASQ = 0x400000 1523 RTCF_MASQ = 0x400000
1313 RTCF_NAT = 0x800000 1524 RTCF_NAT = 0x800000
1314 RTCF_VALVE = 0x200000 1525 RTCF_VALVE = 0x200000
1526 RTC_AF = 0x20
1527 RTC_AIE_OFF = 0x20007002
1528 RTC_AIE_ON = 0x20007001
1529 RTC_ALM_READ = 0x40247008
1530 RTC_ALM_SET = 0x80247007
1531 RTC_EPOCH_READ = 0x4008700d
1532 RTC_EPOCH_SET = 0x8008700e
1533 RTC_IRQF = 0x80
1534 RTC_IRQP_READ = 0x4008700b
1535 RTC_IRQP_SET = 0x8008700c
1536 RTC_MAX_FREQ = 0x2000
1537 RTC_PF = 0x40
1538 RTC_PIE_OFF = 0x20007006
1539 RTC_PIE_ON = 0x20007005
1540 RTC_PLL_GET = 0x40207011
1541 RTC_PLL_SET = 0x80207012
1542 RTC_RD_TIME = 0x40247009
1543 RTC_SET_TIME = 0x8024700a
1544 RTC_UF = 0x10
1545 RTC_UIE_OFF = 0x20007004
1546 RTC_UIE_ON = 0x20007003
1547 RTC_VL_CLR = 0x20007014
1548 RTC_VL_READ = 0x40047013
1549 RTC_WIE_OFF = 0x20007010
1550 RTC_WIE_ON = 0x2000700f
1551 RTC_WKALM_RD = 0x40287010
1552 RTC_WKALM_SET = 0x8028700f
1315 RTF_ADDRCLASSMASK = 0xf8000000 1553 RTF_ADDRCLASSMASK = 0xf8000000
1316 RTF_ADDRCONF = 0x40000 1554 RTF_ADDRCONF = 0x40000
1317 RTF_ALLONLINK = 0x20000 1555 RTF_ALLONLINK = 0x20000
@@ -1414,17 +1652,22 @@ const (
1414 RTNH_F_UNRESOLVED = 0x20 1652 RTNH_F_UNRESOLVED = 0x20
1415 RTN_MAX = 0xb 1653 RTN_MAX = 0xb
1416 RTPROT_BABEL = 0x2a 1654 RTPROT_BABEL = 0x2a
1655 RTPROT_BGP = 0xba
1417 RTPROT_BIRD = 0xc 1656 RTPROT_BIRD = 0xc
1418 RTPROT_BOOT = 0x3 1657 RTPROT_BOOT = 0x3
1419 RTPROT_DHCP = 0x10 1658 RTPROT_DHCP = 0x10
1420 RTPROT_DNROUTED = 0xd 1659 RTPROT_DNROUTED = 0xd
1660 RTPROT_EIGRP = 0xc0
1421 RTPROT_GATED = 0x8 1661 RTPROT_GATED = 0x8
1662 RTPROT_ISIS = 0xbb
1422 RTPROT_KERNEL = 0x2 1663 RTPROT_KERNEL = 0x2
1423 RTPROT_MROUTED = 0x11 1664 RTPROT_MROUTED = 0x11
1424 RTPROT_MRT = 0xa 1665 RTPROT_MRT = 0xa
1425 RTPROT_NTK = 0xf 1666 RTPROT_NTK = 0xf
1667 RTPROT_OSPF = 0xbc
1426 RTPROT_RA = 0x9 1668 RTPROT_RA = 0x9
1427 RTPROT_REDIRECT = 0x1 1669 RTPROT_REDIRECT = 0x1
1670 RTPROT_RIP = 0xbd
1428 RTPROT_STATIC = 0x4 1671 RTPROT_STATIC = 0x4
1429 RTPROT_UNSPEC = 0x0 1672 RTPROT_UNSPEC = 0x0
1430 RTPROT_XORP = 0xe 1673 RTPROT_XORP = 0xe
@@ -1448,6 +1691,8 @@ const (
1448 SECCOMP_MODE_DISABLED = 0x0 1691 SECCOMP_MODE_DISABLED = 0x0
1449 SECCOMP_MODE_FILTER = 0x2 1692 SECCOMP_MODE_FILTER = 0x2
1450 SECCOMP_MODE_STRICT = 0x1 1693 SECCOMP_MODE_STRICT = 0x1
1694 SECURITYFS_MAGIC = 0x73636673
1695 SELINUX_MAGIC = 0xf97cff8c
1451 SHUT_RD = 0x0 1696 SHUT_RD = 0x0
1452 SHUT_RDWR = 0x2 1697 SHUT_RDWR = 0x2
1453 SHUT_WR = 0x1 1698 SHUT_WR = 0x1
@@ -1532,6 +1777,23 @@ const (
1532 SIOCSPGRP = 0x80047308 1777 SIOCSPGRP = 0x80047308
1533 SIOCSRARP = 0x8962 1778 SIOCSRARP = 0x8962
1534 SIOCWANDEV = 0x894a 1779 SIOCWANDEV = 0x894a
1780 SMACK_MAGIC = 0x43415d53
1781 SMART_AUTOSAVE = 0xd2
1782 SMART_AUTO_OFFLINE = 0xdb
1783 SMART_DISABLE = 0xd9
1784 SMART_ENABLE = 0xd8
1785 SMART_HCYL_PASS = 0xc2
1786 SMART_IMMEDIATE_OFFLINE = 0xd4
1787 SMART_LCYL_PASS = 0x4f
1788 SMART_READ_LOG_SECTOR = 0xd5
1789 SMART_READ_THRESHOLDS = 0xd1
1790 SMART_READ_VALUES = 0xd0
1791 SMART_SAVE = 0xd3
1792 SMART_STATUS = 0xda
1793 SMART_WRITE_LOG_SECTOR = 0xd6
1794 SMART_WRITE_THRESHOLDS = 0xd7
1795 SMB_SUPER_MAGIC = 0x517b
1796 SOCKFS_MAGIC = 0x534f434b
1535 SOCK_CLOEXEC = 0x80000 1797 SOCK_CLOEXEC = 0x80000
1536 SOCK_DCCP = 0x6 1798 SOCK_DCCP = 0x6
1537 SOCK_DGRAM = 0x1 1799 SOCK_DGRAM = 0x1
@@ -1568,7 +1830,9 @@ const (
1568 SOL_SOCKET = 0xffff 1830 SOL_SOCKET = 0xffff
1569 SOL_TCP = 0x6 1831 SOL_TCP = 0x6
1570 SOL_TIPC = 0x10f 1832 SOL_TIPC = 0x10f
1833 SOL_TLS = 0x11a
1571 SOL_X25 = 0x106 1834 SOL_X25 = 0x106
1835 SOL_XDP = 0x11b
1572 SOMAXCONN = 0x80 1836 SOMAXCONN = 0x80
1573 SO_ACCEPTCONN = 0x1009 1837 SO_ACCEPTCONN = 0x1009
1574 SO_ATTACH_BPF = 0x32 1838 SO_ATTACH_BPF = 0x32
@@ -1637,10 +1901,13 @@ const (
1637 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1901 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1638 SO_VM_SOCKETS_TRUSTED = 0x5 1902 SO_VM_SOCKETS_TRUSTED = 0x5
1639 SO_WIFI_STATUS = 0x29 1903 SO_WIFI_STATUS = 0x29
1904 SO_ZEROCOPY = 0x3c
1640 SPLICE_F_GIFT = 0x8 1905 SPLICE_F_GIFT = 0x8
1641 SPLICE_F_MORE = 0x4 1906 SPLICE_F_MORE = 0x4
1642 SPLICE_F_MOVE = 0x1 1907 SPLICE_F_MOVE = 0x1
1643 SPLICE_F_NONBLOCK = 0x2 1908 SPLICE_F_NONBLOCK = 0x2
1909 SQUASHFS_MAGIC = 0x73717368
1910 STACK_END_MAGIC = 0x57ac6e9d
1644 STATX_ALL = 0xfff 1911 STATX_ALL = 0xfff
1645 STATX_ATIME = 0x20 1912 STATX_ATIME = 0x20
1646 STATX_ATTR_APPEND = 0x20 1913 STATX_ATTR_APPEND = 0x20
@@ -1662,6 +1929,10 @@ const (
1662 STATX_TYPE = 0x1 1929 STATX_TYPE = 0x1
1663 STATX_UID = 0x8 1930 STATX_UID = 0x8
1664 STATX__RESERVED = 0x80000000 1931 STATX__RESERVED = 0x80000000
1932 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1933 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1934 SYNC_FILE_RANGE_WRITE = 0x2
1935 SYSFS_MAGIC = 0x62656572
1665 S_BLKSIZE = 0x200 1936 S_BLKSIZE = 0x200
1666 S_IEXEC = 0x40 1937 S_IEXEC = 0x40
1667 S_IFBLK = 0x6000 1938 S_IFBLK = 0x6000
@@ -1723,6 +1994,8 @@ const (
1723 TCP_DEFER_ACCEPT = 0x9 1994 TCP_DEFER_ACCEPT = 0x9
1724 TCP_FASTOPEN = 0x17 1995 TCP_FASTOPEN = 0x17
1725 TCP_FASTOPEN_CONNECT = 0x1e 1996 TCP_FASTOPEN_CONNECT = 0x1e
1997 TCP_FASTOPEN_KEY = 0x21
1998 TCP_FASTOPEN_NO_COOKIE = 0x22
1726 TCP_INFO = 0xb 1999 TCP_INFO = 0xb
1727 TCP_KEEPCNT = 0x6 2000 TCP_KEEPCNT = 0x6
1728 TCP_KEEPIDLE = 0x4 2001 TCP_KEEPIDLE = 0x4
@@ -1732,6 +2005,8 @@ const (
1732 TCP_MAXWIN = 0xffff 2005 TCP_MAXWIN = 0xffff
1733 TCP_MAX_WINSHIFT = 0xe 2006 TCP_MAX_WINSHIFT = 0xe
1734 TCP_MD5SIG = 0xe 2007 TCP_MD5SIG = 0xe
2008 TCP_MD5SIG_EXT = 0x20
2009 TCP_MD5SIG_FLAG_PREFIX = 0x1
1735 TCP_MD5SIG_MAXKEYLEN = 0x50 2010 TCP_MD5SIG_MAXKEYLEN = 0x50
1736 TCP_MSS = 0x200 2011 TCP_MSS = 0x200
1737 TCP_MSS_DEFAULT = 0x218 2012 TCP_MSS_DEFAULT = 0x218
@@ -1752,6 +2027,7 @@ const (
1752 TCP_THIN_DUPACK = 0x11 2027 TCP_THIN_DUPACK = 0x11
1753 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2028 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1754 TCP_TIMESTAMP = 0x18 2029 TCP_TIMESTAMP = 0x18
2030 TCP_ULP = 0x1f
1755 TCP_USER_TIMEOUT = 0x12 2031 TCP_USER_TIMEOUT = 0x12
1756 TCP_WINDOW_CLAMP = 0xa 2032 TCP_WINDOW_CLAMP = 0xa
1757 TCSAFLUSH = 0x5410 2033 TCSAFLUSH = 0x5410
@@ -1841,7 +2117,27 @@ const (
1841 TIOCSTI = 0x5472 2117 TIOCSTI = 0x5472
1842 TIOCSWINSZ = 0x80087467 2118 TIOCSWINSZ = 0x80087467
1843 TIOCVHANGUP = 0x5437 2119 TIOCVHANGUP = 0x5437
2120 TMPFS_MAGIC = 0x1021994
1844 TOSTOP = 0x8000 2121 TOSTOP = 0x8000
2122 TPACKET_ALIGNMENT = 0x10
2123 TPACKET_HDRLEN = 0x34
2124 TP_STATUS_AVAILABLE = 0x0
2125 TP_STATUS_BLK_TMO = 0x20
2126 TP_STATUS_COPY = 0x2
2127 TP_STATUS_CSUMNOTREADY = 0x8
2128 TP_STATUS_CSUM_VALID = 0x80
2129 TP_STATUS_KERNEL = 0x0
2130 TP_STATUS_LOSING = 0x4
2131 TP_STATUS_SENDING = 0x2
2132 TP_STATUS_SEND_REQUEST = 0x1
2133 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2134 TP_STATUS_TS_SOFTWARE = 0x20000000
2135 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2136 TP_STATUS_USER = 0x1
2137 TP_STATUS_VLAN_TPID_VALID = 0x40
2138 TP_STATUS_VLAN_VALID = 0x10
2139 TP_STATUS_WRONG_FORMAT = 0x4
2140 TRACEFS_MAGIC = 0x74726163
1845 TS_COMM_LEN = 0x20 2141 TS_COMM_LEN = 0x20
1846 TUNATTACHFILTER = 0x801054d5 2142 TUNATTACHFILTER = 0x801054d5
1847 TUNDETACHFILTER = 0x801054d6 2143 TUNDETACHFILTER = 0x801054d6
@@ -1853,6 +2149,7 @@ const (
1853 TUNGETVNETHDRSZ = 0x400454d7 2149 TUNGETVNETHDRSZ = 0x400454d7
1854 TUNGETVNETLE = 0x400454dd 2150 TUNGETVNETLE = 0x400454dd
1855 TUNSETDEBUG = 0x800454c9 2151 TUNSETDEBUG = 0x800454c9
2152 TUNSETFILTEREBPF = 0x400454e1
1856 TUNSETGROUP = 0x800454ce 2153 TUNSETGROUP = 0x800454ce
1857 TUNSETIFF = 0x800454ca 2154 TUNSETIFF = 0x800454ca
1858 TUNSETIFINDEX = 0x800454da 2155 TUNSETIFINDEX = 0x800454da
@@ -1863,13 +2160,32 @@ const (
1863 TUNSETPERSIST = 0x800454cb 2160 TUNSETPERSIST = 0x800454cb
1864 TUNSETQUEUE = 0x800454d9 2161 TUNSETQUEUE = 0x800454d9
1865 TUNSETSNDBUF = 0x800454d4 2162 TUNSETSNDBUF = 0x800454d4
2163 TUNSETSTEERINGEBPF = 0x400454e0
1866 TUNSETTXFILTER = 0x800454d1 2164 TUNSETTXFILTER = 0x800454d1
1867 TUNSETVNETBE = 0x800454de 2165 TUNSETVNETBE = 0x800454de
1868 TUNSETVNETHDRSZ = 0x800454d8 2166 TUNSETVNETHDRSZ = 0x800454d8
1869 TUNSETVNETLE = 0x800454dc 2167 TUNSETVNETLE = 0x800454dc
2168 UBI_IOCATT = 0x80186f40
2169 UBI_IOCDET = 0x80046f41
2170 UBI_IOCEBCH = 0x80044f02
2171 UBI_IOCEBER = 0x80044f01
2172 UBI_IOCEBISMAP = 0x40044f05
2173 UBI_IOCEBMAP = 0x80084f03
2174 UBI_IOCEBUNMAP = 0x80044f04
2175 UBI_IOCMKVOL = 0x80986f00
2176 UBI_IOCRMVOL = 0x80046f01
2177 UBI_IOCRNVOL = 0x91106f03
2178 UBI_IOCRSVOL = 0x800c6f02
2179 UBI_IOCSETVOLPROP = 0x80104f06
2180 UBI_IOCVOLCRBLK = 0x80804f07
2181 UBI_IOCVOLRMBLK = 0x20004f08
2182 UBI_IOCVOLUP = 0x80084f00
2183 UDF_SUPER_MAGIC = 0x15013346
1870 UMOUNT_NOFOLLOW = 0x8 2184 UMOUNT_NOFOLLOW = 0x8
2185 USBDEVICE_SUPER_MAGIC = 0x9fa2
1871 UTIME_NOW = 0x3fffffff 2186 UTIME_NOW = 0x3fffffff
1872 UTIME_OMIT = 0x3ffffffe 2187 UTIME_OMIT = 0x3ffffffe
2188 V9FS_MAGIC = 0x1021997
1873 VDISCARD = 0xd 2189 VDISCARD = 0xd
1874 VEOF = 0x10 2190 VEOF = 0x10
1875 VEOL = 0x11 2191 VEOL = 0x11
@@ -1912,6 +2228,86 @@ const (
1912 WDIOC_SETPRETIMEOUT = 0xc0045708 2228 WDIOC_SETPRETIMEOUT = 0xc0045708
1913 WDIOC_SETTIMEOUT = 0xc0045706 2229 WDIOC_SETTIMEOUT = 0xc0045706
1914 WEXITED = 0x4 2230 WEXITED = 0x4
2231 WIN_ACKMEDIACHANGE = 0xdb
2232 WIN_CHECKPOWERMODE1 = 0xe5
2233 WIN_CHECKPOWERMODE2 = 0x98
2234 WIN_DEVICE_RESET = 0x8
2235 WIN_DIAGNOSE = 0x90
2236 WIN_DOORLOCK = 0xde
2237 WIN_DOORUNLOCK = 0xdf
2238 WIN_DOWNLOAD_MICROCODE = 0x92
2239 WIN_FLUSH_CACHE = 0xe7
2240 WIN_FLUSH_CACHE_EXT = 0xea
2241 WIN_FORMAT = 0x50
2242 WIN_GETMEDIASTATUS = 0xda
2243 WIN_IDENTIFY = 0xec
2244 WIN_IDENTIFY_DMA = 0xee
2245 WIN_IDLEIMMEDIATE = 0xe1
2246 WIN_INIT = 0x60
2247 WIN_MEDIAEJECT = 0xed
2248 WIN_MULTREAD = 0xc4
2249 WIN_MULTREAD_EXT = 0x29
2250 WIN_MULTWRITE = 0xc5
2251 WIN_MULTWRITE_EXT = 0x39
2252 WIN_NOP = 0x0
2253 WIN_PACKETCMD = 0xa0
2254 WIN_PIDENTIFY = 0xa1
2255 WIN_POSTBOOT = 0xdc
2256 WIN_PREBOOT = 0xdd
2257 WIN_QUEUED_SERVICE = 0xa2
2258 WIN_READ = 0x20
2259 WIN_READDMA = 0xc8
2260 WIN_READDMA_EXT = 0x25
2261 WIN_READDMA_ONCE = 0xc9
2262 WIN_READDMA_QUEUED = 0xc7
2263 WIN_READDMA_QUEUED_EXT = 0x26
2264 WIN_READ_BUFFER = 0xe4
2265 WIN_READ_EXT = 0x24
2266 WIN_READ_LONG = 0x22
2267 WIN_READ_LONG_ONCE = 0x23
2268 WIN_READ_NATIVE_MAX = 0xf8
2269 WIN_READ_NATIVE_MAX_EXT = 0x27
2270 WIN_READ_ONCE = 0x21
2271 WIN_RECAL = 0x10
2272 WIN_RESTORE = 0x10
2273 WIN_SECURITY_DISABLE = 0xf6
2274 WIN_SECURITY_ERASE_PREPARE = 0xf3
2275 WIN_SECURITY_ERASE_UNIT = 0xf4
2276 WIN_SECURITY_FREEZE_LOCK = 0xf5
2277 WIN_SECURITY_SET_PASS = 0xf1
2278 WIN_SECURITY_UNLOCK = 0xf2
2279 WIN_SEEK = 0x70
2280 WIN_SETFEATURES = 0xef
2281 WIN_SETIDLE1 = 0xe3
2282 WIN_SETIDLE2 = 0x97
2283 WIN_SETMULT = 0xc6
2284 WIN_SET_MAX = 0xf9
2285 WIN_SET_MAX_EXT = 0x37
2286 WIN_SLEEPNOW1 = 0xe6
2287 WIN_SLEEPNOW2 = 0x99
2288 WIN_SMART = 0xb0
2289 WIN_SPECIFY = 0x91
2290 WIN_SRST = 0x8
2291 WIN_STANDBY = 0xe2
2292 WIN_STANDBY2 = 0x96
2293 WIN_STANDBYNOW1 = 0xe0
2294 WIN_STANDBYNOW2 = 0x94
2295 WIN_VERIFY = 0x40
2296 WIN_VERIFY_EXT = 0x42
2297 WIN_VERIFY_ONCE = 0x41
2298 WIN_WRITE = 0x30
2299 WIN_WRITEDMA = 0xca
2300 WIN_WRITEDMA_EXT = 0x35
2301 WIN_WRITEDMA_ONCE = 0xcb
2302 WIN_WRITEDMA_QUEUED = 0xcc
2303 WIN_WRITEDMA_QUEUED_EXT = 0x36
2304 WIN_WRITE_BUFFER = 0xe8
2305 WIN_WRITE_EXT = 0x34
2306 WIN_WRITE_LONG = 0x32
2307 WIN_WRITE_LONG_ONCE = 0x33
2308 WIN_WRITE_ONCE = 0x31
2309 WIN_WRITE_SAME = 0xe9
2310 WIN_WRITE_VERIFY = 0x3c
1915 WNOHANG = 0x1 2311 WNOHANG = 0x1
1916 WNOTHREAD = 0x20000000 2312 WNOTHREAD = 0x20000000
1917 WNOWAIT = 0x1000000 2313 WNOWAIT = 0x1000000
@@ -1921,7 +2317,29 @@ const (
1921 XATTR_CREATE = 0x1 2317 XATTR_CREATE = 0x1
1922 XATTR_REPLACE = 0x2 2318 XATTR_REPLACE = 0x2
1923 XCASE = 0x4 2319 XCASE = 0x4
2320 XDP_COPY = 0x2
2321 XDP_FLAGS_DRV_MODE = 0x4
2322 XDP_FLAGS_HW_MODE = 0x8
2323 XDP_FLAGS_MASK = 0xf
2324 XDP_FLAGS_MODES = 0xe
2325 XDP_FLAGS_SKB_MODE = 0x2
2326 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2327 XDP_MMAP_OFFSETS = 0x1
2328 XDP_PGOFF_RX_RING = 0x0
2329 XDP_PGOFF_TX_RING = 0x80000000
2330 XDP_RX_RING = 0x2
2331 XDP_SHARED_UMEM = 0x1
2332 XDP_STATISTICS = 0x7
2333 XDP_TX_RING = 0x3
2334 XDP_UMEM_COMPLETION_RING = 0x6
2335 XDP_UMEM_FILL_RING = 0x5
2336 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2337 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2338 XDP_UMEM_REG = 0x4
2339 XDP_ZEROCOPY = 0x4
2340 XENFS_SUPER_MAGIC = 0xabba1974
1924 XTABS = 0x1800 2341 XTABS = 0x1800
2342 ZSMALLOC_MAGIC = 0x58295829
1925) 2343)
1926 2344
1927// Errors 2345// Errors
@@ -2103,174 +2521,182 @@ const (
2103) 2521)
2104 2522
2105// Error table 2523// Error table
2106var errors = [...]string{ 2524var errorList = [...]struct {
2107 1: "operation not permitted", 2525 num syscall.Errno
2108 2: "no such file or directory", 2526 name string
2109 3: "no such process", 2527 desc string
2110 4: "interrupted system call", 2528}{
2111 5: "input/output error", 2529 {1, "EPERM", "operation not permitted"},
2112 6: "no such device or address", 2530 {2, "ENOENT", "no such file or directory"},
2113 7: "argument list too long", 2531 {3, "ESRCH", "no such process"},
2114 8: "exec format error", 2532 {4, "EINTR", "interrupted system call"},
2115 9: "bad file descriptor", 2533 {5, "EIO", "input/output error"},
2116 10: "no child processes", 2534 {6, "ENXIO", "no such device or address"},
2117 11: "resource temporarily unavailable", 2535 {7, "E2BIG", "argument list too long"},
2118 12: "cannot allocate memory", 2536 {8, "ENOEXEC", "exec format error"},
2119 13: "permission denied", 2537 {9, "EBADF", "bad file descriptor"},
2120 14: "bad address", 2538 {10, "ECHILD", "no child processes"},
2121 15: "block device required", 2539 {11, "EAGAIN", "resource temporarily unavailable"},
2122 16: "device or resource busy", 2540 {12, "ENOMEM", "cannot allocate memory"},
2123 17: "file exists", 2541 {13, "EACCES", "permission denied"},
2124 18: "invalid cross-device link", 2542 {14, "EFAULT", "bad address"},
2125 19: "no such device", 2543 {15, "ENOTBLK", "block device required"},
2126 20: "not a directory", 2544 {16, "EBUSY", "device or resource busy"},
2127 21: "is a directory", 2545 {17, "EEXIST", "file exists"},
2128 22: "invalid argument", 2546 {18, "EXDEV", "invalid cross-device link"},
2129 23: "too many open files in system", 2547 {19, "ENODEV", "no such device"},
2130 24: "too many open files", 2548 {20, "ENOTDIR", "not a directory"},
2131 25: "inappropriate ioctl for device", 2549 {21, "EISDIR", "is a directory"},
2132 26: "text file busy", 2550 {22, "EINVAL", "invalid argument"},
2133 27: "file too large", 2551 {23, "ENFILE", "too many open files in system"},
2134 28: "no space left on device", 2552 {24, "EMFILE", "too many open files"},
2135 29: "illegal seek", 2553 {25, "ENOTTY", "inappropriate ioctl for device"},
2136 30: "read-only file system", 2554 {26, "ETXTBSY", "text file busy"},
2137 31: "too many links", 2555 {27, "EFBIG", "file too large"},
2138 32: "broken pipe", 2556 {28, "ENOSPC", "no space left on device"},
2139 33: "numerical argument out of domain", 2557 {29, "ESPIPE", "illegal seek"},
2140 34: "numerical result out of range", 2558 {30, "EROFS", "read-only file system"},
2141 35: "no message of desired type", 2559 {31, "EMLINK", "too many links"},
2142 36: "identifier removed", 2560 {32, "EPIPE", "broken pipe"},
2143 37: "channel number out of range", 2561 {33, "EDOM", "numerical argument out of domain"},
2144 38: "level 2 not synchronized", 2562 {34, "ERANGE", "numerical result out of range"},
2145 39: "level 3 halted", 2563 {35, "ENOMSG", "no message of desired type"},
2146 40: "level 3 reset", 2564 {36, "EIDRM", "identifier removed"},
2147 41: "link number out of range", 2565 {37, "ECHRNG", "channel number out of range"},
2148 42: "protocol driver not attached", 2566 {38, "EL2NSYNC", "level 2 not synchronized"},
2149 43: "no CSI structure available", 2567 {39, "EL3HLT", "level 3 halted"},
2150 44: "level 2 halted", 2568 {40, "EL3RST", "level 3 reset"},
2151 45: "resource deadlock avoided", 2569 {41, "ELNRNG", "link number out of range"},
2152 46: "no locks available", 2570 {42, "EUNATCH", "protocol driver not attached"},
2153 50: "invalid exchange", 2571 {43, "ENOCSI", "no CSI structure available"},
2154 51: "invalid request descriptor", 2572 {44, "EL2HLT", "level 2 halted"},
2155 52: "exchange full", 2573 {45, "EDEADLK", "resource deadlock avoided"},
2156 53: "no anode", 2574 {46, "ENOLCK", "no locks available"},
2157 54: "invalid request code", 2575 {50, "EBADE", "invalid exchange"},
2158 55: "invalid slot", 2576 {51, "EBADR", "invalid request descriptor"},
2159 56: "file locking deadlock error", 2577 {52, "EXFULL", "exchange full"},
2160 59: "bad font file format", 2578 {53, "ENOANO", "no anode"},
2161 60: "device not a stream", 2579 {54, "EBADRQC", "invalid request code"},
2162 61: "no data available", 2580 {55, "EBADSLT", "invalid slot"},
2163 62: "timer expired", 2581 {56, "EDEADLOCK", "file locking deadlock error"},
2164 63: "out of streams resources", 2582 {59, "EBFONT", "bad font file format"},
2165 64: "machine is not on the network", 2583 {60, "ENOSTR", "device not a stream"},
2166 65: "package not installed", 2584 {61, "ENODATA", "no data available"},
2167 66: "object is remote", 2585 {62, "ETIME", "timer expired"},
2168 67: "link has been severed", 2586 {63, "ENOSR", "out of streams resources"},
2169 68: "advertise error", 2587 {64, "ENONET", "machine is not on the network"},
2170 69: "srmount error", 2588 {65, "ENOPKG", "package not installed"},
2171 70: "communication error on send", 2589 {66, "EREMOTE", "object is remote"},
2172 71: "protocol error", 2590 {67, "ENOLINK", "link has been severed"},
2173 73: "RFS specific error", 2591 {68, "EADV", "advertise error"},
2174 74: "multihop attempted", 2592 {69, "ESRMNT", "srmount error"},
2175 77: "bad message", 2593 {70, "ECOMM", "communication error on send"},
2176 78: "file name too long", 2594 {71, "EPROTO", "protocol error"},
2177 79: "value too large for defined data type", 2595 {73, "EDOTDOT", "RFS specific error"},
2178 80: "name not unique on network", 2596 {74, "EMULTIHOP", "multihop attempted"},
2179 81: "file descriptor in bad state", 2597 {77, "EBADMSG", "bad message"},
2180 82: "remote address changed", 2598 {78, "ENAMETOOLONG", "file name too long"},
2181 83: "can not access a needed shared library", 2599 {79, "EOVERFLOW", "value too large for defined data type"},
2182 84: "accessing a corrupted shared library", 2600 {80, "ENOTUNIQ", "name not unique on network"},
2183 85: ".lib section in a.out corrupted", 2601 {81, "EBADFD", "file descriptor in bad state"},
2184 86: "attempting to link in too many shared libraries", 2602 {82, "EREMCHG", "remote address changed"},
2185 87: "cannot exec a shared library directly", 2603 {83, "ELIBACC", "can not access a needed shared library"},
2186 88: "invalid or incomplete multibyte or wide character", 2604 {84, "ELIBBAD", "accessing a corrupted shared library"},
2187 89: "function not implemented", 2605 {85, "ELIBSCN", ".lib section in a.out corrupted"},
2188 90: "too many levels of symbolic links", 2606 {86, "ELIBMAX", "attempting to link in too many shared libraries"},
2189 91: "interrupted system call should be restarted", 2607 {87, "ELIBEXEC", "cannot exec a shared library directly"},
2190 92: "streams pipe error", 2608 {88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2191 93: "directory not empty", 2609 {89, "ENOSYS", "function not implemented"},
2192 94: "too many users", 2610 {90, "ELOOP", "too many levels of symbolic links"},
2193 95: "socket operation on non-socket", 2611 {91, "ERESTART", "interrupted system call should be restarted"},
2194 96: "destination address required", 2612 {92, "ESTRPIPE", "streams pipe error"},
2195 97: "message too long", 2613 {93, "ENOTEMPTY", "directory not empty"},
2196 98: "protocol wrong type for socket", 2614 {94, "EUSERS", "too many users"},
2197 99: "protocol not available", 2615 {95, "ENOTSOCK", "socket operation on non-socket"},
2198 120: "protocol not supported", 2616 {96, "EDESTADDRREQ", "destination address required"},
2199 121: "socket type not supported", 2617 {97, "EMSGSIZE", "message too long"},
2200 122: "operation not supported", 2618 {98, "EPROTOTYPE", "protocol wrong type for socket"},
2201 123: "protocol family not supported", 2619 {99, "ENOPROTOOPT", "protocol not available"},
2202 124: "address family not supported by protocol", 2620 {120, "EPROTONOSUPPORT", "protocol not supported"},
2203 125: "address already in use", 2621 {121, "ESOCKTNOSUPPORT", "socket type not supported"},
2204 126: "cannot assign requested address", 2622 {122, "ENOTSUP", "operation not supported"},
2205 127: "network is down", 2623 {123, "EPFNOSUPPORT", "protocol family not supported"},
2206 128: "network is unreachable", 2624 {124, "EAFNOSUPPORT", "address family not supported by protocol"},
2207 129: "network dropped connection on reset", 2625 {125, "EADDRINUSE", "address already in use"},
2208 130: "software caused connection abort", 2626 {126, "EADDRNOTAVAIL", "cannot assign requested address"},
2209 131: "connection reset by peer", 2627 {127, "ENETDOWN", "network is down"},
2210 132: "no buffer space available", 2628 {128, "ENETUNREACH", "network is unreachable"},
2211 133: "transport endpoint is already connected", 2629 {129, "ENETRESET", "network dropped connection on reset"},
2212 134: "transport endpoint is not connected", 2630 {130, "ECONNABORTED", "software caused connection abort"},
2213 135: "structure needs cleaning", 2631 {131, "ECONNRESET", "connection reset by peer"},
2214 137: "not a XENIX named type file", 2632 {132, "ENOBUFS", "no buffer space available"},
2215 138: "no XENIX semaphores available", 2633 {133, "EISCONN", "transport endpoint is already connected"},
2216 139: "is a named type file", 2634 {134, "ENOTCONN", "transport endpoint is not connected"},
2217 140: "remote I/O error", 2635 {135, "EUCLEAN", "structure needs cleaning"},
2218 141: "unknown error 141", 2636 {137, "ENOTNAM", "not a XENIX named type file"},
2219 142: "unknown error 142", 2637 {138, "ENAVAIL", "no XENIX semaphores available"},
2220 143: "cannot send after transport endpoint shutdown", 2638 {139, "EISNAM", "is a named type file"},
2221 144: "too many references: cannot splice", 2639 {140, "EREMOTEIO", "remote I/O error"},
2222 145: "connection timed out", 2640 {141, "EINIT", "unknown error 141"},
2223 146: "connection refused", 2641 {142, "EREMDEV", "unknown error 142"},
2224 147: "host is down", 2642 {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2225 148: "no route to host", 2643 {144, "ETOOMANYREFS", "too many references: cannot splice"},
2226 149: "operation already in progress", 2644 {145, "ETIMEDOUT", "connection timed out"},
2227 150: "operation now in progress", 2645 {146, "ECONNREFUSED", "connection refused"},
2228 151: "stale file handle", 2646 {147, "EHOSTDOWN", "host is down"},
2229 158: "operation canceled", 2647 {148, "EHOSTUNREACH", "no route to host"},
2230 159: "no medium found", 2648 {149, "EALREADY", "operation already in progress"},
2231 160: "wrong medium type", 2649 {150, "EINPROGRESS", "operation now in progress"},
2232 161: "required key not available", 2650 {151, "ESTALE", "stale file handle"},
2233 162: "key has expired", 2651 {158, "ECANCELED", "operation canceled"},
2234 163: "key has been revoked", 2652 {159, "ENOMEDIUM", "no medium found"},
2235 164: "key was rejected by service", 2653 {160, "EMEDIUMTYPE", "wrong medium type"},
2236 165: "owner died", 2654 {161, "ENOKEY", "required key not available"},
2237 166: "state not recoverable", 2655 {162, "EKEYEXPIRED", "key has expired"},
2238 167: "operation not possible due to RF-kill", 2656 {163, "EKEYREVOKED", "key has been revoked"},
2239 168: "memory page has hardware error", 2657 {164, "EKEYREJECTED", "key was rejected by service"},
2240 1133: "disk quota exceeded", 2658 {165, "EOWNERDEAD", "owner died"},
2659 {166, "ENOTRECOVERABLE", "state not recoverable"},
2660 {167, "ERFKILL", "operation not possible due to RF-kill"},
2661 {168, "EHWPOISON", "memory page has hardware error"},
2662 {1133, "EDQUOT", "disk quota exceeded"},
2241} 2663}
2242 2664
2243// Signal table 2665// Signal table
2244var signals = [...]string{ 2666var signalList = [...]struct {
2245 1: "hangup", 2667 num syscall.Signal
2246 2: "interrupt", 2668 name string
2247 3: "quit", 2669 desc string
2248 4: "illegal instruction", 2670}{
2249 5: "trace/breakpoint trap", 2671 {1, "SIGHUP", "hangup"},
2250 6: "aborted", 2672 {2, "SIGINT", "interrupt"},
2251 7: "EMT trap", 2673 {3, "SIGQUIT", "quit"},
2252 8: "floating point exception", 2674 {4, "SIGILL", "illegal instruction"},
2253 9: "killed", 2675 {5, "SIGTRAP", "trace/breakpoint trap"},
2254 10: "bus error", 2676 {6, "SIGABRT", "aborted"},
2255 11: "segmentation fault", 2677 {7, "SIGEMT", "EMT trap"},
2256 12: "bad system call", 2678 {8, "SIGFPE", "floating point exception"},
2257 13: "broken pipe", 2679 {9, "SIGKILL", "killed"},
2258 14: "alarm clock", 2680 {10, "SIGBUS", "bus error"},
2259 15: "terminated", 2681 {11, "SIGSEGV", "segmentation fault"},
2260 16: "user defined signal 1", 2682 {12, "SIGSYS", "bad system call"},
2261 17: "user defined signal 2", 2683 {13, "SIGPIPE", "broken pipe"},
2262 18: "child exited", 2684 {14, "SIGALRM", "alarm clock"},
2263 19: "power failure", 2685 {15, "SIGTERM", "terminated"},
2264 20: "window changed", 2686 {16, "SIGUSR1", "user defined signal 1"},
2265 21: "urgent I/O condition", 2687 {17, "SIGUSR2", "user defined signal 2"},
2266 22: "I/O possible", 2688 {18, "SIGCHLD", "child exited"},
2267 23: "stopped (signal)", 2689 {19, "SIGPWR", "power failure"},
2268 24: "stopped", 2690 {20, "SIGWINCH", "window changed"},
2269 25: "continued", 2691 {21, "SIGURG", "urgent I/O condition"},
2270 26: "stopped (tty input)", 2692 {22, "SIGIO", "I/O possible"},
2271 27: "stopped (tty output)", 2693 {23, "SIGSTOP", "stopped (signal)"},
2272 28: "virtual timer expired", 2694 {24, "SIGTSTP", "stopped"},
2273 29: "profiling timer expired", 2695 {25, "SIGCONT", "continued"},
2274 30: "CPU time limit exceeded", 2696 {26, "SIGTTIN", "stopped (tty input)"},
2275 31: "file size limit exceeded", 2697 {27, "SIGTTOU", "stopped (tty output)"},
2698 {28, "SIGVTALRM", "virtual timer expired"},
2699 {29, "SIGPROF", "profiling timer expired"},
2700 {30, "SIGXCPU", "CPU time limit exceeded"},
2701 {31, "SIGXFSZ", "file size limit exceeded"},
2276} 2702}
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 db6d556..fdd388d 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
@@ -3,7 +3,7 @@
3 3
4// +build mips64le,linux 4// +build mips64le,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x40081270 178 BLKBSZGET = 0x40081270
167 BLKBSZSET = 0x80081271 179 BLKBSZSET = 0x80081271
168 BLKFLSBUF = 0x20001261 180 BLKFLSBUF = 0x20001261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x80 354 EFD_NONBLOCK = 0x80
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000 480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -463,6 +499,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 504 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 506 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
@@ -476,6 +514,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 514 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 515 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 519 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 520 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 521 F_EXLCK = 0x4
@@ -488,6 +528,9 @@ const (
488 F_GETOWN_EX = 0x10 528 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 529 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 534 F_LOCK = 0x1
492 F_NOTIFY = 0x402 535 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 536 F_OFD_GETLK = 0x24
@@ -495,6 +538,10 @@ const (
495 F_OFD_SETLKW = 0x26 538 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 539 F_OK = 0x0
497 F_RDLCK = 0x0 540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 545 F_SETFD = 0x2
499 F_SETFL = 0x4 546 F_SETFL = 0x4
500 F_SETLEASE = 0x400 547 F_SETLEASE = 0x400
@@ -506,6 +553,8 @@ const (
506 F_SETOWN_EX = 0xf 553 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 554 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 558 F_SHLCK = 0x8
510 F_TEST = 0x3 559 F_TEST = 0x3
511 F_TLOCK = 0x2 560 F_TLOCK = 0x2
@@ -527,6 +576,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 576 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 577 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x400 622 HUPCL = 0x400
531 IBSHIFT = 0x10 623 IBSHIFT = 0x10
532 ICANON = 0x2 624 ICANON = 0x2
@@ -546,7 +638,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 638 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 639 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 640 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 641 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 642 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 643 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 644 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +653,8 @@ const (
561 IFF_MASTER = 0x400 653 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 654 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 658 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 659 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 660 IFF_NOTRAILERS = 0x20
@@ -671,6 +765,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 765 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 766 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 769 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 770 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 771 IPV6_HOPOPTS = 0x36
@@ -775,12 +870,34 @@ const (
775 IP_UNICAST_IF = 0x32 870 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 871 IP_XFRM_POLICY = 0x11
777 ISIG = 0x1 872 ISIG = 0x1
873 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 874 ISTRIP = 0x20
779 IUCLC = 0x200 875 IUCLC = 0x200
780 IUTF8 = 0x4000 876 IUTF8 = 0x4000
781 IXANY = 0x800 877 IXANY = 0x800
782 IXOFF = 0x1000 878 IXOFF = 0x1000
783 IXON = 0x400 879 IXON = 0x400
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 901 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 902 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 903 KEYCTL_CLEAR = 0x7
@@ -845,6 +962,7 @@ const (
845 MADV_FREE = 0x8 962 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 963 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 966 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 967 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 968 MADV_NORMAL = 0x0
@@ -853,12 +971,14 @@ const (
853 MADV_SEQUENTIAL = 0x2 971 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 972 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
856 MAP_ANON = 0x800 975 MAP_ANON = 0x800
857 MAP_ANONYMOUS = 0x800 976 MAP_ANONYMOUS = 0x800
858 MAP_DENYWRITE = 0x2000 977 MAP_DENYWRITE = 0x2000
859 MAP_EXECUTABLE = 0x4000 978 MAP_EXECUTABLE = 0x4000
860 MAP_FILE = 0x0 979 MAP_FILE = 0x0
861 MAP_FIXED = 0x10 980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
862 MAP_GROWSDOWN = 0x1000 982 MAP_GROWSDOWN = 0x1000
863 MAP_HUGETLB = 0x80000 983 MAP_HUGETLB = 0x80000
864 MAP_HUGE_MASK = 0x3f 984 MAP_HUGE_MASK = 0x3f
@@ -870,14 +990,36 @@ const (
870 MAP_PRIVATE = 0x2 990 MAP_PRIVATE = 0x2
871 MAP_RENAME = 0x800 991 MAP_RENAME = 0x800
872 MAP_SHARED = 0x1 992 MAP_SHARED = 0x1
993 MAP_SHARED_VALIDATE = 0x3
873 MAP_STACK = 0x40000 994 MAP_STACK = 0x40000
874 MAP_TYPE = 0xf 995 MAP_TYPE = 0xf
875 MCL_CURRENT = 0x1 996 MCL_CURRENT = 0x1
876 MCL_FUTURE = 0x2 997 MCL_FUTURE = 0x2
877 MCL_ONFAULT = 0x4 998 MCL_ONFAULT = 0x4
999 MFD_ALLOW_SEALING = 0x2
1000 MFD_CLOEXEC = 0x1
1001 MFD_HUGETLB = 0x4
1002 MFD_HUGE_16GB = -0x78000000
1003 MFD_HUGE_16MB = 0x60000000
1004 MFD_HUGE_1GB = 0x78000000
1005 MFD_HUGE_1MB = 0x50000000
1006 MFD_HUGE_256MB = 0x70000000
1007 MFD_HUGE_2GB = 0x7c000000
1008 MFD_HUGE_2MB = 0x54000000
1009 MFD_HUGE_512KB = 0x4c000000
1010 MFD_HUGE_64KB = 0x40000000
1011 MFD_HUGE_8MB = 0x5c000000
1012 MFD_HUGE_MASK = 0x3f
1013 MFD_HUGE_SHIFT = 0x1a
1014 MINIX2_SUPER_MAGIC = 0x2468
1015 MINIX2_SUPER_MAGIC2 = 0x2478
1016 MINIX3_SUPER_MAGIC = 0x4d5a
1017 MINIX_SUPER_MAGIC = 0x137f
1018 MINIX_SUPER_MAGIC2 = 0x138f
878 MNT_DETACH = 0x2 1019 MNT_DETACH = 0x2
879 MNT_EXPIRE = 0x4 1020 MNT_EXPIRE = 0x4
880 MNT_FORCE = 0x1 1021 MNT_FORCE = 0x1
1022 MSDOS_SUPER_MAGIC = 0x4d44
881 MSG_BATCH = 0x40000 1023 MSG_BATCH = 0x40000
882 MSG_CMSG_CLOEXEC = 0x40000000 1024 MSG_CMSG_CLOEXEC = 0x40000000
883 MSG_CONFIRM = 0x800 1025 MSG_CONFIRM = 0x800
@@ -899,6 +1041,7 @@ const (
899 MSG_TRYHARD = 0x4 1041 MSG_TRYHARD = 0x4
900 MSG_WAITALL = 0x100 1042 MSG_WAITALL = 0x100
901 MSG_WAITFORONE = 0x10000 1043 MSG_WAITFORONE = 0x10000
1044 MSG_ZEROCOPY = 0x4000000
902 MS_ACTIVE = 0x40000000 1045 MS_ACTIVE = 0x40000000
903 MS_ASYNC = 0x1 1046 MS_ASYNC = 0x1
904 MS_BIND = 0x1000 1047 MS_BIND = 0x1000
@@ -936,7 +1079,9 @@ const (
936 MS_SYNCHRONOUS = 0x10 1079 MS_SYNCHRONOUS = 0x10
937 MS_UNBINDABLE = 0x20000 1080 MS_UNBINDABLE = 0x20000
938 MS_VERBOSE = 0x8000 1081 MS_VERBOSE = 0x8000
1082 MTD_INODE_FS_MAGIC = 0x11307854
939 NAME_MAX = 0xff 1083 NAME_MAX = 0xff
1084 NCP_SUPER_MAGIC = 0x564c
940 NETLINK_ADD_MEMBERSHIP = 0x1 1085 NETLINK_ADD_MEMBERSHIP = 0x1
941 NETLINK_AUDIT = 0x9 1086 NETLINK_AUDIT = 0x9
942 NETLINK_BROADCAST_ERROR = 0x4 1087 NETLINK_BROADCAST_ERROR = 0x4
@@ -971,6 +1116,39 @@ const (
971 NETLINK_UNUSED = 0x1 1116 NETLINK_UNUSED = 0x1
972 NETLINK_USERSOCK = 0x2 1117 NETLINK_USERSOCK = 0x2
973 NETLINK_XFRM = 0x6 1118 NETLINK_XFRM = 0x6
1119 NETNSA_MAX = 0x3
1120 NETNSA_NSID_NOT_ASSIGNED = -0x1
1121 NFNETLINK_V0 = 0x0
1122 NFNLGRP_ACCT_QUOTA = 0x8
1123 NFNLGRP_CONNTRACK_DESTROY = 0x3
1124 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1125 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1126 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1127 NFNLGRP_CONNTRACK_NEW = 0x1
1128 NFNLGRP_CONNTRACK_UPDATE = 0x2
1129 NFNLGRP_MAX = 0x9
1130 NFNLGRP_NFTABLES = 0x7
1131 NFNLGRP_NFTRACE = 0x9
1132 NFNLGRP_NONE = 0x0
1133 NFNL_BATCH_MAX = 0x1
1134 NFNL_MSG_BATCH_BEGIN = 0x10
1135 NFNL_MSG_BATCH_END = 0x11
1136 NFNL_NFA_NEST = 0x8000
1137 NFNL_SUBSYS_ACCT = 0x7
1138 NFNL_SUBSYS_COUNT = 0xc
1139 NFNL_SUBSYS_CTHELPER = 0x9
1140 NFNL_SUBSYS_CTNETLINK = 0x1
1141 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1142 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1143 NFNL_SUBSYS_IPSET = 0x6
1144 NFNL_SUBSYS_NFTABLES = 0xa
1145 NFNL_SUBSYS_NFT_COMPAT = 0xb
1146 NFNL_SUBSYS_NONE = 0x0
1147 NFNL_SUBSYS_OSF = 0x5
1148 NFNL_SUBSYS_QUEUE = 0x3
1149 NFNL_SUBSYS_ULOG = 0x4
1150 NFS_SUPER_MAGIC = 0x6969
1151 NILFS_SUPER_MAGIC = 0x3434
974 NL0 = 0x0 1152 NL0 = 0x0
975 NL1 = 0x100 1153 NL1 = 0x100
976 NLA_ALIGNTO = 0x4 1154 NLA_ALIGNTO = 0x4
@@ -998,10 +1176,13 @@ const (
998 NLM_F_EXCL = 0x200 1176 NLM_F_EXCL = 0x200
999 NLM_F_MATCH = 0x200 1177 NLM_F_MATCH = 0x200
1000 NLM_F_MULTI = 0x2 1178 NLM_F_MULTI = 0x2
1179 NLM_F_NONREC = 0x100
1001 NLM_F_REPLACE = 0x100 1180 NLM_F_REPLACE = 0x100
1002 NLM_F_REQUEST = 0x1 1181 NLM_F_REQUEST = 0x1
1003 NLM_F_ROOT = 0x100 1182 NLM_F_ROOT = 0x100
1004 NOFLSH = 0x80 1183 NOFLSH = 0x80
1184 NSFS_MAGIC = 0x6e736673
1185 OCFS2_SUPER_MAGIC = 0x7461636f
1005 OCRNL = 0x8 1186 OCRNL = 0x8
1006 OFDEL = 0x80 1187 OFDEL = 0x80
1007 OFILL = 0x40 1188 OFILL = 0x40
@@ -1009,7 +1190,9 @@ const (
1009 ONLCR = 0x4 1190 ONLCR = 0x4
1010 ONLRET = 0x20 1191 ONLRET = 0x20
1011 ONOCR = 0x10 1192 ONOCR = 0x10
1193 OPENPROM_SUPER_MAGIC = 0x9fa1
1012 OPOST = 0x1 1194 OPOST = 0x1
1195 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1013 O_ACCMODE = 0x3 1196 O_ACCMODE = 0x3
1014 O_APPEND = 0x8 1197 O_APPEND = 0x8
1015 O_ASYNC = 0x1000 1198 O_ASYNC = 0x1000
@@ -1094,16 +1277,20 @@ const (
1094 PERF_EVENT_IOC_DISABLE = 0x20002401 1277 PERF_EVENT_IOC_DISABLE = 0x20002401
1095 PERF_EVENT_IOC_ENABLE = 0x20002400 1278 PERF_EVENT_IOC_ENABLE = 0x20002400
1096 PERF_EVENT_IOC_ID = 0x40082407 1279 PERF_EVENT_IOC_ID = 0x40082407
1280 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
1097 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 1281 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
1098 PERF_EVENT_IOC_PERIOD = 0x80082404 1282 PERF_EVENT_IOC_PERIOD = 0x80082404
1283 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
1099 PERF_EVENT_IOC_REFRESH = 0x20002402 1284 PERF_EVENT_IOC_REFRESH = 0x20002402
1100 PERF_EVENT_IOC_RESET = 0x20002403 1285 PERF_EVENT_IOC_RESET = 0x20002403
1101 PERF_EVENT_IOC_SET_BPF = 0x80042408 1286 PERF_EVENT_IOC_SET_BPF = 0x80042408
1102 PERF_EVENT_IOC_SET_FILTER = 0x80082406 1287 PERF_EVENT_IOC_SET_FILTER = 0x80082406
1103 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 1288 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
1289 PIPEFS_MAGIC = 0x50495045
1104 PRIO_PGRP = 0x1 1290 PRIO_PGRP = 0x1
1105 PRIO_PROCESS = 0x0 1291 PRIO_PROCESS = 0x0
1106 PRIO_USER = 0x2 1292 PRIO_USER = 0x2
1293 PROC_SUPER_MAGIC = 0x9fa0
1107 PROT_EXEC = 0x4 1294 PROT_EXEC = 0x4
1108 PROT_GROWSDOWN = 0x1000000 1295 PROT_GROWSDOWN = 0x1000000
1109 PROT_GROWSUP = 0x2000000 1296 PROT_GROWSUP = 0x2000000
@@ -1146,6 +1333,7 @@ const (
1146 PR_GET_PDEATHSIG = 0x2 1333 PR_GET_PDEATHSIG = 0x2
1147 PR_GET_SECCOMP = 0x15 1334 PR_GET_SECCOMP = 0x15
1148 PR_GET_SECUREBITS = 0x1b 1335 PR_GET_SECUREBITS = 0x1b
1336 PR_GET_SPECULATION_CTRL = 0x34
1149 PR_GET_THP_DISABLE = 0x2a 1337 PR_GET_THP_DISABLE = 0x2a
1150 PR_GET_TID_ADDRESS = 0x28 1338 PR_GET_TID_ADDRESS = 0x28
1151 PR_GET_TIMERSLACK = 0x1e 1339 PR_GET_TIMERSLACK = 0x1e
@@ -1191,11 +1379,23 @@ const (
1191 PR_SET_PTRACER_ANY = 0xffffffffffffffff 1379 PR_SET_PTRACER_ANY = 0xffffffffffffffff
1192 PR_SET_SECCOMP = 0x16 1380 PR_SET_SECCOMP = 0x16
1193 PR_SET_SECUREBITS = 0x1c 1381 PR_SET_SECUREBITS = 0x1c
1382 PR_SET_SPECULATION_CTRL = 0x35
1194 PR_SET_THP_DISABLE = 0x29 1383 PR_SET_THP_DISABLE = 0x29
1195 PR_SET_TIMERSLACK = 0x1d 1384 PR_SET_TIMERSLACK = 0x1d
1196 PR_SET_TIMING = 0xe 1385 PR_SET_TIMING = 0xe
1197 PR_SET_TSC = 0x1a 1386 PR_SET_TSC = 0x1a
1198 PR_SET_UNALIGN = 0x6 1387 PR_SET_UNALIGN = 0x6
1388 PR_SPEC_DISABLE = 0x4
1389 PR_SPEC_ENABLE = 0x2
1390 PR_SPEC_FORCE_DISABLE = 0x8
1391 PR_SPEC_NOT_AFFECTED = 0x0
1392 PR_SPEC_PRCTL = 0x1
1393 PR_SPEC_STORE_BYPASS = 0x0
1394 PR_SVE_GET_VL = 0x33
1395 PR_SVE_SET_VL = 0x32
1396 PR_SVE_SET_VL_ONEXEC = 0x40000
1397 PR_SVE_VL_INHERIT = 0x20000
1398 PR_SVE_VL_LEN_MASK = 0xffff
1199 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1399 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1200 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1400 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1201 PR_TIMING_STATISTICAL = 0x0 1401 PR_TIMING_STATISTICAL = 0x0
@@ -1204,6 +1404,7 @@ const (
1204 PR_TSC_SIGSEGV = 0x2 1404 PR_TSC_SIGSEGV = 0x2
1205 PR_UNALIGN_NOPRINT = 0x1 1405 PR_UNALIGN_NOPRINT = 0x1
1206 PR_UNALIGN_SIGBUS = 0x2 1406 PR_UNALIGN_SIGBUS = 0x2
1407 PSTOREFS_MAGIC = 0x6165676c
1207 PTRACE_ATTACH = 0x10 1408 PTRACE_ATTACH = 0x10
1208 PTRACE_CONT = 0x7 1409 PTRACE_CONT = 0x7
1209 PTRACE_DETACH = 0x11 1410 PTRACE_DETACH = 0x11
@@ -1252,6 +1453,7 @@ const (
1252 PTRACE_POKETEXT_3264 = 0xc2 1453 PTRACE_POKETEXT_3264 = 0xc2
1253 PTRACE_POKEUSR = 0x6 1454 PTRACE_POKEUSR = 0x6
1254 PTRACE_SECCOMP_GET_FILTER = 0x420c 1455 PTRACE_SECCOMP_GET_FILTER = 0x420c
1456 PTRACE_SECCOMP_GET_METADATA = 0x420d
1255 PTRACE_SEIZE = 0x4206 1457 PTRACE_SEIZE = 0x4206
1256 PTRACE_SETFPREGS = 0xf 1458 PTRACE_SETFPREGS = 0xf
1257 PTRACE_SETOPTIONS = 0x4200 1459 PTRACE_SETOPTIONS = 0x4200
@@ -1264,6 +1466,14 @@ const (
1264 PTRACE_SINGLESTEP = 0x9 1466 PTRACE_SINGLESTEP = 0x9
1265 PTRACE_SYSCALL = 0x18 1467 PTRACE_SYSCALL = 0x18
1266 PTRACE_TRACEME = 0x0 1468 PTRACE_TRACEME = 0x0
1469 QNX4_SUPER_MAGIC = 0x2f
1470 QNX6_SUPER_MAGIC = 0x68191122
1471 RAMFS_MAGIC = 0x858458f6
1472 RDTGROUP_SUPER_MAGIC = 0x7655821
1473 REISERFS_SUPER_MAGIC = 0x52654973
1474 RENAME_EXCHANGE = 0x2
1475 RENAME_NOREPLACE = 0x1
1476 RENAME_WHITEOUT = 0x4
1267 RLIMIT_AS = 0x6 1477 RLIMIT_AS = 0x6
1268 RLIMIT_CORE = 0x4 1478 RLIMIT_CORE = 0x4
1269 RLIMIT_CPU = 0x0 1479 RLIMIT_CPU = 0x0
@@ -1284,6 +1494,7 @@ const (
1284 RTAX_ADVMSS = 0x8 1494 RTAX_ADVMSS = 0x8
1285 RTAX_CC_ALGO = 0x10 1495 RTAX_CC_ALGO = 0x10
1286 RTAX_CWND = 0x7 1496 RTAX_CWND = 0x7
1497 RTAX_FASTOPEN_NO_COOKIE = 0x11
1287 RTAX_FEATURES = 0xc 1498 RTAX_FEATURES = 0xc
1288 RTAX_FEATURE_ALLFRAG = 0x8 1499 RTAX_FEATURE_ALLFRAG = 0x8
1289 RTAX_FEATURE_ECN = 0x1 1500 RTAX_FEATURE_ECN = 0x1
@@ -1294,7 +1505,7 @@ const (
1294 RTAX_INITCWND = 0xb 1505 RTAX_INITCWND = 0xb
1295 RTAX_INITRWND = 0xe 1506 RTAX_INITRWND = 0xe
1296 RTAX_LOCK = 0x1 1507 RTAX_LOCK = 0x1
1297 RTAX_MAX = 0x10 1508 RTAX_MAX = 0x11
1298 RTAX_MTU = 0x2 1509 RTAX_MTU = 0x2
1299 RTAX_QUICKACK = 0xf 1510 RTAX_QUICKACK = 0xf
1300 RTAX_REORDERING = 0x9 1511 RTAX_REORDERING = 0x9
@@ -1305,13 +1516,40 @@ const (
1305 RTAX_UNSPEC = 0x0 1516 RTAX_UNSPEC = 0x0
1306 RTAX_WINDOW = 0x3 1517 RTAX_WINDOW = 0x3
1307 RTA_ALIGNTO = 0x4 1518 RTA_ALIGNTO = 0x4
1308 RTA_MAX = 0x1a 1519 RTA_MAX = 0x1d
1309 RTCF_DIRECTSRC = 0x4000000 1520 RTCF_DIRECTSRC = 0x4000000
1310 RTCF_DOREDIRECT = 0x1000000 1521 RTCF_DOREDIRECT = 0x1000000
1311 RTCF_LOG = 0x2000000 1522 RTCF_LOG = 0x2000000
1312 RTCF_MASQ = 0x400000 1523 RTCF_MASQ = 0x400000
1313 RTCF_NAT = 0x800000 1524 RTCF_NAT = 0x800000
1314 RTCF_VALVE = 0x200000 1525 RTCF_VALVE = 0x200000
1526 RTC_AF = 0x20
1527 RTC_AIE_OFF = 0x20007002
1528 RTC_AIE_ON = 0x20007001
1529 RTC_ALM_READ = 0x40247008
1530 RTC_ALM_SET = 0x80247007
1531 RTC_EPOCH_READ = 0x4008700d
1532 RTC_EPOCH_SET = 0x8008700e
1533 RTC_IRQF = 0x80
1534 RTC_IRQP_READ = 0x4008700b
1535 RTC_IRQP_SET = 0x8008700c
1536 RTC_MAX_FREQ = 0x2000
1537 RTC_PF = 0x40
1538 RTC_PIE_OFF = 0x20007006
1539 RTC_PIE_ON = 0x20007005
1540 RTC_PLL_GET = 0x40207011
1541 RTC_PLL_SET = 0x80207012
1542 RTC_RD_TIME = 0x40247009
1543 RTC_SET_TIME = 0x8024700a
1544 RTC_UF = 0x10
1545 RTC_UIE_OFF = 0x20007004
1546 RTC_UIE_ON = 0x20007003
1547 RTC_VL_CLR = 0x20007014
1548 RTC_VL_READ = 0x40047013
1549 RTC_WIE_OFF = 0x20007010
1550 RTC_WIE_ON = 0x2000700f
1551 RTC_WKALM_RD = 0x40287010
1552 RTC_WKALM_SET = 0x8028700f
1315 RTF_ADDRCLASSMASK = 0xf8000000 1553 RTF_ADDRCLASSMASK = 0xf8000000
1316 RTF_ADDRCONF = 0x40000 1554 RTF_ADDRCONF = 0x40000
1317 RTF_ALLONLINK = 0x20000 1555 RTF_ALLONLINK = 0x20000
@@ -1414,17 +1652,22 @@ const (
1414 RTNH_F_UNRESOLVED = 0x20 1652 RTNH_F_UNRESOLVED = 0x20
1415 RTN_MAX = 0xb 1653 RTN_MAX = 0xb
1416 RTPROT_BABEL = 0x2a 1654 RTPROT_BABEL = 0x2a
1655 RTPROT_BGP = 0xba
1417 RTPROT_BIRD = 0xc 1656 RTPROT_BIRD = 0xc
1418 RTPROT_BOOT = 0x3 1657 RTPROT_BOOT = 0x3
1419 RTPROT_DHCP = 0x10 1658 RTPROT_DHCP = 0x10
1420 RTPROT_DNROUTED = 0xd 1659 RTPROT_DNROUTED = 0xd
1660 RTPROT_EIGRP = 0xc0
1421 RTPROT_GATED = 0x8 1661 RTPROT_GATED = 0x8
1662 RTPROT_ISIS = 0xbb
1422 RTPROT_KERNEL = 0x2 1663 RTPROT_KERNEL = 0x2
1423 RTPROT_MROUTED = 0x11 1664 RTPROT_MROUTED = 0x11
1424 RTPROT_MRT = 0xa 1665 RTPROT_MRT = 0xa
1425 RTPROT_NTK = 0xf 1666 RTPROT_NTK = 0xf
1667 RTPROT_OSPF = 0xbc
1426 RTPROT_RA = 0x9 1668 RTPROT_RA = 0x9
1427 RTPROT_REDIRECT = 0x1 1669 RTPROT_REDIRECT = 0x1
1670 RTPROT_RIP = 0xbd
1428 RTPROT_STATIC = 0x4 1671 RTPROT_STATIC = 0x4
1429 RTPROT_UNSPEC = 0x0 1672 RTPROT_UNSPEC = 0x0
1430 RTPROT_XORP = 0xe 1673 RTPROT_XORP = 0xe
@@ -1448,6 +1691,8 @@ const (
1448 SECCOMP_MODE_DISABLED = 0x0 1691 SECCOMP_MODE_DISABLED = 0x0
1449 SECCOMP_MODE_FILTER = 0x2 1692 SECCOMP_MODE_FILTER = 0x2
1450 SECCOMP_MODE_STRICT = 0x1 1693 SECCOMP_MODE_STRICT = 0x1
1694 SECURITYFS_MAGIC = 0x73636673
1695 SELINUX_MAGIC = 0xf97cff8c
1451 SHUT_RD = 0x0 1696 SHUT_RD = 0x0
1452 SHUT_RDWR = 0x2 1697 SHUT_RDWR = 0x2
1453 SHUT_WR = 0x1 1698 SHUT_WR = 0x1
@@ -1532,6 +1777,23 @@ const (
1532 SIOCSPGRP = 0x80047308 1777 SIOCSPGRP = 0x80047308
1533 SIOCSRARP = 0x8962 1778 SIOCSRARP = 0x8962
1534 SIOCWANDEV = 0x894a 1779 SIOCWANDEV = 0x894a
1780 SMACK_MAGIC = 0x43415d53
1781 SMART_AUTOSAVE = 0xd2
1782 SMART_AUTO_OFFLINE = 0xdb
1783 SMART_DISABLE = 0xd9
1784 SMART_ENABLE = 0xd8
1785 SMART_HCYL_PASS = 0xc2
1786 SMART_IMMEDIATE_OFFLINE = 0xd4
1787 SMART_LCYL_PASS = 0x4f
1788 SMART_READ_LOG_SECTOR = 0xd5
1789 SMART_READ_THRESHOLDS = 0xd1
1790 SMART_READ_VALUES = 0xd0
1791 SMART_SAVE = 0xd3
1792 SMART_STATUS = 0xda
1793 SMART_WRITE_LOG_SECTOR = 0xd6
1794 SMART_WRITE_THRESHOLDS = 0xd7
1795 SMB_SUPER_MAGIC = 0x517b
1796 SOCKFS_MAGIC = 0x534f434b
1535 SOCK_CLOEXEC = 0x80000 1797 SOCK_CLOEXEC = 0x80000
1536 SOCK_DCCP = 0x6 1798 SOCK_DCCP = 0x6
1537 SOCK_DGRAM = 0x1 1799 SOCK_DGRAM = 0x1
@@ -1568,7 +1830,9 @@ const (
1568 SOL_SOCKET = 0xffff 1830 SOL_SOCKET = 0xffff
1569 SOL_TCP = 0x6 1831 SOL_TCP = 0x6
1570 SOL_TIPC = 0x10f 1832 SOL_TIPC = 0x10f
1833 SOL_TLS = 0x11a
1571 SOL_X25 = 0x106 1834 SOL_X25 = 0x106
1835 SOL_XDP = 0x11b
1572 SOMAXCONN = 0x80 1836 SOMAXCONN = 0x80
1573 SO_ACCEPTCONN = 0x1009 1837 SO_ACCEPTCONN = 0x1009
1574 SO_ATTACH_BPF = 0x32 1838 SO_ATTACH_BPF = 0x32
@@ -1637,10 +1901,13 @@ const (
1637 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1901 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1638 SO_VM_SOCKETS_TRUSTED = 0x5 1902 SO_VM_SOCKETS_TRUSTED = 0x5
1639 SO_WIFI_STATUS = 0x29 1903 SO_WIFI_STATUS = 0x29
1904 SO_ZEROCOPY = 0x3c
1640 SPLICE_F_GIFT = 0x8 1905 SPLICE_F_GIFT = 0x8
1641 SPLICE_F_MORE = 0x4 1906 SPLICE_F_MORE = 0x4
1642 SPLICE_F_MOVE = 0x1 1907 SPLICE_F_MOVE = 0x1
1643 SPLICE_F_NONBLOCK = 0x2 1908 SPLICE_F_NONBLOCK = 0x2
1909 SQUASHFS_MAGIC = 0x73717368
1910 STACK_END_MAGIC = 0x57ac6e9d
1644 STATX_ALL = 0xfff 1911 STATX_ALL = 0xfff
1645 STATX_ATIME = 0x20 1912 STATX_ATIME = 0x20
1646 STATX_ATTR_APPEND = 0x20 1913 STATX_ATTR_APPEND = 0x20
@@ -1662,6 +1929,10 @@ const (
1662 STATX_TYPE = 0x1 1929 STATX_TYPE = 0x1
1663 STATX_UID = 0x8 1930 STATX_UID = 0x8
1664 STATX__RESERVED = 0x80000000 1931 STATX__RESERVED = 0x80000000
1932 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1933 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1934 SYNC_FILE_RANGE_WRITE = 0x2
1935 SYSFS_MAGIC = 0x62656572
1665 S_BLKSIZE = 0x200 1936 S_BLKSIZE = 0x200
1666 S_IEXEC = 0x40 1937 S_IEXEC = 0x40
1667 S_IFBLK = 0x6000 1938 S_IFBLK = 0x6000
@@ -1723,6 +1994,8 @@ const (
1723 TCP_DEFER_ACCEPT = 0x9 1994 TCP_DEFER_ACCEPT = 0x9
1724 TCP_FASTOPEN = 0x17 1995 TCP_FASTOPEN = 0x17
1725 TCP_FASTOPEN_CONNECT = 0x1e 1996 TCP_FASTOPEN_CONNECT = 0x1e
1997 TCP_FASTOPEN_KEY = 0x21
1998 TCP_FASTOPEN_NO_COOKIE = 0x22
1726 TCP_INFO = 0xb 1999 TCP_INFO = 0xb
1727 TCP_KEEPCNT = 0x6 2000 TCP_KEEPCNT = 0x6
1728 TCP_KEEPIDLE = 0x4 2001 TCP_KEEPIDLE = 0x4
@@ -1732,6 +2005,8 @@ const (
1732 TCP_MAXWIN = 0xffff 2005 TCP_MAXWIN = 0xffff
1733 TCP_MAX_WINSHIFT = 0xe 2006 TCP_MAX_WINSHIFT = 0xe
1734 TCP_MD5SIG = 0xe 2007 TCP_MD5SIG = 0xe
2008 TCP_MD5SIG_EXT = 0x20
2009 TCP_MD5SIG_FLAG_PREFIX = 0x1
1735 TCP_MD5SIG_MAXKEYLEN = 0x50 2010 TCP_MD5SIG_MAXKEYLEN = 0x50
1736 TCP_MSS = 0x200 2011 TCP_MSS = 0x200
1737 TCP_MSS_DEFAULT = 0x218 2012 TCP_MSS_DEFAULT = 0x218
@@ -1752,6 +2027,7 @@ const (
1752 TCP_THIN_DUPACK = 0x11 2027 TCP_THIN_DUPACK = 0x11
1753 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2028 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1754 TCP_TIMESTAMP = 0x18 2029 TCP_TIMESTAMP = 0x18
2030 TCP_ULP = 0x1f
1755 TCP_USER_TIMEOUT = 0x12 2031 TCP_USER_TIMEOUT = 0x12
1756 TCP_WINDOW_CLAMP = 0xa 2032 TCP_WINDOW_CLAMP = 0xa
1757 TCSAFLUSH = 0x5410 2033 TCSAFLUSH = 0x5410
@@ -1841,7 +2117,27 @@ const (
1841 TIOCSTI = 0x5472 2117 TIOCSTI = 0x5472
1842 TIOCSWINSZ = 0x80087467 2118 TIOCSWINSZ = 0x80087467
1843 TIOCVHANGUP = 0x5437 2119 TIOCVHANGUP = 0x5437
2120 TMPFS_MAGIC = 0x1021994
1844 TOSTOP = 0x8000 2121 TOSTOP = 0x8000
2122 TPACKET_ALIGNMENT = 0x10
2123 TPACKET_HDRLEN = 0x34
2124 TP_STATUS_AVAILABLE = 0x0
2125 TP_STATUS_BLK_TMO = 0x20
2126 TP_STATUS_COPY = 0x2
2127 TP_STATUS_CSUMNOTREADY = 0x8
2128 TP_STATUS_CSUM_VALID = 0x80
2129 TP_STATUS_KERNEL = 0x0
2130 TP_STATUS_LOSING = 0x4
2131 TP_STATUS_SENDING = 0x2
2132 TP_STATUS_SEND_REQUEST = 0x1
2133 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2134 TP_STATUS_TS_SOFTWARE = 0x20000000
2135 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2136 TP_STATUS_USER = 0x1
2137 TP_STATUS_VLAN_TPID_VALID = 0x40
2138 TP_STATUS_VLAN_VALID = 0x10
2139 TP_STATUS_WRONG_FORMAT = 0x4
2140 TRACEFS_MAGIC = 0x74726163
1845 TS_COMM_LEN = 0x20 2141 TS_COMM_LEN = 0x20
1846 TUNATTACHFILTER = 0x801054d5 2142 TUNATTACHFILTER = 0x801054d5
1847 TUNDETACHFILTER = 0x801054d6 2143 TUNDETACHFILTER = 0x801054d6
@@ -1853,6 +2149,7 @@ const (
1853 TUNGETVNETHDRSZ = 0x400454d7 2149 TUNGETVNETHDRSZ = 0x400454d7
1854 TUNGETVNETLE = 0x400454dd 2150 TUNGETVNETLE = 0x400454dd
1855 TUNSETDEBUG = 0x800454c9 2151 TUNSETDEBUG = 0x800454c9
2152 TUNSETFILTEREBPF = 0x400454e1
1856 TUNSETGROUP = 0x800454ce 2153 TUNSETGROUP = 0x800454ce
1857 TUNSETIFF = 0x800454ca 2154 TUNSETIFF = 0x800454ca
1858 TUNSETIFINDEX = 0x800454da 2155 TUNSETIFINDEX = 0x800454da
@@ -1863,13 +2160,32 @@ const (
1863 TUNSETPERSIST = 0x800454cb 2160 TUNSETPERSIST = 0x800454cb
1864 TUNSETQUEUE = 0x800454d9 2161 TUNSETQUEUE = 0x800454d9
1865 TUNSETSNDBUF = 0x800454d4 2162 TUNSETSNDBUF = 0x800454d4
2163 TUNSETSTEERINGEBPF = 0x400454e0
1866 TUNSETTXFILTER = 0x800454d1 2164 TUNSETTXFILTER = 0x800454d1
1867 TUNSETVNETBE = 0x800454de 2165 TUNSETVNETBE = 0x800454de
1868 TUNSETVNETHDRSZ = 0x800454d8 2166 TUNSETVNETHDRSZ = 0x800454d8
1869 TUNSETVNETLE = 0x800454dc 2167 TUNSETVNETLE = 0x800454dc
2168 UBI_IOCATT = 0x80186f40
2169 UBI_IOCDET = 0x80046f41
2170 UBI_IOCEBCH = 0x80044f02
2171 UBI_IOCEBER = 0x80044f01
2172 UBI_IOCEBISMAP = 0x40044f05
2173 UBI_IOCEBMAP = 0x80084f03
2174 UBI_IOCEBUNMAP = 0x80044f04
2175 UBI_IOCMKVOL = 0x80986f00
2176 UBI_IOCRMVOL = 0x80046f01
2177 UBI_IOCRNVOL = 0x91106f03
2178 UBI_IOCRSVOL = 0x800c6f02
2179 UBI_IOCSETVOLPROP = 0x80104f06
2180 UBI_IOCVOLCRBLK = 0x80804f07
2181 UBI_IOCVOLRMBLK = 0x20004f08
2182 UBI_IOCVOLUP = 0x80084f00
2183 UDF_SUPER_MAGIC = 0x15013346
1870 UMOUNT_NOFOLLOW = 0x8 2184 UMOUNT_NOFOLLOW = 0x8
2185 USBDEVICE_SUPER_MAGIC = 0x9fa2
1871 UTIME_NOW = 0x3fffffff 2186 UTIME_NOW = 0x3fffffff
1872 UTIME_OMIT = 0x3ffffffe 2187 UTIME_OMIT = 0x3ffffffe
2188 V9FS_MAGIC = 0x1021997
1873 VDISCARD = 0xd 2189 VDISCARD = 0xd
1874 VEOF = 0x10 2190 VEOF = 0x10
1875 VEOL = 0x11 2191 VEOL = 0x11
@@ -1912,6 +2228,86 @@ const (
1912 WDIOC_SETPRETIMEOUT = 0xc0045708 2228 WDIOC_SETPRETIMEOUT = 0xc0045708
1913 WDIOC_SETTIMEOUT = 0xc0045706 2229 WDIOC_SETTIMEOUT = 0xc0045706
1914 WEXITED = 0x4 2230 WEXITED = 0x4
2231 WIN_ACKMEDIACHANGE = 0xdb
2232 WIN_CHECKPOWERMODE1 = 0xe5
2233 WIN_CHECKPOWERMODE2 = 0x98
2234 WIN_DEVICE_RESET = 0x8
2235 WIN_DIAGNOSE = 0x90
2236 WIN_DOORLOCK = 0xde
2237 WIN_DOORUNLOCK = 0xdf
2238 WIN_DOWNLOAD_MICROCODE = 0x92
2239 WIN_FLUSH_CACHE = 0xe7
2240 WIN_FLUSH_CACHE_EXT = 0xea
2241 WIN_FORMAT = 0x50
2242 WIN_GETMEDIASTATUS = 0xda
2243 WIN_IDENTIFY = 0xec
2244 WIN_IDENTIFY_DMA = 0xee
2245 WIN_IDLEIMMEDIATE = 0xe1
2246 WIN_INIT = 0x60
2247 WIN_MEDIAEJECT = 0xed
2248 WIN_MULTREAD = 0xc4
2249 WIN_MULTREAD_EXT = 0x29
2250 WIN_MULTWRITE = 0xc5
2251 WIN_MULTWRITE_EXT = 0x39
2252 WIN_NOP = 0x0
2253 WIN_PACKETCMD = 0xa0
2254 WIN_PIDENTIFY = 0xa1
2255 WIN_POSTBOOT = 0xdc
2256 WIN_PREBOOT = 0xdd
2257 WIN_QUEUED_SERVICE = 0xa2
2258 WIN_READ = 0x20
2259 WIN_READDMA = 0xc8
2260 WIN_READDMA_EXT = 0x25
2261 WIN_READDMA_ONCE = 0xc9
2262 WIN_READDMA_QUEUED = 0xc7
2263 WIN_READDMA_QUEUED_EXT = 0x26
2264 WIN_READ_BUFFER = 0xe4
2265 WIN_READ_EXT = 0x24
2266 WIN_READ_LONG = 0x22
2267 WIN_READ_LONG_ONCE = 0x23
2268 WIN_READ_NATIVE_MAX = 0xf8
2269 WIN_READ_NATIVE_MAX_EXT = 0x27
2270 WIN_READ_ONCE = 0x21
2271 WIN_RECAL = 0x10
2272 WIN_RESTORE = 0x10
2273 WIN_SECURITY_DISABLE = 0xf6
2274 WIN_SECURITY_ERASE_PREPARE = 0xf3
2275 WIN_SECURITY_ERASE_UNIT = 0xf4
2276 WIN_SECURITY_FREEZE_LOCK = 0xf5
2277 WIN_SECURITY_SET_PASS = 0xf1
2278 WIN_SECURITY_UNLOCK = 0xf2
2279 WIN_SEEK = 0x70
2280 WIN_SETFEATURES = 0xef
2281 WIN_SETIDLE1 = 0xe3
2282 WIN_SETIDLE2 = 0x97
2283 WIN_SETMULT = 0xc6
2284 WIN_SET_MAX = 0xf9
2285 WIN_SET_MAX_EXT = 0x37
2286 WIN_SLEEPNOW1 = 0xe6
2287 WIN_SLEEPNOW2 = 0x99
2288 WIN_SMART = 0xb0
2289 WIN_SPECIFY = 0x91
2290 WIN_SRST = 0x8
2291 WIN_STANDBY = 0xe2
2292 WIN_STANDBY2 = 0x96
2293 WIN_STANDBYNOW1 = 0xe0
2294 WIN_STANDBYNOW2 = 0x94
2295 WIN_VERIFY = 0x40
2296 WIN_VERIFY_EXT = 0x42
2297 WIN_VERIFY_ONCE = 0x41
2298 WIN_WRITE = 0x30
2299 WIN_WRITEDMA = 0xca
2300 WIN_WRITEDMA_EXT = 0x35
2301 WIN_WRITEDMA_ONCE = 0xcb
2302 WIN_WRITEDMA_QUEUED = 0xcc
2303 WIN_WRITEDMA_QUEUED_EXT = 0x36
2304 WIN_WRITE_BUFFER = 0xe8
2305 WIN_WRITE_EXT = 0x34
2306 WIN_WRITE_LONG = 0x32
2307 WIN_WRITE_LONG_ONCE = 0x33
2308 WIN_WRITE_ONCE = 0x31
2309 WIN_WRITE_SAME = 0xe9
2310 WIN_WRITE_VERIFY = 0x3c
1915 WNOHANG = 0x1 2311 WNOHANG = 0x1
1916 WNOTHREAD = 0x20000000 2312 WNOTHREAD = 0x20000000
1917 WNOWAIT = 0x1000000 2313 WNOWAIT = 0x1000000
@@ -1921,7 +2317,29 @@ const (
1921 XATTR_CREATE = 0x1 2317 XATTR_CREATE = 0x1
1922 XATTR_REPLACE = 0x2 2318 XATTR_REPLACE = 0x2
1923 XCASE = 0x4 2319 XCASE = 0x4
2320 XDP_COPY = 0x2
2321 XDP_FLAGS_DRV_MODE = 0x4
2322 XDP_FLAGS_HW_MODE = 0x8
2323 XDP_FLAGS_MASK = 0xf
2324 XDP_FLAGS_MODES = 0xe
2325 XDP_FLAGS_SKB_MODE = 0x2
2326 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2327 XDP_MMAP_OFFSETS = 0x1
2328 XDP_PGOFF_RX_RING = 0x0
2329 XDP_PGOFF_TX_RING = 0x80000000
2330 XDP_RX_RING = 0x2
2331 XDP_SHARED_UMEM = 0x1
2332 XDP_STATISTICS = 0x7
2333 XDP_TX_RING = 0x3
2334 XDP_UMEM_COMPLETION_RING = 0x6
2335 XDP_UMEM_FILL_RING = 0x5
2336 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2337 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2338 XDP_UMEM_REG = 0x4
2339 XDP_ZEROCOPY = 0x4
2340 XENFS_SUPER_MAGIC = 0xabba1974
1924 XTABS = 0x1800 2341 XTABS = 0x1800
2342 ZSMALLOC_MAGIC = 0x58295829
1925) 2343)
1926 2344
1927// Errors 2345// Errors
@@ -2103,174 +2521,182 @@ const (
2103) 2521)
2104 2522
2105// Error table 2523// Error table
2106var errors = [...]string{ 2524var errorList = [...]struct {
2107 1: "operation not permitted", 2525 num syscall.Errno
2108 2: "no such file or directory", 2526 name string
2109 3: "no such process", 2527 desc string
2110 4: "interrupted system call", 2528}{
2111 5: "input/output error", 2529 {1, "EPERM", "operation not permitted"},
2112 6: "no such device or address", 2530 {2, "ENOENT", "no such file or directory"},
2113 7: "argument list too long", 2531 {3, "ESRCH", "no such process"},
2114 8: "exec format error", 2532 {4, "EINTR", "interrupted system call"},
2115 9: "bad file descriptor", 2533 {5, "EIO", "input/output error"},
2116 10: "no child processes", 2534 {6, "ENXIO", "no such device or address"},
2117 11: "resource temporarily unavailable", 2535 {7, "E2BIG", "argument list too long"},
2118 12: "cannot allocate memory", 2536 {8, "ENOEXEC", "exec format error"},
2119 13: "permission denied", 2537 {9, "EBADF", "bad file descriptor"},
2120 14: "bad address", 2538 {10, "ECHILD", "no child processes"},
2121 15: "block device required", 2539 {11, "EAGAIN", "resource temporarily unavailable"},
2122 16: "device or resource busy", 2540 {12, "ENOMEM", "cannot allocate memory"},
2123 17: "file exists", 2541 {13, "EACCES", "permission denied"},
2124 18: "invalid cross-device link", 2542 {14, "EFAULT", "bad address"},
2125 19: "no such device", 2543 {15, "ENOTBLK", "block device required"},
2126 20: "not a directory", 2544 {16, "EBUSY", "device or resource busy"},
2127 21: "is a directory", 2545 {17, "EEXIST", "file exists"},
2128 22: "invalid argument", 2546 {18, "EXDEV", "invalid cross-device link"},
2129 23: "too many open files in system", 2547 {19, "ENODEV", "no such device"},
2130 24: "too many open files", 2548 {20, "ENOTDIR", "not a directory"},
2131 25: "inappropriate ioctl for device", 2549 {21, "EISDIR", "is a directory"},
2132 26: "text file busy", 2550 {22, "EINVAL", "invalid argument"},
2133 27: "file too large", 2551 {23, "ENFILE", "too many open files in system"},
2134 28: "no space left on device", 2552 {24, "EMFILE", "too many open files"},
2135 29: "illegal seek", 2553 {25, "ENOTTY", "inappropriate ioctl for device"},
2136 30: "read-only file system", 2554 {26, "ETXTBSY", "text file busy"},
2137 31: "too many links", 2555 {27, "EFBIG", "file too large"},
2138 32: "broken pipe", 2556 {28, "ENOSPC", "no space left on device"},
2139 33: "numerical argument out of domain", 2557 {29, "ESPIPE", "illegal seek"},
2140 34: "numerical result out of range", 2558 {30, "EROFS", "read-only file system"},
2141 35: "no message of desired type", 2559 {31, "EMLINK", "too many links"},
2142 36: "identifier removed", 2560 {32, "EPIPE", "broken pipe"},
2143 37: "channel number out of range", 2561 {33, "EDOM", "numerical argument out of domain"},
2144 38: "level 2 not synchronized", 2562 {34, "ERANGE", "numerical result out of range"},
2145 39: "level 3 halted", 2563 {35, "ENOMSG", "no message of desired type"},
2146 40: "level 3 reset", 2564 {36, "EIDRM", "identifier removed"},
2147 41: "link number out of range", 2565 {37, "ECHRNG", "channel number out of range"},
2148 42: "protocol driver not attached", 2566 {38, "EL2NSYNC", "level 2 not synchronized"},
2149 43: "no CSI structure available", 2567 {39, "EL3HLT", "level 3 halted"},
2150 44: "level 2 halted", 2568 {40, "EL3RST", "level 3 reset"},
2151 45: "resource deadlock avoided", 2569 {41, "ELNRNG", "link number out of range"},
2152 46: "no locks available", 2570 {42, "EUNATCH", "protocol driver not attached"},
2153 50: "invalid exchange", 2571 {43, "ENOCSI", "no CSI structure available"},
2154 51: "invalid request descriptor", 2572 {44, "EL2HLT", "level 2 halted"},
2155 52: "exchange full", 2573 {45, "EDEADLK", "resource deadlock avoided"},
2156 53: "no anode", 2574 {46, "ENOLCK", "no locks available"},
2157 54: "invalid request code", 2575 {50, "EBADE", "invalid exchange"},
2158 55: "invalid slot", 2576 {51, "EBADR", "invalid request descriptor"},
2159 56: "file locking deadlock error", 2577 {52, "EXFULL", "exchange full"},
2160 59: "bad font file format", 2578 {53, "ENOANO", "no anode"},
2161 60: "device not a stream", 2579 {54, "EBADRQC", "invalid request code"},
2162 61: "no data available", 2580 {55, "EBADSLT", "invalid slot"},
2163 62: "timer expired", 2581 {56, "EDEADLOCK", "file locking deadlock error"},
2164 63: "out of streams resources", 2582 {59, "EBFONT", "bad font file format"},
2165 64: "machine is not on the network", 2583 {60, "ENOSTR", "device not a stream"},
2166 65: "package not installed", 2584 {61, "ENODATA", "no data available"},
2167 66: "object is remote", 2585 {62, "ETIME", "timer expired"},
2168 67: "link has been severed", 2586 {63, "ENOSR", "out of streams resources"},
2169 68: "advertise error", 2587 {64, "ENONET", "machine is not on the network"},
2170 69: "srmount error", 2588 {65, "ENOPKG", "package not installed"},
2171 70: "communication error on send", 2589 {66, "EREMOTE", "object is remote"},
2172 71: "protocol error", 2590 {67, "ENOLINK", "link has been severed"},
2173 73: "RFS specific error", 2591 {68, "EADV", "advertise error"},
2174 74: "multihop attempted", 2592 {69, "ESRMNT", "srmount error"},
2175 77: "bad message", 2593 {70, "ECOMM", "communication error on send"},
2176 78: "file name too long", 2594 {71, "EPROTO", "protocol error"},
2177 79: "value too large for defined data type", 2595 {73, "EDOTDOT", "RFS specific error"},
2178 80: "name not unique on network", 2596 {74, "EMULTIHOP", "multihop attempted"},
2179 81: "file descriptor in bad state", 2597 {77, "EBADMSG", "bad message"},
2180 82: "remote address changed", 2598 {78, "ENAMETOOLONG", "file name too long"},
2181 83: "can not access a needed shared library", 2599 {79, "EOVERFLOW", "value too large for defined data type"},
2182 84: "accessing a corrupted shared library", 2600 {80, "ENOTUNIQ", "name not unique on network"},
2183 85: ".lib section in a.out corrupted", 2601 {81, "EBADFD", "file descriptor in bad state"},
2184 86: "attempting to link in too many shared libraries", 2602 {82, "EREMCHG", "remote address changed"},
2185 87: "cannot exec a shared library directly", 2603 {83, "ELIBACC", "can not access a needed shared library"},
2186 88: "invalid or incomplete multibyte or wide character", 2604 {84, "ELIBBAD", "accessing a corrupted shared library"},
2187 89: "function not implemented", 2605 {85, "ELIBSCN", ".lib section in a.out corrupted"},
2188 90: "too many levels of symbolic links", 2606 {86, "ELIBMAX", "attempting to link in too many shared libraries"},
2189 91: "interrupted system call should be restarted", 2607 {87, "ELIBEXEC", "cannot exec a shared library directly"},
2190 92: "streams pipe error", 2608 {88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2191 93: "directory not empty", 2609 {89, "ENOSYS", "function not implemented"},
2192 94: "too many users", 2610 {90, "ELOOP", "too many levels of symbolic links"},
2193 95: "socket operation on non-socket", 2611 {91, "ERESTART", "interrupted system call should be restarted"},
2194 96: "destination address required", 2612 {92, "ESTRPIPE", "streams pipe error"},
2195 97: "message too long", 2613 {93, "ENOTEMPTY", "directory not empty"},
2196 98: "protocol wrong type for socket", 2614 {94, "EUSERS", "too many users"},
2197 99: "protocol not available", 2615 {95, "ENOTSOCK", "socket operation on non-socket"},
2198 120: "protocol not supported", 2616 {96, "EDESTADDRREQ", "destination address required"},
2199 121: "socket type not supported", 2617 {97, "EMSGSIZE", "message too long"},
2200 122: "operation not supported", 2618 {98, "EPROTOTYPE", "protocol wrong type for socket"},
2201 123: "protocol family not supported", 2619 {99, "ENOPROTOOPT", "protocol not available"},
2202 124: "address family not supported by protocol", 2620 {120, "EPROTONOSUPPORT", "protocol not supported"},
2203 125: "address already in use", 2621 {121, "ESOCKTNOSUPPORT", "socket type not supported"},
2204 126: "cannot assign requested address", 2622 {122, "ENOTSUP", "operation not supported"},
2205 127: "network is down", 2623 {123, "EPFNOSUPPORT", "protocol family not supported"},
2206 128: "network is unreachable", 2624 {124, "EAFNOSUPPORT", "address family not supported by protocol"},
2207 129: "network dropped connection on reset", 2625 {125, "EADDRINUSE", "address already in use"},
2208 130: "software caused connection abort", 2626 {126, "EADDRNOTAVAIL", "cannot assign requested address"},
2209 131: "connection reset by peer", 2627 {127, "ENETDOWN", "network is down"},
2210 132: "no buffer space available", 2628 {128, "ENETUNREACH", "network is unreachable"},
2211 133: "transport endpoint is already connected", 2629 {129, "ENETRESET", "network dropped connection on reset"},
2212 134: "transport endpoint is not connected", 2630 {130, "ECONNABORTED", "software caused connection abort"},
2213 135: "structure needs cleaning", 2631 {131, "ECONNRESET", "connection reset by peer"},
2214 137: "not a XENIX named type file", 2632 {132, "ENOBUFS", "no buffer space available"},
2215 138: "no XENIX semaphores available", 2633 {133, "EISCONN", "transport endpoint is already connected"},
2216 139: "is a named type file", 2634 {134, "ENOTCONN", "transport endpoint is not connected"},
2217 140: "remote I/O error", 2635 {135, "EUCLEAN", "structure needs cleaning"},
2218 141: "unknown error 141", 2636 {137, "ENOTNAM", "not a XENIX named type file"},
2219 142: "unknown error 142", 2637 {138, "ENAVAIL", "no XENIX semaphores available"},
2220 143: "cannot send after transport endpoint shutdown", 2638 {139, "EISNAM", "is a named type file"},
2221 144: "too many references: cannot splice", 2639 {140, "EREMOTEIO", "remote I/O error"},
2222 145: "connection timed out", 2640 {141, "EINIT", "unknown error 141"},
2223 146: "connection refused", 2641 {142, "EREMDEV", "unknown error 142"},
2224 147: "host is down", 2642 {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2225 148: "no route to host", 2643 {144, "ETOOMANYREFS", "too many references: cannot splice"},
2226 149: "operation already in progress", 2644 {145, "ETIMEDOUT", "connection timed out"},
2227 150: "operation now in progress", 2645 {146, "ECONNREFUSED", "connection refused"},
2228 151: "stale file handle", 2646 {147, "EHOSTDOWN", "host is down"},
2229 158: "operation canceled", 2647 {148, "EHOSTUNREACH", "no route to host"},
2230 159: "no medium found", 2648 {149, "EALREADY", "operation already in progress"},
2231 160: "wrong medium type", 2649 {150, "EINPROGRESS", "operation now in progress"},
2232 161: "required key not available", 2650 {151, "ESTALE", "stale file handle"},
2233 162: "key has expired", 2651 {158, "ECANCELED", "operation canceled"},
2234 163: "key has been revoked", 2652 {159, "ENOMEDIUM", "no medium found"},
2235 164: "key was rejected by service", 2653 {160, "EMEDIUMTYPE", "wrong medium type"},
2236 165: "owner died", 2654 {161, "ENOKEY", "required key not available"},
2237 166: "state not recoverable", 2655 {162, "EKEYEXPIRED", "key has expired"},
2238 167: "operation not possible due to RF-kill", 2656 {163, "EKEYREVOKED", "key has been revoked"},
2239 168: "memory page has hardware error", 2657 {164, "EKEYREJECTED", "key was rejected by service"},
2240 1133: "disk quota exceeded", 2658 {165, "EOWNERDEAD", "owner died"},
2659 {166, "ENOTRECOVERABLE", "state not recoverable"},
2660 {167, "ERFKILL", "operation not possible due to RF-kill"},
2661 {168, "EHWPOISON", "memory page has hardware error"},
2662 {1133, "EDQUOT", "disk quota exceeded"},
2241} 2663}
2242 2664
2243// Signal table 2665// Signal table
2244var signals = [...]string{ 2666var signalList = [...]struct {
2245 1: "hangup", 2667 num syscall.Signal
2246 2: "interrupt", 2668 name string
2247 3: "quit", 2669 desc string
2248 4: "illegal instruction", 2670}{
2249 5: "trace/breakpoint trap", 2671 {1, "SIGHUP", "hangup"},
2250 6: "aborted", 2672 {2, "SIGINT", "interrupt"},
2251 7: "EMT trap", 2673 {3, "SIGQUIT", "quit"},
2252 8: "floating point exception", 2674 {4, "SIGILL", "illegal instruction"},
2253 9: "killed", 2675 {5, "SIGTRAP", "trace/breakpoint trap"},
2254 10: "bus error", 2676 {6, "SIGABRT", "aborted"},
2255 11: "segmentation fault", 2677 {7, "SIGEMT", "EMT trap"},
2256 12: "bad system call", 2678 {8, "SIGFPE", "floating point exception"},
2257 13: "broken pipe", 2679 {9, "SIGKILL", "killed"},
2258 14: "alarm clock", 2680 {10, "SIGBUS", "bus error"},
2259 15: "terminated", 2681 {11, "SIGSEGV", "segmentation fault"},
2260 16: "user defined signal 1", 2682 {12, "SIGSYS", "bad system call"},
2261 17: "user defined signal 2", 2683 {13, "SIGPIPE", "broken pipe"},
2262 18: "child exited", 2684 {14, "SIGALRM", "alarm clock"},
2263 19: "power failure", 2685 {15, "SIGTERM", "terminated"},
2264 20: "window changed", 2686 {16, "SIGUSR1", "user defined signal 1"},
2265 21: "urgent I/O condition", 2687 {17, "SIGUSR2", "user defined signal 2"},
2266 22: "I/O possible", 2688 {18, "SIGCHLD", "child exited"},
2267 23: "stopped (signal)", 2689 {19, "SIGPWR", "power failure"},
2268 24: "stopped", 2690 {20, "SIGWINCH", "window changed"},
2269 25: "continued", 2691 {21, "SIGURG", "urgent I/O condition"},
2270 26: "stopped (tty input)", 2692 {22, "SIGIO", "I/O possible"},
2271 27: "stopped (tty output)", 2693 {23, "SIGSTOP", "stopped (signal)"},
2272 28: "virtual timer expired", 2694 {24, "SIGTSTP", "stopped"},
2273 29: "profiling timer expired", 2695 {25, "SIGCONT", "continued"},
2274 30: "CPU time limit exceeded", 2696 {26, "SIGTTIN", "stopped (tty input)"},
2275 31: "file size limit exceeded", 2697 {27, "SIGTTOU", "stopped (tty output)"},
2698 {28, "SIGVTALRM", "virtual timer expired"},
2699 {29, "SIGPROF", "profiling timer expired"},
2700 {30, "SIGXCPU", "CPU time limit exceeded"},
2701 {31, "SIGXFSZ", "file size limit exceeded"},
2276} 2702}
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 4a62a55..2d15046 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
@@ -3,7 +3,7 @@
3 3
4// +build mipsle,linux 4// +build mipsle,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x40041270 178 BLKBSZGET = 0x40041270
167 BLKBSZSET = 0x80041271 179 BLKBSZSET = 0x80041271
168 BLKFLSBUF = 0x20001261 180 BLKFLSBUF = 0x20001261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x80 354 EFD_NONBLOCK = 0x80
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000 480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -463,6 +499,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 504 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 506 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
@@ -476,6 +514,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 514 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 515 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 519 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 520 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 521 F_EXLCK = 0x4
@@ -488,6 +528,9 @@ const (
488 F_GETOWN_EX = 0x10 528 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 529 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 534 F_LOCK = 0x1
492 F_NOTIFY = 0x402 535 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 536 F_OFD_GETLK = 0x24
@@ -495,6 +538,10 @@ const (
495 F_OFD_SETLKW = 0x26 538 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 539 F_OK = 0x0
497 F_RDLCK = 0x0 540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 545 F_SETFD = 0x2
499 F_SETFL = 0x4 546 F_SETFL = 0x4
500 F_SETLEASE = 0x400 547 F_SETLEASE = 0x400
@@ -506,6 +553,8 @@ const (
506 F_SETOWN_EX = 0xf 553 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 554 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 558 F_SHLCK = 0x8
510 F_TEST = 0x3 559 F_TEST = 0x3
511 F_TLOCK = 0x2 560 F_TLOCK = 0x2
@@ -527,6 +576,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 576 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 577 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x400 622 HUPCL = 0x400
531 IBSHIFT = 0x10 623 IBSHIFT = 0x10
532 ICANON = 0x2 624 ICANON = 0x2
@@ -546,7 +638,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 638 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 639 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 640 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 641 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 642 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 643 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 644 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +653,8 @@ const (
561 IFF_MASTER = 0x400 653 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 654 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 658 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 659 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 660 IFF_NOTRAILERS = 0x20
@@ -671,6 +765,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 765 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 766 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 769 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 770 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 771 IPV6_HOPOPTS = 0x36
@@ -775,12 +870,34 @@ const (
775 IP_UNICAST_IF = 0x32 870 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 871 IP_XFRM_POLICY = 0x11
777 ISIG = 0x1 872 ISIG = 0x1
873 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 874 ISTRIP = 0x20
779 IUCLC = 0x200 875 IUCLC = 0x200
780 IUTF8 = 0x4000 876 IUTF8 = 0x4000
781 IXANY = 0x800 877 IXANY = 0x800
782 IXOFF = 0x1000 878 IXOFF = 0x1000
783 IXON = 0x400 879 IXON = 0x400
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 901 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 902 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 903 KEYCTL_CLEAR = 0x7
@@ -845,6 +962,7 @@ const (
845 MADV_FREE = 0x8 962 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 963 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 966 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 967 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 968 MADV_NORMAL = 0x0
@@ -853,12 +971,14 @@ const (
853 MADV_SEQUENTIAL = 0x2 971 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 972 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
856 MAP_ANON = 0x800 975 MAP_ANON = 0x800
857 MAP_ANONYMOUS = 0x800 976 MAP_ANONYMOUS = 0x800
858 MAP_DENYWRITE = 0x2000 977 MAP_DENYWRITE = 0x2000
859 MAP_EXECUTABLE = 0x4000 978 MAP_EXECUTABLE = 0x4000
860 MAP_FILE = 0x0 979 MAP_FILE = 0x0
861 MAP_FIXED = 0x10 980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
862 MAP_GROWSDOWN = 0x1000 982 MAP_GROWSDOWN = 0x1000
863 MAP_HUGETLB = 0x80000 983 MAP_HUGETLB = 0x80000
864 MAP_HUGE_MASK = 0x3f 984 MAP_HUGE_MASK = 0x3f
@@ -870,14 +990,36 @@ const (
870 MAP_PRIVATE = 0x2 990 MAP_PRIVATE = 0x2
871 MAP_RENAME = 0x800 991 MAP_RENAME = 0x800
872 MAP_SHARED = 0x1 992 MAP_SHARED = 0x1
993 MAP_SHARED_VALIDATE = 0x3
873 MAP_STACK = 0x40000 994 MAP_STACK = 0x40000
874 MAP_TYPE = 0xf 995 MAP_TYPE = 0xf
875 MCL_CURRENT = 0x1 996 MCL_CURRENT = 0x1
876 MCL_FUTURE = 0x2 997 MCL_FUTURE = 0x2
877 MCL_ONFAULT = 0x4 998 MCL_ONFAULT = 0x4
999 MFD_ALLOW_SEALING = 0x2
1000 MFD_CLOEXEC = 0x1
1001 MFD_HUGETLB = 0x4
1002 MFD_HUGE_16GB = -0x78000000
1003 MFD_HUGE_16MB = 0x60000000
1004 MFD_HUGE_1GB = 0x78000000
1005 MFD_HUGE_1MB = 0x50000000
1006 MFD_HUGE_256MB = 0x70000000
1007 MFD_HUGE_2GB = 0x7c000000
1008 MFD_HUGE_2MB = 0x54000000
1009 MFD_HUGE_512KB = 0x4c000000
1010 MFD_HUGE_64KB = 0x40000000
1011 MFD_HUGE_8MB = 0x5c000000
1012 MFD_HUGE_MASK = 0x3f
1013 MFD_HUGE_SHIFT = 0x1a
1014 MINIX2_SUPER_MAGIC = 0x2468
1015 MINIX2_SUPER_MAGIC2 = 0x2478
1016 MINIX3_SUPER_MAGIC = 0x4d5a
1017 MINIX_SUPER_MAGIC = 0x137f
1018 MINIX_SUPER_MAGIC2 = 0x138f
878 MNT_DETACH = 0x2 1019 MNT_DETACH = 0x2
879 MNT_EXPIRE = 0x4 1020 MNT_EXPIRE = 0x4
880 MNT_FORCE = 0x1 1021 MNT_FORCE = 0x1
1022 MSDOS_SUPER_MAGIC = 0x4d44
881 MSG_BATCH = 0x40000 1023 MSG_BATCH = 0x40000
882 MSG_CMSG_CLOEXEC = 0x40000000 1024 MSG_CMSG_CLOEXEC = 0x40000000
883 MSG_CONFIRM = 0x800 1025 MSG_CONFIRM = 0x800
@@ -899,6 +1041,7 @@ const (
899 MSG_TRYHARD = 0x4 1041 MSG_TRYHARD = 0x4
900 MSG_WAITALL = 0x100 1042 MSG_WAITALL = 0x100
901 MSG_WAITFORONE = 0x10000 1043 MSG_WAITFORONE = 0x10000
1044 MSG_ZEROCOPY = 0x4000000
902 MS_ACTIVE = 0x40000000 1045 MS_ACTIVE = 0x40000000
903 MS_ASYNC = 0x1 1046 MS_ASYNC = 0x1
904 MS_BIND = 0x1000 1047 MS_BIND = 0x1000
@@ -936,7 +1079,9 @@ const (
936 MS_SYNCHRONOUS = 0x10 1079 MS_SYNCHRONOUS = 0x10
937 MS_UNBINDABLE = 0x20000 1080 MS_UNBINDABLE = 0x20000
938 MS_VERBOSE = 0x8000 1081 MS_VERBOSE = 0x8000
1082 MTD_INODE_FS_MAGIC = 0x11307854
939 NAME_MAX = 0xff 1083 NAME_MAX = 0xff
1084 NCP_SUPER_MAGIC = 0x564c
940 NETLINK_ADD_MEMBERSHIP = 0x1 1085 NETLINK_ADD_MEMBERSHIP = 0x1
941 NETLINK_AUDIT = 0x9 1086 NETLINK_AUDIT = 0x9
942 NETLINK_BROADCAST_ERROR = 0x4 1087 NETLINK_BROADCAST_ERROR = 0x4
@@ -971,6 +1116,39 @@ const (
971 NETLINK_UNUSED = 0x1 1116 NETLINK_UNUSED = 0x1
972 NETLINK_USERSOCK = 0x2 1117 NETLINK_USERSOCK = 0x2
973 NETLINK_XFRM = 0x6 1118 NETLINK_XFRM = 0x6
1119 NETNSA_MAX = 0x3
1120 NETNSA_NSID_NOT_ASSIGNED = -0x1
1121 NFNETLINK_V0 = 0x0
1122 NFNLGRP_ACCT_QUOTA = 0x8
1123 NFNLGRP_CONNTRACK_DESTROY = 0x3
1124 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1125 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1126 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1127 NFNLGRP_CONNTRACK_NEW = 0x1
1128 NFNLGRP_CONNTRACK_UPDATE = 0x2
1129 NFNLGRP_MAX = 0x9
1130 NFNLGRP_NFTABLES = 0x7
1131 NFNLGRP_NFTRACE = 0x9
1132 NFNLGRP_NONE = 0x0
1133 NFNL_BATCH_MAX = 0x1
1134 NFNL_MSG_BATCH_BEGIN = 0x10
1135 NFNL_MSG_BATCH_END = 0x11
1136 NFNL_NFA_NEST = 0x8000
1137 NFNL_SUBSYS_ACCT = 0x7
1138 NFNL_SUBSYS_COUNT = 0xc
1139 NFNL_SUBSYS_CTHELPER = 0x9
1140 NFNL_SUBSYS_CTNETLINK = 0x1
1141 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1142 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1143 NFNL_SUBSYS_IPSET = 0x6
1144 NFNL_SUBSYS_NFTABLES = 0xa
1145 NFNL_SUBSYS_NFT_COMPAT = 0xb
1146 NFNL_SUBSYS_NONE = 0x0
1147 NFNL_SUBSYS_OSF = 0x5
1148 NFNL_SUBSYS_QUEUE = 0x3
1149 NFNL_SUBSYS_ULOG = 0x4
1150 NFS_SUPER_MAGIC = 0x6969
1151 NILFS_SUPER_MAGIC = 0x3434
974 NL0 = 0x0 1152 NL0 = 0x0
975 NL1 = 0x100 1153 NL1 = 0x100
976 NLA_ALIGNTO = 0x4 1154 NLA_ALIGNTO = 0x4
@@ -998,10 +1176,13 @@ const (
998 NLM_F_EXCL = 0x200 1176 NLM_F_EXCL = 0x200
999 NLM_F_MATCH = 0x200 1177 NLM_F_MATCH = 0x200
1000 NLM_F_MULTI = 0x2 1178 NLM_F_MULTI = 0x2
1179 NLM_F_NONREC = 0x100
1001 NLM_F_REPLACE = 0x100 1180 NLM_F_REPLACE = 0x100
1002 NLM_F_REQUEST = 0x1 1181 NLM_F_REQUEST = 0x1
1003 NLM_F_ROOT = 0x100 1182 NLM_F_ROOT = 0x100
1004 NOFLSH = 0x80 1183 NOFLSH = 0x80
1184 NSFS_MAGIC = 0x6e736673
1185 OCFS2_SUPER_MAGIC = 0x7461636f
1005 OCRNL = 0x8 1186 OCRNL = 0x8
1006 OFDEL = 0x80 1187 OFDEL = 0x80
1007 OFILL = 0x40 1188 OFILL = 0x40
@@ -1009,7 +1190,9 @@ const (
1009 ONLCR = 0x4 1190 ONLCR = 0x4
1010 ONLRET = 0x20 1191 ONLRET = 0x20
1011 ONOCR = 0x10 1192 ONOCR = 0x10
1193 OPENPROM_SUPER_MAGIC = 0x9fa1
1012 OPOST = 0x1 1194 OPOST = 0x1
1195 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1013 O_ACCMODE = 0x3 1196 O_ACCMODE = 0x3
1014 O_APPEND = 0x8 1197 O_APPEND = 0x8
1015 O_ASYNC = 0x1000 1198 O_ASYNC = 0x1000
@@ -1094,16 +1277,20 @@ const (
1094 PERF_EVENT_IOC_DISABLE = 0x20002401 1277 PERF_EVENT_IOC_DISABLE = 0x20002401
1095 PERF_EVENT_IOC_ENABLE = 0x20002400 1278 PERF_EVENT_IOC_ENABLE = 0x20002400
1096 PERF_EVENT_IOC_ID = 0x40042407 1279 PERF_EVENT_IOC_ID = 0x40042407
1280 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b
1097 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 1281 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
1098 PERF_EVENT_IOC_PERIOD = 0x80082404 1282 PERF_EVENT_IOC_PERIOD = 0x80082404
1283 PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
1099 PERF_EVENT_IOC_REFRESH = 0x20002402 1284 PERF_EVENT_IOC_REFRESH = 0x20002402
1100 PERF_EVENT_IOC_RESET = 0x20002403 1285 PERF_EVENT_IOC_RESET = 0x20002403
1101 PERF_EVENT_IOC_SET_BPF = 0x80042408 1286 PERF_EVENT_IOC_SET_BPF = 0x80042408
1102 PERF_EVENT_IOC_SET_FILTER = 0x80042406 1287 PERF_EVENT_IOC_SET_FILTER = 0x80042406
1103 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 1288 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
1289 PIPEFS_MAGIC = 0x50495045
1104 PRIO_PGRP = 0x1 1290 PRIO_PGRP = 0x1
1105 PRIO_PROCESS = 0x0 1291 PRIO_PROCESS = 0x0
1106 PRIO_USER = 0x2 1292 PRIO_USER = 0x2
1293 PROC_SUPER_MAGIC = 0x9fa0
1107 PROT_EXEC = 0x4 1294 PROT_EXEC = 0x4
1108 PROT_GROWSDOWN = 0x1000000 1295 PROT_GROWSDOWN = 0x1000000
1109 PROT_GROWSUP = 0x2000000 1296 PROT_GROWSUP = 0x2000000
@@ -1146,6 +1333,7 @@ const (
1146 PR_GET_PDEATHSIG = 0x2 1333 PR_GET_PDEATHSIG = 0x2
1147 PR_GET_SECCOMP = 0x15 1334 PR_GET_SECCOMP = 0x15
1148 PR_GET_SECUREBITS = 0x1b 1335 PR_GET_SECUREBITS = 0x1b
1336 PR_GET_SPECULATION_CTRL = 0x34
1149 PR_GET_THP_DISABLE = 0x2a 1337 PR_GET_THP_DISABLE = 0x2a
1150 PR_GET_TID_ADDRESS = 0x28 1338 PR_GET_TID_ADDRESS = 0x28
1151 PR_GET_TIMERSLACK = 0x1e 1339 PR_GET_TIMERSLACK = 0x1e
@@ -1191,11 +1379,23 @@ const (
1191 PR_SET_PTRACER_ANY = 0xffffffff 1379 PR_SET_PTRACER_ANY = 0xffffffff
1192 PR_SET_SECCOMP = 0x16 1380 PR_SET_SECCOMP = 0x16
1193 PR_SET_SECUREBITS = 0x1c 1381 PR_SET_SECUREBITS = 0x1c
1382 PR_SET_SPECULATION_CTRL = 0x35
1194 PR_SET_THP_DISABLE = 0x29 1383 PR_SET_THP_DISABLE = 0x29
1195 PR_SET_TIMERSLACK = 0x1d 1384 PR_SET_TIMERSLACK = 0x1d
1196 PR_SET_TIMING = 0xe 1385 PR_SET_TIMING = 0xe
1197 PR_SET_TSC = 0x1a 1386 PR_SET_TSC = 0x1a
1198 PR_SET_UNALIGN = 0x6 1387 PR_SET_UNALIGN = 0x6
1388 PR_SPEC_DISABLE = 0x4
1389 PR_SPEC_ENABLE = 0x2
1390 PR_SPEC_FORCE_DISABLE = 0x8
1391 PR_SPEC_NOT_AFFECTED = 0x0
1392 PR_SPEC_PRCTL = 0x1
1393 PR_SPEC_STORE_BYPASS = 0x0
1394 PR_SVE_GET_VL = 0x33
1395 PR_SVE_SET_VL = 0x32
1396 PR_SVE_SET_VL_ONEXEC = 0x40000
1397 PR_SVE_VL_INHERIT = 0x20000
1398 PR_SVE_VL_LEN_MASK = 0xffff
1199 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1399 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1200 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1400 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1201 PR_TIMING_STATISTICAL = 0x0 1401 PR_TIMING_STATISTICAL = 0x0
@@ -1204,6 +1404,7 @@ const (
1204 PR_TSC_SIGSEGV = 0x2 1404 PR_TSC_SIGSEGV = 0x2
1205 PR_UNALIGN_NOPRINT = 0x1 1405 PR_UNALIGN_NOPRINT = 0x1
1206 PR_UNALIGN_SIGBUS = 0x2 1406 PR_UNALIGN_SIGBUS = 0x2
1407 PSTOREFS_MAGIC = 0x6165676c
1207 PTRACE_ATTACH = 0x10 1408 PTRACE_ATTACH = 0x10
1208 PTRACE_CONT = 0x7 1409 PTRACE_CONT = 0x7
1209 PTRACE_DETACH = 0x11 1410 PTRACE_DETACH = 0x11
@@ -1252,6 +1453,7 @@ const (
1252 PTRACE_POKETEXT_3264 = 0xc2 1453 PTRACE_POKETEXT_3264 = 0xc2
1253 PTRACE_POKEUSR = 0x6 1454 PTRACE_POKEUSR = 0x6
1254 PTRACE_SECCOMP_GET_FILTER = 0x420c 1455 PTRACE_SECCOMP_GET_FILTER = 0x420c
1456 PTRACE_SECCOMP_GET_METADATA = 0x420d
1255 PTRACE_SEIZE = 0x4206 1457 PTRACE_SEIZE = 0x4206
1256 PTRACE_SETFPREGS = 0xf 1458 PTRACE_SETFPREGS = 0xf
1257 PTRACE_SETOPTIONS = 0x4200 1459 PTRACE_SETOPTIONS = 0x4200
@@ -1264,6 +1466,14 @@ const (
1264 PTRACE_SINGLESTEP = 0x9 1466 PTRACE_SINGLESTEP = 0x9
1265 PTRACE_SYSCALL = 0x18 1467 PTRACE_SYSCALL = 0x18
1266 PTRACE_TRACEME = 0x0 1468 PTRACE_TRACEME = 0x0
1469 QNX4_SUPER_MAGIC = 0x2f
1470 QNX6_SUPER_MAGIC = 0x68191122
1471 RAMFS_MAGIC = 0x858458f6
1472 RDTGROUP_SUPER_MAGIC = 0x7655821
1473 REISERFS_SUPER_MAGIC = 0x52654973
1474 RENAME_EXCHANGE = 0x2
1475 RENAME_NOREPLACE = 0x1
1476 RENAME_WHITEOUT = 0x4
1267 RLIMIT_AS = 0x6 1477 RLIMIT_AS = 0x6
1268 RLIMIT_CORE = 0x4 1478 RLIMIT_CORE = 0x4
1269 RLIMIT_CPU = 0x0 1479 RLIMIT_CPU = 0x0
@@ -1284,6 +1494,7 @@ const (
1284 RTAX_ADVMSS = 0x8 1494 RTAX_ADVMSS = 0x8
1285 RTAX_CC_ALGO = 0x10 1495 RTAX_CC_ALGO = 0x10
1286 RTAX_CWND = 0x7 1496 RTAX_CWND = 0x7
1497 RTAX_FASTOPEN_NO_COOKIE = 0x11
1287 RTAX_FEATURES = 0xc 1498 RTAX_FEATURES = 0xc
1288 RTAX_FEATURE_ALLFRAG = 0x8 1499 RTAX_FEATURE_ALLFRAG = 0x8
1289 RTAX_FEATURE_ECN = 0x1 1500 RTAX_FEATURE_ECN = 0x1
@@ -1294,7 +1505,7 @@ const (
1294 RTAX_INITCWND = 0xb 1505 RTAX_INITCWND = 0xb
1295 RTAX_INITRWND = 0xe 1506 RTAX_INITRWND = 0xe
1296 RTAX_LOCK = 0x1 1507 RTAX_LOCK = 0x1
1297 RTAX_MAX = 0x10 1508 RTAX_MAX = 0x11
1298 RTAX_MTU = 0x2 1509 RTAX_MTU = 0x2
1299 RTAX_QUICKACK = 0xf 1510 RTAX_QUICKACK = 0xf
1300 RTAX_REORDERING = 0x9 1511 RTAX_REORDERING = 0x9
@@ -1305,13 +1516,40 @@ const (
1305 RTAX_UNSPEC = 0x0 1516 RTAX_UNSPEC = 0x0
1306 RTAX_WINDOW = 0x3 1517 RTAX_WINDOW = 0x3
1307 RTA_ALIGNTO = 0x4 1518 RTA_ALIGNTO = 0x4
1308 RTA_MAX = 0x1a 1519 RTA_MAX = 0x1d
1309 RTCF_DIRECTSRC = 0x4000000 1520 RTCF_DIRECTSRC = 0x4000000
1310 RTCF_DOREDIRECT = 0x1000000 1521 RTCF_DOREDIRECT = 0x1000000
1311 RTCF_LOG = 0x2000000 1522 RTCF_LOG = 0x2000000
1312 RTCF_MASQ = 0x400000 1523 RTCF_MASQ = 0x400000
1313 RTCF_NAT = 0x800000 1524 RTCF_NAT = 0x800000
1314 RTCF_VALVE = 0x200000 1525 RTCF_VALVE = 0x200000
1526 RTC_AF = 0x20
1527 RTC_AIE_OFF = 0x20007002
1528 RTC_AIE_ON = 0x20007001
1529 RTC_ALM_READ = 0x40247008
1530 RTC_ALM_SET = 0x80247007
1531 RTC_EPOCH_READ = 0x4004700d
1532 RTC_EPOCH_SET = 0x8004700e
1533 RTC_IRQF = 0x80
1534 RTC_IRQP_READ = 0x4004700b
1535 RTC_IRQP_SET = 0x8004700c
1536 RTC_MAX_FREQ = 0x2000
1537 RTC_PF = 0x40
1538 RTC_PIE_OFF = 0x20007006
1539 RTC_PIE_ON = 0x20007005
1540 RTC_PLL_GET = 0x401c7011
1541 RTC_PLL_SET = 0x801c7012
1542 RTC_RD_TIME = 0x40247009
1543 RTC_SET_TIME = 0x8024700a
1544 RTC_UF = 0x10
1545 RTC_UIE_OFF = 0x20007004
1546 RTC_UIE_ON = 0x20007003
1547 RTC_VL_CLR = 0x20007014
1548 RTC_VL_READ = 0x40047013
1549 RTC_WIE_OFF = 0x20007010
1550 RTC_WIE_ON = 0x2000700f
1551 RTC_WKALM_RD = 0x40287010
1552 RTC_WKALM_SET = 0x8028700f
1315 RTF_ADDRCLASSMASK = 0xf8000000 1553 RTF_ADDRCLASSMASK = 0xf8000000
1316 RTF_ADDRCONF = 0x40000 1554 RTF_ADDRCONF = 0x40000
1317 RTF_ALLONLINK = 0x20000 1555 RTF_ALLONLINK = 0x20000
@@ -1414,17 +1652,22 @@ const (
1414 RTNH_F_UNRESOLVED = 0x20 1652 RTNH_F_UNRESOLVED = 0x20
1415 RTN_MAX = 0xb 1653 RTN_MAX = 0xb
1416 RTPROT_BABEL = 0x2a 1654 RTPROT_BABEL = 0x2a
1655 RTPROT_BGP = 0xba
1417 RTPROT_BIRD = 0xc 1656 RTPROT_BIRD = 0xc
1418 RTPROT_BOOT = 0x3 1657 RTPROT_BOOT = 0x3
1419 RTPROT_DHCP = 0x10 1658 RTPROT_DHCP = 0x10
1420 RTPROT_DNROUTED = 0xd 1659 RTPROT_DNROUTED = 0xd
1660 RTPROT_EIGRP = 0xc0
1421 RTPROT_GATED = 0x8 1661 RTPROT_GATED = 0x8
1662 RTPROT_ISIS = 0xbb
1422 RTPROT_KERNEL = 0x2 1663 RTPROT_KERNEL = 0x2
1423 RTPROT_MROUTED = 0x11 1664 RTPROT_MROUTED = 0x11
1424 RTPROT_MRT = 0xa 1665 RTPROT_MRT = 0xa
1425 RTPROT_NTK = 0xf 1666 RTPROT_NTK = 0xf
1667 RTPROT_OSPF = 0xbc
1426 RTPROT_RA = 0x9 1668 RTPROT_RA = 0x9
1427 RTPROT_REDIRECT = 0x1 1669 RTPROT_REDIRECT = 0x1
1670 RTPROT_RIP = 0xbd
1428 RTPROT_STATIC = 0x4 1671 RTPROT_STATIC = 0x4
1429 RTPROT_UNSPEC = 0x0 1672 RTPROT_UNSPEC = 0x0
1430 RTPROT_XORP = 0xe 1673 RTPROT_XORP = 0xe
@@ -1448,6 +1691,8 @@ const (
1448 SECCOMP_MODE_DISABLED = 0x0 1691 SECCOMP_MODE_DISABLED = 0x0
1449 SECCOMP_MODE_FILTER = 0x2 1692 SECCOMP_MODE_FILTER = 0x2
1450 SECCOMP_MODE_STRICT = 0x1 1693 SECCOMP_MODE_STRICT = 0x1
1694 SECURITYFS_MAGIC = 0x73636673
1695 SELINUX_MAGIC = 0xf97cff8c
1451 SHUT_RD = 0x0 1696 SHUT_RD = 0x0
1452 SHUT_RDWR = 0x2 1697 SHUT_RDWR = 0x2
1453 SHUT_WR = 0x1 1698 SHUT_WR = 0x1
@@ -1532,6 +1777,23 @@ const (
1532 SIOCSPGRP = 0x80047308 1777 SIOCSPGRP = 0x80047308
1533 SIOCSRARP = 0x8962 1778 SIOCSRARP = 0x8962
1534 SIOCWANDEV = 0x894a 1779 SIOCWANDEV = 0x894a
1780 SMACK_MAGIC = 0x43415d53
1781 SMART_AUTOSAVE = 0xd2
1782 SMART_AUTO_OFFLINE = 0xdb
1783 SMART_DISABLE = 0xd9
1784 SMART_ENABLE = 0xd8
1785 SMART_HCYL_PASS = 0xc2
1786 SMART_IMMEDIATE_OFFLINE = 0xd4
1787 SMART_LCYL_PASS = 0x4f
1788 SMART_READ_LOG_SECTOR = 0xd5
1789 SMART_READ_THRESHOLDS = 0xd1
1790 SMART_READ_VALUES = 0xd0
1791 SMART_SAVE = 0xd3
1792 SMART_STATUS = 0xda
1793 SMART_WRITE_LOG_SECTOR = 0xd6
1794 SMART_WRITE_THRESHOLDS = 0xd7
1795 SMB_SUPER_MAGIC = 0x517b
1796 SOCKFS_MAGIC = 0x534f434b
1535 SOCK_CLOEXEC = 0x80000 1797 SOCK_CLOEXEC = 0x80000
1536 SOCK_DCCP = 0x6 1798 SOCK_DCCP = 0x6
1537 SOCK_DGRAM = 0x1 1799 SOCK_DGRAM = 0x1
@@ -1568,7 +1830,9 @@ const (
1568 SOL_SOCKET = 0xffff 1830 SOL_SOCKET = 0xffff
1569 SOL_TCP = 0x6 1831 SOL_TCP = 0x6
1570 SOL_TIPC = 0x10f 1832 SOL_TIPC = 0x10f
1833 SOL_TLS = 0x11a
1571 SOL_X25 = 0x106 1834 SOL_X25 = 0x106
1835 SOL_XDP = 0x11b
1572 SOMAXCONN = 0x80 1836 SOMAXCONN = 0x80
1573 SO_ACCEPTCONN = 0x1009 1837 SO_ACCEPTCONN = 0x1009
1574 SO_ATTACH_BPF = 0x32 1838 SO_ATTACH_BPF = 0x32
@@ -1637,10 +1901,13 @@ const (
1637 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1901 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1638 SO_VM_SOCKETS_TRUSTED = 0x5 1902 SO_VM_SOCKETS_TRUSTED = 0x5
1639 SO_WIFI_STATUS = 0x29 1903 SO_WIFI_STATUS = 0x29
1904 SO_ZEROCOPY = 0x3c
1640 SPLICE_F_GIFT = 0x8 1905 SPLICE_F_GIFT = 0x8
1641 SPLICE_F_MORE = 0x4 1906 SPLICE_F_MORE = 0x4
1642 SPLICE_F_MOVE = 0x1 1907 SPLICE_F_MOVE = 0x1
1643 SPLICE_F_NONBLOCK = 0x2 1908 SPLICE_F_NONBLOCK = 0x2
1909 SQUASHFS_MAGIC = 0x73717368
1910 STACK_END_MAGIC = 0x57ac6e9d
1644 STATX_ALL = 0xfff 1911 STATX_ALL = 0xfff
1645 STATX_ATIME = 0x20 1912 STATX_ATIME = 0x20
1646 STATX_ATTR_APPEND = 0x20 1913 STATX_ATTR_APPEND = 0x20
@@ -1662,6 +1929,10 @@ const (
1662 STATX_TYPE = 0x1 1929 STATX_TYPE = 0x1
1663 STATX_UID = 0x8 1930 STATX_UID = 0x8
1664 STATX__RESERVED = 0x80000000 1931 STATX__RESERVED = 0x80000000
1932 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1933 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1934 SYNC_FILE_RANGE_WRITE = 0x2
1935 SYSFS_MAGIC = 0x62656572
1665 S_BLKSIZE = 0x200 1936 S_BLKSIZE = 0x200
1666 S_IEXEC = 0x40 1937 S_IEXEC = 0x40
1667 S_IFBLK = 0x6000 1938 S_IFBLK = 0x6000
@@ -1723,6 +1994,8 @@ const (
1723 TCP_DEFER_ACCEPT = 0x9 1994 TCP_DEFER_ACCEPT = 0x9
1724 TCP_FASTOPEN = 0x17 1995 TCP_FASTOPEN = 0x17
1725 TCP_FASTOPEN_CONNECT = 0x1e 1996 TCP_FASTOPEN_CONNECT = 0x1e
1997 TCP_FASTOPEN_KEY = 0x21
1998 TCP_FASTOPEN_NO_COOKIE = 0x22
1726 TCP_INFO = 0xb 1999 TCP_INFO = 0xb
1727 TCP_KEEPCNT = 0x6 2000 TCP_KEEPCNT = 0x6
1728 TCP_KEEPIDLE = 0x4 2001 TCP_KEEPIDLE = 0x4
@@ -1732,6 +2005,8 @@ const (
1732 TCP_MAXWIN = 0xffff 2005 TCP_MAXWIN = 0xffff
1733 TCP_MAX_WINSHIFT = 0xe 2006 TCP_MAX_WINSHIFT = 0xe
1734 TCP_MD5SIG = 0xe 2007 TCP_MD5SIG = 0xe
2008 TCP_MD5SIG_EXT = 0x20
2009 TCP_MD5SIG_FLAG_PREFIX = 0x1
1735 TCP_MD5SIG_MAXKEYLEN = 0x50 2010 TCP_MD5SIG_MAXKEYLEN = 0x50
1736 TCP_MSS = 0x200 2011 TCP_MSS = 0x200
1737 TCP_MSS_DEFAULT = 0x218 2012 TCP_MSS_DEFAULT = 0x218
@@ -1752,6 +2027,7 @@ const (
1752 TCP_THIN_DUPACK = 0x11 2027 TCP_THIN_DUPACK = 0x11
1753 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2028 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1754 TCP_TIMESTAMP = 0x18 2029 TCP_TIMESTAMP = 0x18
2030 TCP_ULP = 0x1f
1755 TCP_USER_TIMEOUT = 0x12 2031 TCP_USER_TIMEOUT = 0x12
1756 TCP_WINDOW_CLAMP = 0xa 2032 TCP_WINDOW_CLAMP = 0xa
1757 TCSAFLUSH = 0x5410 2033 TCSAFLUSH = 0x5410
@@ -1841,7 +2117,27 @@ const (
1841 TIOCSTI = 0x5472 2117 TIOCSTI = 0x5472
1842 TIOCSWINSZ = 0x80087467 2118 TIOCSWINSZ = 0x80087467
1843 TIOCVHANGUP = 0x5437 2119 TIOCVHANGUP = 0x5437
2120 TMPFS_MAGIC = 0x1021994
1844 TOSTOP = 0x8000 2121 TOSTOP = 0x8000
2122 TPACKET_ALIGNMENT = 0x10
2123 TPACKET_HDRLEN = 0x34
2124 TP_STATUS_AVAILABLE = 0x0
2125 TP_STATUS_BLK_TMO = 0x20
2126 TP_STATUS_COPY = 0x2
2127 TP_STATUS_CSUMNOTREADY = 0x8
2128 TP_STATUS_CSUM_VALID = 0x80
2129 TP_STATUS_KERNEL = 0x0
2130 TP_STATUS_LOSING = 0x4
2131 TP_STATUS_SENDING = 0x2
2132 TP_STATUS_SEND_REQUEST = 0x1
2133 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2134 TP_STATUS_TS_SOFTWARE = 0x20000000
2135 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2136 TP_STATUS_USER = 0x1
2137 TP_STATUS_VLAN_TPID_VALID = 0x40
2138 TP_STATUS_VLAN_VALID = 0x10
2139 TP_STATUS_WRONG_FORMAT = 0x4
2140 TRACEFS_MAGIC = 0x74726163
1845 TS_COMM_LEN = 0x20 2141 TS_COMM_LEN = 0x20
1846 TUNATTACHFILTER = 0x800854d5 2142 TUNATTACHFILTER = 0x800854d5
1847 TUNDETACHFILTER = 0x800854d6 2143 TUNDETACHFILTER = 0x800854d6
@@ -1853,6 +2149,7 @@ const (
1853 TUNGETVNETHDRSZ = 0x400454d7 2149 TUNGETVNETHDRSZ = 0x400454d7
1854 TUNGETVNETLE = 0x400454dd 2150 TUNGETVNETLE = 0x400454dd
1855 TUNSETDEBUG = 0x800454c9 2151 TUNSETDEBUG = 0x800454c9
2152 TUNSETFILTEREBPF = 0x400454e1
1856 TUNSETGROUP = 0x800454ce 2153 TUNSETGROUP = 0x800454ce
1857 TUNSETIFF = 0x800454ca 2154 TUNSETIFF = 0x800454ca
1858 TUNSETIFINDEX = 0x800454da 2155 TUNSETIFINDEX = 0x800454da
@@ -1863,13 +2160,32 @@ const (
1863 TUNSETPERSIST = 0x800454cb 2160 TUNSETPERSIST = 0x800454cb
1864 TUNSETQUEUE = 0x800454d9 2161 TUNSETQUEUE = 0x800454d9
1865 TUNSETSNDBUF = 0x800454d4 2162 TUNSETSNDBUF = 0x800454d4
2163 TUNSETSTEERINGEBPF = 0x400454e0
1866 TUNSETTXFILTER = 0x800454d1 2164 TUNSETTXFILTER = 0x800454d1
1867 TUNSETVNETBE = 0x800454de 2165 TUNSETVNETBE = 0x800454de
1868 TUNSETVNETHDRSZ = 0x800454d8 2166 TUNSETVNETHDRSZ = 0x800454d8
1869 TUNSETVNETLE = 0x800454dc 2167 TUNSETVNETLE = 0x800454dc
2168 UBI_IOCATT = 0x80186f40
2169 UBI_IOCDET = 0x80046f41
2170 UBI_IOCEBCH = 0x80044f02
2171 UBI_IOCEBER = 0x80044f01
2172 UBI_IOCEBISMAP = 0x40044f05
2173 UBI_IOCEBMAP = 0x80084f03
2174 UBI_IOCEBUNMAP = 0x80044f04
2175 UBI_IOCMKVOL = 0x80986f00
2176 UBI_IOCRMVOL = 0x80046f01
2177 UBI_IOCRNVOL = 0x91106f03
2178 UBI_IOCRSVOL = 0x800c6f02
2179 UBI_IOCSETVOLPROP = 0x80104f06
2180 UBI_IOCVOLCRBLK = 0x80804f07
2181 UBI_IOCVOLRMBLK = 0x20004f08
2182 UBI_IOCVOLUP = 0x80084f00
2183 UDF_SUPER_MAGIC = 0x15013346
1870 UMOUNT_NOFOLLOW = 0x8 2184 UMOUNT_NOFOLLOW = 0x8
2185 USBDEVICE_SUPER_MAGIC = 0x9fa2
1871 UTIME_NOW = 0x3fffffff 2186 UTIME_NOW = 0x3fffffff
1872 UTIME_OMIT = 0x3ffffffe 2187 UTIME_OMIT = 0x3ffffffe
2188 V9FS_MAGIC = 0x1021997
1873 VDISCARD = 0xd 2189 VDISCARD = 0xd
1874 VEOF = 0x10 2190 VEOF = 0x10
1875 VEOL = 0x11 2191 VEOL = 0x11
@@ -1912,6 +2228,86 @@ const (
1912 WDIOC_SETPRETIMEOUT = 0xc0045708 2228 WDIOC_SETPRETIMEOUT = 0xc0045708
1913 WDIOC_SETTIMEOUT = 0xc0045706 2229 WDIOC_SETTIMEOUT = 0xc0045706
1914 WEXITED = 0x4 2230 WEXITED = 0x4
2231 WIN_ACKMEDIACHANGE = 0xdb
2232 WIN_CHECKPOWERMODE1 = 0xe5
2233 WIN_CHECKPOWERMODE2 = 0x98
2234 WIN_DEVICE_RESET = 0x8
2235 WIN_DIAGNOSE = 0x90
2236 WIN_DOORLOCK = 0xde
2237 WIN_DOORUNLOCK = 0xdf
2238 WIN_DOWNLOAD_MICROCODE = 0x92
2239 WIN_FLUSH_CACHE = 0xe7
2240 WIN_FLUSH_CACHE_EXT = 0xea
2241 WIN_FORMAT = 0x50
2242 WIN_GETMEDIASTATUS = 0xda
2243 WIN_IDENTIFY = 0xec
2244 WIN_IDENTIFY_DMA = 0xee
2245 WIN_IDLEIMMEDIATE = 0xe1
2246 WIN_INIT = 0x60
2247 WIN_MEDIAEJECT = 0xed
2248 WIN_MULTREAD = 0xc4
2249 WIN_MULTREAD_EXT = 0x29
2250 WIN_MULTWRITE = 0xc5
2251 WIN_MULTWRITE_EXT = 0x39
2252 WIN_NOP = 0x0
2253 WIN_PACKETCMD = 0xa0
2254 WIN_PIDENTIFY = 0xa1
2255 WIN_POSTBOOT = 0xdc
2256 WIN_PREBOOT = 0xdd
2257 WIN_QUEUED_SERVICE = 0xa2
2258 WIN_READ = 0x20
2259 WIN_READDMA = 0xc8
2260 WIN_READDMA_EXT = 0x25
2261 WIN_READDMA_ONCE = 0xc9
2262 WIN_READDMA_QUEUED = 0xc7
2263 WIN_READDMA_QUEUED_EXT = 0x26
2264 WIN_READ_BUFFER = 0xe4
2265 WIN_READ_EXT = 0x24
2266 WIN_READ_LONG = 0x22
2267 WIN_READ_LONG_ONCE = 0x23
2268 WIN_READ_NATIVE_MAX = 0xf8
2269 WIN_READ_NATIVE_MAX_EXT = 0x27
2270 WIN_READ_ONCE = 0x21
2271 WIN_RECAL = 0x10
2272 WIN_RESTORE = 0x10
2273 WIN_SECURITY_DISABLE = 0xf6
2274 WIN_SECURITY_ERASE_PREPARE = 0xf3
2275 WIN_SECURITY_ERASE_UNIT = 0xf4
2276 WIN_SECURITY_FREEZE_LOCK = 0xf5
2277 WIN_SECURITY_SET_PASS = 0xf1
2278 WIN_SECURITY_UNLOCK = 0xf2
2279 WIN_SEEK = 0x70
2280 WIN_SETFEATURES = 0xef
2281 WIN_SETIDLE1 = 0xe3
2282 WIN_SETIDLE2 = 0x97
2283 WIN_SETMULT = 0xc6
2284 WIN_SET_MAX = 0xf9
2285 WIN_SET_MAX_EXT = 0x37
2286 WIN_SLEEPNOW1 = 0xe6
2287 WIN_SLEEPNOW2 = 0x99
2288 WIN_SMART = 0xb0
2289 WIN_SPECIFY = 0x91
2290 WIN_SRST = 0x8
2291 WIN_STANDBY = 0xe2
2292 WIN_STANDBY2 = 0x96
2293 WIN_STANDBYNOW1 = 0xe0
2294 WIN_STANDBYNOW2 = 0x94
2295 WIN_VERIFY = 0x40
2296 WIN_VERIFY_EXT = 0x42
2297 WIN_VERIFY_ONCE = 0x41
2298 WIN_WRITE = 0x30
2299 WIN_WRITEDMA = 0xca
2300 WIN_WRITEDMA_EXT = 0x35
2301 WIN_WRITEDMA_ONCE = 0xcb
2302 WIN_WRITEDMA_QUEUED = 0xcc
2303 WIN_WRITEDMA_QUEUED_EXT = 0x36
2304 WIN_WRITE_BUFFER = 0xe8
2305 WIN_WRITE_EXT = 0x34
2306 WIN_WRITE_LONG = 0x32
2307 WIN_WRITE_LONG_ONCE = 0x33
2308 WIN_WRITE_ONCE = 0x31
2309 WIN_WRITE_SAME = 0xe9
2310 WIN_WRITE_VERIFY = 0x3c
1915 WNOHANG = 0x1 2311 WNOHANG = 0x1
1916 WNOTHREAD = 0x20000000 2312 WNOTHREAD = 0x20000000
1917 WNOWAIT = 0x1000000 2313 WNOWAIT = 0x1000000
@@ -1921,7 +2317,29 @@ const (
1921 XATTR_CREATE = 0x1 2317 XATTR_CREATE = 0x1
1922 XATTR_REPLACE = 0x2 2318 XATTR_REPLACE = 0x2
1923 XCASE = 0x4 2319 XCASE = 0x4
2320 XDP_COPY = 0x2
2321 XDP_FLAGS_DRV_MODE = 0x4
2322 XDP_FLAGS_HW_MODE = 0x8
2323 XDP_FLAGS_MASK = 0xf
2324 XDP_FLAGS_MODES = 0xe
2325 XDP_FLAGS_SKB_MODE = 0x2
2326 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2327 XDP_MMAP_OFFSETS = 0x1
2328 XDP_PGOFF_RX_RING = 0x0
2329 XDP_PGOFF_TX_RING = 0x80000000
2330 XDP_RX_RING = 0x2
2331 XDP_SHARED_UMEM = 0x1
2332 XDP_STATISTICS = 0x7
2333 XDP_TX_RING = 0x3
2334 XDP_UMEM_COMPLETION_RING = 0x6
2335 XDP_UMEM_FILL_RING = 0x5
2336 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2337 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2338 XDP_UMEM_REG = 0x4
2339 XDP_ZEROCOPY = 0x4
2340 XENFS_SUPER_MAGIC = 0xabba1974
1924 XTABS = 0x1800 2341 XTABS = 0x1800
2342 ZSMALLOC_MAGIC = 0x58295829
1925) 2343)
1926 2344
1927// Errors 2345// Errors
@@ -2103,174 +2521,182 @@ const (
2103) 2521)
2104 2522
2105// Error table 2523// Error table
2106var errors = [...]string{ 2524var errorList = [...]struct {
2107 1: "operation not permitted", 2525 num syscall.Errno
2108 2: "no such file or directory", 2526 name string
2109 3: "no such process", 2527 desc string
2110 4: "interrupted system call", 2528}{
2111 5: "input/output error", 2529 {1, "EPERM", "operation not permitted"},
2112 6: "no such device or address", 2530 {2, "ENOENT", "no such file or directory"},
2113 7: "argument list too long", 2531 {3, "ESRCH", "no such process"},
2114 8: "exec format error", 2532 {4, "EINTR", "interrupted system call"},
2115 9: "bad file descriptor", 2533 {5, "EIO", "input/output error"},
2116 10: "no child processes", 2534 {6, "ENXIO", "no such device or address"},
2117 11: "resource temporarily unavailable", 2535 {7, "E2BIG", "argument list too long"},
2118 12: "cannot allocate memory", 2536 {8, "ENOEXEC", "exec format error"},
2119 13: "permission denied", 2537 {9, "EBADF", "bad file descriptor"},
2120 14: "bad address", 2538 {10, "ECHILD", "no child processes"},
2121 15: "block device required", 2539 {11, "EAGAIN", "resource temporarily unavailable"},
2122 16: "device or resource busy", 2540 {12, "ENOMEM", "cannot allocate memory"},
2123 17: "file exists", 2541 {13, "EACCES", "permission denied"},
2124 18: "invalid cross-device link", 2542 {14, "EFAULT", "bad address"},
2125 19: "no such device", 2543 {15, "ENOTBLK", "block device required"},
2126 20: "not a directory", 2544 {16, "EBUSY", "device or resource busy"},
2127 21: "is a directory", 2545 {17, "EEXIST", "file exists"},
2128 22: "invalid argument", 2546 {18, "EXDEV", "invalid cross-device link"},
2129 23: "too many open files in system", 2547 {19, "ENODEV", "no such device"},
2130 24: "too many open files", 2548 {20, "ENOTDIR", "not a directory"},
2131 25: "inappropriate ioctl for device", 2549 {21, "EISDIR", "is a directory"},
2132 26: "text file busy", 2550 {22, "EINVAL", "invalid argument"},
2133 27: "file too large", 2551 {23, "ENFILE", "too many open files in system"},
2134 28: "no space left on device", 2552 {24, "EMFILE", "too many open files"},
2135 29: "illegal seek", 2553 {25, "ENOTTY", "inappropriate ioctl for device"},
2136 30: "read-only file system", 2554 {26, "ETXTBSY", "text file busy"},
2137 31: "too many links", 2555 {27, "EFBIG", "file too large"},
2138 32: "broken pipe", 2556 {28, "ENOSPC", "no space left on device"},
2139 33: "numerical argument out of domain", 2557 {29, "ESPIPE", "illegal seek"},
2140 34: "numerical result out of range", 2558 {30, "EROFS", "read-only file system"},
2141 35: "no message of desired type", 2559 {31, "EMLINK", "too many links"},
2142 36: "identifier removed", 2560 {32, "EPIPE", "broken pipe"},
2143 37: "channel number out of range", 2561 {33, "EDOM", "numerical argument out of domain"},
2144 38: "level 2 not synchronized", 2562 {34, "ERANGE", "numerical result out of range"},
2145 39: "level 3 halted", 2563 {35, "ENOMSG", "no message of desired type"},
2146 40: "level 3 reset", 2564 {36, "EIDRM", "identifier removed"},
2147 41: "link number out of range", 2565 {37, "ECHRNG", "channel number out of range"},
2148 42: "protocol driver not attached", 2566 {38, "EL2NSYNC", "level 2 not synchronized"},
2149 43: "no CSI structure available", 2567 {39, "EL3HLT", "level 3 halted"},
2150 44: "level 2 halted", 2568 {40, "EL3RST", "level 3 reset"},
2151 45: "resource deadlock avoided", 2569 {41, "ELNRNG", "link number out of range"},
2152 46: "no locks available", 2570 {42, "EUNATCH", "protocol driver not attached"},
2153 50: "invalid exchange", 2571 {43, "ENOCSI", "no CSI structure available"},
2154 51: "invalid request descriptor", 2572 {44, "EL2HLT", "level 2 halted"},
2155 52: "exchange full", 2573 {45, "EDEADLK", "resource deadlock avoided"},
2156 53: "no anode", 2574 {46, "ENOLCK", "no locks available"},
2157 54: "invalid request code", 2575 {50, "EBADE", "invalid exchange"},
2158 55: "invalid slot", 2576 {51, "EBADR", "invalid request descriptor"},
2159 56: "file locking deadlock error", 2577 {52, "EXFULL", "exchange full"},
2160 59: "bad font file format", 2578 {53, "ENOANO", "no anode"},
2161 60: "device not a stream", 2579 {54, "EBADRQC", "invalid request code"},
2162 61: "no data available", 2580 {55, "EBADSLT", "invalid slot"},
2163 62: "timer expired", 2581 {56, "EDEADLOCK", "file locking deadlock error"},
2164 63: "out of streams resources", 2582 {59, "EBFONT", "bad font file format"},
2165 64: "machine is not on the network", 2583 {60, "ENOSTR", "device not a stream"},
2166 65: "package not installed", 2584 {61, "ENODATA", "no data available"},
2167 66: "object is remote", 2585 {62, "ETIME", "timer expired"},
2168 67: "link has been severed", 2586 {63, "ENOSR", "out of streams resources"},
2169 68: "advertise error", 2587 {64, "ENONET", "machine is not on the network"},
2170 69: "srmount error", 2588 {65, "ENOPKG", "package not installed"},
2171 70: "communication error on send", 2589 {66, "EREMOTE", "object is remote"},
2172 71: "protocol error", 2590 {67, "ENOLINK", "link has been severed"},
2173 73: "RFS specific error", 2591 {68, "EADV", "advertise error"},
2174 74: "multihop attempted", 2592 {69, "ESRMNT", "srmount error"},
2175 77: "bad message", 2593 {70, "ECOMM", "communication error on send"},
2176 78: "file name too long", 2594 {71, "EPROTO", "protocol error"},
2177 79: "value too large for defined data type", 2595 {73, "EDOTDOT", "RFS specific error"},
2178 80: "name not unique on network", 2596 {74, "EMULTIHOP", "multihop attempted"},
2179 81: "file descriptor in bad state", 2597 {77, "EBADMSG", "bad message"},
2180 82: "remote address changed", 2598 {78, "ENAMETOOLONG", "file name too long"},
2181 83: "can not access a needed shared library", 2599 {79, "EOVERFLOW", "value too large for defined data type"},
2182 84: "accessing a corrupted shared library", 2600 {80, "ENOTUNIQ", "name not unique on network"},
2183 85: ".lib section in a.out corrupted", 2601 {81, "EBADFD", "file descriptor in bad state"},
2184 86: "attempting to link in too many shared libraries", 2602 {82, "EREMCHG", "remote address changed"},
2185 87: "cannot exec a shared library directly", 2603 {83, "ELIBACC", "can not access a needed shared library"},
2186 88: "invalid or incomplete multibyte or wide character", 2604 {84, "ELIBBAD", "accessing a corrupted shared library"},
2187 89: "function not implemented", 2605 {85, "ELIBSCN", ".lib section in a.out corrupted"},
2188 90: "too many levels of symbolic links", 2606 {86, "ELIBMAX", "attempting to link in too many shared libraries"},
2189 91: "interrupted system call should be restarted", 2607 {87, "ELIBEXEC", "cannot exec a shared library directly"},
2190 92: "streams pipe error", 2608 {88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2191 93: "directory not empty", 2609 {89, "ENOSYS", "function not implemented"},
2192 94: "too many users", 2610 {90, "ELOOP", "too many levels of symbolic links"},
2193 95: "socket operation on non-socket", 2611 {91, "ERESTART", "interrupted system call should be restarted"},
2194 96: "destination address required", 2612 {92, "ESTRPIPE", "streams pipe error"},
2195 97: "message too long", 2613 {93, "ENOTEMPTY", "directory not empty"},
2196 98: "protocol wrong type for socket", 2614 {94, "EUSERS", "too many users"},
2197 99: "protocol not available", 2615 {95, "ENOTSOCK", "socket operation on non-socket"},
2198 120: "protocol not supported", 2616 {96, "EDESTADDRREQ", "destination address required"},
2199 121: "socket type not supported", 2617 {97, "EMSGSIZE", "message too long"},
2200 122: "operation not supported", 2618 {98, "EPROTOTYPE", "protocol wrong type for socket"},
2201 123: "protocol family not supported", 2619 {99, "ENOPROTOOPT", "protocol not available"},
2202 124: "address family not supported by protocol", 2620 {120, "EPROTONOSUPPORT", "protocol not supported"},
2203 125: "address already in use", 2621 {121, "ESOCKTNOSUPPORT", "socket type not supported"},
2204 126: "cannot assign requested address", 2622 {122, "ENOTSUP", "operation not supported"},
2205 127: "network is down", 2623 {123, "EPFNOSUPPORT", "protocol family not supported"},
2206 128: "network is unreachable", 2624 {124, "EAFNOSUPPORT", "address family not supported by protocol"},
2207 129: "network dropped connection on reset", 2625 {125, "EADDRINUSE", "address already in use"},
2208 130: "software caused connection abort", 2626 {126, "EADDRNOTAVAIL", "cannot assign requested address"},
2209 131: "connection reset by peer", 2627 {127, "ENETDOWN", "network is down"},
2210 132: "no buffer space available", 2628 {128, "ENETUNREACH", "network is unreachable"},
2211 133: "transport endpoint is already connected", 2629 {129, "ENETRESET", "network dropped connection on reset"},
2212 134: "transport endpoint is not connected", 2630 {130, "ECONNABORTED", "software caused connection abort"},
2213 135: "structure needs cleaning", 2631 {131, "ECONNRESET", "connection reset by peer"},
2214 137: "not a XENIX named type file", 2632 {132, "ENOBUFS", "no buffer space available"},
2215 138: "no XENIX semaphores available", 2633 {133, "EISCONN", "transport endpoint is already connected"},
2216 139: "is a named type file", 2634 {134, "ENOTCONN", "transport endpoint is not connected"},
2217 140: "remote I/O error", 2635 {135, "EUCLEAN", "structure needs cleaning"},
2218 141: "unknown error 141", 2636 {137, "ENOTNAM", "not a XENIX named type file"},
2219 142: "unknown error 142", 2637 {138, "ENAVAIL", "no XENIX semaphores available"},
2220 143: "cannot send after transport endpoint shutdown", 2638 {139, "EISNAM", "is a named type file"},
2221 144: "too many references: cannot splice", 2639 {140, "EREMOTEIO", "remote I/O error"},
2222 145: "connection timed out", 2640 {141, "EINIT", "unknown error 141"},
2223 146: "connection refused", 2641 {142, "EREMDEV", "unknown error 142"},
2224 147: "host is down", 2642 {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2225 148: "no route to host", 2643 {144, "ETOOMANYREFS", "too many references: cannot splice"},
2226 149: "operation already in progress", 2644 {145, "ETIMEDOUT", "connection timed out"},
2227 150: "operation now in progress", 2645 {146, "ECONNREFUSED", "connection refused"},
2228 151: "stale file handle", 2646 {147, "EHOSTDOWN", "host is down"},
2229 158: "operation canceled", 2647 {148, "EHOSTUNREACH", "no route to host"},
2230 159: "no medium found", 2648 {149, "EALREADY", "operation already in progress"},
2231 160: "wrong medium type", 2649 {150, "EINPROGRESS", "operation now in progress"},
2232 161: "required key not available", 2650 {151, "ESTALE", "stale file handle"},
2233 162: "key has expired", 2651 {158, "ECANCELED", "operation canceled"},
2234 163: "key has been revoked", 2652 {159, "ENOMEDIUM", "no medium found"},
2235 164: "key was rejected by service", 2653 {160, "EMEDIUMTYPE", "wrong medium type"},
2236 165: "owner died", 2654 {161, "ENOKEY", "required key not available"},
2237 166: "state not recoverable", 2655 {162, "EKEYEXPIRED", "key has expired"},
2238 167: "operation not possible due to RF-kill", 2656 {163, "EKEYREVOKED", "key has been revoked"},
2239 168: "memory page has hardware error", 2657 {164, "EKEYREJECTED", "key was rejected by service"},
2240 1133: "disk quota exceeded", 2658 {165, "EOWNERDEAD", "owner died"},
2659 {166, "ENOTRECOVERABLE", "state not recoverable"},
2660 {167, "ERFKILL", "operation not possible due to RF-kill"},
2661 {168, "EHWPOISON", "memory page has hardware error"},
2662 {1133, "EDQUOT", "disk quota exceeded"},
2241} 2663}
2242 2664
2243// Signal table 2665// Signal table
2244var signals = [...]string{ 2666var signalList = [...]struct {
2245 1: "hangup", 2667 num syscall.Signal
2246 2: "interrupt", 2668 name string
2247 3: "quit", 2669 desc string
2248 4: "illegal instruction", 2670}{
2249 5: "trace/breakpoint trap", 2671 {1, "SIGHUP", "hangup"},
2250 6: "aborted", 2672 {2, "SIGINT", "interrupt"},
2251 7: "EMT trap", 2673 {3, "SIGQUIT", "quit"},
2252 8: "floating point exception", 2674 {4, "SIGILL", "illegal instruction"},
2253 9: "killed", 2675 {5, "SIGTRAP", "trace/breakpoint trap"},
2254 10: "bus error", 2676 {6, "SIGABRT", "aborted"},
2255 11: "segmentation fault", 2677 {7, "SIGEMT", "EMT trap"},
2256 12: "bad system call", 2678 {8, "SIGFPE", "floating point exception"},
2257 13: "broken pipe", 2679 {9, "SIGKILL", "killed"},
2258 14: "alarm clock", 2680 {10, "SIGBUS", "bus error"},
2259 15: "terminated", 2681 {11, "SIGSEGV", "segmentation fault"},
2260 16: "user defined signal 1", 2682 {12, "SIGSYS", "bad system call"},
2261 17: "user defined signal 2", 2683 {13, "SIGPIPE", "broken pipe"},
2262 18: "child exited", 2684 {14, "SIGALRM", "alarm clock"},
2263 19: "power failure", 2685 {15, "SIGTERM", "terminated"},
2264 20: "window changed", 2686 {16, "SIGUSR1", "user defined signal 1"},
2265 21: "urgent I/O condition", 2687 {17, "SIGUSR2", "user defined signal 2"},
2266 22: "I/O possible", 2688 {18, "SIGCHLD", "child exited"},
2267 23: "stopped (signal)", 2689 {19, "SIGPWR", "power failure"},
2268 24: "stopped", 2690 {20, "SIGWINCH", "window changed"},
2269 25: "continued", 2691 {21, "SIGURG", "urgent I/O condition"},
2270 26: "stopped (tty input)", 2692 {22, "SIGIO", "I/O possible"},
2271 27: "stopped (tty output)", 2693 {23, "SIGSTOP", "stopped (signal)"},
2272 28: "virtual timer expired", 2694 {24, "SIGTSTP", "stopped"},
2273 29: "profiling timer expired", 2695 {25, "SIGCONT", "continued"},
2274 30: "CPU time limit exceeded", 2696 {26, "SIGTTIN", "stopped (tty input)"},
2275 31: "file size limit exceeded", 2697 {27, "SIGTTOU", "stopped (tty output)"},
2698 {28, "SIGVTALRM", "virtual timer expired"},
2699 {29, "SIGPROF", "profiling timer expired"},
2700 {30, "SIGXCPU", "CPU time limit exceeded"},
2701 {31, "SIGXFSZ", "file size limit exceeded"},
2276} 2702}
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 5e1e81e..cd8fcd3 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
@@ -3,7 +3,7 @@
3 3
4// +build ppc64,linux 4// +build ppc64,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x17 145 B1000000 = 0x17
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x16 173 B921600 = 0x16
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x40081270 178 BLKBSZGET = 0x40081270
167 BLKBSZSET = 0x80081271 179 BLKBSZSET = 0x80081271
168 BLKFLSBUF = 0x20001261 180 BLKFLSBUF = 0x20001261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x8000 242 BS1 = 0x8000
230 BSDLY = 0x8000 243 BSDLY = 0x8000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0xff 266 CBAUD = 0xff
252 CBAUDEX = 0x0 267 CBAUDEX = 0x0
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0xff0000 271 CIBAUD = 0xff0000
255 CLOCAL = 0x8000 272 CLOCAL = 0x8000
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x1000 315 CR1 = 0x1000
298 CR2 = 0x2000 316 CR2 = 0x2000
299 CR3 = 0x3000 317 CR3 = 0x3000
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x3000 319 CRDLY = 0x3000
301 CREAD = 0x800 320 CREAD = 0x800
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x400 331 CSTOPB = 0x400
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x1 349 ECHOKE = 0x1
328 ECHONL = 0x10 350 ECHONL = 0x10
329 ECHOPRT = 0x20 351 ECHOPRT = 0x20
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x800 354 EFD_NONBLOCK = 0x800
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000000 480 EXTPROC = 0x10000000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -463,6 +499,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 504 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 506 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
@@ -476,6 +514,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 514 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 515 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 519 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 520 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 521 F_EXLCK = 0x4
@@ -488,6 +528,9 @@ const (
488 F_GETOWN_EX = 0x10 528 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 529 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 534 F_LOCK = 0x1
492 F_NOTIFY = 0x402 535 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 536 F_OFD_GETLK = 0x24
@@ -495,6 +538,10 @@ const (
495 F_OFD_SETLKW = 0x26 538 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 539 F_OK = 0x0
497 F_RDLCK = 0x0 540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 545 F_SETFD = 0x2
499 F_SETFL = 0x4 546 F_SETFL = 0x4
500 F_SETLEASE = 0x400 547 F_SETLEASE = 0x400
@@ -506,6 +553,8 @@ const (
506 F_SETOWN_EX = 0xf 553 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 554 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 558 F_SHLCK = 0x8
510 F_TEST = 0x3 559 F_TEST = 0x3
511 F_TLOCK = 0x2 560 F_TLOCK = 0x2
@@ -527,6 +576,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 576 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 577 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x4000 622 HUPCL = 0x4000
531 IBSHIFT = 0x10 623 IBSHIFT = 0x10
532 ICANON = 0x100 624 ICANON = 0x100
@@ -546,7 +638,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 638 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 639 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 640 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 641 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 642 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 643 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 644 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +653,8 @@ const (
561 IFF_MASTER = 0x400 653 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 654 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 658 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 659 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 660 IFF_NOTRAILERS = 0x20
@@ -671,6 +765,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 765 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 766 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 769 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 770 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 771 IPV6_HOPOPTS = 0x36
@@ -775,12 +870,34 @@ const (
775 IP_UNICAST_IF = 0x32 870 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 871 IP_XFRM_POLICY = 0x11
777 ISIG = 0x80 872 ISIG = 0x80
873 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 874 ISTRIP = 0x20
779 IUCLC = 0x1000 875 IUCLC = 0x1000
780 IUTF8 = 0x4000 876 IUTF8 = 0x4000
781 IXANY = 0x800 877 IXANY = 0x800
782 IXOFF = 0x400 878 IXOFF = 0x400
783 IXON = 0x200 879 IXON = 0x200
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 901 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 902 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 903 KEYCTL_CLEAR = 0x7
@@ -845,6 +962,7 @@ const (
845 MADV_FREE = 0x8 962 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 963 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 966 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 967 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 968 MADV_NORMAL = 0x0
@@ -853,12 +971,14 @@ const (
853 MADV_SEQUENTIAL = 0x2 971 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 972 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
856 MAP_ANON = 0x20 975 MAP_ANON = 0x20
857 MAP_ANONYMOUS = 0x20 976 MAP_ANONYMOUS = 0x20
858 MAP_DENYWRITE = 0x800 977 MAP_DENYWRITE = 0x800
859 MAP_EXECUTABLE = 0x1000 978 MAP_EXECUTABLE = 0x1000
860 MAP_FILE = 0x0 979 MAP_FILE = 0x0
861 MAP_FIXED = 0x10 980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
862 MAP_GROWSDOWN = 0x100 982 MAP_GROWSDOWN = 0x100
863 MAP_HUGETLB = 0x40000 983 MAP_HUGETLB = 0x40000
864 MAP_HUGE_MASK = 0x3f 984 MAP_HUGE_MASK = 0x3f
@@ -869,14 +989,36 @@ const (
869 MAP_POPULATE = 0x8000 989 MAP_POPULATE = 0x8000
870 MAP_PRIVATE = 0x2 990 MAP_PRIVATE = 0x2
871 MAP_SHARED = 0x1 991 MAP_SHARED = 0x1
992 MAP_SHARED_VALIDATE = 0x3
872 MAP_STACK = 0x20000 993 MAP_STACK = 0x20000
873 MAP_TYPE = 0xf 994 MAP_TYPE = 0xf
874 MCL_CURRENT = 0x2000 995 MCL_CURRENT = 0x2000
875 MCL_FUTURE = 0x4000 996 MCL_FUTURE = 0x4000
876 MCL_ONFAULT = 0x8000 997 MCL_ONFAULT = 0x8000
998 MFD_ALLOW_SEALING = 0x2
999 MFD_CLOEXEC = 0x1
1000 MFD_HUGETLB = 0x4
1001 MFD_HUGE_16GB = -0x78000000
1002 MFD_HUGE_16MB = 0x60000000
1003 MFD_HUGE_1GB = 0x78000000
1004 MFD_HUGE_1MB = 0x50000000
1005 MFD_HUGE_256MB = 0x70000000
1006 MFD_HUGE_2GB = 0x7c000000
1007 MFD_HUGE_2MB = 0x54000000
1008 MFD_HUGE_512KB = 0x4c000000
1009 MFD_HUGE_64KB = 0x40000000
1010 MFD_HUGE_8MB = 0x5c000000
1011 MFD_HUGE_MASK = 0x3f
1012 MFD_HUGE_SHIFT = 0x1a
1013 MINIX2_SUPER_MAGIC = 0x2468
1014 MINIX2_SUPER_MAGIC2 = 0x2478
1015 MINIX3_SUPER_MAGIC = 0x4d5a
1016 MINIX_SUPER_MAGIC = 0x137f
1017 MINIX_SUPER_MAGIC2 = 0x138f
877 MNT_DETACH = 0x2 1018 MNT_DETACH = 0x2
878 MNT_EXPIRE = 0x4 1019 MNT_EXPIRE = 0x4
879 MNT_FORCE = 0x1 1020 MNT_FORCE = 0x1
1021 MSDOS_SUPER_MAGIC = 0x4d44
880 MSG_BATCH = 0x40000 1022 MSG_BATCH = 0x40000
881 MSG_CMSG_CLOEXEC = 0x40000000 1023 MSG_CMSG_CLOEXEC = 0x40000000
882 MSG_CONFIRM = 0x800 1024 MSG_CONFIRM = 0x800
@@ -898,6 +1040,7 @@ const (
898 MSG_TRYHARD = 0x4 1040 MSG_TRYHARD = 0x4
899 MSG_WAITALL = 0x100 1041 MSG_WAITALL = 0x100
900 MSG_WAITFORONE = 0x10000 1042 MSG_WAITFORONE = 0x10000
1043 MSG_ZEROCOPY = 0x4000000
901 MS_ACTIVE = 0x40000000 1044 MS_ACTIVE = 0x40000000
902 MS_ASYNC = 0x1 1045 MS_ASYNC = 0x1
903 MS_BIND = 0x1000 1046 MS_BIND = 0x1000
@@ -935,7 +1078,9 @@ const (
935 MS_SYNCHRONOUS = 0x10 1078 MS_SYNCHRONOUS = 0x10
936 MS_UNBINDABLE = 0x20000 1079 MS_UNBINDABLE = 0x20000
937 MS_VERBOSE = 0x8000 1080 MS_VERBOSE = 0x8000
1081 MTD_INODE_FS_MAGIC = 0x11307854
938 NAME_MAX = 0xff 1082 NAME_MAX = 0xff
1083 NCP_SUPER_MAGIC = 0x564c
939 NETLINK_ADD_MEMBERSHIP = 0x1 1084 NETLINK_ADD_MEMBERSHIP = 0x1
940 NETLINK_AUDIT = 0x9 1085 NETLINK_AUDIT = 0x9
941 NETLINK_BROADCAST_ERROR = 0x4 1086 NETLINK_BROADCAST_ERROR = 0x4
@@ -970,6 +1115,39 @@ const (
970 NETLINK_UNUSED = 0x1 1115 NETLINK_UNUSED = 0x1
971 NETLINK_USERSOCK = 0x2 1116 NETLINK_USERSOCK = 0x2
972 NETLINK_XFRM = 0x6 1117 NETLINK_XFRM = 0x6
1118 NETNSA_MAX = 0x3
1119 NETNSA_NSID_NOT_ASSIGNED = -0x1
1120 NFNETLINK_V0 = 0x0
1121 NFNLGRP_ACCT_QUOTA = 0x8
1122 NFNLGRP_CONNTRACK_DESTROY = 0x3
1123 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1124 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1125 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1126 NFNLGRP_CONNTRACK_NEW = 0x1
1127 NFNLGRP_CONNTRACK_UPDATE = 0x2
1128 NFNLGRP_MAX = 0x9
1129 NFNLGRP_NFTABLES = 0x7
1130 NFNLGRP_NFTRACE = 0x9
1131 NFNLGRP_NONE = 0x0
1132 NFNL_BATCH_MAX = 0x1
1133 NFNL_MSG_BATCH_BEGIN = 0x10
1134 NFNL_MSG_BATCH_END = 0x11
1135 NFNL_NFA_NEST = 0x8000
1136 NFNL_SUBSYS_ACCT = 0x7
1137 NFNL_SUBSYS_COUNT = 0xc
1138 NFNL_SUBSYS_CTHELPER = 0x9
1139 NFNL_SUBSYS_CTNETLINK = 0x1
1140 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1141 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1142 NFNL_SUBSYS_IPSET = 0x6
1143 NFNL_SUBSYS_NFTABLES = 0xa
1144 NFNL_SUBSYS_NFT_COMPAT = 0xb
1145 NFNL_SUBSYS_NONE = 0x0
1146 NFNL_SUBSYS_OSF = 0x5
1147 NFNL_SUBSYS_QUEUE = 0x3
1148 NFNL_SUBSYS_ULOG = 0x4
1149 NFS_SUPER_MAGIC = 0x6969
1150 NILFS_SUPER_MAGIC = 0x3434
973 NL0 = 0x0 1151 NL0 = 0x0
974 NL1 = 0x100 1152 NL1 = 0x100
975 NL2 = 0x200 1153 NL2 = 0x200
@@ -999,10 +1177,13 @@ const (
999 NLM_F_EXCL = 0x200 1177 NLM_F_EXCL = 0x200
1000 NLM_F_MATCH = 0x200 1178 NLM_F_MATCH = 0x200
1001 NLM_F_MULTI = 0x2 1179 NLM_F_MULTI = 0x2
1180 NLM_F_NONREC = 0x100
1002 NLM_F_REPLACE = 0x100 1181 NLM_F_REPLACE = 0x100
1003 NLM_F_REQUEST = 0x1 1182 NLM_F_REQUEST = 0x1
1004 NLM_F_ROOT = 0x100 1183 NLM_F_ROOT = 0x100
1005 NOFLSH = 0x80000000 1184 NOFLSH = 0x80000000
1185 NSFS_MAGIC = 0x6e736673
1186 OCFS2_SUPER_MAGIC = 0x7461636f
1006 OCRNL = 0x8 1187 OCRNL = 0x8
1007 OFDEL = 0x80 1188 OFDEL = 0x80
1008 OFILL = 0x40 1189 OFILL = 0x40
@@ -1010,7 +1191,9 @@ const (
1010 ONLCR = 0x2 1191 ONLCR = 0x2
1011 ONLRET = 0x20 1192 ONLRET = 0x20
1012 ONOCR = 0x10 1193 ONOCR = 0x10
1194 OPENPROM_SUPER_MAGIC = 0x9fa1
1013 OPOST = 0x1 1195 OPOST = 0x1
1196 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1014 O_ACCMODE = 0x3 1197 O_ACCMODE = 0x3
1015 O_APPEND = 0x400 1198 O_APPEND = 0x400
1016 O_ASYNC = 0x2000 1199 O_ASYNC = 0x2000
@@ -1095,16 +1278,20 @@ const (
1095 PERF_EVENT_IOC_DISABLE = 0x20002401 1278 PERF_EVENT_IOC_DISABLE = 0x20002401
1096 PERF_EVENT_IOC_ENABLE = 0x20002400 1279 PERF_EVENT_IOC_ENABLE = 0x20002400
1097 PERF_EVENT_IOC_ID = 0x40082407 1280 PERF_EVENT_IOC_ID = 0x40082407
1281 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
1098 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 1282 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
1099 PERF_EVENT_IOC_PERIOD = 0x80082404 1283 PERF_EVENT_IOC_PERIOD = 0x80082404
1284 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
1100 PERF_EVENT_IOC_REFRESH = 0x20002402 1285 PERF_EVENT_IOC_REFRESH = 0x20002402
1101 PERF_EVENT_IOC_RESET = 0x20002403 1286 PERF_EVENT_IOC_RESET = 0x20002403
1102 PERF_EVENT_IOC_SET_BPF = 0x80042408 1287 PERF_EVENT_IOC_SET_BPF = 0x80042408
1103 PERF_EVENT_IOC_SET_FILTER = 0x80082406 1288 PERF_EVENT_IOC_SET_FILTER = 0x80082406
1104 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 1289 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
1290 PIPEFS_MAGIC = 0x50495045
1105 PRIO_PGRP = 0x1 1291 PRIO_PGRP = 0x1
1106 PRIO_PROCESS = 0x0 1292 PRIO_PROCESS = 0x0
1107 PRIO_USER = 0x2 1293 PRIO_USER = 0x2
1294 PROC_SUPER_MAGIC = 0x9fa0
1108 PROT_EXEC = 0x4 1295 PROT_EXEC = 0x4
1109 PROT_GROWSDOWN = 0x1000000 1296 PROT_GROWSDOWN = 0x1000000
1110 PROT_GROWSUP = 0x2000000 1297 PROT_GROWSUP = 0x2000000
@@ -1148,6 +1335,7 @@ const (
1148 PR_GET_PDEATHSIG = 0x2 1335 PR_GET_PDEATHSIG = 0x2
1149 PR_GET_SECCOMP = 0x15 1336 PR_GET_SECCOMP = 0x15
1150 PR_GET_SECUREBITS = 0x1b 1337 PR_GET_SECUREBITS = 0x1b
1338 PR_GET_SPECULATION_CTRL = 0x34
1151 PR_GET_THP_DISABLE = 0x2a 1339 PR_GET_THP_DISABLE = 0x2a
1152 PR_GET_TID_ADDRESS = 0x28 1340 PR_GET_TID_ADDRESS = 0x28
1153 PR_GET_TIMERSLACK = 0x1e 1341 PR_GET_TIMERSLACK = 0x1e
@@ -1193,11 +1381,23 @@ const (
1193 PR_SET_PTRACER_ANY = 0xffffffffffffffff 1381 PR_SET_PTRACER_ANY = 0xffffffffffffffff
1194 PR_SET_SECCOMP = 0x16 1382 PR_SET_SECCOMP = 0x16
1195 PR_SET_SECUREBITS = 0x1c 1383 PR_SET_SECUREBITS = 0x1c
1384 PR_SET_SPECULATION_CTRL = 0x35
1196 PR_SET_THP_DISABLE = 0x29 1385 PR_SET_THP_DISABLE = 0x29
1197 PR_SET_TIMERSLACK = 0x1d 1386 PR_SET_TIMERSLACK = 0x1d
1198 PR_SET_TIMING = 0xe 1387 PR_SET_TIMING = 0xe
1199 PR_SET_TSC = 0x1a 1388 PR_SET_TSC = 0x1a
1200 PR_SET_UNALIGN = 0x6 1389 PR_SET_UNALIGN = 0x6
1390 PR_SPEC_DISABLE = 0x4
1391 PR_SPEC_ENABLE = 0x2
1392 PR_SPEC_FORCE_DISABLE = 0x8
1393 PR_SPEC_NOT_AFFECTED = 0x0
1394 PR_SPEC_PRCTL = 0x1
1395 PR_SPEC_STORE_BYPASS = 0x0
1396 PR_SVE_GET_VL = 0x33
1397 PR_SVE_SET_VL = 0x32
1398 PR_SVE_SET_VL_ONEXEC = 0x40000
1399 PR_SVE_VL_INHERIT = 0x20000
1400 PR_SVE_VL_LEN_MASK = 0xffff
1201 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1401 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1202 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1402 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1203 PR_TIMING_STATISTICAL = 0x0 1403 PR_TIMING_STATISTICAL = 0x0
@@ -1206,6 +1406,7 @@ const (
1206 PR_TSC_SIGSEGV = 0x2 1406 PR_TSC_SIGSEGV = 0x2
1207 PR_UNALIGN_NOPRINT = 0x1 1407 PR_UNALIGN_NOPRINT = 0x1
1208 PR_UNALIGN_SIGBUS = 0x2 1408 PR_UNALIGN_SIGBUS = 0x2
1409 PSTOREFS_MAGIC = 0x6165676c
1209 PTRACE_ATTACH = 0x10 1410 PTRACE_ATTACH = 0x10
1210 PTRACE_CONT = 0x7 1411 PTRACE_CONT = 0x7
1211 PTRACE_DETACH = 0x11 1412 PTRACE_DETACH = 0x11
@@ -1251,6 +1452,7 @@ const (
1251 PTRACE_POKETEXT = 0x4 1452 PTRACE_POKETEXT = 0x4
1252 PTRACE_POKEUSR = 0x6 1453 PTRACE_POKEUSR = 0x6
1253 PTRACE_SECCOMP_GET_FILTER = 0x420c 1454 PTRACE_SECCOMP_GET_FILTER = 0x420c
1455 PTRACE_SECCOMP_GET_METADATA = 0x420d
1254 PTRACE_SEIZE = 0x4206 1456 PTRACE_SEIZE = 0x4206
1255 PTRACE_SETEVRREGS = 0x15 1457 PTRACE_SETEVRREGS = 0x15
1256 PTRACE_SETFPREGS = 0xf 1458 PTRACE_SETFPREGS = 0xf
@@ -1320,6 +1522,14 @@ const (
1320 PT_VSR0 = 0x96 1522 PT_VSR0 = 0x96
1321 PT_VSR31 = 0xd4 1523 PT_VSR31 = 0xd4
1322 PT_XER = 0x25 1524 PT_XER = 0x25
1525 QNX4_SUPER_MAGIC = 0x2f
1526 QNX6_SUPER_MAGIC = 0x68191122
1527 RAMFS_MAGIC = 0x858458f6
1528 RDTGROUP_SUPER_MAGIC = 0x7655821
1529 REISERFS_SUPER_MAGIC = 0x52654973
1530 RENAME_EXCHANGE = 0x2
1531 RENAME_NOREPLACE = 0x1
1532 RENAME_WHITEOUT = 0x4
1323 RLIMIT_AS = 0x9 1533 RLIMIT_AS = 0x9
1324 RLIMIT_CORE = 0x4 1534 RLIMIT_CORE = 0x4
1325 RLIMIT_CPU = 0x0 1535 RLIMIT_CPU = 0x0
@@ -1340,6 +1550,7 @@ const (
1340 RTAX_ADVMSS = 0x8 1550 RTAX_ADVMSS = 0x8
1341 RTAX_CC_ALGO = 0x10 1551 RTAX_CC_ALGO = 0x10
1342 RTAX_CWND = 0x7 1552 RTAX_CWND = 0x7
1553 RTAX_FASTOPEN_NO_COOKIE = 0x11
1343 RTAX_FEATURES = 0xc 1554 RTAX_FEATURES = 0xc
1344 RTAX_FEATURE_ALLFRAG = 0x8 1555 RTAX_FEATURE_ALLFRAG = 0x8
1345 RTAX_FEATURE_ECN = 0x1 1556 RTAX_FEATURE_ECN = 0x1
@@ -1350,7 +1561,7 @@ const (
1350 RTAX_INITCWND = 0xb 1561 RTAX_INITCWND = 0xb
1351 RTAX_INITRWND = 0xe 1562 RTAX_INITRWND = 0xe
1352 RTAX_LOCK = 0x1 1563 RTAX_LOCK = 0x1
1353 RTAX_MAX = 0x10 1564 RTAX_MAX = 0x11
1354 RTAX_MTU = 0x2 1565 RTAX_MTU = 0x2
1355 RTAX_QUICKACK = 0xf 1566 RTAX_QUICKACK = 0xf
1356 RTAX_REORDERING = 0x9 1567 RTAX_REORDERING = 0x9
@@ -1361,13 +1572,40 @@ const (
1361 RTAX_UNSPEC = 0x0 1572 RTAX_UNSPEC = 0x0
1362 RTAX_WINDOW = 0x3 1573 RTAX_WINDOW = 0x3
1363 RTA_ALIGNTO = 0x4 1574 RTA_ALIGNTO = 0x4
1364 RTA_MAX = 0x1a 1575 RTA_MAX = 0x1d
1365 RTCF_DIRECTSRC = 0x4000000 1576 RTCF_DIRECTSRC = 0x4000000
1366 RTCF_DOREDIRECT = 0x1000000 1577 RTCF_DOREDIRECT = 0x1000000
1367 RTCF_LOG = 0x2000000 1578 RTCF_LOG = 0x2000000
1368 RTCF_MASQ = 0x400000 1579 RTCF_MASQ = 0x400000
1369 RTCF_NAT = 0x800000 1580 RTCF_NAT = 0x800000
1370 RTCF_VALVE = 0x200000 1581 RTCF_VALVE = 0x200000
1582 RTC_AF = 0x20
1583 RTC_AIE_OFF = 0x20007002
1584 RTC_AIE_ON = 0x20007001
1585 RTC_ALM_READ = 0x40247008
1586 RTC_ALM_SET = 0x80247007
1587 RTC_EPOCH_READ = 0x4008700d
1588 RTC_EPOCH_SET = 0x8008700e
1589 RTC_IRQF = 0x80
1590 RTC_IRQP_READ = 0x4008700b
1591 RTC_IRQP_SET = 0x8008700c
1592 RTC_MAX_FREQ = 0x2000
1593 RTC_PF = 0x40
1594 RTC_PIE_OFF = 0x20007006
1595 RTC_PIE_ON = 0x20007005
1596 RTC_PLL_GET = 0x40207011
1597 RTC_PLL_SET = 0x80207012
1598 RTC_RD_TIME = 0x40247009
1599 RTC_SET_TIME = 0x8024700a
1600 RTC_UF = 0x10
1601 RTC_UIE_OFF = 0x20007004
1602 RTC_UIE_ON = 0x20007003
1603 RTC_VL_CLR = 0x20007014
1604 RTC_VL_READ = 0x40047013
1605 RTC_WIE_OFF = 0x20007010
1606 RTC_WIE_ON = 0x2000700f
1607 RTC_WKALM_RD = 0x40287010
1608 RTC_WKALM_SET = 0x8028700f
1371 RTF_ADDRCLASSMASK = 0xf8000000 1609 RTF_ADDRCLASSMASK = 0xf8000000
1372 RTF_ADDRCONF = 0x40000 1610 RTF_ADDRCONF = 0x40000
1373 RTF_ALLONLINK = 0x20000 1611 RTF_ALLONLINK = 0x20000
@@ -1470,17 +1708,22 @@ const (
1470 RTNH_F_UNRESOLVED = 0x20 1708 RTNH_F_UNRESOLVED = 0x20
1471 RTN_MAX = 0xb 1709 RTN_MAX = 0xb
1472 RTPROT_BABEL = 0x2a 1710 RTPROT_BABEL = 0x2a
1711 RTPROT_BGP = 0xba
1473 RTPROT_BIRD = 0xc 1712 RTPROT_BIRD = 0xc
1474 RTPROT_BOOT = 0x3 1713 RTPROT_BOOT = 0x3
1475 RTPROT_DHCP = 0x10 1714 RTPROT_DHCP = 0x10
1476 RTPROT_DNROUTED = 0xd 1715 RTPROT_DNROUTED = 0xd
1716 RTPROT_EIGRP = 0xc0
1477 RTPROT_GATED = 0x8 1717 RTPROT_GATED = 0x8
1718 RTPROT_ISIS = 0xbb
1478 RTPROT_KERNEL = 0x2 1719 RTPROT_KERNEL = 0x2
1479 RTPROT_MROUTED = 0x11 1720 RTPROT_MROUTED = 0x11
1480 RTPROT_MRT = 0xa 1721 RTPROT_MRT = 0xa
1481 RTPROT_NTK = 0xf 1722 RTPROT_NTK = 0xf
1723 RTPROT_OSPF = 0xbc
1482 RTPROT_RA = 0x9 1724 RTPROT_RA = 0x9
1483 RTPROT_REDIRECT = 0x1 1725 RTPROT_REDIRECT = 0x1
1726 RTPROT_RIP = 0xbd
1484 RTPROT_STATIC = 0x4 1727 RTPROT_STATIC = 0x4
1485 RTPROT_UNSPEC = 0x0 1728 RTPROT_UNSPEC = 0x0
1486 RTPROT_XORP = 0xe 1729 RTPROT_XORP = 0xe
@@ -1504,6 +1747,8 @@ const (
1504 SECCOMP_MODE_DISABLED = 0x0 1747 SECCOMP_MODE_DISABLED = 0x0
1505 SECCOMP_MODE_FILTER = 0x2 1748 SECCOMP_MODE_FILTER = 0x2
1506 SECCOMP_MODE_STRICT = 0x1 1749 SECCOMP_MODE_STRICT = 0x1
1750 SECURITYFS_MAGIC = 0x73636673
1751 SELINUX_MAGIC = 0xf97cff8c
1507 SHUT_RD = 0x0 1752 SHUT_RD = 0x0
1508 SHUT_RDWR = 0x2 1753 SHUT_RDWR = 0x2
1509 SHUT_WR = 0x1 1754 SHUT_WR = 0x1
@@ -1588,6 +1833,23 @@ const (
1588 SIOCSPGRP = 0x8902 1833 SIOCSPGRP = 0x8902
1589 SIOCSRARP = 0x8962 1834 SIOCSRARP = 0x8962
1590 SIOCWANDEV = 0x894a 1835 SIOCWANDEV = 0x894a
1836 SMACK_MAGIC = 0x43415d53
1837 SMART_AUTOSAVE = 0xd2
1838 SMART_AUTO_OFFLINE = 0xdb
1839 SMART_DISABLE = 0xd9
1840 SMART_ENABLE = 0xd8
1841 SMART_HCYL_PASS = 0xc2
1842 SMART_IMMEDIATE_OFFLINE = 0xd4
1843 SMART_LCYL_PASS = 0x4f
1844 SMART_READ_LOG_SECTOR = 0xd5
1845 SMART_READ_THRESHOLDS = 0xd1
1846 SMART_READ_VALUES = 0xd0
1847 SMART_SAVE = 0xd3
1848 SMART_STATUS = 0xda
1849 SMART_WRITE_LOG_SECTOR = 0xd6
1850 SMART_WRITE_THRESHOLDS = 0xd7
1851 SMB_SUPER_MAGIC = 0x517b
1852 SOCKFS_MAGIC = 0x534f434b
1591 SOCK_CLOEXEC = 0x80000 1853 SOCK_CLOEXEC = 0x80000
1592 SOCK_DCCP = 0x6 1854 SOCK_DCCP = 0x6
1593 SOCK_DGRAM = 0x2 1855 SOCK_DGRAM = 0x2
@@ -1624,7 +1886,9 @@ const (
1624 SOL_SOCKET = 0x1 1886 SOL_SOCKET = 0x1
1625 SOL_TCP = 0x6 1887 SOL_TCP = 0x6
1626 SOL_TIPC = 0x10f 1888 SOL_TIPC = 0x10f
1889 SOL_TLS = 0x11a
1627 SOL_X25 = 0x106 1890 SOL_X25 = 0x106
1891 SOL_XDP = 0x11b
1628 SOMAXCONN = 0x80 1892 SOMAXCONN = 0x80
1629 SO_ACCEPTCONN = 0x1e 1893 SO_ACCEPTCONN = 0x1e
1630 SO_ATTACH_BPF = 0x32 1894 SO_ATTACH_BPF = 0x32
@@ -1692,10 +1956,13 @@ const (
1692 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1956 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1693 SO_VM_SOCKETS_TRUSTED = 0x5 1957 SO_VM_SOCKETS_TRUSTED = 0x5
1694 SO_WIFI_STATUS = 0x29 1958 SO_WIFI_STATUS = 0x29
1959 SO_ZEROCOPY = 0x3c
1695 SPLICE_F_GIFT = 0x8 1960 SPLICE_F_GIFT = 0x8
1696 SPLICE_F_MORE = 0x4 1961 SPLICE_F_MORE = 0x4
1697 SPLICE_F_MOVE = 0x1 1962 SPLICE_F_MOVE = 0x1
1698 SPLICE_F_NONBLOCK = 0x2 1963 SPLICE_F_NONBLOCK = 0x2
1964 SQUASHFS_MAGIC = 0x73717368
1965 STACK_END_MAGIC = 0x57ac6e9d
1699 STATX_ALL = 0xfff 1966 STATX_ALL = 0xfff
1700 STATX_ATIME = 0x20 1967 STATX_ATIME = 0x20
1701 STATX_ATTR_APPEND = 0x20 1968 STATX_ATTR_APPEND = 0x20
@@ -1717,6 +1984,10 @@ const (
1717 STATX_TYPE = 0x1 1984 STATX_TYPE = 0x1
1718 STATX_UID = 0x8 1985 STATX_UID = 0x8
1719 STATX__RESERVED = 0x80000000 1986 STATX__RESERVED = 0x80000000
1987 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1988 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1989 SYNC_FILE_RANGE_WRITE = 0x2
1990 SYSFS_MAGIC = 0x62656572
1720 S_BLKSIZE = 0x200 1991 S_BLKSIZE = 0x200
1721 S_IEXEC = 0x40 1992 S_IEXEC = 0x40
1722 S_IFBLK = 0x6000 1993 S_IFBLK = 0x6000
@@ -1777,6 +2048,8 @@ const (
1777 TCP_DEFER_ACCEPT = 0x9 2048 TCP_DEFER_ACCEPT = 0x9
1778 TCP_FASTOPEN = 0x17 2049 TCP_FASTOPEN = 0x17
1779 TCP_FASTOPEN_CONNECT = 0x1e 2050 TCP_FASTOPEN_CONNECT = 0x1e
2051 TCP_FASTOPEN_KEY = 0x21
2052 TCP_FASTOPEN_NO_COOKIE = 0x22
1780 TCP_INFO = 0xb 2053 TCP_INFO = 0xb
1781 TCP_KEEPCNT = 0x6 2054 TCP_KEEPCNT = 0x6
1782 TCP_KEEPIDLE = 0x4 2055 TCP_KEEPIDLE = 0x4
@@ -1786,6 +2059,8 @@ const (
1786 TCP_MAXWIN = 0xffff 2059 TCP_MAXWIN = 0xffff
1787 TCP_MAX_WINSHIFT = 0xe 2060 TCP_MAX_WINSHIFT = 0xe
1788 TCP_MD5SIG = 0xe 2061 TCP_MD5SIG = 0xe
2062 TCP_MD5SIG_EXT = 0x20
2063 TCP_MD5SIG_FLAG_PREFIX = 0x1
1789 TCP_MD5SIG_MAXKEYLEN = 0x50 2064 TCP_MD5SIG_MAXKEYLEN = 0x50
1790 TCP_MSS = 0x200 2065 TCP_MSS = 0x200
1791 TCP_MSS_DEFAULT = 0x218 2066 TCP_MSS_DEFAULT = 0x218
@@ -1806,6 +2081,7 @@ const (
1806 TCP_THIN_DUPACK = 0x11 2081 TCP_THIN_DUPACK = 0x11
1807 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2082 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1808 TCP_TIMESTAMP = 0x18 2083 TCP_TIMESTAMP = 0x18
2084 TCP_ULP = 0x1f
1809 TCP_USER_TIMEOUT = 0x12 2085 TCP_USER_TIMEOUT = 0x12
1810 TCP_WINDOW_CLAMP = 0xa 2086 TCP_WINDOW_CLAMP = 0xa
1811 TCSAFLUSH = 0x2 2087 TCSAFLUSH = 0x2
@@ -1899,7 +2175,27 @@ const (
1899 TIOCSTOP = 0x2000746f 2175 TIOCSTOP = 0x2000746f
1900 TIOCSWINSZ = 0x80087467 2176 TIOCSWINSZ = 0x80087467
1901 TIOCVHANGUP = 0x5437 2177 TIOCVHANGUP = 0x5437
2178 TMPFS_MAGIC = 0x1021994
1902 TOSTOP = 0x400000 2179 TOSTOP = 0x400000
2180 TPACKET_ALIGNMENT = 0x10
2181 TPACKET_HDRLEN = 0x34
2182 TP_STATUS_AVAILABLE = 0x0
2183 TP_STATUS_BLK_TMO = 0x20
2184 TP_STATUS_COPY = 0x2
2185 TP_STATUS_CSUMNOTREADY = 0x8
2186 TP_STATUS_CSUM_VALID = 0x80
2187 TP_STATUS_KERNEL = 0x0
2188 TP_STATUS_LOSING = 0x4
2189 TP_STATUS_SENDING = 0x2
2190 TP_STATUS_SEND_REQUEST = 0x1
2191 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2192 TP_STATUS_TS_SOFTWARE = 0x20000000
2193 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2194 TP_STATUS_USER = 0x1
2195 TP_STATUS_VLAN_TPID_VALID = 0x40
2196 TP_STATUS_VLAN_VALID = 0x10
2197 TP_STATUS_WRONG_FORMAT = 0x4
2198 TRACEFS_MAGIC = 0x74726163
1903 TS_COMM_LEN = 0x20 2199 TS_COMM_LEN = 0x20
1904 TUNATTACHFILTER = 0x801054d5 2200 TUNATTACHFILTER = 0x801054d5
1905 TUNDETACHFILTER = 0x801054d6 2201 TUNDETACHFILTER = 0x801054d6
@@ -1911,6 +2207,7 @@ const (
1911 TUNGETVNETHDRSZ = 0x400454d7 2207 TUNGETVNETHDRSZ = 0x400454d7
1912 TUNGETVNETLE = 0x400454dd 2208 TUNGETVNETLE = 0x400454dd
1913 TUNSETDEBUG = 0x800454c9 2209 TUNSETDEBUG = 0x800454c9
2210 TUNSETFILTEREBPF = 0x400454e1
1914 TUNSETGROUP = 0x800454ce 2211 TUNSETGROUP = 0x800454ce
1915 TUNSETIFF = 0x800454ca 2212 TUNSETIFF = 0x800454ca
1916 TUNSETIFINDEX = 0x800454da 2213 TUNSETIFINDEX = 0x800454da
@@ -1921,13 +2218,32 @@ const (
1921 TUNSETPERSIST = 0x800454cb 2218 TUNSETPERSIST = 0x800454cb
1922 TUNSETQUEUE = 0x800454d9 2219 TUNSETQUEUE = 0x800454d9
1923 TUNSETSNDBUF = 0x800454d4 2220 TUNSETSNDBUF = 0x800454d4
2221 TUNSETSTEERINGEBPF = 0x400454e0
1924 TUNSETTXFILTER = 0x800454d1 2222 TUNSETTXFILTER = 0x800454d1
1925 TUNSETVNETBE = 0x800454de 2223 TUNSETVNETBE = 0x800454de
1926 TUNSETVNETHDRSZ = 0x800454d8 2224 TUNSETVNETHDRSZ = 0x800454d8
1927 TUNSETVNETLE = 0x800454dc 2225 TUNSETVNETLE = 0x800454dc
2226 UBI_IOCATT = 0x80186f40
2227 UBI_IOCDET = 0x80046f41
2228 UBI_IOCEBCH = 0x80044f02
2229 UBI_IOCEBER = 0x80044f01
2230 UBI_IOCEBISMAP = 0x40044f05
2231 UBI_IOCEBMAP = 0x80084f03
2232 UBI_IOCEBUNMAP = 0x80044f04
2233 UBI_IOCMKVOL = 0x80986f00
2234 UBI_IOCRMVOL = 0x80046f01
2235 UBI_IOCRNVOL = 0x91106f03
2236 UBI_IOCRSVOL = 0x800c6f02
2237 UBI_IOCSETVOLPROP = 0x80104f06
2238 UBI_IOCVOLCRBLK = 0x80804f07
2239 UBI_IOCVOLRMBLK = 0x20004f08
2240 UBI_IOCVOLUP = 0x80084f00
2241 UDF_SUPER_MAGIC = 0x15013346
1928 UMOUNT_NOFOLLOW = 0x8 2242 UMOUNT_NOFOLLOW = 0x8
2243 USBDEVICE_SUPER_MAGIC = 0x9fa2
1929 UTIME_NOW = 0x3fffffff 2244 UTIME_NOW = 0x3fffffff
1930 UTIME_OMIT = 0x3ffffffe 2245 UTIME_OMIT = 0x3ffffffe
2246 V9FS_MAGIC = 0x1021997
1931 VDISCARD = 0x10 2247 VDISCARD = 0x10
1932 VEOF = 0x4 2248 VEOF = 0x4
1933 VEOL = 0x6 2249 VEOL = 0x6
@@ -1969,6 +2285,86 @@ const (
1969 WDIOC_SETPRETIMEOUT = 0xc0045708 2285 WDIOC_SETPRETIMEOUT = 0xc0045708
1970 WDIOC_SETTIMEOUT = 0xc0045706 2286 WDIOC_SETTIMEOUT = 0xc0045706
1971 WEXITED = 0x4 2287 WEXITED = 0x4
2288 WIN_ACKMEDIACHANGE = 0xdb
2289 WIN_CHECKPOWERMODE1 = 0xe5
2290 WIN_CHECKPOWERMODE2 = 0x98
2291 WIN_DEVICE_RESET = 0x8
2292 WIN_DIAGNOSE = 0x90
2293 WIN_DOORLOCK = 0xde
2294 WIN_DOORUNLOCK = 0xdf
2295 WIN_DOWNLOAD_MICROCODE = 0x92
2296 WIN_FLUSH_CACHE = 0xe7
2297 WIN_FLUSH_CACHE_EXT = 0xea
2298 WIN_FORMAT = 0x50
2299 WIN_GETMEDIASTATUS = 0xda
2300 WIN_IDENTIFY = 0xec
2301 WIN_IDENTIFY_DMA = 0xee
2302 WIN_IDLEIMMEDIATE = 0xe1
2303 WIN_INIT = 0x60
2304 WIN_MEDIAEJECT = 0xed
2305 WIN_MULTREAD = 0xc4
2306 WIN_MULTREAD_EXT = 0x29
2307 WIN_MULTWRITE = 0xc5
2308 WIN_MULTWRITE_EXT = 0x39
2309 WIN_NOP = 0x0
2310 WIN_PACKETCMD = 0xa0
2311 WIN_PIDENTIFY = 0xa1
2312 WIN_POSTBOOT = 0xdc
2313 WIN_PREBOOT = 0xdd
2314 WIN_QUEUED_SERVICE = 0xa2
2315 WIN_READ = 0x20
2316 WIN_READDMA = 0xc8
2317 WIN_READDMA_EXT = 0x25
2318 WIN_READDMA_ONCE = 0xc9
2319 WIN_READDMA_QUEUED = 0xc7
2320 WIN_READDMA_QUEUED_EXT = 0x26
2321 WIN_READ_BUFFER = 0xe4
2322 WIN_READ_EXT = 0x24
2323 WIN_READ_LONG = 0x22
2324 WIN_READ_LONG_ONCE = 0x23
2325 WIN_READ_NATIVE_MAX = 0xf8
2326 WIN_READ_NATIVE_MAX_EXT = 0x27
2327 WIN_READ_ONCE = 0x21
2328 WIN_RECAL = 0x10
2329 WIN_RESTORE = 0x10
2330 WIN_SECURITY_DISABLE = 0xf6
2331 WIN_SECURITY_ERASE_PREPARE = 0xf3
2332 WIN_SECURITY_ERASE_UNIT = 0xf4
2333 WIN_SECURITY_FREEZE_LOCK = 0xf5
2334 WIN_SECURITY_SET_PASS = 0xf1
2335 WIN_SECURITY_UNLOCK = 0xf2
2336 WIN_SEEK = 0x70
2337 WIN_SETFEATURES = 0xef
2338 WIN_SETIDLE1 = 0xe3
2339 WIN_SETIDLE2 = 0x97
2340 WIN_SETMULT = 0xc6
2341 WIN_SET_MAX = 0xf9
2342 WIN_SET_MAX_EXT = 0x37
2343 WIN_SLEEPNOW1 = 0xe6
2344 WIN_SLEEPNOW2 = 0x99
2345 WIN_SMART = 0xb0
2346 WIN_SPECIFY = 0x91
2347 WIN_SRST = 0x8
2348 WIN_STANDBY = 0xe2
2349 WIN_STANDBY2 = 0x96
2350 WIN_STANDBYNOW1 = 0xe0
2351 WIN_STANDBYNOW2 = 0x94
2352 WIN_VERIFY = 0x40
2353 WIN_VERIFY_EXT = 0x42
2354 WIN_VERIFY_ONCE = 0x41
2355 WIN_WRITE = 0x30
2356 WIN_WRITEDMA = 0xca
2357 WIN_WRITEDMA_EXT = 0x35
2358 WIN_WRITEDMA_ONCE = 0xcb
2359 WIN_WRITEDMA_QUEUED = 0xcc
2360 WIN_WRITEDMA_QUEUED_EXT = 0x36
2361 WIN_WRITE_BUFFER = 0xe8
2362 WIN_WRITE_EXT = 0x34
2363 WIN_WRITE_LONG = 0x32
2364 WIN_WRITE_LONG_ONCE = 0x33
2365 WIN_WRITE_ONCE = 0x31
2366 WIN_WRITE_SAME = 0xe9
2367 WIN_WRITE_VERIFY = 0x3c
1972 WNOHANG = 0x1 2368 WNOHANG = 0x1
1973 WNOTHREAD = 0x20000000 2369 WNOTHREAD = 0x20000000
1974 WNOWAIT = 0x1000000 2370 WNOWAIT = 0x1000000
@@ -1978,7 +2374,29 @@ const (
1978 XATTR_CREATE = 0x1 2374 XATTR_CREATE = 0x1
1979 XATTR_REPLACE = 0x2 2375 XATTR_REPLACE = 0x2
1980 XCASE = 0x4000 2376 XCASE = 0x4000
2377 XDP_COPY = 0x2
2378 XDP_FLAGS_DRV_MODE = 0x4
2379 XDP_FLAGS_HW_MODE = 0x8
2380 XDP_FLAGS_MASK = 0xf
2381 XDP_FLAGS_MODES = 0xe
2382 XDP_FLAGS_SKB_MODE = 0x2
2383 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2384 XDP_MMAP_OFFSETS = 0x1
2385 XDP_PGOFF_RX_RING = 0x0
2386 XDP_PGOFF_TX_RING = 0x80000000
2387 XDP_RX_RING = 0x2
2388 XDP_SHARED_UMEM = 0x1
2389 XDP_STATISTICS = 0x7
2390 XDP_TX_RING = 0x3
2391 XDP_UMEM_COMPLETION_RING = 0x6
2392 XDP_UMEM_FILL_RING = 0x5
2393 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2394 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2395 XDP_UMEM_REG = 0x4
2396 XDP_ZEROCOPY = 0x4
2397 XENFS_SUPER_MAGIC = 0xabba1974
1981 XTABS = 0xc00 2398 XTABS = 0xc00
2399 ZSMALLOC_MAGIC = 0x58295829
1982) 2400)
1983 2401
1984// Errors 2402// Errors
@@ -2158,172 +2576,180 @@ const (
2158) 2576)
2159 2577
2160// Error table 2578// Error table
2161var errors = [...]string{ 2579var errorList = [...]struct {
2162 1: "operation not permitted", 2580 num syscall.Errno
2163 2: "no such file or directory", 2581 name string
2164 3: "no such process", 2582 desc string
2165 4: "interrupted system call", 2583}{
2166 5: "input/output error", 2584 {1, "EPERM", "operation not permitted"},
2167 6: "no such device or address", 2585 {2, "ENOENT", "no such file or directory"},
2168 7: "argument list too long", 2586 {3, "ESRCH", "no such process"},
2169 8: "exec format error", 2587 {4, "EINTR", "interrupted system call"},
2170 9: "bad file descriptor", 2588 {5, "EIO", "input/output error"},
2171 10: "no child processes", 2589 {6, "ENXIO", "no such device or address"},
2172 11: "resource temporarily unavailable", 2590 {7, "E2BIG", "argument list too long"},
2173 12: "cannot allocate memory", 2591 {8, "ENOEXEC", "exec format error"},
2174 13: "permission denied", 2592 {9, "EBADF", "bad file descriptor"},
2175 14: "bad address", 2593 {10, "ECHILD", "no child processes"},
2176 15: "block device required", 2594 {11, "EAGAIN", "resource temporarily unavailable"},
2177 16: "device or resource busy", 2595 {12, "ENOMEM", "cannot allocate memory"},
2178 17: "file exists", 2596 {13, "EACCES", "permission denied"},
2179 18: "invalid cross-device link", 2597 {14, "EFAULT", "bad address"},
2180 19: "no such device", 2598 {15, "ENOTBLK", "block device required"},
2181 20: "not a directory", 2599 {16, "EBUSY", "device or resource busy"},
2182 21: "is a directory", 2600 {17, "EEXIST", "file exists"},
2183 22: "invalid argument", 2601 {18, "EXDEV", "invalid cross-device link"},
2184 23: "too many open files in system", 2602 {19, "ENODEV", "no such device"},
2185 24: "too many open files", 2603 {20, "ENOTDIR", "not a directory"},
2186 25: "inappropriate ioctl for device", 2604 {21, "EISDIR", "is a directory"},
2187 26: "text file busy", 2605 {22, "EINVAL", "invalid argument"},
2188 27: "file too large", 2606 {23, "ENFILE", "too many open files in system"},
2189 28: "no space left on device", 2607 {24, "EMFILE", "too many open files"},
2190 29: "illegal seek", 2608 {25, "ENOTTY", "inappropriate ioctl for device"},
2191 30: "read-only file system", 2609 {26, "ETXTBSY", "text file busy"},
2192 31: "too many links", 2610 {27, "EFBIG", "file too large"},
2193 32: "broken pipe", 2611 {28, "ENOSPC", "no space left on device"},
2194 33: "numerical argument out of domain", 2612 {29, "ESPIPE", "illegal seek"},
2195 34: "numerical result out of range", 2613 {30, "EROFS", "read-only file system"},
2196 35: "resource deadlock avoided", 2614 {31, "EMLINK", "too many links"},
2197 36: "file name too long", 2615 {32, "EPIPE", "broken pipe"},
2198 37: "no locks available", 2616 {33, "EDOM", "numerical argument out of domain"},
2199 38: "function not implemented", 2617 {34, "ERANGE", "numerical result out of range"},
2200 39: "directory not empty", 2618 {35, "EDEADLK", "resource deadlock avoided"},
2201 40: "too many levels of symbolic links", 2619 {36, "ENAMETOOLONG", "file name too long"},
2202 42: "no message of desired type", 2620 {37, "ENOLCK", "no locks available"},
2203 43: "identifier removed", 2621 {38, "ENOSYS", "function not implemented"},
2204 44: "channel number out of range", 2622 {39, "ENOTEMPTY", "directory not empty"},
2205 45: "level 2 not synchronized", 2623 {40, "ELOOP", "too many levels of symbolic links"},
2206 46: "level 3 halted", 2624 {42, "ENOMSG", "no message of desired type"},
2207 47: "level 3 reset", 2625 {43, "EIDRM", "identifier removed"},
2208 48: "link number out of range", 2626 {44, "ECHRNG", "channel number out of range"},
2209 49: "protocol driver not attached", 2627 {45, "EL2NSYNC", "level 2 not synchronized"},
2210 50: "no CSI structure available", 2628 {46, "EL3HLT", "level 3 halted"},
2211 51: "level 2 halted", 2629 {47, "EL3RST", "level 3 reset"},
2212 52: "invalid exchange", 2630 {48, "ELNRNG", "link number out of range"},
2213 53: "invalid request descriptor", 2631 {49, "EUNATCH", "protocol driver not attached"},
2214 54: "exchange full", 2632 {50, "ENOCSI", "no CSI structure available"},
2215 55: "no anode", 2633 {51, "EL2HLT", "level 2 halted"},
2216 56: "invalid request code", 2634 {52, "EBADE", "invalid exchange"},
2217 57: "invalid slot", 2635 {53, "EBADR", "invalid request descriptor"},
2218 58: "file locking deadlock error", 2636 {54, "EXFULL", "exchange full"},
2219 59: "bad font file format", 2637 {55, "ENOANO", "no anode"},
2220 60: "device not a stream", 2638 {56, "EBADRQC", "invalid request code"},
2221 61: "no data available", 2639 {57, "EBADSLT", "invalid slot"},
2222 62: "timer expired", 2640 {58, "EDEADLOCK", "file locking deadlock error"},
2223 63: "out of streams resources", 2641 {59, "EBFONT", "bad font file format"},
2224 64: "machine is not on the network", 2642 {60, "ENOSTR", "device not a stream"},
2225 65: "package not installed", 2643 {61, "ENODATA", "no data available"},
2226 66: "object is remote", 2644 {62, "ETIME", "timer expired"},
2227 67: "link has been severed", 2645 {63, "ENOSR", "out of streams resources"},
2228 68: "advertise error", 2646 {64, "ENONET", "machine is not on the network"},
2229 69: "srmount error", 2647 {65, "ENOPKG", "package not installed"},
2230 70: "communication error on send", 2648 {66, "EREMOTE", "object is remote"},
2231 71: "protocol error", 2649 {67, "ENOLINK", "link has been severed"},
2232 72: "multihop attempted", 2650 {68, "EADV", "advertise error"},
2233 73: "RFS specific error", 2651 {69, "ESRMNT", "srmount error"},
2234 74: "bad message", 2652 {70, "ECOMM", "communication error on send"},
2235 75: "value too large for defined data type", 2653 {71, "EPROTO", "protocol error"},
2236 76: "name not unique on network", 2654 {72, "EMULTIHOP", "multihop attempted"},
2237 77: "file descriptor in bad state", 2655 {73, "EDOTDOT", "RFS specific error"},
2238 78: "remote address changed", 2656 {74, "EBADMSG", "bad message"},
2239 79: "can not access a needed shared library", 2657 {75, "EOVERFLOW", "value too large for defined data type"},
2240 80: "accessing a corrupted shared library", 2658 {76, "ENOTUNIQ", "name not unique on network"},
2241 81: ".lib section in a.out corrupted", 2659 {77, "EBADFD", "file descriptor in bad state"},
2242 82: "attempting to link in too many shared libraries", 2660 {78, "EREMCHG", "remote address changed"},
2243 83: "cannot exec a shared library directly", 2661 {79, "ELIBACC", "can not access a needed shared library"},
2244 84: "invalid or incomplete multibyte or wide character", 2662 {80, "ELIBBAD", "accessing a corrupted shared library"},
2245 85: "interrupted system call should be restarted", 2663 {81, "ELIBSCN", ".lib section in a.out corrupted"},
2246 86: "streams pipe error", 2664 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
2247 87: "too many users", 2665 {83, "ELIBEXEC", "cannot exec a shared library directly"},
2248 88: "socket operation on non-socket", 2666 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2249 89: "destination address required", 2667 {85, "ERESTART", "interrupted system call should be restarted"},
2250 90: "message too long", 2668 {86, "ESTRPIPE", "streams pipe error"},
2251 91: "protocol wrong type for socket", 2669 {87, "EUSERS", "too many users"},
2252 92: "protocol not available", 2670 {88, "ENOTSOCK", "socket operation on non-socket"},
2253 93: "protocol not supported", 2671 {89, "EDESTADDRREQ", "destination address required"},
2254 94: "socket type not supported", 2672 {90, "EMSGSIZE", "message too long"},
2255 95: "operation not supported", 2673 {91, "EPROTOTYPE", "protocol wrong type for socket"},
2256 96: "protocol family not supported", 2674 {92, "ENOPROTOOPT", "protocol not available"},
2257 97: "address family not supported by protocol", 2675 {93, "EPROTONOSUPPORT", "protocol not supported"},
2258 98: "address already in use", 2676 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
2259 99: "cannot assign requested address", 2677 {95, "ENOTSUP", "operation not supported"},
2260 100: "network is down", 2678 {96, "EPFNOSUPPORT", "protocol family not supported"},
2261 101: "network is unreachable", 2679 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
2262 102: "network dropped connection on reset", 2680 {98, "EADDRINUSE", "address already in use"},
2263 103: "software caused connection abort", 2681 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
2264 104: "connection reset by peer", 2682 {100, "ENETDOWN", "network is down"},
2265 105: "no buffer space available", 2683 {101, "ENETUNREACH", "network is unreachable"},
2266 106: "transport endpoint is already connected", 2684 {102, "ENETRESET", "network dropped connection on reset"},
2267 107: "transport endpoint is not connected", 2685 {103, "ECONNABORTED", "software caused connection abort"},
2268 108: "cannot send after transport endpoint shutdown", 2686 {104, "ECONNRESET", "connection reset by peer"},
2269 109: "too many references: cannot splice", 2687 {105, "ENOBUFS", "no buffer space available"},
2270 110: "connection timed out", 2688 {106, "EISCONN", "transport endpoint is already connected"},
2271 111: "connection refused", 2689 {107, "ENOTCONN", "transport endpoint is not connected"},
2272 112: "host is down", 2690 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2273 113: "no route to host", 2691 {109, "ETOOMANYREFS", "too many references: cannot splice"},
2274 114: "operation already in progress", 2692 {110, "ETIMEDOUT", "connection timed out"},
2275 115: "operation now in progress", 2693 {111, "ECONNREFUSED", "connection refused"},
2276 116: "stale file handle", 2694 {112, "EHOSTDOWN", "host is down"},
2277 117: "structure needs cleaning", 2695 {113, "EHOSTUNREACH", "no route to host"},
2278 118: "not a XENIX named type file", 2696 {114, "EALREADY", "operation already in progress"},
2279 119: "no XENIX semaphores available", 2697 {115, "EINPROGRESS", "operation now in progress"},
2280 120: "is a named type file", 2698 {116, "ESTALE", "stale file handle"},
2281 121: "remote I/O error", 2699 {117, "EUCLEAN", "structure needs cleaning"},
2282 122: "disk quota exceeded", 2700 {118, "ENOTNAM", "not a XENIX named type file"},
2283 123: "no medium found", 2701 {119, "ENAVAIL", "no XENIX semaphores available"},
2284 124: "wrong medium type", 2702 {120, "EISNAM", "is a named type file"},
2285 125: "operation canceled", 2703 {121, "EREMOTEIO", "remote I/O error"},
2286 126: "required key not available", 2704 {122, "EDQUOT", "disk quota exceeded"},
2287 127: "key has expired", 2705 {123, "ENOMEDIUM", "no medium found"},
2288 128: "key has been revoked", 2706 {124, "EMEDIUMTYPE", "wrong medium type"},
2289 129: "key was rejected by service", 2707 {125, "ECANCELED", "operation canceled"},
2290 130: "owner died", 2708 {126, "ENOKEY", "required key not available"},
2291 131: "state not recoverable", 2709 {127, "EKEYEXPIRED", "key has expired"},
2292 132: "operation not possible due to RF-kill", 2710 {128, "EKEYREVOKED", "key has been revoked"},
2293 133: "memory page has hardware error", 2711 {129, "EKEYREJECTED", "key was rejected by service"},
2712 {130, "EOWNERDEAD", "owner died"},
2713 {131, "ENOTRECOVERABLE", "state not recoverable"},
2714 {132, "ERFKILL", "operation not possible due to RF-kill"},
2715 {133, "EHWPOISON", "memory page has hardware error"},
2294} 2716}
2295 2717
2296// Signal table 2718// Signal table
2297var signals = [...]string{ 2719var signalList = [...]struct {
2298 1: "hangup", 2720 num syscall.Signal
2299 2: "interrupt", 2721 name string
2300 3: "quit", 2722 desc string
2301 4: "illegal instruction", 2723}{
2302 5: "trace/breakpoint trap", 2724 {1, "SIGHUP", "hangup"},
2303 6: "aborted", 2725 {2, "SIGINT", "interrupt"},
2304 7: "bus error", 2726 {3, "SIGQUIT", "quit"},
2305 8: "floating point exception", 2727 {4, "SIGILL", "illegal instruction"},
2306 9: "killed", 2728 {5, "SIGTRAP", "trace/breakpoint trap"},
2307 10: "user defined signal 1", 2729 {6, "SIGABRT", "aborted"},
2308 11: "segmentation fault", 2730 {7, "SIGBUS", "bus error"},
2309 12: "user defined signal 2", 2731 {8, "SIGFPE", "floating point exception"},
2310 13: "broken pipe", 2732 {9, "SIGKILL", "killed"},
2311 14: "alarm clock", 2733 {10, "SIGUSR1", "user defined signal 1"},
2312 15: "terminated", 2734 {11, "SIGSEGV", "segmentation fault"},
2313 16: "stack fault", 2735 {12, "SIGUSR2", "user defined signal 2"},
2314 17: "child exited", 2736 {13, "SIGPIPE", "broken pipe"},
2315 18: "continued", 2737 {14, "SIGALRM", "alarm clock"},
2316 19: "stopped (signal)", 2738 {15, "SIGTERM", "terminated"},
2317 20: "stopped", 2739 {16, "SIGSTKFLT", "stack fault"},
2318 21: "stopped (tty input)", 2740 {17, "SIGCHLD", "child exited"},
2319 22: "stopped (tty output)", 2741 {18, "SIGCONT", "continued"},
2320 23: "urgent I/O condition", 2742 {19, "SIGSTOP", "stopped (signal)"},
2321 24: "CPU time limit exceeded", 2743 {20, "SIGTSTP", "stopped"},
2322 25: "file size limit exceeded", 2744 {21, "SIGTTIN", "stopped (tty input)"},
2323 26: "virtual timer expired", 2745 {22, "SIGTTOU", "stopped (tty output)"},
2324 27: "profiling timer expired", 2746 {23, "SIGURG", "urgent I/O condition"},
2325 28: "window changed", 2747 {24, "SIGXCPU", "CPU time limit exceeded"},
2326 29: "I/O possible", 2748 {25, "SIGXFSZ", "file size limit exceeded"},
2327 30: "power failure", 2749 {26, "SIGVTALRM", "virtual timer expired"},
2328 31: "bad system call", 2750 {27, "SIGPROF", "profiling timer expired"},
2751 {28, "SIGWINCH", "window changed"},
2752 {29, "SIGIO", "I/O possible"},
2753 {30, "SIGPWR", "power failure"},
2754 {31, "SIGSYS", "bad system call"},
2329} 2755}
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 6a80324..cdb6088 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
@@ -3,7 +3,7 @@
3 3
4// +build ppc64le,linux 4// +build ppc64le,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x17 145 B1000000 = 0x17
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x16 173 B921600 = 0x16
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x40081270 178 BLKBSZGET = 0x40081270
167 BLKBSZSET = 0x80081271 179 BLKBSZSET = 0x80081271
168 BLKFLSBUF = 0x20001261 180 BLKFLSBUF = 0x20001261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x8000 242 BS1 = 0x8000
230 BSDLY = 0x8000 243 BSDLY = 0x8000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0xff 266 CBAUD = 0xff
252 CBAUDEX = 0x0 267 CBAUDEX = 0x0
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0xff0000 271 CIBAUD = 0xff0000
255 CLOCAL = 0x8000 272 CLOCAL = 0x8000
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x1000 315 CR1 = 0x1000
298 CR2 = 0x2000 316 CR2 = 0x2000
299 CR3 = 0x3000 317 CR3 = 0x3000
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x3000 319 CRDLY = 0x3000
301 CREAD = 0x800 320 CREAD = 0x800
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x400 331 CSTOPB = 0x400
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x1 349 ECHOKE = 0x1
328 ECHONL = 0x10 350 ECHONL = 0x10
329 ECHOPRT = 0x20 351 ECHOPRT = 0x20
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x800 354 EFD_NONBLOCK = 0x800
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000000 480 EXTPROC = 0x10000000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -463,6 +499,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 504 FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 506 FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
@@ -476,6 +514,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 514 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 515 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 519 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 520 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 521 F_EXLCK = 0x4
@@ -488,6 +528,9 @@ const (
488 F_GETOWN_EX = 0x10 528 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 529 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 534 F_LOCK = 0x1
492 F_NOTIFY = 0x402 535 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 536 F_OFD_GETLK = 0x24
@@ -495,6 +538,10 @@ const (
495 F_OFD_SETLKW = 0x26 538 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 539 F_OK = 0x0
497 F_RDLCK = 0x0 540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 545 F_SETFD = 0x2
499 F_SETFL = 0x4 546 F_SETFL = 0x4
500 F_SETLEASE = 0x400 547 F_SETLEASE = 0x400
@@ -506,6 +553,8 @@ const (
506 F_SETOWN_EX = 0xf 553 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 554 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 558 F_SHLCK = 0x8
510 F_TEST = 0x3 559 F_TEST = 0x3
511 F_TLOCK = 0x2 560 F_TLOCK = 0x2
@@ -527,6 +576,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 576 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 577 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x4000 622 HUPCL = 0x4000
531 IBSHIFT = 0x10 623 IBSHIFT = 0x10
532 ICANON = 0x100 624 ICANON = 0x100
@@ -546,7 +638,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 638 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 639 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 640 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 641 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 642 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 643 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 644 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +653,8 @@ const (
561 IFF_MASTER = 0x400 653 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 654 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 658 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 659 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 660 IFF_NOTRAILERS = 0x20
@@ -671,6 +765,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 765 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 766 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 769 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 770 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 771 IPV6_HOPOPTS = 0x36
@@ -775,12 +870,34 @@ const (
775 IP_UNICAST_IF = 0x32 870 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 871 IP_XFRM_POLICY = 0x11
777 ISIG = 0x80 872 ISIG = 0x80
873 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 874 ISTRIP = 0x20
779 IUCLC = 0x1000 875 IUCLC = 0x1000
780 IUTF8 = 0x4000 876 IUTF8 = 0x4000
781 IXANY = 0x800 877 IXANY = 0x800
782 IXOFF = 0x400 878 IXOFF = 0x400
783 IXON = 0x200 879 IXON = 0x200
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 901 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 902 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 903 KEYCTL_CLEAR = 0x7
@@ -845,6 +962,7 @@ const (
845 MADV_FREE = 0x8 962 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 963 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 966 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 967 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 968 MADV_NORMAL = 0x0
@@ -853,12 +971,14 @@ const (
853 MADV_SEQUENTIAL = 0x2 971 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 972 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
856 MAP_ANON = 0x20 975 MAP_ANON = 0x20
857 MAP_ANONYMOUS = 0x20 976 MAP_ANONYMOUS = 0x20
858 MAP_DENYWRITE = 0x800 977 MAP_DENYWRITE = 0x800
859 MAP_EXECUTABLE = 0x1000 978 MAP_EXECUTABLE = 0x1000
860 MAP_FILE = 0x0 979 MAP_FILE = 0x0
861 MAP_FIXED = 0x10 980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
862 MAP_GROWSDOWN = 0x100 982 MAP_GROWSDOWN = 0x100
863 MAP_HUGETLB = 0x40000 983 MAP_HUGETLB = 0x40000
864 MAP_HUGE_MASK = 0x3f 984 MAP_HUGE_MASK = 0x3f
@@ -869,14 +989,36 @@ const (
869 MAP_POPULATE = 0x8000 989 MAP_POPULATE = 0x8000
870 MAP_PRIVATE = 0x2 990 MAP_PRIVATE = 0x2
871 MAP_SHARED = 0x1 991 MAP_SHARED = 0x1
992 MAP_SHARED_VALIDATE = 0x3
872 MAP_STACK = 0x20000 993 MAP_STACK = 0x20000
873 MAP_TYPE = 0xf 994 MAP_TYPE = 0xf
874 MCL_CURRENT = 0x2000 995 MCL_CURRENT = 0x2000
875 MCL_FUTURE = 0x4000 996 MCL_FUTURE = 0x4000
876 MCL_ONFAULT = 0x8000 997 MCL_ONFAULT = 0x8000
998 MFD_ALLOW_SEALING = 0x2
999 MFD_CLOEXEC = 0x1
1000 MFD_HUGETLB = 0x4
1001 MFD_HUGE_16GB = -0x78000000
1002 MFD_HUGE_16MB = 0x60000000
1003 MFD_HUGE_1GB = 0x78000000
1004 MFD_HUGE_1MB = 0x50000000
1005 MFD_HUGE_256MB = 0x70000000
1006 MFD_HUGE_2GB = 0x7c000000
1007 MFD_HUGE_2MB = 0x54000000
1008 MFD_HUGE_512KB = 0x4c000000
1009 MFD_HUGE_64KB = 0x40000000
1010 MFD_HUGE_8MB = 0x5c000000
1011 MFD_HUGE_MASK = 0x3f
1012 MFD_HUGE_SHIFT = 0x1a
1013 MINIX2_SUPER_MAGIC = 0x2468
1014 MINIX2_SUPER_MAGIC2 = 0x2478
1015 MINIX3_SUPER_MAGIC = 0x4d5a
1016 MINIX_SUPER_MAGIC = 0x137f
1017 MINIX_SUPER_MAGIC2 = 0x138f
877 MNT_DETACH = 0x2 1018 MNT_DETACH = 0x2
878 MNT_EXPIRE = 0x4 1019 MNT_EXPIRE = 0x4
879 MNT_FORCE = 0x1 1020 MNT_FORCE = 0x1
1021 MSDOS_SUPER_MAGIC = 0x4d44
880 MSG_BATCH = 0x40000 1022 MSG_BATCH = 0x40000
881 MSG_CMSG_CLOEXEC = 0x40000000 1023 MSG_CMSG_CLOEXEC = 0x40000000
882 MSG_CONFIRM = 0x800 1024 MSG_CONFIRM = 0x800
@@ -898,6 +1040,7 @@ const (
898 MSG_TRYHARD = 0x4 1040 MSG_TRYHARD = 0x4
899 MSG_WAITALL = 0x100 1041 MSG_WAITALL = 0x100
900 MSG_WAITFORONE = 0x10000 1042 MSG_WAITFORONE = 0x10000
1043 MSG_ZEROCOPY = 0x4000000
901 MS_ACTIVE = 0x40000000 1044 MS_ACTIVE = 0x40000000
902 MS_ASYNC = 0x1 1045 MS_ASYNC = 0x1
903 MS_BIND = 0x1000 1046 MS_BIND = 0x1000
@@ -935,7 +1078,9 @@ const (
935 MS_SYNCHRONOUS = 0x10 1078 MS_SYNCHRONOUS = 0x10
936 MS_UNBINDABLE = 0x20000 1079 MS_UNBINDABLE = 0x20000
937 MS_VERBOSE = 0x8000 1080 MS_VERBOSE = 0x8000
1081 MTD_INODE_FS_MAGIC = 0x11307854
938 NAME_MAX = 0xff 1082 NAME_MAX = 0xff
1083 NCP_SUPER_MAGIC = 0x564c
939 NETLINK_ADD_MEMBERSHIP = 0x1 1084 NETLINK_ADD_MEMBERSHIP = 0x1
940 NETLINK_AUDIT = 0x9 1085 NETLINK_AUDIT = 0x9
941 NETLINK_BROADCAST_ERROR = 0x4 1086 NETLINK_BROADCAST_ERROR = 0x4
@@ -970,6 +1115,39 @@ const (
970 NETLINK_UNUSED = 0x1 1115 NETLINK_UNUSED = 0x1
971 NETLINK_USERSOCK = 0x2 1116 NETLINK_USERSOCK = 0x2
972 NETLINK_XFRM = 0x6 1117 NETLINK_XFRM = 0x6
1118 NETNSA_MAX = 0x3
1119 NETNSA_NSID_NOT_ASSIGNED = -0x1
1120 NFNETLINK_V0 = 0x0
1121 NFNLGRP_ACCT_QUOTA = 0x8
1122 NFNLGRP_CONNTRACK_DESTROY = 0x3
1123 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1124 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1125 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1126 NFNLGRP_CONNTRACK_NEW = 0x1
1127 NFNLGRP_CONNTRACK_UPDATE = 0x2
1128 NFNLGRP_MAX = 0x9
1129 NFNLGRP_NFTABLES = 0x7
1130 NFNLGRP_NFTRACE = 0x9
1131 NFNLGRP_NONE = 0x0
1132 NFNL_BATCH_MAX = 0x1
1133 NFNL_MSG_BATCH_BEGIN = 0x10
1134 NFNL_MSG_BATCH_END = 0x11
1135 NFNL_NFA_NEST = 0x8000
1136 NFNL_SUBSYS_ACCT = 0x7
1137 NFNL_SUBSYS_COUNT = 0xc
1138 NFNL_SUBSYS_CTHELPER = 0x9
1139 NFNL_SUBSYS_CTNETLINK = 0x1
1140 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1141 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1142 NFNL_SUBSYS_IPSET = 0x6
1143 NFNL_SUBSYS_NFTABLES = 0xa
1144 NFNL_SUBSYS_NFT_COMPAT = 0xb
1145 NFNL_SUBSYS_NONE = 0x0
1146 NFNL_SUBSYS_OSF = 0x5
1147 NFNL_SUBSYS_QUEUE = 0x3
1148 NFNL_SUBSYS_ULOG = 0x4
1149 NFS_SUPER_MAGIC = 0x6969
1150 NILFS_SUPER_MAGIC = 0x3434
973 NL0 = 0x0 1151 NL0 = 0x0
974 NL1 = 0x100 1152 NL1 = 0x100
975 NL2 = 0x200 1153 NL2 = 0x200
@@ -999,10 +1177,13 @@ const (
999 NLM_F_EXCL = 0x200 1177 NLM_F_EXCL = 0x200
1000 NLM_F_MATCH = 0x200 1178 NLM_F_MATCH = 0x200
1001 NLM_F_MULTI = 0x2 1179 NLM_F_MULTI = 0x2
1180 NLM_F_NONREC = 0x100
1002 NLM_F_REPLACE = 0x100 1181 NLM_F_REPLACE = 0x100
1003 NLM_F_REQUEST = 0x1 1182 NLM_F_REQUEST = 0x1
1004 NLM_F_ROOT = 0x100 1183 NLM_F_ROOT = 0x100
1005 NOFLSH = 0x80000000 1184 NOFLSH = 0x80000000
1185 NSFS_MAGIC = 0x6e736673
1186 OCFS2_SUPER_MAGIC = 0x7461636f
1006 OCRNL = 0x8 1187 OCRNL = 0x8
1007 OFDEL = 0x80 1188 OFDEL = 0x80
1008 OFILL = 0x40 1189 OFILL = 0x40
@@ -1010,7 +1191,9 @@ const (
1010 ONLCR = 0x2 1191 ONLCR = 0x2
1011 ONLRET = 0x20 1192 ONLRET = 0x20
1012 ONOCR = 0x10 1193 ONOCR = 0x10
1194 OPENPROM_SUPER_MAGIC = 0x9fa1
1013 OPOST = 0x1 1195 OPOST = 0x1
1196 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1014 O_ACCMODE = 0x3 1197 O_ACCMODE = 0x3
1015 O_APPEND = 0x400 1198 O_APPEND = 0x400
1016 O_ASYNC = 0x2000 1199 O_ASYNC = 0x2000
@@ -1095,16 +1278,20 @@ const (
1095 PERF_EVENT_IOC_DISABLE = 0x20002401 1278 PERF_EVENT_IOC_DISABLE = 0x20002401
1096 PERF_EVENT_IOC_ENABLE = 0x20002400 1279 PERF_EVENT_IOC_ENABLE = 0x20002400
1097 PERF_EVENT_IOC_ID = 0x40082407 1280 PERF_EVENT_IOC_ID = 0x40082407
1281 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
1098 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 1282 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
1099 PERF_EVENT_IOC_PERIOD = 0x80082404 1283 PERF_EVENT_IOC_PERIOD = 0x80082404
1284 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
1100 PERF_EVENT_IOC_REFRESH = 0x20002402 1285 PERF_EVENT_IOC_REFRESH = 0x20002402
1101 PERF_EVENT_IOC_RESET = 0x20002403 1286 PERF_EVENT_IOC_RESET = 0x20002403
1102 PERF_EVENT_IOC_SET_BPF = 0x80042408 1287 PERF_EVENT_IOC_SET_BPF = 0x80042408
1103 PERF_EVENT_IOC_SET_FILTER = 0x80082406 1288 PERF_EVENT_IOC_SET_FILTER = 0x80082406
1104 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 1289 PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
1290 PIPEFS_MAGIC = 0x50495045
1105 PRIO_PGRP = 0x1 1291 PRIO_PGRP = 0x1
1106 PRIO_PROCESS = 0x0 1292 PRIO_PROCESS = 0x0
1107 PRIO_USER = 0x2 1293 PRIO_USER = 0x2
1294 PROC_SUPER_MAGIC = 0x9fa0
1108 PROT_EXEC = 0x4 1295 PROT_EXEC = 0x4
1109 PROT_GROWSDOWN = 0x1000000 1296 PROT_GROWSDOWN = 0x1000000
1110 PROT_GROWSUP = 0x2000000 1297 PROT_GROWSUP = 0x2000000
@@ -1148,6 +1335,7 @@ const (
1148 PR_GET_PDEATHSIG = 0x2 1335 PR_GET_PDEATHSIG = 0x2
1149 PR_GET_SECCOMP = 0x15 1336 PR_GET_SECCOMP = 0x15
1150 PR_GET_SECUREBITS = 0x1b 1337 PR_GET_SECUREBITS = 0x1b
1338 PR_GET_SPECULATION_CTRL = 0x34
1151 PR_GET_THP_DISABLE = 0x2a 1339 PR_GET_THP_DISABLE = 0x2a
1152 PR_GET_TID_ADDRESS = 0x28 1340 PR_GET_TID_ADDRESS = 0x28
1153 PR_GET_TIMERSLACK = 0x1e 1341 PR_GET_TIMERSLACK = 0x1e
@@ -1193,11 +1381,23 @@ const (
1193 PR_SET_PTRACER_ANY = 0xffffffffffffffff 1381 PR_SET_PTRACER_ANY = 0xffffffffffffffff
1194 PR_SET_SECCOMP = 0x16 1382 PR_SET_SECCOMP = 0x16
1195 PR_SET_SECUREBITS = 0x1c 1383 PR_SET_SECUREBITS = 0x1c
1384 PR_SET_SPECULATION_CTRL = 0x35
1196 PR_SET_THP_DISABLE = 0x29 1385 PR_SET_THP_DISABLE = 0x29
1197 PR_SET_TIMERSLACK = 0x1d 1386 PR_SET_TIMERSLACK = 0x1d
1198 PR_SET_TIMING = 0xe 1387 PR_SET_TIMING = 0xe
1199 PR_SET_TSC = 0x1a 1388 PR_SET_TSC = 0x1a
1200 PR_SET_UNALIGN = 0x6 1389 PR_SET_UNALIGN = 0x6
1390 PR_SPEC_DISABLE = 0x4
1391 PR_SPEC_ENABLE = 0x2
1392 PR_SPEC_FORCE_DISABLE = 0x8
1393 PR_SPEC_NOT_AFFECTED = 0x0
1394 PR_SPEC_PRCTL = 0x1
1395 PR_SPEC_STORE_BYPASS = 0x0
1396 PR_SVE_GET_VL = 0x33
1397 PR_SVE_SET_VL = 0x32
1398 PR_SVE_SET_VL_ONEXEC = 0x40000
1399 PR_SVE_VL_INHERIT = 0x20000
1400 PR_SVE_VL_LEN_MASK = 0xffff
1201 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1401 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1202 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1402 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1203 PR_TIMING_STATISTICAL = 0x0 1403 PR_TIMING_STATISTICAL = 0x0
@@ -1206,6 +1406,7 @@ const (
1206 PR_TSC_SIGSEGV = 0x2 1406 PR_TSC_SIGSEGV = 0x2
1207 PR_UNALIGN_NOPRINT = 0x1 1407 PR_UNALIGN_NOPRINT = 0x1
1208 PR_UNALIGN_SIGBUS = 0x2 1408 PR_UNALIGN_SIGBUS = 0x2
1409 PSTOREFS_MAGIC = 0x6165676c
1209 PTRACE_ATTACH = 0x10 1410 PTRACE_ATTACH = 0x10
1210 PTRACE_CONT = 0x7 1411 PTRACE_CONT = 0x7
1211 PTRACE_DETACH = 0x11 1412 PTRACE_DETACH = 0x11
@@ -1251,6 +1452,7 @@ const (
1251 PTRACE_POKETEXT = 0x4 1452 PTRACE_POKETEXT = 0x4
1252 PTRACE_POKEUSR = 0x6 1453 PTRACE_POKEUSR = 0x6
1253 PTRACE_SECCOMP_GET_FILTER = 0x420c 1454 PTRACE_SECCOMP_GET_FILTER = 0x420c
1455 PTRACE_SECCOMP_GET_METADATA = 0x420d
1254 PTRACE_SEIZE = 0x4206 1456 PTRACE_SEIZE = 0x4206
1255 PTRACE_SETEVRREGS = 0x15 1457 PTRACE_SETEVRREGS = 0x15
1256 PTRACE_SETFPREGS = 0xf 1458 PTRACE_SETFPREGS = 0xf
@@ -1320,6 +1522,14 @@ const (
1320 PT_VSR0 = 0x96 1522 PT_VSR0 = 0x96
1321 PT_VSR31 = 0xd4 1523 PT_VSR31 = 0xd4
1322 PT_XER = 0x25 1524 PT_XER = 0x25
1525 QNX4_SUPER_MAGIC = 0x2f
1526 QNX6_SUPER_MAGIC = 0x68191122
1527 RAMFS_MAGIC = 0x858458f6
1528 RDTGROUP_SUPER_MAGIC = 0x7655821
1529 REISERFS_SUPER_MAGIC = 0x52654973
1530 RENAME_EXCHANGE = 0x2
1531 RENAME_NOREPLACE = 0x1
1532 RENAME_WHITEOUT = 0x4
1323 RLIMIT_AS = 0x9 1533 RLIMIT_AS = 0x9
1324 RLIMIT_CORE = 0x4 1534 RLIMIT_CORE = 0x4
1325 RLIMIT_CPU = 0x0 1535 RLIMIT_CPU = 0x0
@@ -1340,6 +1550,7 @@ const (
1340 RTAX_ADVMSS = 0x8 1550 RTAX_ADVMSS = 0x8
1341 RTAX_CC_ALGO = 0x10 1551 RTAX_CC_ALGO = 0x10
1342 RTAX_CWND = 0x7 1552 RTAX_CWND = 0x7
1553 RTAX_FASTOPEN_NO_COOKIE = 0x11
1343 RTAX_FEATURES = 0xc 1554 RTAX_FEATURES = 0xc
1344 RTAX_FEATURE_ALLFRAG = 0x8 1555 RTAX_FEATURE_ALLFRAG = 0x8
1345 RTAX_FEATURE_ECN = 0x1 1556 RTAX_FEATURE_ECN = 0x1
@@ -1350,7 +1561,7 @@ const (
1350 RTAX_INITCWND = 0xb 1561 RTAX_INITCWND = 0xb
1351 RTAX_INITRWND = 0xe 1562 RTAX_INITRWND = 0xe
1352 RTAX_LOCK = 0x1 1563 RTAX_LOCK = 0x1
1353 RTAX_MAX = 0x10 1564 RTAX_MAX = 0x11
1354 RTAX_MTU = 0x2 1565 RTAX_MTU = 0x2
1355 RTAX_QUICKACK = 0xf 1566 RTAX_QUICKACK = 0xf
1356 RTAX_REORDERING = 0x9 1567 RTAX_REORDERING = 0x9
@@ -1361,13 +1572,40 @@ const (
1361 RTAX_UNSPEC = 0x0 1572 RTAX_UNSPEC = 0x0
1362 RTAX_WINDOW = 0x3 1573 RTAX_WINDOW = 0x3
1363 RTA_ALIGNTO = 0x4 1574 RTA_ALIGNTO = 0x4
1364 RTA_MAX = 0x1a 1575 RTA_MAX = 0x1d
1365 RTCF_DIRECTSRC = 0x4000000 1576 RTCF_DIRECTSRC = 0x4000000
1366 RTCF_DOREDIRECT = 0x1000000 1577 RTCF_DOREDIRECT = 0x1000000
1367 RTCF_LOG = 0x2000000 1578 RTCF_LOG = 0x2000000
1368 RTCF_MASQ = 0x400000 1579 RTCF_MASQ = 0x400000
1369 RTCF_NAT = 0x800000 1580 RTCF_NAT = 0x800000
1370 RTCF_VALVE = 0x200000 1581 RTCF_VALVE = 0x200000
1582 RTC_AF = 0x20
1583 RTC_AIE_OFF = 0x20007002
1584 RTC_AIE_ON = 0x20007001
1585 RTC_ALM_READ = 0x40247008
1586 RTC_ALM_SET = 0x80247007
1587 RTC_EPOCH_READ = 0x4008700d
1588 RTC_EPOCH_SET = 0x8008700e
1589 RTC_IRQF = 0x80
1590 RTC_IRQP_READ = 0x4008700b
1591 RTC_IRQP_SET = 0x8008700c
1592 RTC_MAX_FREQ = 0x2000
1593 RTC_PF = 0x40
1594 RTC_PIE_OFF = 0x20007006
1595 RTC_PIE_ON = 0x20007005
1596 RTC_PLL_GET = 0x40207011
1597 RTC_PLL_SET = 0x80207012
1598 RTC_RD_TIME = 0x40247009
1599 RTC_SET_TIME = 0x8024700a
1600 RTC_UF = 0x10
1601 RTC_UIE_OFF = 0x20007004
1602 RTC_UIE_ON = 0x20007003
1603 RTC_VL_CLR = 0x20007014
1604 RTC_VL_READ = 0x40047013
1605 RTC_WIE_OFF = 0x20007010
1606 RTC_WIE_ON = 0x2000700f
1607 RTC_WKALM_RD = 0x40287010
1608 RTC_WKALM_SET = 0x8028700f
1371 RTF_ADDRCLASSMASK = 0xf8000000 1609 RTF_ADDRCLASSMASK = 0xf8000000
1372 RTF_ADDRCONF = 0x40000 1610 RTF_ADDRCONF = 0x40000
1373 RTF_ALLONLINK = 0x20000 1611 RTF_ALLONLINK = 0x20000
@@ -1470,17 +1708,22 @@ const (
1470 RTNH_F_UNRESOLVED = 0x20 1708 RTNH_F_UNRESOLVED = 0x20
1471 RTN_MAX = 0xb 1709 RTN_MAX = 0xb
1472 RTPROT_BABEL = 0x2a 1710 RTPROT_BABEL = 0x2a
1711 RTPROT_BGP = 0xba
1473 RTPROT_BIRD = 0xc 1712 RTPROT_BIRD = 0xc
1474 RTPROT_BOOT = 0x3 1713 RTPROT_BOOT = 0x3
1475 RTPROT_DHCP = 0x10 1714 RTPROT_DHCP = 0x10
1476 RTPROT_DNROUTED = 0xd 1715 RTPROT_DNROUTED = 0xd
1716 RTPROT_EIGRP = 0xc0
1477 RTPROT_GATED = 0x8 1717 RTPROT_GATED = 0x8
1718 RTPROT_ISIS = 0xbb
1478 RTPROT_KERNEL = 0x2 1719 RTPROT_KERNEL = 0x2
1479 RTPROT_MROUTED = 0x11 1720 RTPROT_MROUTED = 0x11
1480 RTPROT_MRT = 0xa 1721 RTPROT_MRT = 0xa
1481 RTPROT_NTK = 0xf 1722 RTPROT_NTK = 0xf
1723 RTPROT_OSPF = 0xbc
1482 RTPROT_RA = 0x9 1724 RTPROT_RA = 0x9
1483 RTPROT_REDIRECT = 0x1 1725 RTPROT_REDIRECT = 0x1
1726 RTPROT_RIP = 0xbd
1484 RTPROT_STATIC = 0x4 1727 RTPROT_STATIC = 0x4
1485 RTPROT_UNSPEC = 0x0 1728 RTPROT_UNSPEC = 0x0
1486 RTPROT_XORP = 0xe 1729 RTPROT_XORP = 0xe
@@ -1504,6 +1747,8 @@ const (
1504 SECCOMP_MODE_DISABLED = 0x0 1747 SECCOMP_MODE_DISABLED = 0x0
1505 SECCOMP_MODE_FILTER = 0x2 1748 SECCOMP_MODE_FILTER = 0x2
1506 SECCOMP_MODE_STRICT = 0x1 1749 SECCOMP_MODE_STRICT = 0x1
1750 SECURITYFS_MAGIC = 0x73636673
1751 SELINUX_MAGIC = 0xf97cff8c
1507 SHUT_RD = 0x0 1752 SHUT_RD = 0x0
1508 SHUT_RDWR = 0x2 1753 SHUT_RDWR = 0x2
1509 SHUT_WR = 0x1 1754 SHUT_WR = 0x1
@@ -1588,6 +1833,23 @@ const (
1588 SIOCSPGRP = 0x8902 1833 SIOCSPGRP = 0x8902
1589 SIOCSRARP = 0x8962 1834 SIOCSRARP = 0x8962
1590 SIOCWANDEV = 0x894a 1835 SIOCWANDEV = 0x894a
1836 SMACK_MAGIC = 0x43415d53
1837 SMART_AUTOSAVE = 0xd2
1838 SMART_AUTO_OFFLINE = 0xdb
1839 SMART_DISABLE = 0xd9
1840 SMART_ENABLE = 0xd8
1841 SMART_HCYL_PASS = 0xc2
1842 SMART_IMMEDIATE_OFFLINE = 0xd4
1843 SMART_LCYL_PASS = 0x4f
1844 SMART_READ_LOG_SECTOR = 0xd5
1845 SMART_READ_THRESHOLDS = 0xd1
1846 SMART_READ_VALUES = 0xd0
1847 SMART_SAVE = 0xd3
1848 SMART_STATUS = 0xda
1849 SMART_WRITE_LOG_SECTOR = 0xd6
1850 SMART_WRITE_THRESHOLDS = 0xd7
1851 SMB_SUPER_MAGIC = 0x517b
1852 SOCKFS_MAGIC = 0x534f434b
1591 SOCK_CLOEXEC = 0x80000 1853 SOCK_CLOEXEC = 0x80000
1592 SOCK_DCCP = 0x6 1854 SOCK_DCCP = 0x6
1593 SOCK_DGRAM = 0x2 1855 SOCK_DGRAM = 0x2
@@ -1624,7 +1886,9 @@ const (
1624 SOL_SOCKET = 0x1 1886 SOL_SOCKET = 0x1
1625 SOL_TCP = 0x6 1887 SOL_TCP = 0x6
1626 SOL_TIPC = 0x10f 1888 SOL_TIPC = 0x10f
1889 SOL_TLS = 0x11a
1627 SOL_X25 = 0x106 1890 SOL_X25 = 0x106
1891 SOL_XDP = 0x11b
1628 SOMAXCONN = 0x80 1892 SOMAXCONN = 0x80
1629 SO_ACCEPTCONN = 0x1e 1893 SO_ACCEPTCONN = 0x1e
1630 SO_ATTACH_BPF = 0x32 1894 SO_ATTACH_BPF = 0x32
@@ -1692,10 +1956,13 @@ const (
1692 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1956 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1693 SO_VM_SOCKETS_TRUSTED = 0x5 1957 SO_VM_SOCKETS_TRUSTED = 0x5
1694 SO_WIFI_STATUS = 0x29 1958 SO_WIFI_STATUS = 0x29
1959 SO_ZEROCOPY = 0x3c
1695 SPLICE_F_GIFT = 0x8 1960 SPLICE_F_GIFT = 0x8
1696 SPLICE_F_MORE = 0x4 1961 SPLICE_F_MORE = 0x4
1697 SPLICE_F_MOVE = 0x1 1962 SPLICE_F_MOVE = 0x1
1698 SPLICE_F_NONBLOCK = 0x2 1963 SPLICE_F_NONBLOCK = 0x2
1964 SQUASHFS_MAGIC = 0x73717368
1965 STACK_END_MAGIC = 0x57ac6e9d
1699 STATX_ALL = 0xfff 1966 STATX_ALL = 0xfff
1700 STATX_ATIME = 0x20 1967 STATX_ATIME = 0x20
1701 STATX_ATTR_APPEND = 0x20 1968 STATX_ATTR_APPEND = 0x20
@@ -1717,6 +1984,10 @@ const (
1717 STATX_TYPE = 0x1 1984 STATX_TYPE = 0x1
1718 STATX_UID = 0x8 1985 STATX_UID = 0x8
1719 STATX__RESERVED = 0x80000000 1986 STATX__RESERVED = 0x80000000
1987 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1988 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1989 SYNC_FILE_RANGE_WRITE = 0x2
1990 SYSFS_MAGIC = 0x62656572
1720 S_BLKSIZE = 0x200 1991 S_BLKSIZE = 0x200
1721 S_IEXEC = 0x40 1992 S_IEXEC = 0x40
1722 S_IFBLK = 0x6000 1993 S_IFBLK = 0x6000
@@ -1777,6 +2048,8 @@ const (
1777 TCP_DEFER_ACCEPT = 0x9 2048 TCP_DEFER_ACCEPT = 0x9
1778 TCP_FASTOPEN = 0x17 2049 TCP_FASTOPEN = 0x17
1779 TCP_FASTOPEN_CONNECT = 0x1e 2050 TCP_FASTOPEN_CONNECT = 0x1e
2051 TCP_FASTOPEN_KEY = 0x21
2052 TCP_FASTOPEN_NO_COOKIE = 0x22
1780 TCP_INFO = 0xb 2053 TCP_INFO = 0xb
1781 TCP_KEEPCNT = 0x6 2054 TCP_KEEPCNT = 0x6
1782 TCP_KEEPIDLE = 0x4 2055 TCP_KEEPIDLE = 0x4
@@ -1786,6 +2059,8 @@ const (
1786 TCP_MAXWIN = 0xffff 2059 TCP_MAXWIN = 0xffff
1787 TCP_MAX_WINSHIFT = 0xe 2060 TCP_MAX_WINSHIFT = 0xe
1788 TCP_MD5SIG = 0xe 2061 TCP_MD5SIG = 0xe
2062 TCP_MD5SIG_EXT = 0x20
2063 TCP_MD5SIG_FLAG_PREFIX = 0x1
1789 TCP_MD5SIG_MAXKEYLEN = 0x50 2064 TCP_MD5SIG_MAXKEYLEN = 0x50
1790 TCP_MSS = 0x200 2065 TCP_MSS = 0x200
1791 TCP_MSS_DEFAULT = 0x218 2066 TCP_MSS_DEFAULT = 0x218
@@ -1806,6 +2081,7 @@ const (
1806 TCP_THIN_DUPACK = 0x11 2081 TCP_THIN_DUPACK = 0x11
1807 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2082 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1808 TCP_TIMESTAMP = 0x18 2083 TCP_TIMESTAMP = 0x18
2084 TCP_ULP = 0x1f
1809 TCP_USER_TIMEOUT = 0x12 2085 TCP_USER_TIMEOUT = 0x12
1810 TCP_WINDOW_CLAMP = 0xa 2086 TCP_WINDOW_CLAMP = 0xa
1811 TCSAFLUSH = 0x2 2087 TCSAFLUSH = 0x2
@@ -1899,7 +2175,27 @@ const (
1899 TIOCSTOP = 0x2000746f 2175 TIOCSTOP = 0x2000746f
1900 TIOCSWINSZ = 0x80087467 2176 TIOCSWINSZ = 0x80087467
1901 TIOCVHANGUP = 0x5437 2177 TIOCVHANGUP = 0x5437
2178 TMPFS_MAGIC = 0x1021994
1902 TOSTOP = 0x400000 2179 TOSTOP = 0x400000
2180 TPACKET_ALIGNMENT = 0x10
2181 TPACKET_HDRLEN = 0x34
2182 TP_STATUS_AVAILABLE = 0x0
2183 TP_STATUS_BLK_TMO = 0x20
2184 TP_STATUS_COPY = 0x2
2185 TP_STATUS_CSUMNOTREADY = 0x8
2186 TP_STATUS_CSUM_VALID = 0x80
2187 TP_STATUS_KERNEL = 0x0
2188 TP_STATUS_LOSING = 0x4
2189 TP_STATUS_SENDING = 0x2
2190 TP_STATUS_SEND_REQUEST = 0x1
2191 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2192 TP_STATUS_TS_SOFTWARE = 0x20000000
2193 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2194 TP_STATUS_USER = 0x1
2195 TP_STATUS_VLAN_TPID_VALID = 0x40
2196 TP_STATUS_VLAN_VALID = 0x10
2197 TP_STATUS_WRONG_FORMAT = 0x4
2198 TRACEFS_MAGIC = 0x74726163
1903 TS_COMM_LEN = 0x20 2199 TS_COMM_LEN = 0x20
1904 TUNATTACHFILTER = 0x801054d5 2200 TUNATTACHFILTER = 0x801054d5
1905 TUNDETACHFILTER = 0x801054d6 2201 TUNDETACHFILTER = 0x801054d6
@@ -1911,6 +2207,7 @@ const (
1911 TUNGETVNETHDRSZ = 0x400454d7 2207 TUNGETVNETHDRSZ = 0x400454d7
1912 TUNGETVNETLE = 0x400454dd 2208 TUNGETVNETLE = 0x400454dd
1913 TUNSETDEBUG = 0x800454c9 2209 TUNSETDEBUG = 0x800454c9
2210 TUNSETFILTEREBPF = 0x400454e1
1914 TUNSETGROUP = 0x800454ce 2211 TUNSETGROUP = 0x800454ce
1915 TUNSETIFF = 0x800454ca 2212 TUNSETIFF = 0x800454ca
1916 TUNSETIFINDEX = 0x800454da 2213 TUNSETIFINDEX = 0x800454da
@@ -1921,13 +2218,32 @@ const (
1921 TUNSETPERSIST = 0x800454cb 2218 TUNSETPERSIST = 0x800454cb
1922 TUNSETQUEUE = 0x800454d9 2219 TUNSETQUEUE = 0x800454d9
1923 TUNSETSNDBUF = 0x800454d4 2220 TUNSETSNDBUF = 0x800454d4
2221 TUNSETSTEERINGEBPF = 0x400454e0
1924 TUNSETTXFILTER = 0x800454d1 2222 TUNSETTXFILTER = 0x800454d1
1925 TUNSETVNETBE = 0x800454de 2223 TUNSETVNETBE = 0x800454de
1926 TUNSETVNETHDRSZ = 0x800454d8 2224 TUNSETVNETHDRSZ = 0x800454d8
1927 TUNSETVNETLE = 0x800454dc 2225 TUNSETVNETLE = 0x800454dc
2226 UBI_IOCATT = 0x80186f40
2227 UBI_IOCDET = 0x80046f41
2228 UBI_IOCEBCH = 0x80044f02
2229 UBI_IOCEBER = 0x80044f01
2230 UBI_IOCEBISMAP = 0x40044f05
2231 UBI_IOCEBMAP = 0x80084f03
2232 UBI_IOCEBUNMAP = 0x80044f04
2233 UBI_IOCMKVOL = 0x80986f00
2234 UBI_IOCRMVOL = 0x80046f01
2235 UBI_IOCRNVOL = 0x91106f03
2236 UBI_IOCRSVOL = 0x800c6f02
2237 UBI_IOCSETVOLPROP = 0x80104f06
2238 UBI_IOCVOLCRBLK = 0x80804f07
2239 UBI_IOCVOLRMBLK = 0x20004f08
2240 UBI_IOCVOLUP = 0x80084f00
2241 UDF_SUPER_MAGIC = 0x15013346
1928 UMOUNT_NOFOLLOW = 0x8 2242 UMOUNT_NOFOLLOW = 0x8
2243 USBDEVICE_SUPER_MAGIC = 0x9fa2
1929 UTIME_NOW = 0x3fffffff 2244 UTIME_NOW = 0x3fffffff
1930 UTIME_OMIT = 0x3ffffffe 2245 UTIME_OMIT = 0x3ffffffe
2246 V9FS_MAGIC = 0x1021997
1931 VDISCARD = 0x10 2247 VDISCARD = 0x10
1932 VEOF = 0x4 2248 VEOF = 0x4
1933 VEOL = 0x6 2249 VEOL = 0x6
@@ -1969,6 +2285,86 @@ const (
1969 WDIOC_SETPRETIMEOUT = 0xc0045708 2285 WDIOC_SETPRETIMEOUT = 0xc0045708
1970 WDIOC_SETTIMEOUT = 0xc0045706 2286 WDIOC_SETTIMEOUT = 0xc0045706
1971 WEXITED = 0x4 2287 WEXITED = 0x4
2288 WIN_ACKMEDIACHANGE = 0xdb
2289 WIN_CHECKPOWERMODE1 = 0xe5
2290 WIN_CHECKPOWERMODE2 = 0x98
2291 WIN_DEVICE_RESET = 0x8
2292 WIN_DIAGNOSE = 0x90
2293 WIN_DOORLOCK = 0xde
2294 WIN_DOORUNLOCK = 0xdf
2295 WIN_DOWNLOAD_MICROCODE = 0x92
2296 WIN_FLUSH_CACHE = 0xe7
2297 WIN_FLUSH_CACHE_EXT = 0xea
2298 WIN_FORMAT = 0x50
2299 WIN_GETMEDIASTATUS = 0xda
2300 WIN_IDENTIFY = 0xec
2301 WIN_IDENTIFY_DMA = 0xee
2302 WIN_IDLEIMMEDIATE = 0xe1
2303 WIN_INIT = 0x60
2304 WIN_MEDIAEJECT = 0xed
2305 WIN_MULTREAD = 0xc4
2306 WIN_MULTREAD_EXT = 0x29
2307 WIN_MULTWRITE = 0xc5
2308 WIN_MULTWRITE_EXT = 0x39
2309 WIN_NOP = 0x0
2310 WIN_PACKETCMD = 0xa0
2311 WIN_PIDENTIFY = 0xa1
2312 WIN_POSTBOOT = 0xdc
2313 WIN_PREBOOT = 0xdd
2314 WIN_QUEUED_SERVICE = 0xa2
2315 WIN_READ = 0x20
2316 WIN_READDMA = 0xc8
2317 WIN_READDMA_EXT = 0x25
2318 WIN_READDMA_ONCE = 0xc9
2319 WIN_READDMA_QUEUED = 0xc7
2320 WIN_READDMA_QUEUED_EXT = 0x26
2321 WIN_READ_BUFFER = 0xe4
2322 WIN_READ_EXT = 0x24
2323 WIN_READ_LONG = 0x22
2324 WIN_READ_LONG_ONCE = 0x23
2325 WIN_READ_NATIVE_MAX = 0xf8
2326 WIN_READ_NATIVE_MAX_EXT = 0x27
2327 WIN_READ_ONCE = 0x21
2328 WIN_RECAL = 0x10
2329 WIN_RESTORE = 0x10
2330 WIN_SECURITY_DISABLE = 0xf6
2331 WIN_SECURITY_ERASE_PREPARE = 0xf3
2332 WIN_SECURITY_ERASE_UNIT = 0xf4
2333 WIN_SECURITY_FREEZE_LOCK = 0xf5
2334 WIN_SECURITY_SET_PASS = 0xf1
2335 WIN_SECURITY_UNLOCK = 0xf2
2336 WIN_SEEK = 0x70
2337 WIN_SETFEATURES = 0xef
2338 WIN_SETIDLE1 = 0xe3
2339 WIN_SETIDLE2 = 0x97
2340 WIN_SETMULT = 0xc6
2341 WIN_SET_MAX = 0xf9
2342 WIN_SET_MAX_EXT = 0x37
2343 WIN_SLEEPNOW1 = 0xe6
2344 WIN_SLEEPNOW2 = 0x99
2345 WIN_SMART = 0xb0
2346 WIN_SPECIFY = 0x91
2347 WIN_SRST = 0x8
2348 WIN_STANDBY = 0xe2
2349 WIN_STANDBY2 = 0x96
2350 WIN_STANDBYNOW1 = 0xe0
2351 WIN_STANDBYNOW2 = 0x94
2352 WIN_VERIFY = 0x40
2353 WIN_VERIFY_EXT = 0x42
2354 WIN_VERIFY_ONCE = 0x41
2355 WIN_WRITE = 0x30
2356 WIN_WRITEDMA = 0xca
2357 WIN_WRITEDMA_EXT = 0x35
2358 WIN_WRITEDMA_ONCE = 0xcb
2359 WIN_WRITEDMA_QUEUED = 0xcc
2360 WIN_WRITEDMA_QUEUED_EXT = 0x36
2361 WIN_WRITE_BUFFER = 0xe8
2362 WIN_WRITE_EXT = 0x34
2363 WIN_WRITE_LONG = 0x32
2364 WIN_WRITE_LONG_ONCE = 0x33
2365 WIN_WRITE_ONCE = 0x31
2366 WIN_WRITE_SAME = 0xe9
2367 WIN_WRITE_VERIFY = 0x3c
1972 WNOHANG = 0x1 2368 WNOHANG = 0x1
1973 WNOTHREAD = 0x20000000 2369 WNOTHREAD = 0x20000000
1974 WNOWAIT = 0x1000000 2370 WNOWAIT = 0x1000000
@@ -1978,7 +2374,29 @@ const (
1978 XATTR_CREATE = 0x1 2374 XATTR_CREATE = 0x1
1979 XATTR_REPLACE = 0x2 2375 XATTR_REPLACE = 0x2
1980 XCASE = 0x4000 2376 XCASE = 0x4000
2377 XDP_COPY = 0x2
2378 XDP_FLAGS_DRV_MODE = 0x4
2379 XDP_FLAGS_HW_MODE = 0x8
2380 XDP_FLAGS_MASK = 0xf
2381 XDP_FLAGS_MODES = 0xe
2382 XDP_FLAGS_SKB_MODE = 0x2
2383 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2384 XDP_MMAP_OFFSETS = 0x1
2385 XDP_PGOFF_RX_RING = 0x0
2386 XDP_PGOFF_TX_RING = 0x80000000
2387 XDP_RX_RING = 0x2
2388 XDP_SHARED_UMEM = 0x1
2389 XDP_STATISTICS = 0x7
2390 XDP_TX_RING = 0x3
2391 XDP_UMEM_COMPLETION_RING = 0x6
2392 XDP_UMEM_FILL_RING = 0x5
2393 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2394 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2395 XDP_UMEM_REG = 0x4
2396 XDP_ZEROCOPY = 0x4
2397 XENFS_SUPER_MAGIC = 0xabba1974
1981 XTABS = 0xc00 2398 XTABS = 0xc00
2399 ZSMALLOC_MAGIC = 0x58295829
1982) 2400)
1983 2401
1984// Errors 2402// Errors
@@ -2158,172 +2576,180 @@ const (
2158) 2576)
2159 2577
2160// Error table 2578// Error table
2161var errors = [...]string{ 2579var errorList = [...]struct {
2162 1: "operation not permitted", 2580 num syscall.Errno
2163 2: "no such file or directory", 2581 name string
2164 3: "no such process", 2582 desc string
2165 4: "interrupted system call", 2583}{
2166 5: "input/output error", 2584 {1, "EPERM", "operation not permitted"},
2167 6: "no such device or address", 2585 {2, "ENOENT", "no such file or directory"},
2168 7: "argument list too long", 2586 {3, "ESRCH", "no such process"},
2169 8: "exec format error", 2587 {4, "EINTR", "interrupted system call"},
2170 9: "bad file descriptor", 2588 {5, "EIO", "input/output error"},
2171 10: "no child processes", 2589 {6, "ENXIO", "no such device or address"},
2172 11: "resource temporarily unavailable", 2590 {7, "E2BIG", "argument list too long"},
2173 12: "cannot allocate memory", 2591 {8, "ENOEXEC", "exec format error"},
2174 13: "permission denied", 2592 {9, "EBADF", "bad file descriptor"},
2175 14: "bad address", 2593 {10, "ECHILD", "no child processes"},
2176 15: "block device required", 2594 {11, "EAGAIN", "resource temporarily unavailable"},
2177 16: "device or resource busy", 2595 {12, "ENOMEM", "cannot allocate memory"},
2178 17: "file exists", 2596 {13, "EACCES", "permission denied"},
2179 18: "invalid cross-device link", 2597 {14, "EFAULT", "bad address"},
2180 19: "no such device", 2598 {15, "ENOTBLK", "block device required"},
2181 20: "not a directory", 2599 {16, "EBUSY", "device or resource busy"},
2182 21: "is a directory", 2600 {17, "EEXIST", "file exists"},
2183 22: "invalid argument", 2601 {18, "EXDEV", "invalid cross-device link"},
2184 23: "too many open files in system", 2602 {19, "ENODEV", "no such device"},
2185 24: "too many open files", 2603 {20, "ENOTDIR", "not a directory"},
2186 25: "inappropriate ioctl for device", 2604 {21, "EISDIR", "is a directory"},
2187 26: "text file busy", 2605 {22, "EINVAL", "invalid argument"},
2188 27: "file too large", 2606 {23, "ENFILE", "too many open files in system"},
2189 28: "no space left on device", 2607 {24, "EMFILE", "too many open files"},
2190 29: "illegal seek", 2608 {25, "ENOTTY", "inappropriate ioctl for device"},
2191 30: "read-only file system", 2609 {26, "ETXTBSY", "text file busy"},
2192 31: "too many links", 2610 {27, "EFBIG", "file too large"},
2193 32: "broken pipe", 2611 {28, "ENOSPC", "no space left on device"},
2194 33: "numerical argument out of domain", 2612 {29, "ESPIPE", "illegal seek"},
2195 34: "numerical result out of range", 2613 {30, "EROFS", "read-only file system"},
2196 35: "resource deadlock avoided", 2614 {31, "EMLINK", "too many links"},
2197 36: "file name too long", 2615 {32, "EPIPE", "broken pipe"},
2198 37: "no locks available", 2616 {33, "EDOM", "numerical argument out of domain"},
2199 38: "function not implemented", 2617 {34, "ERANGE", "numerical result out of range"},
2200 39: "directory not empty", 2618 {35, "EDEADLK", "resource deadlock avoided"},
2201 40: "too many levels of symbolic links", 2619 {36, "ENAMETOOLONG", "file name too long"},
2202 42: "no message of desired type", 2620 {37, "ENOLCK", "no locks available"},
2203 43: "identifier removed", 2621 {38, "ENOSYS", "function not implemented"},
2204 44: "channel number out of range", 2622 {39, "ENOTEMPTY", "directory not empty"},
2205 45: "level 2 not synchronized", 2623 {40, "ELOOP", "too many levels of symbolic links"},
2206 46: "level 3 halted", 2624 {42, "ENOMSG", "no message of desired type"},
2207 47: "level 3 reset", 2625 {43, "EIDRM", "identifier removed"},
2208 48: "link number out of range", 2626 {44, "ECHRNG", "channel number out of range"},
2209 49: "protocol driver not attached", 2627 {45, "EL2NSYNC", "level 2 not synchronized"},
2210 50: "no CSI structure available", 2628 {46, "EL3HLT", "level 3 halted"},
2211 51: "level 2 halted", 2629 {47, "EL3RST", "level 3 reset"},
2212 52: "invalid exchange", 2630 {48, "ELNRNG", "link number out of range"},
2213 53: "invalid request descriptor", 2631 {49, "EUNATCH", "protocol driver not attached"},
2214 54: "exchange full", 2632 {50, "ENOCSI", "no CSI structure available"},
2215 55: "no anode", 2633 {51, "EL2HLT", "level 2 halted"},
2216 56: "invalid request code", 2634 {52, "EBADE", "invalid exchange"},
2217 57: "invalid slot", 2635 {53, "EBADR", "invalid request descriptor"},
2218 58: "file locking deadlock error", 2636 {54, "EXFULL", "exchange full"},
2219 59: "bad font file format", 2637 {55, "ENOANO", "no anode"},
2220 60: "device not a stream", 2638 {56, "EBADRQC", "invalid request code"},
2221 61: "no data available", 2639 {57, "EBADSLT", "invalid slot"},
2222 62: "timer expired", 2640 {58, "EDEADLOCK", "file locking deadlock error"},
2223 63: "out of streams resources", 2641 {59, "EBFONT", "bad font file format"},
2224 64: "machine is not on the network", 2642 {60, "ENOSTR", "device not a stream"},
2225 65: "package not installed", 2643 {61, "ENODATA", "no data available"},
2226 66: "object is remote", 2644 {62, "ETIME", "timer expired"},
2227 67: "link has been severed", 2645 {63, "ENOSR", "out of streams resources"},
2228 68: "advertise error", 2646 {64, "ENONET", "machine is not on the network"},
2229 69: "srmount error", 2647 {65, "ENOPKG", "package not installed"},
2230 70: "communication error on send", 2648 {66, "EREMOTE", "object is remote"},
2231 71: "protocol error", 2649 {67, "ENOLINK", "link has been severed"},
2232 72: "multihop attempted", 2650 {68, "EADV", "advertise error"},
2233 73: "RFS specific error", 2651 {69, "ESRMNT", "srmount error"},
2234 74: "bad message", 2652 {70, "ECOMM", "communication error on send"},
2235 75: "value too large for defined data type", 2653 {71, "EPROTO", "protocol error"},
2236 76: "name not unique on network", 2654 {72, "EMULTIHOP", "multihop attempted"},
2237 77: "file descriptor in bad state", 2655 {73, "EDOTDOT", "RFS specific error"},
2238 78: "remote address changed", 2656 {74, "EBADMSG", "bad message"},
2239 79: "can not access a needed shared library", 2657 {75, "EOVERFLOW", "value too large for defined data type"},
2240 80: "accessing a corrupted shared library", 2658 {76, "ENOTUNIQ", "name not unique on network"},
2241 81: ".lib section in a.out corrupted", 2659 {77, "EBADFD", "file descriptor in bad state"},
2242 82: "attempting to link in too many shared libraries", 2660 {78, "EREMCHG", "remote address changed"},
2243 83: "cannot exec a shared library directly", 2661 {79, "ELIBACC", "can not access a needed shared library"},
2244 84: "invalid or incomplete multibyte or wide character", 2662 {80, "ELIBBAD", "accessing a corrupted shared library"},
2245 85: "interrupted system call should be restarted", 2663 {81, "ELIBSCN", ".lib section in a.out corrupted"},
2246 86: "streams pipe error", 2664 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
2247 87: "too many users", 2665 {83, "ELIBEXEC", "cannot exec a shared library directly"},
2248 88: "socket operation on non-socket", 2666 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2249 89: "destination address required", 2667 {85, "ERESTART", "interrupted system call should be restarted"},
2250 90: "message too long", 2668 {86, "ESTRPIPE", "streams pipe error"},
2251 91: "protocol wrong type for socket", 2669 {87, "EUSERS", "too many users"},
2252 92: "protocol not available", 2670 {88, "ENOTSOCK", "socket operation on non-socket"},
2253 93: "protocol not supported", 2671 {89, "EDESTADDRREQ", "destination address required"},
2254 94: "socket type not supported", 2672 {90, "EMSGSIZE", "message too long"},
2255 95: "operation not supported", 2673 {91, "EPROTOTYPE", "protocol wrong type for socket"},
2256 96: "protocol family not supported", 2674 {92, "ENOPROTOOPT", "protocol not available"},
2257 97: "address family not supported by protocol", 2675 {93, "EPROTONOSUPPORT", "protocol not supported"},
2258 98: "address already in use", 2676 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
2259 99: "cannot assign requested address", 2677 {95, "ENOTSUP", "operation not supported"},
2260 100: "network is down", 2678 {96, "EPFNOSUPPORT", "protocol family not supported"},
2261 101: "network is unreachable", 2679 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
2262 102: "network dropped connection on reset", 2680 {98, "EADDRINUSE", "address already in use"},
2263 103: "software caused connection abort", 2681 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
2264 104: "connection reset by peer", 2682 {100, "ENETDOWN", "network is down"},
2265 105: "no buffer space available", 2683 {101, "ENETUNREACH", "network is unreachable"},
2266 106: "transport endpoint is already connected", 2684 {102, "ENETRESET", "network dropped connection on reset"},
2267 107: "transport endpoint is not connected", 2685 {103, "ECONNABORTED", "software caused connection abort"},
2268 108: "cannot send after transport endpoint shutdown", 2686 {104, "ECONNRESET", "connection reset by peer"},
2269 109: "too many references: cannot splice", 2687 {105, "ENOBUFS", "no buffer space available"},
2270 110: "connection timed out", 2688 {106, "EISCONN", "transport endpoint is already connected"},
2271 111: "connection refused", 2689 {107, "ENOTCONN", "transport endpoint is not connected"},
2272 112: "host is down", 2690 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2273 113: "no route to host", 2691 {109, "ETOOMANYREFS", "too many references: cannot splice"},
2274 114: "operation already in progress", 2692 {110, "ETIMEDOUT", "connection timed out"},
2275 115: "operation now in progress", 2693 {111, "ECONNREFUSED", "connection refused"},
2276 116: "stale file handle", 2694 {112, "EHOSTDOWN", "host is down"},
2277 117: "structure needs cleaning", 2695 {113, "EHOSTUNREACH", "no route to host"},
2278 118: "not a XENIX named type file", 2696 {114, "EALREADY", "operation already in progress"},
2279 119: "no XENIX semaphores available", 2697 {115, "EINPROGRESS", "operation now in progress"},
2280 120: "is a named type file", 2698 {116, "ESTALE", "stale file handle"},
2281 121: "remote I/O error", 2699 {117, "EUCLEAN", "structure needs cleaning"},
2282 122: "disk quota exceeded", 2700 {118, "ENOTNAM", "not a XENIX named type file"},
2283 123: "no medium found", 2701 {119, "ENAVAIL", "no XENIX semaphores available"},
2284 124: "wrong medium type", 2702 {120, "EISNAM", "is a named type file"},
2285 125: "operation canceled", 2703 {121, "EREMOTEIO", "remote I/O error"},
2286 126: "required key not available", 2704 {122, "EDQUOT", "disk quota exceeded"},
2287 127: "key has expired", 2705 {123, "ENOMEDIUM", "no medium found"},
2288 128: "key has been revoked", 2706 {124, "EMEDIUMTYPE", "wrong medium type"},
2289 129: "key was rejected by service", 2707 {125, "ECANCELED", "operation canceled"},
2290 130: "owner died", 2708 {126, "ENOKEY", "required key not available"},
2291 131: "state not recoverable", 2709 {127, "EKEYEXPIRED", "key has expired"},
2292 132: "operation not possible due to RF-kill", 2710 {128, "EKEYREVOKED", "key has been revoked"},
2293 133: "memory page has hardware error", 2711 {129, "EKEYREJECTED", "key was rejected by service"},
2712 {130, "EOWNERDEAD", "owner died"},
2713 {131, "ENOTRECOVERABLE", "state not recoverable"},
2714 {132, "ERFKILL", "operation not possible due to RF-kill"},
2715 {133, "EHWPOISON", "memory page has hardware error"},
2294} 2716}
2295 2717
2296// Signal table 2718// Signal table
2297var signals = [...]string{ 2719var signalList = [...]struct {
2298 1: "hangup", 2720 num syscall.Signal
2299 2: "interrupt", 2721 name string
2300 3: "quit", 2722 desc string
2301 4: "illegal instruction", 2723}{
2302 5: "trace/breakpoint trap", 2724 {1, "SIGHUP", "hangup"},
2303 6: "aborted", 2725 {2, "SIGINT", "interrupt"},
2304 7: "bus error", 2726 {3, "SIGQUIT", "quit"},
2305 8: "floating point exception", 2727 {4, "SIGILL", "illegal instruction"},
2306 9: "killed", 2728 {5, "SIGTRAP", "trace/breakpoint trap"},
2307 10: "user defined signal 1", 2729 {6, "SIGABRT", "aborted"},
2308 11: "segmentation fault", 2730 {7, "SIGBUS", "bus error"},
2309 12: "user defined signal 2", 2731 {8, "SIGFPE", "floating point exception"},
2310 13: "broken pipe", 2732 {9, "SIGKILL", "killed"},
2311 14: "alarm clock", 2733 {10, "SIGUSR1", "user defined signal 1"},
2312 15: "terminated", 2734 {11, "SIGSEGV", "segmentation fault"},
2313 16: "stack fault", 2735 {12, "SIGUSR2", "user defined signal 2"},
2314 17: "child exited", 2736 {13, "SIGPIPE", "broken pipe"},
2315 18: "continued", 2737 {14, "SIGALRM", "alarm clock"},
2316 19: "stopped (signal)", 2738 {15, "SIGTERM", "terminated"},
2317 20: "stopped", 2739 {16, "SIGSTKFLT", "stack fault"},
2318 21: "stopped (tty input)", 2740 {17, "SIGCHLD", "child exited"},
2319 22: "stopped (tty output)", 2741 {18, "SIGCONT", "continued"},
2320 23: "urgent I/O condition", 2742 {19, "SIGSTOP", "stopped (signal)"},
2321 24: "CPU time limit exceeded", 2743 {20, "SIGTSTP", "stopped"},
2322 25: "file size limit exceeded", 2744 {21, "SIGTTIN", "stopped (tty input)"},
2323 26: "virtual timer expired", 2745 {22, "SIGTTOU", "stopped (tty output)"},
2324 27: "profiling timer expired", 2746 {23, "SIGURG", "urgent I/O condition"},
2325 28: "window changed", 2747 {24, "SIGXCPU", "CPU time limit exceeded"},
2326 29: "I/O possible", 2748 {25, "SIGXFSZ", "file size limit exceeded"},
2327 30: "power failure", 2749 {26, "SIGVTALRM", "virtual timer expired"},
2328 31: "bad system call", 2750 {27, "SIGPROF", "profiling timer expired"},
2751 {28, "SIGWINCH", "window changed"},
2752 {29, "SIGIO", "I/O possible"},
2753 {30, "SIGPWR", "power failure"},
2754 {31, "SIGSYS", "bad system call"},
2329} 2755}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
new file mode 100644
index 0000000..9e9472b
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
@@ -0,0 +1,2682 @@
1// mkerrors.sh -Wall -Werror -static -I/tmp/include
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build riscv64,linux
5
6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8
9package unix
10
11import "syscall"
12
13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
19 AF_ALG = 0x26
20 AF_APPLETALK = 0x5
21 AF_ASH = 0x12
22 AF_ATMPVC = 0x8
23 AF_ATMSVC = 0x14
24 AF_AX25 = 0x3
25 AF_BLUETOOTH = 0x1f
26 AF_BRIDGE = 0x7
27 AF_CAIF = 0x25
28 AF_CAN = 0x1d
29 AF_DECnet = 0xc
30 AF_ECONET = 0x13
31 AF_FILE = 0x1
32 AF_IB = 0x1b
33 AF_IEEE802154 = 0x24
34 AF_INET = 0x2
35 AF_INET6 = 0xa
36 AF_IPX = 0x4
37 AF_IRDA = 0x17
38 AF_ISDN = 0x22
39 AF_IUCV = 0x20
40 AF_KCM = 0x29
41 AF_KEY = 0xf
42 AF_LLC = 0x1a
43 AF_LOCAL = 0x1
44 AF_MAX = 0x2c
45 AF_MPLS = 0x1c
46 AF_NETBEUI = 0xd
47 AF_NETLINK = 0x10
48 AF_NETROM = 0x6
49 AF_NFC = 0x27
50 AF_PACKET = 0x11
51 AF_PHONET = 0x23
52 AF_PPPOX = 0x18
53 AF_QIPCRTR = 0x2a
54 AF_RDS = 0x15
55 AF_ROSE = 0xb
56 AF_ROUTE = 0x10
57 AF_RXRPC = 0x21
58 AF_SECURITY = 0xe
59 AF_SMC = 0x2b
60 AF_SNA = 0x16
61 AF_TIPC = 0x1e
62 AF_UNIX = 0x1
63 AF_UNSPEC = 0x0
64 AF_VSOCK = 0x28
65 AF_WANPIPE = 0x19
66 AF_X25 = 0x9
67 AF_XDP = 0x2c
68 ALG_OP_DECRYPT = 0x0
69 ALG_OP_ENCRYPT = 0x1
70 ALG_SET_AEAD_ASSOCLEN = 0x4
71 ALG_SET_AEAD_AUTHSIZE = 0x5
72 ALG_SET_IV = 0x2
73 ALG_SET_KEY = 0x1
74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
76 ARPHRD_6LOWPAN = 0x339
77 ARPHRD_ADAPT = 0x108
78 ARPHRD_APPLETLK = 0x8
79 ARPHRD_ARCNET = 0x7
80 ARPHRD_ASH = 0x30d
81 ARPHRD_ATM = 0x13
82 ARPHRD_AX25 = 0x3
83 ARPHRD_BIF = 0x307
84 ARPHRD_CAIF = 0x336
85 ARPHRD_CAN = 0x118
86 ARPHRD_CHAOS = 0x5
87 ARPHRD_CISCO = 0x201
88 ARPHRD_CSLIP = 0x101
89 ARPHRD_CSLIP6 = 0x103
90 ARPHRD_DDCMP = 0x205
91 ARPHRD_DLCI = 0xf
92 ARPHRD_ECONET = 0x30e
93 ARPHRD_EETHER = 0x2
94 ARPHRD_ETHER = 0x1
95 ARPHRD_EUI64 = 0x1b
96 ARPHRD_FCAL = 0x311
97 ARPHRD_FCFABRIC = 0x313
98 ARPHRD_FCPL = 0x312
99 ARPHRD_FCPP = 0x310
100 ARPHRD_FDDI = 0x306
101 ARPHRD_FRAD = 0x302
102 ARPHRD_HDLC = 0x201
103 ARPHRD_HIPPI = 0x30c
104 ARPHRD_HWX25 = 0x110
105 ARPHRD_IEEE1394 = 0x18
106 ARPHRD_IEEE802 = 0x6
107 ARPHRD_IEEE80211 = 0x321
108 ARPHRD_IEEE80211_PRISM = 0x322
109 ARPHRD_IEEE80211_RADIOTAP = 0x323
110 ARPHRD_IEEE802154 = 0x324
111 ARPHRD_IEEE802154_MONITOR = 0x325
112 ARPHRD_IEEE802_TR = 0x320
113 ARPHRD_INFINIBAND = 0x20
114 ARPHRD_IP6GRE = 0x337
115 ARPHRD_IPDDP = 0x309
116 ARPHRD_IPGRE = 0x30a
117 ARPHRD_IRDA = 0x30f
118 ARPHRD_LAPB = 0x204
119 ARPHRD_LOCALTLK = 0x305
120 ARPHRD_LOOPBACK = 0x304
121 ARPHRD_METRICOM = 0x17
122 ARPHRD_NETLINK = 0x338
123 ARPHRD_NETROM = 0x0
124 ARPHRD_NONE = 0xfffe
125 ARPHRD_PHONET = 0x334
126 ARPHRD_PHONET_PIPE = 0x335
127 ARPHRD_PIMREG = 0x30b
128 ARPHRD_PPP = 0x200
129 ARPHRD_PRONET = 0x4
130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
132 ARPHRD_ROSE = 0x10e
133 ARPHRD_RSRVD = 0x104
134 ARPHRD_SIT = 0x308
135 ARPHRD_SKIP = 0x303
136 ARPHRD_SLIP = 0x100
137 ARPHRD_SLIP6 = 0x102
138 ARPHRD_TUNNEL = 0x300
139 ARPHRD_TUNNEL6 = 0x301
140 ARPHRD_VOID = 0xffff
141 ARPHRD_VSOCKMON = 0x33a
142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
144 B0 = 0x0
145 B1000000 = 0x1008
146 B110 = 0x3
147 B115200 = 0x1002
148 B1152000 = 0x1009
149 B1200 = 0x9
150 B134 = 0x4
151 B150 = 0x5
152 B1500000 = 0x100a
153 B1800 = 0xa
154 B19200 = 0xe
155 B200 = 0x6
156 B2000000 = 0x100b
157 B230400 = 0x1003
158 B2400 = 0xb
159 B2500000 = 0x100c
160 B300 = 0x7
161 B3000000 = 0x100d
162 B3500000 = 0x100e
163 B38400 = 0xf
164 B4000000 = 0x100f
165 B460800 = 0x1004
166 B4800 = 0xc
167 B50 = 0x1
168 B500000 = 0x1005
169 B57600 = 0x1001
170 B576000 = 0x1006
171 B600 = 0x8
172 B75 = 0x2
173 B921600 = 0x1007
174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
178 BLKBSZGET = 0x80081270
179 BLKBSZSET = 0x40081271
180 BLKFLSBUF = 0x1261
181 BLKFRAGET = 0x1265
182 BLKFRASET = 0x1264
183 BLKGETSIZE = 0x1260
184 BLKGETSIZE64 = 0x80081272
185 BLKPBSZGET = 0x127b
186 BLKRAGET = 0x1263
187 BLKRASET = 0x1262
188 BLKROGET = 0x125e
189 BLKROSET = 0x125d
190 BLKRRPART = 0x125f
191 BLKSECTGET = 0x1267
192 BLKSECTSET = 0x1266
193 BLKSSZGET = 0x1268
194 BOTHER = 0x1000
195 BPF_A = 0x10
196 BPF_ABS = 0x20
197 BPF_ADD = 0x0
198 BPF_ALU = 0x4
199 BPF_AND = 0x50
200 BPF_B = 0x10
201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
203 BPF_H = 0x8
204 BPF_IMM = 0x0
205 BPF_IND = 0x40
206 BPF_JA = 0x0
207 BPF_JEQ = 0x10
208 BPF_JGE = 0x30
209 BPF_JGT = 0x20
210 BPF_JMP = 0x5
211 BPF_JSET = 0x40
212 BPF_K = 0x0
213 BPF_LD = 0x0
214 BPF_LDX = 0x1
215 BPF_LEN = 0x80
216 BPF_LL_OFF = -0x200000
217 BPF_LSH = 0x60
218 BPF_MAJOR_VERSION = 0x1
219 BPF_MAXINSNS = 0x1000
220 BPF_MEM = 0x60
221 BPF_MEMWORDS = 0x10
222 BPF_MINOR_VERSION = 0x1
223 BPF_MISC = 0x7
224 BPF_MOD = 0x90
225 BPF_MSH = 0xa0
226 BPF_MUL = 0x20
227 BPF_NEG = 0x80
228 BPF_NET_OFF = -0x100000
229 BPF_OR = 0x40
230 BPF_RET = 0x6
231 BPF_RSH = 0x70
232 BPF_ST = 0x2
233 BPF_STX = 0x3
234 BPF_SUB = 0x10
235 BPF_TAX = 0x0
236 BPF_TXA = 0x80
237 BPF_W = 0x0
238 BPF_X = 0x8
239 BPF_XOR = 0xa0
240 BRKINT = 0x2
241 BS0 = 0x0
242 BS1 = 0x2000
243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
246 CAN_BCM = 0x2
247 CAN_EFF_FLAG = 0x80000000
248 CAN_EFF_ID_BITS = 0x1d
249 CAN_EFF_MASK = 0x1fffffff
250 CAN_ERR_FLAG = 0x20000000
251 CAN_ERR_MASK = 0x1fffffff
252 CAN_INV_FILTER = 0x20000000
253 CAN_ISOTP = 0x6
254 CAN_MAX_DLC = 0x8
255 CAN_MAX_DLEN = 0x8
256 CAN_MCNET = 0x5
257 CAN_MTU = 0x10
258 CAN_NPROTO = 0x7
259 CAN_RAW = 0x1
260 CAN_RAW_FILTER_MAX = 0x200
261 CAN_RTR_FLAG = 0x40000000
262 CAN_SFF_ID_BITS = 0xb
263 CAN_SFF_MASK = 0x7ff
264 CAN_TP16 = 0x3
265 CAN_TP20 = 0x4
266 CBAUD = 0x100f
267 CBAUDEX = 0x1000
268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
271 CIBAUD = 0x100f0000
272 CLOCAL = 0x800
273 CLOCK_BOOTTIME = 0x7
274 CLOCK_BOOTTIME_ALARM = 0x9
275 CLOCK_DEFAULT = 0x0
276 CLOCK_EXT = 0x1
277 CLOCK_INT = 0x2
278 CLOCK_MONOTONIC = 0x1
279 CLOCK_MONOTONIC_COARSE = 0x6
280 CLOCK_MONOTONIC_RAW = 0x4
281 CLOCK_PROCESS_CPUTIME_ID = 0x2
282 CLOCK_REALTIME = 0x0
283 CLOCK_REALTIME_ALARM = 0x8
284 CLOCK_REALTIME_COARSE = 0x5
285 CLOCK_TAI = 0xb
286 CLOCK_THREAD_CPUTIME_ID = 0x3
287 CLOCK_TXFROMRX = 0x4
288 CLOCK_TXINT = 0x3
289 CLONE_CHILD_CLEARTID = 0x200000
290 CLONE_CHILD_SETTID = 0x1000000
291 CLONE_DETACHED = 0x400000
292 CLONE_FILES = 0x400
293 CLONE_FS = 0x200
294 CLONE_IO = 0x80000000
295 CLONE_NEWCGROUP = 0x2000000
296 CLONE_NEWIPC = 0x8000000
297 CLONE_NEWNET = 0x40000000
298 CLONE_NEWNS = 0x20000
299 CLONE_NEWPID = 0x20000000
300 CLONE_NEWUSER = 0x10000000
301 CLONE_NEWUTS = 0x4000000
302 CLONE_PARENT = 0x8000
303 CLONE_PARENT_SETTID = 0x100000
304 CLONE_PTRACE = 0x2000
305 CLONE_SETTLS = 0x80000
306 CLONE_SIGHAND = 0x800
307 CLONE_SYSVSEM = 0x40000
308 CLONE_THREAD = 0x10000
309 CLONE_UNTRACED = 0x800000
310 CLONE_VFORK = 0x4000
311 CLONE_VM = 0x100
312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
314 CR0 = 0x0
315 CR1 = 0x200
316 CR2 = 0x400
317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
319 CRDLY = 0x600
320 CREAD = 0x80
321 CRTSCTS = 0x80000000
322 CS5 = 0x0
323 CS6 = 0x10
324 CS7 = 0x20
325 CS8 = 0x30
326 CSIGNAL = 0xff
327 CSIZE = 0x30
328 CSTART = 0x11
329 CSTATUS = 0x0
330 CSTOP = 0x13
331 CSTOPB = 0x40
332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
336 DT_BLK = 0x6
337 DT_CHR = 0x2
338 DT_DIR = 0x4
339 DT_FIFO = 0x1
340 DT_LNK = 0xa
341 DT_REG = 0x8
342 DT_SOCK = 0xc
343 DT_UNKNOWN = 0x0
344 DT_WHT = 0xe
345 ECHO = 0x8
346 ECHOCTL = 0x200
347 ECHOE = 0x10
348 ECHOK = 0x20
349 ECHOKE = 0x800
350 ECHONL = 0x40
351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
353 EFD_CLOEXEC = 0x80000
354 EFD_NONBLOCK = 0x800
355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
358 ENCODING_DEFAULT = 0x0
359 ENCODING_FM_MARK = 0x3
360 ENCODING_FM_SPACE = 0x4
361 ENCODING_MANCHESTER = 0x5
362 ENCODING_NRZ = 0x1
363 ENCODING_NRZI = 0x2
364 EPOLLERR = 0x8
365 EPOLLET = 0x80000000
366 EPOLLEXCLUSIVE = 0x10000000
367 EPOLLHUP = 0x10
368 EPOLLIN = 0x1
369 EPOLLMSG = 0x400
370 EPOLLONESHOT = 0x40000000
371 EPOLLOUT = 0x4
372 EPOLLPRI = 0x2
373 EPOLLRDBAND = 0x80
374 EPOLLRDHUP = 0x2000
375 EPOLLRDNORM = 0x40
376 EPOLLWAKEUP = 0x20000000
377 EPOLLWRBAND = 0x200
378 EPOLLWRNORM = 0x100
379 EPOLL_CLOEXEC = 0x80000
380 EPOLL_CTL_ADD = 0x1
381 EPOLL_CTL_DEL = 0x2
382 EPOLL_CTL_MOD = 0x3
383 ETH_P_1588 = 0x88f7
384 ETH_P_8021AD = 0x88a8
385 ETH_P_8021AH = 0x88e7
386 ETH_P_8021Q = 0x8100
387 ETH_P_80221 = 0x8917
388 ETH_P_802_2 = 0x4
389 ETH_P_802_3 = 0x1
390 ETH_P_802_3_MIN = 0x600
391 ETH_P_802_EX1 = 0x88b5
392 ETH_P_AARP = 0x80f3
393 ETH_P_AF_IUCV = 0xfbfb
394 ETH_P_ALL = 0x3
395 ETH_P_AOE = 0x88a2
396 ETH_P_ARCNET = 0x1a
397 ETH_P_ARP = 0x806
398 ETH_P_ATALK = 0x809b
399 ETH_P_ATMFATE = 0x8884
400 ETH_P_ATMMPOA = 0x884c
401 ETH_P_AX25 = 0x2
402 ETH_P_BATMAN = 0x4305
403 ETH_P_BPQ = 0x8ff
404 ETH_P_CAIF = 0xf7
405 ETH_P_CAN = 0xc
406 ETH_P_CANFD = 0xd
407 ETH_P_CONTROL = 0x16
408 ETH_P_CUST = 0x6006
409 ETH_P_DDCMP = 0x6
410 ETH_P_DEC = 0x6000
411 ETH_P_DIAG = 0x6005
412 ETH_P_DNA_DL = 0x6001
413 ETH_P_DNA_RC = 0x6002
414 ETH_P_DNA_RT = 0x6003
415 ETH_P_DSA = 0x1b
416 ETH_P_ECONET = 0x18
417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
420 ETH_P_FCOE = 0x8906
421 ETH_P_FIP = 0x8914
422 ETH_P_HDLC = 0x19
423 ETH_P_HSR = 0x892f
424 ETH_P_IBOE = 0x8915
425 ETH_P_IEEE802154 = 0xf6
426 ETH_P_IEEEPUP = 0xa00
427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
429 ETH_P_IP = 0x800
430 ETH_P_IPV6 = 0x86dd
431 ETH_P_IPX = 0x8137
432 ETH_P_IRDA = 0x17
433 ETH_P_LAT = 0x6004
434 ETH_P_LINK_CTL = 0x886c
435 ETH_P_LOCALTALK = 0x9
436 ETH_P_LOOP = 0x60
437 ETH_P_LOOPBACK = 0x9000
438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
440 ETH_P_MOBITEX = 0x15
441 ETH_P_MPLS_MC = 0x8848
442 ETH_P_MPLS_UC = 0x8847
443 ETH_P_MVRP = 0x88f5
444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
446 ETH_P_PAE = 0x888e
447 ETH_P_PAUSE = 0x8808
448 ETH_P_PHONET = 0xf5
449 ETH_P_PPPTALK = 0x10
450 ETH_P_PPP_DISC = 0x8863
451 ETH_P_PPP_MP = 0x8
452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
454 ETH_P_PRP = 0x88fb
455 ETH_P_PUP = 0x200
456 ETH_P_PUPAT = 0x201
457 ETH_P_QINQ1 = 0x9100
458 ETH_P_QINQ2 = 0x9200
459 ETH_P_QINQ3 = 0x9300
460 ETH_P_RARP = 0x8035
461 ETH_P_SCA = 0x6007
462 ETH_P_SLOW = 0x8809
463 ETH_P_SNAP = 0x5
464 ETH_P_TDLS = 0x890d
465 ETH_P_TEB = 0x6558
466 ETH_P_TIPC = 0x88ca
467 ETH_P_TRAILER = 0x1c
468 ETH_P_TR_802_2 = 0x11
469 ETH_P_TSN = 0x22f0
470 ETH_P_WAN_PPP = 0x7
471 ETH_P_WCCP = 0x883e
472 ETH_P_X25 = 0x805
473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
478 EXTA = 0xe
479 EXTB = 0xf
480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
482 FALLOC_FL_COLLAPSE_RANGE = 0x8
483 FALLOC_FL_INSERT_RANGE = 0x20
484 FALLOC_FL_KEEP_SIZE = 0x1
485 FALLOC_FL_NO_HIDE_STALE = 0x4
486 FALLOC_FL_PUNCH_HOLE = 0x2
487 FALLOC_FL_UNSHARE_RANGE = 0x40
488 FALLOC_FL_ZERO_RANGE = 0x10
489 FD_CLOEXEC = 0x1
490 FD_SETSIZE = 0x400
491 FF0 = 0x0
492 FF1 = 0x8000
493 FFDLY = 0x8000
494 FLUSHO = 0x1000
495 FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
496 FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
497 FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
498 FS_ENCRYPTION_MODE_AES_256_CTS = 0x4
499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
504 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
506 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
507 FS_KEY_DESCRIPTOR_SIZE = 0x8
508 FS_KEY_DESC_PREFIX = "fscrypt:"
509 FS_KEY_DESC_PREFIX_SIZE = 0x8
510 FS_MAX_KEY_SIZE = 0x40
511 FS_POLICY_FLAGS_PAD_16 = 0x2
512 FS_POLICY_FLAGS_PAD_32 = 0x3
513 FS_POLICY_FLAGS_PAD_4 = 0x0
514 FS_POLICY_FLAGS_PAD_8 = 0x1
515 FS_POLICY_FLAGS_PAD_MASK = 0x3
516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
519 F_DUPFD = 0x0
520 F_DUPFD_CLOEXEC = 0x406
521 F_EXLCK = 0x4
522 F_GETFD = 0x1
523 F_GETFL = 0x3
524 F_GETLEASE = 0x401
525 F_GETLK = 0x5
526 F_GETLK64 = 0x5
527 F_GETOWN = 0x9
528 F_GETOWN_EX = 0x10
529 F_GETPIPE_SZ = 0x408
530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
534 F_LOCK = 0x1
535 F_NOTIFY = 0x402
536 F_OFD_GETLK = 0x24
537 F_OFD_SETLK = 0x25
538 F_OFD_SETLKW = 0x26
539 F_OK = 0x0
540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
545 F_SETFD = 0x2
546 F_SETFL = 0x4
547 F_SETLEASE = 0x400
548 F_SETLK = 0x6
549 F_SETLK64 = 0x6
550 F_SETLKW = 0x7
551 F_SETLKW64 = 0x7
552 F_SETOWN = 0x8
553 F_SETOWN_EX = 0xf
554 F_SETPIPE_SZ = 0x407
555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
558 F_SHLCK = 0x8
559 F_TEST = 0x3
560 F_TLOCK = 0x2
561 F_ULOCK = 0x0
562 F_UNLCK = 0x2
563 F_WRLCK = 0x1
564 GENL_ADMIN_PERM = 0x1
565 GENL_CMD_CAP_DO = 0x2
566 GENL_CMD_CAP_DUMP = 0x4
567 GENL_CMD_CAP_HASPOL = 0x8
568 GENL_HDRLEN = 0x4
569 GENL_ID_CTRL = 0x10
570 GENL_ID_PMCRAID = 0x12
571 GENL_ID_VFS_DQUOT = 0x11
572 GENL_MAX_ID = 0x3ff
573 GENL_MIN_ID = 0x10
574 GENL_NAMSIZ = 0x10
575 GENL_START_ALLOC = 0x13
576 GENL_UNS_ADMIN_PERM = 0x10
577 GRND_NONBLOCK = 0x1
578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
622 HUPCL = 0x400
623 IBSHIFT = 0x10
624 ICANON = 0x2
625 ICMPV6_FILTER = 0x1
626 ICRNL = 0x100
627 IEXTEN = 0x8000
628 IFA_F_DADFAILED = 0x8
629 IFA_F_DEPRECATED = 0x20
630 IFA_F_HOMEADDRESS = 0x10
631 IFA_F_MANAGETEMPADDR = 0x100
632 IFA_F_MCAUTOJOIN = 0x400
633 IFA_F_NODAD = 0x2
634 IFA_F_NOPREFIXROUTE = 0x200
635 IFA_F_OPTIMISTIC = 0x4
636 IFA_F_PERMANENT = 0x80
637 IFA_F_SECONDARY = 0x1
638 IFA_F_STABLE_PRIVACY = 0x800
639 IFA_F_TEMPORARY = 0x1
640 IFA_F_TENTATIVE = 0x40
641 IFA_MAX = 0x9
642 IFF_ALLMULTI = 0x200
643 IFF_ATTACH_QUEUE = 0x200
644 IFF_AUTOMEDIA = 0x4000
645 IFF_BROADCAST = 0x2
646 IFF_DEBUG = 0x4
647 IFF_DETACH_QUEUE = 0x400
648 IFF_DORMANT = 0x20000
649 IFF_DYNAMIC = 0x8000
650 IFF_ECHO = 0x40000
651 IFF_LOOPBACK = 0x8
652 IFF_LOWER_UP = 0x10000
653 IFF_MASTER = 0x400
654 IFF_MULTICAST = 0x1000
655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
658 IFF_NOARP = 0x80
659 IFF_NOFILTER = 0x1000
660 IFF_NOTRAILERS = 0x20
661 IFF_NO_PI = 0x1000
662 IFF_ONE_QUEUE = 0x2000
663 IFF_PERSIST = 0x800
664 IFF_POINTOPOINT = 0x10
665 IFF_PORTSEL = 0x2000
666 IFF_PROMISC = 0x100
667 IFF_RUNNING = 0x40
668 IFF_SLAVE = 0x800
669 IFF_TAP = 0x2
670 IFF_TUN = 0x1
671 IFF_TUN_EXCL = 0x8000
672 IFF_UP = 0x1
673 IFF_VNET_HDR = 0x4000
674 IFF_VOLATILE = 0x70c5a
675 IFNAMSIZ = 0x10
676 IGNBRK = 0x1
677 IGNCR = 0x80
678 IGNPAR = 0x4
679 IMAXBEL = 0x2000
680 INLCR = 0x40
681 INPCK = 0x10
682 IN_ACCESS = 0x1
683 IN_ALL_EVENTS = 0xfff
684 IN_ATTRIB = 0x4
685 IN_CLASSA_HOST = 0xffffff
686 IN_CLASSA_MAX = 0x80
687 IN_CLASSA_NET = 0xff000000
688 IN_CLASSA_NSHIFT = 0x18
689 IN_CLASSB_HOST = 0xffff
690 IN_CLASSB_MAX = 0x10000
691 IN_CLASSB_NET = 0xffff0000
692 IN_CLASSB_NSHIFT = 0x10
693 IN_CLASSC_HOST = 0xff
694 IN_CLASSC_NET = 0xffffff00
695 IN_CLASSC_NSHIFT = 0x8
696 IN_CLOEXEC = 0x80000
697 IN_CLOSE = 0x18
698 IN_CLOSE_NOWRITE = 0x10
699 IN_CLOSE_WRITE = 0x8
700 IN_CREATE = 0x100
701 IN_DELETE = 0x200
702 IN_DELETE_SELF = 0x400
703 IN_DONT_FOLLOW = 0x2000000
704 IN_EXCL_UNLINK = 0x4000000
705 IN_IGNORED = 0x8000
706 IN_ISDIR = 0x40000000
707 IN_LOOPBACKNET = 0x7f
708 IN_MASK_ADD = 0x20000000
709 IN_MODIFY = 0x2
710 IN_MOVE = 0xc0
711 IN_MOVED_FROM = 0x40
712 IN_MOVED_TO = 0x80
713 IN_MOVE_SELF = 0x800
714 IN_NONBLOCK = 0x800
715 IN_ONESHOT = 0x80000000
716 IN_ONLYDIR = 0x1000000
717 IN_OPEN = 0x20
718 IN_Q_OVERFLOW = 0x4000
719 IN_UNMOUNT = 0x2000
720 IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9
721 IPPROTO_AH = 0x33
722 IPPROTO_BEETPH = 0x5e
723 IPPROTO_COMP = 0x6c
724 IPPROTO_DCCP = 0x21
725 IPPROTO_DSTOPTS = 0x3c
726 IPPROTO_EGP = 0x8
727 IPPROTO_ENCAP = 0x62
728 IPPROTO_ESP = 0x32
729 IPPROTO_FRAGMENT = 0x2c
730 IPPROTO_GRE = 0x2f
731 IPPROTO_HOPOPTS = 0x0
732 IPPROTO_ICMP = 0x1
733 IPPROTO_ICMPV6 = 0x3a
734 IPPROTO_IDP = 0x16
735 IPPROTO_IGMP = 0x2
736 IPPROTO_IP = 0x0
737 IPPROTO_IPIP = 0x4
738 IPPROTO_IPV6 = 0x29
739 IPPROTO_MH = 0x87
740 IPPROTO_MPLS = 0x89
741 IPPROTO_MTP = 0x5c
742 IPPROTO_NONE = 0x3b
743 IPPROTO_PIM = 0x67
744 IPPROTO_PUP = 0xc
745 IPPROTO_RAW = 0xff
746 IPPROTO_ROUTING = 0x2b
747 IPPROTO_RSVP = 0x2e
748 IPPROTO_SCTP = 0x84
749 IPPROTO_TCP = 0x6
750 IPPROTO_TP = 0x1d
751 IPPROTO_UDP = 0x11
752 IPPROTO_UDPLITE = 0x88
753 IPV6_2292DSTOPTS = 0x4
754 IPV6_2292HOPLIMIT = 0x8
755 IPV6_2292HOPOPTS = 0x3
756 IPV6_2292PKTINFO = 0x2
757 IPV6_2292PKTOPTIONS = 0x6
758 IPV6_2292RTHDR = 0x5
759 IPV6_ADDRFORM = 0x1
760 IPV6_ADDR_PREFERENCES = 0x48
761 IPV6_ADD_MEMBERSHIP = 0x14
762 IPV6_AUTHHDR = 0xa
763 IPV6_AUTOFLOWLABEL = 0x46
764 IPV6_CHECKSUM = 0x7
765 IPV6_DONTFRAG = 0x3e
766 IPV6_DROP_MEMBERSHIP = 0x15
767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
769 IPV6_HDRINCL = 0x24
770 IPV6_HOPLIMIT = 0x34
771 IPV6_HOPOPTS = 0x36
772 IPV6_IPSEC_POLICY = 0x22
773 IPV6_JOIN_ANYCAST = 0x1b
774 IPV6_JOIN_GROUP = 0x14
775 IPV6_LEAVE_ANYCAST = 0x1c
776 IPV6_LEAVE_GROUP = 0x15
777 IPV6_MINHOPCOUNT = 0x49
778 IPV6_MTU = 0x18
779 IPV6_MTU_DISCOVER = 0x17
780 IPV6_MULTICAST_HOPS = 0x12
781 IPV6_MULTICAST_IF = 0x11
782 IPV6_MULTICAST_LOOP = 0x13
783 IPV6_NEXTHOP = 0x9
784 IPV6_ORIGDSTADDR = 0x4a
785 IPV6_PATHMTU = 0x3d
786 IPV6_PKTINFO = 0x32
787 IPV6_PMTUDISC_DO = 0x2
788 IPV6_PMTUDISC_DONT = 0x0
789 IPV6_PMTUDISC_INTERFACE = 0x4
790 IPV6_PMTUDISC_OMIT = 0x5
791 IPV6_PMTUDISC_PROBE = 0x3
792 IPV6_PMTUDISC_WANT = 0x1
793 IPV6_RECVDSTOPTS = 0x3a
794 IPV6_RECVERR = 0x19
795 IPV6_RECVFRAGSIZE = 0x4d
796 IPV6_RECVHOPLIMIT = 0x33
797 IPV6_RECVHOPOPTS = 0x35
798 IPV6_RECVORIGDSTADDR = 0x4a
799 IPV6_RECVPATHMTU = 0x3c
800 IPV6_RECVPKTINFO = 0x31
801 IPV6_RECVRTHDR = 0x38
802 IPV6_RECVTCLASS = 0x42
803 IPV6_ROUTER_ALERT = 0x16
804 IPV6_RTHDR = 0x39
805 IPV6_RTHDRDSTOPTS = 0x37
806 IPV6_RTHDR_LOOSE = 0x0
807 IPV6_RTHDR_STRICT = 0x1
808 IPV6_RTHDR_TYPE_0 = 0x0
809 IPV6_RXDSTOPTS = 0x3b
810 IPV6_RXHOPOPTS = 0x36
811 IPV6_TCLASS = 0x43
812 IPV6_TRANSPARENT = 0x4b
813 IPV6_UNICAST_HOPS = 0x10
814 IPV6_UNICAST_IF = 0x4c
815 IPV6_V6ONLY = 0x1a
816 IPV6_XFRM_POLICY = 0x23
817 IP_ADD_MEMBERSHIP = 0x23
818 IP_ADD_SOURCE_MEMBERSHIP = 0x27
819 IP_BIND_ADDRESS_NO_PORT = 0x18
820 IP_BLOCK_SOURCE = 0x26
821 IP_CHECKSUM = 0x17
822 IP_DEFAULT_MULTICAST_LOOP = 0x1
823 IP_DEFAULT_MULTICAST_TTL = 0x1
824 IP_DF = 0x4000
825 IP_DROP_MEMBERSHIP = 0x24
826 IP_DROP_SOURCE_MEMBERSHIP = 0x28
827 IP_FREEBIND = 0xf
828 IP_HDRINCL = 0x3
829 IP_IPSEC_POLICY = 0x10
830 IP_MAXPACKET = 0xffff
831 IP_MAX_MEMBERSHIPS = 0x14
832 IP_MF = 0x2000
833 IP_MINTTL = 0x15
834 IP_MSFILTER = 0x29
835 IP_MSS = 0x240
836 IP_MTU = 0xe
837 IP_MTU_DISCOVER = 0xa
838 IP_MULTICAST_ALL = 0x31
839 IP_MULTICAST_IF = 0x20
840 IP_MULTICAST_LOOP = 0x22
841 IP_MULTICAST_TTL = 0x21
842 IP_NODEFRAG = 0x16
843 IP_OFFMASK = 0x1fff
844 IP_OPTIONS = 0x4
845 IP_ORIGDSTADDR = 0x14
846 IP_PASSSEC = 0x12
847 IP_PKTINFO = 0x8
848 IP_PKTOPTIONS = 0x9
849 IP_PMTUDISC = 0xa
850 IP_PMTUDISC_DO = 0x2
851 IP_PMTUDISC_DONT = 0x0
852 IP_PMTUDISC_INTERFACE = 0x4
853 IP_PMTUDISC_OMIT = 0x5
854 IP_PMTUDISC_PROBE = 0x3
855 IP_PMTUDISC_WANT = 0x1
856 IP_RECVERR = 0xb
857 IP_RECVFRAGSIZE = 0x19
858 IP_RECVOPTS = 0x6
859 IP_RECVORIGDSTADDR = 0x14
860 IP_RECVRETOPTS = 0x7
861 IP_RECVTOS = 0xd
862 IP_RECVTTL = 0xc
863 IP_RETOPTS = 0x7
864 IP_RF = 0x8000
865 IP_ROUTER_ALERT = 0x5
866 IP_TOS = 0x1
867 IP_TRANSPARENT = 0x13
868 IP_TTL = 0x2
869 IP_UNBLOCK_SOURCE = 0x25
870 IP_UNICAST_IF = 0x32
871 IP_XFRM_POLICY = 0x11
872 ISIG = 0x1
873 ISOFS_SUPER_MAGIC = 0x9660
874 ISTRIP = 0x20
875 IUCLC = 0x200
876 IUTF8 = 0x4000
877 IXANY = 0x800
878 IXOFF = 0x1000
879 IXON = 0x400
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
901 KEYCTL_ASSUME_AUTHORITY = 0x10
902 KEYCTL_CHOWN = 0x4
903 KEYCTL_CLEAR = 0x7
904 KEYCTL_DESCRIBE = 0x6
905 KEYCTL_DH_COMPUTE = 0x17
906 KEYCTL_GET_KEYRING_ID = 0x0
907 KEYCTL_GET_PERSISTENT = 0x16
908 KEYCTL_GET_SECURITY = 0x11
909 KEYCTL_INSTANTIATE = 0xc
910 KEYCTL_INSTANTIATE_IOV = 0x14
911 KEYCTL_INVALIDATE = 0x15
912 KEYCTL_JOIN_SESSION_KEYRING = 0x1
913 KEYCTL_LINK = 0x8
914 KEYCTL_NEGATE = 0xd
915 KEYCTL_READ = 0xb
916 KEYCTL_REJECT = 0x13
917 KEYCTL_RESTRICT_KEYRING = 0x1d
918 KEYCTL_REVOKE = 0x3
919 KEYCTL_SEARCH = 0xa
920 KEYCTL_SESSION_TO_PARENT = 0x12
921 KEYCTL_SETPERM = 0x5
922 KEYCTL_SET_REQKEY_KEYRING = 0xe
923 KEYCTL_SET_TIMEOUT = 0xf
924 KEYCTL_UNLINK = 0x9
925 KEYCTL_UPDATE = 0x2
926 KEY_REQKEY_DEFL_DEFAULT = 0x0
927 KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
928 KEY_REQKEY_DEFL_NO_CHANGE = -0x1
929 KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
930 KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
931 KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
932 KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
933 KEY_REQKEY_DEFL_USER_KEYRING = 0x4
934 KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
935 KEY_SPEC_GROUP_KEYRING = -0x6
936 KEY_SPEC_PROCESS_KEYRING = -0x2
937 KEY_SPEC_REQKEY_AUTH_KEY = -0x7
938 KEY_SPEC_REQUESTOR_KEYRING = -0x8
939 KEY_SPEC_SESSION_KEYRING = -0x3
940 KEY_SPEC_THREAD_KEYRING = -0x1
941 KEY_SPEC_USER_KEYRING = -0x4
942 KEY_SPEC_USER_SESSION_KEYRING = -0x5
943 LINUX_REBOOT_CMD_CAD_OFF = 0x0
944 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
945 LINUX_REBOOT_CMD_HALT = 0xcdef0123
946 LINUX_REBOOT_CMD_KEXEC = 0x45584543
947 LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
948 LINUX_REBOOT_CMD_RESTART = 0x1234567
949 LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
950 LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
951 LINUX_REBOOT_MAGIC1 = 0xfee1dead
952 LINUX_REBOOT_MAGIC2 = 0x28121969
953 LOCK_EX = 0x2
954 LOCK_NB = 0x4
955 LOCK_SH = 0x1
956 LOCK_UN = 0x8
957 MADV_DODUMP = 0x11
958 MADV_DOFORK = 0xb
959 MADV_DONTDUMP = 0x10
960 MADV_DONTFORK = 0xa
961 MADV_DONTNEED = 0x4
962 MADV_FREE = 0x8
963 MADV_HUGEPAGE = 0xe
964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
966 MADV_MERGEABLE = 0xc
967 MADV_NOHUGEPAGE = 0xf
968 MADV_NORMAL = 0x0
969 MADV_RANDOM = 0x1
970 MADV_REMOVE = 0x9
971 MADV_SEQUENTIAL = 0x2
972 MADV_UNMERGEABLE = 0xd
973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
975 MAP_ANON = 0x20
976 MAP_ANONYMOUS = 0x20
977 MAP_DENYWRITE = 0x800
978 MAP_EXECUTABLE = 0x1000
979 MAP_FILE = 0x0
980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
982 MAP_GROWSDOWN = 0x100
983 MAP_HUGETLB = 0x40000
984 MAP_HUGE_MASK = 0x3f
985 MAP_HUGE_SHIFT = 0x1a
986 MAP_LOCKED = 0x2000
987 MAP_NONBLOCK = 0x10000
988 MAP_NORESERVE = 0x4000
989 MAP_POPULATE = 0x8000
990 MAP_PRIVATE = 0x2
991 MAP_SHARED = 0x1
992 MAP_SHARED_VALIDATE = 0x3
993 MAP_STACK = 0x20000
994 MAP_SYNC = 0x80000
995 MAP_TYPE = 0xf
996 MCL_CURRENT = 0x1
997 MCL_FUTURE = 0x2
998 MCL_ONFAULT = 0x4
999 MFD_ALLOW_SEALING = 0x2
1000 MFD_CLOEXEC = 0x1
1001 MFD_HUGETLB = 0x4
1002 MFD_HUGE_16GB = -0x78000000
1003 MFD_HUGE_16MB = 0x60000000
1004 MFD_HUGE_1GB = 0x78000000
1005 MFD_HUGE_1MB = 0x50000000
1006 MFD_HUGE_256MB = 0x70000000
1007 MFD_HUGE_2GB = 0x7c000000
1008 MFD_HUGE_2MB = 0x54000000
1009 MFD_HUGE_512KB = 0x4c000000
1010 MFD_HUGE_64KB = 0x40000000
1011 MFD_HUGE_8MB = 0x5c000000
1012 MFD_HUGE_MASK = 0x3f
1013 MFD_HUGE_SHIFT = 0x1a
1014 MINIX2_SUPER_MAGIC = 0x2468
1015 MINIX2_SUPER_MAGIC2 = 0x2478
1016 MINIX3_SUPER_MAGIC = 0x4d5a
1017 MINIX_SUPER_MAGIC = 0x137f
1018 MINIX_SUPER_MAGIC2 = 0x138f
1019 MNT_DETACH = 0x2
1020 MNT_EXPIRE = 0x4
1021 MNT_FORCE = 0x1
1022 MSDOS_SUPER_MAGIC = 0x4d44
1023 MSG_BATCH = 0x40000
1024 MSG_CMSG_CLOEXEC = 0x40000000
1025 MSG_CONFIRM = 0x800
1026 MSG_CTRUNC = 0x8
1027 MSG_DONTROUTE = 0x4
1028 MSG_DONTWAIT = 0x40
1029 MSG_EOR = 0x80
1030 MSG_ERRQUEUE = 0x2000
1031 MSG_FASTOPEN = 0x20000000
1032 MSG_FIN = 0x200
1033 MSG_MORE = 0x8000
1034 MSG_NOSIGNAL = 0x4000
1035 MSG_OOB = 0x1
1036 MSG_PEEK = 0x2
1037 MSG_PROXY = 0x10
1038 MSG_RST = 0x1000
1039 MSG_SYN = 0x400
1040 MSG_TRUNC = 0x20
1041 MSG_TRYHARD = 0x4
1042 MSG_WAITALL = 0x100
1043 MSG_WAITFORONE = 0x10000
1044 MSG_ZEROCOPY = 0x4000000
1045 MS_ACTIVE = 0x40000000
1046 MS_ASYNC = 0x1
1047 MS_BIND = 0x1000
1048 MS_BORN = 0x20000000
1049 MS_DIRSYNC = 0x80
1050 MS_INVALIDATE = 0x2
1051 MS_I_VERSION = 0x800000
1052 MS_KERNMOUNT = 0x400000
1053 MS_LAZYTIME = 0x2000000
1054 MS_MANDLOCK = 0x40
1055 MS_MGC_MSK = 0xffff0000
1056 MS_MGC_VAL = 0xc0ed0000
1057 MS_MOVE = 0x2000
1058 MS_NOATIME = 0x400
1059 MS_NODEV = 0x4
1060 MS_NODIRATIME = 0x800
1061 MS_NOEXEC = 0x8
1062 MS_NOREMOTELOCK = 0x8000000
1063 MS_NOSEC = 0x10000000
1064 MS_NOSUID = 0x2
1065 MS_NOUSER = -0x80000000
1066 MS_POSIXACL = 0x10000
1067 MS_PRIVATE = 0x40000
1068 MS_RDONLY = 0x1
1069 MS_REC = 0x4000
1070 MS_RELATIME = 0x200000
1071 MS_REMOUNT = 0x20
1072 MS_RMT_MASK = 0x2800051
1073 MS_SHARED = 0x100000
1074 MS_SILENT = 0x8000
1075 MS_SLAVE = 0x80000
1076 MS_STRICTATIME = 0x1000000
1077 MS_SUBMOUNT = 0x4000000
1078 MS_SYNC = 0x4
1079 MS_SYNCHRONOUS = 0x10
1080 MS_UNBINDABLE = 0x20000
1081 MS_VERBOSE = 0x8000
1082 MTD_INODE_FS_MAGIC = 0x11307854
1083 NAME_MAX = 0xff
1084 NCP_SUPER_MAGIC = 0x564c
1085 NETLINK_ADD_MEMBERSHIP = 0x1
1086 NETLINK_AUDIT = 0x9
1087 NETLINK_BROADCAST_ERROR = 0x4
1088 NETLINK_CAP_ACK = 0xa
1089 NETLINK_CONNECTOR = 0xb
1090 NETLINK_CRYPTO = 0x15
1091 NETLINK_DNRTMSG = 0xe
1092 NETLINK_DROP_MEMBERSHIP = 0x2
1093 NETLINK_ECRYPTFS = 0x13
1094 NETLINK_EXT_ACK = 0xb
1095 NETLINK_FIB_LOOKUP = 0xa
1096 NETLINK_FIREWALL = 0x3
1097 NETLINK_GENERIC = 0x10
1098 NETLINK_INET_DIAG = 0x4
1099 NETLINK_IP6_FW = 0xd
1100 NETLINK_ISCSI = 0x8
1101 NETLINK_KOBJECT_UEVENT = 0xf
1102 NETLINK_LISTEN_ALL_NSID = 0x8
1103 NETLINK_LIST_MEMBERSHIPS = 0x9
1104 NETLINK_NETFILTER = 0xc
1105 NETLINK_NFLOG = 0x5
1106 NETLINK_NO_ENOBUFS = 0x5
1107 NETLINK_PKTINFO = 0x3
1108 NETLINK_RDMA = 0x14
1109 NETLINK_ROUTE = 0x0
1110 NETLINK_RX_RING = 0x6
1111 NETLINK_SCSITRANSPORT = 0x12
1112 NETLINK_SELINUX = 0x7
1113 NETLINK_SMC = 0x16
1114 NETLINK_SOCK_DIAG = 0x4
1115 NETLINK_TX_RING = 0x7
1116 NETLINK_UNUSED = 0x1
1117 NETLINK_USERSOCK = 0x2
1118 NETLINK_XFRM = 0x6
1119 NETNSA_MAX = 0x3
1120 NETNSA_NSID_NOT_ASSIGNED = -0x1
1121 NFNETLINK_V0 = 0x0
1122 NFNLGRP_ACCT_QUOTA = 0x8
1123 NFNLGRP_CONNTRACK_DESTROY = 0x3
1124 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1125 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1126 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1127 NFNLGRP_CONNTRACK_NEW = 0x1
1128 NFNLGRP_CONNTRACK_UPDATE = 0x2
1129 NFNLGRP_MAX = 0x9
1130 NFNLGRP_NFTABLES = 0x7
1131 NFNLGRP_NFTRACE = 0x9
1132 NFNLGRP_NONE = 0x0
1133 NFNL_BATCH_MAX = 0x1
1134 NFNL_MSG_BATCH_BEGIN = 0x10
1135 NFNL_MSG_BATCH_END = 0x11
1136 NFNL_NFA_NEST = 0x8000
1137 NFNL_SUBSYS_ACCT = 0x7
1138 NFNL_SUBSYS_COUNT = 0xc
1139 NFNL_SUBSYS_CTHELPER = 0x9
1140 NFNL_SUBSYS_CTNETLINK = 0x1
1141 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1142 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1143 NFNL_SUBSYS_IPSET = 0x6
1144 NFNL_SUBSYS_NFTABLES = 0xa
1145 NFNL_SUBSYS_NFT_COMPAT = 0xb
1146 NFNL_SUBSYS_NONE = 0x0
1147 NFNL_SUBSYS_OSF = 0x5
1148 NFNL_SUBSYS_QUEUE = 0x3
1149 NFNL_SUBSYS_ULOG = 0x4
1150 NFS_SUPER_MAGIC = 0x6969
1151 NILFS_SUPER_MAGIC = 0x3434
1152 NL0 = 0x0
1153 NL1 = 0x100
1154 NLA_ALIGNTO = 0x4
1155 NLA_F_NESTED = 0x8000
1156 NLA_F_NET_BYTEORDER = 0x4000
1157 NLA_HDRLEN = 0x4
1158 NLDLY = 0x100
1159 NLMSG_ALIGNTO = 0x4
1160 NLMSG_DONE = 0x3
1161 NLMSG_ERROR = 0x2
1162 NLMSG_HDRLEN = 0x10
1163 NLMSG_MIN_TYPE = 0x10
1164 NLMSG_NOOP = 0x1
1165 NLMSG_OVERRUN = 0x4
1166 NLM_F_ACK = 0x4
1167 NLM_F_ACK_TLVS = 0x200
1168 NLM_F_APPEND = 0x800
1169 NLM_F_ATOMIC = 0x400
1170 NLM_F_CAPPED = 0x100
1171 NLM_F_CREATE = 0x400
1172 NLM_F_DUMP = 0x300
1173 NLM_F_DUMP_FILTERED = 0x20
1174 NLM_F_DUMP_INTR = 0x10
1175 NLM_F_ECHO = 0x8
1176 NLM_F_EXCL = 0x200
1177 NLM_F_MATCH = 0x200
1178 NLM_F_MULTI = 0x2
1179 NLM_F_NONREC = 0x100
1180 NLM_F_REPLACE = 0x100
1181 NLM_F_REQUEST = 0x1
1182 NLM_F_ROOT = 0x100
1183 NOFLSH = 0x80
1184 NSFS_MAGIC = 0x6e736673
1185 OCFS2_SUPER_MAGIC = 0x7461636f
1186 OCRNL = 0x8
1187 OFDEL = 0x80
1188 OFILL = 0x40
1189 OLCUC = 0x2
1190 ONLCR = 0x4
1191 ONLRET = 0x20
1192 ONOCR = 0x10
1193 OPENPROM_SUPER_MAGIC = 0x9fa1
1194 OPOST = 0x1
1195 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1196 O_ACCMODE = 0x3
1197 O_APPEND = 0x400
1198 O_ASYNC = 0x2000
1199 O_CLOEXEC = 0x80000
1200 O_CREAT = 0x40
1201 O_DIRECT = 0x4000
1202 O_DIRECTORY = 0x10000
1203 O_DSYNC = 0x1000
1204 O_EXCL = 0x80
1205 O_FSYNC = 0x101000
1206 O_LARGEFILE = 0x0
1207 O_NDELAY = 0x800
1208 O_NOATIME = 0x40000
1209 O_NOCTTY = 0x100
1210 O_NOFOLLOW = 0x20000
1211 O_NONBLOCK = 0x800
1212 O_PATH = 0x200000
1213 O_RDONLY = 0x0
1214 O_RDWR = 0x2
1215 O_RSYNC = 0x101000
1216 O_SYNC = 0x101000
1217 O_TMPFILE = 0x410000
1218 O_TRUNC = 0x200
1219 O_WRONLY = 0x1
1220 PACKET_ADD_MEMBERSHIP = 0x1
1221 PACKET_AUXDATA = 0x8
1222 PACKET_BROADCAST = 0x1
1223 PACKET_COPY_THRESH = 0x7
1224 PACKET_DROP_MEMBERSHIP = 0x2
1225 PACKET_FANOUT = 0x12
1226 PACKET_FANOUT_CBPF = 0x6
1227 PACKET_FANOUT_CPU = 0x2
1228 PACKET_FANOUT_DATA = 0x16
1229 PACKET_FANOUT_EBPF = 0x7
1230 PACKET_FANOUT_FLAG_DEFRAG = 0x8000
1231 PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
1232 PACKET_FANOUT_FLAG_UNIQUEID = 0x2000
1233 PACKET_FANOUT_HASH = 0x0
1234 PACKET_FANOUT_LB = 0x1
1235 PACKET_FANOUT_QM = 0x5
1236 PACKET_FANOUT_RND = 0x4
1237 PACKET_FANOUT_ROLLOVER = 0x3
1238 PACKET_FASTROUTE = 0x6
1239 PACKET_HDRLEN = 0xb
1240 PACKET_HOST = 0x0
1241 PACKET_KERNEL = 0x7
1242 PACKET_LOOPBACK = 0x5
1243 PACKET_LOSS = 0xe
1244 PACKET_MR_ALLMULTI = 0x2
1245 PACKET_MR_MULTICAST = 0x0
1246 PACKET_MR_PROMISC = 0x1
1247 PACKET_MR_UNICAST = 0x3
1248 PACKET_MULTICAST = 0x2
1249 PACKET_ORIGDEV = 0x9
1250 PACKET_OTHERHOST = 0x3
1251 PACKET_OUTGOING = 0x4
1252 PACKET_QDISC_BYPASS = 0x14
1253 PACKET_RECV_OUTPUT = 0x3
1254 PACKET_RESERVE = 0xc
1255 PACKET_ROLLOVER_STATS = 0x15
1256 PACKET_RX_RING = 0x5
1257 PACKET_STATISTICS = 0x6
1258 PACKET_TIMESTAMP = 0x11
1259 PACKET_TX_HAS_OFF = 0x13
1260 PACKET_TX_RING = 0xd
1261 PACKET_TX_TIMESTAMP = 0x10
1262 PACKET_USER = 0x6
1263 PACKET_VERSION = 0xa
1264 PACKET_VNET_HDR = 0xf
1265 PARENB = 0x100
1266 PARITY_CRC16_PR0 = 0x2
1267 PARITY_CRC16_PR0_CCITT = 0x4
1268 PARITY_CRC16_PR1 = 0x3
1269 PARITY_CRC16_PR1_CCITT = 0x5
1270 PARITY_CRC32_PR0_CCITT = 0x6
1271 PARITY_CRC32_PR1_CCITT = 0x7
1272 PARITY_DEFAULT = 0x0
1273 PARITY_NONE = 0x1
1274 PARMRK = 0x8
1275 PARODD = 0x200
1276 PENDIN = 0x4000
1277 PERF_EVENT_IOC_DISABLE = 0x2401
1278 PERF_EVENT_IOC_ENABLE = 0x2400
1279 PERF_EVENT_IOC_ID = 0x80082407
1280 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
1281 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
1282 PERF_EVENT_IOC_PERIOD = 0x40082404
1283 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
1284 PERF_EVENT_IOC_REFRESH = 0x2402
1285 PERF_EVENT_IOC_RESET = 0x2403
1286 PERF_EVENT_IOC_SET_BPF = 0x40042408
1287 PERF_EVENT_IOC_SET_FILTER = 0x40082406
1288 PERF_EVENT_IOC_SET_OUTPUT = 0x2405
1289 PIPEFS_MAGIC = 0x50495045
1290 PRIO_PGRP = 0x1
1291 PRIO_PROCESS = 0x0
1292 PRIO_USER = 0x2
1293 PROC_SUPER_MAGIC = 0x9fa0
1294 PROT_EXEC = 0x4
1295 PROT_GROWSDOWN = 0x1000000
1296 PROT_GROWSUP = 0x2000000
1297 PROT_NONE = 0x0
1298 PROT_READ = 0x1
1299 PROT_WRITE = 0x2
1300 PR_CAPBSET_DROP = 0x18
1301 PR_CAPBSET_READ = 0x17
1302 PR_CAP_AMBIENT = 0x2f
1303 PR_CAP_AMBIENT_CLEAR_ALL = 0x4
1304 PR_CAP_AMBIENT_IS_SET = 0x1
1305 PR_CAP_AMBIENT_LOWER = 0x3
1306 PR_CAP_AMBIENT_RAISE = 0x2
1307 PR_ENDIAN_BIG = 0x0
1308 PR_ENDIAN_LITTLE = 0x1
1309 PR_ENDIAN_PPC_LITTLE = 0x2
1310 PR_FPEMU_NOPRINT = 0x1
1311 PR_FPEMU_SIGFPE = 0x2
1312 PR_FP_EXC_ASYNC = 0x2
1313 PR_FP_EXC_DISABLED = 0x0
1314 PR_FP_EXC_DIV = 0x10000
1315 PR_FP_EXC_INV = 0x100000
1316 PR_FP_EXC_NONRECOV = 0x1
1317 PR_FP_EXC_OVF = 0x20000
1318 PR_FP_EXC_PRECISE = 0x3
1319 PR_FP_EXC_RES = 0x80000
1320 PR_FP_EXC_SW_ENABLE = 0x80
1321 PR_FP_EXC_UND = 0x40000
1322 PR_FP_MODE_FR = 0x1
1323 PR_FP_MODE_FRE = 0x2
1324 PR_GET_CHILD_SUBREAPER = 0x25
1325 PR_GET_DUMPABLE = 0x3
1326 PR_GET_ENDIAN = 0x13
1327 PR_GET_FPEMU = 0x9
1328 PR_GET_FPEXC = 0xb
1329 PR_GET_FP_MODE = 0x2e
1330 PR_GET_KEEPCAPS = 0x7
1331 PR_GET_NAME = 0x10
1332 PR_GET_NO_NEW_PRIVS = 0x27
1333 PR_GET_PDEATHSIG = 0x2
1334 PR_GET_SECCOMP = 0x15
1335 PR_GET_SECUREBITS = 0x1b
1336 PR_GET_SPECULATION_CTRL = 0x34
1337 PR_GET_THP_DISABLE = 0x2a
1338 PR_GET_TID_ADDRESS = 0x28
1339 PR_GET_TIMERSLACK = 0x1e
1340 PR_GET_TIMING = 0xd
1341 PR_GET_TSC = 0x19
1342 PR_GET_UNALIGN = 0x5
1343 PR_MCE_KILL = 0x21
1344 PR_MCE_KILL_CLEAR = 0x0
1345 PR_MCE_KILL_DEFAULT = 0x2
1346 PR_MCE_KILL_EARLY = 0x1
1347 PR_MCE_KILL_GET = 0x22
1348 PR_MCE_KILL_LATE = 0x0
1349 PR_MCE_KILL_SET = 0x1
1350 PR_MPX_DISABLE_MANAGEMENT = 0x2c
1351 PR_MPX_ENABLE_MANAGEMENT = 0x2b
1352 PR_SET_CHILD_SUBREAPER = 0x24
1353 PR_SET_DUMPABLE = 0x4
1354 PR_SET_ENDIAN = 0x14
1355 PR_SET_FPEMU = 0xa
1356 PR_SET_FPEXC = 0xc
1357 PR_SET_FP_MODE = 0x2d
1358 PR_SET_KEEPCAPS = 0x8
1359 PR_SET_MM = 0x23
1360 PR_SET_MM_ARG_END = 0x9
1361 PR_SET_MM_ARG_START = 0x8
1362 PR_SET_MM_AUXV = 0xc
1363 PR_SET_MM_BRK = 0x7
1364 PR_SET_MM_END_CODE = 0x2
1365 PR_SET_MM_END_DATA = 0x4
1366 PR_SET_MM_ENV_END = 0xb
1367 PR_SET_MM_ENV_START = 0xa
1368 PR_SET_MM_EXE_FILE = 0xd
1369 PR_SET_MM_MAP = 0xe
1370 PR_SET_MM_MAP_SIZE = 0xf
1371 PR_SET_MM_START_BRK = 0x6
1372 PR_SET_MM_START_CODE = 0x1
1373 PR_SET_MM_START_DATA = 0x3
1374 PR_SET_MM_START_STACK = 0x5
1375 PR_SET_NAME = 0xf
1376 PR_SET_NO_NEW_PRIVS = 0x26
1377 PR_SET_PDEATHSIG = 0x1
1378 PR_SET_PTRACER = 0x59616d61
1379 PR_SET_PTRACER_ANY = 0xffffffffffffffff
1380 PR_SET_SECCOMP = 0x16
1381 PR_SET_SECUREBITS = 0x1c
1382 PR_SET_SPECULATION_CTRL = 0x35
1383 PR_SET_THP_DISABLE = 0x29
1384 PR_SET_TIMERSLACK = 0x1d
1385 PR_SET_TIMING = 0xe
1386 PR_SET_TSC = 0x1a
1387 PR_SET_UNALIGN = 0x6
1388 PR_SPEC_DISABLE = 0x4
1389 PR_SPEC_ENABLE = 0x2
1390 PR_SPEC_FORCE_DISABLE = 0x8
1391 PR_SPEC_NOT_AFFECTED = 0x0
1392 PR_SPEC_PRCTL = 0x1
1393 PR_SPEC_STORE_BYPASS = 0x0
1394 PR_SVE_GET_VL = 0x33
1395 PR_SVE_SET_VL = 0x32
1396 PR_SVE_SET_VL_ONEXEC = 0x40000
1397 PR_SVE_VL_INHERIT = 0x20000
1398 PR_SVE_VL_LEN_MASK = 0xffff
1399 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1400 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1401 PR_TIMING_STATISTICAL = 0x0
1402 PR_TIMING_TIMESTAMP = 0x1
1403 PR_TSC_ENABLE = 0x1
1404 PR_TSC_SIGSEGV = 0x2
1405 PR_UNALIGN_NOPRINT = 0x1
1406 PR_UNALIGN_SIGBUS = 0x2
1407 PSTOREFS_MAGIC = 0x6165676c
1408 PTRACE_ATTACH = 0x10
1409 PTRACE_CONT = 0x7
1410 PTRACE_DETACH = 0x11
1411 PTRACE_EVENT_CLONE = 0x3
1412 PTRACE_EVENT_EXEC = 0x4
1413 PTRACE_EVENT_EXIT = 0x6
1414 PTRACE_EVENT_FORK = 0x1
1415 PTRACE_EVENT_SECCOMP = 0x7
1416 PTRACE_EVENT_STOP = 0x80
1417 PTRACE_EVENT_VFORK = 0x2
1418 PTRACE_EVENT_VFORK_DONE = 0x5
1419 PTRACE_GETEVENTMSG = 0x4201
1420 PTRACE_GETREGS = 0xc
1421 PTRACE_GETREGSET = 0x4204
1422 PTRACE_GETSIGINFO = 0x4202
1423 PTRACE_GETSIGMASK = 0x420a
1424 PTRACE_INTERRUPT = 0x4207
1425 PTRACE_KILL = 0x8
1426 PTRACE_LISTEN = 0x4208
1427 PTRACE_O_EXITKILL = 0x100000
1428 PTRACE_O_MASK = 0x3000ff
1429 PTRACE_O_SUSPEND_SECCOMP = 0x200000
1430 PTRACE_O_TRACECLONE = 0x8
1431 PTRACE_O_TRACEEXEC = 0x10
1432 PTRACE_O_TRACEEXIT = 0x40
1433 PTRACE_O_TRACEFORK = 0x2
1434 PTRACE_O_TRACESECCOMP = 0x80
1435 PTRACE_O_TRACESYSGOOD = 0x1
1436 PTRACE_O_TRACEVFORK = 0x4
1437 PTRACE_O_TRACEVFORKDONE = 0x20
1438 PTRACE_PEEKDATA = 0x2
1439 PTRACE_PEEKSIGINFO = 0x4209
1440 PTRACE_PEEKSIGINFO_SHARED = 0x1
1441 PTRACE_PEEKTEXT = 0x1
1442 PTRACE_PEEKUSR = 0x3
1443 PTRACE_POKEDATA = 0x5
1444 PTRACE_POKETEXT = 0x4
1445 PTRACE_POKEUSR = 0x6
1446 PTRACE_SECCOMP_GET_FILTER = 0x420c
1447 PTRACE_SECCOMP_GET_METADATA = 0x420d
1448 PTRACE_SEIZE = 0x4206
1449 PTRACE_SETOPTIONS = 0x4200
1450 PTRACE_SETREGS = 0xd
1451 PTRACE_SETREGSET = 0x4205
1452 PTRACE_SETSIGINFO = 0x4203
1453 PTRACE_SETSIGMASK = 0x420b
1454 PTRACE_SINGLESTEP = 0x9
1455 PTRACE_SYSCALL = 0x18
1456 PTRACE_TRACEME = 0x0
1457 QNX4_SUPER_MAGIC = 0x2f
1458 QNX6_SUPER_MAGIC = 0x68191122
1459 RAMFS_MAGIC = 0x858458f6
1460 RDTGROUP_SUPER_MAGIC = 0x7655821
1461 REISERFS_SUPER_MAGIC = 0x52654973
1462 RENAME_EXCHANGE = 0x2
1463 RENAME_NOREPLACE = 0x1
1464 RENAME_WHITEOUT = 0x4
1465 RLIMIT_AS = 0x9
1466 RLIMIT_CORE = 0x4
1467 RLIMIT_CPU = 0x0
1468 RLIMIT_DATA = 0x2
1469 RLIMIT_FSIZE = 0x1
1470 RLIMIT_LOCKS = 0xa
1471 RLIMIT_MEMLOCK = 0x8
1472 RLIMIT_MSGQUEUE = 0xc
1473 RLIMIT_NICE = 0xd
1474 RLIMIT_NOFILE = 0x7
1475 RLIMIT_NPROC = 0x6
1476 RLIMIT_RSS = 0x5
1477 RLIMIT_RTPRIO = 0xe
1478 RLIMIT_RTTIME = 0xf
1479 RLIMIT_SIGPENDING = 0xb
1480 RLIMIT_STACK = 0x3
1481 RLIM_INFINITY = 0xffffffffffffffff
1482 RTAX_ADVMSS = 0x8
1483 RTAX_CC_ALGO = 0x10
1484 RTAX_CWND = 0x7
1485 RTAX_FASTOPEN_NO_COOKIE = 0x11
1486 RTAX_FEATURES = 0xc
1487 RTAX_FEATURE_ALLFRAG = 0x8
1488 RTAX_FEATURE_ECN = 0x1
1489 RTAX_FEATURE_MASK = 0xf
1490 RTAX_FEATURE_SACK = 0x2
1491 RTAX_FEATURE_TIMESTAMP = 0x4
1492 RTAX_HOPLIMIT = 0xa
1493 RTAX_INITCWND = 0xb
1494 RTAX_INITRWND = 0xe
1495 RTAX_LOCK = 0x1
1496 RTAX_MAX = 0x11
1497 RTAX_MTU = 0x2
1498 RTAX_QUICKACK = 0xf
1499 RTAX_REORDERING = 0x9
1500 RTAX_RTO_MIN = 0xd
1501 RTAX_RTT = 0x4
1502 RTAX_RTTVAR = 0x5
1503 RTAX_SSTHRESH = 0x6
1504 RTAX_UNSPEC = 0x0
1505 RTAX_WINDOW = 0x3
1506 RTA_ALIGNTO = 0x4
1507 RTA_MAX = 0x1d
1508 RTCF_DIRECTSRC = 0x4000000
1509 RTCF_DOREDIRECT = 0x1000000
1510 RTCF_LOG = 0x2000000
1511 RTCF_MASQ = 0x400000
1512 RTCF_NAT = 0x800000
1513 RTCF_VALVE = 0x200000
1514 RTC_AF = 0x20
1515 RTC_AIE_OFF = 0x7002
1516 RTC_AIE_ON = 0x7001
1517 RTC_ALM_READ = 0x80247008
1518 RTC_ALM_SET = 0x40247007
1519 RTC_EPOCH_READ = 0x8008700d
1520 RTC_EPOCH_SET = 0x4008700e
1521 RTC_IRQF = 0x80
1522 RTC_IRQP_READ = 0x8008700b
1523 RTC_IRQP_SET = 0x4008700c
1524 RTC_MAX_FREQ = 0x2000
1525 RTC_PF = 0x40
1526 RTC_PIE_OFF = 0x7006
1527 RTC_PIE_ON = 0x7005
1528 RTC_PLL_GET = 0x80207011
1529 RTC_PLL_SET = 0x40207012
1530 RTC_RD_TIME = 0x80247009
1531 RTC_SET_TIME = 0x4024700a
1532 RTC_UF = 0x10
1533 RTC_UIE_OFF = 0x7004
1534 RTC_UIE_ON = 0x7003
1535 RTC_VL_CLR = 0x7014
1536 RTC_VL_READ = 0x80047013
1537 RTC_WIE_OFF = 0x7010
1538 RTC_WIE_ON = 0x700f
1539 RTC_WKALM_RD = 0x80287010
1540 RTC_WKALM_SET = 0x4028700f
1541 RTF_ADDRCLASSMASK = 0xf8000000
1542 RTF_ADDRCONF = 0x40000
1543 RTF_ALLONLINK = 0x20000
1544 RTF_BROADCAST = 0x10000000
1545 RTF_CACHE = 0x1000000
1546 RTF_DEFAULT = 0x10000
1547 RTF_DYNAMIC = 0x10
1548 RTF_FLOW = 0x2000000
1549 RTF_GATEWAY = 0x2
1550 RTF_HOST = 0x4
1551 RTF_INTERFACE = 0x40000000
1552 RTF_IRTT = 0x100
1553 RTF_LINKRT = 0x100000
1554 RTF_LOCAL = 0x80000000
1555 RTF_MODIFIED = 0x20
1556 RTF_MSS = 0x40
1557 RTF_MTU = 0x40
1558 RTF_MULTICAST = 0x20000000
1559 RTF_NAT = 0x8000000
1560 RTF_NOFORWARD = 0x1000
1561 RTF_NONEXTHOP = 0x200000
1562 RTF_NOPMTUDISC = 0x4000
1563 RTF_POLICY = 0x4000000
1564 RTF_REINSTATE = 0x8
1565 RTF_REJECT = 0x200
1566 RTF_STATIC = 0x400
1567 RTF_THROW = 0x2000
1568 RTF_UP = 0x1
1569 RTF_WINDOW = 0x80
1570 RTF_XRESOLVE = 0x800
1571 RTM_BASE = 0x10
1572 RTM_DELACTION = 0x31
1573 RTM_DELADDR = 0x15
1574 RTM_DELADDRLABEL = 0x49
1575 RTM_DELLINK = 0x11
1576 RTM_DELMDB = 0x55
1577 RTM_DELNEIGH = 0x1d
1578 RTM_DELNETCONF = 0x51
1579 RTM_DELNSID = 0x59
1580 RTM_DELQDISC = 0x25
1581 RTM_DELROUTE = 0x19
1582 RTM_DELRULE = 0x21
1583 RTM_DELTCLASS = 0x29
1584 RTM_DELTFILTER = 0x2d
1585 RTM_F_CLONED = 0x200
1586 RTM_F_EQUALIZE = 0x400
1587 RTM_F_FIB_MATCH = 0x2000
1588 RTM_F_LOOKUP_TABLE = 0x1000
1589 RTM_F_NOTIFY = 0x100
1590 RTM_F_PREFIX = 0x800
1591 RTM_GETACTION = 0x32
1592 RTM_GETADDR = 0x16
1593 RTM_GETADDRLABEL = 0x4a
1594 RTM_GETANYCAST = 0x3e
1595 RTM_GETDCB = 0x4e
1596 RTM_GETLINK = 0x12
1597 RTM_GETMDB = 0x56
1598 RTM_GETMULTICAST = 0x3a
1599 RTM_GETNEIGH = 0x1e
1600 RTM_GETNEIGHTBL = 0x42
1601 RTM_GETNETCONF = 0x52
1602 RTM_GETNSID = 0x5a
1603 RTM_GETQDISC = 0x26
1604 RTM_GETROUTE = 0x1a
1605 RTM_GETRULE = 0x22
1606 RTM_GETSTATS = 0x5e
1607 RTM_GETTCLASS = 0x2a
1608 RTM_GETTFILTER = 0x2e
1609 RTM_MAX = 0x63
1610 RTM_NEWACTION = 0x30
1611 RTM_NEWADDR = 0x14
1612 RTM_NEWADDRLABEL = 0x48
1613 RTM_NEWCACHEREPORT = 0x60
1614 RTM_NEWLINK = 0x10
1615 RTM_NEWMDB = 0x54
1616 RTM_NEWNDUSEROPT = 0x44
1617 RTM_NEWNEIGH = 0x1c
1618 RTM_NEWNEIGHTBL = 0x40
1619 RTM_NEWNETCONF = 0x50
1620 RTM_NEWNSID = 0x58
1621 RTM_NEWPREFIX = 0x34
1622 RTM_NEWQDISC = 0x24
1623 RTM_NEWROUTE = 0x18
1624 RTM_NEWRULE = 0x20
1625 RTM_NEWSTATS = 0x5c
1626 RTM_NEWTCLASS = 0x28
1627 RTM_NEWTFILTER = 0x2c
1628 RTM_NR_FAMILIES = 0x15
1629 RTM_NR_MSGTYPES = 0x54
1630 RTM_SETDCB = 0x4f
1631 RTM_SETLINK = 0x13
1632 RTM_SETNEIGHTBL = 0x43
1633 RTNH_ALIGNTO = 0x4
1634 RTNH_COMPARE_MASK = 0x19
1635 RTNH_F_DEAD = 0x1
1636 RTNH_F_LINKDOWN = 0x10
1637 RTNH_F_OFFLOAD = 0x8
1638 RTNH_F_ONLINK = 0x4
1639 RTNH_F_PERVASIVE = 0x2
1640 RTNH_F_UNRESOLVED = 0x20
1641 RTN_MAX = 0xb
1642 RTPROT_BABEL = 0x2a
1643 RTPROT_BGP = 0xba
1644 RTPROT_BIRD = 0xc
1645 RTPROT_BOOT = 0x3
1646 RTPROT_DHCP = 0x10
1647 RTPROT_DNROUTED = 0xd
1648 RTPROT_EIGRP = 0xc0
1649 RTPROT_GATED = 0x8
1650 RTPROT_ISIS = 0xbb
1651 RTPROT_KERNEL = 0x2
1652 RTPROT_MROUTED = 0x11
1653 RTPROT_MRT = 0xa
1654 RTPROT_NTK = 0xf
1655 RTPROT_OSPF = 0xbc
1656 RTPROT_RA = 0x9
1657 RTPROT_REDIRECT = 0x1
1658 RTPROT_RIP = 0xbd
1659 RTPROT_STATIC = 0x4
1660 RTPROT_UNSPEC = 0x0
1661 RTPROT_XORP = 0xe
1662 RTPROT_ZEBRA = 0xb
1663 RT_CLASS_DEFAULT = 0xfd
1664 RT_CLASS_LOCAL = 0xff
1665 RT_CLASS_MAIN = 0xfe
1666 RT_CLASS_MAX = 0xff
1667 RT_CLASS_UNSPEC = 0x0
1668 RUSAGE_CHILDREN = -0x1
1669 RUSAGE_SELF = 0x0
1670 RUSAGE_THREAD = 0x1
1671 SCM_CREDENTIALS = 0x2
1672 SCM_RIGHTS = 0x1
1673 SCM_TIMESTAMP = 0x1d
1674 SCM_TIMESTAMPING = 0x25
1675 SCM_TIMESTAMPING_OPT_STATS = 0x36
1676 SCM_TIMESTAMPING_PKTINFO = 0x3a
1677 SCM_TIMESTAMPNS = 0x23
1678 SCM_WIFI_STATUS = 0x29
1679 SECCOMP_MODE_DISABLED = 0x0
1680 SECCOMP_MODE_FILTER = 0x2
1681 SECCOMP_MODE_STRICT = 0x1
1682 SECURITYFS_MAGIC = 0x73636673
1683 SELINUX_MAGIC = 0xf97cff8c
1684 SHUT_RD = 0x0
1685 SHUT_RDWR = 0x2
1686 SHUT_WR = 0x1
1687 SIOCADDDLCI = 0x8980
1688 SIOCADDMULTI = 0x8931
1689 SIOCADDRT = 0x890b
1690 SIOCATMARK = 0x8905
1691 SIOCBONDCHANGEACTIVE = 0x8995
1692 SIOCBONDENSLAVE = 0x8990
1693 SIOCBONDINFOQUERY = 0x8994
1694 SIOCBONDRELEASE = 0x8991
1695 SIOCBONDSETHWADDR = 0x8992
1696 SIOCBONDSLAVEINFOQUERY = 0x8993
1697 SIOCBRADDBR = 0x89a0
1698 SIOCBRADDIF = 0x89a2
1699 SIOCBRDELBR = 0x89a1
1700 SIOCBRDELIF = 0x89a3
1701 SIOCDARP = 0x8953
1702 SIOCDELDLCI = 0x8981
1703 SIOCDELMULTI = 0x8932
1704 SIOCDELRT = 0x890c
1705 SIOCDEVPRIVATE = 0x89f0
1706 SIOCDIFADDR = 0x8936
1707 SIOCDRARP = 0x8960
1708 SIOCETHTOOL = 0x8946
1709 SIOCGARP = 0x8954
1710 SIOCGHWTSTAMP = 0x89b1
1711 SIOCGIFADDR = 0x8915
1712 SIOCGIFBR = 0x8940
1713 SIOCGIFBRDADDR = 0x8919
1714 SIOCGIFCONF = 0x8912
1715 SIOCGIFCOUNT = 0x8938
1716 SIOCGIFDSTADDR = 0x8917
1717 SIOCGIFENCAP = 0x8925
1718 SIOCGIFFLAGS = 0x8913
1719 SIOCGIFHWADDR = 0x8927
1720 SIOCGIFINDEX = 0x8933
1721 SIOCGIFMAP = 0x8970
1722 SIOCGIFMEM = 0x891f
1723 SIOCGIFMETRIC = 0x891d
1724 SIOCGIFMTU = 0x8921
1725 SIOCGIFNAME = 0x8910
1726 SIOCGIFNETMASK = 0x891b
1727 SIOCGIFPFLAGS = 0x8935
1728 SIOCGIFSLAVE = 0x8929
1729 SIOCGIFTXQLEN = 0x8942
1730 SIOCGIFVLAN = 0x8982
1731 SIOCGMIIPHY = 0x8947
1732 SIOCGMIIREG = 0x8948
1733 SIOCGPGRP = 0x8904
1734 SIOCGRARP = 0x8961
1735 SIOCGSKNS = 0x894c
1736 SIOCGSTAMP = 0x8906
1737 SIOCGSTAMPNS = 0x8907
1738 SIOCINQ = 0x541b
1739 SIOCOUTQ = 0x5411
1740 SIOCOUTQNSD = 0x894b
1741 SIOCPROTOPRIVATE = 0x89e0
1742 SIOCRTMSG = 0x890d
1743 SIOCSARP = 0x8955
1744 SIOCSHWTSTAMP = 0x89b0
1745 SIOCSIFADDR = 0x8916
1746 SIOCSIFBR = 0x8941
1747 SIOCSIFBRDADDR = 0x891a
1748 SIOCSIFDSTADDR = 0x8918
1749 SIOCSIFENCAP = 0x8926
1750 SIOCSIFFLAGS = 0x8914
1751 SIOCSIFHWADDR = 0x8924
1752 SIOCSIFHWBROADCAST = 0x8937
1753 SIOCSIFLINK = 0x8911
1754 SIOCSIFMAP = 0x8971
1755 SIOCSIFMEM = 0x8920
1756 SIOCSIFMETRIC = 0x891e
1757 SIOCSIFMTU = 0x8922
1758 SIOCSIFNAME = 0x8923
1759 SIOCSIFNETMASK = 0x891c
1760 SIOCSIFPFLAGS = 0x8934
1761 SIOCSIFSLAVE = 0x8930
1762 SIOCSIFTXQLEN = 0x8943
1763 SIOCSIFVLAN = 0x8983
1764 SIOCSMIIREG = 0x8949
1765 SIOCSPGRP = 0x8902
1766 SIOCSRARP = 0x8962
1767 SIOCWANDEV = 0x894a
1768 SMACK_MAGIC = 0x43415d53
1769 SMART_AUTOSAVE = 0xd2
1770 SMART_AUTO_OFFLINE = 0xdb
1771 SMART_DISABLE = 0xd9
1772 SMART_ENABLE = 0xd8
1773 SMART_HCYL_PASS = 0xc2
1774 SMART_IMMEDIATE_OFFLINE = 0xd4
1775 SMART_LCYL_PASS = 0x4f
1776 SMART_READ_LOG_SECTOR = 0xd5
1777 SMART_READ_THRESHOLDS = 0xd1
1778 SMART_READ_VALUES = 0xd0
1779 SMART_SAVE = 0xd3
1780 SMART_STATUS = 0xda
1781 SMART_WRITE_LOG_SECTOR = 0xd6
1782 SMART_WRITE_THRESHOLDS = 0xd7
1783 SMB_SUPER_MAGIC = 0x517b
1784 SOCKFS_MAGIC = 0x534f434b
1785 SOCK_CLOEXEC = 0x80000
1786 SOCK_DCCP = 0x6
1787 SOCK_DGRAM = 0x2
1788 SOCK_IOC_TYPE = 0x89
1789 SOCK_NONBLOCK = 0x800
1790 SOCK_PACKET = 0xa
1791 SOCK_RAW = 0x3
1792 SOCK_RDM = 0x4
1793 SOCK_SEQPACKET = 0x5
1794 SOCK_STREAM = 0x1
1795 SOL_AAL = 0x109
1796 SOL_ALG = 0x117
1797 SOL_ATM = 0x108
1798 SOL_CAIF = 0x116
1799 SOL_CAN_BASE = 0x64
1800 SOL_DCCP = 0x10d
1801 SOL_DECNET = 0x105
1802 SOL_ICMPV6 = 0x3a
1803 SOL_IP = 0x0
1804 SOL_IPV6 = 0x29
1805 SOL_IRDA = 0x10a
1806 SOL_IUCV = 0x115
1807 SOL_KCM = 0x119
1808 SOL_LLC = 0x10c
1809 SOL_NETBEUI = 0x10b
1810 SOL_NETLINK = 0x10e
1811 SOL_NFC = 0x118
1812 SOL_PACKET = 0x107
1813 SOL_PNPIPE = 0x113
1814 SOL_PPPOL2TP = 0x111
1815 SOL_RAW = 0xff
1816 SOL_RDS = 0x114
1817 SOL_RXRPC = 0x110
1818 SOL_SOCKET = 0x1
1819 SOL_TCP = 0x6
1820 SOL_TIPC = 0x10f
1821 SOL_TLS = 0x11a
1822 SOL_X25 = 0x106
1823 SOL_XDP = 0x11b
1824 SOMAXCONN = 0x80
1825 SO_ACCEPTCONN = 0x1e
1826 SO_ATTACH_BPF = 0x32
1827 SO_ATTACH_FILTER = 0x1a
1828 SO_ATTACH_REUSEPORT_CBPF = 0x33
1829 SO_ATTACH_REUSEPORT_EBPF = 0x34
1830 SO_BINDTODEVICE = 0x19
1831 SO_BPF_EXTENSIONS = 0x30
1832 SO_BROADCAST = 0x6
1833 SO_BSDCOMPAT = 0xe
1834 SO_BUSY_POLL = 0x2e
1835 SO_CNX_ADVICE = 0x35
1836 SO_COOKIE = 0x39
1837 SO_DEBUG = 0x1
1838 SO_DETACH_BPF = 0x1b
1839 SO_DETACH_FILTER = 0x1b
1840 SO_DOMAIN = 0x27
1841 SO_DONTROUTE = 0x5
1842 SO_ERROR = 0x4
1843 SO_GET_FILTER = 0x1a
1844 SO_INCOMING_CPU = 0x31
1845 SO_INCOMING_NAPI_ID = 0x38
1846 SO_KEEPALIVE = 0x9
1847 SO_LINGER = 0xd
1848 SO_LOCK_FILTER = 0x2c
1849 SO_MARK = 0x24
1850 SO_MAX_PACING_RATE = 0x2f
1851 SO_MEMINFO = 0x37
1852 SO_NOFCS = 0x2b
1853 SO_NO_CHECK = 0xb
1854 SO_OOBINLINE = 0xa
1855 SO_PASSCRED = 0x10
1856 SO_PASSSEC = 0x22
1857 SO_PEEK_OFF = 0x2a
1858 SO_PEERCRED = 0x11
1859 SO_PEERGROUPS = 0x3b
1860 SO_PEERNAME = 0x1c
1861 SO_PEERSEC = 0x1f
1862 SO_PRIORITY = 0xc
1863 SO_PROTOCOL = 0x26
1864 SO_RCVBUF = 0x8
1865 SO_RCVBUFFORCE = 0x21
1866 SO_RCVLOWAT = 0x12
1867 SO_RCVTIMEO = 0x14
1868 SO_REUSEADDR = 0x2
1869 SO_REUSEPORT = 0xf
1870 SO_RXQ_OVFL = 0x28
1871 SO_SECURITY_AUTHENTICATION = 0x16
1872 SO_SECURITY_ENCRYPTION_NETWORK = 0x18
1873 SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
1874 SO_SELECT_ERR_QUEUE = 0x2d
1875 SO_SNDBUF = 0x7
1876 SO_SNDBUFFORCE = 0x20
1877 SO_SNDLOWAT = 0x13
1878 SO_SNDTIMEO = 0x15
1879 SO_TIMESTAMP = 0x1d
1880 SO_TIMESTAMPING = 0x25
1881 SO_TIMESTAMPNS = 0x23
1882 SO_TYPE = 0x3
1883 SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
1884 SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
1885 SO_VM_SOCKETS_BUFFER_SIZE = 0x0
1886 SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6
1887 SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7
1888 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1889 SO_VM_SOCKETS_TRUSTED = 0x5
1890 SO_WIFI_STATUS = 0x29
1891 SO_ZEROCOPY = 0x3c
1892 SPLICE_F_GIFT = 0x8
1893 SPLICE_F_MORE = 0x4
1894 SPLICE_F_MOVE = 0x1
1895 SPLICE_F_NONBLOCK = 0x2
1896 SQUASHFS_MAGIC = 0x73717368
1897 STACK_END_MAGIC = 0x57ac6e9d
1898 STATX_ALL = 0xfff
1899 STATX_ATIME = 0x20
1900 STATX_ATTR_APPEND = 0x20
1901 STATX_ATTR_AUTOMOUNT = 0x1000
1902 STATX_ATTR_COMPRESSED = 0x4
1903 STATX_ATTR_ENCRYPTED = 0x800
1904 STATX_ATTR_IMMUTABLE = 0x10
1905 STATX_ATTR_NODUMP = 0x40
1906 STATX_BASIC_STATS = 0x7ff
1907 STATX_BLOCKS = 0x400
1908 STATX_BTIME = 0x800
1909 STATX_CTIME = 0x80
1910 STATX_GID = 0x10
1911 STATX_INO = 0x100
1912 STATX_MODE = 0x2
1913 STATX_MTIME = 0x40
1914 STATX_NLINK = 0x4
1915 STATX_SIZE = 0x200
1916 STATX_TYPE = 0x1
1917 STATX_UID = 0x8
1918 STATX__RESERVED = 0x80000000
1919 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1920 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1921 SYNC_FILE_RANGE_WRITE = 0x2
1922 SYSFS_MAGIC = 0x62656572
1923 S_BLKSIZE = 0x200
1924 S_IEXEC = 0x40
1925 S_IFBLK = 0x6000
1926 S_IFCHR = 0x2000
1927 S_IFDIR = 0x4000
1928 S_IFIFO = 0x1000
1929 S_IFLNK = 0xa000
1930 S_IFMT = 0xf000
1931 S_IFREG = 0x8000
1932 S_IFSOCK = 0xc000
1933 S_IREAD = 0x100
1934 S_IRGRP = 0x20
1935 S_IROTH = 0x4
1936 S_IRUSR = 0x100
1937 S_IRWXG = 0x38
1938 S_IRWXO = 0x7
1939 S_IRWXU = 0x1c0
1940 S_ISGID = 0x400
1941 S_ISUID = 0x800
1942 S_ISVTX = 0x200
1943 S_IWGRP = 0x10
1944 S_IWOTH = 0x2
1945 S_IWRITE = 0x80
1946 S_IWUSR = 0x80
1947 S_IXGRP = 0x8
1948 S_IXOTH = 0x1
1949 S_IXUSR = 0x40
1950 TAB0 = 0x0
1951 TAB1 = 0x800
1952 TAB2 = 0x1000
1953 TAB3 = 0x1800
1954 TABDLY = 0x1800
1955 TASKSTATS_CMD_ATTR_MAX = 0x4
1956 TASKSTATS_CMD_MAX = 0x2
1957 TASKSTATS_GENL_NAME = "TASKSTATS"
1958 TASKSTATS_GENL_VERSION = 0x1
1959 TASKSTATS_TYPE_MAX = 0x6
1960 TASKSTATS_VERSION = 0x8
1961 TCFLSH = 0x540b
1962 TCGETA = 0x5405
1963 TCGETS = 0x5401
1964 TCGETS2 = 0x802c542a
1965 TCGETX = 0x5432
1966 TCIFLUSH = 0x0
1967 TCIOFF = 0x2
1968 TCIOFLUSH = 0x2
1969 TCION = 0x3
1970 TCOFLUSH = 0x1
1971 TCOOFF = 0x0
1972 TCOON = 0x1
1973 TCP_CC_INFO = 0x1a
1974 TCP_CONGESTION = 0xd
1975 TCP_COOKIE_IN_ALWAYS = 0x1
1976 TCP_COOKIE_MAX = 0x10
1977 TCP_COOKIE_MIN = 0x8
1978 TCP_COOKIE_OUT_NEVER = 0x2
1979 TCP_COOKIE_PAIR_SIZE = 0x20
1980 TCP_COOKIE_TRANSACTIONS = 0xf
1981 TCP_CORK = 0x3
1982 TCP_DEFER_ACCEPT = 0x9
1983 TCP_FASTOPEN = 0x17
1984 TCP_FASTOPEN_CONNECT = 0x1e
1985 TCP_FASTOPEN_KEY = 0x21
1986 TCP_FASTOPEN_NO_COOKIE = 0x22
1987 TCP_INFO = 0xb
1988 TCP_KEEPCNT = 0x6
1989 TCP_KEEPIDLE = 0x4
1990 TCP_KEEPINTVL = 0x5
1991 TCP_LINGER2 = 0x8
1992 TCP_MAXSEG = 0x2
1993 TCP_MAXWIN = 0xffff
1994 TCP_MAX_WINSHIFT = 0xe
1995 TCP_MD5SIG = 0xe
1996 TCP_MD5SIG_EXT = 0x20
1997 TCP_MD5SIG_FLAG_PREFIX = 0x1
1998 TCP_MD5SIG_MAXKEYLEN = 0x50
1999 TCP_MSS = 0x200
2000 TCP_MSS_DEFAULT = 0x218
2001 TCP_MSS_DESIRED = 0x4c4
2002 TCP_NODELAY = 0x1
2003 TCP_NOTSENT_LOWAT = 0x19
2004 TCP_QUEUE_SEQ = 0x15
2005 TCP_QUICKACK = 0xc
2006 TCP_REPAIR = 0x13
2007 TCP_REPAIR_OPTIONS = 0x16
2008 TCP_REPAIR_QUEUE = 0x14
2009 TCP_REPAIR_WINDOW = 0x1d
2010 TCP_SAVED_SYN = 0x1c
2011 TCP_SAVE_SYN = 0x1b
2012 TCP_SYNCNT = 0x7
2013 TCP_S_DATA_IN = 0x4
2014 TCP_S_DATA_OUT = 0x8
2015 TCP_THIN_DUPACK = 0x11
2016 TCP_THIN_LINEAR_TIMEOUTS = 0x10
2017 TCP_TIMESTAMP = 0x18
2018 TCP_ULP = 0x1f
2019 TCP_USER_TIMEOUT = 0x12
2020 TCP_WINDOW_CLAMP = 0xa
2021 TCSAFLUSH = 0x2
2022 TCSBRK = 0x5409
2023 TCSBRKP = 0x5425
2024 TCSETA = 0x5406
2025 TCSETAF = 0x5408
2026 TCSETAW = 0x5407
2027 TCSETS = 0x5402
2028 TCSETS2 = 0x402c542b
2029 TCSETSF = 0x5404
2030 TCSETSF2 = 0x402c542d
2031 TCSETSW = 0x5403
2032 TCSETSW2 = 0x402c542c
2033 TCSETX = 0x5433
2034 TCSETXF = 0x5434
2035 TCSETXW = 0x5435
2036 TCXONC = 0x540a
2037 TIOCCBRK = 0x5428
2038 TIOCCONS = 0x541d
2039 TIOCEXCL = 0x540c
2040 TIOCGDEV = 0x80045432
2041 TIOCGETD = 0x5424
2042 TIOCGEXCL = 0x80045440
2043 TIOCGICOUNT = 0x545d
2044 TIOCGLCKTRMIOS = 0x5456
2045 TIOCGPGRP = 0x540f
2046 TIOCGPKT = 0x80045438
2047 TIOCGPTLCK = 0x80045439
2048 TIOCGPTN = 0x80045430
2049 TIOCGPTPEER = 0x5441
2050 TIOCGRS485 = 0x542e
2051 TIOCGSERIAL = 0x541e
2052 TIOCGSID = 0x5429
2053 TIOCGSOFTCAR = 0x5419
2054 TIOCGWINSZ = 0x5413
2055 TIOCINQ = 0x541b
2056 TIOCLINUX = 0x541c
2057 TIOCMBIC = 0x5417
2058 TIOCMBIS = 0x5416
2059 TIOCMGET = 0x5415
2060 TIOCMIWAIT = 0x545c
2061 TIOCMSET = 0x5418
2062 TIOCM_CAR = 0x40
2063 TIOCM_CD = 0x40
2064 TIOCM_CTS = 0x20
2065 TIOCM_DSR = 0x100
2066 TIOCM_DTR = 0x2
2067 TIOCM_LE = 0x1
2068 TIOCM_RI = 0x80
2069 TIOCM_RNG = 0x80
2070 TIOCM_RTS = 0x4
2071 TIOCM_SR = 0x10
2072 TIOCM_ST = 0x8
2073 TIOCNOTTY = 0x5422
2074 TIOCNXCL = 0x540d
2075 TIOCOUTQ = 0x5411
2076 TIOCPKT = 0x5420
2077 TIOCPKT_DATA = 0x0
2078 TIOCPKT_DOSTOP = 0x20
2079 TIOCPKT_FLUSHREAD = 0x1
2080 TIOCPKT_FLUSHWRITE = 0x2
2081 TIOCPKT_IOCTL = 0x40
2082 TIOCPKT_NOSTOP = 0x10
2083 TIOCPKT_START = 0x8
2084 TIOCPKT_STOP = 0x4
2085 TIOCSBRK = 0x5427
2086 TIOCSCTTY = 0x540e
2087 TIOCSERCONFIG = 0x5453
2088 TIOCSERGETLSR = 0x5459
2089 TIOCSERGETMULTI = 0x545a
2090 TIOCSERGSTRUCT = 0x5458
2091 TIOCSERGWILD = 0x5454
2092 TIOCSERSETMULTI = 0x545b
2093 TIOCSERSWILD = 0x5455
2094 TIOCSER_TEMT = 0x1
2095 TIOCSETD = 0x5423
2096 TIOCSIG = 0x40045436
2097 TIOCSLCKTRMIOS = 0x5457
2098 TIOCSPGRP = 0x5410
2099 TIOCSPTLCK = 0x40045431
2100 TIOCSRS485 = 0x542f
2101 TIOCSSERIAL = 0x541f
2102 TIOCSSOFTCAR = 0x541a
2103 TIOCSTI = 0x5412
2104 TIOCSWINSZ = 0x5414
2105 TIOCVHANGUP = 0x5437
2106 TMPFS_MAGIC = 0x1021994
2107 TOSTOP = 0x100
2108 TPACKET_ALIGNMENT = 0x10
2109 TPACKET_HDRLEN = 0x34
2110 TP_STATUS_AVAILABLE = 0x0
2111 TP_STATUS_BLK_TMO = 0x20
2112 TP_STATUS_COPY = 0x2
2113 TP_STATUS_CSUMNOTREADY = 0x8
2114 TP_STATUS_CSUM_VALID = 0x80
2115 TP_STATUS_KERNEL = 0x0
2116 TP_STATUS_LOSING = 0x4
2117 TP_STATUS_SENDING = 0x2
2118 TP_STATUS_SEND_REQUEST = 0x1
2119 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2120 TP_STATUS_TS_SOFTWARE = 0x20000000
2121 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2122 TP_STATUS_USER = 0x1
2123 TP_STATUS_VLAN_TPID_VALID = 0x40
2124 TP_STATUS_VLAN_VALID = 0x10
2125 TP_STATUS_WRONG_FORMAT = 0x4
2126 TRACEFS_MAGIC = 0x74726163
2127 TS_COMM_LEN = 0x20
2128 TUNATTACHFILTER = 0x401054d5
2129 TUNDETACHFILTER = 0x401054d6
2130 TUNGETFEATURES = 0x800454cf
2131 TUNGETFILTER = 0x801054db
2132 TUNGETIFF = 0x800454d2
2133 TUNGETSNDBUF = 0x800454d3
2134 TUNGETVNETBE = 0x800454df
2135 TUNGETVNETHDRSZ = 0x800454d7
2136 TUNGETVNETLE = 0x800454dd
2137 TUNSETDEBUG = 0x400454c9
2138 TUNSETFILTEREBPF = 0x800454e1
2139 TUNSETGROUP = 0x400454ce
2140 TUNSETIFF = 0x400454ca
2141 TUNSETIFINDEX = 0x400454da
2142 TUNSETLINK = 0x400454cd
2143 TUNSETNOCSUM = 0x400454c8
2144 TUNSETOFFLOAD = 0x400454d0
2145 TUNSETOWNER = 0x400454cc
2146 TUNSETPERSIST = 0x400454cb
2147 TUNSETQUEUE = 0x400454d9
2148 TUNSETSNDBUF = 0x400454d4
2149 TUNSETSTEERINGEBPF = 0x800454e0
2150 TUNSETTXFILTER = 0x400454d1
2151 TUNSETVNETBE = 0x400454de
2152 TUNSETVNETHDRSZ = 0x400454d8
2153 TUNSETVNETLE = 0x400454dc
2154 UBI_IOCATT = 0x40186f40
2155 UBI_IOCDET = 0x40046f41
2156 UBI_IOCEBCH = 0x40044f02
2157 UBI_IOCEBER = 0x40044f01
2158 UBI_IOCEBISMAP = 0x80044f05
2159 UBI_IOCEBMAP = 0x40084f03
2160 UBI_IOCEBUNMAP = 0x40044f04
2161 UBI_IOCMKVOL = 0x40986f00
2162 UBI_IOCRMVOL = 0x40046f01
2163 UBI_IOCRNVOL = 0x51106f03
2164 UBI_IOCRSVOL = 0x400c6f02
2165 UBI_IOCSETVOLPROP = 0x40104f06
2166 UBI_IOCVOLCRBLK = 0x40804f07
2167 UBI_IOCVOLRMBLK = 0x4f08
2168 UBI_IOCVOLUP = 0x40084f00
2169 UDF_SUPER_MAGIC = 0x15013346
2170 UMOUNT_NOFOLLOW = 0x8
2171 USBDEVICE_SUPER_MAGIC = 0x9fa2
2172 UTIME_NOW = 0x3fffffff
2173 UTIME_OMIT = 0x3ffffffe
2174 V9FS_MAGIC = 0x1021997
2175 VDISCARD = 0xd
2176 VEOF = 0x4
2177 VEOL = 0xb
2178 VEOL2 = 0x10
2179 VERASE = 0x2
2180 VINTR = 0x0
2181 VKILL = 0x3
2182 VLNEXT = 0xf
2183 VMADDR_CID_ANY = 0xffffffff
2184 VMADDR_CID_HOST = 0x2
2185 VMADDR_CID_HYPERVISOR = 0x0
2186 VMADDR_CID_RESERVED = 0x1
2187 VMADDR_PORT_ANY = 0xffffffff
2188 VMIN = 0x6
2189 VM_SOCKETS_INVALID_VERSION = 0xffffffff
2190 VQUIT = 0x1
2191 VREPRINT = 0xc
2192 VSTART = 0x8
2193 VSTOP = 0x9
2194 VSUSP = 0xa
2195 VSWTC = 0x7
2196 VT0 = 0x0
2197 VT1 = 0x4000
2198 VTDLY = 0x4000
2199 VTIME = 0x5
2200 VWERASE = 0xe
2201 WALL = 0x40000000
2202 WCLONE = 0x80000000
2203 WCONTINUED = 0x8
2204 WDIOC_GETBOOTSTATUS = 0x80045702
2205 WDIOC_GETPRETIMEOUT = 0x80045709
2206 WDIOC_GETSTATUS = 0x80045701
2207 WDIOC_GETSUPPORT = 0x80285700
2208 WDIOC_GETTEMP = 0x80045703
2209 WDIOC_GETTIMELEFT = 0x8004570a
2210 WDIOC_GETTIMEOUT = 0x80045707
2211 WDIOC_KEEPALIVE = 0x80045705
2212 WDIOC_SETOPTIONS = 0x80045704
2213 WDIOC_SETPRETIMEOUT = 0xc0045708
2214 WDIOC_SETTIMEOUT = 0xc0045706
2215 WEXITED = 0x4
2216 WIN_ACKMEDIACHANGE = 0xdb
2217 WIN_CHECKPOWERMODE1 = 0xe5
2218 WIN_CHECKPOWERMODE2 = 0x98
2219 WIN_DEVICE_RESET = 0x8
2220 WIN_DIAGNOSE = 0x90
2221 WIN_DOORLOCK = 0xde
2222 WIN_DOORUNLOCK = 0xdf
2223 WIN_DOWNLOAD_MICROCODE = 0x92
2224 WIN_FLUSH_CACHE = 0xe7
2225 WIN_FLUSH_CACHE_EXT = 0xea
2226 WIN_FORMAT = 0x50
2227 WIN_GETMEDIASTATUS = 0xda
2228 WIN_IDENTIFY = 0xec
2229 WIN_IDENTIFY_DMA = 0xee
2230 WIN_IDLEIMMEDIATE = 0xe1
2231 WIN_INIT = 0x60
2232 WIN_MEDIAEJECT = 0xed
2233 WIN_MULTREAD = 0xc4
2234 WIN_MULTREAD_EXT = 0x29
2235 WIN_MULTWRITE = 0xc5
2236 WIN_MULTWRITE_EXT = 0x39
2237 WIN_NOP = 0x0
2238 WIN_PACKETCMD = 0xa0
2239 WIN_PIDENTIFY = 0xa1
2240 WIN_POSTBOOT = 0xdc
2241 WIN_PREBOOT = 0xdd
2242 WIN_QUEUED_SERVICE = 0xa2
2243 WIN_READ = 0x20
2244 WIN_READDMA = 0xc8
2245 WIN_READDMA_EXT = 0x25
2246 WIN_READDMA_ONCE = 0xc9
2247 WIN_READDMA_QUEUED = 0xc7
2248 WIN_READDMA_QUEUED_EXT = 0x26
2249 WIN_READ_BUFFER = 0xe4
2250 WIN_READ_EXT = 0x24
2251 WIN_READ_LONG = 0x22
2252 WIN_READ_LONG_ONCE = 0x23
2253 WIN_READ_NATIVE_MAX = 0xf8
2254 WIN_READ_NATIVE_MAX_EXT = 0x27
2255 WIN_READ_ONCE = 0x21
2256 WIN_RECAL = 0x10
2257 WIN_RESTORE = 0x10
2258 WIN_SECURITY_DISABLE = 0xf6
2259 WIN_SECURITY_ERASE_PREPARE = 0xf3
2260 WIN_SECURITY_ERASE_UNIT = 0xf4
2261 WIN_SECURITY_FREEZE_LOCK = 0xf5
2262 WIN_SECURITY_SET_PASS = 0xf1
2263 WIN_SECURITY_UNLOCK = 0xf2
2264 WIN_SEEK = 0x70
2265 WIN_SETFEATURES = 0xef
2266 WIN_SETIDLE1 = 0xe3
2267 WIN_SETIDLE2 = 0x97
2268 WIN_SETMULT = 0xc6
2269 WIN_SET_MAX = 0xf9
2270 WIN_SET_MAX_EXT = 0x37
2271 WIN_SLEEPNOW1 = 0xe6
2272 WIN_SLEEPNOW2 = 0x99
2273 WIN_SMART = 0xb0
2274 WIN_SPECIFY = 0x91
2275 WIN_SRST = 0x8
2276 WIN_STANDBY = 0xe2
2277 WIN_STANDBY2 = 0x96
2278 WIN_STANDBYNOW1 = 0xe0
2279 WIN_STANDBYNOW2 = 0x94
2280 WIN_VERIFY = 0x40
2281 WIN_VERIFY_EXT = 0x42
2282 WIN_VERIFY_ONCE = 0x41
2283 WIN_WRITE = 0x30
2284 WIN_WRITEDMA = 0xca
2285 WIN_WRITEDMA_EXT = 0x35
2286 WIN_WRITEDMA_ONCE = 0xcb
2287 WIN_WRITEDMA_QUEUED = 0xcc
2288 WIN_WRITEDMA_QUEUED_EXT = 0x36
2289 WIN_WRITE_BUFFER = 0xe8
2290 WIN_WRITE_EXT = 0x34
2291 WIN_WRITE_LONG = 0x32
2292 WIN_WRITE_LONG_ONCE = 0x33
2293 WIN_WRITE_ONCE = 0x31
2294 WIN_WRITE_SAME = 0xe9
2295 WIN_WRITE_VERIFY = 0x3c
2296 WNOHANG = 0x1
2297 WNOTHREAD = 0x20000000
2298 WNOWAIT = 0x1000000
2299 WORDSIZE = 0x40
2300 WSTOPPED = 0x2
2301 WUNTRACED = 0x2
2302 XATTR_CREATE = 0x1
2303 XATTR_REPLACE = 0x2
2304 XCASE = 0x4
2305 XDP_COPY = 0x2
2306 XDP_FLAGS_DRV_MODE = 0x4
2307 XDP_FLAGS_HW_MODE = 0x8
2308 XDP_FLAGS_MASK = 0xf
2309 XDP_FLAGS_MODES = 0xe
2310 XDP_FLAGS_SKB_MODE = 0x2
2311 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2312 XDP_MMAP_OFFSETS = 0x1
2313 XDP_PGOFF_RX_RING = 0x0
2314 XDP_PGOFF_TX_RING = 0x80000000
2315 XDP_RX_RING = 0x2
2316 XDP_SHARED_UMEM = 0x1
2317 XDP_STATISTICS = 0x7
2318 XDP_TX_RING = 0x3
2319 XDP_UMEM_COMPLETION_RING = 0x6
2320 XDP_UMEM_FILL_RING = 0x5
2321 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2322 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2323 XDP_UMEM_REG = 0x4
2324 XDP_ZEROCOPY = 0x4
2325 XENFS_SUPER_MAGIC = 0xabba1974
2326 XTABS = 0x1800
2327 ZSMALLOC_MAGIC = 0x58295829
2328)
2329
2330// Errors
2331const (
2332 E2BIG = syscall.Errno(0x7)
2333 EACCES = syscall.Errno(0xd)
2334 EADDRINUSE = syscall.Errno(0x62)
2335 EADDRNOTAVAIL = syscall.Errno(0x63)
2336 EADV = syscall.Errno(0x44)
2337 EAFNOSUPPORT = syscall.Errno(0x61)
2338 EAGAIN = syscall.Errno(0xb)
2339 EALREADY = syscall.Errno(0x72)
2340 EBADE = syscall.Errno(0x34)
2341 EBADF = syscall.Errno(0x9)
2342 EBADFD = syscall.Errno(0x4d)
2343 EBADMSG = syscall.Errno(0x4a)
2344 EBADR = syscall.Errno(0x35)
2345 EBADRQC = syscall.Errno(0x38)
2346 EBADSLT = syscall.Errno(0x39)
2347 EBFONT = syscall.Errno(0x3b)
2348 EBUSY = syscall.Errno(0x10)
2349 ECANCELED = syscall.Errno(0x7d)
2350 ECHILD = syscall.Errno(0xa)
2351 ECHRNG = syscall.Errno(0x2c)
2352 ECOMM = syscall.Errno(0x46)
2353 ECONNABORTED = syscall.Errno(0x67)
2354 ECONNREFUSED = syscall.Errno(0x6f)
2355 ECONNRESET = syscall.Errno(0x68)
2356 EDEADLK = syscall.Errno(0x23)
2357 EDEADLOCK = syscall.Errno(0x23)
2358 EDESTADDRREQ = syscall.Errno(0x59)
2359 EDOM = syscall.Errno(0x21)
2360 EDOTDOT = syscall.Errno(0x49)
2361 EDQUOT = syscall.Errno(0x7a)
2362 EEXIST = syscall.Errno(0x11)
2363 EFAULT = syscall.Errno(0xe)
2364 EFBIG = syscall.Errno(0x1b)
2365 EHOSTDOWN = syscall.Errno(0x70)
2366 EHOSTUNREACH = syscall.Errno(0x71)
2367 EHWPOISON = syscall.Errno(0x85)
2368 EIDRM = syscall.Errno(0x2b)
2369 EILSEQ = syscall.Errno(0x54)
2370 EINPROGRESS = syscall.Errno(0x73)
2371 EINTR = syscall.Errno(0x4)
2372 EINVAL = syscall.Errno(0x16)
2373 EIO = syscall.Errno(0x5)
2374 EISCONN = syscall.Errno(0x6a)
2375 EISDIR = syscall.Errno(0x15)
2376 EISNAM = syscall.Errno(0x78)
2377 EKEYEXPIRED = syscall.Errno(0x7f)
2378 EKEYREJECTED = syscall.Errno(0x81)
2379 EKEYREVOKED = syscall.Errno(0x80)
2380 EL2HLT = syscall.Errno(0x33)
2381 EL2NSYNC = syscall.Errno(0x2d)
2382 EL3HLT = syscall.Errno(0x2e)
2383 EL3RST = syscall.Errno(0x2f)
2384 ELIBACC = syscall.Errno(0x4f)
2385 ELIBBAD = syscall.Errno(0x50)
2386 ELIBEXEC = syscall.Errno(0x53)
2387 ELIBMAX = syscall.Errno(0x52)
2388 ELIBSCN = syscall.Errno(0x51)
2389 ELNRNG = syscall.Errno(0x30)
2390 ELOOP = syscall.Errno(0x28)
2391 EMEDIUMTYPE = syscall.Errno(0x7c)
2392 EMFILE = syscall.Errno(0x18)
2393 EMLINK = syscall.Errno(0x1f)
2394 EMSGSIZE = syscall.Errno(0x5a)
2395 EMULTIHOP = syscall.Errno(0x48)
2396 ENAMETOOLONG = syscall.Errno(0x24)
2397 ENAVAIL = syscall.Errno(0x77)
2398 ENETDOWN = syscall.Errno(0x64)
2399 ENETRESET = syscall.Errno(0x66)
2400 ENETUNREACH = syscall.Errno(0x65)
2401 ENFILE = syscall.Errno(0x17)
2402 ENOANO = syscall.Errno(0x37)
2403 ENOBUFS = syscall.Errno(0x69)
2404 ENOCSI = syscall.Errno(0x32)
2405 ENODATA = syscall.Errno(0x3d)
2406 ENODEV = syscall.Errno(0x13)
2407 ENOENT = syscall.Errno(0x2)
2408 ENOEXEC = syscall.Errno(0x8)
2409 ENOKEY = syscall.Errno(0x7e)
2410 ENOLCK = syscall.Errno(0x25)
2411 ENOLINK = syscall.Errno(0x43)
2412 ENOMEDIUM = syscall.Errno(0x7b)
2413 ENOMEM = syscall.Errno(0xc)
2414 ENOMSG = syscall.Errno(0x2a)
2415 ENONET = syscall.Errno(0x40)
2416 ENOPKG = syscall.Errno(0x41)
2417 ENOPROTOOPT = syscall.Errno(0x5c)
2418 ENOSPC = syscall.Errno(0x1c)
2419 ENOSR = syscall.Errno(0x3f)
2420 ENOSTR = syscall.Errno(0x3c)
2421 ENOSYS = syscall.Errno(0x26)
2422 ENOTBLK = syscall.Errno(0xf)
2423 ENOTCONN = syscall.Errno(0x6b)
2424 ENOTDIR = syscall.Errno(0x14)
2425 ENOTEMPTY = syscall.Errno(0x27)
2426 ENOTNAM = syscall.Errno(0x76)
2427 ENOTRECOVERABLE = syscall.Errno(0x83)
2428 ENOTSOCK = syscall.Errno(0x58)
2429 ENOTSUP = syscall.Errno(0x5f)
2430 ENOTTY = syscall.Errno(0x19)
2431 ENOTUNIQ = syscall.Errno(0x4c)
2432 ENXIO = syscall.Errno(0x6)
2433 EOPNOTSUPP = syscall.Errno(0x5f)
2434 EOVERFLOW = syscall.Errno(0x4b)
2435 EOWNERDEAD = syscall.Errno(0x82)
2436 EPERM = syscall.Errno(0x1)
2437 EPFNOSUPPORT = syscall.Errno(0x60)
2438 EPIPE = syscall.Errno(0x20)
2439 EPROTO = syscall.Errno(0x47)
2440 EPROTONOSUPPORT = syscall.Errno(0x5d)
2441 EPROTOTYPE = syscall.Errno(0x5b)
2442 ERANGE = syscall.Errno(0x22)
2443 EREMCHG = syscall.Errno(0x4e)
2444 EREMOTE = syscall.Errno(0x42)
2445 EREMOTEIO = syscall.Errno(0x79)
2446 ERESTART = syscall.Errno(0x55)
2447 ERFKILL = syscall.Errno(0x84)
2448 EROFS = syscall.Errno(0x1e)
2449 ESHUTDOWN = syscall.Errno(0x6c)
2450 ESOCKTNOSUPPORT = syscall.Errno(0x5e)
2451 ESPIPE = syscall.Errno(0x1d)
2452 ESRCH = syscall.Errno(0x3)
2453 ESRMNT = syscall.Errno(0x45)
2454 ESTALE = syscall.Errno(0x74)
2455 ESTRPIPE = syscall.Errno(0x56)
2456 ETIME = syscall.Errno(0x3e)
2457 ETIMEDOUT = syscall.Errno(0x6e)
2458 ETOOMANYREFS = syscall.Errno(0x6d)
2459 ETXTBSY = syscall.Errno(0x1a)
2460 EUCLEAN = syscall.Errno(0x75)
2461 EUNATCH = syscall.Errno(0x31)
2462 EUSERS = syscall.Errno(0x57)
2463 EWOULDBLOCK = syscall.Errno(0xb)
2464 EXDEV = syscall.Errno(0x12)
2465 EXFULL = syscall.Errno(0x36)
2466)
2467
2468// Signals
2469const (
2470 SIGABRT = syscall.Signal(0x6)
2471 SIGALRM = syscall.Signal(0xe)
2472 SIGBUS = syscall.Signal(0x7)
2473 SIGCHLD = syscall.Signal(0x11)
2474 SIGCLD = syscall.Signal(0x11)
2475 SIGCONT = syscall.Signal(0x12)
2476 SIGFPE = syscall.Signal(0x8)
2477 SIGHUP = syscall.Signal(0x1)
2478 SIGILL = syscall.Signal(0x4)
2479 SIGINT = syscall.Signal(0x2)
2480 SIGIO = syscall.Signal(0x1d)
2481 SIGIOT = syscall.Signal(0x6)
2482 SIGKILL = syscall.Signal(0x9)
2483 SIGPIPE = syscall.Signal(0xd)
2484 SIGPOLL = syscall.Signal(0x1d)
2485 SIGPROF = syscall.Signal(0x1b)
2486 SIGPWR = syscall.Signal(0x1e)
2487 SIGQUIT = syscall.Signal(0x3)
2488 SIGSEGV = syscall.Signal(0xb)
2489 SIGSTKFLT = syscall.Signal(0x10)
2490 SIGSTOP = syscall.Signal(0x13)
2491 SIGSYS = syscall.Signal(0x1f)
2492 SIGTERM = syscall.Signal(0xf)
2493 SIGTRAP = syscall.Signal(0x5)
2494 SIGTSTP = syscall.Signal(0x14)
2495 SIGTTIN = syscall.Signal(0x15)
2496 SIGTTOU = syscall.Signal(0x16)
2497 SIGURG = syscall.Signal(0x17)
2498 SIGUSR1 = syscall.Signal(0xa)
2499 SIGUSR2 = syscall.Signal(0xc)
2500 SIGVTALRM = syscall.Signal(0x1a)
2501 SIGWINCH = syscall.Signal(0x1c)
2502 SIGXCPU = syscall.Signal(0x18)
2503 SIGXFSZ = syscall.Signal(0x19)
2504)
2505
2506// Error table
2507var errorList = [...]struct {
2508 num syscall.Errno
2509 name string
2510 desc string
2511}{
2512 {1, "EPERM", "operation not permitted"},
2513 {2, "ENOENT", "no such file or directory"},
2514 {3, "ESRCH", "no such process"},
2515 {4, "EINTR", "interrupted system call"},
2516 {5, "EIO", "input/output error"},
2517 {6, "ENXIO", "no such device or address"},
2518 {7, "E2BIG", "argument list too long"},
2519 {8, "ENOEXEC", "exec format error"},
2520 {9, "EBADF", "bad file descriptor"},
2521 {10, "ECHILD", "no child processes"},
2522 {11, "EAGAIN", "resource temporarily unavailable"},
2523 {12, "ENOMEM", "cannot allocate memory"},
2524 {13, "EACCES", "permission denied"},
2525 {14, "EFAULT", "bad address"},
2526 {15, "ENOTBLK", "block device required"},
2527 {16, "EBUSY", "device or resource busy"},
2528 {17, "EEXIST", "file exists"},
2529 {18, "EXDEV", "invalid cross-device link"},
2530 {19, "ENODEV", "no such device"},
2531 {20, "ENOTDIR", "not a directory"},
2532 {21, "EISDIR", "is a directory"},
2533 {22, "EINVAL", "invalid argument"},
2534 {23, "ENFILE", "too many open files in system"},
2535 {24, "EMFILE", "too many open files"},
2536 {25, "ENOTTY", "inappropriate ioctl for device"},
2537 {26, "ETXTBSY", "text file busy"},
2538 {27, "EFBIG", "file too large"},
2539 {28, "ENOSPC", "no space left on device"},
2540 {29, "ESPIPE", "illegal seek"},
2541 {30, "EROFS", "read-only file system"},
2542 {31, "EMLINK", "too many links"},
2543 {32, "EPIPE", "broken pipe"},
2544 {33, "EDOM", "numerical argument out of domain"},
2545 {34, "ERANGE", "numerical result out of range"},
2546 {35, "EDEADLK", "resource deadlock avoided"},
2547 {36, "ENAMETOOLONG", "file name too long"},
2548 {37, "ENOLCK", "no locks available"},
2549 {38, "ENOSYS", "function not implemented"},
2550 {39, "ENOTEMPTY", "directory not empty"},
2551 {40, "ELOOP", "too many levels of symbolic links"},
2552 {42, "ENOMSG", "no message of desired type"},
2553 {43, "EIDRM", "identifier removed"},
2554 {44, "ECHRNG", "channel number out of range"},
2555 {45, "EL2NSYNC", "level 2 not synchronized"},
2556 {46, "EL3HLT", "level 3 halted"},
2557 {47, "EL3RST", "level 3 reset"},
2558 {48, "ELNRNG", "link number out of range"},
2559 {49, "EUNATCH", "protocol driver not attached"},
2560 {50, "ENOCSI", "no CSI structure available"},
2561 {51, "EL2HLT", "level 2 halted"},
2562 {52, "EBADE", "invalid exchange"},
2563 {53, "EBADR", "invalid request descriptor"},
2564 {54, "EXFULL", "exchange full"},
2565 {55, "ENOANO", "no anode"},
2566 {56, "EBADRQC", "invalid request code"},
2567 {57, "EBADSLT", "invalid slot"},
2568 {59, "EBFONT", "bad font file format"},
2569 {60, "ENOSTR", "device not a stream"},
2570 {61, "ENODATA", "no data available"},
2571 {62, "ETIME", "timer expired"},
2572 {63, "ENOSR", "out of streams resources"},
2573 {64, "ENONET", "machine is not on the network"},
2574 {65, "ENOPKG", "package not installed"},
2575 {66, "EREMOTE", "object is remote"},
2576 {67, "ENOLINK", "link has been severed"},
2577 {68, "EADV", "advertise error"},
2578 {69, "ESRMNT", "srmount error"},
2579 {70, "ECOMM", "communication error on send"},
2580 {71, "EPROTO", "protocol error"},
2581 {72, "EMULTIHOP", "multihop attempted"},
2582 {73, "EDOTDOT", "RFS specific error"},
2583 {74, "EBADMSG", "bad message"},
2584 {75, "EOVERFLOW", "value too large for defined data type"},
2585 {76, "ENOTUNIQ", "name not unique on network"},
2586 {77, "EBADFD", "file descriptor in bad state"},
2587 {78, "EREMCHG", "remote address changed"},
2588 {79, "ELIBACC", "can not access a needed shared library"},
2589 {80, "ELIBBAD", "accessing a corrupted shared library"},
2590 {81, "ELIBSCN", ".lib section in a.out corrupted"},
2591 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
2592 {83, "ELIBEXEC", "cannot exec a shared library directly"},
2593 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2594 {85, "ERESTART", "interrupted system call should be restarted"},
2595 {86, "ESTRPIPE", "streams pipe error"},
2596 {87, "EUSERS", "too many users"},
2597 {88, "ENOTSOCK", "socket operation on non-socket"},
2598 {89, "EDESTADDRREQ", "destination address required"},
2599 {90, "EMSGSIZE", "message too long"},
2600 {91, "EPROTOTYPE", "protocol wrong type for socket"},
2601 {92, "ENOPROTOOPT", "protocol not available"},
2602 {93, "EPROTONOSUPPORT", "protocol not supported"},
2603 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
2604 {95, "ENOTSUP", "operation not supported"},
2605 {96, "EPFNOSUPPORT", "protocol family not supported"},
2606 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
2607 {98, "EADDRINUSE", "address already in use"},
2608 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
2609 {100, "ENETDOWN", "network is down"},
2610 {101, "ENETUNREACH", "network is unreachable"},
2611 {102, "ENETRESET", "network dropped connection on reset"},
2612 {103, "ECONNABORTED", "software caused connection abort"},
2613 {104, "ECONNRESET", "connection reset by peer"},
2614 {105, "ENOBUFS", "no buffer space available"},
2615 {106, "EISCONN", "transport endpoint is already connected"},
2616 {107, "ENOTCONN", "transport endpoint is not connected"},
2617 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2618 {109, "ETOOMANYREFS", "too many references: cannot splice"},
2619 {110, "ETIMEDOUT", "connection timed out"},
2620 {111, "ECONNREFUSED", "connection refused"},
2621 {112, "EHOSTDOWN", "host is down"},
2622 {113, "EHOSTUNREACH", "no route to host"},
2623 {114, "EALREADY", "operation already in progress"},
2624 {115, "EINPROGRESS", "operation now in progress"},
2625 {116, "ESTALE", "stale file handle"},
2626 {117, "EUCLEAN", "structure needs cleaning"},
2627 {118, "ENOTNAM", "not a XENIX named type file"},
2628 {119, "ENAVAIL", "no XENIX semaphores available"},
2629 {120, "EISNAM", "is a named type file"},
2630 {121, "EREMOTEIO", "remote I/O error"},
2631 {122, "EDQUOT", "disk quota exceeded"},
2632 {123, "ENOMEDIUM", "no medium found"},
2633 {124, "EMEDIUMTYPE", "wrong medium type"},
2634 {125, "ECANCELED", "operation canceled"},
2635 {126, "ENOKEY", "required key not available"},
2636 {127, "EKEYEXPIRED", "key has expired"},
2637 {128, "EKEYREVOKED", "key has been revoked"},
2638 {129, "EKEYREJECTED", "key was rejected by service"},
2639 {130, "EOWNERDEAD", "owner died"},
2640 {131, "ENOTRECOVERABLE", "state not recoverable"},
2641 {132, "ERFKILL", "operation not possible due to RF-kill"},
2642 {133, "EHWPOISON", "memory page has hardware error"},
2643}
2644
2645// Signal table
2646var signalList = [...]struct {
2647 num syscall.Signal
2648 name string
2649 desc string
2650}{
2651 {1, "SIGHUP", "hangup"},
2652 {2, "SIGINT", "interrupt"},
2653 {3, "SIGQUIT", "quit"},
2654 {4, "SIGILL", "illegal instruction"},
2655 {5, "SIGTRAP", "trace/breakpoint trap"},
2656 {6, "SIGABRT", "aborted"},
2657 {7, "SIGBUS", "bus error"},
2658 {8, "SIGFPE", "floating point exception"},
2659 {9, "SIGKILL", "killed"},
2660 {10, "SIGUSR1", "user defined signal 1"},
2661 {11, "SIGSEGV", "segmentation fault"},
2662 {12, "SIGUSR2", "user defined signal 2"},
2663 {13, "SIGPIPE", "broken pipe"},
2664 {14, "SIGALRM", "alarm clock"},
2665 {15, "SIGTERM", "terminated"},
2666 {16, "SIGSTKFLT", "stack fault"},
2667 {17, "SIGCHLD", "child exited"},
2668 {18, "SIGCONT", "continued"},
2669 {19, "SIGSTOP", "stopped (signal)"},
2670 {20, "SIGTSTP", "stopped"},
2671 {21, "SIGTTIN", "stopped (tty input)"},
2672 {22, "SIGTTOU", "stopped (tty output)"},
2673 {23, "SIGURG", "urgent I/O condition"},
2674 {24, "SIGXCPU", "CPU time limit exceeded"},
2675 {25, "SIGXFSZ", "file size limit exceeded"},
2676 {26, "SIGVTALRM", "virtual timer expired"},
2677 {27, "SIGPROF", "profiling timer expired"},
2678 {28, "SIGWINCH", "window changed"},
2679 {29, "SIGIO", "I/O possible"},
2680 {30, "SIGPWR", "power failure"},
2681 {31, "SIGSYS", "bad system call"},
2682}
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 af5a895..f33d031 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
@@ -3,7 +3,7 @@
3 3
4// +build s390x,linux 4// +build s390x,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
8 8
9package unix 9package unix
@@ -11,6 +11,11 @@ package unix
11import "syscall" 11import "syscall"
12 12
13const ( 13const (
14 AAFS_MAGIC = 0x5a3c69f0
15 ADFS_SUPER_MAGIC = 0xadf5
16 AFFS_SUPER_MAGIC = 0xadff
17 AFS_FS_MAGIC = 0x6b414653
18 AFS_SUPER_MAGIC = 0x5346414f
14 AF_ALG = 0x26 19 AF_ALG = 0x26
15 AF_APPLETALK = 0x5 20 AF_APPLETALK = 0x5
16 AF_ASH = 0x12 21 AF_ASH = 0x12
@@ -59,6 +64,7 @@ const (
59 AF_VSOCK = 0x28 64 AF_VSOCK = 0x28
60 AF_WANPIPE = 0x19 65 AF_WANPIPE = 0x19
61 AF_X25 = 0x9 66 AF_X25 = 0x9
67 AF_XDP = 0x2c
62 ALG_OP_DECRYPT = 0x0 68 ALG_OP_DECRYPT = 0x0
63 ALG_OP_ENCRYPT = 0x1 69 ALG_OP_ENCRYPT = 0x1
64 ALG_SET_AEAD_ASSOCLEN = 0x4 70 ALG_SET_AEAD_ASSOCLEN = 0x4
@@ -66,6 +72,7 @@ const (
66 ALG_SET_IV = 0x2 72 ALG_SET_IV = 0x2
67 ALG_SET_KEY = 0x1 73 ALG_SET_KEY = 0x1
68 ALG_SET_OP = 0x3 74 ALG_SET_OP = 0x3
75 ANON_INODE_FS_MAGIC = 0x9041934
69 ARPHRD_6LOWPAN = 0x339 76 ARPHRD_6LOWPAN = 0x339
70 ARPHRD_ADAPT = 0x108 77 ARPHRD_ADAPT = 0x108
71 ARPHRD_APPLETLK = 0x8 78 ARPHRD_APPLETLK = 0x8
@@ -121,6 +128,7 @@ const (
121 ARPHRD_PPP = 0x200 128 ARPHRD_PPP = 0x200
122 ARPHRD_PRONET = 0x4 129 ARPHRD_PRONET = 0x4
123 ARPHRD_RAWHDLC = 0x206 130 ARPHRD_RAWHDLC = 0x206
131 ARPHRD_RAWIP = 0x207
124 ARPHRD_ROSE = 0x10e 132 ARPHRD_ROSE = 0x10e
125 ARPHRD_RSRVD = 0x104 133 ARPHRD_RSRVD = 0x104
126 ARPHRD_SIT = 0x308 134 ARPHRD_SIT = 0x308
@@ -132,6 +140,7 @@ const (
132 ARPHRD_VOID = 0xffff 140 ARPHRD_VOID = 0xffff
133 ARPHRD_VSOCKMON = 0x33a 141 ARPHRD_VSOCKMON = 0x33a
134 ARPHRD_X25 = 0x10f 142 ARPHRD_X25 = 0x10f
143 AUTOFS_SUPER_MAGIC = 0x187
135 B0 = 0x0 144 B0 = 0x0
136 B1000000 = 0x1008 145 B1000000 = 0x1008
137 B110 = 0x3 146 B110 = 0x3
@@ -163,6 +172,9 @@ const (
163 B75 = 0x2 172 B75 = 0x2
164 B921600 = 0x1007 173 B921600 = 0x1007
165 B9600 = 0xd 174 B9600 = 0xd
175 BALLOON_KVM_MAGIC = 0x13661366
176 BDEVFS_MAGIC = 0x62646576
177 BINFMTFS_MAGIC = 0x42494e4d
166 BLKBSZGET = 0x80081270 178 BLKBSZGET = 0x80081270
167 BLKBSZSET = 0x40081271 179 BLKBSZSET = 0x40081271
168 BLKFLSBUF = 0x1261 180 BLKFLSBUF = 0x1261
@@ -187,6 +199,7 @@ const (
187 BPF_AND = 0x50 199 BPF_AND = 0x50
188 BPF_B = 0x10 200 BPF_B = 0x10
189 BPF_DIV = 0x30 201 BPF_DIV = 0x30
202 BPF_FS_MAGIC = 0xcafe4a11
190 BPF_H = 0x8 203 BPF_H = 0x8
191 BPF_IMM = 0x0 204 BPF_IMM = 0x0
192 BPF_IND = 0x40 205 BPF_IND = 0x40
@@ -228,6 +241,8 @@ const (
228 BS0 = 0x0 241 BS0 = 0x0
229 BS1 = 0x2000 242 BS1 = 0x2000
230 BSDLY = 0x2000 243 BSDLY = 0x2000
244 BTRFS_SUPER_MAGIC = 0x9123683e
245 BTRFS_TEST_MAGIC = 0x73727279
231 CAN_BCM = 0x2 246 CAN_BCM = 0x2
232 CAN_EFF_FLAG = 0x80000000 247 CAN_EFF_FLAG = 0x80000000
233 CAN_EFF_ID_BITS = 0x1d 248 CAN_EFF_ID_BITS = 0x1d
@@ -251,6 +266,8 @@ const (
251 CBAUD = 0x100f 266 CBAUD = 0x100f
252 CBAUDEX = 0x1000 267 CBAUDEX = 0x1000
253 CFLUSH = 0xf 268 CFLUSH = 0xf
269 CGROUP2_SUPER_MAGIC = 0x63677270
270 CGROUP_SUPER_MAGIC = 0x27e0eb
254 CIBAUD = 0x100f0000 271 CIBAUD = 0x100f0000
255 CLOCAL = 0x800 272 CLOCAL = 0x800
256 CLOCK_BOOTTIME = 0x7 273 CLOCK_BOOTTIME = 0x7
@@ -293,10 +310,12 @@ const (
293 CLONE_VFORK = 0x4000 310 CLONE_VFORK = 0x4000
294 CLONE_VM = 0x100 311 CLONE_VM = 0x100
295 CMSPAR = 0x40000000 312 CMSPAR = 0x40000000
313 CODA_SUPER_MAGIC = 0x73757245
296 CR0 = 0x0 314 CR0 = 0x0
297 CR1 = 0x200 315 CR1 = 0x200
298 CR2 = 0x400 316 CR2 = 0x400
299 CR3 = 0x600 317 CR3 = 0x600
318 CRAMFS_MAGIC = 0x28cd3d45
300 CRDLY = 0x600 319 CRDLY = 0x600
301 CREAD = 0x80 320 CREAD = 0x80
302 CRTSCTS = 0x80000000 321 CRTSCTS = 0x80000000
@@ -311,6 +330,9 @@ const (
311 CSTOP = 0x13 330 CSTOP = 0x13
312 CSTOPB = 0x40 331 CSTOPB = 0x40
313 CSUSP = 0x1a 332 CSUSP = 0x1a
333 DAXFS_MAGIC = 0x64646178
334 DEBUGFS_MAGIC = 0x64626720
335 DEVPTS_SUPER_MAGIC = 0x1cd1
314 DT_BLK = 0x6 336 DT_BLK = 0x6
315 DT_CHR = 0x2 337 DT_CHR = 0x2
316 DT_DIR = 0x4 338 DT_DIR = 0x4
@@ -327,9 +349,12 @@ const (
327 ECHOKE = 0x800 349 ECHOKE = 0x800
328 ECHONL = 0x40 350 ECHONL = 0x40
329 ECHOPRT = 0x400 351 ECHOPRT = 0x400
352 ECRYPTFS_SUPER_MAGIC = 0xf15f
330 EFD_CLOEXEC = 0x80000 353 EFD_CLOEXEC = 0x80000
331 EFD_NONBLOCK = 0x800 354 EFD_NONBLOCK = 0x800
332 EFD_SEMAPHORE = 0x1 355 EFD_SEMAPHORE = 0x1
356 EFIVARFS_MAGIC = 0xde5e81e4
357 EFS_SUPER_MAGIC = 0x414a53
333 ENCODING_DEFAULT = 0x0 358 ENCODING_DEFAULT = 0x0
334 ENCODING_FM_MARK = 0x3 359 ENCODING_FM_MARK = 0x3
335 ENCODING_FM_SPACE = 0x4 360 ENCODING_FM_SPACE = 0x4
@@ -390,6 +415,8 @@ const (
390 ETH_P_DSA = 0x1b 415 ETH_P_DSA = 0x1b
391 ETH_P_ECONET = 0x18 416 ETH_P_ECONET = 0x18
392 ETH_P_EDSA = 0xdada 417 ETH_P_EDSA = 0xdada
418 ETH_P_ERSPAN = 0x88be
419 ETH_P_ERSPAN2 = 0x22eb
393 ETH_P_FCOE = 0x8906 420 ETH_P_FCOE = 0x8906
394 ETH_P_FIP = 0x8914 421 ETH_P_FIP = 0x8914
395 ETH_P_HDLC = 0x19 422 ETH_P_HDLC = 0x19
@@ -398,6 +425,7 @@ const (
398 ETH_P_IEEE802154 = 0xf6 425 ETH_P_IEEE802154 = 0xf6
399 ETH_P_IEEEPUP = 0xa00 426 ETH_P_IEEEPUP = 0xa00
400 ETH_P_IEEEPUPAT = 0xa01 427 ETH_P_IEEEPUPAT = 0xa01
428 ETH_P_IFE = 0xed3e
401 ETH_P_IP = 0x800 429 ETH_P_IP = 0x800
402 ETH_P_IPV6 = 0x86dd 430 ETH_P_IPV6 = 0x86dd
403 ETH_P_IPX = 0x8137 431 ETH_P_IPX = 0x8137
@@ -408,11 +436,13 @@ const (
408 ETH_P_LOOP = 0x60 436 ETH_P_LOOP = 0x60
409 ETH_P_LOOPBACK = 0x9000 437 ETH_P_LOOPBACK = 0x9000
410 ETH_P_MACSEC = 0x88e5 438 ETH_P_MACSEC = 0x88e5
439 ETH_P_MAP = 0xf9
411 ETH_P_MOBITEX = 0x15 440 ETH_P_MOBITEX = 0x15
412 ETH_P_MPLS_MC = 0x8848 441 ETH_P_MPLS_MC = 0x8848
413 ETH_P_MPLS_UC = 0x8847 442 ETH_P_MPLS_UC = 0x8847
414 ETH_P_MVRP = 0x88f5 443 ETH_P_MVRP = 0x88f5
415 ETH_P_NCSI = 0x88f8 444 ETH_P_NCSI = 0x88f8
445 ETH_P_NSH = 0x894f
416 ETH_P_PAE = 0x888e 446 ETH_P_PAE = 0x888e
417 ETH_P_PAUSE = 0x8808 447 ETH_P_PAUSE = 0x8808
418 ETH_P_PHONET = 0xf5 448 ETH_P_PHONET = 0xf5
@@ -420,6 +450,7 @@ const (
420 ETH_P_PPP_DISC = 0x8863 450 ETH_P_PPP_DISC = 0x8863
421 ETH_P_PPP_MP = 0x8 451 ETH_P_PPP_MP = 0x8
422 ETH_P_PPP_SES = 0x8864 452 ETH_P_PPP_SES = 0x8864
453 ETH_P_PREAUTH = 0x88c7
423 ETH_P_PRP = 0x88fb 454 ETH_P_PRP = 0x88fb
424 ETH_P_PUP = 0x200 455 ETH_P_PUP = 0x200
425 ETH_P_PUPAT = 0x201 456 ETH_P_PUPAT = 0x201
@@ -440,9 +471,14 @@ const (
440 ETH_P_WCCP = 0x883e 471 ETH_P_WCCP = 0x883e
441 ETH_P_X25 = 0x805 472 ETH_P_X25 = 0x805
442 ETH_P_XDSA = 0xf8 473 ETH_P_XDSA = 0xf8
474 EXABYTE_ENABLE_NEST = 0xf0
475 EXT2_SUPER_MAGIC = 0xef53
476 EXT3_SUPER_MAGIC = 0xef53
477 EXT4_SUPER_MAGIC = 0xef53
443 EXTA = 0xe 478 EXTA = 0xe
444 EXTB = 0xf 479 EXTB = 0xf
445 EXTPROC = 0x10000 480 EXTPROC = 0x10000
481 F2FS_SUPER_MAGIC = 0xf2f52010
446 FALLOC_FL_COLLAPSE_RANGE = 0x8 482 FALLOC_FL_COLLAPSE_RANGE = 0x8
447 FALLOC_FL_INSERT_RANGE = 0x20 483 FALLOC_FL_INSERT_RANGE = 0x20
448 FALLOC_FL_KEEP_SIZE = 0x1 484 FALLOC_FL_KEEP_SIZE = 0x1
@@ -463,6 +499,8 @@ const (
463 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 499 FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
464 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 500 FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
465 FS_ENCRYPTION_MODE_INVALID = 0x0 501 FS_ENCRYPTION_MODE_INVALID = 0x0
502 FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
503 FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
466 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 504 FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
467 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 505 FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
468 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 506 FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
@@ -476,6 +514,8 @@ const (
476 FS_POLICY_FLAGS_PAD_8 = 0x1 514 FS_POLICY_FLAGS_PAD_8 = 0x1
477 FS_POLICY_FLAGS_PAD_MASK = 0x3 515 FS_POLICY_FLAGS_PAD_MASK = 0x3
478 FS_POLICY_FLAGS_VALID = 0x3 516 FS_POLICY_FLAGS_VALID = 0x3
517 FUTEXFS_SUPER_MAGIC = 0xbad1dea
518 F_ADD_SEALS = 0x409
479 F_DUPFD = 0x0 519 F_DUPFD = 0x0
480 F_DUPFD_CLOEXEC = 0x406 520 F_DUPFD_CLOEXEC = 0x406
481 F_EXLCK = 0x4 521 F_EXLCK = 0x4
@@ -488,6 +528,9 @@ const (
488 F_GETOWN_EX = 0x10 528 F_GETOWN_EX = 0x10
489 F_GETPIPE_SZ = 0x408 529 F_GETPIPE_SZ = 0x408
490 F_GETSIG = 0xb 530 F_GETSIG = 0xb
531 F_GET_FILE_RW_HINT = 0x40d
532 F_GET_RW_HINT = 0x40b
533 F_GET_SEALS = 0x40a
491 F_LOCK = 0x1 534 F_LOCK = 0x1
492 F_NOTIFY = 0x402 535 F_NOTIFY = 0x402
493 F_OFD_GETLK = 0x24 536 F_OFD_GETLK = 0x24
@@ -495,6 +538,10 @@ const (
495 F_OFD_SETLKW = 0x26 538 F_OFD_SETLKW = 0x26
496 F_OK = 0x0 539 F_OK = 0x0
497 F_RDLCK = 0x0 540 F_RDLCK = 0x0
541 F_SEAL_GROW = 0x4
542 F_SEAL_SEAL = 0x1
543 F_SEAL_SHRINK = 0x2
544 F_SEAL_WRITE = 0x8
498 F_SETFD = 0x2 545 F_SETFD = 0x2
499 F_SETFL = 0x4 546 F_SETFL = 0x4
500 F_SETLEASE = 0x400 547 F_SETLEASE = 0x400
@@ -506,6 +553,8 @@ const (
506 F_SETOWN_EX = 0xf 553 F_SETOWN_EX = 0xf
507 F_SETPIPE_SZ = 0x407 554 F_SETPIPE_SZ = 0x407
508 F_SETSIG = 0xa 555 F_SETSIG = 0xa
556 F_SET_FILE_RW_HINT = 0x40e
557 F_SET_RW_HINT = 0x40c
509 F_SHLCK = 0x8 558 F_SHLCK = 0x8
510 F_TEST = 0x3 559 F_TEST = 0x3
511 F_TLOCK = 0x2 560 F_TLOCK = 0x2
@@ -527,6 +576,49 @@ const (
527 GENL_UNS_ADMIN_PERM = 0x10 576 GENL_UNS_ADMIN_PERM = 0x10
528 GRND_NONBLOCK = 0x1 577 GRND_NONBLOCK = 0x1
529 GRND_RANDOM = 0x2 578 GRND_RANDOM = 0x2
579 HDIO_DRIVE_CMD = 0x31f
580 HDIO_DRIVE_CMD_AEB = 0x31e
581 HDIO_DRIVE_CMD_HDR_SIZE = 0x4
582 HDIO_DRIVE_HOB_HDR_SIZE = 0x8
583 HDIO_DRIVE_RESET = 0x31c
584 HDIO_DRIVE_TASK = 0x31e
585 HDIO_DRIVE_TASKFILE = 0x31d
586 HDIO_DRIVE_TASK_HDR_SIZE = 0x8
587 HDIO_GETGEO = 0x301
588 HDIO_GET_32BIT = 0x309
589 HDIO_GET_ACOUSTIC = 0x30f
590 HDIO_GET_ADDRESS = 0x310
591 HDIO_GET_BUSSTATE = 0x31a
592 HDIO_GET_DMA = 0x30b
593 HDIO_GET_IDENTITY = 0x30d
594 HDIO_GET_KEEPSETTINGS = 0x308
595 HDIO_GET_MULTCOUNT = 0x304
596 HDIO_GET_NICE = 0x30c
597 HDIO_GET_NOWERR = 0x30a
598 HDIO_GET_QDMA = 0x305
599 HDIO_GET_UNMASKINTR = 0x302
600 HDIO_GET_WCACHE = 0x30e
601 HDIO_OBSOLETE_IDENTITY = 0x307
602 HDIO_SCAN_HWIF = 0x328
603 HDIO_SET_32BIT = 0x324
604 HDIO_SET_ACOUSTIC = 0x32c
605 HDIO_SET_ADDRESS = 0x32f
606 HDIO_SET_BUSSTATE = 0x32d
607 HDIO_SET_DMA = 0x326
608 HDIO_SET_KEEPSETTINGS = 0x323
609 HDIO_SET_MULTCOUNT = 0x321
610 HDIO_SET_NICE = 0x329
611 HDIO_SET_NOWERR = 0x325
612 HDIO_SET_PIO_MODE = 0x327
613 HDIO_SET_QDMA = 0x32e
614 HDIO_SET_UNMASKINTR = 0x322
615 HDIO_SET_WCACHE = 0x32b
616 HDIO_SET_XFER = 0x306
617 HDIO_TRISTATE_HWIF = 0x31b
618 HDIO_UNREGISTER_HWIF = 0x32a
619 HOSTFS_SUPER_MAGIC = 0xc0ffee
620 HPFS_SUPER_MAGIC = 0xf995e849
621 HUGETLBFS_MAGIC = 0x958458f6
530 HUPCL = 0x400 622 HUPCL = 0x400
531 IBSHIFT = 0x10 623 IBSHIFT = 0x10
532 ICANON = 0x2 624 ICANON = 0x2
@@ -546,7 +638,7 @@ const (
546 IFA_F_STABLE_PRIVACY = 0x800 638 IFA_F_STABLE_PRIVACY = 0x800
547 IFA_F_TEMPORARY = 0x1 639 IFA_F_TEMPORARY = 0x1
548 IFA_F_TENTATIVE = 0x40 640 IFA_F_TENTATIVE = 0x40
549 IFA_MAX = 0x8 641 IFA_MAX = 0x9
550 IFF_ALLMULTI = 0x200 642 IFF_ALLMULTI = 0x200
551 IFF_ATTACH_QUEUE = 0x200 643 IFF_ATTACH_QUEUE = 0x200
552 IFF_AUTOMEDIA = 0x4000 644 IFF_AUTOMEDIA = 0x4000
@@ -561,6 +653,8 @@ const (
561 IFF_MASTER = 0x400 653 IFF_MASTER = 0x400
562 IFF_MULTICAST = 0x1000 654 IFF_MULTICAST = 0x1000
563 IFF_MULTI_QUEUE = 0x100 655 IFF_MULTI_QUEUE = 0x100
656 IFF_NAPI = 0x10
657 IFF_NAPI_FRAGS = 0x20
564 IFF_NOARP = 0x80 658 IFF_NOARP = 0x80
565 IFF_NOFILTER = 0x1000 659 IFF_NOFILTER = 0x1000
566 IFF_NOTRAILERS = 0x20 660 IFF_NOTRAILERS = 0x20
@@ -671,6 +765,7 @@ const (
671 IPV6_DONTFRAG = 0x3e 765 IPV6_DONTFRAG = 0x3e
672 IPV6_DROP_MEMBERSHIP = 0x15 766 IPV6_DROP_MEMBERSHIP = 0x15
673 IPV6_DSTOPTS = 0x3b 767 IPV6_DSTOPTS = 0x3b
768 IPV6_FREEBIND = 0x4e
674 IPV6_HDRINCL = 0x24 769 IPV6_HDRINCL = 0x24
675 IPV6_HOPLIMIT = 0x34 770 IPV6_HOPLIMIT = 0x34
676 IPV6_HOPOPTS = 0x36 771 IPV6_HOPOPTS = 0x36
@@ -775,12 +870,34 @@ const (
775 IP_UNICAST_IF = 0x32 870 IP_UNICAST_IF = 0x32
776 IP_XFRM_POLICY = 0x11 871 IP_XFRM_POLICY = 0x11
777 ISIG = 0x1 872 ISIG = 0x1
873 ISOFS_SUPER_MAGIC = 0x9660
778 ISTRIP = 0x20 874 ISTRIP = 0x20
779 IUCLC = 0x200 875 IUCLC = 0x200
780 IUTF8 = 0x4000 876 IUTF8 = 0x4000
781 IXANY = 0x800 877 IXANY = 0x800
782 IXOFF = 0x1000 878 IXOFF = 0x1000
783 IXON = 0x400 879 IXON = 0x400
880 JFFS2_SUPER_MAGIC = 0x72b6
881 KEXEC_ARCH_386 = 0x30000
882 KEXEC_ARCH_68K = 0x40000
883 KEXEC_ARCH_AARCH64 = 0xb70000
884 KEXEC_ARCH_ARM = 0x280000
885 KEXEC_ARCH_DEFAULT = 0x0
886 KEXEC_ARCH_IA_64 = 0x320000
887 KEXEC_ARCH_MASK = 0xffff0000
888 KEXEC_ARCH_MIPS = 0x80000
889 KEXEC_ARCH_MIPS_LE = 0xa0000
890 KEXEC_ARCH_PPC = 0x140000
891 KEXEC_ARCH_PPC64 = 0x150000
892 KEXEC_ARCH_S390 = 0x160000
893 KEXEC_ARCH_SH = 0x2a0000
894 KEXEC_ARCH_X86_64 = 0x3e0000
895 KEXEC_FILE_NO_INITRAMFS = 0x4
896 KEXEC_FILE_ON_CRASH = 0x2
897 KEXEC_FILE_UNLOAD = 0x1
898 KEXEC_ON_CRASH = 0x1
899 KEXEC_PRESERVE_CONTEXT = 0x2
900 KEXEC_SEGMENT_MAX = 0x10
784 KEYCTL_ASSUME_AUTHORITY = 0x10 901 KEYCTL_ASSUME_AUTHORITY = 0x10
785 KEYCTL_CHOWN = 0x4 902 KEYCTL_CHOWN = 0x4
786 KEYCTL_CLEAR = 0x7 903 KEYCTL_CLEAR = 0x7
@@ -845,6 +962,7 @@ const (
845 MADV_FREE = 0x8 962 MADV_FREE = 0x8
846 MADV_HUGEPAGE = 0xe 963 MADV_HUGEPAGE = 0xe
847 MADV_HWPOISON = 0x64 964 MADV_HWPOISON = 0x64
965 MADV_KEEPONFORK = 0x13
848 MADV_MERGEABLE = 0xc 966 MADV_MERGEABLE = 0xc
849 MADV_NOHUGEPAGE = 0xf 967 MADV_NOHUGEPAGE = 0xf
850 MADV_NORMAL = 0x0 968 MADV_NORMAL = 0x0
@@ -853,12 +971,14 @@ const (
853 MADV_SEQUENTIAL = 0x2 971 MADV_SEQUENTIAL = 0x2
854 MADV_UNMERGEABLE = 0xd 972 MADV_UNMERGEABLE = 0xd
855 MADV_WILLNEED = 0x3 973 MADV_WILLNEED = 0x3
974 MADV_WIPEONFORK = 0x12
856 MAP_ANON = 0x20 975 MAP_ANON = 0x20
857 MAP_ANONYMOUS = 0x20 976 MAP_ANONYMOUS = 0x20
858 MAP_DENYWRITE = 0x800 977 MAP_DENYWRITE = 0x800
859 MAP_EXECUTABLE = 0x1000 978 MAP_EXECUTABLE = 0x1000
860 MAP_FILE = 0x0 979 MAP_FILE = 0x0
861 MAP_FIXED = 0x10 980 MAP_FIXED = 0x10
981 MAP_FIXED_NOREPLACE = 0x100000
862 MAP_GROWSDOWN = 0x100 982 MAP_GROWSDOWN = 0x100
863 MAP_HUGETLB = 0x40000 983 MAP_HUGETLB = 0x40000
864 MAP_HUGE_MASK = 0x3f 984 MAP_HUGE_MASK = 0x3f
@@ -869,14 +989,37 @@ const (
869 MAP_POPULATE = 0x8000 989 MAP_POPULATE = 0x8000
870 MAP_PRIVATE = 0x2 990 MAP_PRIVATE = 0x2
871 MAP_SHARED = 0x1 991 MAP_SHARED = 0x1
992 MAP_SHARED_VALIDATE = 0x3
872 MAP_STACK = 0x20000 993 MAP_STACK = 0x20000
994 MAP_SYNC = 0x80000
873 MAP_TYPE = 0xf 995 MAP_TYPE = 0xf
874 MCL_CURRENT = 0x1 996 MCL_CURRENT = 0x1
875 MCL_FUTURE = 0x2 997 MCL_FUTURE = 0x2
876 MCL_ONFAULT = 0x4 998 MCL_ONFAULT = 0x4
999 MFD_ALLOW_SEALING = 0x2
1000 MFD_CLOEXEC = 0x1
1001 MFD_HUGETLB = 0x4
1002 MFD_HUGE_16GB = -0x78000000
1003 MFD_HUGE_16MB = 0x60000000
1004 MFD_HUGE_1GB = 0x78000000
1005 MFD_HUGE_1MB = 0x50000000
1006 MFD_HUGE_256MB = 0x70000000
1007 MFD_HUGE_2GB = 0x7c000000
1008 MFD_HUGE_2MB = 0x54000000
1009 MFD_HUGE_512KB = 0x4c000000
1010 MFD_HUGE_64KB = 0x40000000
1011 MFD_HUGE_8MB = 0x5c000000
1012 MFD_HUGE_MASK = 0x3f
1013 MFD_HUGE_SHIFT = 0x1a
1014 MINIX2_SUPER_MAGIC = 0x2468
1015 MINIX2_SUPER_MAGIC2 = 0x2478
1016 MINIX3_SUPER_MAGIC = 0x4d5a
1017 MINIX_SUPER_MAGIC = 0x137f
1018 MINIX_SUPER_MAGIC2 = 0x138f
877 MNT_DETACH = 0x2 1019 MNT_DETACH = 0x2
878 MNT_EXPIRE = 0x4 1020 MNT_EXPIRE = 0x4
879 MNT_FORCE = 0x1 1021 MNT_FORCE = 0x1
1022 MSDOS_SUPER_MAGIC = 0x4d44
880 MSG_BATCH = 0x40000 1023 MSG_BATCH = 0x40000
881 MSG_CMSG_CLOEXEC = 0x40000000 1024 MSG_CMSG_CLOEXEC = 0x40000000
882 MSG_CONFIRM = 0x800 1025 MSG_CONFIRM = 0x800
@@ -898,6 +1041,7 @@ const (
898 MSG_TRYHARD = 0x4 1041 MSG_TRYHARD = 0x4
899 MSG_WAITALL = 0x100 1042 MSG_WAITALL = 0x100
900 MSG_WAITFORONE = 0x10000 1043 MSG_WAITFORONE = 0x10000
1044 MSG_ZEROCOPY = 0x4000000
901 MS_ACTIVE = 0x40000000 1045 MS_ACTIVE = 0x40000000
902 MS_ASYNC = 0x1 1046 MS_ASYNC = 0x1
903 MS_BIND = 0x1000 1047 MS_BIND = 0x1000
@@ -935,7 +1079,9 @@ const (
935 MS_SYNCHRONOUS = 0x10 1079 MS_SYNCHRONOUS = 0x10
936 MS_UNBINDABLE = 0x20000 1080 MS_UNBINDABLE = 0x20000
937 MS_VERBOSE = 0x8000 1081 MS_VERBOSE = 0x8000
1082 MTD_INODE_FS_MAGIC = 0x11307854
938 NAME_MAX = 0xff 1083 NAME_MAX = 0xff
1084 NCP_SUPER_MAGIC = 0x564c
939 NETLINK_ADD_MEMBERSHIP = 0x1 1085 NETLINK_ADD_MEMBERSHIP = 0x1
940 NETLINK_AUDIT = 0x9 1086 NETLINK_AUDIT = 0x9
941 NETLINK_BROADCAST_ERROR = 0x4 1087 NETLINK_BROADCAST_ERROR = 0x4
@@ -970,6 +1116,39 @@ const (
970 NETLINK_UNUSED = 0x1 1116 NETLINK_UNUSED = 0x1
971 NETLINK_USERSOCK = 0x2 1117 NETLINK_USERSOCK = 0x2
972 NETLINK_XFRM = 0x6 1118 NETLINK_XFRM = 0x6
1119 NETNSA_MAX = 0x3
1120 NETNSA_NSID_NOT_ASSIGNED = -0x1
1121 NFNETLINK_V0 = 0x0
1122 NFNLGRP_ACCT_QUOTA = 0x8
1123 NFNLGRP_CONNTRACK_DESTROY = 0x3
1124 NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
1125 NFNLGRP_CONNTRACK_EXP_NEW = 0x4
1126 NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
1127 NFNLGRP_CONNTRACK_NEW = 0x1
1128 NFNLGRP_CONNTRACK_UPDATE = 0x2
1129 NFNLGRP_MAX = 0x9
1130 NFNLGRP_NFTABLES = 0x7
1131 NFNLGRP_NFTRACE = 0x9
1132 NFNLGRP_NONE = 0x0
1133 NFNL_BATCH_MAX = 0x1
1134 NFNL_MSG_BATCH_BEGIN = 0x10
1135 NFNL_MSG_BATCH_END = 0x11
1136 NFNL_NFA_NEST = 0x8000
1137 NFNL_SUBSYS_ACCT = 0x7
1138 NFNL_SUBSYS_COUNT = 0xc
1139 NFNL_SUBSYS_CTHELPER = 0x9
1140 NFNL_SUBSYS_CTNETLINK = 0x1
1141 NFNL_SUBSYS_CTNETLINK_EXP = 0x2
1142 NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
1143 NFNL_SUBSYS_IPSET = 0x6
1144 NFNL_SUBSYS_NFTABLES = 0xa
1145 NFNL_SUBSYS_NFT_COMPAT = 0xb
1146 NFNL_SUBSYS_NONE = 0x0
1147 NFNL_SUBSYS_OSF = 0x5
1148 NFNL_SUBSYS_QUEUE = 0x3
1149 NFNL_SUBSYS_ULOG = 0x4
1150 NFS_SUPER_MAGIC = 0x6969
1151 NILFS_SUPER_MAGIC = 0x3434
973 NL0 = 0x0 1152 NL0 = 0x0
974 NL1 = 0x100 1153 NL1 = 0x100
975 NLA_ALIGNTO = 0x4 1154 NLA_ALIGNTO = 0x4
@@ -997,10 +1176,13 @@ const (
997 NLM_F_EXCL = 0x200 1176 NLM_F_EXCL = 0x200
998 NLM_F_MATCH = 0x200 1177 NLM_F_MATCH = 0x200
999 NLM_F_MULTI = 0x2 1178 NLM_F_MULTI = 0x2
1179 NLM_F_NONREC = 0x100
1000 NLM_F_REPLACE = 0x100 1180 NLM_F_REPLACE = 0x100
1001 NLM_F_REQUEST = 0x1 1181 NLM_F_REQUEST = 0x1
1002 NLM_F_ROOT = 0x100 1182 NLM_F_ROOT = 0x100
1003 NOFLSH = 0x80 1183 NOFLSH = 0x80
1184 NSFS_MAGIC = 0x6e736673
1185 OCFS2_SUPER_MAGIC = 0x7461636f
1004 OCRNL = 0x8 1186 OCRNL = 0x8
1005 OFDEL = 0x80 1187 OFDEL = 0x80
1006 OFILL = 0x40 1188 OFILL = 0x40
@@ -1008,7 +1190,9 @@ const (
1008 ONLCR = 0x4 1190 ONLCR = 0x4
1009 ONLRET = 0x20 1191 ONLRET = 0x20
1010 ONOCR = 0x10 1192 ONOCR = 0x10
1193 OPENPROM_SUPER_MAGIC = 0x9fa1
1011 OPOST = 0x1 1194 OPOST = 0x1
1195 OVERLAYFS_SUPER_MAGIC = 0x794c7630
1012 O_ACCMODE = 0x3 1196 O_ACCMODE = 0x3
1013 O_APPEND = 0x400 1197 O_APPEND = 0x400
1014 O_ASYNC = 0x2000 1198 O_ASYNC = 0x2000
@@ -1093,16 +1277,20 @@ const (
1093 PERF_EVENT_IOC_DISABLE = 0x2401 1277 PERF_EVENT_IOC_DISABLE = 0x2401
1094 PERF_EVENT_IOC_ENABLE = 0x2400 1278 PERF_EVENT_IOC_ENABLE = 0x2400
1095 PERF_EVENT_IOC_ID = 0x80082407 1279 PERF_EVENT_IOC_ID = 0x80082407
1280 PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
1096 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 1281 PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
1097 PERF_EVENT_IOC_PERIOD = 0x40082404 1282 PERF_EVENT_IOC_PERIOD = 0x40082404
1283 PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
1098 PERF_EVENT_IOC_REFRESH = 0x2402 1284 PERF_EVENT_IOC_REFRESH = 0x2402
1099 PERF_EVENT_IOC_RESET = 0x2403 1285 PERF_EVENT_IOC_RESET = 0x2403
1100 PERF_EVENT_IOC_SET_BPF = 0x40042408 1286 PERF_EVENT_IOC_SET_BPF = 0x40042408
1101 PERF_EVENT_IOC_SET_FILTER = 0x40082406 1287 PERF_EVENT_IOC_SET_FILTER = 0x40082406
1102 PERF_EVENT_IOC_SET_OUTPUT = 0x2405 1288 PERF_EVENT_IOC_SET_OUTPUT = 0x2405
1289 PIPEFS_MAGIC = 0x50495045
1103 PRIO_PGRP = 0x1 1290 PRIO_PGRP = 0x1
1104 PRIO_PROCESS = 0x0 1291 PRIO_PROCESS = 0x0
1105 PRIO_USER = 0x2 1292 PRIO_USER = 0x2
1293 PROC_SUPER_MAGIC = 0x9fa0
1106 PROT_EXEC = 0x4 1294 PROT_EXEC = 0x4
1107 PROT_GROWSDOWN = 0x1000000 1295 PROT_GROWSDOWN = 0x1000000
1108 PROT_GROWSUP = 0x2000000 1296 PROT_GROWSUP = 0x2000000
@@ -1145,6 +1333,7 @@ const (
1145 PR_GET_PDEATHSIG = 0x2 1333 PR_GET_PDEATHSIG = 0x2
1146 PR_GET_SECCOMP = 0x15 1334 PR_GET_SECCOMP = 0x15
1147 PR_GET_SECUREBITS = 0x1b 1335 PR_GET_SECUREBITS = 0x1b
1336 PR_GET_SPECULATION_CTRL = 0x34
1148 PR_GET_THP_DISABLE = 0x2a 1337 PR_GET_THP_DISABLE = 0x2a
1149 PR_GET_TID_ADDRESS = 0x28 1338 PR_GET_TID_ADDRESS = 0x28
1150 PR_GET_TIMERSLACK = 0x1e 1339 PR_GET_TIMERSLACK = 0x1e
@@ -1190,11 +1379,23 @@ const (
1190 PR_SET_PTRACER_ANY = 0xffffffffffffffff 1379 PR_SET_PTRACER_ANY = 0xffffffffffffffff
1191 PR_SET_SECCOMP = 0x16 1380 PR_SET_SECCOMP = 0x16
1192 PR_SET_SECUREBITS = 0x1c 1381 PR_SET_SECUREBITS = 0x1c
1382 PR_SET_SPECULATION_CTRL = 0x35
1193 PR_SET_THP_DISABLE = 0x29 1383 PR_SET_THP_DISABLE = 0x29
1194 PR_SET_TIMERSLACK = 0x1d 1384 PR_SET_TIMERSLACK = 0x1d
1195 PR_SET_TIMING = 0xe 1385 PR_SET_TIMING = 0xe
1196 PR_SET_TSC = 0x1a 1386 PR_SET_TSC = 0x1a
1197 PR_SET_UNALIGN = 0x6 1387 PR_SET_UNALIGN = 0x6
1388 PR_SPEC_DISABLE = 0x4
1389 PR_SPEC_ENABLE = 0x2
1390 PR_SPEC_FORCE_DISABLE = 0x8
1391 PR_SPEC_NOT_AFFECTED = 0x0
1392 PR_SPEC_PRCTL = 0x1
1393 PR_SPEC_STORE_BYPASS = 0x0
1394 PR_SVE_GET_VL = 0x33
1395 PR_SVE_SET_VL = 0x32
1396 PR_SVE_SET_VL_ONEXEC = 0x40000
1397 PR_SVE_VL_INHERIT = 0x20000
1398 PR_SVE_VL_LEN_MASK = 0xffff
1198 PR_TASK_PERF_EVENTS_DISABLE = 0x1f 1399 PR_TASK_PERF_EVENTS_DISABLE = 0x1f
1199 PR_TASK_PERF_EVENTS_ENABLE = 0x20 1400 PR_TASK_PERF_EVENTS_ENABLE = 0x20
1200 PR_TIMING_STATISTICAL = 0x0 1401 PR_TIMING_STATISTICAL = 0x0
@@ -1203,6 +1404,7 @@ const (
1203 PR_TSC_SIGSEGV = 0x2 1404 PR_TSC_SIGSEGV = 0x2
1204 PR_UNALIGN_NOPRINT = 0x1 1405 PR_UNALIGN_NOPRINT = 0x1
1205 PR_UNALIGN_SIGBUS = 0x2 1406 PR_UNALIGN_SIGBUS = 0x2
1407 PSTOREFS_MAGIC = 0x6165676c
1206 PTRACE_ATTACH = 0x10 1408 PTRACE_ATTACH = 0x10
1207 PTRACE_CONT = 0x7 1409 PTRACE_CONT = 0x7
1208 PTRACE_DETACH = 0x11 1410 PTRACE_DETACH = 0x11
@@ -1255,6 +1457,7 @@ const (
1255 PTRACE_POKE_SYSTEM_CALL = 0x5008 1457 PTRACE_POKE_SYSTEM_CALL = 0x5008
1256 PTRACE_PROT = 0x15 1458 PTRACE_PROT = 0x15
1257 PTRACE_SECCOMP_GET_FILTER = 0x420c 1459 PTRACE_SECCOMP_GET_FILTER = 0x420c
1460 PTRACE_SECCOMP_GET_METADATA = 0x420d
1258 PTRACE_SEIZE = 0x4206 1461 PTRACE_SEIZE = 0x4206
1259 PTRACE_SETOPTIONS = 0x4200 1462 PTRACE_SETOPTIONS = 0x4200
1260 PTRACE_SETREGS = 0xd 1463 PTRACE_SETREGS = 0xd
@@ -1324,6 +1527,14 @@ const (
1324 PT_ORIGGPR2 = 0xd0 1527 PT_ORIGGPR2 = 0xd0
1325 PT_PSWADDR = 0x8 1528 PT_PSWADDR = 0x8
1326 PT_PSWMASK = 0x0 1529 PT_PSWMASK = 0x0
1530 QNX4_SUPER_MAGIC = 0x2f
1531 QNX6_SUPER_MAGIC = 0x68191122
1532 RAMFS_MAGIC = 0x858458f6
1533 RDTGROUP_SUPER_MAGIC = 0x7655821
1534 REISERFS_SUPER_MAGIC = 0x52654973
1535 RENAME_EXCHANGE = 0x2
1536 RENAME_NOREPLACE = 0x1
1537 RENAME_WHITEOUT = 0x4
1327 RLIMIT_AS = 0x9 1538 RLIMIT_AS = 0x9
1328 RLIMIT_CORE = 0x4 1539 RLIMIT_CORE = 0x4
1329 RLIMIT_CPU = 0x0 1540 RLIMIT_CPU = 0x0
@@ -1344,6 +1555,7 @@ const (
1344 RTAX_ADVMSS = 0x8 1555 RTAX_ADVMSS = 0x8
1345 RTAX_CC_ALGO = 0x10 1556 RTAX_CC_ALGO = 0x10
1346 RTAX_CWND = 0x7 1557 RTAX_CWND = 0x7
1558 RTAX_FASTOPEN_NO_COOKIE = 0x11
1347 RTAX_FEATURES = 0xc 1559 RTAX_FEATURES = 0xc
1348 RTAX_FEATURE_ALLFRAG = 0x8 1560 RTAX_FEATURE_ALLFRAG = 0x8
1349 RTAX_FEATURE_ECN = 0x1 1561 RTAX_FEATURE_ECN = 0x1
@@ -1354,7 +1566,7 @@ const (
1354 RTAX_INITCWND = 0xb 1566 RTAX_INITCWND = 0xb
1355 RTAX_INITRWND = 0xe 1567 RTAX_INITRWND = 0xe
1356 RTAX_LOCK = 0x1 1568 RTAX_LOCK = 0x1
1357 RTAX_MAX = 0x10 1569 RTAX_MAX = 0x11
1358 RTAX_MTU = 0x2 1570 RTAX_MTU = 0x2
1359 RTAX_QUICKACK = 0xf 1571 RTAX_QUICKACK = 0xf
1360 RTAX_REORDERING = 0x9 1572 RTAX_REORDERING = 0x9
@@ -1365,13 +1577,40 @@ const (
1365 RTAX_UNSPEC = 0x0 1577 RTAX_UNSPEC = 0x0
1366 RTAX_WINDOW = 0x3 1578 RTAX_WINDOW = 0x3
1367 RTA_ALIGNTO = 0x4 1579 RTA_ALIGNTO = 0x4
1368 RTA_MAX = 0x1a 1580 RTA_MAX = 0x1d
1369 RTCF_DIRECTSRC = 0x4000000 1581 RTCF_DIRECTSRC = 0x4000000
1370 RTCF_DOREDIRECT = 0x1000000 1582 RTCF_DOREDIRECT = 0x1000000
1371 RTCF_LOG = 0x2000000 1583 RTCF_LOG = 0x2000000
1372 RTCF_MASQ = 0x400000 1584 RTCF_MASQ = 0x400000
1373 RTCF_NAT = 0x800000 1585 RTCF_NAT = 0x800000
1374 RTCF_VALVE = 0x200000 1586 RTCF_VALVE = 0x200000
1587 RTC_AF = 0x20
1588 RTC_AIE_OFF = 0x7002
1589 RTC_AIE_ON = 0x7001
1590 RTC_ALM_READ = 0x80247008
1591 RTC_ALM_SET = 0x40247007
1592 RTC_EPOCH_READ = 0x8008700d
1593 RTC_EPOCH_SET = 0x4008700e
1594 RTC_IRQF = 0x80
1595 RTC_IRQP_READ = 0x8008700b
1596 RTC_IRQP_SET = 0x4008700c
1597 RTC_MAX_FREQ = 0x2000
1598 RTC_PF = 0x40
1599 RTC_PIE_OFF = 0x7006
1600 RTC_PIE_ON = 0x7005
1601 RTC_PLL_GET = 0x80207011
1602 RTC_PLL_SET = 0x40207012
1603 RTC_RD_TIME = 0x80247009
1604 RTC_SET_TIME = 0x4024700a
1605 RTC_UF = 0x10
1606 RTC_UIE_OFF = 0x7004
1607 RTC_UIE_ON = 0x7003
1608 RTC_VL_CLR = 0x7014
1609 RTC_VL_READ = 0x80047013
1610 RTC_WIE_OFF = 0x7010
1611 RTC_WIE_ON = 0x700f
1612 RTC_WKALM_RD = 0x80287010
1613 RTC_WKALM_SET = 0x4028700f
1375 RTF_ADDRCLASSMASK = 0xf8000000 1614 RTF_ADDRCLASSMASK = 0xf8000000
1376 RTF_ADDRCONF = 0x40000 1615 RTF_ADDRCONF = 0x40000
1377 RTF_ALLONLINK = 0x20000 1616 RTF_ALLONLINK = 0x20000
@@ -1474,17 +1713,22 @@ const (
1474 RTNH_F_UNRESOLVED = 0x20 1713 RTNH_F_UNRESOLVED = 0x20
1475 RTN_MAX = 0xb 1714 RTN_MAX = 0xb
1476 RTPROT_BABEL = 0x2a 1715 RTPROT_BABEL = 0x2a
1716 RTPROT_BGP = 0xba
1477 RTPROT_BIRD = 0xc 1717 RTPROT_BIRD = 0xc
1478 RTPROT_BOOT = 0x3 1718 RTPROT_BOOT = 0x3
1479 RTPROT_DHCP = 0x10 1719 RTPROT_DHCP = 0x10
1480 RTPROT_DNROUTED = 0xd 1720 RTPROT_DNROUTED = 0xd
1721 RTPROT_EIGRP = 0xc0
1481 RTPROT_GATED = 0x8 1722 RTPROT_GATED = 0x8
1723 RTPROT_ISIS = 0xbb
1482 RTPROT_KERNEL = 0x2 1724 RTPROT_KERNEL = 0x2
1483 RTPROT_MROUTED = 0x11 1725 RTPROT_MROUTED = 0x11
1484 RTPROT_MRT = 0xa 1726 RTPROT_MRT = 0xa
1485 RTPROT_NTK = 0xf 1727 RTPROT_NTK = 0xf
1728 RTPROT_OSPF = 0xbc
1486 RTPROT_RA = 0x9 1729 RTPROT_RA = 0x9
1487 RTPROT_REDIRECT = 0x1 1730 RTPROT_REDIRECT = 0x1
1731 RTPROT_RIP = 0xbd
1488 RTPROT_STATIC = 0x4 1732 RTPROT_STATIC = 0x4
1489 RTPROT_UNSPEC = 0x0 1733 RTPROT_UNSPEC = 0x0
1490 RTPROT_XORP = 0xe 1734 RTPROT_XORP = 0xe
@@ -1508,6 +1752,8 @@ const (
1508 SECCOMP_MODE_DISABLED = 0x0 1752 SECCOMP_MODE_DISABLED = 0x0
1509 SECCOMP_MODE_FILTER = 0x2 1753 SECCOMP_MODE_FILTER = 0x2
1510 SECCOMP_MODE_STRICT = 0x1 1754 SECCOMP_MODE_STRICT = 0x1
1755 SECURITYFS_MAGIC = 0x73636673
1756 SELINUX_MAGIC = 0xf97cff8c
1511 SHUT_RD = 0x0 1757 SHUT_RD = 0x0
1512 SHUT_RDWR = 0x2 1758 SHUT_RDWR = 0x2
1513 SHUT_WR = 0x1 1759 SHUT_WR = 0x1
@@ -1592,6 +1838,23 @@ const (
1592 SIOCSPGRP = 0x8902 1838 SIOCSPGRP = 0x8902
1593 SIOCSRARP = 0x8962 1839 SIOCSRARP = 0x8962
1594 SIOCWANDEV = 0x894a 1840 SIOCWANDEV = 0x894a
1841 SMACK_MAGIC = 0x43415d53
1842 SMART_AUTOSAVE = 0xd2
1843 SMART_AUTO_OFFLINE = 0xdb
1844 SMART_DISABLE = 0xd9
1845 SMART_ENABLE = 0xd8
1846 SMART_HCYL_PASS = 0xc2
1847 SMART_IMMEDIATE_OFFLINE = 0xd4
1848 SMART_LCYL_PASS = 0x4f
1849 SMART_READ_LOG_SECTOR = 0xd5
1850 SMART_READ_THRESHOLDS = 0xd1
1851 SMART_READ_VALUES = 0xd0
1852 SMART_SAVE = 0xd3
1853 SMART_STATUS = 0xda
1854 SMART_WRITE_LOG_SECTOR = 0xd6
1855 SMART_WRITE_THRESHOLDS = 0xd7
1856 SMB_SUPER_MAGIC = 0x517b
1857 SOCKFS_MAGIC = 0x534f434b
1595 SOCK_CLOEXEC = 0x80000 1858 SOCK_CLOEXEC = 0x80000
1596 SOCK_DCCP = 0x6 1859 SOCK_DCCP = 0x6
1597 SOCK_DGRAM = 0x2 1860 SOCK_DGRAM = 0x2
@@ -1628,7 +1891,9 @@ const (
1628 SOL_SOCKET = 0x1 1891 SOL_SOCKET = 0x1
1629 SOL_TCP = 0x6 1892 SOL_TCP = 0x6
1630 SOL_TIPC = 0x10f 1893 SOL_TIPC = 0x10f
1894 SOL_TLS = 0x11a
1631 SOL_X25 = 0x106 1895 SOL_X25 = 0x106
1896 SOL_XDP = 0x11b
1632 SOMAXCONN = 0x80 1897 SOMAXCONN = 0x80
1633 SO_ACCEPTCONN = 0x1e 1898 SO_ACCEPTCONN = 0x1e
1634 SO_ATTACH_BPF = 0x32 1899 SO_ATTACH_BPF = 0x32
@@ -1696,10 +1961,13 @@ const (
1696 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 1961 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
1697 SO_VM_SOCKETS_TRUSTED = 0x5 1962 SO_VM_SOCKETS_TRUSTED = 0x5
1698 SO_WIFI_STATUS = 0x29 1963 SO_WIFI_STATUS = 0x29
1964 SO_ZEROCOPY = 0x3c
1699 SPLICE_F_GIFT = 0x8 1965 SPLICE_F_GIFT = 0x8
1700 SPLICE_F_MORE = 0x4 1966 SPLICE_F_MORE = 0x4
1701 SPLICE_F_MOVE = 0x1 1967 SPLICE_F_MOVE = 0x1
1702 SPLICE_F_NONBLOCK = 0x2 1968 SPLICE_F_NONBLOCK = 0x2
1969 SQUASHFS_MAGIC = 0x73717368
1970 STACK_END_MAGIC = 0x57ac6e9d
1703 STATX_ALL = 0xfff 1971 STATX_ALL = 0xfff
1704 STATX_ATIME = 0x20 1972 STATX_ATIME = 0x20
1705 STATX_ATTR_APPEND = 0x20 1973 STATX_ATTR_APPEND = 0x20
@@ -1721,6 +1989,10 @@ const (
1721 STATX_TYPE = 0x1 1989 STATX_TYPE = 0x1
1722 STATX_UID = 0x8 1990 STATX_UID = 0x8
1723 STATX__RESERVED = 0x80000000 1991 STATX__RESERVED = 0x80000000
1992 SYNC_FILE_RANGE_WAIT_AFTER = 0x4
1993 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
1994 SYNC_FILE_RANGE_WRITE = 0x2
1995 SYSFS_MAGIC = 0x62656572
1724 S_BLKSIZE = 0x200 1996 S_BLKSIZE = 0x200
1725 S_IEXEC = 0x40 1997 S_IEXEC = 0x40
1726 S_IFBLK = 0x6000 1998 S_IFBLK = 0x6000
@@ -1783,6 +2055,8 @@ const (
1783 TCP_DEFER_ACCEPT = 0x9 2055 TCP_DEFER_ACCEPT = 0x9
1784 TCP_FASTOPEN = 0x17 2056 TCP_FASTOPEN = 0x17
1785 TCP_FASTOPEN_CONNECT = 0x1e 2057 TCP_FASTOPEN_CONNECT = 0x1e
2058 TCP_FASTOPEN_KEY = 0x21
2059 TCP_FASTOPEN_NO_COOKIE = 0x22
1786 TCP_INFO = 0xb 2060 TCP_INFO = 0xb
1787 TCP_KEEPCNT = 0x6 2061 TCP_KEEPCNT = 0x6
1788 TCP_KEEPIDLE = 0x4 2062 TCP_KEEPIDLE = 0x4
@@ -1792,6 +2066,8 @@ const (
1792 TCP_MAXWIN = 0xffff 2066 TCP_MAXWIN = 0xffff
1793 TCP_MAX_WINSHIFT = 0xe 2067 TCP_MAX_WINSHIFT = 0xe
1794 TCP_MD5SIG = 0xe 2068 TCP_MD5SIG = 0xe
2069 TCP_MD5SIG_EXT = 0x20
2070 TCP_MD5SIG_FLAG_PREFIX = 0x1
1795 TCP_MD5SIG_MAXKEYLEN = 0x50 2071 TCP_MD5SIG_MAXKEYLEN = 0x50
1796 TCP_MSS = 0x200 2072 TCP_MSS = 0x200
1797 TCP_MSS_DEFAULT = 0x218 2073 TCP_MSS_DEFAULT = 0x218
@@ -1812,6 +2088,7 @@ const (
1812 TCP_THIN_DUPACK = 0x11 2088 TCP_THIN_DUPACK = 0x11
1813 TCP_THIN_LINEAR_TIMEOUTS = 0x10 2089 TCP_THIN_LINEAR_TIMEOUTS = 0x10
1814 TCP_TIMESTAMP = 0x18 2090 TCP_TIMESTAMP = 0x18
2091 TCP_ULP = 0x1f
1815 TCP_USER_TIMEOUT = 0x12 2092 TCP_USER_TIMEOUT = 0x12
1816 TCP_WINDOW_CLAMP = 0xa 2093 TCP_WINDOW_CLAMP = 0xa
1817 TCSAFLUSH = 0x2 2094 TCSAFLUSH = 0x2
@@ -1899,7 +2176,27 @@ const (
1899 TIOCSTI = 0x5412 2176 TIOCSTI = 0x5412
1900 TIOCSWINSZ = 0x5414 2177 TIOCSWINSZ = 0x5414
1901 TIOCVHANGUP = 0x5437 2178 TIOCVHANGUP = 0x5437
2179 TMPFS_MAGIC = 0x1021994
1902 TOSTOP = 0x100 2180 TOSTOP = 0x100
2181 TPACKET_ALIGNMENT = 0x10
2182 TPACKET_HDRLEN = 0x34
2183 TP_STATUS_AVAILABLE = 0x0
2184 TP_STATUS_BLK_TMO = 0x20
2185 TP_STATUS_COPY = 0x2
2186 TP_STATUS_CSUMNOTREADY = 0x8
2187 TP_STATUS_CSUM_VALID = 0x80
2188 TP_STATUS_KERNEL = 0x0
2189 TP_STATUS_LOSING = 0x4
2190 TP_STATUS_SENDING = 0x2
2191 TP_STATUS_SEND_REQUEST = 0x1
2192 TP_STATUS_TS_RAW_HARDWARE = -0x80000000
2193 TP_STATUS_TS_SOFTWARE = 0x20000000
2194 TP_STATUS_TS_SYS_HARDWARE = 0x40000000
2195 TP_STATUS_USER = 0x1
2196 TP_STATUS_VLAN_TPID_VALID = 0x40
2197 TP_STATUS_VLAN_VALID = 0x10
2198 TP_STATUS_WRONG_FORMAT = 0x4
2199 TRACEFS_MAGIC = 0x74726163
1903 TS_COMM_LEN = 0x20 2200 TS_COMM_LEN = 0x20
1904 TUNATTACHFILTER = 0x401054d5 2201 TUNATTACHFILTER = 0x401054d5
1905 TUNDETACHFILTER = 0x401054d6 2202 TUNDETACHFILTER = 0x401054d6
@@ -1911,6 +2208,7 @@ const (
1911 TUNGETVNETHDRSZ = 0x800454d7 2208 TUNGETVNETHDRSZ = 0x800454d7
1912 TUNGETVNETLE = 0x800454dd 2209 TUNGETVNETLE = 0x800454dd
1913 TUNSETDEBUG = 0x400454c9 2210 TUNSETDEBUG = 0x400454c9
2211 TUNSETFILTEREBPF = 0x800454e1
1914 TUNSETGROUP = 0x400454ce 2212 TUNSETGROUP = 0x400454ce
1915 TUNSETIFF = 0x400454ca 2213 TUNSETIFF = 0x400454ca
1916 TUNSETIFINDEX = 0x400454da 2214 TUNSETIFINDEX = 0x400454da
@@ -1921,13 +2219,32 @@ const (
1921 TUNSETPERSIST = 0x400454cb 2219 TUNSETPERSIST = 0x400454cb
1922 TUNSETQUEUE = 0x400454d9 2220 TUNSETQUEUE = 0x400454d9
1923 TUNSETSNDBUF = 0x400454d4 2221 TUNSETSNDBUF = 0x400454d4
2222 TUNSETSTEERINGEBPF = 0x800454e0
1924 TUNSETTXFILTER = 0x400454d1 2223 TUNSETTXFILTER = 0x400454d1
1925 TUNSETVNETBE = 0x400454de 2224 TUNSETVNETBE = 0x400454de
1926 TUNSETVNETHDRSZ = 0x400454d8 2225 TUNSETVNETHDRSZ = 0x400454d8
1927 TUNSETVNETLE = 0x400454dc 2226 TUNSETVNETLE = 0x400454dc
2227 UBI_IOCATT = 0x40186f40
2228 UBI_IOCDET = 0x40046f41
2229 UBI_IOCEBCH = 0x40044f02
2230 UBI_IOCEBER = 0x40044f01
2231 UBI_IOCEBISMAP = 0x80044f05
2232 UBI_IOCEBMAP = 0x40084f03
2233 UBI_IOCEBUNMAP = 0x40044f04
2234 UBI_IOCMKVOL = 0x40986f00
2235 UBI_IOCRMVOL = 0x40046f01
2236 UBI_IOCRNVOL = 0x51106f03
2237 UBI_IOCRSVOL = 0x400c6f02
2238 UBI_IOCSETVOLPROP = 0x40104f06
2239 UBI_IOCVOLCRBLK = 0x40804f07
2240 UBI_IOCVOLRMBLK = 0x4f08
2241 UBI_IOCVOLUP = 0x40084f00
2242 UDF_SUPER_MAGIC = 0x15013346
1928 UMOUNT_NOFOLLOW = 0x8 2243 UMOUNT_NOFOLLOW = 0x8
2244 USBDEVICE_SUPER_MAGIC = 0x9fa2
1929 UTIME_NOW = 0x3fffffff 2245 UTIME_NOW = 0x3fffffff
1930 UTIME_OMIT = 0x3ffffffe 2246 UTIME_OMIT = 0x3ffffffe
2247 V9FS_MAGIC = 0x1021997
1931 VDISCARD = 0xd 2248 VDISCARD = 0xd
1932 VEOF = 0x4 2249 VEOF = 0x4
1933 VEOL = 0xb 2250 VEOL = 0xb
@@ -1969,6 +2286,86 @@ const (
1969 WDIOC_SETPRETIMEOUT = 0xc0045708 2286 WDIOC_SETPRETIMEOUT = 0xc0045708
1970 WDIOC_SETTIMEOUT = 0xc0045706 2287 WDIOC_SETTIMEOUT = 0xc0045706
1971 WEXITED = 0x4 2288 WEXITED = 0x4
2289 WIN_ACKMEDIACHANGE = 0xdb
2290 WIN_CHECKPOWERMODE1 = 0xe5
2291 WIN_CHECKPOWERMODE2 = 0x98
2292 WIN_DEVICE_RESET = 0x8
2293 WIN_DIAGNOSE = 0x90
2294 WIN_DOORLOCK = 0xde
2295 WIN_DOORUNLOCK = 0xdf
2296 WIN_DOWNLOAD_MICROCODE = 0x92
2297 WIN_FLUSH_CACHE = 0xe7
2298 WIN_FLUSH_CACHE_EXT = 0xea
2299 WIN_FORMAT = 0x50
2300 WIN_GETMEDIASTATUS = 0xda
2301 WIN_IDENTIFY = 0xec
2302 WIN_IDENTIFY_DMA = 0xee
2303 WIN_IDLEIMMEDIATE = 0xe1
2304 WIN_INIT = 0x60
2305 WIN_MEDIAEJECT = 0xed
2306 WIN_MULTREAD = 0xc4
2307 WIN_MULTREAD_EXT = 0x29
2308 WIN_MULTWRITE = 0xc5
2309 WIN_MULTWRITE_EXT = 0x39
2310 WIN_NOP = 0x0
2311 WIN_PACKETCMD = 0xa0
2312 WIN_PIDENTIFY = 0xa1
2313 WIN_POSTBOOT = 0xdc
2314 WIN_PREBOOT = 0xdd
2315 WIN_QUEUED_SERVICE = 0xa2
2316 WIN_READ = 0x20
2317 WIN_READDMA = 0xc8
2318 WIN_READDMA_EXT = 0x25
2319 WIN_READDMA_ONCE = 0xc9
2320 WIN_READDMA_QUEUED = 0xc7
2321 WIN_READDMA_QUEUED_EXT = 0x26
2322 WIN_READ_BUFFER = 0xe4
2323 WIN_READ_EXT = 0x24
2324 WIN_READ_LONG = 0x22
2325 WIN_READ_LONG_ONCE = 0x23
2326 WIN_READ_NATIVE_MAX = 0xf8
2327 WIN_READ_NATIVE_MAX_EXT = 0x27
2328 WIN_READ_ONCE = 0x21
2329 WIN_RECAL = 0x10
2330 WIN_RESTORE = 0x10
2331 WIN_SECURITY_DISABLE = 0xf6
2332 WIN_SECURITY_ERASE_PREPARE = 0xf3
2333 WIN_SECURITY_ERASE_UNIT = 0xf4
2334 WIN_SECURITY_FREEZE_LOCK = 0xf5
2335 WIN_SECURITY_SET_PASS = 0xf1
2336 WIN_SECURITY_UNLOCK = 0xf2
2337 WIN_SEEK = 0x70
2338 WIN_SETFEATURES = 0xef
2339 WIN_SETIDLE1 = 0xe3
2340 WIN_SETIDLE2 = 0x97
2341 WIN_SETMULT = 0xc6
2342 WIN_SET_MAX = 0xf9
2343 WIN_SET_MAX_EXT = 0x37
2344 WIN_SLEEPNOW1 = 0xe6
2345 WIN_SLEEPNOW2 = 0x99
2346 WIN_SMART = 0xb0
2347 WIN_SPECIFY = 0x91
2348 WIN_SRST = 0x8
2349 WIN_STANDBY = 0xe2
2350 WIN_STANDBY2 = 0x96
2351 WIN_STANDBYNOW1 = 0xe0
2352 WIN_STANDBYNOW2 = 0x94
2353 WIN_VERIFY = 0x40
2354 WIN_VERIFY_EXT = 0x42
2355 WIN_VERIFY_ONCE = 0x41
2356 WIN_WRITE = 0x30
2357 WIN_WRITEDMA = 0xca
2358 WIN_WRITEDMA_EXT = 0x35
2359 WIN_WRITEDMA_ONCE = 0xcb
2360 WIN_WRITEDMA_QUEUED = 0xcc
2361 WIN_WRITEDMA_QUEUED_EXT = 0x36
2362 WIN_WRITE_BUFFER = 0xe8
2363 WIN_WRITE_EXT = 0x34
2364 WIN_WRITE_LONG = 0x32
2365 WIN_WRITE_LONG_ONCE = 0x33
2366 WIN_WRITE_ONCE = 0x31
2367 WIN_WRITE_SAME = 0xe9
2368 WIN_WRITE_VERIFY = 0x3c
1972 WNOHANG = 0x1 2369 WNOHANG = 0x1
1973 WNOTHREAD = 0x20000000 2370 WNOTHREAD = 0x20000000
1974 WNOWAIT = 0x1000000 2371 WNOWAIT = 0x1000000
@@ -1978,7 +2375,29 @@ const (
1978 XATTR_CREATE = 0x1 2375 XATTR_CREATE = 0x1
1979 XATTR_REPLACE = 0x2 2376 XATTR_REPLACE = 0x2
1980 XCASE = 0x4 2377 XCASE = 0x4
2378 XDP_COPY = 0x2
2379 XDP_FLAGS_DRV_MODE = 0x4
2380 XDP_FLAGS_HW_MODE = 0x8
2381 XDP_FLAGS_MASK = 0xf
2382 XDP_FLAGS_MODES = 0xe
2383 XDP_FLAGS_SKB_MODE = 0x2
2384 XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
2385 XDP_MMAP_OFFSETS = 0x1
2386 XDP_PGOFF_RX_RING = 0x0
2387 XDP_PGOFF_TX_RING = 0x80000000
2388 XDP_RX_RING = 0x2
2389 XDP_SHARED_UMEM = 0x1
2390 XDP_STATISTICS = 0x7
2391 XDP_TX_RING = 0x3
2392 XDP_UMEM_COMPLETION_RING = 0x6
2393 XDP_UMEM_FILL_RING = 0x5
2394 XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
2395 XDP_UMEM_PGOFF_FILL_RING = 0x100000000
2396 XDP_UMEM_REG = 0x4
2397 XDP_ZEROCOPY = 0x4
2398 XENFS_SUPER_MAGIC = 0xabba1974
1981 XTABS = 0x1800 2399 XTABS = 0x1800
2400 ZSMALLOC_MAGIC = 0x58295829
1982) 2401)
1983 2402
1984// Errors 2403// Errors
@@ -2158,171 +2577,179 @@ const (
2158) 2577)
2159 2578
2160// Error table 2579// Error table
2161var errors = [...]string{ 2580var errorList = [...]struct {
2162 1: "operation not permitted", 2581 num syscall.Errno
2163 2: "no such file or directory", 2582 name string
2164 3: "no such process", 2583 desc string
2165 4: "interrupted system call", 2584}{
2166 5: "input/output error", 2585 {1, "EPERM", "operation not permitted"},
2167 6: "no such device or address", 2586 {2, "ENOENT", "no such file or directory"},
2168 7: "argument list too long", 2587 {3, "ESRCH", "no such process"},
2169 8: "exec format error", 2588 {4, "EINTR", "interrupted system call"},
2170 9: "bad file descriptor", 2589 {5, "EIO", "input/output error"},
2171 10: "no child processes", 2590 {6, "ENXIO", "no such device or address"},
2172 11: "resource temporarily unavailable", 2591 {7, "E2BIG", "argument list too long"},
2173 12: "cannot allocate memory", 2592 {8, "ENOEXEC", "exec format error"},
2174 13: "permission denied", 2593 {9, "EBADF", "bad file descriptor"},
2175 14: "bad address", 2594 {10, "ECHILD", "no child processes"},
2176 15: "block device required", 2595 {11, "EAGAIN", "resource temporarily unavailable"},
2177 16: "device or resource busy", 2596 {12, "ENOMEM", "cannot allocate memory"},
2178 17: "file exists", 2597 {13, "EACCES", "permission denied"},
2179 18: "invalid cross-device link", 2598 {14, "EFAULT", "bad address"},
2180 19: "no such device", 2599 {15, "ENOTBLK", "block device required"},
2181 20: "not a directory", 2600 {16, "EBUSY", "device or resource busy"},
2182 21: "is a directory", 2601 {17, "EEXIST", "file exists"},
2183 22: "invalid argument", 2602 {18, "EXDEV", "invalid cross-device link"},
2184 23: "too many open files in system", 2603 {19, "ENODEV", "no such device"},
2185 24: "too many open files", 2604 {20, "ENOTDIR", "not a directory"},
2186 25: "inappropriate ioctl for device", 2605 {21, "EISDIR", "is a directory"},
2187 26: "text file busy", 2606 {22, "EINVAL", "invalid argument"},
2188 27: "file too large", 2607 {23, "ENFILE", "too many open files in system"},
2189 28: "no space left on device", 2608 {24, "EMFILE", "too many open files"},
2190 29: "illegal seek", 2609 {25, "ENOTTY", "inappropriate ioctl for device"},
2191 30: "read-only file system", 2610 {26, "ETXTBSY", "text file busy"},
2192 31: "too many links", 2611 {27, "EFBIG", "file too large"},
2193 32: "broken pipe", 2612 {28, "ENOSPC", "no space left on device"},
2194 33: "numerical argument out of domain", 2613 {29, "ESPIPE", "illegal seek"},
2195 34: "numerical result out of range", 2614 {30, "EROFS", "read-only file system"},
2196 35: "resource deadlock avoided", 2615 {31, "EMLINK", "too many links"},
2197 36: "file name too long", 2616 {32, "EPIPE", "broken pipe"},
2198 37: "no locks available", 2617 {33, "EDOM", "numerical argument out of domain"},
2199 38: "function not implemented", 2618 {34, "ERANGE", "numerical result out of range"},
2200 39: "directory not empty", 2619 {35, "EDEADLK", "resource deadlock avoided"},
2201 40: "too many levels of symbolic links", 2620 {36, "ENAMETOOLONG", "file name too long"},
2202 42: "no message of desired type", 2621 {37, "ENOLCK", "no locks available"},
2203 43: "identifier removed", 2622 {38, "ENOSYS", "function not implemented"},
2204 44: "channel number out of range", 2623 {39, "ENOTEMPTY", "directory not empty"},
2205 45: "level 2 not synchronized", 2624 {40, "ELOOP", "too many levels of symbolic links"},
2206 46: "level 3 halted", 2625 {42, "ENOMSG", "no message of desired type"},
2207 47: "level 3 reset", 2626 {43, "EIDRM", "identifier removed"},
2208 48: "link number out of range", 2627 {44, "ECHRNG", "channel number out of range"},
2209 49: "protocol driver not attached", 2628 {45, "EL2NSYNC", "level 2 not synchronized"},
2210 50: "no CSI structure available", 2629 {46, "EL3HLT", "level 3 halted"},
2211 51: "level 2 halted", 2630 {47, "EL3RST", "level 3 reset"},
2212 52: "invalid exchange", 2631 {48, "ELNRNG", "link number out of range"},
2213 53: "invalid request descriptor", 2632 {49, "EUNATCH", "protocol driver not attached"},
2214 54: "exchange full", 2633 {50, "ENOCSI", "no CSI structure available"},
2215 55: "no anode", 2634 {51, "EL2HLT", "level 2 halted"},
2216 56: "invalid request code", 2635 {52, "EBADE", "invalid exchange"},
2217 57: "invalid slot", 2636 {53, "EBADR", "invalid request descriptor"},
2218 59: "bad font file format", 2637 {54, "EXFULL", "exchange full"},
2219 60: "device not a stream", 2638 {55, "ENOANO", "no anode"},
2220 61: "no data available", 2639 {56, "EBADRQC", "invalid request code"},
2221 62: "timer expired", 2640 {57, "EBADSLT", "invalid slot"},
2222 63: "out of streams resources", 2641 {59, "EBFONT", "bad font file format"},
2223 64: "machine is not on the network", 2642 {60, "ENOSTR", "device not a stream"},
2224 65: "package not installed", 2643 {61, "ENODATA", "no data available"},
2225 66: "object is remote", 2644 {62, "ETIME", "timer expired"},
2226 67: "link has been severed", 2645 {63, "ENOSR", "out of streams resources"},
2227 68: "advertise error", 2646 {64, "ENONET", "machine is not on the network"},
2228 69: "srmount error", 2647 {65, "ENOPKG", "package not installed"},
2229 70: "communication error on send", 2648 {66, "EREMOTE", "object is remote"},
2230 71: "protocol error", 2649 {67, "ENOLINK", "link has been severed"},
2231 72: "multihop attempted", 2650 {68, "EADV", "advertise error"},
2232 73: "RFS specific error", 2651 {69, "ESRMNT", "srmount error"},
2233 74: "bad message", 2652 {70, "ECOMM", "communication error on send"},
2234 75: "value too large for defined data type", 2653 {71, "EPROTO", "protocol error"},
2235 76: "name not unique on network", 2654 {72, "EMULTIHOP", "multihop attempted"},
2236 77: "file descriptor in bad state", 2655 {73, "EDOTDOT", "RFS specific error"},
2237 78: "remote address changed", 2656 {74, "EBADMSG", "bad message"},
2238 79: "can not access a needed shared library", 2657 {75, "EOVERFLOW", "value too large for defined data type"},
2239 80: "accessing a corrupted shared library", 2658 {76, "ENOTUNIQ", "name not unique on network"},
2240 81: ".lib section in a.out corrupted", 2659 {77, "EBADFD", "file descriptor in bad state"},
2241 82: "attempting to link in too many shared libraries", 2660 {78, "EREMCHG", "remote address changed"},
2242 83: "cannot exec a shared library directly", 2661 {79, "ELIBACC", "can not access a needed shared library"},
2243 84: "invalid or incomplete multibyte or wide character", 2662 {80, "ELIBBAD", "accessing a corrupted shared library"},
2244 85: "interrupted system call should be restarted", 2663 {81, "ELIBSCN", ".lib section in a.out corrupted"},
2245 86: "streams pipe error", 2664 {82, "ELIBMAX", "attempting to link in too many shared libraries"},
2246 87: "too many users", 2665 {83, "ELIBEXEC", "cannot exec a shared library directly"},
2247 88: "socket operation on non-socket", 2666 {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2248 89: "destination address required", 2667 {85, "ERESTART", "interrupted system call should be restarted"},
2249 90: "message too long", 2668 {86, "ESTRPIPE", "streams pipe error"},
2250 91: "protocol wrong type for socket", 2669 {87, "EUSERS", "too many users"},
2251 92: "protocol not available", 2670 {88, "ENOTSOCK", "socket operation on non-socket"},
2252 93: "protocol not supported", 2671 {89, "EDESTADDRREQ", "destination address required"},
2253 94: "socket type not supported", 2672 {90, "EMSGSIZE", "message too long"},
2254 95: "operation not supported", 2673 {91, "EPROTOTYPE", "protocol wrong type for socket"},
2255 96: "protocol family not supported", 2674 {92, "ENOPROTOOPT", "protocol not available"},
2256 97: "address family not supported by protocol", 2675 {93, "EPROTONOSUPPORT", "protocol not supported"},
2257 98: "address already in use", 2676 {94, "ESOCKTNOSUPPORT", "socket type not supported"},
2258 99: "cannot assign requested address", 2677 {95, "ENOTSUP", "operation not supported"},
2259 100: "network is down", 2678 {96, "EPFNOSUPPORT", "protocol family not supported"},
2260 101: "network is unreachable", 2679 {97, "EAFNOSUPPORT", "address family not supported by protocol"},
2261 102: "network dropped connection on reset", 2680 {98, "EADDRINUSE", "address already in use"},
2262 103: "software caused connection abort", 2681 {99, "EADDRNOTAVAIL", "cannot assign requested address"},
2263 104: "connection reset by peer", 2682 {100, "ENETDOWN", "network is down"},
2264 105: "no buffer space available", 2683 {101, "ENETUNREACH", "network is unreachable"},
2265 106: "transport endpoint is already connected", 2684 {102, "ENETRESET", "network dropped connection on reset"},
2266 107: "transport endpoint is not connected", 2685 {103, "ECONNABORTED", "software caused connection abort"},
2267 108: "cannot send after transport endpoint shutdown", 2686 {104, "ECONNRESET", "connection reset by peer"},
2268 109: "too many references: cannot splice", 2687 {105, "ENOBUFS", "no buffer space available"},
2269 110: "connection timed out", 2688 {106, "EISCONN", "transport endpoint is already connected"},
2270 111: "connection refused", 2689 {107, "ENOTCONN", "transport endpoint is not connected"},
2271 112: "host is down", 2690 {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2272 113: "no route to host", 2691 {109, "ETOOMANYREFS", "too many references: cannot splice"},
2273 114: "operation already in progress", 2692 {110, "ETIMEDOUT", "connection timed out"},
2274 115: "operation now in progress", 2693 {111, "ECONNREFUSED", "connection refused"},
2275 116: "stale file handle", 2694 {112, "EHOSTDOWN", "host is down"},
2276 117: "structure needs cleaning", 2695 {113, "EHOSTUNREACH", "no route to host"},
2277 118: "not a XENIX named type file", 2696 {114, "EALREADY", "operation already in progress"},
2278 119: "no XENIX semaphores available", 2697 {115, "EINPROGRESS", "operation now in progress"},
2279 120: "is a named type file", 2698 {116, "ESTALE", "stale file handle"},
2280 121: "remote I/O error", 2699 {117, "EUCLEAN", "structure needs cleaning"},
2281 122: "disk quota exceeded", 2700 {118, "ENOTNAM", "not a XENIX named type file"},
2282 123: "no medium found", 2701 {119, "ENAVAIL", "no XENIX semaphores available"},
2283 124: "wrong medium type", 2702 {120, "EISNAM", "is a named type file"},
2284 125: "operation canceled", 2703 {121, "EREMOTEIO", "remote I/O error"},
2285 126: "required key not available", 2704 {122, "EDQUOT", "disk quota exceeded"},
2286 127: "key has expired", 2705 {123, "ENOMEDIUM", "no medium found"},
2287 128: "key has been revoked", 2706 {124, "EMEDIUMTYPE", "wrong medium type"},
2288 129: "key was rejected by service", 2707 {125, "ECANCELED", "operation canceled"},
2289 130: "owner died", 2708 {126, "ENOKEY", "required key not available"},
2290 131: "state not recoverable", 2709 {127, "EKEYEXPIRED", "key has expired"},
2291 132: "operation not possible due to RF-kill", 2710 {128, "EKEYREVOKED", "key has been revoked"},
2292 133: "memory page has hardware error", 2711 {129, "EKEYREJECTED", "key was rejected by service"},
2712 {130, "EOWNERDEAD", "owner died"},
2713 {131, "ENOTRECOVERABLE", "state not recoverable"},
2714 {132, "ERFKILL", "operation not possible due to RF-kill"},
2715 {133, "EHWPOISON", "memory page has hardware error"},
2293} 2716}
2294 2717
2295// Signal table 2718// Signal table
2296var signals = [...]string{ 2719var signalList = [...]struct {
2297 1: "hangup", 2720 num syscall.Signal
2298 2: "interrupt", 2721 name string
2299 3: "quit", 2722 desc string
2300 4: "illegal instruction", 2723}{
2301 5: "trace/breakpoint trap", 2724 {1, "SIGHUP", "hangup"},
2302 6: "aborted", 2725 {2, "SIGINT", "interrupt"},
2303 7: "bus error", 2726 {3, "SIGQUIT", "quit"},
2304 8: "floating point exception", 2727 {4, "SIGILL", "illegal instruction"},
2305 9: "killed", 2728 {5, "SIGTRAP", "trace/breakpoint trap"},
2306 10: "user defined signal 1", 2729 {6, "SIGABRT", "aborted"},
2307 11: "segmentation fault", 2730 {7, "SIGBUS", "bus error"},
2308 12: "user defined signal 2", 2731 {8, "SIGFPE", "floating point exception"},
2309 13: "broken pipe", 2732 {9, "SIGKILL", "killed"},
2310 14: "alarm clock", 2733 {10, "SIGUSR1", "user defined signal 1"},
2311 15: "terminated", 2734 {11, "SIGSEGV", "segmentation fault"},
2312 16: "stack fault", 2735 {12, "SIGUSR2", "user defined signal 2"},
2313 17: "child exited", 2736 {13, "SIGPIPE", "broken pipe"},
2314 18: "continued", 2737 {14, "SIGALRM", "alarm clock"},
2315 19: "stopped (signal)", 2738 {15, "SIGTERM", "terminated"},
2316 20: "stopped", 2739 {16, "SIGSTKFLT", "stack fault"},
2317 21: "stopped (tty input)", 2740 {17, "SIGCHLD", "child exited"},
2318 22: "stopped (tty output)", 2741 {18, "SIGCONT", "continued"},
2319 23: "urgent I/O condition", 2742 {19, "SIGSTOP", "stopped (signal)"},
2320 24: "CPU time limit exceeded", 2743 {20, "SIGTSTP", "stopped"},
2321 25: "file size limit exceeded", 2744 {21, "SIGTTIN", "stopped (tty input)"},
2322 26: "virtual timer expired", 2745 {22, "SIGTTOU", "stopped (tty output)"},
2323 27: "profiling timer expired", 2746 {23, "SIGURG", "urgent I/O condition"},
2324 28: "window changed", 2747 {24, "SIGXCPU", "CPU time limit exceeded"},
2325 29: "I/O possible", 2748 {25, "SIGXFSZ", "file size limit exceeded"},
2326 30: "power failure", 2749 {26, "SIGVTALRM", "virtual timer expired"},
2327 31: "bad system call", 2750 {27, "SIGPROF", "profiling timer expired"},
2751 {28, "SIGWINCH", "window changed"},
2752 {29, "SIGIO", "I/O possible"},
2753 {30, "SIGPWR", "power failure"},
2754 {31, "SIGSYS", "bad system call"},
2328} 2755}
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 95de199..ba93f3e 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
@@ -1,10 +1,10 @@
1// mkerrors.sh -m64 1// mkerrors.sh -Wall -Werror -static -I/tmp/include
2// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 2// Code generated by the command above; see README.md. DO NOT EDIT.
3 3
4// +build sparc64,linux 4// +build sparc64,linux
5 5
6// Created by cgo -godefs - DO NOT EDIT 6// Code generated by cmd/cgo -godefs; DO NOT EDIT.
7// cgo -godefs -- -m64 _const.go 7// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
8 8
9package unix 9package unix
10 10
@@ -1969,174 +1969,182 @@ const (
1969) 1969)
1970 1970
1971// Error table 1971// Error table
1972var errors = [...]string{ 1972var errorList = [...]struct {
1973 1: "operation not permitted", 1973 num syscall.Errno
1974 2: "no such file or directory", 1974 name string
1975 3: "no such process", 1975 desc string
1976 4: "interrupted system call", 1976}{
1977 5: "input/output error", 1977 {1, "EPERM", "operation not permitted"},
1978 6: "no such device or address", 1978 {2, "ENOENT", "no such file or directory"},
1979 7: "argument list too long", 1979 {3, "ESRCH", "no such process"},
1980 8: "exec format error", 1980 {4, "EINTR", "interrupted system call"},
1981 9: "bad file descriptor", 1981 {5, "EIO", "input/output error"},
1982 10: "no child processes", 1982 {6, "ENXIO", "no such device or address"},
1983 11: "resource temporarily unavailable", 1983 {7, "E2BIG", "argument list too long"},
1984 12: "cannot allocate memory", 1984 {8, "ENOEXEC", "exec format error"},
1985 13: "permission denied", 1985 {9, "EBADF", "bad file descriptor"},
1986 14: "bad address", 1986 {10, "ECHILD", "no child processes"},
1987 15: "block device required", 1987 {11, "EAGAIN", "resource temporarily unavailable"},
1988 16: "device or resource busy", 1988 {12, "ENOMEM", "cannot allocate memory"},
1989 17: "file exists", 1989 {13, "EACCES", "permission denied"},
1990 18: "invalid cross-device link", 1990 {14, "EFAULT", "bad address"},
1991 19: "no such device", 1991 {15, "ENOTBLK", "block device required"},
1992 20: "not a directory", 1992 {16, "EBUSY", "device or resource busy"},
1993 21: "is a directory", 1993 {17, "EEXIST", "file exists"},
1994 22: "invalid argument", 1994 {18, "EXDEV", "invalid cross-device link"},
1995 23: "too many open files in system", 1995 {19, "ENODEV", "no such device"},
1996 24: "too many open files", 1996 {20, "ENOTDIR", "not a directory"},
1997 25: "inappropriate ioctl for device", 1997 {21, "EISDIR", "is a directory"},
1998 26: "text file busy", 1998 {22, "EINVAL", "invalid argument"},
1999 27: "file too large", 1999 {23, "ENFILE", "too many open files in system"},
2000 28: "no space left on device", 2000 {24, "EMFILE", "too many open files"},
2001 29: "illegal seek", 2001 {25, "ENOTTY", "inappropriate ioctl for device"},
2002 30: "read-only file system", 2002 {26, "ETXTBSY", "text file busy"},
2003 31: "too many links", 2003 {27, "EFBIG", "file too large"},
2004 32: "broken pipe", 2004 {28, "ENOSPC", "no space left on device"},
2005 33: "numerical argument out of domain", 2005 {29, "ESPIPE", "illegal seek"},
2006 34: "numerical result out of range", 2006 {30, "EROFS", "read-only file system"},
2007 36: "operation now in progress", 2007 {31, "EMLINK", "too many links"},
2008 37: "operation already in progress", 2008 {32, "EPIPE", "broken pipe"},
2009 38: "socket operation on non-socket", 2009 {33, "EDOM", "numerical argument out of domain"},
2010 39: "destination address required", 2010 {34, "ERANGE", "numerical result out of range"},
2011 40: "message too long", 2011 {36, "EINPROGRESS", "operation now in progress"},
2012 41: "protocol wrong type for socket", 2012 {37, "EALREADY", "operation already in progress"},
2013 42: "protocol not available", 2013 {38, "ENOTSOCK", "socket operation on non-socket"},
2014 43: "protocol not supported", 2014 {39, "EDESTADDRREQ", "destination address required"},
2015 44: "socket type not supported", 2015 {40, "EMSGSIZE", "message too long"},
2016 45: "operation not supported", 2016 {41, "EPROTOTYPE", "protocol wrong type for socket"},
2017 46: "protocol family not supported", 2017 {42, "ENOPROTOOPT", "protocol not available"},
2018 47: "address family not supported by protocol", 2018 {43, "EPROTONOSUPPORT", "protocol not supported"},
2019 48: "address already in use", 2019 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
2020 49: "cannot assign requested address", 2020 {45, "ENOTSUP", "operation not supported"},
2021 50: "network is down", 2021 {46, "EPFNOSUPPORT", "protocol family not supported"},
2022 51: "network is unreachable", 2022 {47, "EAFNOSUPPORT", "address family not supported by protocol"},
2023 52: "network dropped connection on reset", 2023 {48, "EADDRINUSE", "address already in use"},
2024 53: "software caused connection abort", 2024 {49, "EADDRNOTAVAIL", "cannot assign requested address"},
2025 54: "connection reset by peer", 2025 {50, "ENETDOWN", "network is down"},
2026 55: "no buffer space available", 2026 {51, "ENETUNREACH", "network is unreachable"},
2027 56: "transport endpoint is already connected", 2027 {52, "ENETRESET", "network dropped connection on reset"},
2028 57: "transport endpoint is not connected", 2028 {53, "ECONNABORTED", "software caused connection abort"},
2029 58: "cannot send after transport endpoint shutdown", 2029 {54, "ECONNRESET", "connection reset by peer"},
2030 59: "too many references: cannot splice", 2030 {55, "ENOBUFS", "no buffer space available"},
2031 60: "connection timed out", 2031 {56, "EISCONN", "transport endpoint is already connected"},
2032 61: "connection refused", 2032 {57, "ENOTCONN", "transport endpoint is not connected"},
2033 62: "too many levels of symbolic links", 2033 {58, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
2034 63: "file name too long", 2034 {59, "ETOOMANYREFS", "too many references: cannot splice"},
2035 64: "host is down", 2035 {60, "ETIMEDOUT", "connection timed out"},
2036 65: "no route to host", 2036 {61, "ECONNREFUSED", "connection refused"},
2037 66: "directory not empty", 2037 {62, "ELOOP", "too many levels of symbolic links"},
2038 67: "too many processes", 2038 {63, "ENAMETOOLONG", "file name too long"},
2039 68: "too many users", 2039 {64, "EHOSTDOWN", "host is down"},
2040 69: "disk quota exceeded", 2040 {65, "EHOSTUNREACH", "no route to host"},
2041 70: "stale file handle", 2041 {66, "ENOTEMPTY", "directory not empty"},
2042 71: "object is remote", 2042 {67, "EPROCLIM", "too many processes"},
2043 72: "device not a stream", 2043 {68, "EUSERS", "too many users"},
2044 73: "timer expired", 2044 {69, "EDQUOT", "disk quota exceeded"},
2045 74: "out of streams resources", 2045 {70, "ESTALE", "stale file handle"},
2046 75: "no message of desired type", 2046 {71, "EREMOTE", "object is remote"},
2047 76: "bad message", 2047 {72, "ENOSTR", "device not a stream"},
2048 77: "identifier removed", 2048 {73, "ETIME", "timer expired"},
2049 78: "resource deadlock avoided", 2049 {74, "ENOSR", "out of streams resources"},
2050 79: "no locks available", 2050 {75, "ENOMSG", "no message of desired type"},
2051 80: "machine is not on the network", 2051 {76, "EBADMSG", "bad message"},
2052 81: "unknown error 81", 2052 {77, "EIDRM", "identifier removed"},
2053 82: "link has been severed", 2053 {78, "EDEADLK", "resource deadlock avoided"},
2054 83: "advertise error", 2054 {79, "ENOLCK", "no locks available"},
2055 84: "srmount error", 2055 {80, "ENONET", "machine is not on the network"},
2056 85: "communication error on send", 2056 {81, "ERREMOTE", "unknown error 81"},
2057 86: "protocol error", 2057 {82, "ENOLINK", "link has been severed"},
2058 87: "multihop attempted", 2058 {83, "EADV", "advertise error"},
2059 88: "RFS specific error", 2059 {84, "ESRMNT", "srmount error"},
2060 89: "remote address changed", 2060 {85, "ECOMM", "communication error on send"},
2061 90: "function not implemented", 2061 {86, "EPROTO", "protocol error"},
2062 91: "streams pipe error", 2062 {87, "EMULTIHOP", "multihop attempted"},
2063 92: "value too large for defined data type", 2063 {88, "EDOTDOT", "RFS specific error"},
2064 93: "file descriptor in bad state", 2064 {89, "EREMCHG", "remote address changed"},
2065 94: "channel number out of range", 2065 {90, "ENOSYS", "function not implemented"},
2066 95: "level 2 not synchronized", 2066 {91, "ESTRPIPE", "streams pipe error"},
2067 96: "level 3 halted", 2067 {92, "EOVERFLOW", "value too large for defined data type"},
2068 97: "level 3 reset", 2068 {93, "EBADFD", "file descriptor in bad state"},
2069 98: "link number out of range", 2069 {94, "ECHRNG", "channel number out of range"},
2070 99: "protocol driver not attached", 2070 {95, "EL2NSYNC", "level 2 not synchronized"},
2071 100: "no CSI structure available", 2071 {96, "EL3HLT", "level 3 halted"},
2072 101: "level 2 halted", 2072 {97, "EL3RST", "level 3 reset"},
2073 102: "invalid exchange", 2073 {98, "ELNRNG", "link number out of range"},
2074 103: "invalid request descriptor", 2074 {99, "EUNATCH", "protocol driver not attached"},
2075 104: "exchange full", 2075 {100, "ENOCSI", "no CSI structure available"},
2076 105: "no anode", 2076 {101, "EL2HLT", "level 2 halted"},
2077 106: "invalid request code", 2077 {102, "EBADE", "invalid exchange"},
2078 107: "invalid slot", 2078 {103, "EBADR", "invalid request descriptor"},
2079 108: "file locking deadlock error", 2079 {104, "EXFULL", "exchange full"},
2080 109: "bad font file format", 2080 {105, "ENOANO", "no anode"},
2081 110: "cannot exec a shared library directly", 2081 {106, "EBADRQC", "invalid request code"},
2082 111: "no data available", 2082 {107, "EBADSLT", "invalid slot"},
2083 112: "accessing a corrupted shared library", 2083 {108, "EDEADLOCK", "file locking deadlock error"},
2084 113: "package not installed", 2084 {109, "EBFONT", "bad font file format"},
2085 114: "can not access a needed shared library", 2085 {110, "ELIBEXEC", "cannot exec a shared library directly"},
2086 115: "name not unique on network", 2086 {111, "ENODATA", "no data available"},
2087 116: "interrupted system call should be restarted", 2087 {112, "ELIBBAD", "accessing a corrupted shared library"},
2088 117: "structure needs cleaning", 2088 {113, "ENOPKG", "package not installed"},
2089 118: "not a XENIX named type file", 2089 {114, "ELIBACC", "can not access a needed shared library"},
2090 119: "no XENIX semaphores available", 2090 {115, "ENOTUNIQ", "name not unique on network"},
2091 120: "is a named type file", 2091 {116, "ERESTART", "interrupted system call should be restarted"},
2092 121: "remote I/O error", 2092 {117, "EUCLEAN", "structure needs cleaning"},
2093 122: "invalid or incomplete multibyte or wide character", 2093 {118, "ENOTNAM", "not a XENIX named type file"},
2094 123: "attempting to link in too many shared libraries", 2094 {119, "ENAVAIL", "no XENIX semaphores available"},
2095 124: ".lib section in a.out corrupted", 2095 {120, "EISNAM", "is a named type file"},
2096 125: "no medium found", 2096 {121, "EREMOTEIO", "remote I/O error"},
2097 126: "wrong medium type", 2097 {122, "EILSEQ", "invalid or incomplete multibyte or wide character"},
2098 127: "operation canceled", 2098 {123, "ELIBMAX", "attempting to link in too many shared libraries"},
2099 128: "required key not available", 2099 {124, "ELIBSCN", ".lib section in a.out corrupted"},
2100 129: "key has expired", 2100 {125, "ENOMEDIUM", "no medium found"},
2101 130: "key has been revoked", 2101 {126, "EMEDIUMTYPE", "wrong medium type"},
2102 131: "key was rejected by service", 2102 {127, "ECANCELED", "operation canceled"},
2103 132: "owner died", 2103 {128, "ENOKEY", "required key not available"},
2104 133: "state not recoverable", 2104 {129, "EKEYEXPIRED", "key has expired"},
2105 134: "operation not possible due to RF-kill", 2105 {130, "EKEYREVOKED", "key has been revoked"},
2106 135: "memory page has hardware error", 2106 {131, "EKEYREJECTED", "key was rejected by service"},
2107 {132, "EOWNERDEAD", "owner died"},
2108 {133, "ENOTRECOVERABLE", "state not recoverable"},
2109 {134, "ERFKILL", "operation not possible due to RF-kill"},
2110 {135, "EHWPOISON", "memory page has hardware error"},
2107} 2111}
2108 2112
2109// Signal table 2113// Signal table
2110var signals = [...]string{ 2114var signalList = [...]struct {
2111 1: "hangup", 2115 num syscall.Signal
2112 2: "interrupt", 2116 name string
2113 3: "quit", 2117 desc string
2114 4: "illegal instruction", 2118}{
2115 5: "trace/breakpoint trap", 2119 {1, "SIGHUP", "hangup"},
2116 6: "aborted", 2120 {2, "SIGINT", "interrupt"},
2117 7: "EMT trap", 2121 {3, "SIGQUIT", "quit"},
2118 8: "floating point exception", 2122 {4, "SIGILL", "illegal instruction"},
2119 9: "killed", 2123 {5, "SIGTRAP", "trace/breakpoint trap"},
2120 10: "bus error", 2124 {6, "SIGABRT", "aborted"},
2121 11: "segmentation fault", 2125 {7, "SIGEMT", "EMT trap"},
2122 12: "bad system call", 2126 {8, "SIGFPE", "floating point exception"},
2123 13: "broken pipe", 2127 {9, "SIGKILL", "killed"},
2124 14: "alarm clock", 2128 {10, "SIGBUS", "bus error"},
2125 15: "terminated", 2129 {11, "SIGSEGV", "segmentation fault"},
2126 16: "urgent I/O condition", 2130 {12, "SIGSYS", "bad system call"},
2127 17: "stopped (signal)", 2131 {13, "SIGPIPE", "broken pipe"},
2128 18: "stopped", 2132 {14, "SIGALRM", "alarm clock"},
2129 19: "continued", 2133 {15, "SIGTERM", "terminated"},
2130 20: "child exited", 2134 {16, "SIGURG", "urgent I/O condition"},
2131 21: "stopped (tty input)", 2135 {17, "SIGSTOP", "stopped (signal)"},
2132 22: "stopped (tty output)", 2136 {18, "SIGTSTP", "stopped"},
2133 23: "I/O possible", 2137 {19, "SIGCONT", "continued"},
2134 24: "CPU time limit exceeded", 2138 {20, "SIGCHLD", "child exited"},
2135 25: "file size limit exceeded", 2139 {21, "SIGTTIN", "stopped (tty input)"},
2136 26: "virtual timer expired", 2140 {22, "SIGTTOU", "stopped (tty output)"},
2137 27: "profiling timer expired", 2141 {23, "SIGIO", "I/O possible"},
2138 28: "window changed", 2142 {24, "SIGXCPU", "CPU time limit exceeded"},
2139 29: "resource lost", 2143 {25, "SIGXFSZ", "file size limit exceeded"},
2140 30: "user defined signal 1", 2144 {26, "SIGVTALRM", "virtual timer expired"},
2141 31: "user defined signal 2", 2145 {27, "SIGPROF", "profiling timer expired"},
2146 {28, "SIGWINCH", "window changed"},
2147 {29, "SIGLOST", "power failure"},
2148 {30, "SIGUSR1", "user defined signal 1"},
2149 {31, "SIGUSR2", "user defined signal 2"},
2142} 2150}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
index 1612b66..78cc04e 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
@@ -159,6 +159,7 @@ const (
159 CLONE_VFORK = 0x4000 159 CLONE_VFORK = 0x4000
160 CLONE_VM = 0x100 160 CLONE_VM = 0x100
161 CREAD = 0x800 161 CREAD = 0x800
162 CRTSCTS = 0x10000
162 CS5 = 0x0 163 CS5 = 0x0
163 CS6 = 0x100 164 CS6 = 0x100
164 CS7 = 0x200 165 CS7 = 0x200
@@ -549,6 +550,10 @@ const (
549 EV_ONESHOT = 0x10 550 EV_ONESHOT = 0x10
550 EV_SYSFLAGS = 0xf000 551 EV_SYSFLAGS = 0xf000
551 EXTA = 0x4b00 552 EXTA = 0x4b00
553 EXTATTR_CMD_START = 0x1
554 EXTATTR_CMD_STOP = 0x2
555 EXTATTR_NAMESPACE_SYSTEM = 0x2
556 EXTATTR_NAMESPACE_USER = 0x1
552 EXTB = 0x9600 557 EXTB = 0x9600
553 EXTPROC = 0x800 558 EXTPROC = 0x800
554 FD_CLOEXEC = 0x1 559 FD_CLOEXEC = 0x1
@@ -1015,6 +1020,43 @@ const (
1015 MAP_WIRED = 0x800 1020 MAP_WIRED = 0x800
1016 MCL_CURRENT = 0x1 1021 MCL_CURRENT = 0x1
1017 MCL_FUTURE = 0x2 1022 MCL_FUTURE = 0x2
1023 MNT_ASYNC = 0x40
1024 MNT_BASIC_FLAGS = 0xe782807f
1025 MNT_DEFEXPORTED = 0x200
1026 MNT_DISCARD = 0x800000
1027 MNT_EXKERB = 0x800
1028 MNT_EXNORESPORT = 0x8000000
1029 MNT_EXPORTANON = 0x400
1030 MNT_EXPORTED = 0x100
1031 MNT_EXPUBLIC = 0x10000000
1032 MNT_EXRDONLY = 0x80
1033 MNT_EXTATTR = 0x1000000
1034 MNT_FORCE = 0x80000
1035 MNT_GETARGS = 0x400000
1036 MNT_IGNORE = 0x100000
1037 MNT_LAZY = 0x3
1038 MNT_LOCAL = 0x1000
1039 MNT_LOG = 0x2000000
1040 MNT_NOATIME = 0x4000000
1041 MNT_NOCOREDUMP = 0x8000
1042 MNT_NODEV = 0x10
1043 MNT_NODEVMTIME = 0x40000000
1044 MNT_NOEXEC = 0x4
1045 MNT_NOSUID = 0x8
1046 MNT_NOWAIT = 0x2
1047 MNT_OP_FLAGS = 0x4d0000
1048 MNT_QUOTA = 0x2000
1049 MNT_RDONLY = 0x1
1050 MNT_RELATIME = 0x20000
1051 MNT_RELOAD = 0x40000
1052 MNT_ROOTFS = 0x4000
1053 MNT_SOFTDEP = 0x80000000
1054 MNT_SYMPERM = 0x20000000
1055 MNT_SYNCHRONOUS = 0x2
1056 MNT_UNION = 0x20
1057 MNT_UPDATE = 0x10000
1058 MNT_VISFLAGMASK = 0xff90ffff
1059 MNT_WAIT = 0x1
1018 MSG_BCAST = 0x100 1060 MSG_BCAST = 0x100
1019 MSG_CMSG_CLOEXEC = 0x800 1061 MSG_CMSG_CLOEXEC = 0x800
1020 MSG_CONTROLMBUF = 0x2000000 1062 MSG_CONTROLMBUF = 0x2000000
@@ -1108,7 +1150,10 @@ const (
1108 RLIMIT_CPU = 0x0 1150 RLIMIT_CPU = 0x0
1109 RLIMIT_DATA = 0x2 1151 RLIMIT_DATA = 0x2
1110 RLIMIT_FSIZE = 0x1 1152 RLIMIT_FSIZE = 0x1
1153 RLIMIT_MEMLOCK = 0x6
1111 RLIMIT_NOFILE = 0x8 1154 RLIMIT_NOFILE = 0x8
1155 RLIMIT_NPROC = 0x7
1156 RLIMIT_RSS = 0x5
1112 RLIMIT_STACK = 0x3 1157 RLIMIT_STACK = 0x3
1113 RLIM_INFINITY = 0x7fffffffffffffff 1158 RLIM_INFINITY = 0x7fffffffffffffff
1114 RTAX_AUTHOR = 0x6 1159 RTAX_AUTHOR = 0x6
@@ -1583,137 +1628,145 @@ const (
1583) 1628)
1584 1629
1585// Error table 1630// Error table
1586var errors = [...]string{ 1631var errorList = [...]struct {
1587 1: "operation not permitted", 1632 num syscall.Errno
1588 2: "no such file or directory", 1633 name string
1589 3: "no such process", 1634 desc string
1590 4: "interrupted system call", 1635}{
1591 5: "input/output error", 1636 {1, "EPERM", "operation not permitted"},
1592 6: "device not configured", 1637 {2, "ENOENT", "no such file or directory"},
1593 7: "argument list too long", 1638 {3, "ESRCH", "no such process"},
1594 8: "exec format error", 1639 {4, "EINTR", "interrupted system call"},
1595 9: "bad file descriptor", 1640 {5, "EIO", "input/output error"},
1596 10: "no child processes", 1641 {6, "ENXIO", "device not configured"},
1597 11: "resource deadlock avoided", 1642 {7, "E2BIG", "argument list too long"},
1598 12: "cannot allocate memory", 1643 {8, "ENOEXEC", "exec format error"},
1599 13: "permission denied", 1644 {9, "EBADF", "bad file descriptor"},
1600 14: "bad address", 1645 {10, "ECHILD", "no child processes"},
1601 15: "block device required", 1646 {11, "EDEADLK", "resource deadlock avoided"},
1602 16: "device busy", 1647 {12, "ENOMEM", "cannot allocate memory"},
1603 17: "file exists", 1648 {13, "EACCES", "permission denied"},
1604 18: "cross-device link", 1649 {14, "EFAULT", "bad address"},
1605 19: "operation not supported by device", 1650 {15, "ENOTBLK", "block device required"},
1606 20: "not a directory", 1651 {16, "EBUSY", "device busy"},
1607 21: "is a directory", 1652 {17, "EEXIST", "file exists"},
1608 22: "invalid argument", 1653 {18, "EXDEV", "cross-device link"},
1609 23: "too many open files in system", 1654 {19, "ENODEV", "operation not supported by device"},
1610 24: "too many open files", 1655 {20, "ENOTDIR", "not a directory"},
1611 25: "inappropriate ioctl for device", 1656 {21, "EISDIR", "is a directory"},
1612 26: "text file busy", 1657 {22, "EINVAL", "invalid argument"},
1613 27: "file too large", 1658 {23, "ENFILE", "too many open files in system"},
1614 28: "no space left on device", 1659 {24, "EMFILE", "too many open files"},
1615 29: "illegal seek", 1660 {25, "ENOTTY", "inappropriate ioctl for device"},
1616 30: "read-only file system", 1661 {26, "ETXTBSY", "text file busy"},
1617 31: "too many links", 1662 {27, "EFBIG", "file too large"},
1618 32: "broken pipe", 1663 {28, "ENOSPC", "no space left on device"},
1619 33: "numerical argument out of domain", 1664 {29, "ESPIPE", "illegal seek"},
1620 34: "result too large or too small", 1665 {30, "EROFS", "read-only file system"},
1621 35: "resource temporarily unavailable", 1666 {31, "EMLINK", "too many links"},
1622 36: "operation now in progress", 1667 {32, "EPIPE", "broken pipe"},
1623 37: "operation already in progress", 1668 {33, "EDOM", "numerical argument out of domain"},
1624 38: "socket operation on non-socket", 1669 {34, "ERANGE", "result too large or too small"},
1625 39: "destination address required", 1670 {35, "EAGAIN", "resource temporarily unavailable"},
1626 40: "message too long", 1671 {36, "EINPROGRESS", "operation now in progress"},
1627 41: "protocol wrong type for socket", 1672 {37, "EALREADY", "operation already in progress"},
1628 42: "protocol option not available", 1673 {38, "ENOTSOCK", "socket operation on non-socket"},
1629 43: "protocol not supported", 1674 {39, "EDESTADDRREQ", "destination address required"},
1630 44: "socket type not supported", 1675 {40, "EMSGSIZE", "message too long"},
1631 45: "operation not supported", 1676 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1632 46: "protocol family not supported", 1677 {42, "ENOPROTOOPT", "protocol option not available"},
1633 47: "address family not supported by protocol family", 1678 {43, "EPROTONOSUPPORT", "protocol not supported"},
1634 48: "address already in use", 1679 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1635 49: "can't assign requested address", 1680 {45, "EOPNOTSUPP", "operation not supported"},
1636 50: "network is down", 1681 {46, "EPFNOSUPPORT", "protocol family not supported"},
1637 51: "network is unreachable", 1682 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1638 52: "network dropped connection on reset", 1683 {48, "EADDRINUSE", "address already in use"},
1639 53: "software caused connection abort", 1684 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1640 54: "connection reset by peer", 1685 {50, "ENETDOWN", "network is down"},
1641 55: "no buffer space available", 1686 {51, "ENETUNREACH", "network is unreachable"},
1642 56: "socket is already connected", 1687 {52, "ENETRESET", "network dropped connection on reset"},
1643 57: "socket is not connected", 1688 {53, "ECONNABORTED", "software caused connection abort"},
1644 58: "can't send after socket shutdown", 1689 {54, "ECONNRESET", "connection reset by peer"},
1645 59: "too many references: can't splice", 1690 {55, "ENOBUFS", "no buffer space available"},
1646 60: "connection timed out", 1691 {56, "EISCONN", "socket is already connected"},
1647 61: "connection refused", 1692 {57, "ENOTCONN", "socket is not connected"},
1648 62: "too many levels of symbolic links", 1693 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1649 63: "file name too long", 1694 {59, "ETOOMANYREFS", "too many references: can't splice"},
1650 64: "host is down", 1695 {60, "ETIMEDOUT", "connection timed out"},
1651 65: "no route to host", 1696 {61, "ECONNREFUSED", "connection refused"},
1652 66: "directory not empty", 1697 {62, "ELOOP", "too many levels of symbolic links"},
1653 67: "too many processes", 1698 {63, "ENAMETOOLONG", "file name too long"},
1654 68: "too many users", 1699 {64, "EHOSTDOWN", "host is down"},
1655 69: "disc quota exceeded", 1700 {65, "EHOSTUNREACH", "no route to host"},
1656 70: "stale NFS file handle", 1701 {66, "ENOTEMPTY", "directory not empty"},
1657 71: "too many levels of remote in path", 1702 {67, "EPROCLIM", "too many processes"},
1658 72: "RPC struct is bad", 1703 {68, "EUSERS", "too many users"},
1659 73: "RPC version wrong", 1704 {69, "EDQUOT", "disc quota exceeded"},
1660 74: "RPC prog. not avail", 1705 {70, "ESTALE", "stale NFS file handle"},
1661 75: "program version wrong", 1706 {71, "EREMOTE", "too many levels of remote in path"},
1662 76: "bad procedure for program", 1707 {72, "EBADRPC", "RPC struct is bad"},
1663 77: "no locks available", 1708 {73, "ERPCMISMATCH", "RPC version wrong"},
1664 78: "function not implemented", 1709 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1665 79: "inappropriate file type or format", 1710 {75, "EPROGMISMATCH", "program version wrong"},
1666 80: "authentication error", 1711 {76, "EPROCUNAVAIL", "bad procedure for program"},
1667 81: "need authenticator", 1712 {77, "ENOLCK", "no locks available"},
1668 82: "identifier removed", 1713 {78, "ENOSYS", "function not implemented"},
1669 83: "no message of desired type", 1714 {79, "EFTYPE", "inappropriate file type or format"},
1670 84: "value too large to be stored in data type", 1715 {80, "EAUTH", "authentication error"},
1671 85: "illegal byte sequence", 1716 {81, "ENEEDAUTH", "need authenticator"},
1672 86: "not supported", 1717 {82, "EIDRM", "identifier removed"},
1673 87: "operation Canceled", 1718 {83, "ENOMSG", "no message of desired type"},
1674 88: "bad or Corrupt message", 1719 {84, "EOVERFLOW", "value too large to be stored in data type"},
1675 89: "no message available", 1720 {85, "EILSEQ", "illegal byte sequence"},
1676 90: "no STREAM resources", 1721 {86, "ENOTSUP", "not supported"},
1677 91: "not a STREAM", 1722 {87, "ECANCELED", "operation Canceled"},
1678 92: "STREAM ioctl timeout", 1723 {88, "EBADMSG", "bad or Corrupt message"},
1679 93: "attribute not found", 1724 {89, "ENODATA", "no message available"},
1680 94: "multihop attempted", 1725 {90, "ENOSR", "no STREAM resources"},
1681 95: "link has been severed", 1726 {91, "ENOSTR", "not a STREAM"},
1682 96: "protocol error", 1727 {92, "ETIME", "STREAM ioctl timeout"},
1728 {93, "ENOATTR", "attribute not found"},
1729 {94, "EMULTIHOP", "multihop attempted"},
1730 {95, "ENOLINK", "link has been severed"},
1731 {96, "ELAST", "protocol error"},
1683} 1732}
1684 1733
1685// Signal table 1734// Signal table
1686var signals = [...]string{ 1735var signalList = [...]struct {
1687 1: "hangup", 1736 num syscall.Signal
1688 2: "interrupt", 1737 name string
1689 3: "quit", 1738 desc string
1690 4: "illegal instruction", 1739}{
1691 5: "trace/BPT trap", 1740 {1, "SIGHUP", "hangup"},
1692 6: "abort trap", 1741 {2, "SIGINT", "interrupt"},
1693 7: "EMT trap", 1742 {3, "SIGQUIT", "quit"},
1694 8: "floating point exception", 1743 {4, "SIGILL", "illegal instruction"},
1695 9: "killed", 1744 {5, "SIGTRAP", "trace/BPT trap"},
1696 10: "bus error", 1745 {6, "SIGIOT", "abort trap"},
1697 11: "segmentation fault", 1746 {7, "SIGEMT", "EMT trap"},
1698 12: "bad system call", 1747 {8, "SIGFPE", "floating point exception"},
1699 13: "broken pipe", 1748 {9, "SIGKILL", "killed"},
1700 14: "alarm clock", 1749 {10, "SIGBUS", "bus error"},
1701 15: "terminated", 1750 {11, "SIGSEGV", "segmentation fault"},
1702 16: "urgent I/O condition", 1751 {12, "SIGSYS", "bad system call"},
1703 17: "stopped (signal)", 1752 {13, "SIGPIPE", "broken pipe"},
1704 18: "stopped", 1753 {14, "SIGALRM", "alarm clock"},
1705 19: "continued", 1754 {15, "SIGTERM", "terminated"},
1706 20: "child exited", 1755 {16, "SIGURG", "urgent I/O condition"},
1707 21: "stopped (tty input)", 1756 {17, "SIGSTOP", "stopped (signal)"},
1708 22: "stopped (tty output)", 1757 {18, "SIGTSTP", "stopped"},
1709 23: "I/O possible", 1758 {19, "SIGCONT", "continued"},
1710 24: "cputime limit exceeded", 1759 {20, "SIGCHLD", "child exited"},
1711 25: "filesize limit exceeded", 1760 {21, "SIGTTIN", "stopped (tty input)"},
1712 26: "virtual timer expired", 1761 {22, "SIGTTOU", "stopped (tty output)"},
1713 27: "profiling timer expired", 1762 {23, "SIGIO", "I/O possible"},
1714 28: "window size changes", 1763 {24, "SIGXCPU", "cputime limit exceeded"},
1715 29: "information request", 1764 {25, "SIGXFSZ", "filesize limit exceeded"},
1716 30: "user defined signal 1", 1765 {26, "SIGVTALRM", "virtual timer expired"},
1717 31: "user defined signal 2", 1766 {27, "SIGPROF", "profiling timer expired"},
1718 32: "power fail/restart", 1767 {28, "SIGWINCH", "window size changes"},
1768 {29, "SIGINFO", "information request"},
1769 {30, "SIGUSR1", "user defined signal 1"},
1770 {31, "SIGUSR2", "user defined signal 2"},
1771 {32, "SIGPWR", "power fail/restart"},
1719} 1772}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
index c994ab6..92185e6 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
@@ -159,6 +159,7 @@ const (
159 CLONE_VFORK = 0x4000 159 CLONE_VFORK = 0x4000
160 CLONE_VM = 0x100 160 CLONE_VM = 0x100
161 CREAD = 0x800 161 CREAD = 0x800
162 CRTSCTS = 0x10000
162 CS5 = 0x0 163 CS5 = 0x0
163 CS6 = 0x100 164 CS6 = 0x100
164 CS7 = 0x200 165 CS7 = 0x200
@@ -539,6 +540,10 @@ const (
539 EV_ONESHOT = 0x10 540 EV_ONESHOT = 0x10
540 EV_SYSFLAGS = 0xf000 541 EV_SYSFLAGS = 0xf000
541 EXTA = 0x4b00 542 EXTA = 0x4b00
543 EXTATTR_CMD_START = 0x1
544 EXTATTR_CMD_STOP = 0x2
545 EXTATTR_NAMESPACE_SYSTEM = 0x2
546 EXTATTR_NAMESPACE_USER = 0x1
542 EXTB = 0x9600 547 EXTB = 0x9600
543 EXTPROC = 0x800 548 EXTPROC = 0x800
544 FD_CLOEXEC = 0x1 549 FD_CLOEXEC = 0x1
@@ -1005,6 +1010,43 @@ const (
1005 MAP_WIRED = 0x800 1010 MAP_WIRED = 0x800
1006 MCL_CURRENT = 0x1 1011 MCL_CURRENT = 0x1
1007 MCL_FUTURE = 0x2 1012 MCL_FUTURE = 0x2
1013 MNT_ASYNC = 0x40
1014 MNT_BASIC_FLAGS = 0xe782807f
1015 MNT_DEFEXPORTED = 0x200
1016 MNT_DISCARD = 0x800000
1017 MNT_EXKERB = 0x800
1018 MNT_EXNORESPORT = 0x8000000
1019 MNT_EXPORTANON = 0x400
1020 MNT_EXPORTED = 0x100
1021 MNT_EXPUBLIC = 0x10000000
1022 MNT_EXRDONLY = 0x80
1023 MNT_EXTATTR = 0x1000000
1024 MNT_FORCE = 0x80000
1025 MNT_GETARGS = 0x400000
1026 MNT_IGNORE = 0x100000
1027 MNT_LAZY = 0x3
1028 MNT_LOCAL = 0x1000
1029 MNT_LOG = 0x2000000
1030 MNT_NOATIME = 0x4000000
1031 MNT_NOCOREDUMP = 0x8000
1032 MNT_NODEV = 0x10
1033 MNT_NODEVMTIME = 0x40000000
1034 MNT_NOEXEC = 0x4
1035 MNT_NOSUID = 0x8
1036 MNT_NOWAIT = 0x2
1037 MNT_OP_FLAGS = 0x4d0000
1038 MNT_QUOTA = 0x2000
1039 MNT_RDONLY = 0x1
1040 MNT_RELATIME = 0x20000
1041 MNT_RELOAD = 0x40000
1042 MNT_ROOTFS = 0x4000
1043 MNT_SOFTDEP = 0x80000000
1044 MNT_SYMPERM = 0x20000000
1045 MNT_SYNCHRONOUS = 0x2
1046 MNT_UNION = 0x20
1047 MNT_UPDATE = 0x10000
1048 MNT_VISFLAGMASK = 0xff90ffff
1049 MNT_WAIT = 0x1
1008 MSG_BCAST = 0x100 1050 MSG_BCAST = 0x100
1009 MSG_CMSG_CLOEXEC = 0x800 1051 MSG_CMSG_CLOEXEC = 0x800
1010 MSG_CONTROLMBUF = 0x2000000 1052 MSG_CONTROLMBUF = 0x2000000
@@ -1098,7 +1140,10 @@ const (
1098 RLIMIT_CPU = 0x0 1140 RLIMIT_CPU = 0x0
1099 RLIMIT_DATA = 0x2 1141 RLIMIT_DATA = 0x2
1100 RLIMIT_FSIZE = 0x1 1142 RLIMIT_FSIZE = 0x1
1143 RLIMIT_MEMLOCK = 0x6
1101 RLIMIT_NOFILE = 0x8 1144 RLIMIT_NOFILE = 0x8
1145 RLIMIT_NPROC = 0x7
1146 RLIMIT_RSS = 0x5
1102 RLIMIT_STACK = 0x3 1147 RLIMIT_STACK = 0x3
1103 RLIM_INFINITY = 0x7fffffffffffffff 1148 RLIM_INFINITY = 0x7fffffffffffffff
1104 RTAX_AUTHOR = 0x6 1149 RTAX_AUTHOR = 0x6
@@ -1573,137 +1618,145 @@ const (
1573) 1618)
1574 1619
1575// Error table 1620// Error table
1576var errors = [...]string{ 1621var errorList = [...]struct {
1577 1: "operation not permitted", 1622 num syscall.Errno
1578 2: "no such file or directory", 1623 name string
1579 3: "no such process", 1624 desc string
1580 4: "interrupted system call", 1625}{
1581 5: "input/output error", 1626 {1, "EPERM", "operation not permitted"},
1582 6: "device not configured", 1627 {2, "ENOENT", "no such file or directory"},
1583 7: "argument list too long", 1628 {3, "ESRCH", "no such process"},
1584 8: "exec format error", 1629 {4, "EINTR", "interrupted system call"},
1585 9: "bad file descriptor", 1630 {5, "EIO", "input/output error"},
1586 10: "no child processes", 1631 {6, "ENXIO", "device not configured"},
1587 11: "resource deadlock avoided", 1632 {7, "E2BIG", "argument list too long"},
1588 12: "cannot allocate memory", 1633 {8, "ENOEXEC", "exec format error"},
1589 13: "permission denied", 1634 {9, "EBADF", "bad file descriptor"},
1590 14: "bad address", 1635 {10, "ECHILD", "no child processes"},
1591 15: "block device required", 1636 {11, "EDEADLK", "resource deadlock avoided"},
1592 16: "device busy", 1637 {12, "ENOMEM", "cannot allocate memory"},
1593 17: "file exists", 1638 {13, "EACCES", "permission denied"},
1594 18: "cross-device link", 1639 {14, "EFAULT", "bad address"},
1595 19: "operation not supported by device", 1640 {15, "ENOTBLK", "block device required"},
1596 20: "not a directory", 1641 {16, "EBUSY", "device busy"},
1597 21: "is a directory", 1642 {17, "EEXIST", "file exists"},
1598 22: "invalid argument", 1643 {18, "EXDEV", "cross-device link"},
1599 23: "too many open files in system", 1644 {19, "ENODEV", "operation not supported by device"},
1600 24: "too many open files", 1645 {20, "ENOTDIR", "not a directory"},
1601 25: "inappropriate ioctl for device", 1646 {21, "EISDIR", "is a directory"},
1602 26: "text file busy", 1647 {22, "EINVAL", "invalid argument"},
1603 27: "file too large", 1648 {23, "ENFILE", "too many open files in system"},
1604 28: "no space left on device", 1649 {24, "EMFILE", "too many open files"},
1605 29: "illegal seek", 1650 {25, "ENOTTY", "inappropriate ioctl for device"},
1606 30: "read-only file system", 1651 {26, "ETXTBSY", "text file busy"},
1607 31: "too many links", 1652 {27, "EFBIG", "file too large"},
1608 32: "broken pipe", 1653 {28, "ENOSPC", "no space left on device"},
1609 33: "numerical argument out of domain", 1654 {29, "ESPIPE", "illegal seek"},
1610 34: "result too large or too small", 1655 {30, "EROFS", "read-only file system"},
1611 35: "resource temporarily unavailable", 1656 {31, "EMLINK", "too many links"},
1612 36: "operation now in progress", 1657 {32, "EPIPE", "broken pipe"},
1613 37: "operation already in progress", 1658 {33, "EDOM", "numerical argument out of domain"},
1614 38: "socket operation on non-socket", 1659 {34, "ERANGE", "result too large or too small"},
1615 39: "destination address required", 1660 {35, "EAGAIN", "resource temporarily unavailable"},
1616 40: "message too long", 1661 {36, "EINPROGRESS", "operation now in progress"},
1617 41: "protocol wrong type for socket", 1662 {37, "EALREADY", "operation already in progress"},
1618 42: "protocol option not available", 1663 {38, "ENOTSOCK", "socket operation on non-socket"},
1619 43: "protocol not supported", 1664 {39, "EDESTADDRREQ", "destination address required"},
1620 44: "socket type not supported", 1665 {40, "EMSGSIZE", "message too long"},
1621 45: "operation not supported", 1666 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1622 46: "protocol family not supported", 1667 {42, "ENOPROTOOPT", "protocol option not available"},
1623 47: "address family not supported by protocol family", 1668 {43, "EPROTONOSUPPORT", "protocol not supported"},
1624 48: "address already in use", 1669 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1625 49: "can't assign requested address", 1670 {45, "EOPNOTSUPP", "operation not supported"},
1626 50: "network is down", 1671 {46, "EPFNOSUPPORT", "protocol family not supported"},
1627 51: "network is unreachable", 1672 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1628 52: "network dropped connection on reset", 1673 {48, "EADDRINUSE", "address already in use"},
1629 53: "software caused connection abort", 1674 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1630 54: "connection reset by peer", 1675 {50, "ENETDOWN", "network is down"},
1631 55: "no buffer space available", 1676 {51, "ENETUNREACH", "network is unreachable"},
1632 56: "socket is already connected", 1677 {52, "ENETRESET", "network dropped connection on reset"},
1633 57: "socket is not connected", 1678 {53, "ECONNABORTED", "software caused connection abort"},
1634 58: "can't send after socket shutdown", 1679 {54, "ECONNRESET", "connection reset by peer"},
1635 59: "too many references: can't splice", 1680 {55, "ENOBUFS", "no buffer space available"},
1636 60: "connection timed out", 1681 {56, "EISCONN", "socket is already connected"},
1637 61: "connection refused", 1682 {57, "ENOTCONN", "socket is not connected"},
1638 62: "too many levels of symbolic links", 1683 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1639 63: "file name too long", 1684 {59, "ETOOMANYREFS", "too many references: can't splice"},
1640 64: "host is down", 1685 {60, "ETIMEDOUT", "connection timed out"},
1641 65: "no route to host", 1686 {61, "ECONNREFUSED", "connection refused"},
1642 66: "directory not empty", 1687 {62, "ELOOP", "too many levels of symbolic links"},
1643 67: "too many processes", 1688 {63, "ENAMETOOLONG", "file name too long"},
1644 68: "too many users", 1689 {64, "EHOSTDOWN", "host is down"},
1645 69: "disc quota exceeded", 1690 {65, "EHOSTUNREACH", "no route to host"},
1646 70: "stale NFS file handle", 1691 {66, "ENOTEMPTY", "directory not empty"},
1647 71: "too many levels of remote in path", 1692 {67, "EPROCLIM", "too many processes"},
1648 72: "RPC struct is bad", 1693 {68, "EUSERS", "too many users"},
1649 73: "RPC version wrong", 1694 {69, "EDQUOT", "disc quota exceeded"},
1650 74: "RPC prog. not avail", 1695 {70, "ESTALE", "stale NFS file handle"},
1651 75: "program version wrong", 1696 {71, "EREMOTE", "too many levels of remote in path"},
1652 76: "bad procedure for program", 1697 {72, "EBADRPC", "RPC struct is bad"},
1653 77: "no locks available", 1698 {73, "ERPCMISMATCH", "RPC version wrong"},
1654 78: "function not implemented", 1699 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1655 79: "inappropriate file type or format", 1700 {75, "EPROGMISMATCH", "program version wrong"},
1656 80: "authentication error", 1701 {76, "EPROCUNAVAIL", "bad procedure for program"},
1657 81: "need authenticator", 1702 {77, "ENOLCK", "no locks available"},
1658 82: "identifier removed", 1703 {78, "ENOSYS", "function not implemented"},
1659 83: "no message of desired type", 1704 {79, "EFTYPE", "inappropriate file type or format"},
1660 84: "value too large to be stored in data type", 1705 {80, "EAUTH", "authentication error"},
1661 85: "illegal byte sequence", 1706 {81, "ENEEDAUTH", "need authenticator"},
1662 86: "not supported", 1707 {82, "EIDRM", "identifier removed"},
1663 87: "operation Canceled", 1708 {83, "ENOMSG", "no message of desired type"},
1664 88: "bad or Corrupt message", 1709 {84, "EOVERFLOW", "value too large to be stored in data type"},
1665 89: "no message available", 1710 {85, "EILSEQ", "illegal byte sequence"},
1666 90: "no STREAM resources", 1711 {86, "ENOTSUP", "not supported"},
1667 91: "not a STREAM", 1712 {87, "ECANCELED", "operation Canceled"},
1668 92: "STREAM ioctl timeout", 1713 {88, "EBADMSG", "bad or Corrupt message"},
1669 93: "attribute not found", 1714 {89, "ENODATA", "no message available"},
1670 94: "multihop attempted", 1715 {90, "ENOSR", "no STREAM resources"},
1671 95: "link has been severed", 1716 {91, "ENOSTR", "not a STREAM"},
1672 96: "protocol error", 1717 {92, "ETIME", "STREAM ioctl timeout"},
1718 {93, "ENOATTR", "attribute not found"},
1719 {94, "EMULTIHOP", "multihop attempted"},
1720 {95, "ENOLINK", "link has been severed"},
1721 {96, "ELAST", "protocol error"},
1673} 1722}
1674 1723
1675// Signal table 1724// Signal table
1676var signals = [...]string{ 1725var signalList = [...]struct {
1677 1: "hangup", 1726 num syscall.Signal
1678 2: "interrupt", 1727 name string
1679 3: "quit", 1728 desc string
1680 4: "illegal instruction", 1729}{
1681 5: "trace/BPT trap", 1730 {1, "SIGHUP", "hangup"},
1682 6: "abort trap", 1731 {2, "SIGINT", "interrupt"},
1683 7: "EMT trap", 1732 {3, "SIGQUIT", "quit"},
1684 8: "floating point exception", 1733 {4, "SIGILL", "illegal instruction"},
1685 9: "killed", 1734 {5, "SIGTRAP", "trace/BPT trap"},
1686 10: "bus error", 1735 {6, "SIGIOT", "abort trap"},
1687 11: "segmentation fault", 1736 {7, "SIGEMT", "EMT trap"},
1688 12: "bad system call", 1737 {8, "SIGFPE", "floating point exception"},
1689 13: "broken pipe", 1738 {9, "SIGKILL", "killed"},
1690 14: "alarm clock", 1739 {10, "SIGBUS", "bus error"},
1691 15: "terminated", 1740 {11, "SIGSEGV", "segmentation fault"},
1692 16: "urgent I/O condition", 1741 {12, "SIGSYS", "bad system call"},
1693 17: "stopped (signal)", 1742 {13, "SIGPIPE", "broken pipe"},
1694 18: "stopped", 1743 {14, "SIGALRM", "alarm clock"},
1695 19: "continued", 1744 {15, "SIGTERM", "terminated"},
1696 20: "child exited", 1745 {16, "SIGURG", "urgent I/O condition"},
1697 21: "stopped (tty input)", 1746 {17, "SIGSTOP", "stopped (signal)"},
1698 22: "stopped (tty output)", 1747 {18, "SIGTSTP", "stopped"},
1699 23: "I/O possible", 1748 {19, "SIGCONT", "continued"},
1700 24: "cputime limit exceeded", 1749 {20, "SIGCHLD", "child exited"},
1701 25: "filesize limit exceeded", 1750 {21, "SIGTTIN", "stopped (tty input)"},
1702 26: "virtual timer expired", 1751 {22, "SIGTTOU", "stopped (tty output)"},
1703 27: "profiling timer expired", 1752 {23, "SIGIO", "I/O possible"},
1704 28: "window size changes", 1753 {24, "SIGXCPU", "cputime limit exceeded"},
1705 29: "information request", 1754 {25, "SIGXFSZ", "filesize limit exceeded"},
1706 30: "user defined signal 1", 1755 {26, "SIGVTALRM", "virtual timer expired"},
1707 31: "user defined signal 2", 1756 {27, "SIGPROF", "profiling timer expired"},
1708 32: "power fail/restart", 1757 {28, "SIGWINCH", "window size changes"},
1758 {29, "SIGINFO", "information request"},
1759 {30, "SIGUSR1", "user defined signal 1"},
1760 {31, "SIGUSR2", "user defined signal 2"},
1761 {32, "SIGPWR", "power fail/restart"},
1709} 1762}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
index a8f9efe..373ad45 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
@@ -151,6 +151,7 @@ const (
151 CFLUSH = 0xf 151 CFLUSH = 0xf
152 CLOCAL = 0x8000 152 CLOCAL = 0x8000
153 CREAD = 0x800 153 CREAD = 0x800
154 CRTSCTS = 0x10000
154 CS5 = 0x0 155 CS5 = 0x0
155 CS6 = 0x100 156 CS6 = 0x100
156 CS7 = 0x200 157 CS7 = 0x200
@@ -531,6 +532,10 @@ const (
531 EV_ONESHOT = 0x10 532 EV_ONESHOT = 0x10
532 EV_SYSFLAGS = 0xf000 533 EV_SYSFLAGS = 0xf000
533 EXTA = 0x4b00 534 EXTA = 0x4b00
535 EXTATTR_CMD_START = 0x1
536 EXTATTR_CMD_STOP = 0x2
537 EXTATTR_NAMESPACE_SYSTEM = 0x2
538 EXTATTR_NAMESPACE_USER = 0x1
534 EXTB = 0x9600 539 EXTB = 0x9600
535 EXTPROC = 0x800 540 EXTPROC = 0x800
536 FD_CLOEXEC = 0x1 541 FD_CLOEXEC = 0x1
@@ -995,6 +1000,43 @@ const (
995 MAP_STACK = 0x2000 1000 MAP_STACK = 0x2000
996 MAP_TRYFIXED = 0x400 1001 MAP_TRYFIXED = 0x400
997 MAP_WIRED = 0x800 1002 MAP_WIRED = 0x800
1003 MNT_ASYNC = 0x40
1004 MNT_BASIC_FLAGS = 0xe782807f
1005 MNT_DEFEXPORTED = 0x200
1006 MNT_DISCARD = 0x800000
1007 MNT_EXKERB = 0x800
1008 MNT_EXNORESPORT = 0x8000000
1009 MNT_EXPORTANON = 0x400
1010 MNT_EXPORTED = 0x100
1011 MNT_EXPUBLIC = 0x10000000
1012 MNT_EXRDONLY = 0x80
1013 MNT_EXTATTR = 0x1000000
1014 MNT_FORCE = 0x80000
1015 MNT_GETARGS = 0x400000
1016 MNT_IGNORE = 0x100000
1017 MNT_LAZY = 0x3
1018 MNT_LOCAL = 0x1000
1019 MNT_LOG = 0x2000000
1020 MNT_NOATIME = 0x4000000
1021 MNT_NOCOREDUMP = 0x8000
1022 MNT_NODEV = 0x10
1023 MNT_NODEVMTIME = 0x40000000
1024 MNT_NOEXEC = 0x4
1025 MNT_NOSUID = 0x8
1026 MNT_NOWAIT = 0x2
1027 MNT_OP_FLAGS = 0x4d0000
1028 MNT_QUOTA = 0x2000
1029 MNT_RDONLY = 0x1
1030 MNT_RELATIME = 0x20000
1031 MNT_RELOAD = 0x40000
1032 MNT_ROOTFS = 0x4000
1033 MNT_SOFTDEP = 0x80000000
1034 MNT_SYMPERM = 0x20000000
1035 MNT_SYNCHRONOUS = 0x2
1036 MNT_UNION = 0x20
1037 MNT_UPDATE = 0x10000
1038 MNT_VISFLAGMASK = 0xff90ffff
1039 MNT_WAIT = 0x1
998 MSG_BCAST = 0x100 1040 MSG_BCAST = 0x100
999 MSG_CMSG_CLOEXEC = 0x800 1041 MSG_CMSG_CLOEXEC = 0x800
1000 MSG_CONTROLMBUF = 0x2000000 1042 MSG_CONTROLMBUF = 0x2000000
@@ -1088,7 +1130,10 @@ const (
1088 RLIMIT_CPU = 0x0 1130 RLIMIT_CPU = 0x0
1089 RLIMIT_DATA = 0x2 1131 RLIMIT_DATA = 0x2
1090 RLIMIT_FSIZE = 0x1 1132 RLIMIT_FSIZE = 0x1
1133 RLIMIT_MEMLOCK = 0x6
1091 RLIMIT_NOFILE = 0x8 1134 RLIMIT_NOFILE = 0x8
1135 RLIMIT_NPROC = 0x7
1136 RLIMIT_RSS = 0x5
1092 RLIMIT_STACK = 0x3 1137 RLIMIT_STACK = 0x3
1093 RLIM_INFINITY = 0x7fffffffffffffff 1138 RLIM_INFINITY = 0x7fffffffffffffff
1094 RTAX_AUTHOR = 0x6 1139 RTAX_AUTHOR = 0x6
@@ -1562,137 +1607,145 @@ const (
1562) 1607)
1563 1608
1564// Error table 1609// Error table
1565var errors = [...]string{ 1610var errorList = [...]struct {
1566 1: "operation not permitted", 1611 num syscall.Errno
1567 2: "no such file or directory", 1612 name string
1568 3: "no such process", 1613 desc string
1569 4: "interrupted system call", 1614}{
1570 5: "input/output error", 1615 {1, "EPERM", "operation not permitted"},
1571 6: "device not configured", 1616 {2, "ENOENT", "no such file or directory"},
1572 7: "argument list too long", 1617 {3, "ESRCH", "no such process"},
1573 8: "exec format error", 1618 {4, "EINTR", "interrupted system call"},
1574 9: "bad file descriptor", 1619 {5, "EIO", "input/output error"},
1575 10: "no child processes", 1620 {6, "ENXIO", "device not configured"},
1576 11: "resource deadlock avoided", 1621 {7, "E2BIG", "argument list too long"},
1577 12: "cannot allocate memory", 1622 {8, "ENOEXEC", "exec format error"},
1578 13: "permission denied", 1623 {9, "EBADF", "bad file descriptor"},
1579 14: "bad address", 1624 {10, "ECHILD", "no child processes"},
1580 15: "block device required", 1625 {11, "EDEADLK", "resource deadlock avoided"},
1581 16: "device busy", 1626 {12, "ENOMEM", "cannot allocate memory"},
1582 17: "file exists", 1627 {13, "EACCES", "permission denied"},
1583 18: "cross-device link", 1628 {14, "EFAULT", "bad address"},
1584 19: "operation not supported by device", 1629 {15, "ENOTBLK", "block device required"},
1585 20: "not a directory", 1630 {16, "EBUSY", "device busy"},
1586 21: "is a directory", 1631 {17, "EEXIST", "file exists"},
1587 22: "invalid argument", 1632 {18, "EXDEV", "cross-device link"},
1588 23: "too many open files in system", 1633 {19, "ENODEV", "operation not supported by device"},
1589 24: "too many open files", 1634 {20, "ENOTDIR", "not a directory"},
1590 25: "inappropriate ioctl for device", 1635 {21, "EISDIR", "is a directory"},
1591 26: "text file busy", 1636 {22, "EINVAL", "invalid argument"},
1592 27: "file too large", 1637 {23, "ENFILE", "too many open files in system"},
1593 28: "no space left on device", 1638 {24, "EMFILE", "too many open files"},
1594 29: "illegal seek", 1639 {25, "ENOTTY", "inappropriate ioctl for device"},
1595 30: "read-only file system", 1640 {26, "ETXTBSY", "text file busy"},
1596 31: "too many links", 1641 {27, "EFBIG", "file too large"},
1597 32: "broken pipe", 1642 {28, "ENOSPC", "no space left on device"},
1598 33: "numerical argument out of domain", 1643 {29, "ESPIPE", "illegal seek"},
1599 34: "result too large or too small", 1644 {30, "EROFS", "read-only file system"},
1600 35: "resource temporarily unavailable", 1645 {31, "EMLINK", "too many links"},
1601 36: "operation now in progress", 1646 {32, "EPIPE", "broken pipe"},
1602 37: "operation already in progress", 1647 {33, "EDOM", "numerical argument out of domain"},
1603 38: "socket operation on non-socket", 1648 {34, "ERANGE", "result too large or too small"},
1604 39: "destination address required", 1649 {35, "EAGAIN", "resource temporarily unavailable"},
1605 40: "message too long", 1650 {36, "EINPROGRESS", "operation now in progress"},
1606 41: "protocol wrong type for socket", 1651 {37, "EALREADY", "operation already in progress"},
1607 42: "protocol option not available", 1652 {38, "ENOTSOCK", "socket operation on non-socket"},
1608 43: "protocol not supported", 1653 {39, "EDESTADDRREQ", "destination address required"},
1609 44: "socket type not supported", 1654 {40, "EMSGSIZE", "message too long"},
1610 45: "operation not supported", 1655 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1611 46: "protocol family not supported", 1656 {42, "ENOPROTOOPT", "protocol option not available"},
1612 47: "address family not supported by protocol family", 1657 {43, "EPROTONOSUPPORT", "protocol not supported"},
1613 48: "address already in use", 1658 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1614 49: "can't assign requested address", 1659 {45, "EOPNOTSUPP", "operation not supported"},
1615 50: "network is down", 1660 {46, "EPFNOSUPPORT", "protocol family not supported"},
1616 51: "network is unreachable", 1661 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1617 52: "network dropped connection on reset", 1662 {48, "EADDRINUSE", "address already in use"},
1618 53: "software caused connection abort", 1663 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1619 54: "connection reset by peer", 1664 {50, "ENETDOWN", "network is down"},
1620 55: "no buffer space available", 1665 {51, "ENETUNREACH", "network is unreachable"},
1621 56: "socket is already connected", 1666 {52, "ENETRESET", "network dropped connection on reset"},
1622 57: "socket is not connected", 1667 {53, "ECONNABORTED", "software caused connection abort"},
1623 58: "can't send after socket shutdown", 1668 {54, "ECONNRESET", "connection reset by peer"},
1624 59: "too many references: can't splice", 1669 {55, "ENOBUFS", "no buffer space available"},
1625 60: "connection timed out", 1670 {56, "EISCONN", "socket is already connected"},
1626 61: "connection refused", 1671 {57, "ENOTCONN", "socket is not connected"},
1627 62: "too many levels of symbolic links", 1672 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1628 63: "file name too long", 1673 {59, "ETOOMANYREFS", "too many references: can't splice"},
1629 64: "host is down", 1674 {60, "ETIMEDOUT", "connection timed out"},
1630 65: "no route to host", 1675 {61, "ECONNREFUSED", "connection refused"},
1631 66: "directory not empty", 1676 {62, "ELOOP", "too many levels of symbolic links"},
1632 67: "too many processes", 1677 {63, "ENAMETOOLONG", "file name too long"},
1633 68: "too many users", 1678 {64, "EHOSTDOWN", "host is down"},
1634 69: "disc quota exceeded", 1679 {65, "EHOSTUNREACH", "no route to host"},
1635 70: "stale NFS file handle", 1680 {66, "ENOTEMPTY", "directory not empty"},
1636 71: "too many levels of remote in path", 1681 {67, "EPROCLIM", "too many processes"},
1637 72: "RPC struct is bad", 1682 {68, "EUSERS", "too many users"},
1638 73: "RPC version wrong", 1683 {69, "EDQUOT", "disc quota exceeded"},
1639 74: "RPC prog. not avail", 1684 {70, "ESTALE", "stale NFS file handle"},
1640 75: "program version wrong", 1685 {71, "EREMOTE", "too many levels of remote in path"},
1641 76: "bad procedure for program", 1686 {72, "EBADRPC", "RPC struct is bad"},
1642 77: "no locks available", 1687 {73, "ERPCMISMATCH", "RPC version wrong"},
1643 78: "function not implemented", 1688 {74, "EPROGUNAVAIL", "RPC prog. not avail"},
1644 79: "inappropriate file type or format", 1689 {75, "EPROGMISMATCH", "program version wrong"},
1645 80: "authentication error", 1690 {76, "EPROCUNAVAIL", "bad procedure for program"},
1646 81: "need authenticator", 1691 {77, "ENOLCK", "no locks available"},
1647 82: "identifier removed", 1692 {78, "ENOSYS", "function not implemented"},
1648 83: "no message of desired type", 1693 {79, "EFTYPE", "inappropriate file type or format"},
1649 84: "value too large to be stored in data type", 1694 {80, "EAUTH", "authentication error"},
1650 85: "illegal byte sequence", 1695 {81, "ENEEDAUTH", "need authenticator"},
1651 86: "not supported", 1696 {82, "EIDRM", "identifier removed"},
1652 87: "operation Canceled", 1697 {83, "ENOMSG", "no message of desired type"},
1653 88: "bad or Corrupt message", 1698 {84, "EOVERFLOW", "value too large to be stored in data type"},
1654 89: "no message available", 1699 {85, "EILSEQ", "illegal byte sequence"},
1655 90: "no STREAM resources", 1700 {86, "ENOTSUP", "not supported"},
1656 91: "not a STREAM", 1701 {87, "ECANCELED", "operation Canceled"},
1657 92: "STREAM ioctl timeout", 1702 {88, "EBADMSG", "bad or Corrupt message"},
1658 93: "attribute not found", 1703 {89, "ENODATA", "no message available"},
1659 94: "multihop attempted", 1704 {90, "ENOSR", "no STREAM resources"},
1660 95: "link has been severed", 1705 {91, "ENOSTR", "not a STREAM"},
1661 96: "protocol error", 1706 {92, "ETIME", "STREAM ioctl timeout"},
1707 {93, "ENOATTR", "attribute not found"},
1708 {94, "EMULTIHOP", "multihop attempted"},
1709 {95, "ENOLINK", "link has been severed"},
1710 {96, "ELAST", "protocol error"},
1662} 1711}
1663 1712
1664// Signal table 1713// Signal table
1665var signals = [...]string{ 1714var signalList = [...]struct {
1666 1: "hangup", 1715 num syscall.Signal
1667 2: "interrupt", 1716 name string
1668 3: "quit", 1717 desc string
1669 4: "illegal instruction", 1718}{
1670 5: "trace/BPT trap", 1719 {1, "SIGHUP", "hangup"},
1671 6: "abort trap", 1720 {2, "SIGINT", "interrupt"},
1672 7: "EMT trap", 1721 {3, "SIGQUIT", "quit"},
1673 8: "floating point exception", 1722 {4, "SIGILL", "illegal instruction"},
1674 9: "killed", 1723 {5, "SIGTRAP", "trace/BPT trap"},
1675 10: "bus error", 1724 {6, "SIGIOT", "abort trap"},
1676 11: "segmentation fault", 1725 {7, "SIGEMT", "EMT trap"},
1677 12: "bad system call", 1726 {8, "SIGFPE", "floating point exception"},
1678 13: "broken pipe", 1727 {9, "SIGKILL", "killed"},
1679 14: "alarm clock", 1728 {10, "SIGBUS", "bus error"},
1680 15: "terminated", 1729 {11, "SIGSEGV", "segmentation fault"},
1681 16: "urgent I/O condition", 1730 {12, "SIGSYS", "bad system call"},
1682 17: "stopped (signal)", 1731 {13, "SIGPIPE", "broken pipe"},
1683 18: "stopped", 1732 {14, "SIGALRM", "alarm clock"},
1684 19: "continued", 1733 {15, "SIGTERM", "terminated"},
1685 20: "child exited", 1734 {16, "SIGURG", "urgent I/O condition"},
1686 21: "stopped (tty input)", 1735 {17, "SIGSTOP", "stopped (signal)"},
1687 22: "stopped (tty output)", 1736 {18, "SIGTSTP", "stopped"},
1688 23: "I/O possible", 1737 {19, "SIGCONT", "continued"},
1689 24: "cputime limit exceeded", 1738 {20, "SIGCHLD", "child exited"},
1690 25: "filesize limit exceeded", 1739 {21, "SIGTTIN", "stopped (tty input)"},
1691 26: "virtual timer expired", 1740 {22, "SIGTTOU", "stopped (tty output)"},
1692 27: "profiling timer expired", 1741 {23, "SIGIO", "I/O possible"},
1693 28: "window size changes", 1742 {24, "SIGXCPU", "cputime limit exceeded"},
1694 29: "information request", 1743 {25, "SIGXFSZ", "filesize limit exceeded"},
1695 30: "user defined signal 1", 1744 {26, "SIGVTALRM", "virtual timer expired"},
1696 31: "user defined signal 2", 1745 {27, "SIGPROF", "profiling timer expired"},
1697 32: "power fail/restart", 1746 {28, "SIGWINCH", "window size changes"},
1747 {29, "SIGINFO", "information request"},
1748 {30, "SIGUSR1", "user defined signal 1"},
1749 {31, "SIGUSR2", "user defined signal 2"},
1750 {32, "SIGPWR", "power fail/restart"},
1698} 1751}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
index 04e4f33..d8be045 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
@@ -147,6 +147,7 @@ const (
147 CFLUSH = 0xf 147 CFLUSH = 0xf
148 CLOCAL = 0x8000 148 CLOCAL = 0x8000
149 CREAD = 0x800 149 CREAD = 0x800
150 CRTSCTS = 0x10000
150 CS5 = 0x0 151 CS5 = 0x0
151 CS6 = 0x100 152 CS6 = 0x100
152 CS7 = 0x200 153 CS7 = 0x200
@@ -898,6 +899,32 @@ const (
898 MAP_TRYFIXED = 0x400 899 MAP_TRYFIXED = 0x400
899 MCL_CURRENT = 0x1 900 MCL_CURRENT = 0x1
900 MCL_FUTURE = 0x2 901 MCL_FUTURE = 0x2
902 MNT_ASYNC = 0x40
903 MNT_DEFEXPORTED = 0x200
904 MNT_DELEXPORT = 0x20000
905 MNT_DOOMED = 0x8000000
906 MNT_EXPORTANON = 0x400
907 MNT_EXPORTED = 0x100
908 MNT_EXRDONLY = 0x80
909 MNT_FORCE = 0x80000
910 MNT_LAZY = 0x3
911 MNT_LOCAL = 0x1000
912 MNT_NOATIME = 0x8000
913 MNT_NODEV = 0x10
914 MNT_NOEXEC = 0x4
915 MNT_NOSUID = 0x8
916 MNT_NOWAIT = 0x2
917 MNT_QUOTA = 0x2000
918 MNT_RDONLY = 0x1
919 MNT_RELOAD = 0x40000
920 MNT_ROOTFS = 0x4000
921 MNT_SOFTDEP = 0x4000000
922 MNT_SYNCHRONOUS = 0x2
923 MNT_UPDATE = 0x10000
924 MNT_VISFLAGMASK = 0x400ffff
925 MNT_WAIT = 0x1
926 MNT_WANTRDWR = 0x2000000
927 MNT_WXALLOWED = 0x800
901 MSG_BCAST = 0x100 928 MSG_BCAST = 0x100
902 MSG_CTRUNC = 0x20 929 MSG_CTRUNC = 0x20
903 MSG_DONTROUTE = 0x4 930 MSG_DONTROUTE = 0x4
@@ -1217,6 +1244,34 @@ const (
1217 SO_TIMESTAMP = 0x800 1244 SO_TIMESTAMP = 0x800
1218 SO_TYPE = 0x1008 1245 SO_TYPE = 0x1008
1219 SO_USELOOPBACK = 0x40 1246 SO_USELOOPBACK = 0x40
1247 S_BLKSIZE = 0x200
1248 S_IEXEC = 0x40
1249 S_IFBLK = 0x6000
1250 S_IFCHR = 0x2000
1251 S_IFDIR = 0x4000
1252 S_IFIFO = 0x1000
1253 S_IFLNK = 0xa000
1254 S_IFMT = 0xf000
1255 S_IFREG = 0x8000
1256 S_IFSOCK = 0xc000
1257 S_IREAD = 0x100
1258 S_IRGRP = 0x20
1259 S_IROTH = 0x4
1260 S_IRUSR = 0x100
1261 S_IRWXG = 0x38
1262 S_IRWXO = 0x7
1263 S_IRWXU = 0x1c0
1264 S_ISGID = 0x400
1265 S_ISTXT = 0x200
1266 S_ISUID = 0x800
1267 S_ISVTX = 0x200
1268 S_IWGRP = 0x10
1269 S_IWOTH = 0x2
1270 S_IWRITE = 0x80
1271 S_IWUSR = 0x80
1272 S_IXGRP = 0x8
1273 S_IXOTH = 0x1
1274 S_IXUSR = 0x40
1220 TCIFLUSH = 0x1 1275 TCIFLUSH = 0x1
1221 TCIOFLUSH = 0x3 1276 TCIOFLUSH = 0x3
1222 TCOFLUSH = 0x2 1277 TCOFLUSH = 0x2
@@ -1460,132 +1515,140 @@ const (
1460) 1515)
1461 1516
1462// Error table 1517// Error table
1463var errors = [...]string{ 1518var errorList = [...]struct {
1464 1: "operation not permitted", 1519 num syscall.Errno
1465 2: "no such file or directory", 1520 name string
1466 3: "no such process", 1521 desc string
1467 4: "interrupted system call", 1522}{
1468 5: "input/output error", 1523 {1, "EPERM", "operation not permitted"},
1469 6: "device not configured", 1524 {2, "ENOENT", "no such file or directory"},
1470 7: "argument list too long", 1525 {3, "ESRCH", "no such process"},
1471 8: "exec format error", 1526 {4, "EINTR", "interrupted system call"},
1472 9: "bad file descriptor", 1527 {5, "EIO", "input/output error"},
1473 10: "no child processes", 1528 {6, "ENXIO", "device not configured"},
1474 11: "resource deadlock avoided", 1529 {7, "E2BIG", "argument list too long"},
1475 12: "cannot allocate memory", 1530 {8, "ENOEXEC", "exec format error"},
1476 13: "permission denied", 1531 {9, "EBADF", "bad file descriptor"},
1477 14: "bad address", 1532 {10, "ECHILD", "no child processes"},
1478 15: "block device required", 1533 {11, "EDEADLK", "resource deadlock avoided"},
1479 16: "device busy", 1534 {12, "ENOMEM", "cannot allocate memory"},
1480 17: "file exists", 1535 {13, "EACCES", "permission denied"},
1481 18: "cross-device link", 1536 {14, "EFAULT", "bad address"},
1482 19: "operation not supported by device", 1537 {15, "ENOTBLK", "block device required"},
1483 20: "not a directory", 1538 {16, "EBUSY", "device busy"},
1484 21: "is a directory", 1539 {17, "EEXIST", "file exists"},
1485 22: "invalid argument", 1540 {18, "EXDEV", "cross-device link"},
1486 23: "too many open files in system", 1541 {19, "ENODEV", "operation not supported by device"},
1487 24: "too many open files", 1542 {20, "ENOTDIR", "not a directory"},
1488 25: "inappropriate ioctl for device", 1543 {21, "EISDIR", "is a directory"},
1489 26: "text file busy", 1544 {22, "EINVAL", "invalid argument"},
1490 27: "file too large", 1545 {23, "ENFILE", "too many open files in system"},
1491 28: "no space left on device", 1546 {24, "EMFILE", "too many open files"},
1492 29: "illegal seek", 1547 {25, "ENOTTY", "inappropriate ioctl for device"},
1493 30: "read-only file system", 1548 {26, "ETXTBSY", "text file busy"},
1494 31: "too many links", 1549 {27, "EFBIG", "file too large"},
1495 32: "broken pipe", 1550 {28, "ENOSPC", "no space left on device"},
1496 33: "numerical argument out of domain", 1551 {29, "ESPIPE", "illegal seek"},
1497 34: "result too large", 1552 {30, "EROFS", "read-only file system"},
1498 35: "resource temporarily unavailable", 1553 {31, "EMLINK", "too many links"},
1499 36: "operation now in progress", 1554 {32, "EPIPE", "broken pipe"},
1500 37: "operation already in progress", 1555 {33, "EDOM", "numerical argument out of domain"},
1501 38: "socket operation on non-socket", 1556 {34, "ERANGE", "result too large"},
1502 39: "destination address required", 1557 {35, "EWOULDBLOCK", "resource temporarily unavailable"},
1503 40: "message too long", 1558 {36, "EINPROGRESS", "operation now in progress"},
1504 41: "protocol wrong type for socket", 1559 {37, "EALREADY", "operation already in progress"},
1505 42: "protocol not available", 1560 {38, "ENOTSOCK", "socket operation on non-socket"},
1506 43: "protocol not supported", 1561 {39, "EDESTADDRREQ", "destination address required"},
1507 44: "socket type not supported", 1562 {40, "EMSGSIZE", "message too long"},
1508 45: "operation not supported", 1563 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1509 46: "protocol family not supported", 1564 {42, "ENOPROTOOPT", "protocol not available"},
1510 47: "address family not supported by protocol family", 1565 {43, "EPROTONOSUPPORT", "protocol not supported"},
1511 48: "address already in use", 1566 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1512 49: "can't assign requested address", 1567 {45, "EOPNOTSUPP", "operation not supported"},
1513 50: "network is down", 1568 {46, "EPFNOSUPPORT", "protocol family not supported"},
1514 51: "network is unreachable", 1569 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1515 52: "network dropped connection on reset", 1570 {48, "EADDRINUSE", "address already in use"},
1516 53: "software caused connection abort", 1571 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1517 54: "connection reset by peer", 1572 {50, "ENETDOWN", "network is down"},
1518 55: "no buffer space available", 1573 {51, "ENETUNREACH", "network is unreachable"},
1519 56: "socket is already connected", 1574 {52, "ENETRESET", "network dropped connection on reset"},
1520 57: "socket is not connected", 1575 {53, "ECONNABORTED", "software caused connection abort"},
1521 58: "can't send after socket shutdown", 1576 {54, "ECONNRESET", "connection reset by peer"},
1522 59: "too many references: can't splice", 1577 {55, "ENOBUFS", "no buffer space available"},
1523 60: "connection timed out", 1578 {56, "EISCONN", "socket is already connected"},
1524 61: "connection refused", 1579 {57, "ENOTCONN", "socket is not connected"},
1525 62: "too many levels of symbolic links", 1580 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1526 63: "file name too long", 1581 {59, "ETOOMANYREFS", "too many references: can't splice"},
1527 64: "host is down", 1582 {60, "ETIMEDOUT", "operation timed out"},
1528 65: "no route to host", 1583 {61, "ECONNREFUSED", "connection refused"},
1529 66: "directory not empty", 1584 {62, "ELOOP", "too many levels of symbolic links"},
1530 67: "too many processes", 1585 {63, "ENAMETOOLONG", "file name too long"},
1531 68: "too many users", 1586 {64, "EHOSTDOWN", "host is down"},
1532 69: "disc quota exceeded", 1587 {65, "EHOSTUNREACH", "no route to host"},
1533 70: "stale NFS file handle", 1588 {66, "ENOTEMPTY", "directory not empty"},
1534 71: "too many levels of remote in path", 1589 {67, "EPROCLIM", "too many processes"},
1535 72: "RPC struct is bad", 1590 {68, "EUSERS", "too many users"},
1536 73: "RPC version wrong", 1591 {69, "EDQUOT", "disk quota exceeded"},
1537 74: "RPC prog. not avail", 1592 {70, "ESTALE", "stale NFS file handle"},
1538 75: "program version wrong", 1593 {71, "EREMOTE", "too many levels of remote in path"},
1539 76: "bad procedure for program", 1594 {72, "EBADRPC", "RPC struct is bad"},
1540 77: "no locks available", 1595 {73, "ERPCMISMATCH", "RPC version wrong"},
1541 78: "function not implemented", 1596 {74, "EPROGUNAVAIL", "RPC program not available"},
1542 79: "inappropriate file type or format", 1597 {75, "EPROGMISMATCH", "program version wrong"},
1543 80: "authentication error", 1598 {76, "EPROCUNAVAIL", "bad procedure for program"},
1544 81: "need authenticator", 1599 {77, "ENOLCK", "no locks available"},
1545 82: "IPsec processing failure", 1600 {78, "ENOSYS", "function not implemented"},
1546 83: "attribute not found", 1601 {79, "EFTYPE", "inappropriate file type or format"},
1547 84: "illegal byte sequence", 1602 {80, "EAUTH", "authentication error"},
1548 85: "no medium found", 1603 {81, "ENEEDAUTH", "need authenticator"},
1549 86: "wrong medium type", 1604 {82, "EIPSEC", "IPsec processing failure"},
1550 87: "value too large to be stored in data type", 1605 {83, "ENOATTR", "attribute not found"},
1551 88: "operation canceled", 1606 {84, "EILSEQ", "illegal byte sequence"},
1552 89: "identifier removed", 1607 {85, "ENOMEDIUM", "no medium found"},
1553 90: "no message of desired type", 1608 {86, "EMEDIUMTYPE", "wrong medium type"},
1554 91: "not supported", 1609 {87, "EOVERFLOW", "value too large to be stored in data type"},
1610 {88, "ECANCELED", "operation canceled"},
1611 {89, "EIDRM", "identifier removed"},
1612 {90, "ENOMSG", "no message of desired type"},
1613 {91, "ELAST", "not supported"},
1555} 1614}
1556 1615
1557// Signal table 1616// Signal table
1558var signals = [...]string{ 1617var signalList = [...]struct {
1559 1: "hangup", 1618 num syscall.Signal
1560 2: "interrupt", 1619 name string
1561 3: "quit", 1620 desc string
1562 4: "illegal instruction", 1621}{
1563 5: "trace/BPT trap", 1622 {1, "SIGHUP", "hangup"},
1564 6: "abort trap", 1623 {2, "SIGINT", "interrupt"},
1565 7: "EMT trap", 1624 {3, "SIGQUIT", "quit"},
1566 8: "floating point exception", 1625 {4, "SIGILL", "illegal instruction"},
1567 9: "killed", 1626 {5, "SIGTRAP", "trace/BPT trap"},
1568 10: "bus error", 1627 {6, "SIGABRT", "abort trap"},
1569 11: "segmentation fault", 1628 {7, "SIGEMT", "EMT trap"},
1570 12: "bad system call", 1629 {8, "SIGFPE", "floating point exception"},
1571 13: "broken pipe", 1630 {9, "SIGKILL", "killed"},
1572 14: "alarm clock", 1631 {10, "SIGBUS", "bus error"},
1573 15: "terminated", 1632 {11, "SIGSEGV", "segmentation fault"},
1574 16: "urgent I/O condition", 1633 {12, "SIGSYS", "bad system call"},
1575 17: "stopped (signal)", 1634 {13, "SIGPIPE", "broken pipe"},
1576 18: "stopped", 1635 {14, "SIGALRM", "alarm clock"},
1577 19: "continued", 1636 {15, "SIGTERM", "terminated"},
1578 20: "child exited", 1637 {16, "SIGURG", "urgent I/O condition"},
1579 21: "stopped (tty input)", 1638 {17, "SIGSTOP", "suspended (signal)"},
1580 22: "stopped (tty output)", 1639 {18, "SIGTSTP", "suspended"},
1581 23: "I/O possible", 1640 {19, "SIGCONT", "continued"},
1582 24: "cputime limit exceeded", 1641 {20, "SIGCHLD", "child exited"},
1583 25: "filesize limit exceeded", 1642 {21, "SIGTTIN", "stopped (tty input)"},
1584 26: "virtual timer expired", 1643 {22, "SIGTTOU", "stopped (tty output)"},
1585 27: "profiling timer expired", 1644 {23, "SIGIO", "I/O possible"},
1586 28: "window size changes", 1645 {24, "SIGXCPU", "cputime limit exceeded"},
1587 29: "information request", 1646 {25, "SIGXFSZ", "filesize limit exceeded"},
1588 30: "user defined signal 1", 1647 {26, "SIGVTALRM", "virtual timer expired"},
1589 31: "user defined signal 2", 1648 {27, "SIGPROF", "profiling timer expired"},
1590 32: "thread AST", 1649 {28, "SIGWINCH", "window size changes"},
1650 {29, "SIGINFO", "information request"},
1651 {30, "SIGUSR1", "user defined signal 1"},
1652 {31, "SIGUSR2", "user defined signal 2"},
1653 {32, "SIGTHR", "thread AST"},
1591} 1654}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
index c80ff98..1f9e8a2 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
@@ -45,6 +45,7 @@ const (
45 AF_SNA = 0xb 45 AF_SNA = 0xb
46 AF_UNIX = 0x1 46 AF_UNIX = 0x1
47 AF_UNSPEC = 0x0 47 AF_UNSPEC = 0x0
48 ALTWERASE = 0x200
48 ARPHRD_ETHER = 0x1 49 ARPHRD_ETHER = 0x1
49 ARPHRD_FRELAY = 0xf 50 ARPHRD_FRELAY = 0xf
50 ARPHRD_IEEE1394 = 0x18 51 ARPHRD_IEEE1394 = 0x18
@@ -146,7 +147,14 @@ const (
146 BRKINT = 0x2 147 BRKINT = 0x2
147 CFLUSH = 0xf 148 CFLUSH = 0xf
148 CLOCAL = 0x8000 149 CLOCAL = 0x8000
150 CLOCK_BOOTTIME = 0x6
151 CLOCK_MONOTONIC = 0x3
152 CLOCK_PROCESS_CPUTIME_ID = 0x2
153 CLOCK_REALTIME = 0x0
154 CLOCK_THREAD_CPUTIME_ID = 0x4
155 CLOCK_UPTIME = 0x5
149 CREAD = 0x800 156 CREAD = 0x800
157 CRTSCTS = 0x10000
150 CS5 = 0x0 158 CS5 = 0x0
151 CS6 = 0x100 159 CS6 = 0x100
152 CS7 = 0x200 160 CS7 = 0x200
@@ -177,6 +185,7 @@ const (
177 DLT_LOOP = 0xc 185 DLT_LOOP = 0xc
178 DLT_MPLS = 0xdb 186 DLT_MPLS = 0xdb
179 DLT_NULL = 0x0 187 DLT_NULL = 0x0
188 DLT_OPENFLOW = 0x10b
180 DLT_PFLOG = 0x75 189 DLT_PFLOG = 0x75
181 DLT_PFSYNC = 0x12 190 DLT_PFSYNC = 0x12
182 DLT_PPP = 0x9 191 DLT_PPP = 0x9
@@ -187,6 +196,23 @@ const (
187 DLT_RAW = 0xe 196 DLT_RAW = 0xe
188 DLT_SLIP = 0x8 197 DLT_SLIP = 0x8
189 DLT_SLIP_BSDOS = 0xf 198 DLT_SLIP_BSDOS = 0xf
199 DLT_USBPCAP = 0xf9
200 DLT_USER0 = 0x93
201 DLT_USER1 = 0x94
202 DLT_USER10 = 0x9d
203 DLT_USER11 = 0x9e
204 DLT_USER12 = 0x9f
205 DLT_USER13 = 0xa0
206 DLT_USER14 = 0xa1
207 DLT_USER15 = 0xa2
208 DLT_USER2 = 0x95
209 DLT_USER3 = 0x96
210 DLT_USER4 = 0x97
211 DLT_USER5 = 0x98
212 DLT_USER6 = 0x99
213 DLT_USER7 = 0x9a
214 DLT_USER8 = 0x9b
215 DLT_USER9 = 0x9c
190 DT_BLK = 0x6 216 DT_BLK = 0x6
191 DT_CHR = 0x2 217 DT_CHR = 0x2
192 DT_DIR = 0x4 218 DT_DIR = 0x4
@@ -400,27 +426,38 @@ const (
400 ETHER_CRC_POLY_LE = 0xedb88320 426 ETHER_CRC_POLY_LE = 0xedb88320
401 ETHER_HDR_LEN = 0xe 427 ETHER_HDR_LEN = 0xe
402 ETHER_MAX_DIX_LEN = 0x600 428 ETHER_MAX_DIX_LEN = 0x600
429 ETHER_MAX_HARDMTU_LEN = 0xff9b
403 ETHER_MAX_LEN = 0x5ee 430 ETHER_MAX_LEN = 0x5ee
404 ETHER_MIN_LEN = 0x40 431 ETHER_MIN_LEN = 0x40
405 ETHER_TYPE_LEN = 0x2 432 ETHER_TYPE_LEN = 0x2
406 ETHER_VLAN_ENCAP_LEN = 0x4 433 ETHER_VLAN_ENCAP_LEN = 0x4
407 EVFILT_AIO = -0x3 434 EVFILT_AIO = -0x3
435 EVFILT_DEVICE = -0x8
408 EVFILT_PROC = -0x5 436 EVFILT_PROC = -0x5
409 EVFILT_READ = -0x1 437 EVFILT_READ = -0x1
410 EVFILT_SIGNAL = -0x6 438 EVFILT_SIGNAL = -0x6
411 EVFILT_SYSCOUNT = 0x7 439 EVFILT_SYSCOUNT = 0x8
412 EVFILT_TIMER = -0x7 440 EVFILT_TIMER = -0x7
413 EVFILT_VNODE = -0x4 441 EVFILT_VNODE = -0x4
414 EVFILT_WRITE = -0x2 442 EVFILT_WRITE = -0x2
443 EVL_ENCAPLEN = 0x4
444 EVL_PRIO_BITS = 0xd
445 EVL_PRIO_MAX = 0x7
446 EVL_VLID_MASK = 0xfff
447 EVL_VLID_MAX = 0xffe
448 EVL_VLID_MIN = 0x1
449 EVL_VLID_NULL = 0x0
415 EV_ADD = 0x1 450 EV_ADD = 0x1
416 EV_CLEAR = 0x20 451 EV_CLEAR = 0x20
417 EV_DELETE = 0x2 452 EV_DELETE = 0x2
418 EV_DISABLE = 0x8 453 EV_DISABLE = 0x8
454 EV_DISPATCH = 0x80
419 EV_ENABLE = 0x4 455 EV_ENABLE = 0x4
420 EV_EOF = 0x8000 456 EV_EOF = 0x8000
421 EV_ERROR = 0x4000 457 EV_ERROR = 0x4000
422 EV_FLAG1 = 0x2000 458 EV_FLAG1 = 0x2000
423 EV_ONESHOT = 0x10 459 EV_ONESHOT = 0x10
460 EV_RECEIPT = 0x40
424 EV_SYSFLAGS = 0xf000 461 EV_SYSFLAGS = 0xf000
425 EXTA = 0x4b00 462 EXTA = 0x4b00
426 EXTB = 0x9600 463 EXTB = 0x9600
@@ -434,6 +471,7 @@ const (
434 F_GETFL = 0x3 471 F_GETFL = 0x3
435 F_GETLK = 0x7 472 F_GETLK = 0x7
436 F_GETOWN = 0x5 473 F_GETOWN = 0x5
474 F_ISATTY = 0xb
437 F_OK = 0x0 475 F_OK = 0x0
438 F_RDLCK = 0x1 476 F_RDLCK = 0x1
439 F_SETFD = 0x2 477 F_SETFD = 0x2
@@ -451,7 +489,6 @@ const (
451 IEXTEN = 0x400 489 IEXTEN = 0x400
452 IFAN_ARRIVAL = 0x0 490 IFAN_ARRIVAL = 0x0
453 IFAN_DEPARTURE = 0x1 491 IFAN_DEPARTURE = 0x1
454 IFA_ROUTE = 0x1
455 IFF_ALLMULTI = 0x200 492 IFF_ALLMULTI = 0x200
456 IFF_BROADCAST = 0x2 493 IFF_BROADCAST = 0x2
457 IFF_CANTCHANGE = 0x8e52 494 IFF_CANTCHANGE = 0x8e52
@@ -462,12 +499,12 @@ const (
462 IFF_LOOPBACK = 0x8 499 IFF_LOOPBACK = 0x8
463 IFF_MULTICAST = 0x8000 500 IFF_MULTICAST = 0x8000
464 IFF_NOARP = 0x80 501 IFF_NOARP = 0x80
465 IFF_NOTRAILERS = 0x20
466 IFF_OACTIVE = 0x400 502 IFF_OACTIVE = 0x400
467 IFF_POINTOPOINT = 0x10 503 IFF_POINTOPOINT = 0x10
468 IFF_PROMISC = 0x100 504 IFF_PROMISC = 0x100
469 IFF_RUNNING = 0x40 505 IFF_RUNNING = 0x40
470 IFF_SIMPLEX = 0x800 506 IFF_SIMPLEX = 0x800
507 IFF_STATICARP = 0x20
471 IFF_UP = 0x1 508 IFF_UP = 0x1
472 IFNAMSIZ = 0x10 509 IFNAMSIZ = 0x10
473 IFT_1822 = 0x2 510 IFT_1822 = 0x2
@@ -596,6 +633,7 @@ const (
596 IFT_LINEGROUP = 0xd2 633 IFT_LINEGROUP = 0xd2
597 IFT_LOCALTALK = 0x2a 634 IFT_LOCALTALK = 0x2a
598 IFT_LOOP = 0x18 635 IFT_LOOP = 0x18
636 IFT_MBIM = 0xfa
599 IFT_MEDIAMAILOVERIP = 0x8b 637 IFT_MEDIAMAILOVERIP = 0x8b
600 IFT_MFSIGLINK = 0xa7 638 IFT_MFSIGLINK = 0xa7
601 IFT_MIOX25 = 0x26 639 IFT_MIOX25 = 0x26
@@ -720,8 +758,6 @@ const (
720 IPPROTO_AH = 0x33 758 IPPROTO_AH = 0x33
721 IPPROTO_CARP = 0x70 759 IPPROTO_CARP = 0x70
722 IPPROTO_DIVERT = 0x102 760 IPPROTO_DIVERT = 0x102
723 IPPROTO_DIVERT_INIT = 0x2
724 IPPROTO_DIVERT_RESP = 0x1
725 IPPROTO_DONE = 0x101 761 IPPROTO_DONE = 0x101
726 IPPROTO_DSTOPTS = 0x3c 762 IPPROTO_DSTOPTS = 0x3c
727 IPPROTO_EGP = 0x8 763 IPPROTO_EGP = 0x8
@@ -778,6 +814,7 @@ const (
778 IPV6_LEAVE_GROUP = 0xd 814 IPV6_LEAVE_GROUP = 0xd
779 IPV6_MAXHLIM = 0xff 815 IPV6_MAXHLIM = 0xff
780 IPV6_MAXPACKET = 0xffff 816 IPV6_MAXPACKET = 0xffff
817 IPV6_MINHOPCOUNT = 0x41
781 IPV6_MMTU = 0x500 818 IPV6_MMTU = 0x500
782 IPV6_MULTICAST_HOPS = 0xa 819 IPV6_MULTICAST_HOPS = 0xa
783 IPV6_MULTICAST_IF = 0x9 820 IPV6_MULTICAST_IF = 0x9
@@ -817,12 +854,12 @@ const (
817 IP_DEFAULT_MULTICAST_LOOP = 0x1 854 IP_DEFAULT_MULTICAST_LOOP = 0x1
818 IP_DEFAULT_MULTICAST_TTL = 0x1 855 IP_DEFAULT_MULTICAST_TTL = 0x1
819 IP_DF = 0x4000 856 IP_DF = 0x4000
820 IP_DIVERTFL = 0x1022
821 IP_DROP_MEMBERSHIP = 0xd 857 IP_DROP_MEMBERSHIP = 0xd
822 IP_ESP_NETWORK_LEVEL = 0x16 858 IP_ESP_NETWORK_LEVEL = 0x16
823 IP_ESP_TRANS_LEVEL = 0x15 859 IP_ESP_TRANS_LEVEL = 0x15
824 IP_HDRINCL = 0x2 860 IP_HDRINCL = 0x2
825 IP_IPCOMP_LEVEL = 0x1d 861 IP_IPCOMP_LEVEL = 0x1d
862 IP_IPDEFTTL = 0x25
826 IP_IPSECFLOWINFO = 0x24 863 IP_IPSECFLOWINFO = 0x24
827 IP_IPSEC_LOCAL_AUTH = 0x1b 864 IP_IPSEC_LOCAL_AUTH = 0x1b
828 IP_IPSEC_LOCAL_CRED = 0x19 865 IP_IPSEC_LOCAL_CRED = 0x19
@@ -856,10 +893,12 @@ const (
856 IP_RETOPTS = 0x8 893 IP_RETOPTS = 0x8
857 IP_RF = 0x8000 894 IP_RF = 0x8000
858 IP_RTABLE = 0x1021 895 IP_RTABLE = 0x1021
896 IP_SENDSRCADDR = 0x7
859 IP_TOS = 0x3 897 IP_TOS = 0x3
860 IP_TTL = 0x4 898 IP_TTL = 0x4
861 ISIG = 0x80 899 ISIG = 0x80
862 ISTRIP = 0x20 900 ISTRIP = 0x20
901 IUCLC = 0x1000
863 IXANY = 0x800 902 IXANY = 0x800
864 IXOFF = 0x400 903 IXOFF = 0x400
865 IXON = 0x200 904 IXON = 0x200
@@ -880,25 +919,56 @@ const (
880 MADV_SPACEAVAIL = 0x5 919 MADV_SPACEAVAIL = 0x5
881 MADV_WILLNEED = 0x3 920 MADV_WILLNEED = 0x3
882 MAP_ANON = 0x1000 921 MAP_ANON = 0x1000
883 MAP_COPY = 0x4 922 MAP_ANONYMOUS = 0x1000
923 MAP_COPY = 0x2
884 MAP_FILE = 0x0 924 MAP_FILE = 0x0
885 MAP_FIXED = 0x10 925 MAP_FIXED = 0x10
886 MAP_FLAGMASK = 0x1ff7 926 MAP_FLAGMASK = 0x7ff7
887 MAP_HASSEMAPHORE = 0x200 927 MAP_HASSEMAPHORE = 0x0
888 MAP_INHERIT = 0x80 928 MAP_INHERIT = 0x0
889 MAP_INHERIT_COPY = 0x1 929 MAP_INHERIT_COPY = 0x1
890 MAP_INHERIT_DONATE_COPY = 0x3
891 MAP_INHERIT_NONE = 0x2 930 MAP_INHERIT_NONE = 0x2
892 MAP_INHERIT_SHARE = 0x0 931 MAP_INHERIT_SHARE = 0x0
893 MAP_NOEXTEND = 0x100 932 MAP_INHERIT_ZERO = 0x3
894 MAP_NORESERVE = 0x40 933 MAP_NOEXTEND = 0x0
934 MAP_NORESERVE = 0x0
895 MAP_PRIVATE = 0x2 935 MAP_PRIVATE = 0x2
896 MAP_RENAME = 0x20 936 MAP_RENAME = 0x0
897 MAP_SHARED = 0x1 937 MAP_SHARED = 0x1
898 MAP_TRYFIXED = 0x400 938 MAP_STACK = 0x4000
939 MAP_TRYFIXED = 0x0
899 MCL_CURRENT = 0x1 940 MCL_CURRENT = 0x1
900 MCL_FUTURE = 0x2 941 MCL_FUTURE = 0x2
942 MNT_ASYNC = 0x40
943 MNT_DEFEXPORTED = 0x200
944 MNT_DELEXPORT = 0x20000
945 MNT_DOOMED = 0x8000000
946 MNT_EXPORTANON = 0x400
947 MNT_EXPORTED = 0x100
948 MNT_EXRDONLY = 0x80
949 MNT_FORCE = 0x80000
950 MNT_LAZY = 0x3
951 MNT_LOCAL = 0x1000
952 MNT_NOATIME = 0x8000
953 MNT_NODEV = 0x10
954 MNT_NOEXEC = 0x4
955 MNT_NOPERM = 0x20
956 MNT_NOSUID = 0x8
957 MNT_NOWAIT = 0x2
958 MNT_QUOTA = 0x2000
959 MNT_RDONLY = 0x1
960 MNT_RELOAD = 0x40000
961 MNT_ROOTFS = 0x4000
962 MNT_SOFTDEP = 0x4000000
963 MNT_STALLED = 0x100000
964 MNT_SYNCHRONOUS = 0x2
965 MNT_UPDATE = 0x10000
966 MNT_VISFLAGMASK = 0x400ffff
967 MNT_WAIT = 0x1
968 MNT_WANTRDWR = 0x2000000
969 MNT_WXALLOWED = 0x800
901 MSG_BCAST = 0x100 970 MSG_BCAST = 0x100
971 MSG_CMSG_CLOEXEC = 0x800
902 MSG_CTRUNC = 0x20 972 MSG_CTRUNC = 0x20
903 MSG_DONTROUTE = 0x4 973 MSG_DONTROUTE = 0x4
904 MSG_DONTWAIT = 0x80 974 MSG_DONTWAIT = 0x80
@@ -916,11 +986,14 @@ const (
916 NET_RT_DUMP = 0x1 986 NET_RT_DUMP = 0x1
917 NET_RT_FLAGS = 0x2 987 NET_RT_FLAGS = 0x2
918 NET_RT_IFLIST = 0x3 988 NET_RT_IFLIST = 0x3
919 NET_RT_MAXID = 0x6 989 NET_RT_IFNAMES = 0x6
990 NET_RT_MAXID = 0x7
920 NET_RT_STATS = 0x4 991 NET_RT_STATS = 0x4
921 NET_RT_TABLE = 0x5 992 NET_RT_TABLE = 0x5
922 NOFLSH = 0x80000000 993 NOFLSH = 0x80000000
994 NOKERNINFO = 0x2000000
923 NOTE_ATTRIB = 0x8 995 NOTE_ATTRIB = 0x8
996 NOTE_CHANGE = 0x1
924 NOTE_CHILD = 0x4 997 NOTE_CHILD = 0x4
925 NOTE_DELETE = 0x1 998 NOTE_DELETE = 0x1
926 NOTE_EOF = 0x2 999 NOTE_EOF = 0x2
@@ -939,11 +1012,13 @@ const (
939 NOTE_TRUNCATE = 0x80 1012 NOTE_TRUNCATE = 0x80
940 NOTE_WRITE = 0x2 1013 NOTE_WRITE = 0x2
941 OCRNL = 0x10 1014 OCRNL = 0x10
1015 OLCUC = 0x20
942 ONLCR = 0x2 1016 ONLCR = 0x2
943 ONLRET = 0x80 1017 ONLRET = 0x80
944 ONOCR = 0x40 1018 ONOCR = 0x40
945 ONOEOT = 0x8 1019 ONOEOT = 0x8
946 OPOST = 0x1 1020 OPOST = 0x1
1021 OXTABS = 0x4
947 O_ACCMODE = 0x3 1022 O_ACCMODE = 0x3
948 O_APPEND = 0x8 1023 O_APPEND = 0x8
949 O_ASYNC = 0x40 1024 O_ASYNC = 0x40
@@ -981,23 +1056,32 @@ const (
981 RLIMIT_CPU = 0x0 1056 RLIMIT_CPU = 0x0
982 RLIMIT_DATA = 0x2 1057 RLIMIT_DATA = 0x2
983 RLIMIT_FSIZE = 0x1 1058 RLIMIT_FSIZE = 0x1
1059 RLIMIT_MEMLOCK = 0x6
984 RLIMIT_NOFILE = 0x8 1060 RLIMIT_NOFILE = 0x8
1061 RLIMIT_NPROC = 0x7
1062 RLIMIT_RSS = 0x5
985 RLIMIT_STACK = 0x3 1063 RLIMIT_STACK = 0x3
986 RLIM_INFINITY = 0x7fffffffffffffff 1064 RLIM_INFINITY = 0x7fffffffffffffff
987 RTAX_AUTHOR = 0x6 1065 RTAX_AUTHOR = 0x6
1066 RTAX_BFD = 0xb
988 RTAX_BRD = 0x7 1067 RTAX_BRD = 0x7
1068 RTAX_DNS = 0xc
989 RTAX_DST = 0x0 1069 RTAX_DST = 0x0
990 RTAX_GATEWAY = 0x1 1070 RTAX_GATEWAY = 0x1
991 RTAX_GENMASK = 0x3 1071 RTAX_GENMASK = 0x3
992 RTAX_IFA = 0x5 1072 RTAX_IFA = 0x5
993 RTAX_IFP = 0x4 1073 RTAX_IFP = 0x4
994 RTAX_LABEL = 0xa 1074 RTAX_LABEL = 0xa
995 RTAX_MAX = 0xb 1075 RTAX_MAX = 0xf
996 RTAX_NETMASK = 0x2 1076 RTAX_NETMASK = 0x2
1077 RTAX_SEARCH = 0xe
997 RTAX_SRC = 0x8 1078 RTAX_SRC = 0x8
998 RTAX_SRCMASK = 0x9 1079 RTAX_SRCMASK = 0x9
1080 RTAX_STATIC = 0xd
999 RTA_AUTHOR = 0x40 1081 RTA_AUTHOR = 0x40
1082 RTA_BFD = 0x800
1000 RTA_BRD = 0x80 1083 RTA_BRD = 0x80
1084 RTA_DNS = 0x1000
1001 RTA_DST = 0x1 1085 RTA_DST = 0x1
1002 RTA_GATEWAY = 0x2 1086 RTA_GATEWAY = 0x2
1003 RTA_GENMASK = 0x8 1087 RTA_GENMASK = 0x8
@@ -1005,34 +1089,39 @@ const (
1005 RTA_IFP = 0x10 1089 RTA_IFP = 0x10
1006 RTA_LABEL = 0x400 1090 RTA_LABEL = 0x400
1007 RTA_NETMASK = 0x4 1091 RTA_NETMASK = 0x4
1092 RTA_SEARCH = 0x4000
1008 RTA_SRC = 0x100 1093 RTA_SRC = 0x100
1009 RTA_SRCMASK = 0x200 1094 RTA_SRCMASK = 0x200
1095 RTA_STATIC = 0x2000
1010 RTF_ANNOUNCE = 0x4000 1096 RTF_ANNOUNCE = 0x4000
1097 RTF_BFD = 0x1000000
1011 RTF_BLACKHOLE = 0x1000 1098 RTF_BLACKHOLE = 0x1000
1099 RTF_BROADCAST = 0x400000
1100 RTF_CACHED = 0x20000
1012 RTF_CLONED = 0x10000 1101 RTF_CLONED = 0x10000
1013 RTF_CLONING = 0x100 1102 RTF_CLONING = 0x100
1103 RTF_CONNECTED = 0x800000
1014 RTF_DONE = 0x40 1104 RTF_DONE = 0x40
1015 RTF_DYNAMIC = 0x10 1105 RTF_DYNAMIC = 0x10
1016 RTF_FMASK = 0x10f808 1106 RTF_FMASK = 0x110fc08
1017 RTF_GATEWAY = 0x2 1107 RTF_GATEWAY = 0x2
1018 RTF_HOST = 0x4 1108 RTF_HOST = 0x4
1019 RTF_LLINFO = 0x400 1109 RTF_LLINFO = 0x400
1020 RTF_MASK = 0x80 1110 RTF_LOCAL = 0x200000
1021 RTF_MODIFIED = 0x20 1111 RTF_MODIFIED = 0x20
1022 RTF_MPATH = 0x40000 1112 RTF_MPATH = 0x40000
1023 RTF_MPLS = 0x100000 1113 RTF_MPLS = 0x100000
1114 RTF_MULTICAST = 0x200
1024 RTF_PERMANENT_ARP = 0x2000 1115 RTF_PERMANENT_ARP = 0x2000
1025 RTF_PROTO1 = 0x8000 1116 RTF_PROTO1 = 0x8000
1026 RTF_PROTO2 = 0x4000 1117 RTF_PROTO2 = 0x4000
1027 RTF_PROTO3 = 0x2000 1118 RTF_PROTO3 = 0x2000
1028 RTF_REJECT = 0x8 1119 RTF_REJECT = 0x8
1029 RTF_SOURCE = 0x20000
1030 RTF_STATIC = 0x800 1120 RTF_STATIC = 0x800
1031 RTF_TUNNEL = 0x100000
1032 RTF_UP = 0x1 1121 RTF_UP = 0x1
1033 RTF_USETRAILERS = 0x8000 1122 RTF_USETRAILERS = 0x8000
1034 RTF_XRESOLVE = 0x200
1035 RTM_ADD = 0x1 1123 RTM_ADD = 0x1
1124 RTM_BFD = 0x12
1036 RTM_CHANGE = 0x3 1125 RTM_CHANGE = 0x3
1037 RTM_DELADDR = 0xd 1126 RTM_DELADDR = 0xd
1038 RTM_DELETE = 0x2 1127 RTM_DELETE = 0x2
@@ -1040,11 +1129,13 @@ const (
1040 RTM_GET = 0x4 1129 RTM_GET = 0x4
1041 RTM_IFANNOUNCE = 0xf 1130 RTM_IFANNOUNCE = 0xf
1042 RTM_IFINFO = 0xe 1131 RTM_IFINFO = 0xe
1132 RTM_INVALIDATE = 0x11
1043 RTM_LOCK = 0x8 1133 RTM_LOCK = 0x8
1044 RTM_LOSING = 0x5 1134 RTM_LOSING = 0x5
1045 RTM_MAXSIZE = 0x800 1135 RTM_MAXSIZE = 0x800
1046 RTM_MISS = 0x7 1136 RTM_MISS = 0x7
1047 RTM_NEWADDR = 0xc 1137 RTM_NEWADDR = 0xc
1138 RTM_PROPOSAL = 0x13
1048 RTM_REDIRECT = 0x6 1139 RTM_REDIRECT = 0x6
1049 RTM_RESOLVE = 0xb 1140 RTM_RESOLVE = 0xb
1050 RTM_RTTUNIT = 0xf4240 1141 RTM_RTTUNIT = 0xf4240
@@ -1057,6 +1148,8 @@ const (
1057 RTV_RTTVAR = 0x80 1148 RTV_RTTVAR = 0x80
1058 RTV_SPIPE = 0x10 1149 RTV_SPIPE = 0x10
1059 RTV_SSTHRESH = 0x20 1150 RTV_SSTHRESH = 0x20
1151 RT_TABLEID_BITS = 0x8
1152 RT_TABLEID_MASK = 0xff
1060 RT_TABLEID_MAX = 0xff 1153 RT_TABLEID_MAX = 0xff
1061 RUSAGE_CHILDREN = -0x1 1154 RUSAGE_CHILDREN = -0x1
1062 RUSAGE_SELF = 0x0 1155 RUSAGE_SELF = 0x0
@@ -1069,55 +1162,55 @@ const (
1069 SIOCADDMULTI = 0x80206931 1162 SIOCADDMULTI = 0x80206931
1070 SIOCAIFADDR = 0x8040691a 1163 SIOCAIFADDR = 0x8040691a
1071 SIOCAIFGROUP = 0x80286987 1164 SIOCAIFGROUP = 0x80286987
1072 SIOCALIFADDR = 0x8218691c
1073 SIOCATMARK = 0x40047307 1165 SIOCATMARK = 0x40047307
1074 SIOCBRDGADD = 0x8058693c 1166 SIOCBRDGADD = 0x8060693c
1075 SIOCBRDGADDS = 0x80586941 1167 SIOCBRDGADDL = 0x80606949
1076 SIOCBRDGARL = 0x806e694d 1168 SIOCBRDGADDS = 0x80606941
1169 SIOCBRDGARL = 0x808c694d
1077 SIOCBRDGDADDR = 0x81286947 1170 SIOCBRDGDADDR = 0x81286947
1078 SIOCBRDGDEL = 0x8058693d 1171 SIOCBRDGDEL = 0x8060693d
1079 SIOCBRDGDELS = 0x80586942 1172 SIOCBRDGDELS = 0x80606942
1080 SIOCBRDGFLUSH = 0x80586948 1173 SIOCBRDGFLUSH = 0x80606948
1081 SIOCBRDGFRL = 0x806e694e 1174 SIOCBRDGFRL = 0x808c694e
1082 SIOCBRDGGCACHE = 0xc0146941 1175 SIOCBRDGGCACHE = 0xc0186941
1083 SIOCBRDGGFD = 0xc0146952 1176 SIOCBRDGGFD = 0xc0186952
1084 SIOCBRDGGHT = 0xc0146951 1177 SIOCBRDGGHT = 0xc0186951
1085 SIOCBRDGGIFFLGS = 0xc058693e 1178 SIOCBRDGGIFFLGS = 0xc060693e
1086 SIOCBRDGGMA = 0xc0146953 1179 SIOCBRDGGMA = 0xc0186953
1087 SIOCBRDGGPARAM = 0xc0406958 1180 SIOCBRDGGPARAM = 0xc0406958
1088 SIOCBRDGGPRI = 0xc0146950 1181 SIOCBRDGGPRI = 0xc0186950
1089 SIOCBRDGGRL = 0xc030694f 1182 SIOCBRDGGRL = 0xc030694f
1090 SIOCBRDGGSIFS = 0xc058693c 1183 SIOCBRDGGTO = 0xc0186946
1091 SIOCBRDGGTO = 0xc0146946 1184 SIOCBRDGIFS = 0xc0606942
1092 SIOCBRDGIFS = 0xc0586942
1093 SIOCBRDGRTS = 0xc0206943 1185 SIOCBRDGRTS = 0xc0206943
1094 SIOCBRDGSADDR = 0xc1286944 1186 SIOCBRDGSADDR = 0xc1286944
1095 SIOCBRDGSCACHE = 0x80146940 1187 SIOCBRDGSCACHE = 0x80186940
1096 SIOCBRDGSFD = 0x80146952 1188 SIOCBRDGSFD = 0x80186952
1097 SIOCBRDGSHT = 0x80146951 1189 SIOCBRDGSHT = 0x80186951
1098 SIOCBRDGSIFCOST = 0x80586955 1190 SIOCBRDGSIFCOST = 0x80606955
1099 SIOCBRDGSIFFLGS = 0x8058693f 1191 SIOCBRDGSIFFLGS = 0x8060693f
1100 SIOCBRDGSIFPRIO = 0x80586954 1192 SIOCBRDGSIFPRIO = 0x80606954
1101 SIOCBRDGSMA = 0x80146953 1193 SIOCBRDGSIFPROT = 0x8060694a
1102 SIOCBRDGSPRI = 0x80146950 1194 SIOCBRDGSMA = 0x80186953
1103 SIOCBRDGSPROTO = 0x8014695a 1195 SIOCBRDGSPRI = 0x80186950
1104 SIOCBRDGSTO = 0x80146945 1196 SIOCBRDGSPROTO = 0x8018695a
1105 SIOCBRDGSTXHC = 0x80146959 1197 SIOCBRDGSTO = 0x80186945
1198 SIOCBRDGSTXHC = 0x80186959
1106 SIOCDELMULTI = 0x80206932 1199 SIOCDELMULTI = 0x80206932
1107 SIOCDIFADDR = 0x80206919 1200 SIOCDIFADDR = 0x80206919
1108 SIOCDIFGROUP = 0x80286989 1201 SIOCDIFGROUP = 0x80286989
1202 SIOCDIFPARENT = 0x802069b4
1109 SIOCDIFPHYADDR = 0x80206949 1203 SIOCDIFPHYADDR = 0x80206949
1110 SIOCDLIFADDR = 0x8218691e 1204 SIOCDVNETID = 0x802069af
1111 SIOCGETKALIVE = 0xc01869a4 1205 SIOCGETKALIVE = 0xc01869a4
1112 SIOCGETLABEL = 0x8020699a 1206 SIOCGETLABEL = 0x8020699a
1207 SIOCGETMPWCFG = 0xc02069ae
1113 SIOCGETPFLOW = 0xc02069fe 1208 SIOCGETPFLOW = 0xc02069fe
1114 SIOCGETPFSYNC = 0xc02069f8 1209 SIOCGETPFSYNC = 0xc02069f8
1115 SIOCGETSGCNT = 0xc0207534 1210 SIOCGETSGCNT = 0xc0207534
1116 SIOCGETVIFCNT = 0xc0287533 1211 SIOCGETVIFCNT = 0xc0287533
1117 SIOCGETVLAN = 0xc0206990 1212 SIOCGETVLAN = 0xc0206990
1118 SIOCGHIWAT = 0x40047301
1119 SIOCGIFADDR = 0xc0206921 1213 SIOCGIFADDR = 0xc0206921
1120 SIOCGIFASYNCMAP = 0xc020697c
1121 SIOCGIFBRDADDR = 0xc0206923 1214 SIOCGIFBRDADDR = 0xc0206923
1122 SIOCGIFCONF = 0xc0106924 1215 SIOCGIFCONF = 0xc0106924
1123 SIOCGIFDATA = 0xc020691b 1216 SIOCGIFDATA = 0xc020691b
@@ -1129,37 +1222,41 @@ const (
1129 SIOCGIFGMEMB = 0xc028698a 1222 SIOCGIFGMEMB = 0xc028698a
1130 SIOCGIFGROUP = 0xc0286988 1223 SIOCGIFGROUP = 0xc0286988
1131 SIOCGIFHARDMTU = 0xc02069a5 1224 SIOCGIFHARDMTU = 0xc02069a5
1132 SIOCGIFMEDIA = 0xc0306936 1225 SIOCGIFLLPRIO = 0xc02069b6
1226 SIOCGIFMEDIA = 0xc0406938
1133 SIOCGIFMETRIC = 0xc0206917 1227 SIOCGIFMETRIC = 0xc0206917
1134 SIOCGIFMTU = 0xc020697e 1228 SIOCGIFMTU = 0xc020697e
1135 SIOCGIFNETMASK = 0xc0206925 1229 SIOCGIFNETMASK = 0xc0206925
1136 SIOCGIFPDSTADDR = 0xc0206948 1230 SIOCGIFPAIR = 0xc02069b1
1231 SIOCGIFPARENT = 0xc02069b3
1137 SIOCGIFPRIORITY = 0xc020699c 1232 SIOCGIFPRIORITY = 0xc020699c
1138 SIOCGIFPSRCADDR = 0xc0206947
1139 SIOCGIFRDOMAIN = 0xc02069a0 1233 SIOCGIFRDOMAIN = 0xc02069a0
1140 SIOCGIFRTLABEL = 0xc0206983 1234 SIOCGIFRTLABEL = 0xc0206983
1141 SIOCGIFTIMESLOT = 0xc0206986 1235 SIOCGIFRXR = 0x802069aa
1142 SIOCGIFXFLAGS = 0xc020699e 1236 SIOCGIFXFLAGS = 0xc020699e
1143 SIOCGLIFADDR = 0xc218691d
1144 SIOCGLIFPHYADDR = 0xc218694b 1237 SIOCGLIFPHYADDR = 0xc218694b
1238 SIOCGLIFPHYDF = 0xc02069c2
1145 SIOCGLIFPHYRTABLE = 0xc02069a2 1239 SIOCGLIFPHYRTABLE = 0xc02069a2
1146 SIOCGLIFPHYTTL = 0xc02069a9 1240 SIOCGLIFPHYTTL = 0xc02069a9
1147 SIOCGLOWAT = 0x40047303
1148 SIOCGPGRP = 0x40047309 1241 SIOCGPGRP = 0x40047309
1149 SIOCGSPPPPARAMS = 0xc0206994 1242 SIOCGSPPPPARAMS = 0xc0206994
1243 SIOCGUMBINFO = 0xc02069be
1244 SIOCGUMBPARAM = 0xc02069c0
1150 SIOCGVH = 0xc02069f6 1245 SIOCGVH = 0xc02069f6
1246 SIOCGVNETFLOWID = 0xc02069c4
1151 SIOCGVNETID = 0xc02069a7 1247 SIOCGVNETID = 0xc02069a7
1248 SIOCIFAFATTACH = 0x801169ab
1249 SIOCIFAFDETACH = 0x801169ac
1152 SIOCIFCREATE = 0x8020697a 1250 SIOCIFCREATE = 0x8020697a
1153 SIOCIFDESTROY = 0x80206979 1251 SIOCIFDESTROY = 0x80206979
1154 SIOCIFGCLONERS = 0xc0106978 1252 SIOCIFGCLONERS = 0xc0106978
1155 SIOCSETKALIVE = 0x801869a3 1253 SIOCSETKALIVE = 0x801869a3
1156 SIOCSETLABEL = 0x80206999 1254 SIOCSETLABEL = 0x80206999
1255 SIOCSETMPWCFG = 0x802069ad
1157 SIOCSETPFLOW = 0x802069fd 1256 SIOCSETPFLOW = 0x802069fd
1158 SIOCSETPFSYNC = 0x802069f7 1257 SIOCSETPFSYNC = 0x802069f7
1159 SIOCSETVLAN = 0x8020698f 1258 SIOCSETVLAN = 0x8020698f
1160 SIOCSHIWAT = 0x80047300
1161 SIOCSIFADDR = 0x8020690c 1259 SIOCSIFADDR = 0x8020690c
1162 SIOCSIFASYNCMAP = 0x8020697d
1163 SIOCSIFBRDADDR = 0x80206913 1260 SIOCSIFBRDADDR = 0x80206913
1164 SIOCSIFDESCR = 0x80206980 1261 SIOCSIFDESCR = 0x80206980
1165 SIOCSIFDSTADDR = 0x8020690e 1262 SIOCSIFDSTADDR = 0x8020690e
@@ -1167,25 +1264,36 @@ const (
1167 SIOCSIFGATTR = 0x8028698c 1264 SIOCSIFGATTR = 0x8028698c
1168 SIOCSIFGENERIC = 0x80206939 1265 SIOCSIFGENERIC = 0x80206939
1169 SIOCSIFLLADDR = 0x8020691f 1266 SIOCSIFLLADDR = 0x8020691f
1170 SIOCSIFMEDIA = 0xc0206935 1267 SIOCSIFLLPRIO = 0x802069b5
1268 SIOCSIFMEDIA = 0xc0206937
1171 SIOCSIFMETRIC = 0x80206918 1269 SIOCSIFMETRIC = 0x80206918
1172 SIOCSIFMTU = 0x8020697f 1270 SIOCSIFMTU = 0x8020697f
1173 SIOCSIFNETMASK = 0x80206916 1271 SIOCSIFNETMASK = 0x80206916
1174 SIOCSIFPHYADDR = 0x80406946 1272 SIOCSIFPAIR = 0x802069b0
1273 SIOCSIFPARENT = 0x802069b2
1175 SIOCSIFPRIORITY = 0x8020699b 1274 SIOCSIFPRIORITY = 0x8020699b
1176 SIOCSIFRDOMAIN = 0x8020699f 1275 SIOCSIFRDOMAIN = 0x8020699f
1177 SIOCSIFRTLABEL = 0x80206982 1276 SIOCSIFRTLABEL = 0x80206982
1178 SIOCSIFTIMESLOT = 0x80206985
1179 SIOCSIFXFLAGS = 0x8020699d 1277 SIOCSIFXFLAGS = 0x8020699d
1180 SIOCSLIFPHYADDR = 0x8218694a 1278 SIOCSLIFPHYADDR = 0x8218694a
1279 SIOCSLIFPHYDF = 0x802069c1
1181 SIOCSLIFPHYRTABLE = 0x802069a1 1280 SIOCSLIFPHYRTABLE = 0x802069a1
1182 SIOCSLIFPHYTTL = 0x802069a8 1281 SIOCSLIFPHYTTL = 0x802069a8
1183 SIOCSLOWAT = 0x80047302
1184 SIOCSPGRP = 0x80047308 1282 SIOCSPGRP = 0x80047308
1185 SIOCSSPPPPARAMS = 0x80206993 1283 SIOCSSPPPPARAMS = 0x80206993
1284 SIOCSUMBPARAM = 0x802069bf
1186 SIOCSVH = 0xc02069f5 1285 SIOCSVH = 0xc02069f5
1286 SIOCSVNETFLOWID = 0x802069c3
1187 SIOCSVNETID = 0x802069a6 1287 SIOCSVNETID = 0x802069a6
1288 SIOCSWGDPID = 0xc018695b
1289 SIOCSWGMAXFLOW = 0xc0186960
1290 SIOCSWGMAXGROUP = 0xc018695d
1291 SIOCSWSDPID = 0x8018695c
1292 SIOCSWSPORTNO = 0xc060695f
1293 SOCK_CLOEXEC = 0x8000
1188 SOCK_DGRAM = 0x2 1294 SOCK_DGRAM = 0x2
1295 SOCK_DNS = 0x1000
1296 SOCK_NONBLOCK = 0x4000
1189 SOCK_RAW = 0x3 1297 SOCK_RAW = 0x3
1190 SOCK_RDM = 0x4 1298 SOCK_RDM = 0x4
1191 SOCK_SEQPACKET = 0x5 1299 SOCK_SEQPACKET = 0x5
@@ -1216,9 +1324,42 @@ const (
1216 SO_TIMESTAMP = 0x800 1324 SO_TIMESTAMP = 0x800
1217 SO_TYPE = 0x1008 1325 SO_TYPE = 0x1008
1218 SO_USELOOPBACK = 0x40 1326 SO_USELOOPBACK = 0x40
1327 SO_ZEROIZE = 0x2000
1328 S_BLKSIZE = 0x200
1329 S_IEXEC = 0x40
1330 S_IFBLK = 0x6000
1331 S_IFCHR = 0x2000
1332 S_IFDIR = 0x4000
1333 S_IFIFO = 0x1000
1334 S_IFLNK = 0xa000
1335 S_IFMT = 0xf000
1336 S_IFREG = 0x8000
1337 S_IFSOCK = 0xc000
1338 S_IREAD = 0x100
1339 S_IRGRP = 0x20
1340 S_IROTH = 0x4
1341 S_IRUSR = 0x100
1342 S_IRWXG = 0x38
1343 S_IRWXO = 0x7
1344 S_IRWXU = 0x1c0
1345 S_ISGID = 0x400
1346 S_ISTXT = 0x200
1347 S_ISUID = 0x800
1348 S_ISVTX = 0x200
1349 S_IWGRP = 0x10
1350 S_IWOTH = 0x2
1351 S_IWRITE = 0x80
1352 S_IWUSR = 0x80
1353 S_IXGRP = 0x8
1354 S_IXOTH = 0x1
1355 S_IXUSR = 0x40
1219 TCIFLUSH = 0x1 1356 TCIFLUSH = 0x1
1357 TCIOFF = 0x3
1220 TCIOFLUSH = 0x3 1358 TCIOFLUSH = 0x3
1359 TCION = 0x4
1221 TCOFLUSH = 0x2 1360 TCOFLUSH = 0x2
1361 TCOOFF = 0x1
1362 TCOON = 0x2
1222 TCP_MAXBURST = 0x4 1363 TCP_MAXBURST = 0x4
1223 TCP_MAXSEG = 0x2 1364 TCP_MAXSEG = 0x2
1224 TCP_MAXWIN = 0xffff 1365 TCP_MAXWIN = 0xffff
@@ -1228,11 +1369,12 @@ const (
1228 TCP_MSS = 0x200 1369 TCP_MSS = 0x200
1229 TCP_NODELAY = 0x1 1370 TCP_NODELAY = 0x1
1230 TCP_NOPUSH = 0x10 1371 TCP_NOPUSH = 0x10
1231 TCP_NSTATES = 0xb
1232 TCP_SACK_ENABLE = 0x8 1372 TCP_SACK_ENABLE = 0x8
1233 TCSAFLUSH = 0x2 1373 TCSAFLUSH = 0x2
1234 TIOCCBRK = 0x2000747a 1374 TIOCCBRK = 0x2000747a
1235 TIOCCDTR = 0x20007478 1375 TIOCCDTR = 0x20007478
1376 TIOCCHKVERAUTH = 0x2000741e
1377 TIOCCLRVERAUTH = 0x2000741d
1236 TIOCCONS = 0x80047462 1378 TIOCCONS = 0x80047462
1237 TIOCDRAIN = 0x2000745e 1379 TIOCDRAIN = 0x2000745e
1238 TIOCEXCL = 0x2000740d 1380 TIOCEXCL = 0x2000740d
@@ -1287,17 +1429,22 @@ const (
1287 TIOCSETAF = 0x802c7416 1429 TIOCSETAF = 0x802c7416
1288 TIOCSETAW = 0x802c7415 1430 TIOCSETAW = 0x802c7415
1289 TIOCSETD = 0x8004741b 1431 TIOCSETD = 0x8004741b
1432 TIOCSETVERAUTH = 0x8004741c
1290 TIOCSFLAGS = 0x8004745c 1433 TIOCSFLAGS = 0x8004745c
1291 TIOCSIG = 0x8004745f 1434 TIOCSIG = 0x8004745f
1292 TIOCSPGRP = 0x80047476 1435 TIOCSPGRP = 0x80047476
1293 TIOCSTART = 0x2000746e 1436 TIOCSTART = 0x2000746e
1294 TIOCSTAT = 0x80047465 1437 TIOCSTAT = 0x20007465
1295 TIOCSTI = 0x80017472 1438 TIOCSTI = 0x80017472
1296 TIOCSTOP = 0x2000746f 1439 TIOCSTOP = 0x2000746f
1297 TIOCSTSTAMP = 0x8008745a 1440 TIOCSTSTAMP = 0x8008745a
1298 TIOCSWINSZ = 0x80087467 1441 TIOCSWINSZ = 0x80087467
1299 TIOCUCNTL = 0x80047466 1442 TIOCUCNTL = 0x80047466
1443 TIOCUCNTL_CBRK = 0x7a
1444 TIOCUCNTL_SBRK = 0x7b
1300 TOSTOP = 0x400000 1445 TOSTOP = 0x400000
1446 UTIME_NOW = -0x2
1447 UTIME_OMIT = -0x1
1301 VDISCARD = 0xf 1448 VDISCARD = 0xf
1302 VDSUSP = 0xb 1449 VDSUSP = 0xb
1303 VEOF = 0x0 1450 VEOF = 0x0
@@ -1308,6 +1455,18 @@ const (
1308 VKILL = 0x5 1455 VKILL = 0x5
1309 VLNEXT = 0xe 1456 VLNEXT = 0xe
1310 VMIN = 0x10 1457 VMIN = 0x10
1458 VM_ANONMIN = 0x7
1459 VM_LOADAVG = 0x2
1460 VM_MAXID = 0xc
1461 VM_MAXSLP = 0xa
1462 VM_METER = 0x1
1463 VM_NKMEMPAGES = 0x6
1464 VM_PSSTRINGS = 0x3
1465 VM_SWAPENCRYPT = 0x5
1466 VM_USPACE = 0xb
1467 VM_UVMEXP = 0x4
1468 VM_VNODEMIN = 0x9
1469 VM_VTEXTMIN = 0x8
1311 VQUIT = 0x9 1470 VQUIT = 0x9
1312 VREPRINT = 0x6 1471 VREPRINT = 0x6
1313 VSTART = 0xc 1472 VSTART = 0xc
@@ -1320,8 +1479,8 @@ const (
1320 WCONTINUED = 0x8 1479 WCONTINUED = 0x8
1321 WCOREFLAG = 0x80 1480 WCOREFLAG = 0x80
1322 WNOHANG = 0x1 1481 WNOHANG = 0x1
1323 WSTOPPED = 0x7f
1324 WUNTRACED = 0x2 1482 WUNTRACED = 0x2
1483 XCASE = 0x1000000
1325) 1484)
1326 1485
1327// Errors 1486// Errors
@@ -1335,6 +1494,7 @@ const (
1335 EALREADY = syscall.Errno(0x25) 1494 EALREADY = syscall.Errno(0x25)
1336 EAUTH = syscall.Errno(0x50) 1495 EAUTH = syscall.Errno(0x50)
1337 EBADF = syscall.Errno(0x9) 1496 EBADF = syscall.Errno(0x9)
1497 EBADMSG = syscall.Errno(0x5c)
1338 EBADRPC = syscall.Errno(0x48) 1498 EBADRPC = syscall.Errno(0x48)
1339 EBUSY = syscall.Errno(0x10) 1499 EBUSY = syscall.Errno(0x10)
1340 ECANCELED = syscall.Errno(0x58) 1500 ECANCELED = syscall.Errno(0x58)
@@ -1361,7 +1521,7 @@ const (
1361 EIPSEC = syscall.Errno(0x52) 1521 EIPSEC = syscall.Errno(0x52)
1362 EISCONN = syscall.Errno(0x38) 1522 EISCONN = syscall.Errno(0x38)
1363 EISDIR = syscall.Errno(0x15) 1523 EISDIR = syscall.Errno(0x15)
1364 ELAST = syscall.Errno(0x5b) 1524 ELAST = syscall.Errno(0x5f)
1365 ELOOP = syscall.Errno(0x3e) 1525 ELOOP = syscall.Errno(0x3e)
1366 EMEDIUMTYPE = syscall.Errno(0x56) 1526 EMEDIUMTYPE = syscall.Errno(0x56)
1367 EMFILE = syscall.Errno(0x18) 1527 EMFILE = syscall.Errno(0x18)
@@ -1389,12 +1549,14 @@ const (
1389 ENOTCONN = syscall.Errno(0x39) 1549 ENOTCONN = syscall.Errno(0x39)
1390 ENOTDIR = syscall.Errno(0x14) 1550 ENOTDIR = syscall.Errno(0x14)
1391 ENOTEMPTY = syscall.Errno(0x42) 1551 ENOTEMPTY = syscall.Errno(0x42)
1552 ENOTRECOVERABLE = syscall.Errno(0x5d)
1392 ENOTSOCK = syscall.Errno(0x26) 1553 ENOTSOCK = syscall.Errno(0x26)
1393 ENOTSUP = syscall.Errno(0x5b) 1554 ENOTSUP = syscall.Errno(0x5b)
1394 ENOTTY = syscall.Errno(0x19) 1555 ENOTTY = syscall.Errno(0x19)
1395 ENXIO = syscall.Errno(0x6) 1556 ENXIO = syscall.Errno(0x6)
1396 EOPNOTSUPP = syscall.Errno(0x2d) 1557 EOPNOTSUPP = syscall.Errno(0x2d)
1397 EOVERFLOW = syscall.Errno(0x57) 1558 EOVERFLOW = syscall.Errno(0x57)
1559 EOWNERDEAD = syscall.Errno(0x5e)
1398 EPERM = syscall.Errno(0x1) 1560 EPERM = syscall.Errno(0x1)
1399 EPFNOSUPPORT = syscall.Errno(0x2e) 1561 EPFNOSUPPORT = syscall.Errno(0x2e)
1400 EPIPE = syscall.Errno(0x20) 1562 EPIPE = syscall.Errno(0x20)
@@ -1402,6 +1564,7 @@ const (
1402 EPROCUNAVAIL = syscall.Errno(0x4c) 1564 EPROCUNAVAIL = syscall.Errno(0x4c)
1403 EPROGMISMATCH = syscall.Errno(0x4b) 1565 EPROGMISMATCH = syscall.Errno(0x4b)
1404 EPROGUNAVAIL = syscall.Errno(0x4a) 1566 EPROGUNAVAIL = syscall.Errno(0x4a)
1567 EPROTO = syscall.Errno(0x5f)
1405 EPROTONOSUPPORT = syscall.Errno(0x2b) 1568 EPROTONOSUPPORT = syscall.Errno(0x2b)
1406 EPROTOTYPE = syscall.Errno(0x29) 1569 EPROTOTYPE = syscall.Errno(0x29)
1407 ERANGE = syscall.Errno(0x22) 1570 ERANGE = syscall.Errno(0x22)
@@ -1459,132 +1622,144 @@ const (
1459) 1622)
1460 1623
1461// Error table 1624// Error table
1462var errors = [...]string{ 1625var errorList = [...]struct {
1463 1: "operation not permitted", 1626 num syscall.Errno
1464 2: "no such file or directory", 1627 name string
1465 3: "no such process", 1628 desc string
1466 4: "interrupted system call", 1629}{
1467 5: "input/output error", 1630 {1, "EPERM", "operation not permitted"},
1468 6: "device not configured", 1631 {2, "ENOENT", "no such file or directory"},
1469 7: "argument list too long", 1632 {3, "ESRCH", "no such process"},
1470 8: "exec format error", 1633 {4, "EINTR", "interrupted system call"},
1471 9: "bad file descriptor", 1634 {5, "EIO", "input/output error"},
1472 10: "no child processes", 1635 {6, "ENXIO", "device not configured"},
1473 11: "resource deadlock avoided", 1636 {7, "E2BIG", "argument list too long"},
1474 12: "cannot allocate memory", 1637 {8, "ENOEXEC", "exec format error"},
1475 13: "permission denied", 1638 {9, "EBADF", "bad file descriptor"},
1476 14: "bad address", 1639 {10, "ECHILD", "no child processes"},
1477 15: "block device required", 1640 {11, "EDEADLK", "resource deadlock avoided"},
1478 16: "device busy", 1641 {12, "ENOMEM", "cannot allocate memory"},
1479 17: "file exists", 1642 {13, "EACCES", "permission denied"},
1480 18: "cross-device link", 1643 {14, "EFAULT", "bad address"},
1481 19: "operation not supported by device", 1644 {15, "ENOTBLK", "block device required"},
1482 20: "not a directory", 1645 {16, "EBUSY", "device busy"},
1483 21: "is a directory", 1646 {17, "EEXIST", "file exists"},
1484 22: "invalid argument", 1647 {18, "EXDEV", "cross-device link"},
1485 23: "too many open files in system", 1648 {19, "ENODEV", "operation not supported by device"},
1486 24: "too many open files", 1649 {20, "ENOTDIR", "not a directory"},
1487 25: "inappropriate ioctl for device", 1650 {21, "EISDIR", "is a directory"},
1488 26: "text file busy", 1651 {22, "EINVAL", "invalid argument"},
1489 27: "file too large", 1652 {23, "ENFILE", "too many open files in system"},
1490 28: "no space left on device", 1653 {24, "EMFILE", "too many open files"},
1491 29: "illegal seek", 1654 {25, "ENOTTY", "inappropriate ioctl for device"},
1492 30: "read-only file system", 1655 {26, "ETXTBSY", "text file busy"},
1493 31: "too many links", 1656 {27, "EFBIG", "file too large"},
1494 32: "broken pipe", 1657 {28, "ENOSPC", "no space left on device"},
1495 33: "numerical argument out of domain", 1658 {29, "ESPIPE", "illegal seek"},
1496 34: "result too large", 1659 {30, "EROFS", "read-only file system"},
1497 35: "resource temporarily unavailable", 1660 {31, "EMLINK", "too many links"},
1498 36: "operation now in progress", 1661 {32, "EPIPE", "broken pipe"},
1499 37: "operation already in progress", 1662 {33, "EDOM", "numerical argument out of domain"},
1500 38: "socket operation on non-socket", 1663 {34, "ERANGE", "result too large"},
1501 39: "destination address required", 1664 {35, "EAGAIN", "resource temporarily unavailable"},
1502 40: "message too long", 1665 {36, "EINPROGRESS", "operation now in progress"},
1503 41: "protocol wrong type for socket", 1666 {37, "EALREADY", "operation already in progress"},
1504 42: "protocol not available", 1667 {38, "ENOTSOCK", "socket operation on non-socket"},
1505 43: "protocol not supported", 1668 {39, "EDESTADDRREQ", "destination address required"},
1506 44: "socket type not supported", 1669 {40, "EMSGSIZE", "message too long"},
1507 45: "operation not supported", 1670 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1508 46: "protocol family not supported", 1671 {42, "ENOPROTOOPT", "protocol not available"},
1509 47: "address family not supported by protocol family", 1672 {43, "EPROTONOSUPPORT", "protocol not supported"},
1510 48: "address already in use", 1673 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1511 49: "can't assign requested address", 1674 {45, "EOPNOTSUPP", "operation not supported"},
1512 50: "network is down", 1675 {46, "EPFNOSUPPORT", "protocol family not supported"},
1513 51: "network is unreachable", 1676 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1514 52: "network dropped connection on reset", 1677 {48, "EADDRINUSE", "address already in use"},
1515 53: "software caused connection abort", 1678 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1516 54: "connection reset by peer", 1679 {50, "ENETDOWN", "network is down"},
1517 55: "no buffer space available", 1680 {51, "ENETUNREACH", "network is unreachable"},
1518 56: "socket is already connected", 1681 {52, "ENETRESET", "network dropped connection on reset"},
1519 57: "socket is not connected", 1682 {53, "ECONNABORTED", "software caused connection abort"},
1520 58: "can't send after socket shutdown", 1683 {54, "ECONNRESET", "connection reset by peer"},
1521 59: "too many references: can't splice", 1684 {55, "ENOBUFS", "no buffer space available"},
1522 60: "connection timed out", 1685 {56, "EISCONN", "socket is already connected"},
1523 61: "connection refused", 1686 {57, "ENOTCONN", "socket is not connected"},
1524 62: "too many levels of symbolic links", 1687 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1525 63: "file name too long", 1688 {59, "ETOOMANYREFS", "too many references: can't splice"},
1526 64: "host is down", 1689 {60, "ETIMEDOUT", "operation timed out"},
1527 65: "no route to host", 1690 {61, "ECONNREFUSED", "connection refused"},
1528 66: "directory not empty", 1691 {62, "ELOOP", "too many levels of symbolic links"},
1529 67: "too many processes", 1692 {63, "ENAMETOOLONG", "file name too long"},
1530 68: "too many users", 1693 {64, "EHOSTDOWN", "host is down"},
1531 69: "disc quota exceeded", 1694 {65, "EHOSTUNREACH", "no route to host"},
1532 70: "stale NFS file handle", 1695 {66, "ENOTEMPTY", "directory not empty"},
1533 71: "too many levels of remote in path", 1696 {67, "EPROCLIM", "too many processes"},
1534 72: "RPC struct is bad", 1697 {68, "EUSERS", "too many users"},
1535 73: "RPC version wrong", 1698 {69, "EDQUOT", "disk quota exceeded"},
1536 74: "RPC prog. not avail", 1699 {70, "ESTALE", "stale NFS file handle"},
1537 75: "program version wrong", 1700 {71, "EREMOTE", "too many levels of remote in path"},
1538 76: "bad procedure for program", 1701 {72, "EBADRPC", "RPC struct is bad"},
1539 77: "no locks available", 1702 {73, "ERPCMISMATCH", "RPC version wrong"},
1540 78: "function not implemented", 1703 {74, "EPROGUNAVAIL", "RPC program not available"},
1541 79: "inappropriate file type or format", 1704 {75, "EPROGMISMATCH", "program version wrong"},
1542 80: "authentication error", 1705 {76, "EPROCUNAVAIL", "bad procedure for program"},
1543 81: "need authenticator", 1706 {77, "ENOLCK", "no locks available"},
1544 82: "IPsec processing failure", 1707 {78, "ENOSYS", "function not implemented"},
1545 83: "attribute not found", 1708 {79, "EFTYPE", "inappropriate file type or format"},
1546 84: "illegal byte sequence", 1709 {80, "EAUTH", "authentication error"},
1547 85: "no medium found", 1710 {81, "ENEEDAUTH", "need authenticator"},
1548 86: "wrong medium type", 1711 {82, "EIPSEC", "IPsec processing failure"},
1549 87: "value too large to be stored in data type", 1712 {83, "ENOATTR", "attribute not found"},
1550 88: "operation canceled", 1713 {84, "EILSEQ", "illegal byte sequence"},
1551 89: "identifier removed", 1714 {85, "ENOMEDIUM", "no medium found"},
1552 90: "no message of desired type", 1715 {86, "EMEDIUMTYPE", "wrong medium type"},
1553 91: "not supported", 1716 {87, "EOVERFLOW", "value too large to be stored in data type"},
1717 {88, "ECANCELED", "operation canceled"},
1718 {89, "EIDRM", "identifier removed"},
1719 {90, "ENOMSG", "no message of desired type"},
1720 {91, "ENOTSUP", "not supported"},
1721 {92, "EBADMSG", "bad message"},
1722 {93, "ENOTRECOVERABLE", "state not recoverable"},
1723 {94, "EOWNERDEAD", "previous owner died"},
1724 {95, "ELAST", "protocol error"},
1554} 1725}
1555 1726
1556// Signal table 1727// Signal table
1557var signals = [...]string{ 1728var signalList = [...]struct {
1558 1: "hangup", 1729 num syscall.Signal
1559 2: "interrupt", 1730 name string
1560 3: "quit", 1731 desc string
1561 4: "illegal instruction", 1732}{
1562 5: "trace/BPT trap", 1733 {1, "SIGHUP", "hangup"},
1563 6: "abort trap", 1734 {2, "SIGINT", "interrupt"},
1564 7: "EMT trap", 1735 {3, "SIGQUIT", "quit"},
1565 8: "floating point exception", 1736 {4, "SIGILL", "illegal instruction"},
1566 9: "killed", 1737 {5, "SIGTRAP", "trace/BPT trap"},
1567 10: "bus error", 1738 {6, "SIGABRT", "abort trap"},
1568 11: "segmentation fault", 1739 {7, "SIGEMT", "EMT trap"},
1569 12: "bad system call", 1740 {8, "SIGFPE", "floating point exception"},
1570 13: "broken pipe", 1741 {9, "SIGKILL", "killed"},
1571 14: "alarm clock", 1742 {10, "SIGBUS", "bus error"},
1572 15: "terminated", 1743 {11, "SIGSEGV", "segmentation fault"},
1573 16: "urgent I/O condition", 1744 {12, "SIGSYS", "bad system call"},
1574 17: "stopped (signal)", 1745 {13, "SIGPIPE", "broken pipe"},
1575 18: "stopped", 1746 {14, "SIGALRM", "alarm clock"},
1576 19: "continued", 1747 {15, "SIGTERM", "terminated"},
1577 20: "child exited", 1748 {16, "SIGURG", "urgent I/O condition"},
1578 21: "stopped (tty input)", 1749 {17, "SIGSTOP", "suspended (signal)"},
1579 22: "stopped (tty output)", 1750 {18, "SIGTSTP", "suspended"},
1580 23: "I/O possible", 1751 {19, "SIGCONT", "continued"},
1581 24: "cputime limit exceeded", 1752 {20, "SIGCHLD", "child exited"},
1582 25: "filesize limit exceeded", 1753 {21, "SIGTTIN", "stopped (tty input)"},
1583 26: "virtual timer expired", 1754 {22, "SIGTTOU", "stopped (tty output)"},
1584 27: "profiling timer expired", 1755 {23, "SIGIO", "I/O possible"},
1585 28: "window size changes", 1756 {24, "SIGXCPU", "cputime limit exceeded"},
1586 29: "information request", 1757 {25, "SIGXFSZ", "filesize limit exceeded"},
1587 30: "user defined signal 1", 1758 {26, "SIGVTALRM", "virtual timer expired"},
1588 31: "user defined signal 2", 1759 {27, "SIGPROF", "profiling timer expired"},
1589 32: "thread AST", 1760 {28, "SIGWINCH", "window size changes"},
1761 {29, "SIGINFO", "information request"},
1762 {30, "SIGUSR1", "user defined signal 1"},
1763 {31, "SIGUSR2", "user defined signal 2"},
1764 {32, "SIGTHR", "thread AST"},
1590} 1765}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
index 4c32049..79d5695 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
@@ -147,6 +147,7 @@ const (
147 CFLUSH = 0xf 147 CFLUSH = 0xf
148 CLOCAL = 0x8000 148 CLOCAL = 0x8000
149 CREAD = 0x800 149 CREAD = 0x800
150 CRTSCTS = 0x10000
150 CS5 = 0x0 151 CS5 = 0x0
151 CS6 = 0x100 152 CS6 = 0x100
152 CS7 = 0x200 153 CS7 = 0x200
@@ -898,6 +899,32 @@ const (
898 MAP_TRYFIXED = 0x0 899 MAP_TRYFIXED = 0x0
899 MCL_CURRENT = 0x1 900 MCL_CURRENT = 0x1
900 MCL_FUTURE = 0x2 901 MCL_FUTURE = 0x2
902 MNT_ASYNC = 0x40
903 MNT_DEFEXPORTED = 0x200
904 MNT_DELEXPORT = 0x20000
905 MNT_DOOMED = 0x8000000
906 MNT_EXPORTANON = 0x400
907 MNT_EXPORTED = 0x100
908 MNT_EXRDONLY = 0x80
909 MNT_FORCE = 0x80000
910 MNT_LAZY = 0x3
911 MNT_LOCAL = 0x1000
912 MNT_NOATIME = 0x8000
913 MNT_NODEV = 0x10
914 MNT_NOEXEC = 0x4
915 MNT_NOSUID = 0x8
916 MNT_NOWAIT = 0x2
917 MNT_QUOTA = 0x2000
918 MNT_RDONLY = 0x1
919 MNT_RELOAD = 0x40000
920 MNT_ROOTFS = 0x4000
921 MNT_SOFTDEP = 0x4000000
922 MNT_SYNCHRONOUS = 0x2
923 MNT_UPDATE = 0x10000
924 MNT_VISFLAGMASK = 0x400ffff
925 MNT_WAIT = 0x1
926 MNT_WANTRDWR = 0x2000000
927 MNT_WXALLOWED = 0x800
901 MSG_BCAST = 0x100 928 MSG_BCAST = 0x100
902 MSG_CMSG_CLOEXEC = 0x800 929 MSG_CMSG_CLOEXEC = 0x800
903 MSG_CTRUNC = 0x20 930 MSG_CTRUNC = 0x20
@@ -1220,6 +1247,34 @@ const (
1220 SO_TIMESTAMP = 0x800 1247 SO_TIMESTAMP = 0x800
1221 SO_TYPE = 0x1008 1248 SO_TYPE = 0x1008
1222 SO_USELOOPBACK = 0x40 1249 SO_USELOOPBACK = 0x40
1250 S_BLKSIZE = 0x200
1251 S_IEXEC = 0x40
1252 S_IFBLK = 0x6000
1253 S_IFCHR = 0x2000
1254 S_IFDIR = 0x4000
1255 S_IFIFO = 0x1000
1256 S_IFLNK = 0xa000
1257 S_IFMT = 0xf000
1258 S_IFREG = 0x8000
1259 S_IFSOCK = 0xc000
1260 S_IREAD = 0x100
1261 S_IRGRP = 0x20
1262 S_IROTH = 0x4
1263 S_IRUSR = 0x100
1264 S_IRWXG = 0x38
1265 S_IRWXO = 0x7
1266 S_IRWXU = 0x1c0
1267 S_ISGID = 0x400
1268 S_ISTXT = 0x200
1269 S_ISUID = 0x800
1270 S_ISVTX = 0x200
1271 S_IWGRP = 0x10
1272 S_IWOTH = 0x2
1273 S_IWRITE = 0x80
1274 S_IWUSR = 0x80
1275 S_IXGRP = 0x8
1276 S_IXOTH = 0x1
1277 S_IXUSR = 0x40
1223 TCIFLUSH = 0x1 1278 TCIFLUSH = 0x1
1224 TCIOFLUSH = 0x3 1279 TCIOFLUSH = 0x3
1225 TCOFLUSH = 0x2 1280 TCOFLUSH = 0x2
@@ -1462,132 +1517,140 @@ const (
1462) 1517)
1463 1518
1464// Error table 1519// Error table
1465var errors = [...]string{ 1520var errorList = [...]struct {
1466 1: "operation not permitted", 1521 num syscall.Errno
1467 2: "no such file or directory", 1522 name string
1468 3: "no such process", 1523 desc string
1469 4: "interrupted system call", 1524}{
1470 5: "input/output error", 1525 {1, "EPERM", "operation not permitted"},
1471 6: "device not configured", 1526 {2, "ENOENT", "no such file or directory"},
1472 7: "argument list too long", 1527 {3, "ESRCH", "no such process"},
1473 8: "exec format error", 1528 {4, "EINTR", "interrupted system call"},
1474 9: "bad file descriptor", 1529 {5, "EIO", "input/output error"},
1475 10: "no child processes", 1530 {6, "ENXIO", "device not configured"},
1476 11: "resource deadlock avoided", 1531 {7, "E2BIG", "argument list too long"},
1477 12: "cannot allocate memory", 1532 {8, "ENOEXEC", "exec format error"},
1478 13: "permission denied", 1533 {9, "EBADF", "bad file descriptor"},
1479 14: "bad address", 1534 {10, "ECHILD", "no child processes"},
1480 15: "block device required", 1535 {11, "EDEADLK", "resource deadlock avoided"},
1481 16: "device busy", 1536 {12, "ENOMEM", "cannot allocate memory"},
1482 17: "file exists", 1537 {13, "EACCES", "permission denied"},
1483 18: "cross-device link", 1538 {14, "EFAULT", "bad address"},
1484 19: "operation not supported by device", 1539 {15, "ENOTBLK", "block device required"},
1485 20: "not a directory", 1540 {16, "EBUSY", "device busy"},
1486 21: "is a directory", 1541 {17, "EEXIST", "file exists"},
1487 22: "invalid argument", 1542 {18, "EXDEV", "cross-device link"},
1488 23: "too many open files in system", 1543 {19, "ENODEV", "operation not supported by device"},
1489 24: "too many open files", 1544 {20, "ENOTDIR", "not a directory"},
1490 25: "inappropriate ioctl for device", 1545 {21, "EISDIR", "is a directory"},
1491 26: "text file busy", 1546 {22, "EINVAL", "invalid argument"},
1492 27: "file too large", 1547 {23, "ENFILE", "too many open files in system"},
1493 28: "no space left on device", 1548 {24, "EMFILE", "too many open files"},
1494 29: "illegal seek", 1549 {25, "ENOTTY", "inappropriate ioctl for device"},
1495 30: "read-only file system", 1550 {26, "ETXTBSY", "text file busy"},
1496 31: "too many links", 1551 {27, "EFBIG", "file too large"},
1497 32: "broken pipe", 1552 {28, "ENOSPC", "no space left on device"},
1498 33: "numerical argument out of domain", 1553 {29, "ESPIPE", "illegal seek"},
1499 34: "result too large", 1554 {30, "EROFS", "read-only file system"},
1500 35: "resource temporarily unavailable", 1555 {31, "EMLINK", "too many links"},
1501 36: "operation now in progress", 1556 {32, "EPIPE", "broken pipe"},
1502 37: "operation already in progress", 1557 {33, "EDOM", "numerical argument out of domain"},
1503 38: "socket operation on non-socket", 1558 {34, "ERANGE", "result too large"},
1504 39: "destination address required", 1559 {35, "EWOULDBLOCK", "resource temporarily unavailable"},
1505 40: "message too long", 1560 {36, "EINPROGRESS", "operation now in progress"},
1506 41: "protocol wrong type for socket", 1561 {37, "EALREADY", "operation already in progress"},
1507 42: "protocol not available", 1562 {38, "ENOTSOCK", "socket operation on non-socket"},
1508 43: "protocol not supported", 1563 {39, "EDESTADDRREQ", "destination address required"},
1509 44: "socket type not supported", 1564 {40, "EMSGSIZE", "message too long"},
1510 45: "operation not supported", 1565 {41, "EPROTOTYPE", "protocol wrong type for socket"},
1511 46: "protocol family not supported", 1566 {42, "ENOPROTOOPT", "protocol not available"},
1512 47: "address family not supported by protocol family", 1567 {43, "EPROTONOSUPPORT", "protocol not supported"},
1513 48: "address already in use", 1568 {44, "ESOCKTNOSUPPORT", "socket type not supported"},
1514 49: "can't assign requested address", 1569 {45, "EOPNOTSUPP", "operation not supported"},
1515 50: "network is down", 1570 {46, "EPFNOSUPPORT", "protocol family not supported"},
1516 51: "network is unreachable", 1571 {47, "EAFNOSUPPORT", "address family not supported by protocol family"},
1517 52: "network dropped connection on reset", 1572 {48, "EADDRINUSE", "address already in use"},
1518 53: "software caused connection abort", 1573 {49, "EADDRNOTAVAIL", "can't assign requested address"},
1519 54: "connection reset by peer", 1574 {50, "ENETDOWN", "network is down"},
1520 55: "no buffer space available", 1575 {51, "ENETUNREACH", "network is unreachable"},
1521 56: "socket is already connected", 1576 {52, "ENETRESET", "network dropped connection on reset"},
1522 57: "socket is not connected", 1577 {53, "ECONNABORTED", "software caused connection abort"},
1523 58: "can't send after socket shutdown", 1578 {54, "ECONNRESET", "connection reset by peer"},
1524 59: "too many references: can't splice", 1579 {55, "ENOBUFS", "no buffer space available"},
1525 60: "connection timed out", 1580 {56, "EISCONN", "socket is already connected"},
1526 61: "connection refused", 1581 {57, "ENOTCONN", "socket is not connected"},
1527 62: "too many levels of symbolic links", 1582 {58, "ESHUTDOWN", "can't send after socket shutdown"},
1528 63: "file name too long", 1583 {59, "ETOOMANYREFS", "too many references: can't splice"},
1529 64: "host is down", 1584 {60, "ETIMEDOUT", "operation timed out"},
1530 65: "no route to host", 1585 {61, "ECONNREFUSED", "connection refused"},
1531 66: "directory not empty", 1586 {62, "ELOOP", "too many levels of symbolic links"},
1532 67: "too many processes", 1587 {63, "ENAMETOOLONG", "file name too long"},
1533 68: "too many users", 1588 {64, "EHOSTDOWN", "host is down"},
1534 69: "disc quota exceeded", 1589 {65, "EHOSTUNREACH", "no route to host"},
1535 70: "stale NFS file handle", 1590 {66, "ENOTEMPTY", "directory not empty"},
1536 71: "too many levels of remote in path", 1591 {67, "EPROCLIM", "too many processes"},
1537 72: "RPC struct is bad", 1592 {68, "EUSERS", "too many users"},
1538 73: "RPC version wrong", 1593 {69, "EDQUOT", "disk quota exceeded"},
1539 74: "RPC prog. not avail", 1594 {70, "ESTALE", "stale NFS file handle"},
1540 75: "program version wrong", 1595 {71, "EREMOTE", "too many levels of remote in path"},
1541 76: "bad procedure for program", 1596 {72, "EBADRPC", "RPC struct is bad"},
1542 77: "no locks available", 1597 {73, "ERPCMISMATCH", "RPC version wrong"},
1543 78: "function not implemented", 1598 {74, "EPROGUNAVAIL", "RPC program not available"},
1544 79: "inappropriate file type or format", 1599 {75, "EPROGMISMATCH", "program version wrong"},
1545 80: "authentication error", 1600 {76, "EPROCUNAVAIL", "bad procedure for program"},
1546 81: "need authenticator", 1601 {77, "ENOLCK", "no locks available"},
1547 82: "IPsec processing failure", 1602 {78, "ENOSYS", "function not implemented"},
1548 83: "attribute not found", 1603 {79, "EFTYPE", "inappropriate file type or format"},
1549 84: "illegal byte sequence", 1604 {80, "EAUTH", "authentication error"},
1550 85: "no medium found", 1605 {81, "ENEEDAUTH", "need authenticator"},
1551 86: "wrong medium type", 1606 {82, "EIPSEC", "IPsec processing failure"},
1552 87: "value too large to be stored in data type", 1607 {83, "ENOATTR", "attribute not found"},
1553 88: "operation canceled", 1608 {84, "EILSEQ", "illegal byte sequence"},
1554 89: "identifier removed", 1609 {85, "ENOMEDIUM", "no medium found"},
1555 90: "no message of desired type", 1610 {86, "EMEDIUMTYPE", "wrong medium type"},
1556 91: "not supported", 1611 {87, "EOVERFLOW", "value too large to be stored in data type"},
1612 {88, "ECANCELED", "operation canceled"},
1613 {89, "EIDRM", "identifier removed"},
1614 {90, "ENOMSG", "no message of desired type"},
1615 {91, "ELAST", "not supported"},
1557} 1616}
1558 1617
1559// Signal table 1618// Signal table
1560var signals = [...]string{ 1619var signalList = [...]struct {
1561 1: "hangup", 1620 num syscall.Signal
1562 2: "interrupt", 1621 name string
1563 3: "quit", 1622 desc string
1564 4: "illegal instruction", 1623}{
1565 5: "trace/BPT trap", 1624 {1, "SIGHUP", "hangup"},
1566 6: "abort trap", 1625 {2, "SIGINT", "interrupt"},
1567 7: "EMT trap", 1626 {3, "SIGQUIT", "quit"},
1568 8: "floating point exception", 1627 {4, "SIGILL", "illegal instruction"},
1569 9: "killed", 1628 {5, "SIGTRAP", "trace/BPT trap"},
1570 10: "bus error", 1629 {6, "SIGABRT", "abort trap"},
1571 11: "segmentation fault", 1630 {7, "SIGEMT", "EMT trap"},
1572 12: "bad system call", 1631 {8, "SIGFPE", "floating point exception"},
1573 13: "broken pipe", 1632 {9, "SIGKILL", "killed"},
1574 14: "alarm clock", 1633 {10, "SIGBUS", "bus error"},
1575 15: "terminated", 1634 {11, "SIGSEGV", "segmentation fault"},
1576 16: "urgent I/O condition", 1635 {12, "SIGSYS", "bad system call"},
1577 17: "stopped (signal)", 1636 {13, "SIGPIPE", "broken pipe"},
1578 18: "stopped", 1637 {14, "SIGALRM", "alarm clock"},
1579 19: "continued", 1638 {15, "SIGTERM", "terminated"},
1580 20: "child exited", 1639 {16, "SIGURG", "urgent I/O condition"},
1581 21: "stopped (tty input)", 1640 {17, "SIGSTOP", "suspended (signal)"},
1582 22: "stopped (tty output)", 1641 {18, "SIGTSTP", "suspended"},
1583 23: "I/O possible", 1642 {19, "SIGCONT", "continued"},
1584 24: "cputime limit exceeded", 1643 {20, "SIGCHLD", "child exited"},
1585 25: "filesize limit exceeded", 1644 {21, "SIGTTIN", "stopped (tty input)"},
1586 26: "virtual timer expired", 1645 {22, "SIGTTOU", "stopped (tty output)"},
1587 27: "profiling timer expired", 1646 {23, "SIGIO", "I/O possible"},
1588 28: "window size changes", 1647 {24, "SIGXCPU", "cputime limit exceeded"},
1589 29: "information request", 1648 {25, "SIGXFSZ", "filesize limit exceeded"},
1590 30: "user defined signal 1", 1649 {26, "SIGVTALRM", "virtual timer expired"},
1591 31: "user defined signal 2", 1650 {27, "SIGPROF", "profiling timer expired"},
1592 32: "thread AST", 1651 {28, "SIGWINCH", "window size changes"},
1652 {29, "SIGINFO", "information request"},
1653 {30, "SIGUSR1", "user defined signal 1"},
1654 {31, "SIGUSR2", "user defined signal 2"},
1655 {32, "SIGTHR", "thread AST"},
1593} 1656}
diff --git a/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
index 09eedb0..22569db 100644
--- a/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
@@ -996,6 +996,39 @@ const (
996 SO_USELOOPBACK = 0x40 996 SO_USELOOPBACK = 0x40
997 SO_VRRP = 0x1017 997 SO_VRRP = 0x1017
998 SO_WROFF = 0x2 998 SO_WROFF = 0x2
999 S_ENFMT = 0x400
1000 S_IAMB = 0x1ff
1001 S_IEXEC = 0x40
1002 S_IFBLK = 0x6000
1003 S_IFCHR = 0x2000
1004 S_IFDIR = 0x4000
1005 S_IFDOOR = 0xd000
1006 S_IFIFO = 0x1000
1007 S_IFLNK = 0xa000
1008 S_IFMT = 0xf000
1009 S_IFNAM = 0x5000
1010 S_IFPORT = 0xe000
1011 S_IFREG = 0x8000
1012 S_IFSOCK = 0xc000
1013 S_INSEM = 0x1
1014 S_INSHD = 0x2
1015 S_IREAD = 0x100
1016 S_IRGRP = 0x20
1017 S_IROTH = 0x4
1018 S_IRUSR = 0x100
1019 S_IRWXG = 0x38
1020 S_IRWXO = 0x7
1021 S_IRWXU = 0x1c0
1022 S_ISGID = 0x400
1023 S_ISUID = 0x800
1024 S_ISVTX = 0x200
1025 S_IWGRP = 0x10
1026 S_IWOTH = 0x2
1027 S_IWRITE = 0x80
1028 S_IWUSR = 0x80
1029 S_IXGRP = 0x8
1030 S_IXOTH = 0x1
1031 S_IXUSR = 0x40
999 TAB0 = 0x0 1032 TAB0 = 0x0
1000 TAB1 = 0x800 1033 TAB1 = 0x800
1001 TAB2 = 0x1000 1034 TAB2 = 0x1000
@@ -1102,6 +1135,8 @@ const (
1102 TIOCSTOP = 0x746f 1135 TIOCSTOP = 0x746f
1103 TIOCSWINSZ = 0x5467 1136 TIOCSWINSZ = 0x5467
1104 TOSTOP = 0x100 1137 TOSTOP = 0x100
1138 UTIME_NOW = -0x1
1139 UTIME_OMIT = -0x2
1105 VCEOF = 0x8 1140 VCEOF = 0x8
1106 VCEOL = 0x9 1141 VCEOL = 0x9
1107 VDISCARD = 0xd 1142 VDISCARD = 0xd
@@ -1319,171 +1354,179 @@ const (
1319) 1354)
1320 1355
1321// Error table 1356// Error table
1322var errors = [...]string{ 1357var errorList = [...]struct {
1323 1: "not owner", 1358 num syscall.Errno
1324 2: "no such file or directory", 1359 name string
1325 3: "no such process", 1360 desc string
1326 4: "interrupted system call", 1361}{
1327 5: "I/O error", 1362 {1, "EPERM", "not owner"},
1328 6: "no such device or address", 1363 {2, "ENOENT", "no such file or directory"},
1329 7: "arg list too long", 1364 {3, "ESRCH", "no such process"},
1330 8: "exec format error", 1365 {4, "EINTR", "interrupted system call"},
1331 9: "bad file number", 1366 {5, "EIO", "I/O error"},
1332 10: "no child processes", 1367 {6, "ENXIO", "no such device or address"},
1333 11: "resource temporarily unavailable", 1368 {7, "E2BIG", "arg list too long"},
1334 12: "not enough space", 1369 {8, "ENOEXEC", "exec format error"},
1335 13: "permission denied", 1370 {9, "EBADF", "bad file number"},
1336 14: "bad address", 1371 {10, "ECHILD", "no child processes"},
1337 15: "block device required", 1372 {11, "EAGAIN", "resource temporarily unavailable"},
1338 16: "device busy", 1373 {12, "ENOMEM", "not enough space"},
1339 17: "file exists", 1374 {13, "EACCES", "permission denied"},
1340 18: "cross-device link", 1375 {14, "EFAULT", "bad address"},
1341 19: "no such device", 1376 {15, "ENOTBLK", "block device required"},
1342 20: "not a directory", 1377 {16, "EBUSY", "device busy"},
1343 21: "is a directory", 1378 {17, "EEXIST", "file exists"},
1344 22: "invalid argument", 1379 {18, "EXDEV", "cross-device link"},
1345 23: "file table overflow", 1380 {19, "ENODEV", "no such device"},
1346 24: "too many open files", 1381 {20, "ENOTDIR", "not a directory"},
1347 25: "inappropriate ioctl for device", 1382 {21, "EISDIR", "is a directory"},
1348 26: "text file busy", 1383 {22, "EINVAL", "invalid argument"},
1349 27: "file too large", 1384 {23, "ENFILE", "file table overflow"},
1350 28: "no space left on device", 1385 {24, "EMFILE", "too many open files"},
1351 29: "illegal seek", 1386 {25, "ENOTTY", "inappropriate ioctl for device"},
1352 30: "read-only file system", 1387 {26, "ETXTBSY", "text file busy"},
1353 31: "too many links", 1388 {27, "EFBIG", "file too large"},
1354 32: "broken pipe", 1389 {28, "ENOSPC", "no space left on device"},
1355 33: "argument out of domain", 1390 {29, "ESPIPE", "illegal seek"},
1356 34: "result too large", 1391 {30, "EROFS", "read-only file system"},
1357 35: "no message of desired type", 1392 {31, "EMLINK", "too many links"},
1358 36: "identifier removed", 1393 {32, "EPIPE", "broken pipe"},
1359 37: "channel number out of range", 1394 {33, "EDOM", "argument out of domain"},
1360 38: "level 2 not synchronized", 1395 {34, "ERANGE", "result too large"},
1361 39: "level 3 halted", 1396 {35, "ENOMSG", "no message of desired type"},
1362 40: "level 3 reset", 1397 {36, "EIDRM", "identifier removed"},
1363 41: "link number out of range", 1398 {37, "ECHRNG", "channel number out of range"},
1364 42: "protocol driver not attached", 1399 {38, "EL2NSYNC", "level 2 not synchronized"},
1365 43: "no CSI structure available", 1400 {39, "EL3HLT", "level 3 halted"},
1366 44: "level 2 halted", 1401 {40, "EL3RST", "level 3 reset"},
1367 45: "deadlock situation detected/avoided", 1402 {41, "ELNRNG", "link number out of range"},
1368 46: "no record locks available", 1403 {42, "EUNATCH", "protocol driver not attached"},
1369 47: "operation canceled", 1404 {43, "ENOCSI", "no CSI structure available"},
1370 48: "operation not supported", 1405 {44, "EL2HLT", "level 2 halted"},
1371 49: "disc quota exceeded", 1406 {45, "EDEADLK", "deadlock situation detected/avoided"},
1372 50: "bad exchange descriptor", 1407 {46, "ENOLCK", "no record locks available"},
1373 51: "bad request descriptor", 1408 {47, "ECANCELED", "operation canceled"},
1374 52: "message tables full", 1409 {48, "ENOTSUP", "operation not supported"},
1375 53: "anode table overflow", 1410 {49, "EDQUOT", "disc quota exceeded"},
1376 54: "bad request code", 1411 {50, "EBADE", "bad exchange descriptor"},
1377 55: "invalid slot", 1412 {51, "EBADR", "bad request descriptor"},
1378 56: "file locking deadlock", 1413 {52, "EXFULL", "message tables full"},
1379 57: "bad font file format", 1414 {53, "ENOANO", "anode table overflow"},
1380 58: "owner of the lock died", 1415 {54, "EBADRQC", "bad request code"},
1381 59: "lock is not recoverable", 1416 {55, "EBADSLT", "invalid slot"},
1382 60: "not a stream device", 1417 {56, "EDEADLOCK", "file locking deadlock"},
1383 61: "no data available", 1418 {57, "EBFONT", "bad font file format"},
1384 62: "timer expired", 1419 {58, "EOWNERDEAD", "owner of the lock died"},
1385 63: "out of stream resources", 1420 {59, "ENOTRECOVERABLE", "lock is not recoverable"},
1386 64: "machine is not on the network", 1421 {60, "ENOSTR", "not a stream device"},
1387 65: "package not installed", 1422 {61, "ENODATA", "no data available"},
1388 66: "object is remote", 1423 {62, "ETIME", "timer expired"},
1389 67: "link has been severed", 1424 {63, "ENOSR", "out of stream resources"},
1390 68: "advertise error", 1425 {64, "ENONET", "machine is not on the network"},
1391 69: "srmount error", 1426 {65, "ENOPKG", "package not installed"},
1392 70: "communication error on send", 1427 {66, "EREMOTE", "object is remote"},
1393 71: "protocol error", 1428 {67, "ENOLINK", "link has been severed"},
1394 72: "locked lock was unmapped ", 1429 {68, "EADV", "advertise error"},
1395 73: "facility is not active", 1430 {69, "ESRMNT", "srmount error"},
1396 74: "multihop attempted", 1431 {70, "ECOMM", "communication error on send"},
1397 77: "not a data message", 1432 {71, "EPROTO", "protocol error"},
1398 78: "file name too long", 1433 {72, "ELOCKUNMAPPED", "locked lock was unmapped "},
1399 79: "value too large for defined data type", 1434 {73, "ENOTACTIVE", "facility is not active"},
1400 80: "name not unique on network", 1435 {74, "EMULTIHOP", "multihop attempted"},
1401 81: "file descriptor in bad state", 1436 {77, "EBADMSG", "not a data message"},
1402 82: "remote address changed", 1437 {78, "ENAMETOOLONG", "file name too long"},
1403 83: "can not access a needed shared library", 1438 {79, "EOVERFLOW", "value too large for defined data type"},
1404 84: "accessing a corrupted shared library", 1439 {80, "ENOTUNIQ", "name not unique on network"},
1405 85: ".lib section in a.out corrupted", 1440 {81, "EBADFD", "file descriptor in bad state"},
1406 86: "attempting to link in more shared libraries than system limit", 1441 {82, "EREMCHG", "remote address changed"},
1407 87: "can not exec a shared library directly", 1442 {83, "ELIBACC", "can not access a needed shared library"},
1408 88: "illegal byte sequence", 1443 {84, "ELIBBAD", "accessing a corrupted shared library"},
1409 89: "operation not applicable", 1444 {85, "ELIBSCN", ".lib section in a.out corrupted"},
1410 90: "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS", 1445 {86, "ELIBMAX", "attempting to link in more shared libraries than system limit"},
1411 91: "error 91", 1446 {87, "ELIBEXEC", "can not exec a shared library directly"},
1412 92: "error 92", 1447 {88, "EILSEQ", "illegal byte sequence"},
1413 93: "directory not empty", 1448 {89, "ENOSYS", "operation not applicable"},
1414 94: "too many users", 1449 {90, "ELOOP", "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS"},
1415 95: "socket operation on non-socket", 1450 {91, "ERESTART", "error 91"},
1416 96: "destination address required", 1451 {92, "ESTRPIPE", "error 92"},
1417 97: "message too long", 1452 {93, "ENOTEMPTY", "directory not empty"},
1418 98: "protocol wrong type for socket", 1453 {94, "EUSERS", "too many users"},
1419 99: "option not supported by protocol", 1454 {95, "ENOTSOCK", "socket operation on non-socket"},
1420 120: "protocol not supported", 1455 {96, "EDESTADDRREQ", "destination address required"},
1421 121: "socket type not supported", 1456 {97, "EMSGSIZE", "message too long"},
1422 122: "operation not supported on transport endpoint", 1457 {98, "EPROTOTYPE", "protocol wrong type for socket"},
1423 123: "protocol family not supported", 1458 {99, "ENOPROTOOPT", "option not supported by protocol"},
1424 124: "address family not supported by protocol family", 1459 {120, "EPROTONOSUPPORT", "protocol not supported"},
1425 125: "address already in use", 1460 {121, "ESOCKTNOSUPPORT", "socket type not supported"},
1426 126: "cannot assign requested address", 1461 {122, "EOPNOTSUPP", "operation not supported on transport endpoint"},
1427 127: "network is down", 1462 {123, "EPFNOSUPPORT", "protocol family not supported"},
1428 128: "network is unreachable", 1463 {124, "EAFNOSUPPORT", "address family not supported by protocol family"},
1429 129: "network dropped connection because of reset", 1464 {125, "EADDRINUSE", "address already in use"},
1430 130: "software caused connection abort", 1465 {126, "EADDRNOTAVAIL", "cannot assign requested address"},
1431 131: "connection reset by peer", 1466 {127, "ENETDOWN", "network is down"},
1432 132: "no buffer space available", 1467 {128, "ENETUNREACH", "network is unreachable"},
1433 133: "transport endpoint is already connected", 1468 {129, "ENETRESET", "network dropped connection because of reset"},
1434 134: "transport endpoint is not connected", 1469 {130, "ECONNABORTED", "software caused connection abort"},
1435 143: "cannot send after socket shutdown", 1470 {131, "ECONNRESET", "connection reset by peer"},
1436 144: "too many references: cannot splice", 1471 {132, "ENOBUFS", "no buffer space available"},
1437 145: "connection timed out", 1472 {133, "EISCONN", "transport endpoint is already connected"},
1438 146: "connection refused", 1473 {134, "ENOTCONN", "transport endpoint is not connected"},
1439 147: "host is down", 1474 {143, "ESHUTDOWN", "cannot send after socket shutdown"},
1440 148: "no route to host", 1475 {144, "ETOOMANYREFS", "too many references: cannot splice"},
1441 149: "operation already in progress", 1476 {145, "ETIMEDOUT", "connection timed out"},
1442 150: "operation now in progress", 1477 {146, "ECONNREFUSED", "connection refused"},
1443 151: "stale NFS file handle", 1478 {147, "EHOSTDOWN", "host is down"},
1479 {148, "EHOSTUNREACH", "no route to host"},
1480 {149, "EALREADY", "operation already in progress"},
1481 {150, "EINPROGRESS", "operation now in progress"},
1482 {151, "ESTALE", "stale NFS file handle"},
1444} 1483}
1445 1484
1446// Signal table 1485// Signal table
1447var signals = [...]string{ 1486var signalList = [...]struct {
1448 1: "hangup", 1487 num syscall.Signal
1449 2: "interrupt", 1488 name string
1450 3: "quit", 1489 desc string
1451 4: "illegal Instruction", 1490}{
1452 5: "trace/Breakpoint Trap", 1491 {1, "SIGHUP", "hangup"},
1453 6: "abort", 1492 {2, "SIGINT", "interrupt"},
1454 7: "emulation Trap", 1493 {3, "SIGQUIT", "quit"},
1455 8: "arithmetic Exception", 1494 {4, "SIGILL", "illegal Instruction"},
1456 9: "killed", 1495 {5, "SIGTRAP", "trace/Breakpoint Trap"},
1457 10: "bus Error", 1496 {6, "SIGABRT", "abort"},
1458 11: "segmentation Fault", 1497 {7, "SIGEMT", "emulation Trap"},
1459 12: "bad System Call", 1498 {8, "SIGFPE", "arithmetic Exception"},
1460 13: "broken Pipe", 1499 {9, "SIGKILL", "killed"},
1461 14: "alarm Clock", 1500 {10, "SIGBUS", "bus Error"},
1462 15: "terminated", 1501 {11, "SIGSEGV", "segmentation Fault"},
1463 16: "user Signal 1", 1502 {12, "SIGSYS", "bad System Call"},
1464 17: "user Signal 2", 1503 {13, "SIGPIPE", "broken Pipe"},
1465 18: "child Status Changed", 1504 {14, "SIGALRM", "alarm Clock"},
1466 19: "power-Fail/Restart", 1505 {15, "SIGTERM", "terminated"},
1467 20: "window Size Change", 1506 {16, "SIGUSR1", "user Signal 1"},
1468 21: "urgent Socket Condition", 1507 {17, "SIGUSR2", "user Signal 2"},
1469 22: "pollable Event", 1508 {18, "SIGCHLD", "child Status Changed"},
1470 23: "stopped (signal)", 1509 {19, "SIGPWR", "power-Fail/Restart"},
1471 24: "stopped (user)", 1510 {20, "SIGWINCH", "window Size Change"},
1472 25: "continued", 1511 {21, "SIGURG", "urgent Socket Condition"},
1473 26: "stopped (tty input)", 1512 {22, "SIGIO", "pollable Event"},
1474 27: "stopped (tty output)", 1513 {23, "SIGSTOP", "stopped (signal)"},
1475 28: "virtual Timer Expired", 1514 {24, "SIGTSTP", "stopped (user)"},
1476 29: "profiling Timer Expired", 1515 {25, "SIGCONT", "continued"},
1477 30: "cpu Limit Exceeded", 1516 {26, "SIGTTIN", "stopped (tty input)"},
1478 31: "file Size Limit Exceeded", 1517 {27, "SIGTTOU", "stopped (tty output)"},
1479 32: "no runnable lwp", 1518 {28, "SIGVTALRM", "virtual Timer Expired"},
1480 33: "inter-lwp signal", 1519 {29, "SIGPROF", "profiling Timer Expired"},
1481 34: "checkpoint Freeze", 1520 {30, "SIGXCPU", "cpu Limit Exceeded"},
1482 35: "checkpoint Thaw", 1521 {31, "SIGXFSZ", "file Size Limit Exceeded"},
1483 36: "thread Cancellation", 1522 {32, "SIGWAITING", "no runnable lwp"},
1484 37: "resource Lost", 1523 {33, "SIGLWP", "inter-lwp signal"},
1485 38: "resource Control Exceeded", 1524 {34, "SIGFREEZE", "checkpoint Freeze"},
1486 39: "reserved for JVM 1", 1525 {35, "SIGTHAW", "checkpoint Thaw"},
1487 40: "reserved for JVM 2", 1526 {36, "SIGCANCEL", "thread Cancellation"},
1488 41: "information Request", 1527 {37, "SIGLOST", "resource Lost"},
1528 {38, "SIGXRES", "resource Control Exceeded"},
1529 {39, "SIGJVM1", "reserved for JVM 1"},
1530 {40, "SIGJVM2", "reserved for JVM 2"},
1531 {41, "SIGINFO", "information Request"},
1489} 1532}
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
new file mode 100644
index 0000000..ab2f761
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
@@ -0,0 +1,1519 @@
1// mksyscall_aix.pl -aix -tags aix,ppc syscall_aix.go syscall_aix_ppc.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build aix,ppc
5
6package unix
7
8/*
9#include <stdint.h>
10int utimes(uintptr_t, uintptr_t);
11int utimensat(int, uintptr_t, uintptr_t, int);
12int getcwd(uintptr_t, size_t);
13int accept(int, uintptr_t, uintptr_t);
14int getdirent(int, uintptr_t, size_t);
15int wait4(int, uintptr_t, int, uintptr_t);
16int ioctl(int, int, uintptr_t);
17int fcntl(uintptr_t, int, uintptr_t);
18int acct(uintptr_t);
19int chdir(uintptr_t);
20int chroot(uintptr_t);
21int close(int);
22int dup(int);
23int dup3(int, int, int);
24void exit(int);
25int faccessat(int, uintptr_t, unsigned int, int);
26int fallocate(int, unsigned int, long long, long long);
27int fchdir(int);
28int fchmod(int, unsigned int);
29int fchmodat(int, uintptr_t, unsigned int, int);
30int fchownat(int, uintptr_t, int, int, int);
31int fdatasync(int);
32int fsync(int);
33int getpgid(int);
34int getpgrp();
35int getpid();
36int getppid();
37int getpriority(int, int);
38int getrusage(int, uintptr_t);
39int getsid(int);
40int kill(int, int);
41int syslog(int, uintptr_t, size_t);
42int mkdir(int, uintptr_t, unsigned int);
43int mkdirat(int, uintptr_t, unsigned int);
44int mkfifo(uintptr_t, unsigned int);
45int mknod(uintptr_t, unsigned int, int);
46int mknodat(int, uintptr_t, unsigned int, int);
47int nanosleep(uintptr_t, uintptr_t);
48int open64(uintptr_t, int, unsigned int);
49int openat(int, uintptr_t, int, unsigned int);
50int read(int, uintptr_t, size_t);
51int readlink(uintptr_t, uintptr_t, size_t);
52int removexattr(uintptr_t, uintptr_t);
53int renameat(int, uintptr_t, int, uintptr_t);
54int setdomainname(uintptr_t, size_t);
55int sethostname(uintptr_t, size_t);
56int setpgid(int, int);
57int setsid();
58int settimeofday(uintptr_t);
59int setuid(int);
60int setgid(int);
61int setpriority(int, int, int);
62int statx(int, uintptr_t, int, int, uintptr_t);
63int sync();
64long long tee(int, int, int, int);
65uintptr_t times(uintptr_t);
66int umask(int);
67int uname(uintptr_t);
68int unlink(uintptr_t);
69int unlinkat(int, uintptr_t, int);
70int unshare(int);
71int ustat(int, uintptr_t);
72int write(int, uintptr_t, size_t);
73int dup2(int, int);
74int posix_fadvise64(int, long long, long long, int);
75int fchown(int, int, int);
76int fstat(int, uintptr_t);
77int fstatat(int, uintptr_t, uintptr_t, int);
78int fstatfs(int, uintptr_t);
79int ftruncate(int, long long);
80int getegid();
81int geteuid();
82int getgid();
83int getuid();
84int lchown(uintptr_t, int, int);
85int listen(int, int);
86int lstat(uintptr_t, uintptr_t);
87int pause();
88int pread64(int, uintptr_t, size_t, long long);
89int pwrite64(int, uintptr_t, size_t, long long);
90int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
91int setregid(int, int);
92int setreuid(int, int);
93int shutdown(int, int);
94long long splice(int, uintptr_t, int, uintptr_t, int, int);
95int stat(uintptr_t, uintptr_t);
96int statfs(uintptr_t, uintptr_t);
97int truncate(uintptr_t, long long);
98int bind(int, uintptr_t, uintptr_t);
99int connect(int, uintptr_t, uintptr_t);
100int getgroups(int, uintptr_t);
101int setgroups(int, uintptr_t);
102int getsockopt(int, int, int, uintptr_t, uintptr_t);
103int setsockopt(int, int, int, uintptr_t, uintptr_t);
104int socket(int, int, int);
105int socketpair(int, int, int, uintptr_t);
106int getpeername(int, uintptr_t, uintptr_t);
107int getsockname(int, uintptr_t, uintptr_t);
108int recvfrom(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
109int sendto(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
110int recvmsg(int, uintptr_t, int);
111int sendmsg(int, uintptr_t, int);
112int munmap(uintptr_t, uintptr_t);
113int madvise(uintptr_t, size_t, int);
114int mprotect(uintptr_t, size_t, int);
115int mlock(uintptr_t, size_t);
116int mlockall(int);
117int msync(uintptr_t, size_t, int);
118int munlock(uintptr_t, size_t);
119int munlockall();
120int pipe(uintptr_t);
121int pipe2(uintptr_t, int);
122int poll(uintptr_t, int, int);
123int gettimeofday(uintptr_t, uintptr_t);
124int time(uintptr_t);
125int utime(uintptr_t, uintptr_t);
126int getrlimit64(int, uintptr_t);
127int setrlimit64(int, uintptr_t);
128long long lseek64(int, long long, int);
129uintptr_t mmap(uintptr_t, uintptr_t, int, int, int, long long);
130
131*/
132import "C"
133import (
134 "syscall"
135 "unsafe"
136)
137
138// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
139
140func utimes(path string, times *[2]Timeval) (err error) {
141 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
142 r0, er := C.utimes(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(times))))
143 if r0 == -1 && er != nil {
144 err = er
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
152 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
153 r0, er := C.utimensat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(times))), C.int(flag))
154 if r0 == -1 && er != nil {
155 err = er
156 }
157 return
158}
159
160// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
161
162func getcwd(buf []byte) (err error) {
163 var _p0 *byte
164 if len(buf) > 0 {
165 _p0 = &buf[0]
166 }
167 var _p1 int
168 _p1 = len(buf)
169 r0, er := C.getcwd(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
170 if r0 == -1 && er != nil {
171 err = er
172 }
173 return
174}
175
176// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
177
178func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
179 r0, er := C.accept(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen))))
180 fd = int(r0)
181 if r0 == -1 && er != nil {
182 err = er
183 }
184 return
185}
186
187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
188
189func getdirent(fd int, buf []byte) (n int, err error) {
190 var _p0 *byte
191 if len(buf) > 0 {
192 _p0 = &buf[0]
193 }
194 var _p1 int
195 _p1 = len(buf)
196 r0, er := C.getdirent(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
197 n = int(r0)
198 if r0 == -1 && er != nil {
199 err = er
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error) {
207 r0, er := C.wait4(C.int(pid), C.uintptr_t(uintptr(unsafe.Pointer(status))), C.int(options), C.uintptr_t(uintptr(unsafe.Pointer(rusage))))
208 wpid = Pid_t(r0)
209 if r0 == -1 && er != nil {
210 err = er
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func ioctl(fd int, req uint, arg uintptr) (err error) {
218 r0, er := C.ioctl(C.int(fd), C.int(req), C.uintptr_t(arg))
219 if r0 == -1 && er != nil {
220 err = er
221 }
222 return
223}
224
225// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
226
227func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) {
228 r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
229 r = int(r0)
230 if r0 == -1 && er != nil {
231 err = er
232 }
233 return
234}
235
236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
237
238func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) {
239 r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(uintptr(unsafe.Pointer(lk))))
240 if r0 == -1 && er != nil {
241 err = er
242 }
243 return
244}
245
246// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
247
248func Acct(path string) (err error) {
249 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
250 r0, er := C.acct(C.uintptr_t(_p0))
251 if r0 == -1 && er != nil {
252 err = er
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func Chdir(path string) (err error) {
260 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
261 r0, er := C.chdir(C.uintptr_t(_p0))
262 if r0 == -1 && er != nil {
263 err = er
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func Chroot(path string) (err error) {
271 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
272 r0, er := C.chroot(C.uintptr_t(_p0))
273 if r0 == -1 && er != nil {
274 err = er
275 }
276 return
277}
278
279// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
280
281func Close(fd int) (err error) {
282 r0, er := C.close(C.int(fd))
283 if r0 == -1 && er != nil {
284 err = er
285 }
286 return
287}
288
289// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
290
291func Dup(oldfd int) (fd int, err error) {
292 r0, er := C.dup(C.int(oldfd))
293 fd = int(r0)
294 if r0 == -1 && er != nil {
295 err = er
296 }
297 return
298}
299
300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
301
302func Dup3(oldfd int, newfd int, flags int) (err error) {
303 r0, er := C.dup3(C.int(oldfd), C.int(newfd), C.int(flags))
304 if r0 == -1 && er != nil {
305 err = er
306 }
307 return
308}
309
310// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
311
312func Exit(code int) {
313 C.exit(C.int(code))
314 return
315}
316
317// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
318
319func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
320 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
321 r0, er := C.faccessat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags))
322 if r0 == -1 && er != nil {
323 err = er
324 }
325 return
326}
327
328// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
329
330func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
331 r0, er := C.fallocate(C.int(fd), C.uint(mode), C.longlong(off), C.longlong(len))
332 if r0 == -1 && er != nil {
333 err = er
334 }
335 return
336}
337
338// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
339
340func Fchdir(fd int) (err error) {
341 r0, er := C.fchdir(C.int(fd))
342 if r0 == -1 && er != nil {
343 err = er
344 }
345 return
346}
347
348// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
349
350func Fchmod(fd int, mode uint32) (err error) {
351 r0, er := C.fchmod(C.int(fd), C.uint(mode))
352 if r0 == -1 && er != nil {
353 err = er
354 }
355 return
356}
357
358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
359
360func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
361 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
362 r0, er := C.fchmodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags))
363 if r0 == -1 && er != nil {
364 err = er
365 }
366 return
367}
368
369// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
370
371func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
372 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
373 r0, er := C.fchownat(C.int(dirfd), C.uintptr_t(_p0), C.int(uid), C.int(gid), C.int(flags))
374 if r0 == -1 && er != nil {
375 err = er
376 }
377 return
378}
379
380// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
381
382func fcntl(fd int, cmd int, arg int) (val int, err error) {
383 r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
384 val = int(r0)
385 if r0 == -1 && er != nil {
386 err = er
387 }
388 return
389}
390
391// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
392
393func Fdatasync(fd int) (err error) {
394 r0, er := C.fdatasync(C.int(fd))
395 if r0 == -1 && er != nil {
396 err = er
397 }
398 return
399}
400
401// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
402
403func Fsync(fd int) (err error) {
404 r0, er := C.fsync(C.int(fd))
405 if r0 == -1 && er != nil {
406 err = er
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Getpgid(pid int) (pgid int, err error) {
414 r0, er := C.getpgid(C.int(pid))
415 pgid = int(r0)
416 if r0 == -1 && er != nil {
417 err = er
418 }
419 return
420}
421
422// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
423
424func Getpgrp() (pid int) {
425 r0, _ := C.getpgrp()
426 pid = int(r0)
427 return
428}
429
430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
431
432func Getpid() (pid int) {
433 r0, _ := C.getpid()
434 pid = int(r0)
435 return
436}
437
438// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
439
440func Getppid() (ppid int) {
441 r0, _ := C.getppid()
442 ppid = int(r0)
443 return
444}
445
446// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
447
448func Getpriority(which int, who int) (prio int, err error) {
449 r0, er := C.getpriority(C.int(which), C.int(who))
450 prio = int(r0)
451 if r0 == -1 && er != nil {
452 err = er
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func Getrusage(who int, rusage *Rusage) (err error) {
460 r0, er := C.getrusage(C.int(who), C.uintptr_t(uintptr(unsafe.Pointer(rusage))))
461 if r0 == -1 && er != nil {
462 err = er
463 }
464 return
465}
466
467// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
468
469func Getsid(pid int) (sid int, err error) {
470 r0, er := C.getsid(C.int(pid))
471 sid = int(r0)
472 if r0 == -1 && er != nil {
473 err = er
474 }
475 return
476}
477
478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
479
480func Kill(pid int, sig syscall.Signal) (err error) {
481 r0, er := C.kill(C.int(pid), C.int(sig))
482 if r0 == -1 && er != nil {
483 err = er
484 }
485 return
486}
487
488// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
489
490func Klogctl(typ int, buf []byte) (n int, err error) {
491 var _p0 *byte
492 if len(buf) > 0 {
493 _p0 = &buf[0]
494 }
495 var _p1 int
496 _p1 = len(buf)
497 r0, er := C.syslog(C.int(typ), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
498 n = int(r0)
499 if r0 == -1 && er != nil {
500 err = er
501 }
502 return
503}
504
505// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
506
507func Mkdir(dirfd int, path string, mode uint32) (err error) {
508 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
509 r0, er := C.mkdir(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))
510 if r0 == -1 && er != nil {
511 err = er
512 }
513 return
514}
515
516// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
517
518func Mkdirat(dirfd int, path string, mode uint32) (err error) {
519 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
520 r0, er := C.mkdirat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))
521 if r0 == -1 && er != nil {
522 err = er
523 }
524 return
525}
526
527// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
528
529func Mkfifo(path string, mode uint32) (err error) {
530 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
531 r0, er := C.mkfifo(C.uintptr_t(_p0), C.uint(mode))
532 if r0 == -1 && er != nil {
533 err = er
534 }
535 return
536}
537
538// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
539
540func Mknod(path string, mode uint32, dev int) (err error) {
541 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
542 r0, er := C.mknod(C.uintptr_t(_p0), C.uint(mode), C.int(dev))
543 if r0 == -1 && er != nil {
544 err = er
545 }
546 return
547}
548
549// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
550
551func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
552 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
553 r0, er := C.mknodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(dev))
554 if r0 == -1 && er != nil {
555 err = er
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
563 r0, er := C.nanosleep(C.uintptr_t(uintptr(unsafe.Pointer(time))), C.uintptr_t(uintptr(unsafe.Pointer(leftover))))
564 if r0 == -1 && er != nil {
565 err = er
566 }
567 return
568}
569
570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571
572func Open(path string, mode int, perm uint32) (fd int, err error) {
573 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
574 r0, er := C.open64(C.uintptr_t(_p0), C.int(mode), C.uint(perm))
575 fd = int(r0)
576 if r0 == -1 && er != nil {
577 err = er
578 }
579 return
580}
581
582// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
583
584func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
585 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
586 r0, er := C.openat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.uint(mode))
587 fd = int(r0)
588 if r0 == -1 && er != nil {
589 err = er
590 }
591 return
592}
593
594// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
595
596func read(fd int, p []byte) (n int, err error) {
597 var _p0 *byte
598 if len(p) > 0 {
599 _p0 = &p[0]
600 }
601 var _p1 int
602 _p1 = len(p)
603 r0, er := C.read(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
604 n = int(r0)
605 if r0 == -1 && er != nil {
606 err = er
607 }
608 return
609}
610
611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
612
613func Readlink(path string, buf []byte) (n int, err error) {
614 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
615 var _p1 *byte
616 if len(buf) > 0 {
617 _p1 = &buf[0]
618 }
619 var _p2 int
620 _p2 = len(buf)
621 r0, er := C.readlink(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(_p1))), C.size_t(_p2))
622 n = int(r0)
623 if r0 == -1 && er != nil {
624 err = er
625 }
626 return
627}
628
629// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
630
631func Removexattr(path string, attr string) (err error) {
632 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
633 _p1 := uintptr(unsafe.Pointer(C.CString(attr)))
634 r0, er := C.removexattr(C.uintptr_t(_p0), C.uintptr_t(_p1))
635 if r0 == -1 && er != nil {
636 err = er
637 }
638 return
639}
640
641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642
643func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
644 _p0 := uintptr(unsafe.Pointer(C.CString(oldpath)))
645 _p1 := uintptr(unsafe.Pointer(C.CString(newpath)))
646 r0, er := C.renameat(C.int(olddirfd), C.uintptr_t(_p0), C.int(newdirfd), C.uintptr_t(_p1))
647 if r0 == -1 && er != nil {
648 err = er
649 }
650 return
651}
652
653// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
654
655func Setdomainname(p []byte) (err error) {
656 var _p0 *byte
657 if len(p) > 0 {
658 _p0 = &p[0]
659 }
660 var _p1 int
661 _p1 = len(p)
662 r0, er := C.setdomainname(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
663 if r0 == -1 && er != nil {
664 err = er
665 }
666 return
667}
668
669// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
670
671func Sethostname(p []byte) (err error) {
672 var _p0 *byte
673 if len(p) > 0 {
674 _p0 = &p[0]
675 }
676 var _p1 int
677 _p1 = len(p)
678 r0, er := C.sethostname(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
679 if r0 == -1 && er != nil {
680 err = er
681 }
682 return
683}
684
685// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
686
687func Setpgid(pid int, pgid int) (err error) {
688 r0, er := C.setpgid(C.int(pid), C.int(pgid))
689 if r0 == -1 && er != nil {
690 err = er
691 }
692 return
693}
694
695// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
696
697func Setsid() (pid int, err error) {
698 r0, er := C.setsid()
699 pid = int(r0)
700 if r0 == -1 && er != nil {
701 err = er
702 }
703 return
704}
705
706// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
707
708func Settimeofday(tv *Timeval) (err error) {
709 r0, er := C.settimeofday(C.uintptr_t(uintptr(unsafe.Pointer(tv))))
710 if r0 == -1 && er != nil {
711 err = er
712 }
713 return
714}
715
716// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
717
718func Setuid(uid int) (err error) {
719 r0, er := C.setuid(C.int(uid))
720 if r0 == -1 && er != nil {
721 err = er
722 }
723 return
724}
725
726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
727
728func Setgid(uid int) (err error) {
729 r0, er := C.setgid(C.int(uid))
730 if r0 == -1 && er != nil {
731 err = er
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Setpriority(which int, who int, prio int) (err error) {
739 r0, er := C.setpriority(C.int(which), C.int(who), C.int(prio))
740 if r0 == -1 && er != nil {
741 err = er
742 }
743 return
744}
745
746// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
747
748func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
749 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
750 r0, er := C.statx(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.int(mask), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
751 if r0 == -1 && er != nil {
752 err = er
753 }
754 return
755}
756
757// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758
759func Sync() {
760 C.sync()
761 return
762}
763
764// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
765
766func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
767 r0, er := C.tee(C.int(rfd), C.int(wfd), C.int(len), C.int(flags))
768 n = int64(r0)
769 if r0 == -1 && er != nil {
770 err = er
771 }
772 return
773}
774
775// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
776
777func Times(tms *Tms) (ticks uintptr, err error) {
778 r0, er := C.times(C.uintptr_t(uintptr(unsafe.Pointer(tms))))
779 ticks = uintptr(r0)
780 if uintptr(r0) == ^uintptr(0) && er != nil {
781 err = er
782 }
783 return
784}
785
786// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
787
788func Umask(mask int) (oldmask int) {
789 r0, _ := C.umask(C.int(mask))
790 oldmask = int(r0)
791 return
792}
793
794// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
795
796func Uname(buf *Utsname) (err error) {
797 r0, er := C.uname(C.uintptr_t(uintptr(unsafe.Pointer(buf))))
798 if r0 == -1 && er != nil {
799 err = er
800 }
801 return
802}
803
804// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
805
806func Unlink(path string) (err error) {
807 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
808 r0, er := C.unlink(C.uintptr_t(_p0))
809 if r0 == -1 && er != nil {
810 err = er
811 }
812 return
813}
814
815// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
816
817func Unlinkat(dirfd int, path string, flags int) (err error) {
818 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
819 r0, er := C.unlinkat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags))
820 if r0 == -1 && er != nil {
821 err = er
822 }
823 return
824}
825
826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
827
828func Unshare(flags int) (err error) {
829 r0, er := C.unshare(C.int(flags))
830 if r0 == -1 && er != nil {
831 err = er
832 }
833 return
834}
835
836// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
837
838func Ustat(dev int, ubuf *Ustat_t) (err error) {
839 r0, er := C.ustat(C.int(dev), C.uintptr_t(uintptr(unsafe.Pointer(ubuf))))
840 if r0 == -1 && er != nil {
841 err = er
842 }
843 return
844}
845
846// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
847
848func write(fd int, p []byte) (n int, err error) {
849 var _p0 *byte
850 if len(p) > 0 {
851 _p0 = &p[0]
852 }
853 var _p1 int
854 _p1 = len(p)
855 r0, er := C.write(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
856 n = int(r0)
857 if r0 == -1 && er != nil {
858 err = er
859 }
860 return
861}
862
863// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
864
865func readlen(fd int, p *byte, np int) (n int, err error) {
866 r0, er := C.read(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(p))), C.size_t(np))
867 n = int(r0)
868 if r0 == -1 && er != nil {
869 err = er
870 }
871 return
872}
873
874// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
875
876func writelen(fd int, p *byte, np int) (n int, err error) {
877 r0, er := C.write(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(p))), C.size_t(np))
878 n = int(r0)
879 if r0 == -1 && er != nil {
880 err = er
881 }
882 return
883}
884
885// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
886
887func Dup2(oldfd int, newfd int) (err error) {
888 r0, er := C.dup2(C.int(oldfd), C.int(newfd))
889 if r0 == -1 && er != nil {
890 err = er
891 }
892 return
893}
894
895// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
896
897func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
898 r0, er := C.posix_fadvise64(C.int(fd), C.longlong(offset), C.longlong(length), C.int(advice))
899 if r0 == -1 && er != nil {
900 err = er
901 }
902 return
903}
904
905// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
906
907func Fchown(fd int, uid int, gid int) (err error) {
908 r0, er := C.fchown(C.int(fd), C.int(uid), C.int(gid))
909 if r0 == -1 && er != nil {
910 err = er
911 }
912 return
913}
914
915// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
916
917func Fstat(fd int, stat *Stat_t) (err error) {
918 r0, er := C.fstat(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
919 if r0 == -1 && er != nil {
920 err = er
921 }
922 return
923}
924
925// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
926
927func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
928 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
929 r0, er := C.fstatat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))), C.int(flags))
930 if r0 == -1 && er != nil {
931 err = er
932 }
933 return
934}
935
936// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
937
938func Fstatfs(fd int, buf *Statfs_t) (err error) {
939 r0, er := C.fstatfs(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(buf))))
940 if r0 == -1 && er != nil {
941 err = er
942 }
943 return
944}
945
946// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
947
948func Ftruncate(fd int, length int64) (err error) {
949 r0, er := C.ftruncate(C.int(fd), C.longlong(length))
950 if r0 == -1 && er != nil {
951 err = er
952 }
953 return
954}
955
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957
958func Getegid() (egid int) {
959 r0, _ := C.getegid()
960 egid = int(r0)
961 return
962}
963
964// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
965
966func Geteuid() (euid int) {
967 r0, _ := C.geteuid()
968 euid = int(r0)
969 return
970}
971
972// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
973
974func Getgid() (gid int) {
975 r0, _ := C.getgid()
976 gid = int(r0)
977 return
978}
979
980// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
981
982func Getuid() (uid int) {
983 r0, _ := C.getuid()
984 uid = int(r0)
985 return
986}
987
988// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
989
990func Lchown(path string, uid int, gid int) (err error) {
991 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
992 r0, er := C.lchown(C.uintptr_t(_p0), C.int(uid), C.int(gid))
993 if r0 == -1 && er != nil {
994 err = er
995 }
996 return
997}
998
999// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1000
1001func Listen(s int, n int) (err error) {
1002 r0, er := C.listen(C.int(s), C.int(n))
1003 if r0 == -1 && er != nil {
1004 err = er
1005 }
1006 return
1007}
1008
1009// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1010
1011func Lstat(path string, stat *Stat_t) (err error) {
1012 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1013 r0, er := C.lstat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
1014 if r0 == -1 && er != nil {
1015 err = er
1016 }
1017 return
1018}
1019
1020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1021
1022func Pause() (err error) {
1023 r0, er := C.pause()
1024 if r0 == -1 && er != nil {
1025 err = er
1026 }
1027 return
1028}
1029
1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1031
1032func Pread(fd int, p []byte, offset int64) (n int, err error) {
1033 var _p0 *byte
1034 if len(p) > 0 {
1035 _p0 = &p[0]
1036 }
1037 var _p1 int
1038 _p1 = len(p)
1039 r0, er := C.pread64(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.longlong(offset))
1040 n = int(r0)
1041 if r0 == -1 && er != nil {
1042 err = er
1043 }
1044 return
1045}
1046
1047// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1048
1049func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1050 var _p0 *byte
1051 if len(p) > 0 {
1052 _p0 = &p[0]
1053 }
1054 var _p1 int
1055 _p1 = len(p)
1056 r0, er := C.pwrite64(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.longlong(offset))
1057 n = int(r0)
1058 if r0 == -1 && er != nil {
1059 err = er
1060 }
1061 return
1062}
1063
1064// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1065
1066func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
1067 r0, er := C.pselect(C.int(nfd), C.uintptr_t(uintptr(unsafe.Pointer(r))), C.uintptr_t(uintptr(unsafe.Pointer(w))), C.uintptr_t(uintptr(unsafe.Pointer(e))), C.uintptr_t(uintptr(unsafe.Pointer(timeout))), C.uintptr_t(uintptr(unsafe.Pointer(sigmask))))
1068 n = int(r0)
1069 if r0 == -1 && er != nil {
1070 err = er
1071 }
1072 return
1073}
1074
1075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1076
1077func Setregid(rgid int, egid int) (err error) {
1078 r0, er := C.setregid(C.int(rgid), C.int(egid))
1079 if r0 == -1 && er != nil {
1080 err = er
1081 }
1082 return
1083}
1084
1085// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1086
1087func Setreuid(ruid int, euid int) (err error) {
1088 r0, er := C.setreuid(C.int(ruid), C.int(euid))
1089 if r0 == -1 && er != nil {
1090 err = er
1091 }
1092 return
1093}
1094
1095// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1096
1097func Shutdown(fd int, how int) (err error) {
1098 r0, er := C.shutdown(C.int(fd), C.int(how))
1099 if r0 == -1 && er != nil {
1100 err = er
1101 }
1102 return
1103}
1104
1105// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1106
1107func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
1108 r0, er := C.splice(C.int(rfd), C.uintptr_t(uintptr(unsafe.Pointer(roff))), C.int(wfd), C.uintptr_t(uintptr(unsafe.Pointer(woff))), C.int(len), C.int(flags))
1109 n = int64(r0)
1110 if r0 == -1 && er != nil {
1111 err = er
1112 }
1113 return
1114}
1115
1116// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1117
1118func Stat(path string, stat *Stat_t) (err error) {
1119 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1120 r0, er := C.stat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
1121 if r0 == -1 && er != nil {
1122 err = er
1123 }
1124 return
1125}
1126
1127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1128
1129func Statfs(path string, buf *Statfs_t) (err error) {
1130 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1131 r0, er := C.statfs(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(buf))))
1132 if r0 == -1 && er != nil {
1133 err = er
1134 }
1135 return
1136}
1137
1138// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1139
1140func Truncate(path string, length int64) (err error) {
1141 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1142 r0, er := C.truncate(C.uintptr_t(_p0), C.longlong(length))
1143 if r0 == -1 && er != nil {
1144 err = er
1145 }
1146 return
1147}
1148
1149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1150
1151func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1152 r0, er := C.bind(C.int(s), C.uintptr_t(uintptr(addr)), C.uintptr_t(uintptr(addrlen)))
1153 if r0 == -1 && er != nil {
1154 err = er
1155 }
1156 return
1157}
1158
1159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1160
1161func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1162 r0, er := C.connect(C.int(s), C.uintptr_t(uintptr(addr)), C.uintptr_t(uintptr(addrlen)))
1163 if r0 == -1 && er != nil {
1164 err = er
1165 }
1166 return
1167}
1168
1169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170
1171func getgroups(n int, list *_Gid_t) (nn int, err error) {
1172 r0, er := C.getgroups(C.int(n), C.uintptr_t(uintptr(unsafe.Pointer(list))))
1173 nn = int(r0)
1174 if r0 == -1 && er != nil {
1175 err = er
1176 }
1177 return
1178}
1179
1180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181
1182func setgroups(n int, list *_Gid_t) (err error) {
1183 r0, er := C.setgroups(C.int(n), C.uintptr_t(uintptr(unsafe.Pointer(list))))
1184 if r0 == -1 && er != nil {
1185 err = er
1186 }
1187 return
1188}
1189
1190// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1191
1192func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1193 r0, er := C.getsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(uintptr(val)), C.uintptr_t(uintptr(unsafe.Pointer(vallen))))
1194 if r0 == -1 && er != nil {
1195 err = er
1196 }
1197 return
1198}
1199
1200// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1201
1202func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1203 r0, er := C.setsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(uintptr(val)), C.uintptr_t(vallen))
1204 if r0 == -1 && er != nil {
1205 err = er
1206 }
1207 return
1208}
1209
1210// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1211
1212func socket(domain int, typ int, proto int) (fd int, err error) {
1213 r0, er := C.socket(C.int(domain), C.int(typ), C.int(proto))
1214 fd = int(r0)
1215 if r0 == -1 && er != nil {
1216 err = er
1217 }
1218 return
1219}
1220
1221// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1222
1223func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1224 r0, er := C.socketpair(C.int(domain), C.int(typ), C.int(proto), C.uintptr_t(uintptr(unsafe.Pointer(fd))))
1225 if r0 == -1 && er != nil {
1226 err = er
1227 }
1228 return
1229}
1230
1231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1232
1233func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1234 r0, er := C.getpeername(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen))))
1235 if r0 == -1 && er != nil {
1236 err = er
1237 }
1238 return
1239}
1240
1241// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1242
1243func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1244 r0, er := C.getsockname(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen))))
1245 if r0 == -1 && er != nil {
1246 err = er
1247 }
1248 return
1249}
1250
1251// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1252
1253func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1254 var _p0 *byte
1255 if len(p) > 0 {
1256 _p0 = &p[0]
1257 }
1258 var _p1 int
1259 _p1 = len(p)
1260 r0, er := C.recvfrom(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags), C.uintptr_t(uintptr(unsafe.Pointer(from))), C.uintptr_t(uintptr(unsafe.Pointer(fromlen))))
1261 n = int(r0)
1262 if r0 == -1 && er != nil {
1263 err = er
1264 }
1265 return
1266}
1267
1268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1269
1270func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1271 var _p0 *byte
1272 if len(buf) > 0 {
1273 _p0 = &buf[0]
1274 }
1275 var _p1 int
1276 _p1 = len(buf)
1277 r0, er := C.sendto(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags), C.uintptr_t(uintptr(to)), C.uintptr_t(uintptr(addrlen)))
1278 if r0 == -1 && er != nil {
1279 err = er
1280 }
1281 return
1282}
1283
1284// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1285
1286func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1287 r0, er := C.recvmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags))
1288 n = int(r0)
1289 if r0 == -1 && er != nil {
1290 err = er
1291 }
1292 return
1293}
1294
1295// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1296
1297func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1298 r0, er := C.sendmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags))
1299 n = int(r0)
1300 if r0 == -1 && er != nil {
1301 err = er
1302 }
1303 return
1304}
1305
1306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307
1308func munmap(addr uintptr, length uintptr) (err error) {
1309 r0, er := C.munmap(C.uintptr_t(addr), C.uintptr_t(length))
1310 if r0 == -1 && er != nil {
1311 err = er
1312 }
1313 return
1314}
1315
1316// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1317
1318func Madvise(b []byte, advice int) (err error) {
1319 var _p0 *byte
1320 if len(b) > 0 {
1321 _p0 = &b[0]
1322 }
1323 var _p1 int
1324 _p1 = len(b)
1325 r0, er := C.madvise(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(advice))
1326 if r0 == -1 && er != nil {
1327 err = er
1328 }
1329 return
1330}
1331
1332// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1333
1334func Mprotect(b []byte, prot int) (err error) {
1335 var _p0 *byte
1336 if len(b) > 0 {
1337 _p0 = &b[0]
1338 }
1339 var _p1 int
1340 _p1 = len(b)
1341 r0, er := C.mprotect(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(prot))
1342 if r0 == -1 && er != nil {
1343 err = er
1344 }
1345 return
1346}
1347
1348// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1349
1350func Mlock(b []byte) (err error) {
1351 var _p0 *byte
1352 if len(b) > 0 {
1353 _p0 = &b[0]
1354 }
1355 var _p1 int
1356 _p1 = len(b)
1357 r0, er := C.mlock(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
1358 if r0 == -1 && er != nil {
1359 err = er
1360 }
1361 return
1362}
1363
1364// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1365
1366func Mlockall(flags int) (err error) {
1367 r0, er := C.mlockall(C.int(flags))
1368 if r0 == -1 && er != nil {
1369 err = er
1370 }
1371 return
1372}
1373
1374// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1375
1376func Msync(b []byte, flags int) (err error) {
1377 var _p0 *byte
1378 if len(b) > 0 {
1379 _p0 = &b[0]
1380 }
1381 var _p1 int
1382 _p1 = len(b)
1383 r0, er := C.msync(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags))
1384 if r0 == -1 && er != nil {
1385 err = er
1386 }
1387 return
1388}
1389
1390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1391
1392func Munlock(b []byte) (err error) {
1393 var _p0 *byte
1394 if len(b) > 0 {
1395 _p0 = &b[0]
1396 }
1397 var _p1 int
1398 _p1 = len(b)
1399 r0, er := C.munlock(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
1400 if r0 == -1 && er != nil {
1401 err = er
1402 }
1403 return
1404}
1405
1406// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1407
1408func Munlockall() (err error) {
1409 r0, er := C.munlockall()
1410 if r0 == -1 && er != nil {
1411 err = er
1412 }
1413 return
1414}
1415
1416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1417
1418func pipe(p *[2]_C_int) (err error) {
1419 r0, er := C.pipe(C.uintptr_t(uintptr(unsafe.Pointer(p))))
1420 if r0 == -1 && er != nil {
1421 err = er
1422 }
1423 return
1424}
1425
1426// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1427
1428func pipe2(p *[2]_C_int, flags int) (err error) {
1429 r0, er := C.pipe2(C.uintptr_t(uintptr(unsafe.Pointer(p))), C.int(flags))
1430 if r0 == -1 && er != nil {
1431 err = er
1432 }
1433 return
1434}
1435
1436// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1437
1438func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
1439 r0, er := C.poll(C.uintptr_t(uintptr(unsafe.Pointer(fds))), C.int(nfds), C.int(timeout))
1440 n = int(r0)
1441 if r0 == -1 && er != nil {
1442 err = er
1443 }
1444 return
1445}
1446
1447// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1448
1449func gettimeofday(tv *Timeval, tzp *Timezone) (err error) {
1450 r0, er := C.gettimeofday(C.uintptr_t(uintptr(unsafe.Pointer(tv))), C.uintptr_t(uintptr(unsafe.Pointer(tzp))))
1451 if r0 == -1 && er != nil {
1452 err = er
1453 }
1454 return
1455}
1456
1457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1458
1459func Time(t *Time_t) (tt Time_t, err error) {
1460 r0, er := C.time(C.uintptr_t(uintptr(unsafe.Pointer(t))))
1461 tt = Time_t(r0)
1462 if r0 == -1 && er != nil {
1463 err = er
1464 }
1465 return
1466}
1467
1468// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1469
1470func Utime(path string, buf *Utimbuf) (err error) {
1471 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1472 r0, er := C.utime(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(buf))))
1473 if r0 == -1 && er != nil {
1474 err = er
1475 }
1476 return
1477}
1478
1479// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1480
1481func Getrlimit(resource int, rlim *Rlimit) (err error) {
1482 r0, er := C.getrlimit64(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim))))
1483 if r0 == -1 && er != nil {
1484 err = er
1485 }
1486 return
1487}
1488
1489// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1490
1491func Setrlimit(resource int, rlim *Rlimit) (err error) {
1492 r0, er := C.setrlimit64(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim))))
1493 if r0 == -1 && er != nil {
1494 err = er
1495 }
1496 return
1497}
1498
1499// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1500
1501func Seek(fd int, offset int64, whence int) (off int64, err error) {
1502 r0, er := C.lseek64(C.int(fd), C.longlong(offset), C.int(whence))
1503 off = int64(r0)
1504 if r0 == -1 && er != nil {
1505 err = er
1506 }
1507 return
1508}
1509
1510// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1511
1512func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
1513 r0, er := C.mmap(C.uintptr_t(addr), C.uintptr_t(length), C.int(prot), C.int(flags), C.int(fd), C.longlong(offset))
1514 xaddr = uintptr(r0)
1515 if uintptr(r0) == ^uintptr(0) && er != nil {
1516 err = er
1517 }
1518 return
1519}
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
new file mode 100644
index 0000000..2e4f93f
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
@@ -0,0 +1,1519 @@
1// mksyscall_aix.pl -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build aix,ppc64
5
6package unix
7
8/*
9#include <stdint.h>
10int utimes(uintptr_t, uintptr_t);
11int utimensat(int, uintptr_t, uintptr_t, int);
12int getcwd(uintptr_t, size_t);
13int accept(int, uintptr_t, uintptr_t);
14int getdirent(int, uintptr_t, size_t);
15int wait4(int, uintptr_t, int, uintptr_t);
16int ioctl(int, int, uintptr_t);
17int fcntl(uintptr_t, int, uintptr_t);
18int acct(uintptr_t);
19int chdir(uintptr_t);
20int chroot(uintptr_t);
21int close(int);
22int dup(int);
23int dup3(int, int, int);
24void exit(int);
25int faccessat(int, uintptr_t, unsigned int, int);
26int fallocate(int, unsigned int, long long, long long);
27int fchdir(int);
28int fchmod(int, unsigned int);
29int fchmodat(int, uintptr_t, unsigned int, int);
30int fchownat(int, uintptr_t, int, int, int);
31int fdatasync(int);
32int fsync(int);
33int getpgid(int);
34int getpgrp();
35int getpid();
36int getppid();
37int getpriority(int, int);
38int getrusage(int, uintptr_t);
39int getsid(int);
40int kill(int, int);
41int syslog(int, uintptr_t, size_t);
42int mkdir(int, uintptr_t, unsigned int);
43int mkdirat(int, uintptr_t, unsigned int);
44int mkfifo(uintptr_t, unsigned int);
45int mknod(uintptr_t, unsigned int, int);
46int mknodat(int, uintptr_t, unsigned int, int);
47int nanosleep(uintptr_t, uintptr_t);
48int open64(uintptr_t, int, unsigned int);
49int openat(int, uintptr_t, int, unsigned int);
50int read(int, uintptr_t, size_t);
51int readlink(uintptr_t, uintptr_t, size_t);
52int removexattr(uintptr_t, uintptr_t);
53int renameat(int, uintptr_t, int, uintptr_t);
54int setdomainname(uintptr_t, size_t);
55int sethostname(uintptr_t, size_t);
56int setpgid(int, int);
57int setsid();
58int settimeofday(uintptr_t);
59int setuid(int);
60int setgid(int);
61int setpriority(int, int, int);
62int statx(int, uintptr_t, int, int, uintptr_t);
63int sync();
64long long tee(int, int, int, int);
65uintptr_t times(uintptr_t);
66int umask(int);
67int uname(uintptr_t);
68int unlink(uintptr_t);
69int unlinkat(int, uintptr_t, int);
70int unshare(int);
71int ustat(int, uintptr_t);
72int write(int, uintptr_t, size_t);
73int dup2(int, int);
74int posix_fadvise64(int, long long, long long, int);
75int fchown(int, int, int);
76int fstat(int, uintptr_t);
77int fstatat(int, uintptr_t, uintptr_t, int);
78int fstatfs(int, uintptr_t);
79int ftruncate(int, long long);
80int getegid();
81int geteuid();
82int getgid();
83int getuid();
84int lchown(uintptr_t, int, int);
85int listen(int, int);
86int lstat(uintptr_t, uintptr_t);
87int pause();
88int pread64(int, uintptr_t, size_t, long long);
89int pwrite64(int, uintptr_t, size_t, long long);
90int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
91int setregid(int, int);
92int setreuid(int, int);
93int shutdown(int, int);
94long long splice(int, uintptr_t, int, uintptr_t, int, int);
95int stat(uintptr_t, uintptr_t);
96int statfs(uintptr_t, uintptr_t);
97int truncate(uintptr_t, long long);
98int bind(int, uintptr_t, uintptr_t);
99int connect(int, uintptr_t, uintptr_t);
100int getgroups(int, uintptr_t);
101int setgroups(int, uintptr_t);
102int getsockopt(int, int, int, uintptr_t, uintptr_t);
103int setsockopt(int, int, int, uintptr_t, uintptr_t);
104int socket(int, int, int);
105int socketpair(int, int, int, uintptr_t);
106int getpeername(int, uintptr_t, uintptr_t);
107int getsockname(int, uintptr_t, uintptr_t);
108int recvfrom(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
109int sendto(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
110int recvmsg(int, uintptr_t, int);
111int sendmsg(int, uintptr_t, int);
112int munmap(uintptr_t, uintptr_t);
113int madvise(uintptr_t, size_t, int);
114int mprotect(uintptr_t, size_t, int);
115int mlock(uintptr_t, size_t);
116int mlockall(int);
117int msync(uintptr_t, size_t, int);
118int munlock(uintptr_t, size_t);
119int munlockall();
120int pipe(uintptr_t);
121int pipe2(uintptr_t, int);
122int poll(uintptr_t, int, int);
123int gettimeofday(uintptr_t, uintptr_t);
124int time(uintptr_t);
125int utime(uintptr_t, uintptr_t);
126int getrlimit(int, uintptr_t);
127int setrlimit(int, uintptr_t);
128long long lseek(int, long long, int);
129uintptr_t mmap64(uintptr_t, uintptr_t, int, int, int, long long);
130
131*/
132import "C"
133import (
134 "syscall"
135 "unsafe"
136)
137
138// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
139
140func utimes(path string, times *[2]Timeval) (err error) {
141 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
142 r0, er := C.utimes(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(times))))
143 if r0 == -1 && er != nil {
144 err = er
145 }
146 return
147}
148
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150
151func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) {
152 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
153 r0, er := C.utimensat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(times))), C.int(flag))
154 if r0 == -1 && er != nil {
155 err = er
156 }
157 return
158}
159
160// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
161
162func getcwd(buf []byte) (err error) {
163 var _p0 *byte
164 if len(buf) > 0 {
165 _p0 = &buf[0]
166 }
167 var _p1 int
168 _p1 = len(buf)
169 r0, er := C.getcwd(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
170 if r0 == -1 && er != nil {
171 err = er
172 }
173 return
174}
175
176// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
177
178func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
179 r0, er := C.accept(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen))))
180 fd = int(r0)
181 if r0 == -1 && er != nil {
182 err = er
183 }
184 return
185}
186
187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
188
189func getdirent(fd int, buf []byte) (n int, err error) {
190 var _p0 *byte
191 if len(buf) > 0 {
192 _p0 = &buf[0]
193 }
194 var _p1 int
195 _p1 = len(buf)
196 r0, er := C.getdirent(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
197 n = int(r0)
198 if r0 == -1 && er != nil {
199 err = er
200 }
201 return
202}
203
204// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
205
206func wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error) {
207 r0, er := C.wait4(C.int(pid), C.uintptr_t(uintptr(unsafe.Pointer(status))), C.int(options), C.uintptr_t(uintptr(unsafe.Pointer(rusage))))
208 wpid = Pid_t(r0)
209 if r0 == -1 && er != nil {
210 err = er
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func ioctl(fd int, req uint, arg uintptr) (err error) {
218 r0, er := C.ioctl(C.int(fd), C.int(req), C.uintptr_t(arg))
219 if r0 == -1 && er != nil {
220 err = er
221 }
222 return
223}
224
225// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
226
227func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) {
228 r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
229 r = int(r0)
230 if r0 == -1 && er != nil {
231 err = er
232 }
233 return
234}
235
236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
237
238func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) {
239 r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(uintptr(unsafe.Pointer(lk))))
240 if r0 == -1 && er != nil {
241 err = er
242 }
243 return
244}
245
246// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
247
248func Acct(path string) (err error) {
249 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
250 r0, er := C.acct(C.uintptr_t(_p0))
251 if r0 == -1 && er != nil {
252 err = er
253 }
254 return
255}
256
257// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
258
259func Chdir(path string) (err error) {
260 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
261 r0, er := C.chdir(C.uintptr_t(_p0))
262 if r0 == -1 && er != nil {
263 err = er
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func Chroot(path string) (err error) {
271 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
272 r0, er := C.chroot(C.uintptr_t(_p0))
273 if r0 == -1 && er != nil {
274 err = er
275 }
276 return
277}
278
279// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
280
281func Close(fd int) (err error) {
282 r0, er := C.close(C.int(fd))
283 if r0 == -1 && er != nil {
284 err = er
285 }
286 return
287}
288
289// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
290
291func Dup(oldfd int) (fd int, err error) {
292 r0, er := C.dup(C.int(oldfd))
293 fd = int(r0)
294 if r0 == -1 && er != nil {
295 err = er
296 }
297 return
298}
299
300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
301
302func Dup3(oldfd int, newfd int, flags int) (err error) {
303 r0, er := C.dup3(C.int(oldfd), C.int(newfd), C.int(flags))
304 if r0 == -1 && er != nil {
305 err = er
306 }
307 return
308}
309
310// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
311
312func Exit(code int) {
313 C.exit(C.int(code))
314 return
315}
316
317// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
318
319func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
320 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
321 r0, er := C.faccessat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags))
322 if r0 == -1 && er != nil {
323 err = er
324 }
325 return
326}
327
328// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
329
330func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
331 r0, er := C.fallocate(C.int(fd), C.uint(mode), C.longlong(off), C.longlong(len))
332 if r0 == -1 && er != nil {
333 err = er
334 }
335 return
336}
337
338// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
339
340func Fchdir(fd int) (err error) {
341 r0, er := C.fchdir(C.int(fd))
342 if r0 == -1 && er != nil {
343 err = er
344 }
345 return
346}
347
348// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
349
350func Fchmod(fd int, mode uint32) (err error) {
351 r0, er := C.fchmod(C.int(fd), C.uint(mode))
352 if r0 == -1 && er != nil {
353 err = er
354 }
355 return
356}
357
358// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
359
360func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
361 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
362 r0, er := C.fchmodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags))
363 if r0 == -1 && er != nil {
364 err = er
365 }
366 return
367}
368
369// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
370
371func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
372 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
373 r0, er := C.fchownat(C.int(dirfd), C.uintptr_t(_p0), C.int(uid), C.int(gid), C.int(flags))
374 if r0 == -1 && er != nil {
375 err = er
376 }
377 return
378}
379
380// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
381
382func fcntl(fd int, cmd int, arg int) (val int, err error) {
383 r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
384 val = int(r0)
385 if r0 == -1 && er != nil {
386 err = er
387 }
388 return
389}
390
391// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
392
393func Fdatasync(fd int) (err error) {
394 r0, er := C.fdatasync(C.int(fd))
395 if r0 == -1 && er != nil {
396 err = er
397 }
398 return
399}
400
401// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
402
403func Fsync(fd int) (err error) {
404 r0, er := C.fsync(C.int(fd))
405 if r0 == -1 && er != nil {
406 err = er
407 }
408 return
409}
410
411// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412
413func Getpgid(pid int) (pgid int, err error) {
414 r0, er := C.getpgid(C.int(pid))
415 pgid = int(r0)
416 if r0 == -1 && er != nil {
417 err = er
418 }
419 return
420}
421
422// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
423
424func Getpgrp() (pid int) {
425 r0, _ := C.getpgrp()
426 pid = int(r0)
427 return
428}
429
430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
431
432func Getpid() (pid int) {
433 r0, _ := C.getpid()
434 pid = int(r0)
435 return
436}
437
438// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
439
440func Getppid() (ppid int) {
441 r0, _ := C.getppid()
442 ppid = int(r0)
443 return
444}
445
446// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
447
448func Getpriority(which int, who int) (prio int, err error) {
449 r0, er := C.getpriority(C.int(which), C.int(who))
450 prio = int(r0)
451 if r0 == -1 && er != nil {
452 err = er
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func Getrusage(who int, rusage *Rusage) (err error) {
460 r0, er := C.getrusage(C.int(who), C.uintptr_t(uintptr(unsafe.Pointer(rusage))))
461 if r0 == -1 && er != nil {
462 err = er
463 }
464 return
465}
466
467// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
468
469func Getsid(pid int) (sid int, err error) {
470 r0, er := C.getsid(C.int(pid))
471 sid = int(r0)
472 if r0 == -1 && er != nil {
473 err = er
474 }
475 return
476}
477
478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
479
480func Kill(pid int, sig syscall.Signal) (err error) {
481 r0, er := C.kill(C.int(pid), C.int(sig))
482 if r0 == -1 && er != nil {
483 err = er
484 }
485 return
486}
487
488// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
489
490func Klogctl(typ int, buf []byte) (n int, err error) {
491 var _p0 *byte
492 if len(buf) > 0 {
493 _p0 = &buf[0]
494 }
495 var _p1 int
496 _p1 = len(buf)
497 r0, er := C.syslog(C.int(typ), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
498 n = int(r0)
499 if r0 == -1 && er != nil {
500 err = er
501 }
502 return
503}
504
505// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
506
507func Mkdir(dirfd int, path string, mode uint32) (err error) {
508 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
509 r0, er := C.mkdir(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))
510 if r0 == -1 && er != nil {
511 err = er
512 }
513 return
514}
515
516// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
517
518func Mkdirat(dirfd int, path string, mode uint32) (err error) {
519 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
520 r0, er := C.mkdirat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))
521 if r0 == -1 && er != nil {
522 err = er
523 }
524 return
525}
526
527// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
528
529func Mkfifo(path string, mode uint32) (err error) {
530 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
531 r0, er := C.mkfifo(C.uintptr_t(_p0), C.uint(mode))
532 if r0 == -1 && er != nil {
533 err = er
534 }
535 return
536}
537
538// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
539
540func Mknod(path string, mode uint32, dev int) (err error) {
541 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
542 r0, er := C.mknod(C.uintptr_t(_p0), C.uint(mode), C.int(dev))
543 if r0 == -1 && er != nil {
544 err = er
545 }
546 return
547}
548
549// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
550
551func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
552 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
553 r0, er := C.mknodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(dev))
554 if r0 == -1 && er != nil {
555 err = er
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
563 r0, er := C.nanosleep(C.uintptr_t(uintptr(unsafe.Pointer(time))), C.uintptr_t(uintptr(unsafe.Pointer(leftover))))
564 if r0 == -1 && er != nil {
565 err = er
566 }
567 return
568}
569
570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571
572func Open(path string, mode int, perm uint32) (fd int, err error) {
573 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
574 r0, er := C.open64(C.uintptr_t(_p0), C.int(mode), C.uint(perm))
575 fd = int(r0)
576 if r0 == -1 && er != nil {
577 err = er
578 }
579 return
580}
581
582// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
583
584func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
585 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
586 r0, er := C.openat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.uint(mode))
587 fd = int(r0)
588 if r0 == -1 && er != nil {
589 err = er
590 }
591 return
592}
593
594// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
595
596func read(fd int, p []byte) (n int, err error) {
597 var _p0 *byte
598 if len(p) > 0 {
599 _p0 = &p[0]
600 }
601 var _p1 int
602 _p1 = len(p)
603 r0, er := C.read(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
604 n = int(r0)
605 if r0 == -1 && er != nil {
606 err = er
607 }
608 return
609}
610
611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
612
613func Readlink(path string, buf []byte) (n int, err error) {
614 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
615 var _p1 *byte
616 if len(buf) > 0 {
617 _p1 = &buf[0]
618 }
619 var _p2 int
620 _p2 = len(buf)
621 r0, er := C.readlink(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(_p1))), C.size_t(_p2))
622 n = int(r0)
623 if r0 == -1 && er != nil {
624 err = er
625 }
626 return
627}
628
629// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
630
631func Removexattr(path string, attr string) (err error) {
632 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
633 _p1 := uintptr(unsafe.Pointer(C.CString(attr)))
634 r0, er := C.removexattr(C.uintptr_t(_p0), C.uintptr_t(_p1))
635 if r0 == -1 && er != nil {
636 err = er
637 }
638 return
639}
640
641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642
643func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
644 _p0 := uintptr(unsafe.Pointer(C.CString(oldpath)))
645 _p1 := uintptr(unsafe.Pointer(C.CString(newpath)))
646 r0, er := C.renameat(C.int(olddirfd), C.uintptr_t(_p0), C.int(newdirfd), C.uintptr_t(_p1))
647 if r0 == -1 && er != nil {
648 err = er
649 }
650 return
651}
652
653// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
654
655func Setdomainname(p []byte) (err error) {
656 var _p0 *byte
657 if len(p) > 0 {
658 _p0 = &p[0]
659 }
660 var _p1 int
661 _p1 = len(p)
662 r0, er := C.setdomainname(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
663 if r0 == -1 && er != nil {
664 err = er
665 }
666 return
667}
668
669// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
670
671func Sethostname(p []byte) (err error) {
672 var _p0 *byte
673 if len(p) > 0 {
674 _p0 = &p[0]
675 }
676 var _p1 int
677 _p1 = len(p)
678 r0, er := C.sethostname(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
679 if r0 == -1 && er != nil {
680 err = er
681 }
682 return
683}
684
685// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
686
687func Setpgid(pid int, pgid int) (err error) {
688 r0, er := C.setpgid(C.int(pid), C.int(pgid))
689 if r0 == -1 && er != nil {
690 err = er
691 }
692 return
693}
694
695// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
696
697func Setsid() (pid int, err error) {
698 r0, er := C.setsid()
699 pid = int(r0)
700 if r0 == -1 && er != nil {
701 err = er
702 }
703 return
704}
705
706// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
707
708func Settimeofday(tv *Timeval) (err error) {
709 r0, er := C.settimeofday(C.uintptr_t(uintptr(unsafe.Pointer(tv))))
710 if r0 == -1 && er != nil {
711 err = er
712 }
713 return
714}
715
716// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
717
718func Setuid(uid int) (err error) {
719 r0, er := C.setuid(C.int(uid))
720 if r0 == -1 && er != nil {
721 err = er
722 }
723 return
724}
725
726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
727
728func Setgid(uid int) (err error) {
729 r0, er := C.setgid(C.int(uid))
730 if r0 == -1 && er != nil {
731 err = er
732 }
733 return
734}
735
736// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
737
738func Setpriority(which int, who int, prio int) (err error) {
739 r0, er := C.setpriority(C.int(which), C.int(who), C.int(prio))
740 if r0 == -1 && er != nil {
741 err = er
742 }
743 return
744}
745
746// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
747
748func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
749 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
750 r0, er := C.statx(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.int(mask), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
751 if r0 == -1 && er != nil {
752 err = er
753 }
754 return
755}
756
757// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758
759func Sync() {
760 C.sync()
761 return
762}
763
764// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
765
766func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
767 r0, er := C.tee(C.int(rfd), C.int(wfd), C.int(len), C.int(flags))
768 n = int64(r0)
769 if r0 == -1 && er != nil {
770 err = er
771 }
772 return
773}
774
775// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
776
777func Times(tms *Tms) (ticks uintptr, err error) {
778 r0, er := C.times(C.uintptr_t(uintptr(unsafe.Pointer(tms))))
779 ticks = uintptr(r0)
780 if uintptr(r0) == ^uintptr(0) && er != nil {
781 err = er
782 }
783 return
784}
785
786// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
787
788func Umask(mask int) (oldmask int) {
789 r0, _ := C.umask(C.int(mask))
790 oldmask = int(r0)
791 return
792}
793
794// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
795
796func Uname(buf *Utsname) (err error) {
797 r0, er := C.uname(C.uintptr_t(uintptr(unsafe.Pointer(buf))))
798 if r0 == -1 && er != nil {
799 err = er
800 }
801 return
802}
803
804// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
805
806func Unlink(path string) (err error) {
807 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
808 r0, er := C.unlink(C.uintptr_t(_p0))
809 if r0 == -1 && er != nil {
810 err = er
811 }
812 return
813}
814
815// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
816
817func Unlinkat(dirfd int, path string, flags int) (err error) {
818 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
819 r0, er := C.unlinkat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags))
820 if r0 == -1 && er != nil {
821 err = er
822 }
823 return
824}
825
826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
827
828func Unshare(flags int) (err error) {
829 r0, er := C.unshare(C.int(flags))
830 if r0 == -1 && er != nil {
831 err = er
832 }
833 return
834}
835
836// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
837
838func Ustat(dev int, ubuf *Ustat_t) (err error) {
839 r0, er := C.ustat(C.int(dev), C.uintptr_t(uintptr(unsafe.Pointer(ubuf))))
840 if r0 == -1 && er != nil {
841 err = er
842 }
843 return
844}
845
846// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
847
848func write(fd int, p []byte) (n int, err error) {
849 var _p0 *byte
850 if len(p) > 0 {
851 _p0 = &p[0]
852 }
853 var _p1 int
854 _p1 = len(p)
855 r0, er := C.write(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
856 n = int(r0)
857 if r0 == -1 && er != nil {
858 err = er
859 }
860 return
861}
862
863// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
864
865func readlen(fd int, p *byte, np int) (n int, err error) {
866 r0, er := C.read(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(p))), C.size_t(np))
867 n = int(r0)
868 if r0 == -1 && er != nil {
869 err = er
870 }
871 return
872}
873
874// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
875
876func writelen(fd int, p *byte, np int) (n int, err error) {
877 r0, er := C.write(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(p))), C.size_t(np))
878 n = int(r0)
879 if r0 == -1 && er != nil {
880 err = er
881 }
882 return
883}
884
885// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
886
887func Dup2(oldfd int, newfd int) (err error) {
888 r0, er := C.dup2(C.int(oldfd), C.int(newfd))
889 if r0 == -1 && er != nil {
890 err = er
891 }
892 return
893}
894
895// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
896
897func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
898 r0, er := C.posix_fadvise64(C.int(fd), C.longlong(offset), C.longlong(length), C.int(advice))
899 if r0 == -1 && er != nil {
900 err = er
901 }
902 return
903}
904
905// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
906
907func Fchown(fd int, uid int, gid int) (err error) {
908 r0, er := C.fchown(C.int(fd), C.int(uid), C.int(gid))
909 if r0 == -1 && er != nil {
910 err = er
911 }
912 return
913}
914
915// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
916
917func Fstat(fd int, stat *Stat_t) (err error) {
918 r0, er := C.fstat(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
919 if r0 == -1 && er != nil {
920 err = er
921 }
922 return
923}
924
925// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
926
927func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
928 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
929 r0, er := C.fstatat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))), C.int(flags))
930 if r0 == -1 && er != nil {
931 err = er
932 }
933 return
934}
935
936// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
937
938func Fstatfs(fd int, buf *Statfs_t) (err error) {
939 r0, er := C.fstatfs(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(buf))))
940 if r0 == -1 && er != nil {
941 err = er
942 }
943 return
944}
945
946// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
947
948func Ftruncate(fd int, length int64) (err error) {
949 r0, er := C.ftruncate(C.int(fd), C.longlong(length))
950 if r0 == -1 && er != nil {
951 err = er
952 }
953 return
954}
955
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957
958func Getegid() (egid int) {
959 r0, _ := C.getegid()
960 egid = int(r0)
961 return
962}
963
964// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
965
966func Geteuid() (euid int) {
967 r0, _ := C.geteuid()
968 euid = int(r0)
969 return
970}
971
972// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
973
974func Getgid() (gid int) {
975 r0, _ := C.getgid()
976 gid = int(r0)
977 return
978}
979
980// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
981
982func Getuid() (uid int) {
983 r0, _ := C.getuid()
984 uid = int(r0)
985 return
986}
987
988// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
989
990func Lchown(path string, uid int, gid int) (err error) {
991 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
992 r0, er := C.lchown(C.uintptr_t(_p0), C.int(uid), C.int(gid))
993 if r0 == -1 && er != nil {
994 err = er
995 }
996 return
997}
998
999// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1000
1001func Listen(s int, n int) (err error) {
1002 r0, er := C.listen(C.int(s), C.int(n))
1003 if r0 == -1 && er != nil {
1004 err = er
1005 }
1006 return
1007}
1008
1009// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1010
1011func Lstat(path string, stat *Stat_t) (err error) {
1012 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1013 r0, er := C.lstat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
1014 if r0 == -1 && er != nil {
1015 err = er
1016 }
1017 return
1018}
1019
1020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1021
1022func Pause() (err error) {
1023 r0, er := C.pause()
1024 if r0 == -1 && er != nil {
1025 err = er
1026 }
1027 return
1028}
1029
1030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1031
1032func Pread(fd int, p []byte, offset int64) (n int, err error) {
1033 var _p0 *byte
1034 if len(p) > 0 {
1035 _p0 = &p[0]
1036 }
1037 var _p1 int
1038 _p1 = len(p)
1039 r0, er := C.pread64(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.longlong(offset))
1040 n = int(r0)
1041 if r0 == -1 && er != nil {
1042 err = er
1043 }
1044 return
1045}
1046
1047// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1048
1049func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1050 var _p0 *byte
1051 if len(p) > 0 {
1052 _p0 = &p[0]
1053 }
1054 var _p1 int
1055 _p1 = len(p)
1056 r0, er := C.pwrite64(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.longlong(offset))
1057 n = int(r0)
1058 if r0 == -1 && er != nil {
1059 err = er
1060 }
1061 return
1062}
1063
1064// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1065
1066func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
1067 r0, er := C.pselect(C.int(nfd), C.uintptr_t(uintptr(unsafe.Pointer(r))), C.uintptr_t(uintptr(unsafe.Pointer(w))), C.uintptr_t(uintptr(unsafe.Pointer(e))), C.uintptr_t(uintptr(unsafe.Pointer(timeout))), C.uintptr_t(uintptr(unsafe.Pointer(sigmask))))
1068 n = int(r0)
1069 if r0 == -1 && er != nil {
1070 err = er
1071 }
1072 return
1073}
1074
1075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1076
1077func Setregid(rgid int, egid int) (err error) {
1078 r0, er := C.setregid(C.int(rgid), C.int(egid))
1079 if r0 == -1 && er != nil {
1080 err = er
1081 }
1082 return
1083}
1084
1085// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1086
1087func Setreuid(ruid int, euid int) (err error) {
1088 r0, er := C.setreuid(C.int(ruid), C.int(euid))
1089 if r0 == -1 && er != nil {
1090 err = er
1091 }
1092 return
1093}
1094
1095// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1096
1097func Shutdown(fd int, how int) (err error) {
1098 r0, er := C.shutdown(C.int(fd), C.int(how))
1099 if r0 == -1 && er != nil {
1100 err = er
1101 }
1102 return
1103}
1104
1105// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1106
1107func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
1108 r0, er := C.splice(C.int(rfd), C.uintptr_t(uintptr(unsafe.Pointer(roff))), C.int(wfd), C.uintptr_t(uintptr(unsafe.Pointer(woff))), C.int(len), C.int(flags))
1109 n = int64(r0)
1110 if r0 == -1 && er != nil {
1111 err = er
1112 }
1113 return
1114}
1115
1116// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1117
1118func Stat(path string, stat *Stat_t) (err error) {
1119 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1120 r0, er := C.stat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
1121 if r0 == -1 && er != nil {
1122 err = er
1123 }
1124 return
1125}
1126
1127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1128
1129func Statfs(path string, buf *Statfs_t) (err error) {
1130 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1131 r0, er := C.statfs(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(buf))))
1132 if r0 == -1 && er != nil {
1133 err = er
1134 }
1135 return
1136}
1137
1138// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1139
1140func Truncate(path string, length int64) (err error) {
1141 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1142 r0, er := C.truncate(C.uintptr_t(_p0), C.longlong(length))
1143 if r0 == -1 && er != nil {
1144 err = er
1145 }
1146 return
1147}
1148
1149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1150
1151func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1152 r0, er := C.bind(C.int(s), C.uintptr_t(uintptr(addr)), C.uintptr_t(uintptr(addrlen)))
1153 if r0 == -1 && er != nil {
1154 err = er
1155 }
1156 return
1157}
1158
1159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1160
1161func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1162 r0, er := C.connect(C.int(s), C.uintptr_t(uintptr(addr)), C.uintptr_t(uintptr(addrlen)))
1163 if r0 == -1 && er != nil {
1164 err = er
1165 }
1166 return
1167}
1168
1169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170
1171func getgroups(n int, list *_Gid_t) (nn int, err error) {
1172 r0, er := C.getgroups(C.int(n), C.uintptr_t(uintptr(unsafe.Pointer(list))))
1173 nn = int(r0)
1174 if r0 == -1 && er != nil {
1175 err = er
1176 }
1177 return
1178}
1179
1180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181
1182func setgroups(n int, list *_Gid_t) (err error) {
1183 r0, er := C.setgroups(C.int(n), C.uintptr_t(uintptr(unsafe.Pointer(list))))
1184 if r0 == -1 && er != nil {
1185 err = er
1186 }
1187 return
1188}
1189
1190// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1191
1192func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1193 r0, er := C.getsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(uintptr(val)), C.uintptr_t(uintptr(unsafe.Pointer(vallen))))
1194 if r0 == -1 && er != nil {
1195 err = er
1196 }
1197 return
1198}
1199
1200// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1201
1202func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
1203 r0, er := C.setsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(uintptr(val)), C.uintptr_t(vallen))
1204 if r0 == -1 && er != nil {
1205 err = er
1206 }
1207 return
1208}
1209
1210// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1211
1212func socket(domain int, typ int, proto int) (fd int, err error) {
1213 r0, er := C.socket(C.int(domain), C.int(typ), C.int(proto))
1214 fd = int(r0)
1215 if r0 == -1 && er != nil {
1216 err = er
1217 }
1218 return
1219}
1220
1221// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1222
1223func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
1224 r0, er := C.socketpair(C.int(domain), C.int(typ), C.int(proto), C.uintptr_t(uintptr(unsafe.Pointer(fd))))
1225 if r0 == -1 && er != nil {
1226 err = er
1227 }
1228 return
1229}
1230
1231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1232
1233func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1234 r0, er := C.getpeername(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen))))
1235 if r0 == -1 && er != nil {
1236 err = er
1237 }
1238 return
1239}
1240
1241// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1242
1243func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
1244 r0, er := C.getsockname(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen))))
1245 if r0 == -1 && er != nil {
1246 err = er
1247 }
1248 return
1249}
1250
1251// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1252
1253func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
1254 var _p0 *byte
1255 if len(p) > 0 {
1256 _p0 = &p[0]
1257 }
1258 var _p1 int
1259 _p1 = len(p)
1260 r0, er := C.recvfrom(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags), C.uintptr_t(uintptr(unsafe.Pointer(from))), C.uintptr_t(uintptr(unsafe.Pointer(fromlen))))
1261 n = int(r0)
1262 if r0 == -1 && er != nil {
1263 err = er
1264 }
1265 return
1266}
1267
1268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1269
1270func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1271 var _p0 *byte
1272 if len(buf) > 0 {
1273 _p0 = &buf[0]
1274 }
1275 var _p1 int
1276 _p1 = len(buf)
1277 r0, er := C.sendto(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags), C.uintptr_t(uintptr(to)), C.uintptr_t(uintptr(addrlen)))
1278 if r0 == -1 && er != nil {
1279 err = er
1280 }
1281 return
1282}
1283
1284// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1285
1286func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1287 r0, er := C.recvmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags))
1288 n = int(r0)
1289 if r0 == -1 && er != nil {
1290 err = er
1291 }
1292 return
1293}
1294
1295// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1296
1297func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
1298 r0, er := C.sendmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags))
1299 n = int(r0)
1300 if r0 == -1 && er != nil {
1301 err = er
1302 }
1303 return
1304}
1305
1306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307
1308func munmap(addr uintptr, length uintptr) (err error) {
1309 r0, er := C.munmap(C.uintptr_t(addr), C.uintptr_t(length))
1310 if r0 == -1 && er != nil {
1311 err = er
1312 }
1313 return
1314}
1315
1316// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1317
1318func Madvise(b []byte, advice int) (err error) {
1319 var _p0 *byte
1320 if len(b) > 0 {
1321 _p0 = &b[0]
1322 }
1323 var _p1 int
1324 _p1 = len(b)
1325 r0, er := C.madvise(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(advice))
1326 if r0 == -1 && er != nil {
1327 err = er
1328 }
1329 return
1330}
1331
1332// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1333
1334func Mprotect(b []byte, prot int) (err error) {
1335 var _p0 *byte
1336 if len(b) > 0 {
1337 _p0 = &b[0]
1338 }
1339 var _p1 int
1340 _p1 = len(b)
1341 r0, er := C.mprotect(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(prot))
1342 if r0 == -1 && er != nil {
1343 err = er
1344 }
1345 return
1346}
1347
1348// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1349
1350func Mlock(b []byte) (err error) {
1351 var _p0 *byte
1352 if len(b) > 0 {
1353 _p0 = &b[0]
1354 }
1355 var _p1 int
1356 _p1 = len(b)
1357 r0, er := C.mlock(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
1358 if r0 == -1 && er != nil {
1359 err = er
1360 }
1361 return
1362}
1363
1364// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1365
1366func Mlockall(flags int) (err error) {
1367 r0, er := C.mlockall(C.int(flags))
1368 if r0 == -1 && er != nil {
1369 err = er
1370 }
1371 return
1372}
1373
1374// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1375
1376func Msync(b []byte, flags int) (err error) {
1377 var _p0 *byte
1378 if len(b) > 0 {
1379 _p0 = &b[0]
1380 }
1381 var _p1 int
1382 _p1 = len(b)
1383 r0, er := C.msync(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags))
1384 if r0 == -1 && er != nil {
1385 err = er
1386 }
1387 return
1388}
1389
1390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1391
1392func Munlock(b []byte) (err error) {
1393 var _p0 *byte
1394 if len(b) > 0 {
1395 _p0 = &b[0]
1396 }
1397 var _p1 int
1398 _p1 = len(b)
1399 r0, er := C.munlock(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1))
1400 if r0 == -1 && er != nil {
1401 err = er
1402 }
1403 return
1404}
1405
1406// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1407
1408func Munlockall() (err error) {
1409 r0, er := C.munlockall()
1410 if r0 == -1 && er != nil {
1411 err = er
1412 }
1413 return
1414}
1415
1416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1417
1418func pipe(p *[2]_C_int) (err error) {
1419 r0, er := C.pipe(C.uintptr_t(uintptr(unsafe.Pointer(p))))
1420 if r0 == -1 && er != nil {
1421 err = er
1422 }
1423 return
1424}
1425
1426// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1427
1428func pipe2(p *[2]_C_int, flags int) (err error) {
1429 r0, er := C.pipe2(C.uintptr_t(uintptr(unsafe.Pointer(p))), C.int(flags))
1430 if r0 == -1 && er != nil {
1431 err = er
1432 }
1433 return
1434}
1435
1436// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1437
1438func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
1439 r0, er := C.poll(C.uintptr_t(uintptr(unsafe.Pointer(fds))), C.int(nfds), C.int(timeout))
1440 n = int(r0)
1441 if r0 == -1 && er != nil {
1442 err = er
1443 }
1444 return
1445}
1446
1447// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1448
1449func gettimeofday(tv *Timeval, tzp *Timezone) (err error) {
1450 r0, er := C.gettimeofday(C.uintptr_t(uintptr(unsafe.Pointer(tv))), C.uintptr_t(uintptr(unsafe.Pointer(tzp))))
1451 if r0 == -1 && er != nil {
1452 err = er
1453 }
1454 return
1455}
1456
1457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1458
1459func Time(t *Time_t) (tt Time_t, err error) {
1460 r0, er := C.time(C.uintptr_t(uintptr(unsafe.Pointer(t))))
1461 tt = Time_t(r0)
1462 if r0 == -1 && er != nil {
1463 err = er
1464 }
1465 return
1466}
1467
1468// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1469
1470func Utime(path string, buf *Utimbuf) (err error) {
1471 _p0 := uintptr(unsafe.Pointer(C.CString(path)))
1472 r0, er := C.utime(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(buf))))
1473 if r0 == -1 && er != nil {
1474 err = er
1475 }
1476 return
1477}
1478
1479// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1480
1481func Getrlimit(resource int, rlim *Rlimit) (err error) {
1482 r0, er := C.getrlimit(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim))))
1483 if r0 == -1 && er != nil {
1484 err = er
1485 }
1486 return
1487}
1488
1489// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1490
1491func Setrlimit(resource int, rlim *Rlimit) (err error) {
1492 r0, er := C.setrlimit(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim))))
1493 if r0 == -1 && er != nil {
1494 err = er
1495 }
1496 return
1497}
1498
1499// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1500
1501func Seek(fd int, offset int64, whence int) (off int64, err error) {
1502 r0, er := C.lseek(C.int(fd), C.longlong(offset), C.int(whence))
1503 off = int64(r0)
1504 if r0 == -1 && er != nil {
1505 err = er
1506 }
1507 return
1508}
1509
1510// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1511
1512func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
1513 r0, er := C.mmap64(C.uintptr_t(addr), C.uintptr_t(length), C.int(prot), C.int(flags), C.int(fd), C.longlong(offset))
1514 xaddr = uintptr(r0)
1515 if uintptr(r0) == ^uintptr(0) && er != nil {
1516 err = er
1517 }
1518 return
1519}
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
index 763ae4f..9ce06df 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
@@ -399,6 +399,140 @@ func pipe() (r int, w int, err error) {
399 399
400// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 400// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
401 401
402func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
403 var _p0 *byte
404 _p0, err = BytePtrFromString(path)
405 if err != nil {
406 return
407 }
408 var _p1 *byte
409 _p1, err = BytePtrFromString(attr)
410 if err != nil {
411 return
412 }
413 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
414 sz = int(r0)
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
424 var _p0 *byte
425 _p0, err = BytePtrFromString(attr)
426 if err != nil {
427 return
428 }
429 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
430 sz = int(r0)
431 if e1 != 0 {
432 err = errnoErr(e1)
433 }
434 return
435}
436
437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
438
439func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
440 var _p0 *byte
441 _p0, err = BytePtrFromString(path)
442 if err != nil {
443 return
444 }
445 var _p1 *byte
446 _p1, err = BytePtrFromString(attr)
447 if err != nil {
448 return
449 }
450 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(attr)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
466 if e1 != 0 {
467 err = errnoErr(e1)
468 }
469 return
470}
471
472// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
473
474func removexattr(path string, attr string, options int) (err error) {
475 var _p0 *byte
476 _p0, err = BytePtrFromString(path)
477 if err != nil {
478 return
479 }
480 var _p1 *byte
481 _p1, err = BytePtrFromString(attr)
482 if err != nil {
483 return
484 }
485 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
486 if e1 != 0 {
487 err = errnoErr(e1)
488 }
489 return
490}
491
492// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
493
494func fremovexattr(fd int, attr string, options int) (err error) {
495 var _p0 *byte
496 _p0, err = BytePtrFromString(attr)
497 if err != nil {
498 return
499 }
500 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options))
501 if e1 != 0 {
502 err = errnoErr(e1)
503 }
504 return
505}
506
507// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
508
509func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
510 var _p0 *byte
511 _p0, err = BytePtrFromString(path)
512 if err != nil {
513 return
514 }
515 r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
516 sz = int(r0)
517 if e1 != 0 {
518 err = errnoErr(e1)
519 }
520 return
521}
522
523// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
524
525func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
526 r0, _, e1 := Syscall6(SYS_FLISTXATTR, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
527 sz = int(r0)
528 if e1 != 0 {
529 err = errnoErr(e1)
530 }
531 return
532}
533
534// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
535
402func kill(pid int, signum int, posix int) (err error) { 536func kill(pid int, signum int, posix int) (err error) {
403 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) 537 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
404 if e1 != 0 { 538 if e1 != 0 {
@@ -693,6 +827,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
693 827
694// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 828// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
695 829
830func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
831 var _p0 *byte
832 _p0, err = BytePtrFromString(path)
833 if err != nil {
834 return
835 }
836 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
837 if e1 != 0 {
838 err = errnoErr(e1)
839 }
840 return
841}
842
843// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
844
696func Fstatfs(fd int, stat *Statfs_t) (err error) { 845func Fstatfs(fd int, stat *Statfs_t) (err error) {
697 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 846 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
698 if e1 != 0 { 847 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
index d6808e0..de99270 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
@@ -399,6 +399,140 @@ func pipe() (r int, w int, err error) {
399 399
400// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 400// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
401 401
402func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
403 var _p0 *byte
404 _p0, err = BytePtrFromString(path)
405 if err != nil {
406 return
407 }
408 var _p1 *byte
409 _p1, err = BytePtrFromString(attr)
410 if err != nil {
411 return
412 }
413 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
414 sz = int(r0)
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
424 var _p0 *byte
425 _p0, err = BytePtrFromString(attr)
426 if err != nil {
427 return
428 }
429 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
430 sz = int(r0)
431 if e1 != 0 {
432 err = errnoErr(e1)
433 }
434 return
435}
436
437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
438
439func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
440 var _p0 *byte
441 _p0, err = BytePtrFromString(path)
442 if err != nil {
443 return
444 }
445 var _p1 *byte
446 _p1, err = BytePtrFromString(attr)
447 if err != nil {
448 return
449 }
450 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(attr)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
466 if e1 != 0 {
467 err = errnoErr(e1)
468 }
469 return
470}
471
472// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
473
474func removexattr(path string, attr string, options int) (err error) {
475 var _p0 *byte
476 _p0, err = BytePtrFromString(path)
477 if err != nil {
478 return
479 }
480 var _p1 *byte
481 _p1, err = BytePtrFromString(attr)
482 if err != nil {
483 return
484 }
485 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
486 if e1 != 0 {
487 err = errnoErr(e1)
488 }
489 return
490}
491
492// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
493
494func fremovexattr(fd int, attr string, options int) (err error) {
495 var _p0 *byte
496 _p0, err = BytePtrFromString(attr)
497 if err != nil {
498 return
499 }
500 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options))
501 if e1 != 0 {
502 err = errnoErr(e1)
503 }
504 return
505}
506
507// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
508
509func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
510 var _p0 *byte
511 _p0, err = BytePtrFromString(path)
512 if err != nil {
513 return
514 }
515 r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
516 sz = int(r0)
517 if e1 != 0 {
518 err = errnoErr(e1)
519 }
520 return
521}
522
523// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
524
525func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
526 r0, _, e1 := Syscall6(SYS_FLISTXATTR, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
527 sz = int(r0)
528 if e1 != 0 {
529 err = errnoErr(e1)
530 }
531 return
532}
533
534// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
535
402func kill(pid int, signum int, posix int) (err error) { 536func kill(pid int, signum int, posix int) (err error) {
403 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) 537 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
404 if e1 != 0 { 538 if e1 != 0 {
@@ -693,6 +827,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
693 827
694// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 828// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
695 829
830func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
831 var _p0 *byte
832 _p0, err = BytePtrFromString(path)
833 if err != nil {
834 return
835 }
836 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
837 if e1 != 0 {
838 err = errnoErr(e1)
839 }
840 return
841}
842
843// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
844
696func Fstatfs(fd int, stat *Statfs_t) (err error) { 845func Fstatfs(fd int, stat *Statfs_t) (err error) {
697 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 846 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
698 if e1 != 0 { 847 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
index 6ae95e6..81c4f09 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
@@ -1,4 +1,4 @@
1// mksyscall.pl -tags darwin,arm syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go 1// mksyscall.pl -l32 -tags darwin,arm syscall_bsd.go syscall_darwin.go syscall_darwin_arm.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 darwin,arm 4// +build darwin,arm
@@ -399,6 +399,140 @@ func pipe() (r int, w int, err error) {
399 399
400// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 400// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
401 401
402func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
403 var _p0 *byte
404 _p0, err = BytePtrFromString(path)
405 if err != nil {
406 return
407 }
408 var _p1 *byte
409 _p1, err = BytePtrFromString(attr)
410 if err != nil {
411 return
412 }
413 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
414 sz = int(r0)
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
424 var _p0 *byte
425 _p0, err = BytePtrFromString(attr)
426 if err != nil {
427 return
428 }
429 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
430 sz = int(r0)
431 if e1 != 0 {
432 err = errnoErr(e1)
433 }
434 return
435}
436
437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
438
439func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
440 var _p0 *byte
441 _p0, err = BytePtrFromString(path)
442 if err != nil {
443 return
444 }
445 var _p1 *byte
446 _p1, err = BytePtrFromString(attr)
447 if err != nil {
448 return
449 }
450 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(attr)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
466 if e1 != 0 {
467 err = errnoErr(e1)
468 }
469 return
470}
471
472// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
473
474func removexattr(path string, attr string, options int) (err error) {
475 var _p0 *byte
476 _p0, err = BytePtrFromString(path)
477 if err != nil {
478 return
479 }
480 var _p1 *byte
481 _p1, err = BytePtrFromString(attr)
482 if err != nil {
483 return
484 }
485 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
486 if e1 != 0 {
487 err = errnoErr(e1)
488 }
489 return
490}
491
492// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
493
494func fremovexattr(fd int, attr string, options int) (err error) {
495 var _p0 *byte
496 _p0, err = BytePtrFromString(attr)
497 if err != nil {
498 return
499 }
500 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options))
501 if e1 != 0 {
502 err = errnoErr(e1)
503 }
504 return
505}
506
507// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
508
509func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
510 var _p0 *byte
511 _p0, err = BytePtrFromString(path)
512 if err != nil {
513 return
514 }
515 r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
516 sz = int(r0)
517 if e1 != 0 {
518 err = errnoErr(e1)
519 }
520 return
521}
522
523// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
524
525func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
526 r0, _, e1 := Syscall6(SYS_FLISTXATTR, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
527 sz = int(r0)
528 if e1 != 0 {
529 err = errnoErr(e1)
530 }
531 return
532}
533
534// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
535
402func kill(pid int, signum int, posix int) (err error) { 536func kill(pid int, signum int, posix int) (err error) {
403 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) 537 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
404 if e1 != 0 { 538 if e1 != 0 {
@@ -693,6 +827,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
693 827
694// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 828// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
695 829
830func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
831 var _p0 *byte
832 _p0, err = BytePtrFromString(path)
833 if err != nil {
834 return
835 }
836 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
837 if e1 != 0 {
838 err = errnoErr(e1)
839 }
840 return
841}
842
843// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
844
696func Fstatfs(fd int, stat *Statfs_t) (err error) { 845func Fstatfs(fd int, stat *Statfs_t) (err error) {
697 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 846 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
698 if e1 != 0 { 847 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
index ca6a7ea..338c32d 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
@@ -399,6 +399,140 @@ func pipe() (r int, w int, err error) {
399 399
400// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 400// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
401 401
402func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
403 var _p0 *byte
404 _p0, err = BytePtrFromString(path)
405 if err != nil {
406 return
407 }
408 var _p1 *byte
409 _p1, err = BytePtrFromString(attr)
410 if err != nil {
411 return
412 }
413 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
414 sz = int(r0)
415 if e1 != 0 {
416 err = errnoErr(e1)
417 }
418 return
419}
420
421// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422
423func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
424 var _p0 *byte
425 _p0, err = BytePtrFromString(attr)
426 if err != nil {
427 return
428 }
429 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
430 sz = int(r0)
431 if e1 != 0 {
432 err = errnoErr(e1)
433 }
434 return
435}
436
437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
438
439func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
440 var _p0 *byte
441 _p0, err = BytePtrFromString(path)
442 if err != nil {
443 return
444 }
445 var _p1 *byte
446 _p1, err = BytePtrFromString(attr)
447 if err != nil {
448 return
449 }
450 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
451 if e1 != 0 {
452 err = errnoErr(e1)
453 }
454 return
455}
456
457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
458
459func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) {
460 var _p0 *byte
461 _p0, err = BytePtrFromString(attr)
462 if err != nil {
463 return
464 }
465 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
466 if e1 != 0 {
467 err = errnoErr(e1)
468 }
469 return
470}
471
472// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
473
474func removexattr(path string, attr string, options int) (err error) {
475 var _p0 *byte
476 _p0, err = BytePtrFromString(path)
477 if err != nil {
478 return
479 }
480 var _p1 *byte
481 _p1, err = BytePtrFromString(attr)
482 if err != nil {
483 return
484 }
485 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
486 if e1 != 0 {
487 err = errnoErr(e1)
488 }
489 return
490}
491
492// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
493
494func fremovexattr(fd int, attr string, options int) (err error) {
495 var _p0 *byte
496 _p0, err = BytePtrFromString(attr)
497 if err != nil {
498 return
499 }
500 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options))
501 if e1 != 0 {
502 err = errnoErr(e1)
503 }
504 return
505}
506
507// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
508
509func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
510 var _p0 *byte
511 _p0, err = BytePtrFromString(path)
512 if err != nil {
513 return
514 }
515 r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
516 sz = int(r0)
517 if e1 != 0 {
518 err = errnoErr(e1)
519 }
520 return
521}
522
523// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
524
525func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
526 r0, _, e1 := Syscall6(SYS_FLISTXATTR, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
527 sz = int(r0)
528 if e1 != 0 {
529 err = errnoErr(e1)
530 }
531 return
532}
533
534// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
535
402func kill(pid int, signum int, posix int) (err error) { 536func kill(pid int, signum int, posix int) (err error) {
403 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) 537 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
404 if e1 != 0 { 538 if e1 != 0 {
@@ -693,6 +827,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
693 827
694// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 828// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
695 829
830func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
831 var _p0 *byte
832 _p0, err = BytePtrFromString(path)
833 if err != nil {
834 return
835 }
836 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
837 if e1 != 0 {
838 err = errnoErr(e1)
839 }
840 return
841}
842
843// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
844
696func Fstatfs(fd int, stat *Statfs_t) (err error) { 845func Fstatfs(fd int, stat *Statfs_t) (err error) {
697 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 846 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
698 if e1 != 0 { 847 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
index a0241de..91f36e9 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
@@ -618,6 +618,21 @@ func Fchmod(fd int, mode uint32) (err error) {
618 618
619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
620 620
621func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
622 var _p0 *byte
623 _p0, err = BytePtrFromString(path)
624 if err != nil {
625 return
626 }
627 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
628 if e1 != 0 {
629 err = errnoErr(e1)
630 }
631 return
632}
633
634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
635
621func Fchown(fd int, uid int, gid int) (err error) { 636func Fchown(fd int, uid int, gid int) (err error) {
622 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 637 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
623 if e1 != 0 { 638 if e1 != 0 {
@@ -659,6 +674,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
659 674
660// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 675// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
661 676
677func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
678 var _p0 *byte
679 _p0, err = BytePtrFromString(path)
680 if err != nil {
681 return
682 }
683 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
684 if e1 != 0 {
685 err = errnoErr(e1)
686 }
687 return
688}
689
690// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
691
662func Fstatfs(fd int, stat *Statfs_t) (err error) { 692func Fstatfs(fd int, stat *Statfs_t) (err error) {
663 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 693 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
664 if e1 != 0 { 694 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
index fd9ca5a..ad77882 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
@@ -377,10 +377,8 @@ func Munlockall() (err error) {
377 377
378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379 379
380func pipe() (r int, w int, err error) { 380func pipe2(p *[2]_C_int, flags int) (err error) {
381 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) 381 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
382 r = int(r0)
383 w = int(r1)
384 if e1 != 0 { 382 if e1 != 0 {
385 err = errnoErr(e1) 383 err = errnoErr(e1)
386 } 384 }
@@ -924,6 +922,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
924 922
925// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
926 924
925func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
926 var _p0 *byte
927 _p0, err = BytePtrFromString(path)
928 if err != nil {
929 return
930 }
931 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
932 if e1 != 0 {
933 err = errnoErr(e1)
934 }
935 return
936}
937
938// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
939
927func Fstatfs(fd int, stat *Statfs_t) (err error) { 940func Fstatfs(fd int, stat *Statfs_t) (err error) {
928 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 941 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
929 if e1 != 0 { 942 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
index a9f18b2..d3ba6c4 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
@@ -377,10 +377,8 @@ func Munlockall() (err error) {
377 377
378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379 379
380func pipe() (r int, w int, err error) { 380func pipe2(p *[2]_C_int, flags int) (err error) {
381 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) 381 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
382 r = int(r0)
383 w = int(r1)
384 if e1 != 0 { 382 if e1 != 0 {
385 err = errnoErr(e1) 383 err = errnoErr(e1)
386 } 384 }
@@ -924,6 +922,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
924 922
925// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
926 924
925func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
926 var _p0 *byte
927 _p0, err = BytePtrFromString(path)
928 if err != nil {
929 return
930 }
931 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
932 if e1 != 0 {
933 err = errnoErr(e1)
934 }
935 return
936}
937
938// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
939
927func Fstatfs(fd int, stat *Statfs_t) (err error) { 940func Fstatfs(fd int, stat *Statfs_t) (err error) {
928 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 941 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
929 if e1 != 0 { 942 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
index 9823e18..9dfd77b 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
@@ -377,10 +377,8 @@ func Munlockall() (err error) {
377 377
378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 378// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379 379
380func pipe() (r int, w int, err error) { 380func pipe2(p *[2]_C_int, flags int) (err error) {
381 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) 381 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
382 r = int(r0)
383 w = int(r1)
384 if e1 != 0 { 382 if e1 != 0 {
385 err = errnoErr(e1) 383 err = errnoErr(e1)
386 } 384 }
@@ -924,6 +922,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
924 922
925// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 923// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
926 924
925func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
926 var _p0 *byte
927 _p0, err = BytePtrFromString(path)
928 if err != nil {
929 return
930 }
931 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
932 if e1 != 0 {
933 err = errnoErr(e1)
934 }
935 return
936}
937
938// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
939
927func Fstatfs(fd int, stat *Statfs_t) (err error) { 940func Fstatfs(fd int, stat *Statfs_t) (err error) {
928 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 941 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
929 if e1 != 0 { 942 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
index ef9602c..35b155a 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func pipe(p *[2]_C_int) (err error) { 1613func pipe(p *[2]_C_int) (err error) {
1528 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) 1614 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
1529 if e1 != 0 { 1615 if e1 != 0 {
@@ -1554,6 +1640,34 @@ func Dup2(oldfd int, newfd int) (err error) {
1554 1640
1555// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1556 1642
1643func EpollCreate(size int) (fd int, err error) {
1644 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1645 fd = int(r0)
1646 if e1 != 0 {
1647 err = errnoErr(e1)
1648 }
1649 return
1650}
1651
1652// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1653
1654func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1655 var _p0 unsafe.Pointer
1656 if len(events) > 0 {
1657 _p0 = unsafe.Pointer(&events[0])
1658 } else {
1659 _p0 = unsafe.Pointer(&_zero)
1660 }
1661 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
1662 n = int(r0)
1663 if e1 != 0 {
1664 err = errnoErr(e1)
1665 }
1666 return
1667}
1668
1669// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1670
1557func Fadvise(fd int, offset int64, length int64, advice int) (err error) { 1671func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1558 _, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice)) 1672 _, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice))
1559 if e1 != 0 { 1673 if e1 != 0 {
@@ -1858,6 +1972,16 @@ func Truncate(path string, length int64) (err error) {
1858 1972
1859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1973// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1860 1974
1975func Ustat(dev int, ubuf *Ustat_t) (err error) {
1976 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1977 if e1 != 0 {
1978 err = errnoErr(e1)
1979 }
1980 return
1981}
1982
1983// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1984
1861func getgroups(n int, list *_Gid_t) (nn int, err error) { 1985func getgroups(n int, list *_Gid_t) (nn int, err error) {
1862 r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) 1986 r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1863 nn = int(r0) 1987 nn = int(r0)
@@ -1901,15 +2025,8 @@ func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset
1901 2025
1902// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2026// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1903 2027
1904func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 2028func Pause() (err error) {
1905 var _p0 unsafe.Pointer 2029 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
1906 if len(events) > 0 {
1907 _p0 = unsafe.Pointer(&events[0])
1908 } else {
1909 _p0 = unsafe.Pointer(&_zero)
1910 }
1911 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
1912 n = int(r0)
1913 if e1 != 0 { 2030 if e1 != 0 {
1914 err = errnoErr(e1) 2031 err = errnoErr(e1)
1915 } 2032 }
@@ -1918,8 +2035,8 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1918 2035
1919// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2036// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1920 2037
1921func Pause() (err error) { 2038func getrlimit(resource int, rlim *rlimit32) (err error) {
1922 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) 2039 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1923 if e1 != 0 { 2040 if e1 != 0 {
1924 err = errnoErr(e1) 2041 err = errnoErr(e1)
1925 } 2042 }
@@ -1928,8 +2045,8 @@ func Pause() (err error) {
1928 2045
1929// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1930 2047
1931func getrlimit(resource int, rlim *rlimit32) (err error) { 2048func setrlimit(resource int, rlim *rlimit32) (err error) {
1932 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 2049 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1933 if e1 != 0 { 2050 if e1 != 0 {
1934 err = errnoErr(e1) 2051 err = errnoErr(e1)
1935 } 2052 }
@@ -1938,8 +2055,13 @@ func getrlimit(resource int, rlim *rlimit32) (err error) {
1938 2055
1939// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2056// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1940 2057
1941func setrlimit(resource int, rlim *rlimit32) (err error) { 2058func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
1942 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 2059 var _p0 *byte
2060 _p0, err = BytePtrFromString(path)
2061 if err != nil {
2062 return
2063 }
2064 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
1943 if e1 != 0 { 2065 if e1 != 0 {
1944 err = errnoErr(e1) 2066 err = errnoErr(e1)
1945 } 2067 }
@@ -1984,6 +2106,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
1984 2106
1985// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2107// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1986 2108
2109func utimes(path string, times *[2]Timeval) (err error) {
2110 var _p0 *byte
2111 _p0, err = BytePtrFromString(path)
2112 if err != nil {
2113 return
2114 }
2115 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2116 if e1 != 0 {
2117 err = errnoErr(e1)
2118 }
2119 return
2120}
2121
2122// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2123
1987func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { 2124func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
1988 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) 2125 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
1989 n = int(r0) 2126 n = int(r0)
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 63054b3..46e9ddf 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func Dup2(oldfd int, newfd int) (err error) { 1613func Dup2(oldfd int, newfd int) (err error) {
1528 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1614 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1529 if e1 != 0 { 1615 if e1 != 0 {
@@ -1534,6 +1620,17 @@ func Dup2(oldfd int, newfd int) (err error) {
1534 1620
1535// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1536 1622
1623func EpollCreate(size int) (fd int, err error) {
1624 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1625 fd = int(r0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1628 }
1629 return
1630}
1631
1632// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1633
1537func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 1634func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1538 var _p0 unsafe.Pointer 1635 var _p0 unsafe.Pointer
1539 if len(events) > 0 { 1636 if len(events) > 0 {
@@ -1784,17 +1881,6 @@ func Seek(fd int, offset int64, whence int) (off int64, err error) {
1784 1881
1785// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1882// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1786 1883
1787func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1788 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1789 n = int(r0)
1790 if e1 != 0 {
1791 err = errnoErr(e1)
1792 }
1793 return
1794}
1795
1796// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1797
1798func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { 1884func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1799 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) 1885 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1800 written = int(r0) 1886 written = int(r0)
@@ -1897,21 +1983,6 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
1897 1983
1898// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1984// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1899 1985
1900func Stat(path string, stat *Stat_t) (err error) {
1901 var _p0 *byte
1902 _p0, err = BytePtrFromString(path)
1903 if err != nil {
1904 return
1905 }
1906 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1907 if e1 != 0 {
1908 err = errnoErr(e1)
1909 }
1910 return
1911}
1912
1913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1914
1915func Statfs(path string, buf *Statfs_t) (err error) { 1986func Statfs(path string, buf *Statfs_t) (err error) {
1916 var _p0 *byte 1987 var _p0 *byte
1917 _p0, err = BytePtrFromString(path) 1988 _p0, err = BytePtrFromString(path)
@@ -1952,6 +2023,16 @@ func Truncate(path string, length int64) (err error) {
1952 2023
1953// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2024// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1954 2025
2026func Ustat(dev int, ubuf *Ustat_t) (err error) {
2027 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
2028 if e1 != 0 {
2029 err = errnoErr(e1)
2030 }
2031 return
2032}
2033
2034// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2035
1955func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 2036func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1956 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 2037 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1957 fd = int(r0) 2038 fd = int(r0)
@@ -2142,6 +2223,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
2142 2223
2143// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2224// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2144 2225
2226func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2227 var _p0 *byte
2228 _p0, err = BytePtrFromString(path)
2229 if err != nil {
2230 return
2231 }
2232 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2233 if e1 != 0 {
2234 err = errnoErr(e1)
2235 }
2236 return
2237}
2238
2239// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2240
2145func Utime(path string, buf *Utimbuf) (err error) { 2241func Utime(path string, buf *Utimbuf) (err error) {
2146 var _p0 *byte 2242 var _p0 *byte
2147 _p0, err = BytePtrFromString(path) 2243 _p0, err = BytePtrFromString(path)
@@ -2157,6 +2253,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
2157 2253
2158// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2254// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2159 2255
2256func utimes(path string, times *[2]Timeval) (err error) {
2257 var _p0 *byte
2258 _p0, err = BytePtrFromString(path)
2259 if err != nil {
2260 return
2261 }
2262 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2263 if e1 != 0 {
2264 err = errnoErr(e1)
2265 }
2266 return
2267}
2268
2269// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2270
2160func pipe(p *[2]_C_int) (err error) { 2271func pipe(p *[2]_C_int) (err error) {
2161 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) 2272 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
2162 if e1 != 0 { 2273 if e1 != 0 {
@@ -2185,3 +2296,18 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
2185 } 2296 }
2186 return 2297 return
2187} 2298}
2299
2300// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2301
2302func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
2303 var _p0 *byte
2304 _p0, err = BytePtrFromString(cmdline)
2305 if err != nil {
2306 return
2307 }
2308 _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
2309 if e1 != 0 {
2310 err = errnoErr(e1)
2311 }
2312 return
2313}
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 8b10ee1..914f25f 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func pipe2(p *[2]_C_int, flags int) (err error) { 1613func pipe2(p *[2]_C_int, flags int) (err error) {
1528 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 1614 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
1529 if e1 != 0 { 1615 if e1 != 0 {
@@ -1723,6 +1809,34 @@ func Dup2(oldfd int, newfd int) (err error) {
1723 1809
1724// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1810// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1725 1811
1812func EpollCreate(size int) (fd int, err error) {
1813 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1814 fd = int(r0)
1815 if e1 != 0 {
1816 err = errnoErr(e1)
1817 }
1818 return
1819}
1820
1821// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1822
1823func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1824 var _p0 unsafe.Pointer
1825 if len(events) > 0 {
1826 _p0 = unsafe.Pointer(&events[0])
1827 } else {
1828 _p0 = unsafe.Pointer(&_zero)
1829 }
1830 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
1831 n = int(r0)
1832 if e1 != 0 {
1833 err = errnoErr(e1)
1834 }
1835 return
1836}
1837
1838// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1839
1726func Fchown(fd int, uid int, gid int) (err error) { 1840func Fchown(fd int, uid int, gid int) (err error) {
1727 _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid)) 1841 _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid))
1728 if e1 != 0 { 1842 if e1 != 0 {
@@ -1841,6 +1955,16 @@ func Lstat(path string, stat *Stat_t) (err error) {
1841 1955
1842// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1843 1957
1958func Pause() (err error) {
1959 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
1960 if e1 != 0 {
1961 err = errnoErr(e1)
1962 }
1963 return
1964}
1965
1966// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1967
1844func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { 1968func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1845 r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) 1969 r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1846 written = int(r0) 1970 written = int(r0)
@@ -1959,8 +2083,8 @@ func Stat(path string, stat *Stat_t) (err error) {
1959 2083
1960// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2084// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1961 2085
1962func Gettimeofday(tv *Timeval) (err error) { 2086func Ustat(dev int, ubuf *Ustat_t) (err error) {
1963 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2087 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1964 if e1 != 0 { 2088 if e1 != 0 {
1965 err = errnoErr(e1) 2089 err = errnoErr(e1)
1966 } 2090 }
@@ -1969,15 +2093,13 @@ func Gettimeofday(tv *Timeval) (err error) {
1969 2093
1970// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2094// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1971 2095
1972func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 2096func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
1973 var _p0 unsafe.Pointer 2097 var _p0 *byte
1974 if len(events) > 0 { 2098 _p0, err = BytePtrFromString(path)
1975 _p0 = unsafe.Pointer(&events[0]) 2099 if err != nil {
1976 } else { 2100 return
1977 _p0 = unsafe.Pointer(&_zero)
1978 } 2101 }
1979 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) 2102 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
1980 n = int(r0)
1981 if e1 != 0 { 2103 if e1 != 0 {
1982 err = errnoErr(e1) 2104 err = errnoErr(e1)
1983 } 2105 }
@@ -1986,8 +2108,23 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1986 2108
1987// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1988 2110
1989func Pause() (err error) { 2111func Gettimeofday(tv *Timeval) (err error) {
1990 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) 2112 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
2113 if e1 != 0 {
2114 err = errnoErr(e1)
2115 }
2116 return
2117}
2118
2119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2120
2121func utimes(path string, times *[2]Timeval) (err error) {
2122 var _p0 *byte
2123 _p0, err = BytePtrFromString(path)
2124 if err != nil {
2125 return
2126 }
2127 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
1991 if e1 != 0 { 2128 if e1 != 0 {
1992 err = errnoErr(e1) 2129 err = errnoErr(e1)
1993 } 2130 }
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 8f276d6..1d6c556 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 1613func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1528 var _p0 unsafe.Pointer 1614 var _p0 unsafe.Pointer
1529 if len(events) > 0 { 1615 if len(events) > 0 {
@@ -1541,6 +1627,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1541 1627
1542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1628// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1543 1629
1630func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1631 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1632 if e1 != 0 {
1633 err = errnoErr(e1)
1634 }
1635 return
1636}
1637
1638// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1639
1544func Fchown(fd int, uid int, gid int) (err error) { 1640func Fchown(fd int, uid int, gid int) (err error) {
1545 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 1641 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1546 if e1 != 0 { 1642 if e1 != 0 {
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 61169b3..260631d 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len)) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len))
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func Dup2(oldfd int, newfd int) (err error) { 1613func Dup2(oldfd int, newfd int) (err error) {
1528 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1614 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1529 if e1 != 0 { 1615 if e1 != 0 {
@@ -1534,6 +1620,44 @@ func Dup2(oldfd int, newfd int) (err error) {
1534 1620
1535// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1536 1622
1623func EpollCreate(size int) (fd int, err error) {
1624 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1625 fd = int(r0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1628 }
1629 return
1630}
1631
1632// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1633
1634func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1635 var _p0 unsafe.Pointer
1636 if len(events) > 0 {
1637 _p0 = unsafe.Pointer(&events[0])
1638 } else {
1639 _p0 = unsafe.Pointer(&_zero)
1640 }
1641 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
1642 n = int(r0)
1643 if e1 != 0 {
1644 err = errnoErr(e1)
1645 }
1646 return
1647}
1648
1649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1650
1651func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1652 _, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length), uintptr(advice), 0, 0)
1653 if e1 != 0 {
1654 err = errnoErr(e1)
1655 }
1656 return
1657}
1658
1659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1660
1537func Fchown(fd int, uid int, gid int) (err error) { 1661func Fchown(fd int, uid int, gid int) (err error) {
1538 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 1662 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1539 if e1 != 0 { 1663 if e1 != 0 {
@@ -1737,9 +1861,9 @@ func Shutdown(fd int, how int) (err error) {
1737 1861
1738// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1862// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1739 1863
1740func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { 1864func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
1741 r0, r1, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) 1865 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1742 n = int64(int64(r0)<<32 | int64(r1)) 1866 n = int(r0)
1743 if e1 != 0 { 1867 if e1 != 0 {
1744 err = errnoErr(e1) 1868 err = errnoErr(e1)
1745 } 1869 }
@@ -1773,6 +1897,16 @@ func Truncate(path string, length int64) (err error) {
1773 1897
1774// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1898// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1775 1899
1900func Ustat(dev int, ubuf *Ustat_t) (err error) {
1901 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1902 if e1 != 0 {
1903 err = errnoErr(e1)
1904 }
1905 return
1906}
1907
1908// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1909
1776func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 1910func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1777 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 1911 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1778 fd = int(r0) 1912 fd = int(r0)
@@ -1983,6 +2117,21 @@ func Iopl(level int) (err error) {
1983 2117
1984// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1985 2119
2120func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2121 var _p0 *byte
2122 _p0, err = BytePtrFromString(path)
2123 if err != nil {
2124 return
2125 }
2126 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2127 if e1 != 0 {
2128 err = errnoErr(e1)
2129 }
2130 return
2131}
2132
2133// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2134
1986func Gettimeofday(tv *Timeval) (err error) { 2135func Gettimeofday(tv *Timeval) (err error) {
1987 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2136 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1988 if e1 != 0 { 2137 if e1 != 0 {
@@ -2004,13 +2153,13 @@ func Time(t *Time_t) (tt Time_t, err error) {
2004 2153
2005// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2154// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2006 2155
2007func Lstat(path string, stat *Stat_t) (err error) { 2156func Utime(path string, buf *Utimbuf) (err error) {
2008 var _p0 *byte 2157 var _p0 *byte
2009 _p0, err = BytePtrFromString(path) 2158 _p0, err = BytePtrFromString(path)
2010 if err != nil { 2159 if err != nil {
2011 return 2160 return
2012 } 2161 }
2013 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 2162 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
2014 if e1 != 0 { 2163 if e1 != 0 {
2015 err = errnoErr(e1) 2164 err = errnoErr(e1)
2016 } 2165 }
@@ -2019,8 +2168,13 @@ func Lstat(path string, stat *Stat_t) (err error) {
2019 2168
2020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2021 2170
2022func Fstat(fd int, stat *Stat_t) (err error) { 2171func utimes(path string, times *[2]Timeval) (err error) {
2023 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 2172 var _p0 *byte
2173 _p0, err = BytePtrFromString(path)
2174 if err != nil {
2175 return
2176 }
2177 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2024 if e1 != 0 { 2178 if e1 != 0 {
2025 err = errnoErr(e1) 2179 err = errnoErr(e1)
2026 } 2180 }
@@ -2029,13 +2183,13 @@ func Fstat(fd int, stat *Stat_t) (err error) {
2029 2183
2030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2031 2185
2032func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { 2186func Lstat(path string, stat *Stat_t) (err error) {
2033 var _p0 *byte 2187 var _p0 *byte
2034 _p0, err = BytePtrFromString(path) 2188 _p0, err = BytePtrFromString(path)
2035 if err != nil { 2189 if err != nil {
2036 return 2190 return
2037 } 2191 }
2038 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 2192 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2039 if e1 != 0 { 2193 if e1 != 0 {
2040 err = errnoErr(e1) 2194 err = errnoErr(e1)
2041 } 2195 }
@@ -2044,13 +2198,8 @@ func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
2044 2198
2045// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2199// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2046 2200
2047func Stat(path string, stat *Stat_t) (err error) { 2201func Fstat(fd int, stat *Stat_t) (err error) {
2048 var _p0 *byte 2202 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2049 _p0, err = BytePtrFromString(path)
2050 if err != nil {
2051 return
2052 }
2053 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2054 if e1 != 0 { 2203 if e1 != 0 {
2055 err = errnoErr(e1) 2204 err = errnoErr(e1)
2056 } 2205 }
@@ -2059,13 +2208,13 @@ func Stat(path string, stat *Stat_t) (err error) {
2059 2208
2060// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2209// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2061 2210
2062func Utime(path string, buf *Utimbuf) (err error) { 2211func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
2063 var _p0 *byte 2212 var _p0 *byte
2064 _p0, err = BytePtrFromString(path) 2213 _p0, err = BytePtrFromString(path)
2065 if err != nil { 2214 if err != nil {
2066 return 2215 return
2067 } 2216 }
2068 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) 2217 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
2069 if e1 != 0 { 2218 if e1 != 0 {
2070 err = errnoErr(e1) 2219 err = errnoErr(e1)
2071 } 2220 }
@@ -2074,15 +2223,13 @@ func Utime(path string, buf *Utimbuf) (err error) {
2074 2223
2075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2224// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2076 2225
2077func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 2226func Stat(path string, stat *Stat_t) (err error) {
2078 var _p0 unsafe.Pointer 2227 var _p0 *byte
2079 if len(events) > 0 { 2228 _p0, err = BytePtrFromString(path)
2080 _p0 = unsafe.Pointer(&events[0]) 2229 if err != nil {
2081 } else { 2230 return
2082 _p0 = unsafe.Pointer(&_zero)
2083 } 2231 }
2084 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) 2232 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2085 n = int(r0)
2086 if e1 != 0 { 2233 if e1 != 0 {
2087 err = errnoErr(e1) 2234 err = errnoErr(e1)
2088 } 2235 }
@@ -2111,6 +2258,18 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
2111 2258
2112// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2259// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2113 2260
2261func pipe() (p1 int, p2 int, err error) {
2262 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
2263 p1 = int(r0)
2264 p2 = int(r1)
2265 if e1 != 0 {
2266 err = errnoErr(e1)
2267 }
2268 return
2269}
2270
2271// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2272
2114func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { 2273func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
2115 r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) 2274 r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
2116 xaddr = uintptr(r0) 2275 xaddr = uintptr(r0)
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 4cb59b4..ff2d84f 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func Dup2(oldfd int, newfd int) (err error) { 1613func Dup2(oldfd int, newfd int) (err error) {
1528 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1614 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1529 if e1 != 0 { 1615 if e1 != 0 {
@@ -1534,6 +1620,17 @@ func Dup2(oldfd int, newfd int) (err error) {
1534 1620
1535// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1536 1622
1623func EpollCreate(size int) (fd int, err error) {
1624 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1625 fd = int(r0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1628 }
1629 return
1630}
1631
1632// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1633
1537func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 1634func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1538 var _p0 unsafe.Pointer 1635 var _p0 unsafe.Pointer
1539 if len(events) > 0 { 1636 if len(events) > 0 {
@@ -1551,6 +1648,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1551 1648
1552// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1553 1650
1651func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1652 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1653 if e1 != 0 {
1654 err = errnoErr(e1)
1655 }
1656 return
1657}
1658
1659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1660
1554func Fchown(fd int, uid int, gid int) (err error) { 1661func Fchown(fd int, uid int, gid int) (err error) {
1555 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 1662 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1556 if e1 != 0 { 1663 if e1 != 0 {
@@ -1860,6 +1967,16 @@ func Truncate(path string, length int64) (err error) {
1860 1967
1861// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1862 1969
1970func Ustat(dev int, ubuf *Ustat_t) (err error) {
1971 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1972 if e1 != 0 {
1973 err = errnoErr(e1)
1974 }
1975 return
1976}
1977
1978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1979
1863func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 1980func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1864 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 1981 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1865 fd = int(r0) 1982 fd = int(r0)
@@ -2050,6 +2167,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
2050 2167
2051// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2052 2169
2170func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2171 var _p0 *byte
2172 _p0, err = BytePtrFromString(path)
2173 if err != nil {
2174 return
2175 }
2176 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2177 if e1 != 0 {
2178 err = errnoErr(e1)
2179 }
2180 return
2181}
2182
2183// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2184
2053func Gettimeofday(tv *Timeval) (err error) { 2185func Gettimeofday(tv *Timeval) (err error) {
2054 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2186 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
2055 if e1 != 0 { 2187 if e1 != 0 {
@@ -2075,6 +2207,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
2075 2207
2076// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2208// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2077 2209
2210func utimes(path string, times *[2]Timeval) (err error) {
2211 var _p0 *byte
2212 _p0, err = BytePtrFromString(path)
2213 if err != nil {
2214 return
2215 }
2216 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2217 if e1 != 0 {
2218 err = errnoErr(e1)
2219 }
2220 return
2221}
2222
2223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2224
2078func pipe2(p *[2]_C_int, flags int) (err error) { 2225func pipe2(p *[2]_C_int, flags int) (err error) {
2079 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 2226 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
2080 if e1 != 0 { 2227 if e1 != 0 {
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 0b547ae..48d14e6 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func Dup2(oldfd int, newfd int) (err error) { 1613func Dup2(oldfd int, newfd int) (err error) {
1528 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1614 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1529 if e1 != 0 { 1615 if e1 != 0 {
@@ -1534,6 +1620,17 @@ func Dup2(oldfd int, newfd int) (err error) {
1534 1620
1535// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1536 1622
1623func EpollCreate(size int) (fd int, err error) {
1624 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1625 fd = int(r0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1628 }
1629 return
1630}
1631
1632// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1633
1537func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 1634func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1538 var _p0 unsafe.Pointer 1635 var _p0 unsafe.Pointer
1539 if len(events) > 0 { 1636 if len(events) > 0 {
@@ -1551,6 +1648,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1551 1648
1552// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1553 1650
1651func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1652 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1653 if e1 != 0 {
1654 err = errnoErr(e1)
1655 }
1656 return
1657}
1658
1659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1660
1554func Fchown(fd int, uid int, gid int) (err error) { 1661func Fchown(fd int, uid int, gid int) (err error) {
1555 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 1662 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1556 if e1 != 0 { 1663 if e1 != 0 {
@@ -1860,6 +1967,16 @@ func Truncate(path string, length int64) (err error) {
1860 1967
1861// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1862 1969
1970func Ustat(dev int, ubuf *Ustat_t) (err error) {
1971 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1972 if e1 != 0 {
1973 err = errnoErr(e1)
1974 }
1975 return
1976}
1977
1978// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1979
1863func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 1980func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1864 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 1981 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1865 fd = int(r0) 1982 fd = int(r0)
@@ -2050,6 +2167,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
2050 2167
2051// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2052 2169
2170func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2171 var _p0 *byte
2172 _p0, err = BytePtrFromString(path)
2173 if err != nil {
2174 return
2175 }
2176 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2177 if e1 != 0 {
2178 err = errnoErr(e1)
2179 }
2180 return
2181}
2182
2183// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2184
2053func Gettimeofday(tv *Timeval) (err error) { 2185func Gettimeofday(tv *Timeval) (err error) {
2054 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2186 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
2055 if e1 != 0 { 2187 if e1 != 0 {
@@ -2075,6 +2207,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
2075 2207
2076// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2208// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2077 2209
2210func utimes(path string, times *[2]Timeval) (err error) {
2211 var _p0 *byte
2212 _p0, err = BytePtrFromString(path)
2213 if err != nil {
2214 return
2215 }
2216 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2217 if e1 != 0 {
2218 err = errnoErr(e1)
2219 }
2220 return
2221}
2222
2223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2224
2078func pipe2(p *[2]_C_int, flags int) (err error) { 2225func pipe2(p *[2]_C_int, flags int) (err error) {
2079 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 2226 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
2080 if e1 != 0 { 2227 if e1 != 0 {
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 cd94d3a..12c17a9 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32))
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func Dup2(oldfd int, newfd int) (err error) { 1613func Dup2(oldfd int, newfd int) (err error) {
1528 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1614 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1529 if e1 != 0 { 1615 if e1 != 0 {
@@ -1534,6 +1620,44 @@ func Dup2(oldfd int, newfd int) (err error) {
1534 1620
1535// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1536 1622
1623func EpollCreate(size int) (fd int, err error) {
1624 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1625 fd = int(r0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1628 }
1629 return
1630}
1631
1632// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1633
1634func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1635 var _p0 unsafe.Pointer
1636 if len(events) > 0 {
1637 _p0 = unsafe.Pointer(&events[0])
1638 } else {
1639 _p0 = unsafe.Pointer(&_zero)
1640 }
1641 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
1642 n = int(r0)
1643 if e1 != 0 {
1644 err = errnoErr(e1)
1645 }
1646 return
1647}
1648
1649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1650
1651func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1652 _, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice), 0, 0)
1653 if e1 != 0 {
1654 err = errnoErr(e1)
1655 }
1656 return
1657}
1658
1659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1660
1537func Fchown(fd int, uid int, gid int) (err error) { 1661func Fchown(fd int, uid int, gid int) (err error) {
1538 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 1662 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1539 if e1 != 0 { 1663 if e1 != 0 {
@@ -1737,9 +1861,9 @@ func Shutdown(fd int, how int) (err error) {
1737 1861
1738// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1862// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1739 1863
1740func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { 1864func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
1741 r0, r1, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) 1865 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1742 n = int64(int64(r1)<<32 | int64(r0)) 1866 n = int(r0)
1743 if e1 != 0 { 1867 if e1 != 0 {
1744 err = errnoErr(e1) 1868 err = errnoErr(e1)
1745 } 1869 }
@@ -1773,6 +1897,16 @@ func Truncate(path string, length int64) (err error) {
1773 1897
1774// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1898// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1775 1899
1900func Ustat(dev int, ubuf *Ustat_t) (err error) {
1901 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1902 if e1 != 0 {
1903 err = errnoErr(e1)
1904 }
1905 return
1906}
1907
1908// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1909
1776func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 1910func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1777 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 1911 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1778 fd = int(r0) 1912 fd = int(r0)
@@ -1983,6 +2117,21 @@ func Iopl(level int) (err error) {
1983 2117
1984// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1985 2119
2120func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2121 var _p0 *byte
2122 _p0, err = BytePtrFromString(path)
2123 if err != nil {
2124 return
2125 }
2126 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2127 if e1 != 0 {
2128 err = errnoErr(e1)
2129 }
2130 return
2131}
2132
2133// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2134
1986func Gettimeofday(tv *Timeval) (err error) { 2135func Gettimeofday(tv *Timeval) (err error) {
1987 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2136 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1988 if e1 != 0 { 2137 if e1 != 0 {
@@ -2004,13 +2153,13 @@ func Time(t *Time_t) (tt Time_t, err error) {
2004 2153
2005// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2154// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2006 2155
2007func Lstat(path string, stat *Stat_t) (err error) { 2156func Utime(path string, buf *Utimbuf) (err error) {
2008 var _p0 *byte 2157 var _p0 *byte
2009 _p0, err = BytePtrFromString(path) 2158 _p0, err = BytePtrFromString(path)
2010 if err != nil { 2159 if err != nil {
2011 return 2160 return
2012 } 2161 }
2013 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 2162 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
2014 if e1 != 0 { 2163 if e1 != 0 {
2015 err = errnoErr(e1) 2164 err = errnoErr(e1)
2016 } 2165 }
@@ -2019,8 +2168,13 @@ func Lstat(path string, stat *Stat_t) (err error) {
2019 2168
2020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2021 2170
2022func Fstat(fd int, stat *Stat_t) (err error) { 2171func utimes(path string, times *[2]Timeval) (err error) {
2023 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 2172 var _p0 *byte
2173 _p0, err = BytePtrFromString(path)
2174 if err != nil {
2175 return
2176 }
2177 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2024 if e1 != 0 { 2178 if e1 != 0 {
2025 err = errnoErr(e1) 2179 err = errnoErr(e1)
2026 } 2180 }
@@ -2029,13 +2183,13 @@ func Fstat(fd int, stat *Stat_t) (err error) {
2029 2183
2030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2031 2185
2032func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { 2186func Lstat(path string, stat *Stat_t) (err error) {
2033 var _p0 *byte 2187 var _p0 *byte
2034 _p0, err = BytePtrFromString(path) 2188 _p0, err = BytePtrFromString(path)
2035 if err != nil { 2189 if err != nil {
2036 return 2190 return
2037 } 2191 }
2038 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 2192 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2039 if e1 != 0 { 2193 if e1 != 0 {
2040 err = errnoErr(e1) 2194 err = errnoErr(e1)
2041 } 2195 }
@@ -2044,13 +2198,8 @@ func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
2044 2198
2045// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2199// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2046 2200
2047func Stat(path string, stat *Stat_t) (err error) { 2201func Fstat(fd int, stat *Stat_t) (err error) {
2048 var _p0 *byte 2202 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2049 _p0, err = BytePtrFromString(path)
2050 if err != nil {
2051 return
2052 }
2053 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2054 if e1 != 0 { 2203 if e1 != 0 {
2055 err = errnoErr(e1) 2204 err = errnoErr(e1)
2056 } 2205 }
@@ -2059,13 +2208,13 @@ func Stat(path string, stat *Stat_t) (err error) {
2059 2208
2060// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2209// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2061 2210
2062func Utime(path string, buf *Utimbuf) (err error) { 2211func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
2063 var _p0 *byte 2212 var _p0 *byte
2064 _p0, err = BytePtrFromString(path) 2213 _p0, err = BytePtrFromString(path)
2065 if err != nil { 2214 if err != nil {
2066 return 2215 return
2067 } 2216 }
2068 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) 2217 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
2069 if e1 != 0 { 2218 if e1 != 0 {
2070 err = errnoErr(e1) 2219 err = errnoErr(e1)
2071 } 2220 }
@@ -2074,15 +2223,13 @@ func Utime(path string, buf *Utimbuf) (err error) {
2074 2223
2075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2224// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2076 2225
2077func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 2226func Stat(path string, stat *Stat_t) (err error) {
2078 var _p0 unsafe.Pointer 2227 var _p0 *byte
2079 if len(events) > 0 { 2228 _p0, err = BytePtrFromString(path)
2080 _p0 = unsafe.Pointer(&events[0]) 2229 if err != nil {
2081 } else { 2230 return
2082 _p0 = unsafe.Pointer(&_zero)
2083 } 2231 }
2084 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) 2232 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2085 n = int(r0)
2086 if e1 != 0 { 2233 if e1 != 0 {
2087 err = errnoErr(e1) 2234 err = errnoErr(e1)
2088 } 2235 }
@@ -2111,6 +2258,18 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
2111 2258
2112// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2259// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2113 2260
2261func pipe() (p1 int, p2 int, err error) {
2262 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
2263 p1 = int(r0)
2264 p2 = int(r1)
2265 if e1 != 0 {
2266 err = errnoErr(e1)
2267 }
2268 return
2269}
2270
2271// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2272
2114func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { 2273func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
2115 r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) 2274 r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
2116 xaddr = uintptr(r0) 2275 xaddr = uintptr(r0)
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 cdad555..c8ca427 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,42 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1613func Dup2(oldfd int, newfd int) (err error) {
1614 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1615 if e1 != 0 {
1616 err = errnoErr(e1)
1617 }
1618 return
1619}
1620
1621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1622
1623func EpollCreate(size int) (fd int, err error) {
1624 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1625 fd = int(r0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1628 }
1629 return
1630}
1631
1632// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1633
1527func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 1634func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1528 var _p0 unsafe.Pointer 1635 var _p0 unsafe.Pointer
1529 if len(events) > 0 { 1636 if len(events) > 0 {
@@ -1541,8 +1648,8 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1541 1648
1542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1543 1650
1544func Dup2(oldfd int, newfd int) (err error) { 1651func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1545 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1652 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1546 if e1 != 0 { 1653 if e1 != 0 {
1547 err = errnoErr(e1) 1654 err = errnoErr(e1)
1548 } 1655 }
@@ -1917,8 +2024,13 @@ func Statfs(path string, buf *Statfs_t) (err error) {
1917 2024
1918// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2025// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1919 2026
1920func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { 2027func Truncate(path string, length int64) (err error) {
1921 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) 2028 var _p0 *byte
2029 _p0, err = BytePtrFromString(path)
2030 if err != nil {
2031 return
2032 }
2033 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1922 if e1 != 0 { 2034 if e1 != 0 {
1923 err = errnoErr(e1) 2035 err = errnoErr(e1)
1924 } 2036 }
@@ -1927,13 +2039,8 @@ func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
1927 2039
1928// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2040// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1929 2041
1930func Truncate(path string, length int64) (err error) { 2042func Ustat(dev int, ubuf *Ustat_t) (err error) {
1931 var _p0 *byte 2043 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1932 _p0, err = BytePtrFromString(path)
1933 if err != nil {
1934 return
1935 }
1936 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1937 if e1 != 0 { 2044 if e1 != 0 {
1938 err = errnoErr(e1) 2045 err = errnoErr(e1)
1939 } 2046 }
@@ -2132,6 +2239,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
2132 2239
2133// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2240// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2134 2241
2242func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2243 var _p0 *byte
2244 _p0, err = BytePtrFromString(path)
2245 if err != nil {
2246 return
2247 }
2248 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2249 if e1 != 0 {
2250 err = errnoErr(e1)
2251 }
2252 return
2253}
2254
2255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2256
2135func Gettimeofday(tv *Timeval) (err error) { 2257func Gettimeofday(tv *Timeval) (err error) {
2136 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2258 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
2137 if e1 != 0 { 2259 if e1 != 0 {
@@ -2168,6 +2290,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
2168 2290
2169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2170 2292
2293func utimes(path string, times *[2]Timeval) (err error) {
2294 var _p0 *byte
2295 _p0, err = BytePtrFromString(path)
2296 if err != nil {
2297 return
2298 }
2299 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2300 if e1 != 0 {
2301 err = errnoErr(e1)
2302 }
2303 return
2304}
2305
2306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2307
2171func pipe(p *[2]_C_int) (err error) { 2308func pipe(p *[2]_C_int) (err error) {
2172 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) 2309 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
2173 if e1 != 0 { 2310 if e1 != 0 {
@@ -2196,3 +2333,28 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
2196 } 2333 }
2197 return 2334 return
2198} 2335}
2336
2337// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2338
2339func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
2340 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0)
2341 if e1 != 0 {
2342 err = errnoErr(e1)
2343 }
2344 return
2345}
2346
2347// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2348
2349func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
2350 var _p0 *byte
2351 _p0, err = BytePtrFromString(cmdline)
2352 if err != nil {
2353 return
2354 }
2355 _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
2356 if e1 != 0 {
2357 err = errnoErr(e1)
2358 }
2359 return
2360}
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 38f4e44..870c8f6 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,42 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1613func Dup2(oldfd int, newfd int) (err error) {
1614 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1615 if e1 != 0 {
1616 err = errnoErr(e1)
1617 }
1618 return
1619}
1620
1621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1622
1623func EpollCreate(size int) (fd int, err error) {
1624 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1625 fd = int(r0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1628 }
1629 return
1630}
1631
1632// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1633
1527func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 1634func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1528 var _p0 unsafe.Pointer 1635 var _p0 unsafe.Pointer
1529 if len(events) > 0 { 1636 if len(events) > 0 {
@@ -1541,8 +1648,8 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1541 1648
1542// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1543 1650
1544func Dup2(oldfd int, newfd int) (err error) { 1651func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1545 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1652 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1546 if e1 != 0 { 1653 if e1 != 0 {
1547 err = errnoErr(e1) 1654 err = errnoErr(e1)
1548 } 1655 }
@@ -1917,8 +2024,13 @@ func Statfs(path string, buf *Statfs_t) (err error) {
1917 2024
1918// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2025// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1919 2026
1920func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { 2027func Truncate(path string, length int64) (err error) {
1921 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) 2028 var _p0 *byte
2029 _p0, err = BytePtrFromString(path)
2030 if err != nil {
2031 return
2032 }
2033 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1922 if e1 != 0 { 2034 if e1 != 0 {
1923 err = errnoErr(e1) 2035 err = errnoErr(e1)
1924 } 2036 }
@@ -1927,13 +2039,8 @@ func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
1927 2039
1928// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2040// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1929 2041
1930func Truncate(path string, length int64) (err error) { 2042func Ustat(dev int, ubuf *Ustat_t) (err error) {
1931 var _p0 *byte 2043 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1932 _p0, err = BytePtrFromString(path)
1933 if err != nil {
1934 return
1935 }
1936 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1937 if e1 != 0 { 2044 if e1 != 0 {
1938 err = errnoErr(e1) 2045 err = errnoErr(e1)
1939 } 2046 }
@@ -2132,6 +2239,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
2132 2239
2133// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2240// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2134 2241
2242func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2243 var _p0 *byte
2244 _p0, err = BytePtrFromString(path)
2245 if err != nil {
2246 return
2247 }
2248 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2249 if e1 != 0 {
2250 err = errnoErr(e1)
2251 }
2252 return
2253}
2254
2255// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2256
2135func Gettimeofday(tv *Timeval) (err error) { 2257func Gettimeofday(tv *Timeval) (err error) {
2136 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2258 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
2137 if e1 != 0 { 2259 if e1 != 0 {
@@ -2168,6 +2290,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
2168 2290
2169// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2170 2292
2293func utimes(path string, times *[2]Timeval) (err error) {
2294 var _p0 *byte
2295 _p0, err = BytePtrFromString(path)
2296 if err != nil {
2297 return
2298 }
2299 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2300 if e1 != 0 {
2301 err = errnoErr(e1)
2302 }
2303 return
2304}
2305
2306// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2307
2171func pipe(p *[2]_C_int) (err error) { 2308func pipe(p *[2]_C_int) (err error) {
2172 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) 2309 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
2173 if e1 != 0 { 2310 if e1 != 0 {
@@ -2196,3 +2333,28 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
2196 } 2333 }
2197 return 2334 return
2198} 2335}
2336
2337// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2338
2339func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
2340 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0)
2341 if e1 != 0 {
2342 err = errnoErr(e1)
2343 }
2344 return
2345}
2346
2347// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2348
2349func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
2350 var _p0 *byte
2351 _p0, err = BytePtrFromString(cmdline)
2352 if err != nil {
2353 return
2354 }
2355 _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
2356 if e1 != 0 {
2357 err = errnoErr(e1)
2358 }
2359 return
2360}
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
new file mode 100644
index 0000000..542f3a3
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
@@ -0,0 +1,2140 @@
1// mksyscall.pl -tags linux,riscv64 syscall_linux.go syscall_linux_riscv64.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build linux,riscv64
5
6package unix
7
8import (
9 "syscall"
10 "unsafe"
11)
12
13var _ syscall.Errno
14
15// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
16
17func fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte
19 _p0, err = BytePtrFromString(path)
20 if err != nil {
21 return
22 }
23 _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
24 if e1 != 0 {
25 err = errnoErr(e1)
26 }
27 return
28}
29
30// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
31
32func ioctl(fd int, req uint, arg uintptr) (err error) {
33 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
34 if e1 != 0 {
35 err = errnoErr(e1)
36 }
37 return
38}
39
40// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
41
42func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
43 var _p0 *byte
44 _p0, err = BytePtrFromString(oldpath)
45 if err != nil {
46 return
47 }
48 var _p1 *byte
49 _p1, err = BytePtrFromString(newpath)
50 if err != nil {
51 return
52 }
53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
54 if e1 != 0 {
55 err = errnoErr(e1)
56 }
57 return
58}
59
60// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
61
62func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
63 var _p0 *byte
64 _p0, err = BytePtrFromString(path)
65 if err != nil {
66 return
67 }
68 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
69 fd = int(r0)
70 if e1 != 0 {
71 err = errnoErr(e1)
72 }
73 return
74}
75
76// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
77
78func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
79 r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
80 n = int(r0)
81 if e1 != 0 {
82 err = errnoErr(e1)
83 }
84 return
85}
86
87// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
88
89func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
90 var _p0 *byte
91 _p0, err = BytePtrFromString(path)
92 if err != nil {
93 return
94 }
95 var _p1 unsafe.Pointer
96 if len(buf) > 0 {
97 _p1 = unsafe.Pointer(&buf[0])
98 } else {
99 _p1 = unsafe.Pointer(&_zero)
100 }
101 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
102 n = int(r0)
103 if e1 != 0 {
104 err = errnoErr(e1)
105 }
106 return
107}
108
109// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110
111func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
112 var _p0 *byte
113 _p0, err = BytePtrFromString(oldpath)
114 if err != nil {
115 return
116 }
117 var _p1 *byte
118 _p1, err = BytePtrFromString(newpath)
119 if err != nil {
120 return
121 }
122 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
123 if e1 != 0 {
124 err = errnoErr(e1)
125 }
126 return
127}
128
129// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
130
131func Unlinkat(dirfd int, path string, flags int) (err error) {
132 var _p0 *byte
133 _p0, err = BytePtrFromString(path)
134 if err != nil {
135 return
136 }
137 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
138 if e1 != 0 {
139 err = errnoErr(e1)
140 }
141 return
142}
143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145
146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func Getcwd(buf []byte) (n int, err error) {
162 var _p0 unsafe.Pointer
163 if len(buf) > 0 {
164 _p0 = unsafe.Pointer(&buf[0])
165 } else {
166 _p0 = unsafe.Pointer(&_zero)
167 }
168 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
169 n = int(r0)
170 if e1 != 0 {
171 err = errnoErr(e1)
172 }
173 return
174}
175
176// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
177
178func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
179 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
180 wpid = int(r0)
181 if e1 != 0 {
182 err = errnoErr(e1)
183 }
184 return
185}
186
187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
188
189func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
190 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
191 ret = int(r0)
192 if e1 != 0 {
193 err = errnoErr(e1)
194 }
195 return
196}
197
198// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
199
200func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
201 var _p0 unsafe.Pointer
202 if len(buf) > 0 {
203 _p0 = unsafe.Pointer(&buf[0])
204 } else {
205 _p0 = unsafe.Pointer(&_zero)
206 }
207 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
208 ret = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
218 var _p0 *byte
219 _p0, err = BytePtrFromString(arg2)
220 if err != nil {
221 return
222 }
223 r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
224 ret = int(r0)
225 if e1 != 0 {
226 err = errnoErr(e1)
227 }
228 return
229}
230
231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
232
233func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
234 var _p0 *byte
235 _p0, err = BytePtrFromString(arg3)
236 if err != nil {
237 return
238 }
239 var _p1 *byte
240 _p1, err = BytePtrFromString(arg4)
241 if err != nil {
242 return
243 }
244 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
245 ret = int(r0)
246 if e1 != 0 {
247 err = errnoErr(e1)
248 }
249 return
250}
251
252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
253
254func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
255 var _p0 unsafe.Pointer
256 if len(payload) > 0 {
257 _p0 = unsafe.Pointer(&payload[0])
258 } else {
259 _p0 = unsafe.Pointer(&_zero)
260 }
261 _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
262 if e1 != 0 {
263 err = errnoErr(e1)
264 }
265 return
266}
267
268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
271 var _p0 unsafe.Pointer
272 if len(buf) > 0 {
273 _p0 = unsafe.Pointer(&buf[0])
274 } else {
275 _p0 = unsafe.Pointer(&_zero)
276 }
277 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
278 ret = int(r0)
279 if e1 != 0 {
280 err = errnoErr(e1)
281 }
282 return
283}
284
285// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
286
287func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
288 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
289 if e1 != 0 {
290 err = errnoErr(e1)
291 }
292 return
293}
294
295// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
296
297func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
298 var _p0 *byte
299 _p0, err = BytePtrFromString(arg)
300 if err != nil {
301 return
302 }
303 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
304 if e1 != 0 {
305 err = errnoErr(e1)
306 }
307 return
308}
309
310// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
311
312func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
313 var _p0 *byte
314 _p0, err = BytePtrFromString(source)
315 if err != nil {
316 return
317 }
318 var _p1 *byte
319 _p1, err = BytePtrFromString(target)
320 if err != nil {
321 return
322 }
323 var _p2 *byte
324 _p2, err = BytePtrFromString(fstype)
325 if err != nil {
326 return
327 }
328 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
329 if e1 != 0 {
330 err = errnoErr(e1)
331 }
332 return
333}
334
335// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
336
337func Acct(path string) (err error) {
338 var _p0 *byte
339 _p0, err = BytePtrFromString(path)
340 if err != nil {
341 return
342 }
343 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
344 if e1 != 0 {
345 err = errnoErr(e1)
346 }
347 return
348}
349
350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
351
352func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
353 var _p0 *byte
354 _p0, err = BytePtrFromString(keyType)
355 if err != nil {
356 return
357 }
358 var _p1 *byte
359 _p1, err = BytePtrFromString(description)
360 if err != nil {
361 return
362 }
363 var _p2 unsafe.Pointer
364 if len(payload) > 0 {
365 _p2 = unsafe.Pointer(&payload[0])
366 } else {
367 _p2 = unsafe.Pointer(&_zero)
368 }
369 r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
370 id = int(r0)
371 if e1 != 0 {
372 err = errnoErr(e1)
373 }
374 return
375}
376
377// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
378
379func Adjtimex(buf *Timex) (state int, err error) {
380 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
381 state = int(r0)
382 if e1 != 0 {
383 err = errnoErr(e1)
384 }
385 return
386}
387
388// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
389
390func Chdir(path string) (err error) {
391 var _p0 *byte
392 _p0, err = BytePtrFromString(path)
393 if err != nil {
394 return
395 }
396 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
397 if e1 != 0 {
398 err = errnoErr(e1)
399 }
400 return
401}
402
403// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
404
405func Chroot(path string) (err error) {
406 var _p0 *byte
407 _p0, err = BytePtrFromString(path)
408 if err != nil {
409 return
410 }
411 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
412 if e1 != 0 {
413 err = errnoErr(e1)
414 }
415 return
416}
417
418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
430func ClockGettime(clockid int32, time *Timespec) (err error) {
431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
432 if e1 != 0 {
433 err = errnoErr(e1)
434 }
435 return
436}
437
438// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
439
440func Close(fd int) (err error) {
441 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
442 if e1 != 0 {
443 err = errnoErr(e1)
444 }
445 return
446}
447
448// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
449
450func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
451 r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
452 n = int(r0)
453 if e1 != 0 {
454 err = errnoErr(e1)
455 }
456 return
457}
458
459// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460
461func Dup(oldfd int) (fd int, err error) {
462 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
463 fd = int(r0)
464 if e1 != 0 {
465 err = errnoErr(e1)
466 }
467 return
468}
469
470// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
471
472func Dup3(oldfd int, newfd int, flags int) (err error) {
473 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
474 if e1 != 0 {
475 err = errnoErr(e1)
476 }
477 return
478}
479
480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
481
482func EpollCreate1(flag int) (fd int, err error) {
483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
484 fd = int(r0)
485 if e1 != 0 {
486 err = errnoErr(e1)
487 }
488 return
489}
490
491// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492
493func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
494 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
495 if e1 != 0 {
496 err = errnoErr(e1)
497 }
498 return
499}
500
501// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
502
503func Eventfd(initval uint, flags int) (fd int, err error) {
504 r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
505 fd = int(r0)
506 if e1 != 0 {
507 err = errnoErr(e1)
508 }
509 return
510}
511
512// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
513
514func Exit(code int) {
515 SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
516 return
517}
518
519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
520
521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
523 if e1 != 0 {
524 err = errnoErr(e1)
525 }
526 return
527}
528
529// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
530
531func Fchdir(fd int) (err error) {
532 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
533 if e1 != 0 {
534 err = errnoErr(e1)
535 }
536 return
537}
538
539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
540
541func Fchmod(fd int, mode uint32) (err error) {
542 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
543 if e1 != 0 {
544 err = errnoErr(e1)
545 }
546 return
547}
548
549// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
550
551func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
552 var _p0 *byte
553 _p0, err = BytePtrFromString(path)
554 if err != nil {
555 return
556 }
557 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
558 if e1 != 0 {
559 err = errnoErr(e1)
560 }
561 return
562}
563
564// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
565
566func fcntl(fd int, cmd int, arg int) (val int, err error) {
567 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
568 val = int(r0)
569 if e1 != 0 {
570 err = errnoErr(e1)
571 }
572 return
573}
574
575// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
576
577func Fdatasync(fd int) (err error) {
578 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
579 if e1 != 0 {
580 err = errnoErr(e1)
581 }
582 return
583}
584
585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
626func Flock(fd int, how int) (err error) {
627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
628 if e1 != 0 {
629 err = errnoErr(e1)
630 }
631 return
632}
633
634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
672func Fsync(fd int) (err error) {
673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
674 if e1 != 0 {
675 err = errnoErr(e1)
676 }
677 return
678}
679
680// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
681
682func Getdents(fd int, buf []byte) (n int, err error) {
683 var _p0 unsafe.Pointer
684 if len(buf) > 0 {
685 _p0 = unsafe.Pointer(&buf[0])
686 } else {
687 _p0 = unsafe.Pointer(&_zero)
688 }
689 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
690 n = int(r0)
691 if e1 != 0 {
692 err = errnoErr(e1)
693 }
694 return
695}
696
697// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
698
699func Getpgid(pid int) (pgid int, err error) {
700 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
701 pgid = int(r0)
702 if e1 != 0 {
703 err = errnoErr(e1)
704 }
705 return
706}
707
708// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
709
710func Getpid() (pid int) {
711 r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
712 pid = int(r0)
713 return
714}
715
716// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
717
718func Getppid() (ppid int) {
719 r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
720 ppid = int(r0)
721 return
722}
723
724// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
725
726func Getpriority(which int, who int) (prio int, err error) {
727 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
728 prio = int(r0)
729 if e1 != 0 {
730 err = errnoErr(e1)
731 }
732 return
733}
734
735// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
736
737func Getrandom(buf []byte, flags int) (n int, err error) {
738 var _p0 unsafe.Pointer
739 if len(buf) > 0 {
740 _p0 = unsafe.Pointer(&buf[0])
741 } else {
742 _p0 = unsafe.Pointer(&_zero)
743 }
744 r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags))
745 n = int(r0)
746 if e1 != 0 {
747 err = errnoErr(e1)
748 }
749 return
750}
751
752// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
753
754func Getrusage(who int, rusage *Rusage) (err error) {
755 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
756 if e1 != 0 {
757 err = errnoErr(e1)
758 }
759 return
760}
761
762// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
763
764func Getsid(pid int) (sid int, err error) {
765 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
766 sid = int(r0)
767 if e1 != 0 {
768 err = errnoErr(e1)
769 }
770 return
771}
772
773// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
774
775func Gettid() (tid int) {
776 r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
777 tid = int(r0)
778 return
779}
780
781// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
782
783func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
784 var _p0 *byte
785 _p0, err = BytePtrFromString(path)
786 if err != nil {
787 return
788 }
789 var _p1 *byte
790 _p1, err = BytePtrFromString(attr)
791 if err != nil {
792 return
793 }
794 var _p2 unsafe.Pointer
795 if len(dest) > 0 {
796 _p2 = unsafe.Pointer(&dest[0])
797 } else {
798 _p2 = unsafe.Pointer(&_zero)
799 }
800 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
801 sz = int(r0)
802 if e1 != 0 {
803 err = errnoErr(e1)
804 }
805 return
806}
807
808// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
809
810func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
811 var _p0 *byte
812 _p0, err = BytePtrFromString(pathname)
813 if err != nil {
814 return
815 }
816 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
817 watchdesc = int(r0)
818 if e1 != 0 {
819 err = errnoErr(e1)
820 }
821 return
822}
823
824// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
825
826func InotifyInit1(flags int) (fd int, err error) {
827 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
828 fd = int(r0)
829 if e1 != 0 {
830 err = errnoErr(e1)
831 }
832 return
833}
834
835// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
836
837func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
838 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
839 success = int(r0)
840 if e1 != 0 {
841 err = errnoErr(e1)
842 }
843 return
844}
845
846// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
847
848func Kill(pid int, sig syscall.Signal) (err error) {
849 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
850 if e1 != 0 {
851 err = errnoErr(e1)
852 }
853 return
854}
855
856// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
857
858func Klogctl(typ int, buf []byte) (n int, err error) {
859 var _p0 unsafe.Pointer
860 if len(buf) > 0 {
861 _p0 = unsafe.Pointer(&buf[0])
862 } else {
863 _p0 = unsafe.Pointer(&_zero)
864 }
865 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
866 n = int(r0)
867 if e1 != 0 {
868 err = errnoErr(e1)
869 }
870 return
871}
872
873// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
874
875func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
876 var _p0 *byte
877 _p0, err = BytePtrFromString(path)
878 if err != nil {
879 return
880 }
881 var _p1 *byte
882 _p1, err = BytePtrFromString(attr)
883 if err != nil {
884 return
885 }
886 var _p2 unsafe.Pointer
887 if len(dest) > 0 {
888 _p2 = unsafe.Pointer(&dest[0])
889 } else {
890 _p2 = unsafe.Pointer(&_zero)
891 }
892 r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
893 sz = int(r0)
894 if e1 != 0 {
895 err = errnoErr(e1)
896 }
897 return
898}
899
900// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
901
902func Listxattr(path string, dest []byte) (sz int, err error) {
903 var _p0 *byte
904 _p0, err = BytePtrFromString(path)
905 if err != nil {
906 return
907 }
908 var _p1 unsafe.Pointer
909 if len(dest) > 0 {
910 _p1 = unsafe.Pointer(&dest[0])
911 } else {
912 _p1 = unsafe.Pointer(&_zero)
913 }
914 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
915 sz = int(r0)
916 if e1 != 0 {
917 err = errnoErr(e1)
918 }
919 return
920}
921
922// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
923
924func Llistxattr(path string, dest []byte) (sz int, err error) {
925 var _p0 *byte
926 _p0, err = BytePtrFromString(path)
927 if err != nil {
928 return
929 }
930 var _p1 unsafe.Pointer
931 if len(dest) > 0 {
932 _p1 = unsafe.Pointer(&dest[0])
933 } else {
934 _p1 = unsafe.Pointer(&_zero)
935 }
936 r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
937 sz = int(r0)
938 if e1 != 0 {
939 err = errnoErr(e1)
940 }
941 return
942}
943
944// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
945
946func Lremovexattr(path string, attr string) (err error) {
947 var _p0 *byte
948 _p0, err = BytePtrFromString(path)
949 if err != nil {
950 return
951 }
952 var _p1 *byte
953 _p1, err = BytePtrFromString(attr)
954 if err != nil {
955 return
956 }
957 _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
958 if e1 != 0 {
959 err = errnoErr(e1)
960 }
961 return
962}
963
964// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
965
966func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
967 var _p0 *byte
968 _p0, err = BytePtrFromString(path)
969 if err != nil {
970 return
971 }
972 var _p1 *byte
973 _p1, err = BytePtrFromString(attr)
974 if err != nil {
975 return
976 }
977 var _p2 unsafe.Pointer
978 if len(data) > 0 {
979 _p2 = unsafe.Pointer(&data[0])
980 } else {
981 _p2 = unsafe.Pointer(&_zero)
982 }
983 _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
984 if e1 != 0 {
985 err = errnoErr(e1)
986 }
987 return
988}
989
990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1009 var _p0 *byte
1010 _p0, err = BytePtrFromString(path)
1011 if err != nil {
1012 return
1013 }
1014 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1015 if e1 != 0 {
1016 err = errnoErr(e1)
1017 }
1018 return
1019}
1020
1021// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1022
1023func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
1024 var _p0 *byte
1025 _p0, err = BytePtrFromString(path)
1026 if err != nil {
1027 return
1028 }
1029 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
1030 if e1 != 0 {
1031 err = errnoErr(e1)
1032 }
1033 return
1034}
1035
1036// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1037
1038func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1039 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
1040 if e1 != 0 {
1041 err = errnoErr(e1)
1042 }
1043 return
1044}
1045
1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
1059func PivotRoot(newroot string, putold string) (err error) {
1060 var _p0 *byte
1061 _p0, err = BytePtrFromString(newroot)
1062 if err != nil {
1063 return
1064 }
1065 var _p1 *byte
1066 _p1, err = BytePtrFromString(putold)
1067 if err != nil {
1068 return
1069 }
1070 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1071 if e1 != 0 {
1072 err = errnoErr(e1)
1073 }
1074 return
1075}
1076
1077// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1078
1079func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
1080 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
1081 if e1 != 0 {
1082 err = errnoErr(e1)
1083 }
1084 return
1085}
1086
1087// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1088
1089func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
1090 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
1091 if e1 != 0 {
1092 err = errnoErr(e1)
1093 }
1094 return
1095}
1096
1097// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1098
1099func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
1100 r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
1101 n = int(r0)
1102 if e1 != 0 {
1103 err = errnoErr(e1)
1104 }
1105 return
1106}
1107
1108// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1109
1110func read(fd int, p []byte) (n int, err error) {
1111 var _p0 unsafe.Pointer
1112 if len(p) > 0 {
1113 _p0 = unsafe.Pointer(&p[0])
1114 } else {
1115 _p0 = unsafe.Pointer(&_zero)
1116 }
1117 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1118 n = int(r0)
1119 if e1 != 0 {
1120 err = errnoErr(e1)
1121 }
1122 return
1123}
1124
1125// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1126
1127func Removexattr(path string, attr string) (err error) {
1128 var _p0 *byte
1129 _p0, err = BytePtrFromString(path)
1130 if err != nil {
1131 return
1132 }
1133 var _p1 *byte
1134 _p1, err = BytePtrFromString(attr)
1135 if err != nil {
1136 return
1137 }
1138 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1139 if e1 != 0 {
1140 err = errnoErr(e1)
1141 }
1142 return
1143}
1144
1145// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1146
1147func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
1148 var _p0 *byte
1149 _p0, err = BytePtrFromString(oldpath)
1150 if err != nil {
1151 return
1152 }
1153 var _p1 *byte
1154 _p1, err = BytePtrFromString(newpath)
1155 if err != nil {
1156 return
1157 }
1158 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1159 if e1 != 0 {
1160 err = errnoErr(e1)
1161 }
1162 return
1163}
1164
1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1188 var _p0 *byte
1189 _p0, err = BytePtrFromString(keyType)
1190 if err != nil {
1191 return
1192 }
1193 var _p1 *byte
1194 _p1, err = BytePtrFromString(description)
1195 if err != nil {
1196 return
1197 }
1198 var _p2 *byte
1199 _p2, err = BytePtrFromString(callback)
1200 if err != nil {
1201 return
1202 }
1203 r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
1204 id = int(r0)
1205 if e1 != 0 {
1206 err = errnoErr(e1)
1207 }
1208 return
1209}
1210
1211// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1212
1213func Setdomainname(p []byte) (err error) {
1214 var _p0 unsafe.Pointer
1215 if len(p) > 0 {
1216 _p0 = unsafe.Pointer(&p[0])
1217 } else {
1218 _p0 = unsafe.Pointer(&_zero)
1219 }
1220 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
1221 if e1 != 0 {
1222 err = errnoErr(e1)
1223 }
1224 return
1225}
1226
1227// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1228
1229func Sethostname(p []byte) (err error) {
1230 var _p0 unsafe.Pointer
1231 if len(p) > 0 {
1232 _p0 = unsafe.Pointer(&p[0])
1233 } else {
1234 _p0 = unsafe.Pointer(&_zero)
1235 }
1236 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
1237 if e1 != 0 {
1238 err = errnoErr(e1)
1239 }
1240 return
1241}
1242
1243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1244
1245func Setpgid(pid int, pgid int) (err error) {
1246 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1247 if e1 != 0 {
1248 err = errnoErr(e1)
1249 }
1250 return
1251}
1252
1253// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1254
1255func Setsid() (pid int, err error) {
1256 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1257 pid = int(r0)
1258 if e1 != 0 {
1259 err = errnoErr(e1)
1260 }
1261 return
1262}
1263
1264// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1265
1266func Settimeofday(tv *Timeval) (err error) {
1267 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1268 if e1 != 0 {
1269 err = errnoErr(e1)
1270 }
1271 return
1272}
1273
1274// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1275
1276func Setns(fd int, nstype int) (err error) {
1277 _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0)
1278 if e1 != 0 {
1279 err = errnoErr(e1)
1280 }
1281 return
1282}
1283
1284// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1285
1286func Setpriority(which int, who int, prio int) (err error) {
1287 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1288 if e1 != 0 {
1289 err = errnoErr(e1)
1290 }
1291 return
1292}
1293
1294// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1295
1296func Setxattr(path string, attr string, data []byte, flags int) (err error) {
1297 var _p0 *byte
1298 _p0, err = BytePtrFromString(path)
1299 if err != nil {
1300 return
1301 }
1302 var _p1 *byte
1303 _p1, err = BytePtrFromString(attr)
1304 if err != nil {
1305 return
1306 }
1307 var _p2 unsafe.Pointer
1308 if len(data) > 0 {
1309 _p2 = unsafe.Pointer(&data[0])
1310 } else {
1311 _p2 = unsafe.Pointer(&_zero)
1312 }
1313 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
1314 if e1 != 0 {
1315 err = errnoErr(e1)
1316 }
1317 return
1318}
1319
1320// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1321
1322func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
1323 var _p0 *byte
1324 _p0, err = BytePtrFromString(path)
1325 if err != nil {
1326 return
1327 }
1328 _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
1329 if e1 != 0 {
1330 err = errnoErr(e1)
1331 }
1332 return
1333}
1334
1335// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1336
1337func Sync() {
1338 SyscallNoError(SYS_SYNC, 0, 0, 0)
1339 return
1340}
1341
1342// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1343
1344func Syncfs(fd int) (err error) {
1345 _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
1346 if e1 != 0 {
1347 err = errnoErr(e1)
1348 }
1349 return
1350}
1351
1352// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1353
1354func Sysinfo(info *Sysinfo_t) (err error) {
1355 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
1356 if e1 != 0 {
1357 err = errnoErr(e1)
1358 }
1359 return
1360}
1361
1362// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1363
1364func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
1365 r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
1366 n = int64(r0)
1367 if e1 != 0 {
1368 err = errnoErr(e1)
1369 }
1370 return
1371}
1372
1373// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1374
1375func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
1376 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
1377 if e1 != 0 {
1378 err = errnoErr(e1)
1379 }
1380 return
1381}
1382
1383// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1384
1385func Times(tms *Tms) (ticks uintptr, err error) {
1386 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1387 ticks = uintptr(r0)
1388 if e1 != 0 {
1389 err = errnoErr(e1)
1390 }
1391 return
1392}
1393
1394// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1395
1396func Umask(mask int) (oldmask int) {
1397 r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
1398 oldmask = int(r0)
1399 return
1400}
1401
1402// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1403
1404func Uname(buf *Utsname) (err error) {
1405 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1406 if e1 != 0 {
1407 err = errnoErr(e1)
1408 }
1409 return
1410}
1411
1412// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1413
1414func Unmount(target string, flags int) (err error) {
1415 var _p0 *byte
1416 _p0, err = BytePtrFromString(target)
1417 if err != nil {
1418 return
1419 }
1420 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1421 if e1 != 0 {
1422 err = errnoErr(e1)
1423 }
1424 return
1425}
1426
1427// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1428
1429func Unshare(flags int) (err error) {
1430 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1431 if e1 != 0 {
1432 err = errnoErr(e1)
1433 }
1434 return
1435}
1436
1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1438
1439func write(fd int, p []byte) (n int, err error) {
1440 var _p0 unsafe.Pointer
1441 if len(p) > 0 {
1442 _p0 = unsafe.Pointer(&p[0])
1443 } else {
1444 _p0 = unsafe.Pointer(&_zero)
1445 }
1446 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1447 n = int(r0)
1448 if e1 != 0 {
1449 err = errnoErr(e1)
1450 }
1451 return
1452}
1453
1454// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1455
1456func exitThread(code int) (err error) {
1457 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1458 if e1 != 0 {
1459 err = errnoErr(e1)
1460 }
1461 return
1462}
1463
1464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1465
1466func readlen(fd int, p *byte, np int) (n int, err error) {
1467 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1468 n = int(r0)
1469 if e1 != 0 {
1470 err = errnoErr(e1)
1471 }
1472 return
1473}
1474
1475// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1476
1477func writelen(fd int, p *byte, np int) (n int, err error) {
1478 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1479 n = int(r0)
1480 if e1 != 0 {
1481 err = errnoErr(e1)
1482 }
1483 return
1484}
1485
1486// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1487
1488func munmap(addr uintptr, length uintptr) (err error) {
1489 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1490 if e1 != 0 {
1491 err = errnoErr(e1)
1492 }
1493 return
1494}
1495
1496// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1497
1498func Madvise(b []byte, advice int) (err error) {
1499 var _p0 unsafe.Pointer
1500 if len(b) > 0 {
1501 _p0 = unsafe.Pointer(&b[0])
1502 } else {
1503 _p0 = unsafe.Pointer(&_zero)
1504 }
1505 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1506 if e1 != 0 {
1507 err = errnoErr(e1)
1508 }
1509 return
1510}
1511
1512// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1513
1514func Mprotect(b []byte, prot int) (err error) {
1515 var _p0 unsafe.Pointer
1516 if len(b) > 0 {
1517 _p0 = unsafe.Pointer(&b[0])
1518 } else {
1519 _p0 = unsafe.Pointer(&_zero)
1520 }
1521 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1522 if e1 != 0 {
1523 err = errnoErr(e1)
1524 }
1525 return
1526}
1527
1528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1529
1530func Mlock(b []byte) (err error) {
1531 var _p0 unsafe.Pointer
1532 if len(b) > 0 {
1533 _p0 = unsafe.Pointer(&b[0])
1534 } else {
1535 _p0 = unsafe.Pointer(&_zero)
1536 }
1537 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1538 if e1 != 0 {
1539 err = errnoErr(e1)
1540 }
1541 return
1542}
1543
1544// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1545
1546func Mlockall(flags int) (err error) {
1547 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1548 if e1 != 0 {
1549 err = errnoErr(e1)
1550 }
1551 return
1552}
1553
1554// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1555
1556func Msync(b []byte, flags int) (err error) {
1557 var _p0 unsafe.Pointer
1558 if len(b) > 0 {
1559 _p0 = unsafe.Pointer(&b[0])
1560 } else {
1561 _p0 = unsafe.Pointer(&_zero)
1562 }
1563 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
1564 if e1 != 0 {
1565 err = errnoErr(e1)
1566 }
1567 return
1568}
1569
1570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1571
1572func Munlock(b []byte) (err error) {
1573 var _p0 unsafe.Pointer
1574 if len(b) > 0 {
1575 _p0 = unsafe.Pointer(&b[0])
1576 } else {
1577 _p0 = unsafe.Pointer(&_zero)
1578 }
1579 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1580 if e1 != 0 {
1581 err = errnoErr(e1)
1582 }
1583 return
1584}
1585
1586// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1587
1588func Munlockall() (err error) {
1589 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1590 if e1 != 0 {
1591 err = errnoErr(e1)
1592 }
1593 return
1594}
1595
1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1613func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1614 var _p0 unsafe.Pointer
1615 if len(events) > 0 {
1616 _p0 = unsafe.Pointer(&events[0])
1617 } else {
1618 _p0 = unsafe.Pointer(&_zero)
1619 }
1620 r0, _, e1 := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
1621 n = int(r0)
1622 if e1 != 0 {
1623 err = errnoErr(e1)
1624 }
1625 return
1626}
1627
1628// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1629
1630func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1631 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1632 if e1 != 0 {
1633 err = errnoErr(e1)
1634 }
1635 return
1636}
1637
1638// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1639
1640func Fchown(fd int, uid int, gid int) (err error) {
1641 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1642 if e1 != 0 {
1643 err = errnoErr(e1)
1644 }
1645 return
1646}
1647
1648// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1649
1650func Fstat(fd int, stat *Stat_t) (err error) {
1651 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1652 if e1 != 0 {
1653 err = errnoErr(e1)
1654 }
1655 return
1656}
1657
1658// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1659
1660func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
1661 var _p0 *byte
1662 _p0, err = BytePtrFromString(path)
1663 if err != nil {
1664 return
1665 }
1666 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
1667 if e1 != 0 {
1668 err = errnoErr(e1)
1669 }
1670 return
1671}
1672
1673// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1674
1675func Fstatfs(fd int, buf *Statfs_t) (err error) {
1676 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
1677 if e1 != 0 {
1678 err = errnoErr(e1)
1679 }
1680 return
1681}
1682
1683// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1684
1685func Ftruncate(fd int, length int64) (err error) {
1686 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
1687 if e1 != 0 {
1688 err = errnoErr(e1)
1689 }
1690 return
1691}
1692
1693// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1694
1695func Getegid() (egid int) {
1696 r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
1697 egid = int(r0)
1698 return
1699}
1700
1701// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1702
1703func Geteuid() (euid int) {
1704 r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
1705 euid = int(r0)
1706 return
1707}
1708
1709// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1710
1711func Getgid() (gid int) {
1712 r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
1713 gid = int(r0)
1714 return
1715}
1716
1717// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1718
1719func Getrlimit(resource int, rlim *Rlimit) (err error) {
1720 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1721 if e1 != 0 {
1722 err = errnoErr(e1)
1723 }
1724 return
1725}
1726
1727// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1728
1729func Getuid() (uid int) {
1730 r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
1731 uid = int(r0)
1732 return
1733}
1734
1735// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1736
1737func Listen(s int, n int) (err error) {
1738 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
1739 if e1 != 0 {
1740 err = errnoErr(e1)
1741 }
1742 return
1743}
1744
1745// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1746
1747func Pread(fd int, p []byte, offset int64) (n int, err error) {
1748 var _p0 unsafe.Pointer
1749 if len(p) > 0 {
1750 _p0 = unsafe.Pointer(&p[0])
1751 } else {
1752 _p0 = unsafe.Pointer(&_zero)
1753 }
1754 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1755 n = int(r0)
1756 if e1 != 0 {
1757 err = errnoErr(e1)
1758 }
1759 return
1760}
1761
1762// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1763
1764func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1765 var _p0 unsafe.Pointer
1766 if len(p) > 0 {
1767 _p0 = unsafe.Pointer(&p[0])
1768 } else {
1769 _p0 = unsafe.Pointer(&_zero)
1770 }
1771 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1772 n = int(r0)
1773 if e1 != 0 {
1774 err = errnoErr(e1)
1775 }
1776 return
1777}
1778
1779// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1780
1781func Seek(fd int, offset int64, whence int) (off int64, err error) {
1782 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1783 off = int64(r0)
1784 if e1 != 0 {
1785 err = errnoErr(e1)
1786 }
1787 return
1788}
1789
1790// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1791
1792func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1793 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1794 written = int(r0)
1795 if e1 != 0 {
1796 err = errnoErr(e1)
1797 }
1798 return
1799}
1800
1801// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1802
1803func Setfsgid(gid int) (err error) {
1804 _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
1805 if e1 != 0 {
1806 err = errnoErr(e1)
1807 }
1808 return
1809}
1810
1811// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1812
1813func Setfsuid(uid int) (err error) {
1814 _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
1815 if e1 != 0 {
1816 err = errnoErr(e1)
1817 }
1818 return
1819}
1820
1821// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1822
1823func Setregid(rgid int, egid int) (err error) {
1824 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1825 if e1 != 0 {
1826 err = errnoErr(e1)
1827 }
1828 return
1829}
1830
1831// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1832
1833func Setresgid(rgid int, egid int, sgid int) (err error) {
1834 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1835 if e1 != 0 {
1836 err = errnoErr(e1)
1837 }
1838 return
1839}
1840
1841// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1842
1843func Setresuid(ruid int, euid int, suid int) (err error) {
1844 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1845 if e1 != 0 {
1846 err = errnoErr(e1)
1847 }
1848 return
1849}
1850
1851// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1852
1853func Setrlimit(resource int, rlim *Rlimit) (err error) {
1854 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1855 if e1 != 0 {
1856 err = errnoErr(e1)
1857 }
1858 return
1859}
1860
1861// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1862
1863func Setreuid(ruid int, euid int) (err error) {
1864 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
1865 if e1 != 0 {
1866 err = errnoErr(e1)
1867 }
1868 return
1869}
1870
1871// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1872
1873func Shutdown(fd int, how int) (err error) {
1874 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
1875 if e1 != 0 {
1876 err = errnoErr(e1)
1877 }
1878 return
1879}
1880
1881// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1882
1883func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
1884 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
1885 n = int64(r0)
1886 if e1 != 0 {
1887 err = errnoErr(e1)
1888 }
1889 return
1890}
1891
1892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1893
1894func Statfs(path string, buf *Statfs_t) (err error) {
1895 var _p0 *byte
1896 _p0, err = BytePtrFromString(path)
1897 if err != nil {
1898 return
1899 }
1900 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
1901 if e1 != 0 {
1902 err = errnoErr(e1)
1903 }
1904 return
1905}
1906
1907// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1908
1909func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
1910 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
1911 if e1 != 0 {
1912 err = errnoErr(e1)
1913 }
1914 return
1915}
1916
1917// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1918
1919func Truncate(path string, length int64) (err error) {
1920 var _p0 *byte
1921 _p0, err = BytePtrFromString(path)
1922 if err != nil {
1923 return
1924 }
1925 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1926 if e1 != 0 {
1927 err = errnoErr(e1)
1928 }
1929 return
1930}
1931
1932// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1933
1934func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
1935 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
1936 fd = int(r0)
1937 if e1 != 0 {
1938 err = errnoErr(e1)
1939 }
1940 return
1941}
1942
1943// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1944
1945func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
1946 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
1947 fd = int(r0)
1948 if e1 != 0 {
1949 err = errnoErr(e1)
1950 }
1951 return
1952}
1953
1954// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1955
1956func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1957 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
1958 if e1 != 0 {
1959 err = errnoErr(e1)
1960 }
1961 return
1962}
1963
1964// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1965
1966func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
1967 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
1968 if e1 != 0 {
1969 err = errnoErr(e1)
1970 }
1971 return
1972}
1973
1974// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1975
1976func getgroups(n int, list *_Gid_t) (nn int, err error) {
1977 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1978 nn = int(r0)
1979 if e1 != 0 {
1980 err = errnoErr(e1)
1981 }
1982 return
1983}
1984
1985// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1986
1987func setgroups(n int, list *_Gid_t) (err error) {
1988 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1989 if e1 != 0 {
1990 err = errnoErr(e1)
1991 }
1992 return
1993}
1994
1995// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1996
1997func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
1998 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
1999 if e1 != 0 {
2000 err = errnoErr(e1)
2001 }
2002 return
2003}
2004
2005// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2006
2007func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
2008 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
2009 if e1 != 0 {
2010 err = errnoErr(e1)
2011 }
2012 return
2013}
2014
2015// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2016
2017func socket(domain int, typ int, proto int) (fd int, err error) {
2018 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
2019 fd = int(r0)
2020 if e1 != 0 {
2021 err = errnoErr(e1)
2022 }
2023 return
2024}
2025
2026// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2027
2028func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
2029 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
2030 if e1 != 0 {
2031 err = errnoErr(e1)
2032 }
2033 return
2034}
2035
2036// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2037
2038func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
2039 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
2040 if e1 != 0 {
2041 err = errnoErr(e1)
2042 }
2043 return
2044}
2045
2046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2047
2048func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
2049 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
2050 if e1 != 0 {
2051 err = errnoErr(e1)
2052 }
2053 return
2054}
2055
2056// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2057
2058func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
2059 var _p0 unsafe.Pointer
2060 if len(p) > 0 {
2061 _p0 = unsafe.Pointer(&p[0])
2062 } else {
2063 _p0 = unsafe.Pointer(&_zero)
2064 }
2065 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
2066 n = int(r0)
2067 if e1 != 0 {
2068 err = errnoErr(e1)
2069 }
2070 return
2071}
2072
2073// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2074
2075func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
2076 var _p0 unsafe.Pointer
2077 if len(buf) > 0 {
2078 _p0 = unsafe.Pointer(&buf[0])
2079 } else {
2080 _p0 = unsafe.Pointer(&_zero)
2081 }
2082 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
2083 if e1 != 0 {
2084 err = errnoErr(e1)
2085 }
2086 return
2087}
2088
2089// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2090
2091func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
2092 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
2093 n = int(r0)
2094 if e1 != 0 {
2095 err = errnoErr(e1)
2096 }
2097 return
2098}
2099
2100// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2101
2102func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
2103 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
2104 n = int(r0)
2105 if e1 != 0 {
2106 err = errnoErr(e1)
2107 }
2108 return
2109}
2110
2111// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2112
2113func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
2114 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
2115 xaddr = uintptr(r0)
2116 if e1 != 0 {
2117 err = errnoErr(e1)
2118 }
2119 return
2120}
2121
2122// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2123
2124func Gettimeofday(tv *Timeval) (err error) {
2125 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
2126 if e1 != 0 {
2127 err = errnoErr(e1)
2128 }
2129 return
2130}
2131
2132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2133
2134func pipe2(p *[2]_C_int, flags int) (err error) {
2135 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
2136 if e1 != 0 {
2137 err = errnoErr(e1)
2138 }
2139 return
2140}
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 c443baf..55e79d6 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
@@ -143,21 +143,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
143 143
144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
145 145
146func utimes(path string, times *[2]Timeval) (err error) {
147 var _p0 *byte
148 _p0, err = BytePtrFromString(path)
149 if err != nil {
150 return
151 }
152 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
153 if e1 != 0 {
154 err = errnoErr(e1)
155 }
156 return
157}
158
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160
161func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
162 var _p0 *byte 147 var _p0 *byte
163 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
@@ -173,16 +158,6 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
173 158
174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
175 160
176func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
177 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)))
178 if e1 != 0 {
179 err = errnoErr(e1)
180 }
181 return
182}
183
184// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
185
186func Getcwd(buf []byte) (n int, err error) { 161func Getcwd(buf []byte) (n int, err error) {
187 var _p0 unsafe.Pointer 162 var _p0 unsafe.Pointer
188 if len(buf) > 0 { 163 if len(buf) > 0 {
@@ -442,6 +417,16 @@ func Chroot(path string) (err error) {
442 417
443// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 418// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
444 419
420func ClockGetres(clockid int32, res *Timespec) (err error) {
421 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
422 if e1 != 0 {
423 err = errnoErr(e1)
424 }
425 return
426}
427
428// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
429
445func ClockGettime(clockid int32, time *Timespec) (err error) { 430func ClockGettime(clockid int32, time *Timespec) (err error) {
446 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) 431 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
447 if e1 != 0 { 432 if e1 != 0 {
@@ -494,17 +479,6 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
494 479
495// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 480// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
496 481
497func EpollCreate(size int) (fd int, err error) {
498 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
499 fd = int(r0)
500 if e1 != 0 {
501 err = errnoErr(e1)
502 }
503 return
504}
505
506// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507
508func EpollCreate1(flag int) (fd int, err error) { 482func EpollCreate1(flag int) (fd int, err error) {
509 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 483 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
510 fd = int(r0) 484 fd = int(r0)
@@ -544,21 +518,6 @@ func Exit(code int) {
544 518
545// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 519// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546 520
547func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
548 var _p0 *byte
549 _p0, err = BytePtrFromString(path)
550 if err != nil {
551 return
552 }
553 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
554 if e1 != 0 {
555 err = errnoErr(e1)
556 }
557 return
558}
559
560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { 521func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
563 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) 522 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
564 if e1 != 0 { 523 if e1 != 0 {
@@ -625,6 +584,45 @@ func Fdatasync(fd int) (err error) {
625 584
626// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 586
587func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
588 var _p0 *byte
589 _p0, err = BytePtrFromString(attr)
590 if err != nil {
591 return
592 }
593 var _p1 unsafe.Pointer
594 if len(dest) > 0 {
595 _p1 = unsafe.Pointer(&dest[0])
596 } else {
597 _p1 = unsafe.Pointer(&_zero)
598 }
599 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
600 sz = int(r0)
601 if e1 != 0 {
602 err = errnoErr(e1)
603 }
604 return
605}
606
607// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
608
609func Flistxattr(fd int, dest []byte) (sz int, err error) {
610 var _p0 unsafe.Pointer
611 if len(dest) > 0 {
612 _p0 = unsafe.Pointer(&dest[0])
613 } else {
614 _p0 = unsafe.Pointer(&_zero)
615 }
616 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
617 sz = int(r0)
618 if e1 != 0 {
619 err = errnoErr(e1)
620 }
621 return
622}
623
624// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
625
628func Flock(fd int, how int) (err error) { 626func Flock(fd int, how int) (err error) {
629 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 627 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
630 if e1 != 0 { 628 if e1 != 0 {
@@ -635,6 +633,42 @@ func Flock(fd int, how int) (err error) {
635 633
636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 634// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 635
636func Fremovexattr(fd int, attr string) (err error) {
637 var _p0 *byte
638 _p0, err = BytePtrFromString(attr)
639 if err != nil {
640 return
641 }
642 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
643 if e1 != 0 {
644 err = errnoErr(e1)
645 }
646 return
647}
648
649// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
650
651func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
652 var _p0 *byte
653 _p0, err = BytePtrFromString(attr)
654 if err != nil {
655 return
656 }
657 var _p1 unsafe.Pointer
658 if len(dest) > 0 {
659 _p1 = unsafe.Pointer(&dest[0])
660 } else {
661 _p1 = unsafe.Pointer(&_zero)
662 }
663 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
664 if e1 != 0 {
665 err = errnoErr(e1)
666 }
667 return
668}
669
670// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
671
638func Fsync(fd int) (err error) { 672func Fsync(fd int) (err error) {
639 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 673 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
640 if e1 != 0 { 674 if e1 != 0 {
@@ -955,6 +989,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
955 989
956// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 990// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 991
992func MemfdCreate(name string, flags int) (fd int, err error) {
993 var _p0 *byte
994 _p0, err = BytePtrFromString(name)
995 if err != nil {
996 return
997 }
998 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
999 fd = int(r0)
1000 if e1 != 0 {
1001 err = errnoErr(e1)
1002 }
1003 return
1004}
1005
1006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1007
958func Mkdirat(dirfd int, path string, mode uint32) (err error) { 1008func Mkdirat(dirfd int, path string, mode uint32) (err error) {
959 var _p0 *byte 1009 var _p0 *byte
960 _p0, err = BytePtrFromString(path) 1010 _p0, err = BytePtrFromString(path)
@@ -995,6 +1045,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
995 1045
996// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1046// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
997 1047
1048func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1049 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1050 fd = int(r0)
1051 if e1 != 0 {
1052 err = errnoErr(e1)
1053 }
1054 return
1055}
1056
1057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1058
998func PivotRoot(newroot string, putold string) (err error) { 1059func PivotRoot(newroot string, putold string) (err error) {
999 var _p0 *byte 1060 var _p0 *byte
1000 _p0, err = BytePtrFromString(newroot) 1061 _p0, err = BytePtrFromString(newroot)
@@ -1103,6 +1164,26 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
1103 1164
1104// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1165// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 1166
1167func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1168 var _p0 *byte
1169 _p0, err = BytePtrFromString(oldpath)
1170 if err != nil {
1171 return
1172 }
1173 var _p1 *byte
1174 _p1, err = BytePtrFromString(newpath)
1175 if err != nil {
1176 return
1177 }
1178 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1179 if e1 != 0 {
1180 err = errnoErr(e1)
1181 }
1182 return
1183}
1184
1185// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1186
1106func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { 1187func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1107 var _p0 *byte 1188 var _p0 *byte
1108 _p0, err = BytePtrFromString(keyType) 1189 _p0, err = BytePtrFromString(keyType)
@@ -1355,16 +1436,6 @@ func Unshare(flags int) (err error) {
1355 1436
1356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357 1438
1358func Ustat(dev int, ubuf *Ustat_t) (err error) {
1359 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1360 if e1 != 0 {
1361 err = errnoErr(e1)
1362 }
1363 return
1364}
1365
1366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1367
1368func write(fd int, p []byte) (n int, err error) { 1439func write(fd int, p []byte) (n int, err error) {
1369 var _p0 unsafe.Pointer 1440 var _p0 unsafe.Pointer
1370 if len(p) > 0 { 1441 if len(p) > 0 {
@@ -1524,6 +1595,21 @@ func Munlockall() (err error) {
1524 1595
1525// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1596// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 1597
1598func faccessat(dirfd int, path string, mode uint32) (err error) {
1599 var _p0 *byte
1600 _p0, err = BytePtrFromString(path)
1601 if err != nil {
1602 return
1603 }
1604 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1605 if e1 != 0 {
1606 err = errnoErr(e1)
1607 }
1608 return
1609}
1610
1611// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1527func Dup2(oldfd int, newfd int) (err error) { 1613func Dup2(oldfd int, newfd int) (err error) {
1528 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1614 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1529 if e1 != 0 { 1615 if e1 != 0 {
@@ -1534,6 +1620,17 @@ func Dup2(oldfd int, newfd int) (err error) {
1534 1620
1535// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1536 1622
1623func EpollCreate(size int) (fd int, err error) {
1624 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1625 fd = int(r0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1628 }
1629 return
1630}
1631
1632// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1633
1537func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { 1634func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1538 var _p0 unsafe.Pointer 1635 var _p0 unsafe.Pointer
1539 if len(events) > 0 { 1636 if len(events) > 0 {
@@ -1912,6 +2009,16 @@ func Truncate(path string, length int64) (err error) {
1912 2009
1913// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2010// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1914 2011
2012func Ustat(dev int, ubuf *Ustat_t) (err error) {
2013 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
2014 if e1 != 0 {
2015 err = errnoErr(e1)
2016 }
2017 return
2018}
2019
2020// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2021
1915func getgroups(n int, list *_Gid_t) (nn int, err error) { 2022func getgroups(n int, list *_Gid_t) (nn int, err error) {
1916 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) 2023 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
1917 nn = int(r0) 2024 nn = int(r0)
@@ -1933,6 +2040,21 @@ func setgroups(n int, list *_Gid_t) (err error) {
1933 2040
1934// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2041// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1935 2042
2043func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2044 var _p0 *byte
2045 _p0, err = BytePtrFromString(path)
2046 if err != nil {
2047 return
2048 }
2049 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2050 if e1 != 0 {
2051 err = errnoErr(e1)
2052 }
2053 return
2054}
2055
2056// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2057
1936func Gettimeofday(tv *Timeval) (err error) { 2058func Gettimeofday(tv *Timeval) (err error) {
1937 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2059 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1938 if e1 != 0 { 2060 if e1 != 0 {
@@ -1958,6 +2080,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
1958 2080
1959// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2081// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1960 2082
2083func utimes(path string, times *[2]Timeval) (err error) {
2084 var _p0 *byte
2085 _p0, err = BytePtrFromString(path)
2086 if err != nil {
2087 return
2088 }
2089 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2090 if e1 != 0 {
2091 err = errnoErr(e1)
2092 }
2093 return
2094}
2095
2096// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2097
1961func pipe2(p *[2]_C_int, flags int) (err error) { 2098func pipe2(p *[2]_C_int, flags int) (err error) {
1962 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 2099 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
1963 if e1 != 0 { 2100 if e1 != 0 {
@@ -1976,3 +2113,18 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
1976 } 2113 }
1977 return 2114 return
1978} 2115}
2116
2117// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2118
2119func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
2120 var _p0 *byte
2121 _p0, err = BytePtrFromString(cmdline)
2122 if err != nil {
2123 return
2124 }
2125 _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
2126 if e1 != 0 {
2127 err = errnoErr(e1)
2128 }
2129 return
2130}
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 2dd9843..b26aee9 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,31 @@ 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 fchmodat(dirfd int, path string, mode uint32) (err error) {
18 var _p0 *byte
19 _p0, err = BytePtrFromString(path)
20 if err != nil {
21 return
22 }
23 _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
24 if e1 != 0 {
25 err = errnoErr(e1)
26 }
27 return
28}
29
30// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
31
32func ioctl(fd int, req uint, arg uintptr) (err error) {
33 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
34 if e1 != 0 {
35 err = errnoErr(e1)
36 }
37 return
38}
39
40// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
41
17func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 42func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
18 var _p0 *byte 43 var _p0 *byte
19 _p0, err = BytePtrFromString(oldpath) 44 _p0, err = BytePtrFromString(oldpath)
@@ -118,13 +143,13 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
118 143
119// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 144// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120 145
121func utimes(path string, times *[2]Timeval) (err error) { 146func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
122 var _p0 *byte 147 var _p0 *byte
123 _p0, err = BytePtrFromString(path) 148 _p0, err = BytePtrFromString(path)
124 if err != nil { 149 if err != nil {
125 return 150 return
126 } 151 }
127 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) 152 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
128 if e1 != 0 { 153 if e1 != 0 {
129 err = errnoErr(e1) 154 err = errnoErr(e1)
130 } 155 }
@@ -133,13 +158,70 @@ func utimes(path string, times *[2]Timeval) (err error) {
133 158
134// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
135 160
136func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { 161func Getcwd(buf []byte) (n int, err error) {
162 var _p0 unsafe.Pointer
163 if len(buf) > 0 {
164 _p0 = unsafe.Pointer(&buf[0])
165 } else {
166 _p0 = unsafe.Pointer(&_zero)
167 }
168 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
169 n = int(r0)
170 if e1 != 0 {
171 err = errnoErr(e1)
172 }
173 return
174}
175
176// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
177
178func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
179 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
180 wpid = int(r0)
181 if e1 != 0 {
182 err = errnoErr(e1)
183 }
184 return
185}
186
187// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
188
189func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
190 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
191 ret = int(r0)
192 if e1 != 0 {
193 err = errnoErr(e1)
194 }
195 return
196}
197
198// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
199
200func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
201 var _p0 unsafe.Pointer
202 if len(buf) > 0 {
203 _p0 = unsafe.Pointer(&buf[0])
204 } else {
205 _p0 = unsafe.Pointer(&_zero)
206 }
207 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
208 ret = int(r0)
209 if e1 != 0 {
210 err = errnoErr(e1)
211 }
212 return
213}
214
215// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216
217func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
137 var _p0 *byte 218 var _p0 *byte
138 _p0, err = BytePtrFromString(path) 219 _p0, err = BytePtrFromString(arg2)
139 if err != nil { 220 if err != nil {
140 return 221 return
141 } 222 }
142 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 223 r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
224 ret = int(r0)
143 if e1 != 0 { 225 if e1 != 0 {
144 err = errnoErr(e1) 226 err = errnoErr(e1)
145 } 227 }
@@ -148,8 +230,19 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
148 230
149// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 231// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
150 232
151func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { 233func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
152 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) 234 var _p0 *byte
235 _p0, err = BytePtrFromString(arg3)
236 if err != nil {
237 return
238 }
239 var _p1 *byte
240 _p1, err = BytePtrFromString(arg4)
241 if err != nil {
242 return
243 }
244 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
245 ret = int(r0)
153 if e1 != 0 { 246 if e1 != 0 {
154 err = errnoErr(e1) 247 err = errnoErr(e1)
155 } 248 }
@@ -158,15 +251,14 @@ func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
158 251
159// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
160 253
161func Getcwd(buf []byte) (n int, err error) { 254func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
162 var _p0 unsafe.Pointer 255 var _p0 unsafe.Pointer
163 if len(buf) > 0 { 256 if len(payload) > 0 {
164 _p0 = unsafe.Pointer(&buf[0]) 257 _p0 = unsafe.Pointer(&payload[0])
165 } else { 258 } else {
166 _p0 = unsafe.Pointer(&_zero) 259 _p0 = unsafe.Pointer(&_zero)
167 } 260 }
168 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) 261 _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
169 n = int(r0)
170 if e1 != 0 { 262 if e1 != 0 {
171 err = errnoErr(e1) 263 err = errnoErr(e1)
172 } 264 }
@@ -175,9 +267,15 @@ func Getcwd(buf []byte) (n int, err error) {
175 267
176// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 268// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
177 269
178func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { 270func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
179 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) 271 var _p0 unsafe.Pointer
180 wpid = int(r0) 272 if len(buf) > 0 {
273 _p0 = unsafe.Pointer(&buf[0])
274 } else {
275 _p0 = unsafe.Pointer(&_zero)
276 }
277 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
278 ret = int(r0)
181 if e1 != 0 { 279 if e1 != 0 {
182 err = errnoErr(e1) 280 err = errnoErr(e1)
183 } 281 }
@@ -251,6 +349,33 @@ func Acct(path string) (err error) {
251 349
252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
253 351
352func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
353 var _p0 *byte
354 _p0, err = BytePtrFromString(keyType)
355 if err != nil {
356 return
357 }
358 var _p1 *byte
359 _p1, err = BytePtrFromString(description)
360 if err != nil {
361 return
362 }
363 var _p2 unsafe.Pointer
364 if len(payload) > 0 {
365 _p2 = unsafe.Pointer(&payload[0])
366 } else {
367 _p2 = unsafe.Pointer(&_zero)
368 }
369 r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
370 id = int(r0)
371 if e1 != 0 {
372 err = errnoErr(e1)
373 }
374 return
375}
376
377// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
378
254func Adjtimex(buf *Timex) (state int, err error) { 379func Adjtimex(buf *Timex) (state int, err error) {
255 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) 380 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
256 state = int(r0) 381 state = int(r0)
@@ -344,8 +469,8 @@ func Dup3(oldfd int, newfd int, flags int) (err error) {
344 469
345// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 470// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
346 471
347func EpollCreate(size int) (fd int, err error) { 472func EpollCreate1(flag int) (fd int, err error) {
348 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) 473 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
349 fd = int(r0) 474 fd = int(r0)
350 if e1 != 0 { 475 if e1 != 0 {
351 err = errnoErr(e1) 476 err = errnoErr(e1)
@@ -355,9 +480,8 @@ func EpollCreate(size int) (fd int, err error) {
355 480
356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 481// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357 482
358func EpollCreate1(flag int) (fd int, err error) { 483func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
359 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) 484 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
360 fd = int(r0)
361 if e1 != 0 { 485 if e1 != 0 {
362 err = errnoErr(e1) 486 err = errnoErr(e1)
363 } 487 }
@@ -366,8 +490,9 @@ func EpollCreate1(flag int) (fd int, err error) {
366 490
367// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 491// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
368 492
369func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { 493func Eventfd(initval uint, flags int) (fd int, err error) {
370 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) 494 r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
495 fd = int(r0)
371 if e1 != 0 { 496 if e1 != 0 {
372 err = errnoErr(e1) 497 err = errnoErr(e1)
373 } 498 }
@@ -377,7 +502,7 @@ func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
377// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 502// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
378 503
379func Exit(code int) { 504func Exit(code int) {
380 Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0) 505 SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
381 return 506 return
382} 507}
383 508
@@ -428,21 +553,6 @@ func Fchmod(fd int, mode uint32) (err error) {
428 553
429// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 554// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
430 555
431func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
432 var _p0 *byte
433 _p0, err = BytePtrFromString(path)
434 if err != nil {
435 return
436 }
437 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
438 if e1 != 0 {
439 err = errnoErr(e1)
440 }
441 return
442}
443
444// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
445
446func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { 556func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
447 var _p0 *byte 557 var _p0 *byte
448 _p0, err = BytePtrFromString(path) 558 _p0, err = BytePtrFromString(path)
@@ -528,7 +638,7 @@ func Getpgid(pid int) (pgid int, err error) {
528// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 638// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
529 639
530func Getpid() (pid int) { 640func Getpid() (pid int) {
531 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) 641 r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
532 pid = int(r0) 642 pid = int(r0)
533 return 643 return
534} 644}
@@ -536,7 +646,7 @@ func Getpid() (pid int) {
536// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 646// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
537 647
538func Getppid() (ppid int) { 648func Getppid() (ppid int) {
539 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) 649 r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
540 ppid = int(r0) 650 ppid = int(r0)
541 return 651 return
542} 652}
@@ -593,7 +703,7 @@ func Getsid(pid int) (sid int, err error) {
593// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 703// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
594 704
595func Gettid() (tid int) { 705func Gettid() (tid int) {
596 r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0) 706 r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
597 tid = int(r0) 707 tid = int(r0)
598 return 708 return
599} 709}
@@ -692,6 +802,33 @@ func Klogctl(typ int, buf []byte) (n int, err error) {
692 802
693// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 803// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
694 804
805func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
806 var _p0 *byte
807 _p0, err = BytePtrFromString(path)
808 if err != nil {
809 return
810 }
811 var _p1 *byte
812 _p1, err = BytePtrFromString(attr)
813 if err != nil {
814 return
815 }
816 var _p2 unsafe.Pointer
817 if len(dest) > 0 {
818 _p2 = unsafe.Pointer(&dest[0])
819 } else {
820 _p2 = unsafe.Pointer(&_zero)
821 }
822 r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
823 sz = int(r0)
824 if e1 != 0 {
825 err = errnoErr(e1)
826 }
827 return
828}
829
830// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
831
695func Listxattr(path string, dest []byte) (sz int, err error) { 832func Listxattr(path string, dest []byte) (sz int, err error) {
696 var _p0 *byte 833 var _p0 *byte
697 _p0, err = BytePtrFromString(path) 834 _p0, err = BytePtrFromString(path)
@@ -714,6 +851,74 @@ func Listxattr(path string, dest []byte) (sz int, err error) {
714 851
715// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 852// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
716 853
854func Llistxattr(path string, dest []byte) (sz int, err error) {
855 var _p0 *byte
856 _p0, err = BytePtrFromString(path)
857 if err != nil {
858 return
859 }
860 var _p1 unsafe.Pointer
861 if len(dest) > 0 {
862 _p1 = unsafe.Pointer(&dest[0])
863 } else {
864 _p1 = unsafe.Pointer(&_zero)
865 }
866 r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
867 sz = int(r0)
868 if e1 != 0 {
869 err = errnoErr(e1)
870 }
871 return
872}
873
874// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
875
876func Lremovexattr(path string, attr string) (err error) {
877 var _p0 *byte
878 _p0, err = BytePtrFromString(path)
879 if err != nil {
880 return
881 }
882 var _p1 *byte
883 _p1, err = BytePtrFromString(attr)
884 if err != nil {
885 return
886 }
887 _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
888 if e1 != 0 {
889 err = errnoErr(e1)
890 }
891 return
892}
893
894// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
895
896func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
897 var _p0 *byte
898 _p0, err = BytePtrFromString(path)
899 if err != nil {
900 return
901 }
902 var _p1 *byte
903 _p1, err = BytePtrFromString(attr)
904 if err != nil {
905 return
906 }
907 var _p2 unsafe.Pointer
908 if len(data) > 0 {
909 _p2 = unsafe.Pointer(&data[0])
910 } else {
911 _p2 = unsafe.Pointer(&_zero)
912 }
913 _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
914 if e1 != 0 {
915 err = errnoErr(e1)
916 }
917 return
918}
919
920// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
921
717func Mkdirat(dirfd int, path string, mode uint32) (err error) { 922func Mkdirat(dirfd int, path string, mode uint32) (err error) {
718 var _p0 *byte 923 var _p0 *byte
719 _p0, err = BytePtrFromString(path) 924 _p0, err = BytePtrFromString(path)
@@ -754,6 +959,17 @@ func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
754 959
755// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 960// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
756 961
962func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
963 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
964 fd = int(r0)
965 if e1 != 0 {
966 err = errnoErr(e1)
967 }
968 return
969}
970
971// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
972
757func PivotRoot(newroot string, putold string) (err error) { 973func PivotRoot(newroot string, putold string) (err error) {
758 var _p0 *byte 974 var _p0 *byte
759 _p0, err = BytePtrFromString(newroot) 975 _p0, err = BytePtrFromString(newroot)
@@ -794,6 +1010,17 @@ func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (
794 1010
795// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1011// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
796 1012
1013func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
1014 r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
1015 n = int(r0)
1016 if e1 != 0 {
1017 err = errnoErr(e1)
1018 }
1019 return
1020}
1021
1022// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1023
797func read(fd int, p []byte) (n int, err error) { 1024func read(fd int, p []byte) (n int, err error) {
798 var _p0 unsafe.Pointer 1025 var _p0 unsafe.Pointer
799 if len(p) > 0 { 1026 if len(p) > 0 {
@@ -851,6 +1078,32 @@ func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err e
851 1078
852// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1079// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
853 1080
1081func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1082 var _p0 *byte
1083 _p0, err = BytePtrFromString(keyType)
1084 if err != nil {
1085 return
1086 }
1087 var _p1 *byte
1088 _p1, err = BytePtrFromString(description)
1089 if err != nil {
1090 return
1091 }
1092 var _p2 *byte
1093 _p2, err = BytePtrFromString(callback)
1094 if err != nil {
1095 return
1096 }
1097 r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
1098 id = int(r0)
1099 if e1 != 0 {
1100 err = errnoErr(e1)
1101 }
1102 return
1103}
1104
1105// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1106
854func Setdomainname(p []byte) (err error) { 1107func Setdomainname(p []byte) (err error) {
855 var _p0 unsafe.Pointer 1108 var _p0 unsafe.Pointer
856 if len(p) > 0 { 1109 if len(p) > 0 {
@@ -960,8 +1213,33 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
960 1213
961// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1214// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
962 1215
1216func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
1217 var _p0 *byte
1218 _p0, err = BytePtrFromString(path)
1219 if err != nil {
1220 return
1221 }
1222 _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
1223 if e1 != 0 {
1224 err = errnoErr(e1)
1225 }
1226 return
1227}
1228
1229// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1230
963func Sync() { 1231func Sync() {
964 Syscall(SYS_SYNC, 0, 0, 0) 1232 SyscallNoError(SYS_SYNC, 0, 0, 0)
1233 return
1234}
1235
1236// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1237
1238func Syncfs(fd int) (err error) {
1239 _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
1240 if e1 != 0 {
1241 err = errnoErr(e1)
1242 }
965 return 1243 return
966} 1244}
967 1245
@@ -1010,7 +1288,7 @@ func Times(tms *Tms) (ticks uintptr, err error) {
1010// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1011 1289
1012func Umask(mask int) (oldmask int) { 1290func Umask(mask int) (oldmask int) {
1013 r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0) 1291 r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
1014 oldmask = int(r0) 1292 oldmask = int(r0)
1015 return 1293 return
1016} 1294}
@@ -1052,16 +1330,6 @@ func Unshare(flags int) (err error) {
1052 1330
1053// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1331// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1054 1332
1055func Ustat(dev int, ubuf *Ustat_t) (err error) {
1056 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
1057 if e1 != 0 {
1058 err = errnoErr(e1)
1059 }
1060 return
1061}
1062
1063// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1064
1065func write(fd int, p []byte) (n int, err error) { 1333func write(fd int, p []byte) (n int, err error) {
1066 var _p0 unsafe.Pointer 1334 var _p0 unsafe.Pointer
1067 if len(p) > 0 { 1335 if len(p) > 0 {
@@ -1169,14 +1437,24 @@ func Mlock(b []byte) (err error) {
1169 1437
1170// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1438// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1171 1439
1172func Munlock(b []byte) (err error) { 1440func Mlockall(flags int) (err error) {
1441 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1442 if e1 != 0 {
1443 err = errnoErr(e1)
1444 }
1445 return
1446}
1447
1448// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1449
1450func Msync(b []byte, flags int) (err error) {
1173 var _p0 unsafe.Pointer 1451 var _p0 unsafe.Pointer
1174 if len(b) > 0 { 1452 if len(b) > 0 {
1175 _p0 = unsafe.Pointer(&b[0]) 1453 _p0 = unsafe.Pointer(&b[0])
1176 } else { 1454 } else {
1177 _p0 = unsafe.Pointer(&_zero) 1455 _p0 = unsafe.Pointer(&_zero)
1178 } 1456 }
1179 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) 1457 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
1180 if e1 != 0 { 1458 if e1 != 0 {
1181 err = errnoErr(e1) 1459 err = errnoErr(e1)
1182 } 1460 }
@@ -1185,8 +1463,14 @@ func Munlock(b []byte) (err error) {
1185 1463
1186// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1187 1465
1188func Mlockall(flags int) (err error) { 1466func Munlock(b []byte) (err error) {
1189 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) 1467 var _p0 unsafe.Pointer
1468 if len(b) > 0 {
1469 _p0 = unsafe.Pointer(&b[0])
1470 } else {
1471 _p0 = unsafe.Pointer(&_zero)
1472 }
1473 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1190 if e1 != 0 { 1474 if e1 != 0 {
1191 err = errnoErr(e1) 1475 err = errnoErr(e1)
1192 } 1476 }
@@ -1222,6 +1506,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1222 1506
1223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1507// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1224 1508
1509func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1510 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1511 if e1 != 0 {
1512 err = errnoErr(e1)
1513 }
1514 return
1515}
1516
1517// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1518
1225func Dup2(oldfd int, newfd int) (err error) { 1519func Dup2(oldfd int, newfd int) (err error) {
1226 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) 1520 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1227 if e1 != 0 { 1521 if e1 != 0 {
@@ -1252,6 +1546,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
1252 1546
1253// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1547// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1254 1548
1549func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
1550 var _p0 *byte
1551 _p0, err = BytePtrFromString(path)
1552 if err != nil {
1553 return
1554 }
1555 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
1556 if e1 != 0 {
1557 err = errnoErr(e1)
1558 }
1559 return
1560}
1561
1562// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1563
1255func Fstatfs(fd int, buf *Statfs_t) (err error) { 1564func Fstatfs(fd int, buf *Statfs_t) (err error) {
1256 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) 1565 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
1257 if e1 != 0 { 1566 if e1 != 0 {
@@ -1273,7 +1582,7 @@ func Ftruncate(fd int, length int64) (err error) {
1273// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1582// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1274 1583
1275func Getegid() (egid int) { 1584func Getegid() (egid int) {
1276 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) 1585 r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
1277 egid = int(r0) 1586 egid = int(r0)
1278 return 1587 return
1279} 1588}
@@ -1281,7 +1590,7 @@ func Getegid() (egid int) {
1281// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1590// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1282 1591
1283func Geteuid() (euid int) { 1592func Geteuid() (euid int) {
1284 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) 1593 r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
1285 euid = int(r0) 1594 euid = int(r0)
1286 return 1595 return
1287} 1596}
@@ -1289,7 +1598,7 @@ func Geteuid() (euid int) {
1289// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1598// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1290 1599
1291func Getgid() (gid int) { 1600func Getgid() (gid int) {
1292 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) 1601 r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
1293 gid = int(r0) 1602 gid = int(r0)
1294 return 1603 return
1295} 1604}
@@ -1307,7 +1616,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
1307// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1616// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1308 1617
1309func Getuid() (uid int) { 1618func Getuid() (uid int) {
1310 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) 1619 r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
1311 uid = int(r0) 1620 uid = int(r0)
1312 return 1621 return
1313} 1622}
@@ -1778,6 +2087,21 @@ func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int6
1778 2087
1779// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2088// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1780 2089
2090func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2091 var _p0 *byte
2092 _p0, err = BytePtrFromString(path)
2093 if err != nil {
2094 return
2095 }
2096 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2097 if e1 != 0 {
2098 err = errnoErr(e1)
2099 }
2100 return
2101}
2102
2103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2104
1781func Gettimeofday(tv *Timeval) (err error) { 2105func Gettimeofday(tv *Timeval) (err error) {
1782 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 2106 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1783 if e1 != 0 { 2107 if e1 != 0 {
@@ -1803,6 +2127,21 @@ func Utime(path string, buf *Utimbuf) (err error) {
1803 2127
1804// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2128// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1805 2129
2130func utimes(path string, times *[2]Timeval) (err error) {
2131 var _p0 *byte
2132 _p0, err = BytePtrFromString(path)
2133 if err != nil {
2134 return
2135 }
2136 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2137 if e1 != 0 {
2138 err = errnoErr(e1)
2139 }
2140 return
2141}
2142
2143// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2144
1806func pipe(p *[2]_C_int) (err error) { 2145func pipe(p *[2]_C_int) (err error) {
1807 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) 2146 _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
1808 if e1 != 0 { 2147 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
index 62eadff..f1874d5 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
@@ -571,6 +571,245 @@ func Exit(code int) {
571 571
572// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 572// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
573 573
574func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
575 var _p0 *byte
576 _p0, err = BytePtrFromString(attrname)
577 if err != nil {
578 return
579 }
580 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
581 ret = int(r0)
582 if e1 != 0 {
583 err = errnoErr(e1)
584 }
585 return
586}
587
588// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
589
590func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
591 var _p0 *byte
592 _p0, err = BytePtrFromString(attrname)
593 if err != nil {
594 return
595 }
596 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
597 ret = int(r0)
598 if e1 != 0 {
599 err = errnoErr(e1)
600 }
601 return
602}
603
604// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
605
606func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
607 var _p0 *byte
608 _p0, err = BytePtrFromString(attrname)
609 if err != nil {
610 return
611 }
612 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
613 if e1 != 0 {
614 err = errnoErr(e1)
615 }
616 return
617}
618
619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
620
621func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
622 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
623 ret = int(r0)
624 if e1 != 0 {
625 err = errnoErr(e1)
626 }
627 return
628}
629
630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
631
632func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
633 var _p0 *byte
634 _p0, err = BytePtrFromString(file)
635 if err != nil {
636 return
637 }
638 var _p1 *byte
639 _p1, err = BytePtrFromString(attrname)
640 if err != nil {
641 return
642 }
643 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
644 ret = int(r0)
645 if e1 != 0 {
646 err = errnoErr(e1)
647 }
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
654 var _p0 *byte
655 _p0, err = BytePtrFromString(file)
656 if err != nil {
657 return
658 }
659 var _p1 *byte
660 _p1, err = BytePtrFromString(attrname)
661 if err != nil {
662 return
663 }
664 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
665 ret = int(r0)
666 if e1 != 0 {
667 err = errnoErr(e1)
668 }
669 return
670}
671
672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
673
674func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
675 var _p0 *byte
676 _p0, err = BytePtrFromString(file)
677 if err != nil {
678 return
679 }
680 var _p1 *byte
681 _p1, err = BytePtrFromString(attrname)
682 if err != nil {
683 return
684 }
685 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
686 if e1 != 0 {
687 err = errnoErr(e1)
688 }
689 return
690}
691
692// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
693
694func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
695 var _p0 *byte
696 _p0, err = BytePtrFromString(file)
697 if err != nil {
698 return
699 }
700 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
701 ret = int(r0)
702 if e1 != 0 {
703 err = errnoErr(e1)
704 }
705 return
706}
707
708// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
709
710func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
711 var _p0 *byte
712 _p0, err = BytePtrFromString(link)
713 if err != nil {
714 return
715 }
716 var _p1 *byte
717 _p1, err = BytePtrFromString(attrname)
718 if err != nil {
719 return
720 }
721 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
722 ret = int(r0)
723 if e1 != 0 {
724 err = errnoErr(e1)
725 }
726 return
727}
728
729// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
730
731func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
732 var _p0 *byte
733 _p0, err = BytePtrFromString(link)
734 if err != nil {
735 return
736 }
737 var _p1 *byte
738 _p1, err = BytePtrFromString(attrname)
739 if err != nil {
740 return
741 }
742 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
743 ret = int(r0)
744 if e1 != 0 {
745 err = errnoErr(e1)
746 }
747 return
748}
749
750// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
751
752func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
753 var _p0 *byte
754 _p0, err = BytePtrFromString(link)
755 if err != nil {
756 return
757 }
758 var _p1 *byte
759 _p1, err = BytePtrFromString(attrname)
760 if err != nil {
761 return
762 }
763 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
764 if e1 != 0 {
765 err = errnoErr(e1)
766 }
767 return
768}
769
770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
771
772func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
773 var _p0 *byte
774 _p0, err = BytePtrFromString(link)
775 if err != nil {
776 return
777 }
778 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
779 ret = int(r0)
780 if e1 != 0 {
781 err = errnoErr(e1)
782 }
783 return
784}
785
786// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
787
788func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
789 var _p0 *byte
790 _p0, err = BytePtrFromString(path)
791 if err != nil {
792 return
793 }
794 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
795 if e1 != 0 {
796 err = errnoErr(e1)
797 }
798 return
799}
800
801// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
802
803func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
804 _, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0)
805 if e1 != 0 {
806 err = errnoErr(e1)
807 }
808 return
809}
810
811// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
812
574func Fchdir(fd int) (err error) { 813func Fchdir(fd int) (err error) {
575 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 814 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
576 if e1 != 0 { 815 if e1 != 0 {
@@ -601,6 +840,21 @@ func Fchmod(fd int, mode uint32) (err error) {
601 840
602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 841// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
603 842
843func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
844 var _p0 *byte
845 _p0, err = BytePtrFromString(path)
846 if err != nil {
847 return
848 }
849 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
850 if e1 != 0 {
851 err = errnoErr(e1)
852 }
853 return
854}
855
856// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
857
604func Fchown(fd int, uid int, gid int) (err error) { 858func Fchown(fd int, uid int, gid int) (err error) {
605 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 859 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
606 if e1 != 0 { 860 if e1 != 0 {
@@ -642,6 +896,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
642 896
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 897// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644 898
899func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
900 var _p0 *byte
901 _p0, err = BytePtrFromString(path)
902 if err != nil {
903 return
904 }
905 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
906 if e1 != 0 {
907 err = errnoErr(e1)
908 }
909 return
910}
911
912// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
913
645func Fsync(fd int) (err error) { 914func Fsync(fd int) (err error) {
646 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 915 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
647 if e1 != 0 { 916 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
index 307f4e9..eb80283 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
@@ -571,6 +571,245 @@ func Exit(code int) {
571 571
572// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 572// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
573 573
574func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
575 var _p0 *byte
576 _p0, err = BytePtrFromString(attrname)
577 if err != nil {
578 return
579 }
580 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
581 ret = int(r0)
582 if e1 != 0 {
583 err = errnoErr(e1)
584 }
585 return
586}
587
588// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
589
590func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
591 var _p0 *byte
592 _p0, err = BytePtrFromString(attrname)
593 if err != nil {
594 return
595 }
596 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
597 ret = int(r0)
598 if e1 != 0 {
599 err = errnoErr(e1)
600 }
601 return
602}
603
604// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
605
606func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
607 var _p0 *byte
608 _p0, err = BytePtrFromString(attrname)
609 if err != nil {
610 return
611 }
612 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
613 if e1 != 0 {
614 err = errnoErr(e1)
615 }
616 return
617}
618
619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
620
621func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
622 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
623 ret = int(r0)
624 if e1 != 0 {
625 err = errnoErr(e1)
626 }
627 return
628}
629
630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
631
632func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
633 var _p0 *byte
634 _p0, err = BytePtrFromString(file)
635 if err != nil {
636 return
637 }
638 var _p1 *byte
639 _p1, err = BytePtrFromString(attrname)
640 if err != nil {
641 return
642 }
643 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
644 ret = int(r0)
645 if e1 != 0 {
646 err = errnoErr(e1)
647 }
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
654 var _p0 *byte
655 _p0, err = BytePtrFromString(file)
656 if err != nil {
657 return
658 }
659 var _p1 *byte
660 _p1, err = BytePtrFromString(attrname)
661 if err != nil {
662 return
663 }
664 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
665 ret = int(r0)
666 if e1 != 0 {
667 err = errnoErr(e1)
668 }
669 return
670}
671
672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
673
674func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
675 var _p0 *byte
676 _p0, err = BytePtrFromString(file)
677 if err != nil {
678 return
679 }
680 var _p1 *byte
681 _p1, err = BytePtrFromString(attrname)
682 if err != nil {
683 return
684 }
685 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
686 if e1 != 0 {
687 err = errnoErr(e1)
688 }
689 return
690}
691
692// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
693
694func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
695 var _p0 *byte
696 _p0, err = BytePtrFromString(file)
697 if err != nil {
698 return
699 }
700 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
701 ret = int(r0)
702 if e1 != 0 {
703 err = errnoErr(e1)
704 }
705 return
706}
707
708// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
709
710func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
711 var _p0 *byte
712 _p0, err = BytePtrFromString(link)
713 if err != nil {
714 return
715 }
716 var _p1 *byte
717 _p1, err = BytePtrFromString(attrname)
718 if err != nil {
719 return
720 }
721 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
722 ret = int(r0)
723 if e1 != 0 {
724 err = errnoErr(e1)
725 }
726 return
727}
728
729// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
730
731func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
732 var _p0 *byte
733 _p0, err = BytePtrFromString(link)
734 if err != nil {
735 return
736 }
737 var _p1 *byte
738 _p1, err = BytePtrFromString(attrname)
739 if err != nil {
740 return
741 }
742 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
743 ret = int(r0)
744 if e1 != 0 {
745 err = errnoErr(e1)
746 }
747 return
748}
749
750// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
751
752func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
753 var _p0 *byte
754 _p0, err = BytePtrFromString(link)
755 if err != nil {
756 return
757 }
758 var _p1 *byte
759 _p1, err = BytePtrFromString(attrname)
760 if err != nil {
761 return
762 }
763 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
764 if e1 != 0 {
765 err = errnoErr(e1)
766 }
767 return
768}
769
770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
771
772func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
773 var _p0 *byte
774 _p0, err = BytePtrFromString(link)
775 if err != nil {
776 return
777 }
778 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
779 ret = int(r0)
780 if e1 != 0 {
781 err = errnoErr(e1)
782 }
783 return
784}
785
786// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
787
788func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
789 var _p0 *byte
790 _p0, err = BytePtrFromString(path)
791 if err != nil {
792 return
793 }
794 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
795 if e1 != 0 {
796 err = errnoErr(e1)
797 }
798 return
799}
800
801// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
802
803func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
804 _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), 0, uintptr(length), uintptr(advice))
805 if e1 != 0 {
806 err = errnoErr(e1)
807 }
808 return
809}
810
811// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
812
574func Fchdir(fd int) (err error) { 813func Fchdir(fd int) (err error) {
575 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 814 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
576 if e1 != 0 { 815 if e1 != 0 {
@@ -601,6 +840,21 @@ func Fchmod(fd int, mode uint32) (err error) {
601 840
602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 841// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
603 842
843func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
844 var _p0 *byte
845 _p0, err = BytePtrFromString(path)
846 if err != nil {
847 return
848 }
849 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
850 if e1 != 0 {
851 err = errnoErr(e1)
852 }
853 return
854}
855
856// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
857
604func Fchown(fd int, uid int, gid int) (err error) { 858func Fchown(fd int, uid int, gid int) (err error) {
605 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 859 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
606 if e1 != 0 { 860 if e1 != 0 {
@@ -642,6 +896,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
642 896
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 897// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644 898
899func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
900 var _p0 *byte
901 _p0, err = BytePtrFromString(path)
902 if err != nil {
903 return
904 }
905 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
906 if e1 != 0 {
907 err = errnoErr(e1)
908 }
909 return
910}
911
912// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
913
645func Fsync(fd int) (err error) { 914func Fsync(fd int) (err error) {
646 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 915 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
647 if e1 != 0 { 916 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
index 6110931..7b36499 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
@@ -571,6 +571,245 @@ func Exit(code int) {
571 571
572// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 572// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
573 573
574func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
575 var _p0 *byte
576 _p0, err = BytePtrFromString(attrname)
577 if err != nil {
578 return
579 }
580 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
581 ret = int(r0)
582 if e1 != 0 {
583 err = errnoErr(e1)
584 }
585 return
586}
587
588// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
589
590func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
591 var _p0 *byte
592 _p0, err = BytePtrFromString(attrname)
593 if err != nil {
594 return
595 }
596 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
597 ret = int(r0)
598 if e1 != 0 {
599 err = errnoErr(e1)
600 }
601 return
602}
603
604// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
605
606func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
607 var _p0 *byte
608 _p0, err = BytePtrFromString(attrname)
609 if err != nil {
610 return
611 }
612 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
613 if e1 != 0 {
614 err = errnoErr(e1)
615 }
616 return
617}
618
619// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
620
621func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
622 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
623 ret = int(r0)
624 if e1 != 0 {
625 err = errnoErr(e1)
626 }
627 return
628}
629
630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
631
632func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
633 var _p0 *byte
634 _p0, err = BytePtrFromString(file)
635 if err != nil {
636 return
637 }
638 var _p1 *byte
639 _p1, err = BytePtrFromString(attrname)
640 if err != nil {
641 return
642 }
643 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
644 ret = int(r0)
645 if e1 != 0 {
646 err = errnoErr(e1)
647 }
648 return
649}
650
651// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
652
653func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
654 var _p0 *byte
655 _p0, err = BytePtrFromString(file)
656 if err != nil {
657 return
658 }
659 var _p1 *byte
660 _p1, err = BytePtrFromString(attrname)
661 if err != nil {
662 return
663 }
664 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
665 ret = int(r0)
666 if e1 != 0 {
667 err = errnoErr(e1)
668 }
669 return
670}
671
672// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
673
674func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
675 var _p0 *byte
676 _p0, err = BytePtrFromString(file)
677 if err != nil {
678 return
679 }
680 var _p1 *byte
681 _p1, err = BytePtrFromString(attrname)
682 if err != nil {
683 return
684 }
685 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
686 if e1 != 0 {
687 err = errnoErr(e1)
688 }
689 return
690}
691
692// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
693
694func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
695 var _p0 *byte
696 _p0, err = BytePtrFromString(file)
697 if err != nil {
698 return
699 }
700 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
701 ret = int(r0)
702 if e1 != 0 {
703 err = errnoErr(e1)
704 }
705 return
706}
707
708// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
709
710func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
711 var _p0 *byte
712 _p0, err = BytePtrFromString(link)
713 if err != nil {
714 return
715 }
716 var _p1 *byte
717 _p1, err = BytePtrFromString(attrname)
718 if err != nil {
719 return
720 }
721 r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
722 ret = int(r0)
723 if e1 != 0 {
724 err = errnoErr(e1)
725 }
726 return
727}
728
729// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
730
731func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
732 var _p0 *byte
733 _p0, err = BytePtrFromString(link)
734 if err != nil {
735 return
736 }
737 var _p1 *byte
738 _p1, err = BytePtrFromString(attrname)
739 if err != nil {
740 return
741 }
742 r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
743 ret = int(r0)
744 if e1 != 0 {
745 err = errnoErr(e1)
746 }
747 return
748}
749
750// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
751
752func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
753 var _p0 *byte
754 _p0, err = BytePtrFromString(link)
755 if err != nil {
756 return
757 }
758 var _p1 *byte
759 _p1, err = BytePtrFromString(attrname)
760 if err != nil {
761 return
762 }
763 _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
764 if e1 != 0 {
765 err = errnoErr(e1)
766 }
767 return
768}
769
770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
771
772func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
773 var _p0 *byte
774 _p0, err = BytePtrFromString(link)
775 if err != nil {
776 return
777 }
778 r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
779 ret = int(r0)
780 if e1 != 0 {
781 err = errnoErr(e1)
782 }
783 return
784}
785
786// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
787
788func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
789 var _p0 *byte
790 _p0, err = BytePtrFromString(path)
791 if err != nil {
792 return
793 }
794 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
795 if e1 != 0 {
796 err = errnoErr(e1)
797 }
798 return
799}
800
801// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
802
803func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
804 _, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0)
805 if e1 != 0 {
806 err = errnoErr(e1)
807 }
808 return
809}
810
811// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
812
574func Fchdir(fd int) (err error) { 813func Fchdir(fd int) (err error) {
575 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 814 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
576 if e1 != 0 { 815 if e1 != 0 {
@@ -601,6 +840,21 @@ func Fchmod(fd int, mode uint32) (err error) {
601 840
602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 841// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
603 842
843func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
844 var _p0 *byte
845 _p0, err = BytePtrFromString(path)
846 if err != nil {
847 return
848 }
849 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
850 if e1 != 0 {
851 err = errnoErr(e1)
852 }
853 return
854}
855
856// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
857
604func Fchown(fd int, uid int, gid int) (err error) { 858func Fchown(fd int, uid int, gid int) (err error) {
605 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 859 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
606 if e1 != 0 { 860 if e1 != 0 {
@@ -642,6 +896,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
642 896
643// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 897// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
644 898
899func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
900 var _p0 *byte
901 _p0, err = BytePtrFromString(path)
902 if err != nil {
903 return
904 }
905 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
906 if e1 != 0 {
907 err = errnoErr(e1)
908 }
909 return
910}
911
912// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
913
645func Fsync(fd int) (err error) { 914func Fsync(fd int) (err error) {
646 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 915 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
647 if e1 != 0 { 916 if e1 != 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
index 003f820..1942049 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
@@ -569,6 +569,21 @@ func Exit(code int) {
569 569
570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571 571
572func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
573 var _p0 *byte
574 _p0, err = BytePtrFromString(path)
575 if err != nil {
576 return
577 }
578 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
579 if e1 != 0 {
580 err = errnoErr(e1)
581 }
582 return
583}
584
585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
586
572func Fchdir(fd int) (err error) { 587func Fchdir(fd int) (err error) {
573 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 588 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
574 if e1 != 0 { 589 if e1 != 0 {
@@ -599,6 +614,21 @@ func Fchmod(fd int, mode uint32) (err error) {
599 614
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 615// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601 616
617func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
618 var _p0 *byte
619 _p0, err = BytePtrFromString(path)
620 if err != nil {
621 return
622 }
623 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
624 if e1 != 0 {
625 err = errnoErr(e1)
626 }
627 return
628}
629
630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
631
602func Fchown(fd int, uid int, gid int) (err error) { 632func Fchown(fd int, uid int, gid int) (err error) {
603 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 633 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
604 if e1 != 0 { 634 if e1 != 0 {
@@ -640,6 +670,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
640 670
641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 671// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642 672
673func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
674 var _p0 *byte
675 _p0, err = BytePtrFromString(path)
676 if err != nil {
677 return
678 }
679 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
680 if e1 != 0 {
681 err = errnoErr(e1)
682 }
683 return
684}
685
686// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
687
643func Fstatfs(fd int, stat *Statfs_t) (err error) { 688func Fstatfs(fd int, stat *Statfs_t) (err error) {
644 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 689 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
645 if e1 != 0 { 690 if e1 != 0 {
@@ -750,6 +795,17 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
750 795
751// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 796// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
752 797
798func Getrtable() (rtable int, err error) {
799 r0, _, e1 := RawSyscall(SYS_GETRTABLE, 0, 0, 0)
800 rtable = int(r0)
801 if e1 != 0 {
802 err = errnoErr(e1)
803 }
804 return
805}
806
807// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
808
753func Getrusage(who int, rusage *Rusage) (err error) { 809func Getrusage(who int, rusage *Rusage) (err error) {
754 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 810 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
755 if e1 != 0 { 811 if e1 != 0 {
@@ -1224,6 +1280,16 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
1224 1280
1225// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1281// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1226 1282
1283func Setrtable(rtable int) (err error) {
1284 _, _, e1 := RawSyscall(SYS_SETRTABLE, uintptr(rtable), 0, 0)
1285 if e1 != 0 {
1286 err = errnoErr(e1)
1287 }
1288 return
1289}
1290
1291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292
1227func Setsid() (pid int, err error) { 1293func Setsid() (pid int, err error) {
1228 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) 1294 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1229 pid = int(r0) 1295 pid = int(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
index ba0e8f3..d351c72 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
@@ -569,6 +569,21 @@ func Exit(code int) {
569 569
570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571 571
572func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
573 var _p0 *byte
574 _p0, err = BytePtrFromString(path)
575 if err != nil {
576 return
577 }
578 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
579 if e1 != 0 {
580 err = errnoErr(e1)
581 }
582 return
583}
584
585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
586
572func Fchdir(fd int) (err error) { 587func Fchdir(fd int) (err error) {
573 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 588 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
574 if e1 != 0 { 589 if e1 != 0 {
@@ -599,6 +614,21 @@ func Fchmod(fd int, mode uint32) (err error) {
599 614
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 615// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601 616
617func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
618 var _p0 *byte
619 _p0, err = BytePtrFromString(path)
620 if err != nil {
621 return
622 }
623 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
624 if e1 != 0 {
625 err = errnoErr(e1)
626 }
627 return
628}
629
630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
631
602func Fchown(fd int, uid int, gid int) (err error) { 632func Fchown(fd int, uid int, gid int) (err error) {
603 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 633 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
604 if e1 != 0 { 634 if e1 != 0 {
@@ -640,6 +670,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
640 670
641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 671// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642 672
673func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
674 var _p0 *byte
675 _p0, err = BytePtrFromString(path)
676 if err != nil {
677 return
678 }
679 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
680 if e1 != 0 {
681 err = errnoErr(e1)
682 }
683 return
684}
685
686// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
687
643func Fstatfs(fd int, stat *Statfs_t) (err error) { 688func Fstatfs(fd int, stat *Statfs_t) (err error) {
644 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 689 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
645 if e1 != 0 { 690 if e1 != 0 {
@@ -750,6 +795,17 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
750 795
751// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 796// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
752 797
798func Getrtable() (rtable int, err error) {
799 r0, _, e1 := RawSyscall(SYS_GETRTABLE, 0, 0, 0)
800 rtable = int(r0)
801 if e1 != 0 {
802 err = errnoErr(e1)
803 }
804 return
805}
806
807// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
808
753func Getrusage(who int, rusage *Rusage) (err error) { 809func Getrusage(who int, rusage *Rusage) (err error) {
754 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 810 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
755 if e1 != 0 { 811 if e1 != 0 {
@@ -1224,6 +1280,16 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
1224 1280
1225// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1281// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1226 1282
1283func Setrtable(rtable int) (err error) {
1284 _, _, e1 := RawSyscall(SYS_SETRTABLE, uintptr(rtable), 0, 0)
1285 if e1 != 0 {
1286 err = errnoErr(e1)
1287 }
1288 return
1289}
1290
1291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292
1227func Setsid() (pid int, err error) { 1293func Setsid() (pid int, err error) {
1228 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) 1294 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1229 pid = int(r0) 1295 pid = int(r0)
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
index 2ce02c7..617d47f 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
@@ -569,6 +569,21 @@ func Exit(code int) {
569 569
570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 570// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571 571
572func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
573 var _p0 *byte
574 _p0, err = BytePtrFromString(path)
575 if err != nil {
576 return
577 }
578 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
579 if e1 != 0 {
580 err = errnoErr(e1)
581 }
582 return
583}
584
585// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
586
572func Fchdir(fd int) (err error) { 587func Fchdir(fd int) (err error) {
573 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 588 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
574 if e1 != 0 { 589 if e1 != 0 {
@@ -599,6 +614,21 @@ func Fchmod(fd int, mode uint32) (err error) {
599 614
600// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 615// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601 616
617func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
618 var _p0 *byte
619 _p0, err = BytePtrFromString(path)
620 if err != nil {
621 return
622 }
623 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
624 if e1 != 0 {
625 err = errnoErr(e1)
626 }
627 return
628}
629
630// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
631
602func Fchown(fd int, uid int, gid int) (err error) { 632func Fchown(fd int, uid int, gid int) (err error) {
603 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 633 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
604 if e1 != 0 { 634 if e1 != 0 {
@@ -640,6 +670,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
640 670
641// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 671// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642 672
673func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
674 var _p0 *byte
675 _p0, err = BytePtrFromString(path)
676 if err != nil {
677 return
678 }
679 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
680 if e1 != 0 {
681 err = errnoErr(e1)
682 }
683 return
684}
685
686// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
687
643func Fstatfs(fd int, stat *Statfs_t) (err error) { 688func Fstatfs(fd int, stat *Statfs_t) (err error) {
644 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 689 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
645 if e1 != 0 { 690 if e1 != 0 {
@@ -750,6 +795,17 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
750 795
751// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 796// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
752 797
798func Getrtable() (rtable int, err error) {
799 r0, _, e1 := RawSyscall(SYS_GETRTABLE, 0, 0, 0)
800 rtable = int(r0)
801 if e1 != 0 {
802 err = errnoErr(e1)
803 }
804 return
805}
806
807// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
808
753func Getrusage(who int, rusage *Rusage) (err error) { 809func Getrusage(who int, rusage *Rusage) (err error) {
754 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 810 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
755 if e1 != 0 { 811 if e1 != 0 {
@@ -1224,6 +1280,16 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
1224 1280
1225// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1281// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1226 1282
1283func Setrtable(rtable int) (err error) {
1284 _, _, e1 := RawSyscall(SYS_SETRTABLE, uintptr(rtable), 0, 0)
1285 if e1 != 0 {
1286 err = errnoErr(e1)
1287 }
1288 return
1289}
1290
1291// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292
1227func Setsid() (pid int, err error) { 1293func Setsid() (pid int, err error) {
1228 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) 1294 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1229 pid = int(r0) 1295 pid = int(r0)
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 f5d01b3..e2e5fc5 100644
--- a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
@@ -41,6 +41,7 @@ import (
41//go:cgo_import_dynamic libc_dup dup "libc.so" 41//go:cgo_import_dynamic libc_dup dup "libc.so"
42//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" 42//go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
43//go:cgo_import_dynamic libc_exit exit "libc.so" 43//go:cgo_import_dynamic libc_exit exit "libc.so"
44//go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
44//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" 45//go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
45//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" 46//go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
46//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" 47//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
@@ -50,6 +51,7 @@ import (
50//go:cgo_import_dynamic libc_flock flock "libc.so" 51//go:cgo_import_dynamic libc_flock flock "libc.so"
51//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" 52//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
52//go:cgo_import_dynamic libc_fstat fstat "libc.so" 53//go:cgo_import_dynamic libc_fstat fstat "libc.so"
54//go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
53//go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so" 55//go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so"
54//go:cgo_import_dynamic libc_getdents getdents "libc.so" 56//go:cgo_import_dynamic libc_getdents getdents "libc.so"
55//go:cgo_import_dynamic libc_getgid getgid "libc.so" 57//go:cgo_import_dynamic libc_getgid getgid "libc.so"
@@ -127,6 +129,7 @@ import (
127//go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so" 129//go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so"
128//go:cgo_import_dynamic libc_mmap mmap "libc.so" 130//go:cgo_import_dynamic libc_mmap mmap "libc.so"
129//go:cgo_import_dynamic libc_munmap munmap "libc.so" 131//go:cgo_import_dynamic libc_munmap munmap "libc.so"
132//go:cgo_import_dynamic libc_sendfile sendfile "libsendfile.so"
130//go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so" 133//go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so"
131//go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so" 134//go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so"
132//go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so" 135//go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so"
@@ -167,6 +170,7 @@ import (
167//go:linkname procDup libc_dup 170//go:linkname procDup libc_dup
168//go:linkname procDup2 libc_dup2 171//go:linkname procDup2 libc_dup2
169//go:linkname procExit libc_exit 172//go:linkname procExit libc_exit
173//go:linkname procFaccessat libc_faccessat
170//go:linkname procFchdir libc_fchdir 174//go:linkname procFchdir libc_fchdir
171//go:linkname procFchmod libc_fchmod 175//go:linkname procFchmod libc_fchmod
172//go:linkname procFchmodat libc_fchmodat 176//go:linkname procFchmodat libc_fchmodat
@@ -176,6 +180,7 @@ import (
176//go:linkname procFlock libc_flock 180//go:linkname procFlock libc_flock
177//go:linkname procFpathconf libc_fpathconf 181//go:linkname procFpathconf libc_fpathconf
178//go:linkname procFstat libc_fstat 182//go:linkname procFstat libc_fstat
183//go:linkname procFstatat libc_fstatat
179//go:linkname procFstatvfs libc_fstatvfs 184//go:linkname procFstatvfs libc_fstatvfs
180//go:linkname procGetdents libc_getdents 185//go:linkname procGetdents libc_getdents
181//go:linkname procGetgid libc_getgid 186//go:linkname procGetgid libc_getgid
@@ -253,6 +258,7 @@ import (
253//go:linkname proc__xnet_connect libc___xnet_connect 258//go:linkname proc__xnet_connect libc___xnet_connect
254//go:linkname procmmap libc_mmap 259//go:linkname procmmap libc_mmap
255//go:linkname procmunmap libc_munmap 260//go:linkname procmunmap libc_munmap
261//go:linkname procsendfile libc_sendfile
256//go:linkname proc__xnet_sendto libc___xnet_sendto 262//go:linkname proc__xnet_sendto libc___xnet_sendto
257//go:linkname proc__xnet_socket libc___xnet_socket 263//go:linkname proc__xnet_socket libc___xnet_socket
258//go:linkname proc__xnet_socketpair libc___xnet_socketpair 264//go:linkname proc__xnet_socketpair libc___xnet_socketpair
@@ -294,6 +300,7 @@ var (
294 procDup, 300 procDup,
295 procDup2, 301 procDup2,
296 procExit, 302 procExit,
303 procFaccessat,
297 procFchdir, 304 procFchdir,
298 procFchmod, 305 procFchmod,
299 procFchmodat, 306 procFchmodat,
@@ -303,6 +310,7 @@ var (
303 procFlock, 310 procFlock,
304 procFpathconf, 311 procFpathconf,
305 procFstat, 312 procFstat,
313 procFstatat,
306 procFstatvfs, 314 procFstatvfs,
307 procGetdents, 315 procGetdents,
308 procGetgid, 316 procGetgid,
@@ -380,6 +388,7 @@ var (
380 proc__xnet_connect, 388 proc__xnet_connect,
381 procmmap, 389 procmmap,
382 procmunmap, 390 procmunmap,
391 procsendfile,
383 proc__xnet_sendto, 392 proc__xnet_sendto,
384 proc__xnet_socket, 393 proc__xnet_socket,
385 proc__xnet_socketpair, 394 proc__xnet_socketpair,
@@ -689,6 +698,19 @@ func Exit(code int) {
689 return 698 return
690} 699}
691 700
701func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
702 var _p0 *byte
703 _p0, err = BytePtrFromString(path)
704 if err != nil {
705 return
706 }
707 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFaccessat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
708 if e1 != 0 {
709 err = e1
710 }
711 return
712}
713
692func Fchdir(fd int) (err error) { 714func Fchdir(fd int) (err error) {
693 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0) 715 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0)
694 if e1 != 0 { 716 if e1 != 0 {
@@ -772,6 +794,19 @@ func Fstat(fd int, stat *Stat_t) (err error) {
772 return 794 return
773} 795}
774 796
797func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
798 var _p0 *byte
799 _p0, err = BytePtrFromString(path)
800 if err != nil {
801 return
802 }
803 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
804 if e1 != 0 {
805 err = e1
806 }
807 return
808}
809
775func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) { 810func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) {
776 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0) 811 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0)
777 if e1 != 0 { 812 if e1 != 0 {
@@ -1573,6 +1608,15 @@ func munmap(addr uintptr, length uintptr) (err error) {
1573 return 1608 return
1574} 1609}
1575 1610
1611func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1612 r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendfile)), 4, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1613 written = int(r0)
1614 if e1 != 0 {
1615 err = e1
1616 }
1617 return
1618}
1619
1576func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { 1620func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
1577 var _p0 *byte 1621 var _p0 *byte
1578 if len(buf) > 0 { 1622 if len(buf) > 0 {
diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go
index 83bb935..b005031 100644
--- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go
@@ -1,5 +1,5 @@
1// mksysctl_openbsd.pl 1// mksysctl_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4package unix 4package unix
5 5
diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go
index 83bb935..d014451 100644
--- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go
@@ -1,5 +1,7 @@
1// mksysctl_openbsd.pl 1// mksysctl_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3
4// +build amd64,openbsd
3 5
4package unix 6package unix
5 7
@@ -14,6 +16,7 @@ var sysctlMib = []mibentry{
14 {"ddb.max_line", []_C_int{9, 3}}, 16 {"ddb.max_line", []_C_int{9, 3}},
15 {"ddb.max_width", []_C_int{9, 2}}, 17 {"ddb.max_width", []_C_int{9, 2}},
16 {"ddb.panic", []_C_int{9, 5}}, 18 {"ddb.panic", []_C_int{9, 5}},
19 {"ddb.profile", []_C_int{9, 9}},
17 {"ddb.radix", []_C_int{9, 1}}, 20 {"ddb.radix", []_C_int{9, 1}},
18 {"ddb.tab_stop_width", []_C_int{9, 4}}, 21 {"ddb.tab_stop_width", []_C_int{9, 4}},
19 {"ddb.trigger", []_C_int{9, 8}}, 22 {"ddb.trigger", []_C_int{9, 8}},
@@ -29,6 +32,7 @@ var sysctlMib = []mibentry{
29 {"hw.ncpu", []_C_int{6, 3}}, 32 {"hw.ncpu", []_C_int{6, 3}},
30 {"hw.ncpufound", []_C_int{6, 21}}, 33 {"hw.ncpufound", []_C_int{6, 21}},
31 {"hw.pagesize", []_C_int{6, 7}}, 34 {"hw.pagesize", []_C_int{6, 7}},
35 {"hw.perfpolicy", []_C_int{6, 23}},
32 {"hw.physmem", []_C_int{6, 19}}, 36 {"hw.physmem", []_C_int{6, 19}},
33 {"hw.product", []_C_int{6, 15}}, 37 {"hw.product", []_C_int{6, 15}},
34 {"hw.serialno", []_C_int{6, 17}}, 38 {"hw.serialno", []_C_int{6, 17}},
@@ -37,7 +41,7 @@ var sysctlMib = []mibentry{
37 {"hw.uuid", []_C_int{6, 18}}, 41 {"hw.uuid", []_C_int{6, 18}},
38 {"hw.vendor", []_C_int{6, 14}}, 42 {"hw.vendor", []_C_int{6, 14}},
39 {"hw.version", []_C_int{6, 16}}, 43 {"hw.version", []_C_int{6, 16}},
40 {"kern.arandom", []_C_int{1, 37}}, 44 {"kern.allowkmem", []_C_int{1, 52}},
41 {"kern.argmax", []_C_int{1, 8}}, 45 {"kern.argmax", []_C_int{1, 8}},
42 {"kern.boottime", []_C_int{1, 21}}, 46 {"kern.boottime", []_C_int{1, 21}},
43 {"kern.bufcachepercent", []_C_int{1, 72}}, 47 {"kern.bufcachepercent", []_C_int{1, 72}},
@@ -46,12 +50,13 @@ var sysctlMib = []mibentry{
46 {"kern.consdev", []_C_int{1, 75}}, 50 {"kern.consdev", []_C_int{1, 75}},
47 {"kern.cp_time", []_C_int{1, 40}}, 51 {"kern.cp_time", []_C_int{1, 40}},
48 {"kern.cp_time2", []_C_int{1, 71}}, 52 {"kern.cp_time2", []_C_int{1, 71}},
49 {"kern.cryptodevallowsoft", []_C_int{1, 53}}, 53 {"kern.dnsjackport", []_C_int{1, 13}},
50 {"kern.domainname", []_C_int{1, 22}}, 54 {"kern.domainname", []_C_int{1, 22}},
51 {"kern.file", []_C_int{1, 73}}, 55 {"kern.file", []_C_int{1, 73}},
52 {"kern.forkstat", []_C_int{1, 42}}, 56 {"kern.forkstat", []_C_int{1, 42}},
53 {"kern.fscale", []_C_int{1, 46}}, 57 {"kern.fscale", []_C_int{1, 46}},
54 {"kern.fsync", []_C_int{1, 33}}, 58 {"kern.fsync", []_C_int{1, 33}},
59 {"kern.global_ptrace", []_C_int{1, 81}},
55 {"kern.hostid", []_C_int{1, 11}}, 60 {"kern.hostid", []_C_int{1, 11}},
56 {"kern.hostname", []_C_int{1, 10}}, 61 {"kern.hostname", []_C_int{1, 10}},
57 {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, 62 {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}},
@@ -84,7 +89,6 @@ var sysctlMib = []mibentry{
84 {"kern.pool_debug", []_C_int{1, 77}}, 89 {"kern.pool_debug", []_C_int{1, 77}},
85 {"kern.posix1version", []_C_int{1, 17}}, 90 {"kern.posix1version", []_C_int{1, 17}},
86 {"kern.proc", []_C_int{1, 66}}, 91 {"kern.proc", []_C_int{1, 66}},
87 {"kern.random", []_C_int{1, 31}},
88 {"kern.rawpartition", []_C_int{1, 24}}, 92 {"kern.rawpartition", []_C_int{1, 24}},
89 {"kern.saved_ids", []_C_int{1, 20}}, 93 {"kern.saved_ids", []_C_int{1, 20}},
90 {"kern.securelevel", []_C_int{1, 9}}, 94 {"kern.securelevel", []_C_int{1, 9}},
@@ -102,21 +106,16 @@ var sysctlMib = []mibentry{
102 {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, 106 {"kern.timecounter.hardware", []_C_int{1, 69, 3}},
103 {"kern.timecounter.tick", []_C_int{1, 69, 1}}, 107 {"kern.timecounter.tick", []_C_int{1, 69, 1}},
104 {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, 108 {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}},
105 {"kern.tty.maxptys", []_C_int{1, 44, 6}},
106 {"kern.tty.nptys", []_C_int{1, 44, 7}},
107 {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, 109 {"kern.tty.tk_cancc", []_C_int{1, 44, 4}},
108 {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, 110 {"kern.tty.tk_nin", []_C_int{1, 44, 1}},
109 {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, 111 {"kern.tty.tk_nout", []_C_int{1, 44, 2}},
110 {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, 112 {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}},
111 {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, 113 {"kern.tty.ttyinfo", []_C_int{1, 44, 5}},
112 {"kern.ttycount", []_C_int{1, 57}}, 114 {"kern.ttycount", []_C_int{1, 57}},
113 {"kern.userasymcrypto", []_C_int{1, 60}},
114 {"kern.usercrypto", []_C_int{1, 52}},
115 {"kern.usermount", []_C_int{1, 30}},
116 {"kern.version", []_C_int{1, 4}}, 115 {"kern.version", []_C_int{1, 4}},
117 {"kern.vnode", []_C_int{1, 13}},
118 {"kern.watchdog.auto", []_C_int{1, 64, 2}}, 116 {"kern.watchdog.auto", []_C_int{1, 64, 2}},
119 {"kern.watchdog.period", []_C_int{1, 64, 1}}, 117 {"kern.watchdog.period", []_C_int{1, 64, 1}},
118 {"kern.wxabort", []_C_int{1, 74}},
120 {"net.bpf.bufsize", []_C_int{4, 31, 1}}, 119 {"net.bpf.bufsize", []_C_int{4, 31, 1}},
121 {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, 120 {"net.bpf.maxbufsize", []_C_int{4, 31, 2}},
122 {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, 121 {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}},
@@ -144,7 +143,9 @@ var sysctlMib = []mibentry{
144 {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, 143 {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}},
145 {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, 144 {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}},
146 {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, 145 {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}},
146 {"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}},
147 {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, 147 {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}},
148 {"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}},
148 {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, 149 {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}},
149 {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, 150 {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}},
150 {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, 151 {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}},
@@ -153,8 +154,10 @@ var sysctlMib = []mibentry{
153 {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, 154 {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}},
154 {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, 155 {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}},
155 {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, 156 {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}},
157 {"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}},
156 {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, 158 {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}},
157 {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, 159 {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}},
160 {"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}},
158 {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, 161 {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}},
159 {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, 162 {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}},
160 {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, 163 {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}},
@@ -173,7 +176,6 @@ var sysctlMib = []mibentry{
173 {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, 176 {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}},
174 {"net.inet.mobileip.allow", []_C_int{4, 2, 55, 1}}, 177 {"net.inet.mobileip.allow", []_C_int{4, 2, 55, 1}},
175 {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, 178 {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}},
176 {"net.inet.pim.stats", []_C_int{4, 2, 103, 1}},
177 {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, 179 {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}},
178 {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, 180 {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}},
179 {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, 181 {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}},
@@ -187,6 +189,7 @@ var sysctlMib = []mibentry{
187 {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, 189 {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}},
188 {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, 190 {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}},
189 {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, 191 {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}},
192 {"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}},
190 {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, 193 {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}},
191 {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, 194 {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}},
192 {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, 195 {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}},
@@ -194,9 +197,12 @@ var sysctlMib = []mibentry{
194 {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, 197 {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}},
195 {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, 198 {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}},
196 {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, 199 {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}},
200 {"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}},
201 {"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}},
197 {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, 202 {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}},
198 {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, 203 {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}},
199 {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, 204 {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}},
205 {"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}},
200 {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, 206 {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}},
201 {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, 207 {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}},
202 {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, 208 {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}},
@@ -209,13 +215,8 @@ var sysctlMib = []mibentry{
209 {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, 215 {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}},
210 {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, 216 {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}},
211 {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, 217 {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}},
212 {"net.inet6.icmp6.nd6_prune", []_C_int{4, 24, 30, 6}},
213 {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, 218 {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}},
214 {"net.inet6.icmp6.nd6_useloopback", []_C_int{4, 24, 30, 11}},
215 {"net.inet6.icmp6.nodeinfo", []_C_int{4, 24, 30, 13}},
216 {"net.inet6.icmp6.rediraccept", []_C_int{4, 24, 30, 2}},
217 {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, 219 {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}},
218 {"net.inet6.ip6.accept_rtadv", []_C_int{4, 24, 17, 12}},
219 {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, 220 {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}},
220 {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, 221 {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}},
221 {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, 222 {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}},
@@ -228,20 +229,19 @@ var sysctlMib = []mibentry{
228 {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, 229 {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}},
229 {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, 230 {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}},
230 {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, 231 {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}},
231 {"net.inet6.ip6.maxifdefrouters", []_C_int{4, 24, 17, 47}},
232 {"net.inet6.ip6.maxifprefixes", []_C_int{4, 24, 17, 46}},
233 {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, 232 {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}},
233 {"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}},
234 {"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}},
234 {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, 235 {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}},
235 {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, 236 {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}},
236 {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, 237 {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}},
237 {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, 238 {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}},
238 {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, 239 {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}},
239 {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, 240 {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}},
240 {"net.inet6.ip6.rr_prune", []_C_int{4, 24, 17, 22}}, 241 {"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}},
241 {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, 242 {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}},
242 {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, 243 {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}},
243 {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, 244 {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}},
244 {"net.inet6.ip6.v6only", []_C_int{4, 24, 17, 24}},
245 {"net.key.sadb_dump", []_C_int{4, 30, 1}}, 245 {"net.key.sadb_dump", []_C_int{4, 30, 1}},
246 {"net.key.spd_dump", []_C_int{4, 30, 2}}, 246 {"net.key.spd_dump", []_C_int{4, 30, 2}},
247 {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, 247 {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}},
diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go
index 83bb935..b005031 100644
--- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go
@@ -1,5 +1,5 @@
1// mksysctl_openbsd.pl 1// mksysctl_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4package unix 4package unix
5 5
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
index b64a812..1ab8780 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
@@ -7,347 +7,397 @@ package unix
7 7
8const ( 8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int 9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \ 10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \
11 SYS_FORK = 2 // { int fork(void); } 11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \ 12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \ 13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } 14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); } 15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \ 16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \
17 SYS_LINK = 9 // { int link(char *path, char *link); } 17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); } 18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); } 19 SYS_CHDIR = 12 // { int chdir(char *path); }
20 SYS_FCHDIR = 13 // { int fchdir(int fd); } 20 SYS_FCHDIR = 13 // { int fchdir(int fd); }
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } 21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); } 22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } 23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \ 24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \
25 SYS_GETPID = 20 // { pid_t getpid(void); } 25 SYS_GETPID = 20 // { pid_t getpid(void); }
26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \ 26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \
27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } 27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
28 SYS_SETUID = 23 // { int setuid(uid_t uid); } 28 SYS_SETUID = 23 // { int setuid(uid_t uid); }
29 SYS_GETUID = 24 // { uid_t getuid(void); } 29 SYS_GETUID = 24 // { uid_t getuid(void); }
30 SYS_GETEUID = 25 // { uid_t geteuid(void); } 30 SYS_GETEUID = 25 // { uid_t geteuid(void); }
31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \ 31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \
32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \ 32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \
33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \ 33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \
34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \ 34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \
35 SYS_ACCEPT = 30 // { int accept(int s, \ 35 SYS_ACCEPT = 30 // { int accept(int s, \
36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \ 36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \
37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \ 37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \
38 SYS_ACCESS = 33 // { int access(char *path, int amode); } 38 SYS_ACCESS = 33 // { int access(char *path, int amode); }
39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } 39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } 40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
41 SYS_SYNC = 36 // { int sync(void); } 41 SYS_SYNC = 36 // { int sync(void); }
42 SYS_KILL = 37 // { int kill(int pid, int signum); } 42 SYS_KILL = 37 // { int kill(int pid, int signum); }
43 SYS_GETPPID = 39 // { pid_t getppid(void); } 43 SYS_GETPPID = 39 // { pid_t getppid(void); }
44 SYS_DUP = 41 // { int dup(u_int fd); } 44 SYS_DUP = 41 // { int dup(u_int fd); }
45 SYS_PIPE = 42 // { int pipe(void); } 45 SYS_PIPE = 42 // { int pipe(void); }
46 SYS_GETEGID = 43 // { gid_t getegid(void); } 46 SYS_GETEGID = 43 // { gid_t getegid(void); }
47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ 47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \
48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \ 48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \
49 SYS_GETGID = 47 // { gid_t getgid(void); } 49 SYS_GETGID = 47 // { gid_t getgid(void); }
50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \ 50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \
51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } 51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
52 SYS_ACCT = 51 // { int acct(char *path); } 52 SYS_ACCT = 51 // { int acct(char *path); }
53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \ 53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \
54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \ 54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \
55 SYS_REBOOT = 55 // { int reboot(int opt); } 55 SYS_REBOOT = 55 // { int reboot(int opt); }
56 SYS_REVOKE = 56 // { int revoke(char *path); } 56 SYS_REVOKE = 56 // { int revoke(char *path); }
57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } 57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \ 58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \
59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \ 59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \
60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \ 60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \
61 SYS_CHROOT = 61 // { int chroot(char *path); } 61 SYS_CHROOT = 61 // { int chroot(char *path); }
62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \ 62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \
63 SYS_VFORK = 66 // { int vfork(void); } 63 SYS_VFORK = 66 // { int vfork(void); }
64 SYS_SBRK = 69 // { int sbrk(int incr); } 64 SYS_SBRK = 69 // { int sbrk(int incr); }
65 SYS_SSTK = 70 // { int sstk(int incr); } 65 SYS_SSTK = 70 // { int sstk(int incr); }
66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \ 66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \
67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } 67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \ 68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \
69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \ 69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \
70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ 70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \
71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \ 71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \
72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \ 72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \
73 SYS_GETPGRP = 81 // { int getpgrp(void); } 73 SYS_GETPGRP = 81 // { int getpgrp(void); }
74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } 74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \ 75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \
76 SYS_SWAPON = 85 // { int swapon(char *name); } 76 SYS_SWAPON = 85 // { int swapon(char *name); }
77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \ 77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \
78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } 78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } 79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } 80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ 81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \
82 SYS_FSYNC = 95 // { int fsync(int fd); } 82 SYS_FSYNC = 95 // { int fsync(int fd); }
83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \ 83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \
84 SYS_SOCKET = 97 // { int socket(int domain, int type, \ 84 SYS_SOCKET = 97 // { int socket(int domain, int type, \
85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \ 85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \
86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } 86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \ 87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \
88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ 88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \
89 SYS_LISTEN = 106 // { int listen(int s, int backlog); } 89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ 90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \
91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \ 91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \
92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ 92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \
93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \ 93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \
94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ 94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \
95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ 95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \
96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } 96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } 97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } 98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } 99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
100 SYS_RENAME = 128 // { int rename(char *from, char *to); } 100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
101 SYS_FLOCK = 131 // { int flock(int fd, int how); } 101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } 102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ 103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \
104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } 104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \ 105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \
106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } 106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
107 SYS_RMDIR = 137 // { int rmdir(char *path); } 107 SYS_RMDIR = 137 // { int rmdir(char *path); }
108 SYS_UTIMES = 138 // { int utimes(char *path, \ 108 SYS_UTIMES = 138 // { int utimes(char *path, \
109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ 109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
110 SYS_SETSID = 147 // { int setsid(void); } 110 SYS_SETSID = 147 // { int setsid(void); }
111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ 111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
112 SYS_LGETFH = 160 // { int lgetfh(char *fname, \ 112 SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
113 SYS_GETFH = 161 // { int getfh(char *fname, \ 113 SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); }
114 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } 114 SYS_LGETFH = 160 // { int lgetfh(char *fname, \
115 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ 115 SYS_GETFH = 161 // { int getfh(char *fname, \
116 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \ 116 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
117 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \ 117 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
118 SYS_SETFIB = 175 // { int setfib(int fibnum); } 118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, \
119 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } 119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, \
120 SYS_SETGID = 181 // { int setgid(gid_t gid); } 120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, \
121 SYS_SETEGID = 182 // { int setegid(gid_t egid); } 121 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
122 SYS_SETEUID = 183 // { int seteuid(uid_t euid); } 122 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
123 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); } 123 SYS_SETFIB = 175 // { int setfib(int fibnum); }
124 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); } 124 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
125 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); } 125 SYS_SETGID = 181 // { int setgid(gid_t gid); }
126 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } 126 SYS_SETEGID = 182 // { int setegid(gid_t egid); }
127 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } 127 SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
128 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ 128 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); }
129 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ 129 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); }
130 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \ 130 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); }
131 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \ 131 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
132 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \ 132 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
133 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \ 133 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \
134 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \ 134 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \
135 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \ 135 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \
136 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } 136 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \
137 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } 137 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \
138 SYS_UNDELETE = 205 // { int undelete(char *path); } 138 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \
139 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } 139 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \
140 SYS_GETPGID = 207 // { int getpgid(pid_t pid); } 140 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \
141 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ 141 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
142 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ 142 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
143 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \ 143 SYS_UNDELETE = 205 // { int undelete(char *path); }
144 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ 144 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
145 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \ 145 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
146 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } 146 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
147 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \ 147 SYS_SEMGET = 221 // { int semget(key_t key, int nsems, \
148 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \ 148 SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \
149 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } 149 SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
150 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ 150 SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, \
151 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } 151 SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, \
152 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \ 152 SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, \
153 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \ 153 SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
154 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\ 154 SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, \
155 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } 155 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
156 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \ 156 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
157 SYS_RFORK = 251 // { int rfork(int flags); } 157 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
158 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \ 158 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \
159 SYS_ISSETUGID = 253 // { int issetugid(void); } 159 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); }
160 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } 160 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \
161 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \ 161 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \
162 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } 162 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); }
163 SYS_LUTIMES = 276 // { int lutimes(char *path, \ 163 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \
164 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); } 164 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
165 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); } 165 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \
166 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); } 166 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \
167 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \ 167 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\
168 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \ 168 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
169 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \ 169 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \
170 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \ 170 SYS_RFORK = 251 // { int rfork(int flags); }
171 SYS_MODNEXT = 300 // { int modnext(int modid); } 171 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
172 SYS_MODSTAT = 301 // { int modstat(int modid, \ 172 SYS_ISSETUGID = 253 // { int issetugid(void); }
173 SYS_MODFNEXT = 302 // { int modfnext(int modid); } 173 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
174 SYS_MODFIND = 303 // { int modfind(const char *name); } 174 SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); }
175 SYS_KLDLOAD = 304 // { int kldload(const char *file); } 175 SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); }
176 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } 176 SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, \
177 SYS_KLDFIND = 306 // { int kldfind(const char *file); } 177 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
178 SYS_KLDNEXT = 307 // { int kldnext(int fileid); } 178 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
179 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \ 179 SYS_LUTIMES = 276 // { int lutimes(char *path, \
180 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } 180 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); }
181 SYS_GETSID = 310 // { int getsid(pid_t pid); } 181 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); }
182 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \ 182 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); }
183 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \ 183 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \
184 SYS_YIELD = 321 // { int yield(void); } 184 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \
185 SYS_MLOCKALL = 324 // { int mlockall(int how); } 185 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \
186 SYS_MUNLOCKALL = 325 // { int munlockall(void); } 186 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \
187 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); } 187 SYS_MODNEXT = 300 // { int modnext(int modid); }
188 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \ 188 SYS_MODSTAT = 301 // { int modstat(int modid, \
189 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \ 189 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
190 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \ 190 SYS_MODFIND = 303 // { int modfind(const char *name); }
191 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } 191 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
192 SYS_SCHED_YIELD = 331 // { int sched_yield (void); } 192 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
193 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } 193 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
194 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } 194 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
195 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \ 195 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \
196 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } 196 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
197 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \ 197 SYS_GETSID = 310 // { int getsid(pid_t pid); }
198 SYS_JAIL = 338 // { int jail(struct jail *jail); } 198 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
199 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \ 199 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
200 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } 200 SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
201 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } 201 SYS_AIO_SUSPEND = 315 // { int aio_suspend( \
202 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \ 202 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, \
203 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \ 203 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
204 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ 204 SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
205 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ 205 SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
206 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \ 206 SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, \
207 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \ 207 SYS_YIELD = 321 // { int yield(void); }
208 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ 208 SYS_MLOCKALL = 324 // { int mlockall(int how); }
209 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \ 209 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
210 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ 210 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); }
211 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \ 211 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \
212 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ 212 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \
213 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \ 213 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \
214 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \ 214 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
215 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ 215 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
216 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \ 216 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
217 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \ 217 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
218 SYS_KQUEUE = 362 // { int kqueue(void); } 218 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \
219 SYS_KEVENT = 363 // { int kevent(int fd, \ 219 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
220 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \ 220 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \
221 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \ 221 SYS_JAIL = 338 // { int jail(struct jail *jail); }
222 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \ 222 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \
223 SYS___SETUGID = 374 // { int __setugid(int flag); } 223 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
224 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } 224 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
225 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \ 225 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \
226 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } 226 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \
227 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } 227 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \
228 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \ 228 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \
229 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \ 229 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \
230 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \ 230 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \
231 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \ 231 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \
232 SYS_KENV = 390 // { int kenv(int what, const char *name, \ 232 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \
233 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \ 233 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \
234 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \ 234 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \
235 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \ 235 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \
236 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \ 236 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
237 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \ 237 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
238 SYS_STATFS = 396 // { int statfs(char *path, \ 238 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
239 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } 239 SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( \
240 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \ 240 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
241 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \ 241 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
242 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \ 242 SYS_KQUEUE = 362 // { int kqueue(void); }
243 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \ 243 SYS_KEVENT = 363 // { int kevent(int fd, \
244 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \ 244 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \
245 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \ 245 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \
246 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \ 246 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \
247 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \ 247 SYS___SETUGID = 374 // { int __setugid(int flag); }
248 SYS_SIGACTION = 416 // { int sigaction(int sig, \ 248 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); }
249 SYS_SIGRETURN = 417 // { int sigreturn( \ 249 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \
250 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } 250 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); }
251 SYS_SETCONTEXT = 422 // { int setcontext( \ 251 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); }
252 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \ 252 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \
253 SYS_SWAPOFF = 424 // { int swapoff(const char *name); } 253 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \
254 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \ 254 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \
255 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \ 255 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \
256 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \ 256 SYS_KENV = 390 // { int kenv(int what, const char *name, \
257 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \ 257 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \
258 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \ 258 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \
259 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \ 259 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \
260 SYS_THR_EXIT = 431 // { void thr_exit(long *state); } 260 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \
261 SYS_THR_SELF = 432 // { int thr_self(long *id); } 261 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \
262 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } 262 SYS_STATFS = 396 // { int statfs(char *path, \
263 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); } 263 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
264 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); } 264 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
265 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } 265 SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); }
266 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \ 266 SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); }
267 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \ 267 SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); }
268 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \ 268 SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); }
269 SYS_THR_SUSPEND = 442 // { int thr_suspend( \ 269 SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, \
270 SYS_THR_WAKE = 443 // { int thr_wake(long id); } 270 SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, \
271 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } 271 SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); }
272 SYS_AUDIT = 445 // { int audit(const void *record, \ 272 SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); }
273 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \ 273 SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); }
274 SYS_GETAUID = 447 // { int getauid(uid_t *auid); } 274 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
275 SYS_SETAUID = 448 // { int setauid(uid_t *auid); } 275 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
276 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } 276 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
277 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } 277 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \
278 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \ 278 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \
279 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \ 279 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \
280 SYS_AUDITCTL = 453 // { int auditctl(char *path); } 280 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \
281 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \ 281 SYS_SIGACTION = 416 // { int sigaction(int sig, \
282 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \ 282 SYS_SIGRETURN = 417 // { int sigreturn( \
283 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } 283 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); }
284 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } 284 SYS_SETCONTEXT = 422 // { int setcontext( \
285 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } 285 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \
286 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \ 286 SYS_SWAPOFF = 424 // { int swapoff(const char *name); }
287 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \ 287 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \
288 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \ 288 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \
289 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \ 289 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \
290 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \ 290 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \
291 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } 291 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \
292 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } 292 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \
293 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } 293 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
294 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \ 294 SYS_THR_SELF = 432 // { int thr_self(long *id); }
295 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } 295 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
296 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } 296 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
297 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \ 297 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
298 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \ 298 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
299 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \ 299 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
300 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \ 300 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
301 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \ 301 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
302 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \ 302 SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, \
303 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \ 303 SYS_THR_SUSPEND = 442 // { int thr_suspend( \
304 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \ 304 SYS_THR_WAKE = 443 // { int thr_wake(long id); }
305 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \ 305 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
306 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \ 306 SYS_AUDIT = 445 // { int audit(const void *record, \
307 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \ 307 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \
308 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } 308 SYS_GETAUID = 447 // { int getauid(uid_t *auid); }
309 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } 309 SYS_SETAUID = 448 // { int setauid(uid_t *auid); }
310 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \ 310 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); }
311 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \ 311 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); }
312 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \ 312 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \
313 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \ 313 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \
314 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \ 314 SYS_AUDITCTL = 453 // { int auditctl(char *path); }
315 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } 315 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
316 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } 316 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
317 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \ 317 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
318 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \ 318 SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, \
319 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } 319 SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, \
320 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } 320 SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, \
321 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } 321 SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, \
322 SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \ 322 SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, \
323 SYS_CAP_ENTER = 516 // { int cap_enter(void); } 323 SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); }
324 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } 324 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
325 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } 325 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
326 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } 326 SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); }
327 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } 327 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
328 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \ 328 SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
329 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \ 329 SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
330 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } 330 SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
331 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \ 331 SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
332 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \ 332 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
333 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \ 333 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
334 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \ 334 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
335 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \ 335 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \
336 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \ 336 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); }
337 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \ 337 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); }
338 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \ 338 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
339 SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \ 339 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \
340 SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \ 340 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); }
341 SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \ 341 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); }
342 SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \ 342 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \
343 SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \ 343 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \
344 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \ 344 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \
345 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \ 345 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \
346 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \ 346 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \
347 SYS_ACCEPT4 = 541 // { int accept4(int s, \ 347 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \
348 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } 348 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \
349 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \ 349 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \
350 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \ 350 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \
351 SYS_FUTIMENS = 546 // { int futimens(int fd, \ 351 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \
352 SYS_UTIMENSAT = 547 // { int utimensat(int fd, \ 352 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \
353 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
354 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
355 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \
356 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \
357 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \
358 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \
359 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
360 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
361 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
362 SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); }
363 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
364 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
365 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
366 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
367 SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, \
368 SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, \
369 SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, \
370 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
371 SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
372 SYS_CAP_ENTER = 516 // { int cap_enter(void); }
373 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
374 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
375 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); }
376 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); }
377 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \
378 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \
379 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); }
380 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \
381 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \
382 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \
383 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \
384 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \
385 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
386 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
387 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
388 SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \
389 SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \
390 SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \
391 SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \
392 SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \
393 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
394 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
395 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
396 SYS_ACCEPT4 = 541 // { int accept4(int s, \
397 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
398 SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); }
399 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
400 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
401 SYS_FUTIMENS = 546 // { int futimens(int fd, \
402 SYS_UTIMENSAT = 547 // { int utimensat(int fd, \
353) 403)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
index 81722ac..b66f900 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
@@ -7,347 +7,397 @@ package unix
7 7
8const ( 8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int 9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \ 10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \
11 SYS_FORK = 2 // { int fork(void); } 11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \ 12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \ 13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } 14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); } 15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \ 16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \
17 SYS_LINK = 9 // { int link(char *path, char *link); } 17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); } 18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); } 19 SYS_CHDIR = 12 // { int chdir(char *path); }
20 SYS_FCHDIR = 13 // { int fchdir(int fd); } 20 SYS_FCHDIR = 13 // { int fchdir(int fd); }
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } 21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); } 22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } 23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \ 24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \
25 SYS_GETPID = 20 // { pid_t getpid(void); } 25 SYS_GETPID = 20 // { pid_t getpid(void); }
26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \ 26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \
27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } 27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
28 SYS_SETUID = 23 // { int setuid(uid_t uid); } 28 SYS_SETUID = 23 // { int setuid(uid_t uid); }
29 SYS_GETUID = 24 // { uid_t getuid(void); } 29 SYS_GETUID = 24 // { uid_t getuid(void); }
30 SYS_GETEUID = 25 // { uid_t geteuid(void); } 30 SYS_GETEUID = 25 // { uid_t geteuid(void); }
31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \ 31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \
32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \ 32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \
33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \ 33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \
34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \ 34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \
35 SYS_ACCEPT = 30 // { int accept(int s, \ 35 SYS_ACCEPT = 30 // { int accept(int s, \
36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \ 36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \
37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \ 37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \
38 SYS_ACCESS = 33 // { int access(char *path, int amode); } 38 SYS_ACCESS = 33 // { int access(char *path, int amode); }
39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } 39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } 40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
41 SYS_SYNC = 36 // { int sync(void); } 41 SYS_SYNC = 36 // { int sync(void); }
42 SYS_KILL = 37 // { int kill(int pid, int signum); } 42 SYS_KILL = 37 // { int kill(int pid, int signum); }
43 SYS_GETPPID = 39 // { pid_t getppid(void); } 43 SYS_GETPPID = 39 // { pid_t getppid(void); }
44 SYS_DUP = 41 // { int dup(u_int fd); } 44 SYS_DUP = 41 // { int dup(u_int fd); }
45 SYS_PIPE = 42 // { int pipe(void); } 45 SYS_PIPE = 42 // { int pipe(void); }
46 SYS_GETEGID = 43 // { gid_t getegid(void); } 46 SYS_GETEGID = 43 // { gid_t getegid(void); }
47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ 47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \
48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \ 48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \
49 SYS_GETGID = 47 // { gid_t getgid(void); } 49 SYS_GETGID = 47 // { gid_t getgid(void); }
50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \ 50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \
51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } 51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
52 SYS_ACCT = 51 // { int acct(char *path); } 52 SYS_ACCT = 51 // { int acct(char *path); }
53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \ 53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \
54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \ 54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \
55 SYS_REBOOT = 55 // { int reboot(int opt); } 55 SYS_REBOOT = 55 // { int reboot(int opt); }
56 SYS_REVOKE = 56 // { int revoke(char *path); } 56 SYS_REVOKE = 56 // { int revoke(char *path); }
57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } 57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \ 58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \
59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \ 59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \
60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \ 60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \
61 SYS_CHROOT = 61 // { int chroot(char *path); } 61 SYS_CHROOT = 61 // { int chroot(char *path); }
62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \ 62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \
63 SYS_VFORK = 66 // { int vfork(void); } 63 SYS_VFORK = 66 // { int vfork(void); }
64 SYS_SBRK = 69 // { int sbrk(int incr); } 64 SYS_SBRK = 69 // { int sbrk(int incr); }
65 SYS_SSTK = 70 // { int sstk(int incr); } 65 SYS_SSTK = 70 // { int sstk(int incr); }
66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \ 66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \
67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } 67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \ 68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \
69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \ 69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \
70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ 70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \
71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \ 71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \
72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \ 72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \
73 SYS_GETPGRP = 81 // { int getpgrp(void); } 73 SYS_GETPGRP = 81 // { int getpgrp(void); }
74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } 74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \ 75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \
76 SYS_SWAPON = 85 // { int swapon(char *name); } 76 SYS_SWAPON = 85 // { int swapon(char *name); }
77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \ 77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \
78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } 78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } 79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } 80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ 81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \
82 SYS_FSYNC = 95 // { int fsync(int fd); } 82 SYS_FSYNC = 95 // { int fsync(int fd); }
83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \ 83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \
84 SYS_SOCKET = 97 // { int socket(int domain, int type, \ 84 SYS_SOCKET = 97 // { int socket(int domain, int type, \
85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \ 85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \
86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } 86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \ 87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \
88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ 88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \
89 SYS_LISTEN = 106 // { int listen(int s, int backlog); } 89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ 90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \
91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \ 91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \
92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ 92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \
93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \ 93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \
94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ 94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \
95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ 95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \
96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } 96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } 97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } 98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } 99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
100 SYS_RENAME = 128 // { int rename(char *from, char *to); } 100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
101 SYS_FLOCK = 131 // { int flock(int fd, int how); } 101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } 102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ 103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \
104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } 104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \ 105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \
106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } 106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
107 SYS_RMDIR = 137 // { int rmdir(char *path); } 107 SYS_RMDIR = 137 // { int rmdir(char *path); }
108 SYS_UTIMES = 138 // { int utimes(char *path, \ 108 SYS_UTIMES = 138 // { int utimes(char *path, \
109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ 109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
110 SYS_SETSID = 147 // { int setsid(void); } 110 SYS_SETSID = 147 // { int setsid(void); }
111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ 111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
112 SYS_LGETFH = 160 // { int lgetfh(char *fname, \ 112 SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
113 SYS_GETFH = 161 // { int getfh(char *fname, \ 113 SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); }
114 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } 114 SYS_LGETFH = 160 // { int lgetfh(char *fname, \
115 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ 115 SYS_GETFH = 161 // { int getfh(char *fname, \
116 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \ 116 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
117 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \ 117 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
118 SYS_SETFIB = 175 // { int setfib(int fibnum); } 118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, \
119 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } 119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, \
120 SYS_SETGID = 181 // { int setgid(gid_t gid); } 120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, \
121 SYS_SETEGID = 182 // { int setegid(gid_t egid); } 121 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
122 SYS_SETEUID = 183 // { int seteuid(uid_t euid); } 122 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
123 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); } 123 SYS_SETFIB = 175 // { int setfib(int fibnum); }
124 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); } 124 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
125 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); } 125 SYS_SETGID = 181 // { int setgid(gid_t gid); }
126 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } 126 SYS_SETEGID = 182 // { int setegid(gid_t egid); }
127 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } 127 SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
128 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ 128 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); }
129 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ 129 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); }
130 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \ 130 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); }
131 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \ 131 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
132 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \ 132 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
133 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \ 133 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \
134 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \ 134 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \
135 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \ 135 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \
136 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } 136 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \
137 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } 137 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \
138 SYS_UNDELETE = 205 // { int undelete(char *path); } 138 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \
139 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } 139 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \
140 SYS_GETPGID = 207 // { int getpgid(pid_t pid); } 140 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \
141 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ 141 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
142 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ 142 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
143 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \ 143 SYS_UNDELETE = 205 // { int undelete(char *path); }
144 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ 144 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
145 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \ 145 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
146 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } 146 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
147 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \ 147 SYS_SEMGET = 221 // { int semget(key_t key, int nsems, \
148 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \ 148 SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \
149 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } 149 SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
150 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ 150 SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, \
151 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } 151 SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, \
152 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \ 152 SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, \
153 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \ 153 SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
154 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\ 154 SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, \
155 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } 155 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
156 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \ 156 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
157 SYS_RFORK = 251 // { int rfork(int flags); } 157 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
158 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \ 158 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \
159 SYS_ISSETUGID = 253 // { int issetugid(void); } 159 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); }
160 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } 160 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \
161 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \ 161 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \
162 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } 162 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); }
163 SYS_LUTIMES = 276 // { int lutimes(char *path, \ 163 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \
164 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); } 164 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
165 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); } 165 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \
166 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); } 166 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \
167 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \ 167 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\
168 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \ 168 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
169 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \ 169 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \
170 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \ 170 SYS_RFORK = 251 // { int rfork(int flags); }
171 SYS_MODNEXT = 300 // { int modnext(int modid); } 171 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
172 SYS_MODSTAT = 301 // { int modstat(int modid, \ 172 SYS_ISSETUGID = 253 // { int issetugid(void); }
173 SYS_MODFNEXT = 302 // { int modfnext(int modid); } 173 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
174 SYS_MODFIND = 303 // { int modfind(const char *name); } 174 SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); }
175 SYS_KLDLOAD = 304 // { int kldload(const char *file); } 175 SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); }
176 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } 176 SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, \
177 SYS_KLDFIND = 306 // { int kldfind(const char *file); } 177 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
178 SYS_KLDNEXT = 307 // { int kldnext(int fileid); } 178 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
179 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \ 179 SYS_LUTIMES = 276 // { int lutimes(char *path, \
180 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } 180 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); }
181 SYS_GETSID = 310 // { int getsid(pid_t pid); } 181 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); }
182 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \ 182 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); }
183 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \ 183 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \
184 SYS_YIELD = 321 // { int yield(void); } 184 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \
185 SYS_MLOCKALL = 324 // { int mlockall(int how); } 185 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \
186 SYS_MUNLOCKALL = 325 // { int munlockall(void); } 186 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \
187 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); } 187 SYS_MODNEXT = 300 // { int modnext(int modid); }
188 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \ 188 SYS_MODSTAT = 301 // { int modstat(int modid, \
189 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \ 189 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
190 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \ 190 SYS_MODFIND = 303 // { int modfind(const char *name); }
191 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } 191 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
192 SYS_SCHED_YIELD = 331 // { int sched_yield (void); } 192 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
193 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } 193 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
194 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } 194 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
195 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \ 195 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \
196 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } 196 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
197 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \ 197 SYS_GETSID = 310 // { int getsid(pid_t pid); }
198 SYS_JAIL = 338 // { int jail(struct jail *jail); } 198 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
199 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \ 199 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
200 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } 200 SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
201 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } 201 SYS_AIO_SUSPEND = 315 // { int aio_suspend( \
202 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \ 202 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, \
203 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \ 203 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
204 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ 204 SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
205 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ 205 SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
206 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \ 206 SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, \
207 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \ 207 SYS_YIELD = 321 // { int yield(void); }
208 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ 208 SYS_MLOCKALL = 324 // { int mlockall(int how); }
209 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \ 209 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
210 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ 210 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); }
211 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \ 211 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \
212 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ 212 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \
213 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \ 213 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \
214 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \ 214 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
215 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ 215 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
216 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \ 216 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
217 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \ 217 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
218 SYS_KQUEUE = 362 // { int kqueue(void); } 218 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \
219 SYS_KEVENT = 363 // { int kevent(int fd, \ 219 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
220 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \ 220 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \
221 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \ 221 SYS_JAIL = 338 // { int jail(struct jail *jail); }
222 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \ 222 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \
223 SYS___SETUGID = 374 // { int __setugid(int flag); } 223 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
224 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } 224 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
225 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \ 225 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \
226 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } 226 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \
227 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } 227 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \
228 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \ 228 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \
229 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \ 229 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \
230 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \ 230 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \
231 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \ 231 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \
232 SYS_KENV = 390 // { int kenv(int what, const char *name, \ 232 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \
233 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \ 233 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \
234 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \ 234 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \
235 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \ 235 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \
236 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \ 236 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
237 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \ 237 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
238 SYS_STATFS = 396 // { int statfs(char *path, \ 238 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
239 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } 239 SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( \
240 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \ 240 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
241 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \ 241 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
242 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \ 242 SYS_KQUEUE = 362 // { int kqueue(void); }
243 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \ 243 SYS_KEVENT = 363 // { int kevent(int fd, \
244 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \ 244 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \
245 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \ 245 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \
246 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \ 246 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \
247 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \ 247 SYS___SETUGID = 374 // { int __setugid(int flag); }
248 SYS_SIGACTION = 416 // { int sigaction(int sig, \ 248 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); }
249 SYS_SIGRETURN = 417 // { int sigreturn( \ 249 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \
250 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } 250 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); }
251 SYS_SETCONTEXT = 422 // { int setcontext( \ 251 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); }
252 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \ 252 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \
253 SYS_SWAPOFF = 424 // { int swapoff(const char *name); } 253 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \
254 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \ 254 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \
255 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \ 255 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \
256 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \ 256 SYS_KENV = 390 // { int kenv(int what, const char *name, \
257 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \ 257 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \
258 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \ 258 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \
259 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \ 259 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \
260 SYS_THR_EXIT = 431 // { void thr_exit(long *state); } 260 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \
261 SYS_THR_SELF = 432 // { int thr_self(long *id); } 261 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \
262 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } 262 SYS_STATFS = 396 // { int statfs(char *path, \
263 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); } 263 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
264 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); } 264 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
265 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } 265 SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); }
266 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \ 266 SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); }
267 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \ 267 SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); }
268 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \ 268 SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); }
269 SYS_THR_SUSPEND = 442 // { int thr_suspend( \ 269 SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, \
270 SYS_THR_WAKE = 443 // { int thr_wake(long id); } 270 SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, \
271 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } 271 SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); }
272 SYS_AUDIT = 445 // { int audit(const void *record, \ 272 SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); }
273 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \ 273 SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); }
274 SYS_GETAUID = 447 // { int getauid(uid_t *auid); } 274 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
275 SYS_SETAUID = 448 // { int setauid(uid_t *auid); } 275 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
276 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } 276 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
277 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } 277 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \
278 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \ 278 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \
279 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \ 279 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \
280 SYS_AUDITCTL = 453 // { int auditctl(char *path); } 280 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \
281 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \ 281 SYS_SIGACTION = 416 // { int sigaction(int sig, \
282 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \ 282 SYS_SIGRETURN = 417 // { int sigreturn( \
283 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } 283 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); }
284 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } 284 SYS_SETCONTEXT = 422 // { int setcontext( \
285 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } 285 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \
286 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \ 286 SYS_SWAPOFF = 424 // { int swapoff(const char *name); }
287 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \ 287 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \
288 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \ 288 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \
289 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \ 289 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \
290 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \ 290 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \
291 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } 291 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \
292 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } 292 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \
293 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } 293 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
294 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \ 294 SYS_THR_SELF = 432 // { int thr_self(long *id); }
295 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } 295 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
296 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } 296 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
297 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \ 297 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
298 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \ 298 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
299 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \ 299 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
300 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \ 300 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
301 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \ 301 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
302 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \ 302 SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, \
303 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \ 303 SYS_THR_SUSPEND = 442 // { int thr_suspend( \
304 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \ 304 SYS_THR_WAKE = 443 // { int thr_wake(long id); }
305 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \ 305 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
306 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \ 306 SYS_AUDIT = 445 // { int audit(const void *record, \
307 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \ 307 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \
308 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } 308 SYS_GETAUID = 447 // { int getauid(uid_t *auid); }
309 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } 309 SYS_SETAUID = 448 // { int setauid(uid_t *auid); }
310 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \ 310 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); }
311 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \ 311 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); }
312 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \ 312 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \
313 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \ 313 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \
314 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \ 314 SYS_AUDITCTL = 453 // { int auditctl(char *path); }
315 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } 315 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
316 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } 316 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
317 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \ 317 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
318 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \ 318 SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, \
319 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } 319 SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, \
320 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } 320 SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, \
321 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } 321 SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, \
322 SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \ 322 SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, \
323 SYS_CAP_ENTER = 516 // { int cap_enter(void); } 323 SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); }
324 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } 324 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
325 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } 325 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
326 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } 326 SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); }
327 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } 327 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
328 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \ 328 SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
329 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \ 329 SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
330 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } 330 SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
331 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \ 331 SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
332 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \ 332 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
333 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \ 333 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
334 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \ 334 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
335 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \ 335 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \
336 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \ 336 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); }
337 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \ 337 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); }
338 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \ 338 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
339 SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \ 339 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \
340 SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \ 340 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); }
341 SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \ 341 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); }
342 SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \ 342 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \
343 SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \ 343 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \
344 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \ 344 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \
345 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \ 345 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \
346 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \ 346 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \
347 SYS_ACCEPT4 = 541 // { int accept4(int s, \ 347 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \
348 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } 348 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \
349 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \ 349 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \
350 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \ 350 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \
351 SYS_FUTIMENS = 546 // { int futimens(int fd, \ 351 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \
352 SYS_UTIMENSAT = 547 // { int utimensat(int fd, \ 352 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \
353 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
354 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
355 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \
356 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \
357 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \
358 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \
359 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
360 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
361 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
362 SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); }
363 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
364 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
365 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
366 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
367 SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, \
368 SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, \
369 SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, \
370 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
371 SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
372 SYS_CAP_ENTER = 516 // { int cap_enter(void); }
373 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
374 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
375 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); }
376 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); }
377 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \
378 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \
379 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); }
380 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \
381 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \
382 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \
383 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \
384 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \
385 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
386 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
387 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
388 SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \
389 SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \
390 SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \
391 SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \
392 SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \
393 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
394 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
395 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
396 SYS_ACCEPT4 = 541 // { int accept4(int s, \
397 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
398 SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); }
399 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
400 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
401 SYS_FUTIMENS = 546 // { int futimens(int fd, \
402 SYS_UTIMENSAT = 547 // { int utimensat(int fd, \
353) 403)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
index 4488314..d61941b 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
@@ -7,347 +7,397 @@ package unix
7 7
8const ( 8const (
9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int 9 // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \ 10 SYS_EXIT = 1 // { void sys_exit(int rval); } exit \
11 SYS_FORK = 2 // { int fork(void); } 11 SYS_FORK = 2 // { int fork(void); }
12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \ 12 SYS_READ = 3 // { ssize_t read(int fd, void *buf, \
13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \ 13 SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \
14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } 14 SYS_OPEN = 5 // { int open(char *path, int flags, int mode); }
15 SYS_CLOSE = 6 // { int close(int fd); } 15 SYS_CLOSE = 6 // { int close(int fd); }
16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \ 16 SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \
17 SYS_LINK = 9 // { int link(char *path, char *link); } 17 SYS_LINK = 9 // { int link(char *path, char *link); }
18 SYS_UNLINK = 10 // { int unlink(char *path); } 18 SYS_UNLINK = 10 // { int unlink(char *path); }
19 SYS_CHDIR = 12 // { int chdir(char *path); } 19 SYS_CHDIR = 12 // { int chdir(char *path); }
20 SYS_FCHDIR = 13 // { int fchdir(int fd); } 20 SYS_FCHDIR = 13 // { int fchdir(int fd); }
21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } 21 SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); } 22 SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } 23 SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \ 24 SYS_OBREAK = 17 // { int obreak(char *nsize); } break \
25 SYS_GETPID = 20 // { pid_t getpid(void); } 25 SYS_GETPID = 20 // { pid_t getpid(void); }
26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \ 26 SYS_MOUNT = 21 // { int mount(char *type, char *path, \
27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } 27 SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
28 SYS_SETUID = 23 // { int setuid(uid_t uid); } 28 SYS_SETUID = 23 // { int setuid(uid_t uid); }
29 SYS_GETUID = 24 // { uid_t getuid(void); } 29 SYS_GETUID = 24 // { uid_t getuid(void); }
30 SYS_GETEUID = 25 // { uid_t geteuid(void); } 30 SYS_GETEUID = 25 // { uid_t geteuid(void); }
31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \ 31 SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \
32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \ 32 SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \
33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \ 33 SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \
34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \ 34 SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \
35 SYS_ACCEPT = 30 // { int accept(int s, \ 35 SYS_ACCEPT = 30 // { int accept(int s, \
36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \ 36 SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \
37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \ 37 SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \
38 SYS_ACCESS = 33 // { int access(char *path, int amode); } 38 SYS_ACCESS = 33 // { int access(char *path, int amode); }
39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } 39 SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } 40 SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
41 SYS_SYNC = 36 // { int sync(void); } 41 SYS_SYNC = 36 // { int sync(void); }
42 SYS_KILL = 37 // { int kill(int pid, int signum); } 42 SYS_KILL = 37 // { int kill(int pid, int signum); }
43 SYS_GETPPID = 39 // { pid_t getppid(void); } 43 SYS_GETPPID = 39 // { pid_t getppid(void); }
44 SYS_DUP = 41 // { int dup(u_int fd); } 44 SYS_DUP = 41 // { int dup(u_int fd); }
45 SYS_PIPE = 42 // { int pipe(void); } 45 SYS_PIPE = 42 // { int pipe(void); }
46 SYS_GETEGID = 43 // { gid_t getegid(void); } 46 SYS_GETEGID = 43 // { gid_t getegid(void); }
47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ 47 SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \
48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \ 48 SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \
49 SYS_GETGID = 47 // { gid_t getgid(void); } 49 SYS_GETGID = 47 // { gid_t getgid(void); }
50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \ 50 SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \
51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } 51 SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
52 SYS_ACCT = 51 // { int acct(char *path); } 52 SYS_ACCT = 51 // { int acct(char *path); }
53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \ 53 SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \
54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \ 54 SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \
55 SYS_REBOOT = 55 // { int reboot(int opt); } 55 SYS_REBOOT = 55 // { int reboot(int opt); }
56 SYS_REVOKE = 56 // { int revoke(char *path); } 56 SYS_REVOKE = 56 // { int revoke(char *path); }
57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } 57 SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \ 58 SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \
59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \ 59 SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \
60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \ 60 SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \
61 SYS_CHROOT = 61 // { int chroot(char *path); } 61 SYS_CHROOT = 61 // { int chroot(char *path); }
62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \ 62 SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \
63 SYS_VFORK = 66 // { int vfork(void); } 63 SYS_VFORK = 66 // { int vfork(void); }
64 SYS_SBRK = 69 // { int sbrk(int incr); } 64 SYS_SBRK = 69 // { int sbrk(int incr); }
65 SYS_SSTK = 70 // { int sstk(int incr); } 65 SYS_SSTK = 70 // { int sstk(int incr); }
66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \ 66 SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \
67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } 67 SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \ 68 SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \
69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \ 69 SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \
70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ 70 SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \
71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \ 71 SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \
72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \ 72 SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \
73 SYS_GETPGRP = 81 // { int getpgrp(void); } 73 SYS_GETPGRP = 81 // { int getpgrp(void); }
74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } 74 SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \ 75 SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \
76 SYS_SWAPON = 85 // { int swapon(char *name); } 76 SYS_SWAPON = 85 // { int swapon(char *name); }
77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \ 77 SYS_GETITIMER = 86 // { int getitimer(u_int which, \
78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } 78 SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } 79 SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); }
80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } 80 SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ 81 SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \
82 SYS_FSYNC = 95 // { int fsync(int fd); } 82 SYS_FSYNC = 95 // { int fsync(int fd); }
83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \ 83 SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \
84 SYS_SOCKET = 97 // { int socket(int domain, int type, \ 84 SYS_SOCKET = 97 // { int socket(int domain, int type, \
85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \ 85 SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \
86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } 86 SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \ 87 SYS_BIND = 104 // { int bind(int s, caddr_t name, \
88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ 88 SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \
89 SYS_LISTEN = 106 // { int listen(int s, int backlog); } 89 SYS_LISTEN = 106 // { int listen(int s, int backlog); }
90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ 90 SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \
91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \ 91 SYS_GETRUSAGE = 117 // { int getrusage(int who, \
92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ 92 SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \
93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \ 93 SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \
94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ 94 SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \
95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ 95 SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \
96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } 96 SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } 97 SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } 98 SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } 99 SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
100 SYS_RENAME = 128 // { int rename(char *from, char *to); } 100 SYS_RENAME = 128 // { int rename(char *from, char *to); }
101 SYS_FLOCK = 131 // { int flock(int fd, int how); } 101 SYS_FLOCK = 131 // { int flock(int fd, int how); }
102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } 102 SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ 103 SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \
104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } 104 SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \ 105 SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \
106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } 106 SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
107 SYS_RMDIR = 137 // { int rmdir(char *path); } 107 SYS_RMDIR = 137 // { int rmdir(char *path); }
108 SYS_UTIMES = 138 // { int utimes(char *path, \ 108 SYS_UTIMES = 138 // { int utimes(char *path, \
109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ 109 SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
110 SYS_SETSID = 147 // { int setsid(void); } 110 SYS_SETSID = 147 // { int setsid(void); }
111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ 111 SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
112 SYS_LGETFH = 160 // { int lgetfh(char *fname, \ 112 SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
113 SYS_GETFH = 161 // { int getfh(char *fname, \ 113 SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); }
114 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } 114 SYS_LGETFH = 160 // { int lgetfh(char *fname, \
115 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ 115 SYS_GETFH = 161 // { int getfh(char *fname, \
116 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \ 116 SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
117 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \ 117 SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
118 SYS_SETFIB = 175 // { int setfib(int fibnum); } 118 SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, \
119 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } 119 SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, \
120 SYS_SETGID = 181 // { int setgid(gid_t gid); } 120 SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, \
121 SYS_SETEGID = 182 // { int setegid(gid_t egid); } 121 SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
122 SYS_SETEUID = 183 // { int seteuid(uid_t euid); } 122 SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
123 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); } 123 SYS_SETFIB = 175 // { int setfib(int fibnum); }
124 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); } 124 SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
125 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); } 125 SYS_SETGID = 181 // { int setgid(gid_t gid); }
126 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } 126 SYS_SETEGID = 182 // { int setegid(gid_t egid); }
127 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } 127 SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
128 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ 128 SYS_STAT = 188 // { int stat(char *path, struct stat *ub); }
129 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ 129 SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); }
130 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \ 130 SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); }
131 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \ 131 SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
132 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \ 132 SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
133 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \ 133 SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \
134 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \ 134 SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \
135 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \ 135 SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \
136 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } 136 SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \
137 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } 137 SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \
138 SYS_UNDELETE = 205 // { int undelete(char *path); } 138 SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \
139 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } 139 SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \
140 SYS_GETPGID = 207 // { int getpgid(pid_t pid); } 140 SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \
141 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ 141 SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); }
142 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ 142 SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); }
143 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \ 143 SYS_UNDELETE = 205 // { int undelete(char *path); }
144 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ 144 SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
145 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \ 145 SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
146 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } 146 SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
147 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \ 147 SYS_SEMGET = 221 // { int semget(key_t key, int nsems, \
148 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \ 148 SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \
149 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } 149 SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
150 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ 150 SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, \
151 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } 151 SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, \
152 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \ 152 SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, \
153 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \ 153 SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
154 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\ 154 SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, \
155 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } 155 SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
156 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \ 156 SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
157 SYS_RFORK = 251 // { int rfork(int flags); } 157 SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
158 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \ 158 SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \
159 SYS_ISSETUGID = 253 // { int issetugid(void); } 159 SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); }
160 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } 160 SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \
161 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \ 161 SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \
162 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } 162 SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); }
163 SYS_LUTIMES = 276 // { int lutimes(char *path, \ 163 SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \
164 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); } 164 SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); }
165 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); } 165 SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \
166 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); } 166 SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \
167 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \ 167 SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\
168 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \ 168 SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); }
169 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \ 169 SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \
170 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \ 170 SYS_RFORK = 251 // { int rfork(int flags); }
171 SYS_MODNEXT = 300 // { int modnext(int modid); } 171 SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
172 SYS_MODSTAT = 301 // { int modstat(int modid, \ 172 SYS_ISSETUGID = 253 // { int issetugid(void); }
173 SYS_MODFNEXT = 302 // { int modfnext(int modid); } 173 SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
174 SYS_MODFIND = 303 // { int modfind(const char *name); } 174 SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); }
175 SYS_KLDLOAD = 304 // { int kldload(const char *file); } 175 SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); }
176 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } 176 SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, \
177 SYS_KLDFIND = 306 // { int kldfind(const char *file); } 177 SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
178 SYS_KLDNEXT = 307 // { int kldnext(int fileid); } 178 SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
179 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \ 179 SYS_LUTIMES = 276 // { int lutimes(char *path, \
180 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } 180 SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); }
181 SYS_GETSID = 310 // { int getsid(pid_t pid); } 181 SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); }
182 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \ 182 SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); }
183 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \ 183 SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \
184 SYS_YIELD = 321 // { int yield(void); } 184 SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \
185 SYS_MLOCKALL = 324 // { int mlockall(int how); } 185 SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \
186 SYS_MUNLOCKALL = 325 // { int munlockall(void); } 186 SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \
187 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); } 187 SYS_MODNEXT = 300 // { int modnext(int modid); }
188 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \ 188 SYS_MODSTAT = 301 // { int modstat(int modid, \
189 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \ 189 SYS_MODFNEXT = 302 // { int modfnext(int modid); }
190 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \ 190 SYS_MODFIND = 303 // { int modfind(const char *name); }
191 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } 191 SYS_KLDLOAD = 304 // { int kldload(const char *file); }
192 SYS_SCHED_YIELD = 331 // { int sched_yield (void); } 192 SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); }
193 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } 193 SYS_KLDFIND = 306 // { int kldfind(const char *file); }
194 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } 194 SYS_KLDNEXT = 307 // { int kldnext(int fileid); }
195 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \ 195 SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \
196 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } 196 SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); }
197 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \ 197 SYS_GETSID = 310 // { int getsid(pid_t pid); }
198 SYS_JAIL = 338 // { int jail(struct jail *jail); } 198 SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
199 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \ 199 SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
200 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } 200 SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
201 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } 201 SYS_AIO_SUSPEND = 315 // { int aio_suspend( \
202 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \ 202 SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, \
203 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \ 203 SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
204 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ 204 SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
205 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ 205 SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
206 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \ 206 SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, \
207 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \ 207 SYS_YIELD = 321 // { int yield(void); }
208 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ 208 SYS_MLOCKALL = 324 // { int mlockall(int how); }
209 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \ 209 SYS_MUNLOCKALL = 325 // { int munlockall(void); }
210 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ 210 SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); }
211 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \ 211 SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \
212 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ 212 SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \
213 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \ 213 SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \
214 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \ 214 SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); }
215 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ 215 SYS_SCHED_YIELD = 331 // { int sched_yield (void); }
216 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \ 216 SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); }
217 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \ 217 SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); }
218 SYS_KQUEUE = 362 // { int kqueue(void); } 218 SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \
219 SYS_KEVENT = 363 // { int kevent(int fd, \ 219 SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); }
220 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \ 220 SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \
221 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \ 221 SYS_JAIL = 338 // { int jail(struct jail *jail); }
222 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \ 222 SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \
223 SYS___SETUGID = 374 // { int __setugid(int flag); } 223 SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); }
224 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } 224 SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); }
225 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \ 225 SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \
226 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } 226 SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \
227 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } 227 SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \
228 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \ 228 SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \
229 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \ 229 SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \
230 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \ 230 SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \
231 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \ 231 SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \
232 SYS_KENV = 390 // { int kenv(int what, const char *name, \ 232 SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \
233 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \ 233 SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \
234 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \ 234 SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \
235 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \ 235 SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \
236 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \ 236 SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
237 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \ 237 SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
238 SYS_STATFS = 396 // { int statfs(char *path, \ 238 SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
239 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } 239 SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( \
240 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \ 240 SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
241 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \ 241 SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
242 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \ 242 SYS_KQUEUE = 362 // { int kqueue(void); }
243 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \ 243 SYS_KEVENT = 363 // { int kevent(int fd, \
244 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \ 244 SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \
245 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \ 245 SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \
246 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \ 246 SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \
247 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \ 247 SYS___SETUGID = 374 // { int __setugid(int flag); }
248 SYS_SIGACTION = 416 // { int sigaction(int sig, \ 248 SYS_EACCESS = 376 // { int eaccess(char *path, int amode); }
249 SYS_SIGRETURN = 417 // { int sigreturn( \ 249 SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \
250 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } 250 SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); }
251 SYS_SETCONTEXT = 422 // { int setcontext( \ 251 SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); }
252 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \ 252 SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \
253 SYS_SWAPOFF = 424 // { int swapoff(const char *name); } 253 SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \
254 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \ 254 SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \
255 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \ 255 SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \
256 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \ 256 SYS_KENV = 390 // { int kenv(int what, const char *name, \
257 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \ 257 SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \
258 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \ 258 SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \
259 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \ 259 SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \
260 SYS_THR_EXIT = 431 // { void thr_exit(long *state); } 260 SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \
261 SYS_THR_SELF = 432 // { int thr_self(long *id); } 261 SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \
262 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } 262 SYS_STATFS = 396 // { int statfs(char *path, \
263 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); } 263 SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
264 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); } 264 SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
265 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } 265 SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); }
266 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \ 266 SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); }
267 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \ 267 SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); }
268 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \ 268 SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); }
269 SYS_THR_SUSPEND = 442 // { int thr_suspend( \ 269 SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, \
270 SYS_THR_WAKE = 443 // { int thr_wake(long id); } 270 SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, \
271 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } 271 SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); }
272 SYS_AUDIT = 445 // { int audit(const void *record, \ 272 SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); }
273 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \ 273 SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); }
274 SYS_GETAUID = 447 // { int getauid(uid_t *auid); } 274 SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
275 SYS_SETAUID = 448 // { int setauid(uid_t *auid); } 275 SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
276 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } 276 SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
277 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } 277 SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \
278 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \ 278 SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \
279 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \ 279 SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \
280 SYS_AUDITCTL = 453 // { int auditctl(char *path); } 280 SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \
281 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \ 281 SYS_SIGACTION = 416 // { int sigaction(int sig, \
282 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \ 282 SYS_SIGRETURN = 417 // { int sigreturn( \
283 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } 283 SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); }
284 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } 284 SYS_SETCONTEXT = 422 // { int setcontext( \
285 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } 285 SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \
286 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \ 286 SYS_SWAPOFF = 424 // { int swapoff(const char *name); }
287 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \ 287 SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \
288 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \ 288 SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \
289 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \ 289 SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \
290 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \ 290 SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \
291 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } 291 SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \
292 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } 292 SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \
293 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } 293 SYS_THR_EXIT = 431 // { void thr_exit(long *state); }
294 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \ 294 SYS_THR_SELF = 432 // { int thr_self(long *id); }
295 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } 295 SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); }
296 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } 296 SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); }
297 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \ 297 SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); }
298 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \ 298 SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); }
299 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \ 299 SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
300 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \ 300 SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
301 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \ 301 SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
302 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \ 302 SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, \
303 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \ 303 SYS_THR_SUSPEND = 442 // { int thr_suspend( \
304 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \ 304 SYS_THR_WAKE = 443 // { int thr_wake(long id); }
305 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \ 305 SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
306 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \ 306 SYS_AUDIT = 445 // { int audit(const void *record, \
307 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \ 307 SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \
308 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } 308 SYS_GETAUID = 447 // { int getauid(uid_t *auid); }
309 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } 309 SYS_SETAUID = 448 // { int setauid(uid_t *auid); }
310 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \ 310 SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); }
311 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \ 311 SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); }
312 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \ 312 SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \
313 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \ 313 SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \
314 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \ 314 SYS_AUDITCTL = 453 // { int auditctl(char *path); }
315 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } 315 SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
316 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } 316 SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
317 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \ 317 SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
318 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \ 318 SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, \
319 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } 319 SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, \
320 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } 320 SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, \
321 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } 321 SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, \
322 SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \ 322 SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, \
323 SYS_CAP_ENTER = 516 // { int cap_enter(void); } 323 SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); }
324 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } 324 SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
325 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } 325 SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
326 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } 326 SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); }
327 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } 327 SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
328 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \ 328 SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
329 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \ 329 SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
330 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } 330 SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
331 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \ 331 SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
332 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \ 332 SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
333 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \ 333 SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
334 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \ 334 SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
335 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \ 335 SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \
336 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \ 336 SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); }
337 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \ 337 SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); }
338 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \ 338 SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); }
339 SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \ 339 SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \
340 SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \ 340 SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); }
341 SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \ 341 SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); }
342 SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \ 342 SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \
343 SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \ 343 SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \
344 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \ 344 SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \
345 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \ 345 SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \
346 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \ 346 SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \
347 SYS_ACCEPT4 = 541 // { int accept4(int s, \ 347 SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \
348 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } 348 SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \
349 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \ 349 SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \
350 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \ 350 SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \
351 SYS_FUTIMENS = 546 // { int futimens(int fd, \ 351 SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \
352 SYS_UTIMENSAT = 547 // { int utimensat(int fd, \ 352 SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \
353 SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); }
354 SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); }
355 SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \
356 SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \
357 SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \
358 SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \
359 SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
360 SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
361 SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
362 SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); }
363 SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
364 SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
365 SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
366 SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
367 SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, \
368 SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, \
369 SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, \
370 SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
371 SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
372 SYS_CAP_ENTER = 516 // { int cap_enter(void); }
373 SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
374 SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
375 SYS_PDKILL = 519 // { int pdkill(int fd, int signum); }
376 SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); }
377 SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \
378 SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \
379 SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); }
380 SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \
381 SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \
382 SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \
383 SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \
384 SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \
385 SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
386 SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
387 SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
388 SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \
389 SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \
390 SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \
391 SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \
392 SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \
393 SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
394 SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
395 SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
396 SYS_ACCEPT4 = 541 // { int accept4(int s, \
397 SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
398 SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); }
399 SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
400 SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
401 SYS_FUTIMENS = 546 // { int futimens(int fd, \
402 SYS_UTIMENSAT = 547 // { int utimensat(int fd, \
353) 403)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
index 95ab129..8f33ece 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
@@ -387,4 +387,6 @@ const (
387 SYS_PKEY_FREE = 382 387 SYS_PKEY_FREE = 382
388 SYS_STATX = 383 388 SYS_STATX = 383
389 SYS_ARCH_PRCTL = 384 389 SYS_ARCH_PRCTL = 384
390 SYS_IO_PGETEVENTS = 385
391 SYS_RSEQ = 386
390) 392)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
index c5dabf2..70c1a2c 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
@@ -339,4 +339,6 @@ const (
339 SYS_PKEY_ALLOC = 330 339 SYS_PKEY_ALLOC = 330
340 SYS_PKEY_FREE = 331 340 SYS_PKEY_FREE = 331
341 SYS_STATX = 332 341 SYS_STATX = 332
342 SYS_IO_PGETEVENTS = 333
343 SYS_RSEQ = 334
342) 344)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
index ab7fa5f..a1db143 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
@@ -359,4 +359,5 @@ const (
359 SYS_PKEY_ALLOC = 395 359 SYS_PKEY_ALLOC = 395
360 SYS_PKEY_FREE = 396 360 SYS_PKEY_FREE = 396
361 SYS_STATX = 397 361 SYS_STATX = 397
362 SYS_RSEQ = 398
362) 363)
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 b1c6b4b..2e4cee7 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
@@ -283,4 +283,5 @@ const (
283 SYS_PKEY_ALLOC = 289 283 SYS_PKEY_ALLOC = 289
284 SYS_PKEY_FREE = 290 284 SYS_PKEY_FREE = 290
285 SYS_STATX = 291 285 SYS_STATX = 291
286 SYS_IO_PGETEVENTS = 292
286) 287)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
index 2e9aa7a..1671449 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
@@ -372,4 +372,6 @@ const (
372 SYS_PKEY_ALLOC = 4364 372 SYS_PKEY_ALLOC = 4364
373 SYS_PKEY_FREE = 4365 373 SYS_PKEY_FREE = 4365
374 SYS_STATX = 4366 374 SYS_STATX = 4366
375 SYS_RSEQ = 4367
376 SYS_IO_PGETEVENTS = 4368
375) 377)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
index 9282763..1270a1c 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
@@ -332,4 +332,6 @@ const (
332 SYS_PKEY_ALLOC = 5324 332 SYS_PKEY_ALLOC = 5324
333 SYS_PKEY_FREE = 5325 333 SYS_PKEY_FREE = 5325
334 SYS_STATX = 5326 334 SYS_STATX = 5326
335 SYS_RSEQ = 5327
336 SYS_IO_PGETEVENTS = 5328
335) 337)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
index 45bd3fd..93980be 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
@@ -332,4 +332,6 @@ const (
332 SYS_PKEY_ALLOC = 5324 332 SYS_PKEY_ALLOC = 5324
333 SYS_PKEY_FREE = 5325 333 SYS_PKEY_FREE = 5325
334 SYS_STATX = 5326 334 SYS_STATX = 5326
335 SYS_RSEQ = 5327
336 SYS_IO_PGETEVENTS = 5328
335) 337)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
index 62ccac4..0fc7726 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
@@ -372,4 +372,6 @@ const (
372 SYS_PKEY_ALLOC = 4364 372 SYS_PKEY_ALLOC = 4364
373 SYS_PKEY_FREE = 4365 373 SYS_PKEY_FREE = 4365
374 SYS_STATX = 4366 374 SYS_STATX = 4366
375 SYS_RSEQ = 4367
376 SYS_IO_PGETEVENTS = 4368
375) 377)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
index dfe5dab..a5c5f3d 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
@@ -367,4 +367,9 @@ const (
367 SYS_PWRITEV2 = 381 367 SYS_PWRITEV2 = 381
368 SYS_KEXEC_FILE_LOAD = 382 368 SYS_KEXEC_FILE_LOAD = 382
369 SYS_STATX = 383 369 SYS_STATX = 383
370 SYS_PKEY_ALLOC = 384
371 SYS_PKEY_FREE = 385
372 SYS_PKEY_MPROTECT = 386
373 SYS_RSEQ = 387
374 SYS_IO_PGETEVENTS = 388
370) 375)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
index eca97f7..5470ead 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
@@ -367,4 +367,9 @@ const (
367 SYS_PWRITEV2 = 381 367 SYS_PWRITEV2 = 381
368 SYS_KEXEC_FILE_LOAD = 382 368 SYS_KEXEC_FILE_LOAD = 382
369 SYS_STATX = 383 369 SYS_STATX = 383
370 SYS_PKEY_ALLOC = 384
371 SYS_PKEY_FREE = 385
372 SYS_PKEY_MPROTECT = 386
373 SYS_RSEQ = 387
374 SYS_IO_PGETEVENTS = 388
370) 375)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
new file mode 100644
index 0000000..41e4fd1
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
@@ -0,0 +1,286 @@
1// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build riscv64,linux
5
6package unix
7
8const (
9 SYS_IO_SETUP = 0
10 SYS_IO_DESTROY = 1
11 SYS_IO_SUBMIT = 2
12 SYS_IO_CANCEL = 3
13 SYS_IO_GETEVENTS = 4
14 SYS_SETXATTR = 5
15 SYS_LSETXATTR = 6
16 SYS_FSETXATTR = 7
17 SYS_GETXATTR = 8
18 SYS_LGETXATTR = 9
19 SYS_FGETXATTR = 10
20 SYS_LISTXATTR = 11
21 SYS_LLISTXATTR = 12
22 SYS_FLISTXATTR = 13
23 SYS_REMOVEXATTR = 14
24 SYS_LREMOVEXATTR = 15
25 SYS_FREMOVEXATTR = 16
26 SYS_GETCWD = 17
27 SYS_LOOKUP_DCOOKIE = 18
28 SYS_EVENTFD2 = 19
29 SYS_EPOLL_CREATE1 = 20
30 SYS_EPOLL_CTL = 21
31 SYS_EPOLL_PWAIT = 22
32 SYS_DUP = 23
33 SYS_DUP3 = 24
34 SYS_FCNTL = 25
35 SYS_INOTIFY_INIT1 = 26
36 SYS_INOTIFY_ADD_WATCH = 27
37 SYS_INOTIFY_RM_WATCH = 28
38 SYS_IOCTL = 29
39 SYS_IOPRIO_SET = 30
40 SYS_IOPRIO_GET = 31
41 SYS_FLOCK = 32
42 SYS_MKNODAT = 33
43 SYS_MKDIRAT = 34
44 SYS_UNLINKAT = 35
45 SYS_SYMLINKAT = 36
46 SYS_LINKAT = 37
47 SYS_UMOUNT2 = 39
48 SYS_MOUNT = 40
49 SYS_PIVOT_ROOT = 41
50 SYS_NFSSERVCTL = 42
51 SYS_STATFS = 43
52 SYS_FSTATFS = 44
53 SYS_TRUNCATE = 45
54 SYS_FTRUNCATE = 46
55 SYS_FALLOCATE = 47
56 SYS_FACCESSAT = 48
57 SYS_CHDIR = 49
58 SYS_FCHDIR = 50
59 SYS_CHROOT = 51
60 SYS_FCHMOD = 52
61 SYS_FCHMODAT = 53
62 SYS_FCHOWNAT = 54
63 SYS_FCHOWN = 55
64 SYS_OPENAT = 56
65 SYS_CLOSE = 57
66 SYS_VHANGUP = 58
67 SYS_PIPE2 = 59
68 SYS_QUOTACTL = 60
69 SYS_GETDENTS64 = 61
70 SYS_LSEEK = 62
71 SYS_READ = 63
72 SYS_WRITE = 64
73 SYS_READV = 65
74 SYS_WRITEV = 66
75 SYS_PREAD64 = 67
76 SYS_PWRITE64 = 68
77 SYS_PREADV = 69
78 SYS_PWRITEV = 70
79 SYS_SENDFILE = 71
80 SYS_PSELECT6 = 72
81 SYS_PPOLL = 73
82 SYS_SIGNALFD4 = 74
83 SYS_VMSPLICE = 75
84 SYS_SPLICE = 76
85 SYS_TEE = 77
86 SYS_READLINKAT = 78
87 SYS_FSTATAT = 79
88 SYS_FSTAT = 80
89 SYS_SYNC = 81
90 SYS_FSYNC = 82
91 SYS_FDATASYNC = 83
92 SYS_SYNC_FILE_RANGE = 84
93 SYS_TIMERFD_CREATE = 85
94 SYS_TIMERFD_SETTIME = 86
95 SYS_TIMERFD_GETTIME = 87
96 SYS_UTIMENSAT = 88
97 SYS_ACCT = 89
98 SYS_CAPGET = 90
99 SYS_CAPSET = 91
100 SYS_PERSONALITY = 92
101 SYS_EXIT = 93
102 SYS_EXIT_GROUP = 94
103 SYS_WAITID = 95
104 SYS_SET_TID_ADDRESS = 96
105 SYS_UNSHARE = 97
106 SYS_FUTEX = 98
107 SYS_SET_ROBUST_LIST = 99
108 SYS_GET_ROBUST_LIST = 100
109 SYS_NANOSLEEP = 101
110 SYS_GETITIMER = 102
111 SYS_SETITIMER = 103
112 SYS_KEXEC_LOAD = 104
113 SYS_INIT_MODULE = 105
114 SYS_DELETE_MODULE = 106
115 SYS_TIMER_CREATE = 107
116 SYS_TIMER_GETTIME = 108
117 SYS_TIMER_GETOVERRUN = 109
118 SYS_TIMER_SETTIME = 110
119 SYS_TIMER_DELETE = 111
120 SYS_CLOCK_SETTIME = 112
121 SYS_CLOCK_GETTIME = 113
122 SYS_CLOCK_GETRES = 114
123 SYS_CLOCK_NANOSLEEP = 115
124 SYS_SYSLOG = 116
125 SYS_PTRACE = 117
126 SYS_SCHED_SETPARAM = 118
127 SYS_SCHED_SETSCHEDULER = 119
128 SYS_SCHED_GETSCHEDULER = 120
129 SYS_SCHED_GETPARAM = 121
130 SYS_SCHED_SETAFFINITY = 122
131 SYS_SCHED_GETAFFINITY = 123
132 SYS_SCHED_YIELD = 124
133 SYS_SCHED_GET_PRIORITY_MAX = 125
134 SYS_SCHED_GET_PRIORITY_MIN = 126
135 SYS_SCHED_RR_GET_INTERVAL = 127
136 SYS_RESTART_SYSCALL = 128
137 SYS_KILL = 129
138 SYS_TKILL = 130
139 SYS_TGKILL = 131
140 SYS_SIGALTSTACK = 132
141 SYS_RT_SIGSUSPEND = 133
142 SYS_RT_SIGACTION = 134
143 SYS_RT_SIGPROCMASK = 135
144 SYS_RT_SIGPENDING = 136
145 SYS_RT_SIGTIMEDWAIT = 137
146 SYS_RT_SIGQUEUEINFO = 138
147 SYS_RT_SIGRETURN = 139
148 SYS_SETPRIORITY = 140
149 SYS_GETPRIORITY = 141
150 SYS_REBOOT = 142
151 SYS_SETREGID = 143
152 SYS_SETGID = 144
153 SYS_SETREUID = 145
154 SYS_SETUID = 146
155 SYS_SETRESUID = 147
156 SYS_GETRESUID = 148
157 SYS_SETRESGID = 149
158 SYS_GETRESGID = 150
159 SYS_SETFSUID = 151
160 SYS_SETFSGID = 152
161 SYS_TIMES = 153
162 SYS_SETPGID = 154
163 SYS_GETPGID = 155
164 SYS_GETSID = 156
165 SYS_SETSID = 157
166 SYS_GETGROUPS = 158
167 SYS_SETGROUPS = 159
168 SYS_UNAME = 160
169 SYS_SETHOSTNAME = 161
170 SYS_SETDOMAINNAME = 162
171 SYS_GETRLIMIT = 163
172 SYS_SETRLIMIT = 164
173 SYS_GETRUSAGE = 165
174 SYS_UMASK = 166
175 SYS_PRCTL = 167
176 SYS_GETCPU = 168
177 SYS_GETTIMEOFDAY = 169
178 SYS_SETTIMEOFDAY = 170
179 SYS_ADJTIMEX = 171
180 SYS_GETPID = 172
181 SYS_GETPPID = 173
182 SYS_GETUID = 174
183 SYS_GETEUID = 175
184 SYS_GETGID = 176
185 SYS_GETEGID = 177
186 SYS_GETTID = 178
187 SYS_SYSINFO = 179
188 SYS_MQ_OPEN = 180
189 SYS_MQ_UNLINK = 181
190 SYS_MQ_TIMEDSEND = 182
191 SYS_MQ_TIMEDRECEIVE = 183
192 SYS_MQ_NOTIFY = 184
193 SYS_MQ_GETSETATTR = 185
194 SYS_MSGGET = 186
195 SYS_MSGCTL = 187
196 SYS_MSGRCV = 188
197 SYS_MSGSND = 189
198 SYS_SEMGET = 190
199 SYS_SEMCTL = 191
200 SYS_SEMTIMEDOP = 192
201 SYS_SEMOP = 193
202 SYS_SHMGET = 194
203 SYS_SHMCTL = 195
204 SYS_SHMAT = 196
205 SYS_SHMDT = 197
206 SYS_SOCKET = 198
207 SYS_SOCKETPAIR = 199
208 SYS_BIND = 200
209 SYS_LISTEN = 201
210 SYS_ACCEPT = 202
211 SYS_CONNECT = 203
212 SYS_GETSOCKNAME = 204
213 SYS_GETPEERNAME = 205
214 SYS_SENDTO = 206
215 SYS_RECVFROM = 207
216 SYS_SETSOCKOPT = 208
217 SYS_GETSOCKOPT = 209
218 SYS_SHUTDOWN = 210
219 SYS_SENDMSG = 211
220 SYS_RECVMSG = 212
221 SYS_READAHEAD = 213
222 SYS_BRK = 214
223 SYS_MUNMAP = 215
224 SYS_MREMAP = 216
225 SYS_ADD_KEY = 217
226 SYS_REQUEST_KEY = 218
227 SYS_KEYCTL = 219
228 SYS_CLONE = 220
229 SYS_EXECVE = 221
230 SYS_MMAP = 222
231 SYS_FADVISE64 = 223
232 SYS_SWAPON = 224
233 SYS_SWAPOFF = 225
234 SYS_MPROTECT = 226
235 SYS_MSYNC = 227
236 SYS_MLOCK = 228
237 SYS_MUNLOCK = 229
238 SYS_MLOCKALL = 230
239 SYS_MUNLOCKALL = 231
240 SYS_MINCORE = 232
241 SYS_MADVISE = 233
242 SYS_REMAP_FILE_PAGES = 234
243 SYS_MBIND = 235
244 SYS_GET_MEMPOLICY = 236
245 SYS_SET_MEMPOLICY = 237
246 SYS_MIGRATE_PAGES = 238
247 SYS_MOVE_PAGES = 239
248 SYS_RT_TGSIGQUEUEINFO = 240
249 SYS_PERF_EVENT_OPEN = 241
250 SYS_ACCEPT4 = 242
251 SYS_RECVMMSG = 243
252 SYS_ARCH_SPECIFIC_SYSCALL = 244
253 SYS_WAIT4 = 260
254 SYS_PRLIMIT64 = 261
255 SYS_FANOTIFY_INIT = 262
256 SYS_FANOTIFY_MARK = 263
257 SYS_NAME_TO_HANDLE_AT = 264
258 SYS_OPEN_BY_HANDLE_AT = 265
259 SYS_CLOCK_ADJTIME = 266
260 SYS_SYNCFS = 267
261 SYS_SETNS = 268
262 SYS_SENDMMSG = 269
263 SYS_PROCESS_VM_READV = 270
264 SYS_PROCESS_VM_WRITEV = 271
265 SYS_KCMP = 272
266 SYS_FINIT_MODULE = 273
267 SYS_SCHED_SETATTR = 274
268 SYS_SCHED_GETATTR = 275
269 SYS_RENAMEAT2 = 276
270 SYS_SECCOMP = 277
271 SYS_GETRANDOM = 278
272 SYS_MEMFD_CREATE = 279
273 SYS_BPF = 280
274 SYS_EXECVEAT = 281
275 SYS_USERFAULTFD = 282
276 SYS_MEMBARRIER = 283
277 SYS_MLOCK2 = 284
278 SYS_COPY_FILE_RANGE = 285
279 SYS_PREADV2 = 286
280 SYS_PWRITEV2 = 287
281 SYS_PKEY_MPROTECT = 288
282 SYS_PKEY_ALLOC = 289
283 SYS_PKEY_FREE = 290
284 SYS_STATX = 291
285 SYS_IO_PGETEVENTS = 292
286)
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
index 8ea18e6..de0245a 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
@@ -109,6 +109,7 @@ const (
109 SYS_PERSONALITY = 136 109 SYS_PERSONALITY = 136
110 SYS_AFS_SYSCALL = 137 110 SYS_AFS_SYSCALL = 137
111 SYS_GETDENTS = 141 111 SYS_GETDENTS = 141
112 SYS_SELECT = 142
112 SYS_FLOCK = 143 113 SYS_FLOCK = 143
113 SYS_MSYNC = 144 114 SYS_MSYNC = 144
114 SYS_READV = 145 115 SYS_READV = 145
@@ -151,6 +152,26 @@ const (
151 SYS_GETPMSG = 188 152 SYS_GETPMSG = 188
152 SYS_PUTPMSG = 189 153 SYS_PUTPMSG = 189
153 SYS_VFORK = 190 154 SYS_VFORK = 190
155 SYS_GETRLIMIT = 191
156 SYS_LCHOWN = 198
157 SYS_GETUID = 199
158 SYS_GETGID = 200
159 SYS_GETEUID = 201
160 SYS_GETEGID = 202
161 SYS_SETREUID = 203
162 SYS_SETREGID = 204
163 SYS_GETGROUPS = 205
164 SYS_SETGROUPS = 206
165 SYS_FCHOWN = 207
166 SYS_SETRESUID = 208
167 SYS_GETRESUID = 209
168 SYS_SETRESGID = 210
169 SYS_GETRESGID = 211
170 SYS_CHOWN = 212
171 SYS_SETUID = 213
172 SYS_SETGID = 214
173 SYS_SETFSUID = 215
174 SYS_SETFSGID = 216
154 SYS_PIVOT_ROOT = 217 175 SYS_PIVOT_ROOT = 217
155 SYS_MINCORE = 218 176 SYS_MINCORE = 218
156 SYS_MADVISE = 219 177 SYS_MADVISE = 219
@@ -222,6 +243,7 @@ const (
222 SYS_MKNODAT = 290 243 SYS_MKNODAT = 290
223 SYS_FCHOWNAT = 291 244 SYS_FCHOWNAT = 291
224 SYS_FUTIMESAT = 292 245 SYS_FUTIMESAT = 292
246 SYS_NEWFSTATAT = 293
225 SYS_UNLINKAT = 294 247 SYS_UNLINKAT = 294
226 SYS_RENAMEAT = 295 248 SYS_RENAMEAT = 295
227 SYS_LINKAT = 296 249 SYS_LINKAT = 296
@@ -308,26 +330,8 @@ const (
308 SYS_PWRITEV2 = 377 330 SYS_PWRITEV2 = 377
309 SYS_S390_GUARDED_STORAGE = 378 331 SYS_S390_GUARDED_STORAGE = 378
310 SYS_STATX = 379 332 SYS_STATX = 379
311 SYS_SELECT = 142 333 SYS_S390_STHYI = 380
312 SYS_GETRLIMIT = 191 334 SYS_KEXEC_FILE_LOAD = 381
313 SYS_LCHOWN = 198 335 SYS_IO_PGETEVENTS = 382
314 SYS_GETUID = 199 336 SYS_RSEQ = 383
315 SYS_GETGID = 200
316 SYS_GETEUID = 201
317 SYS_GETEGID = 202
318 SYS_SETREUID = 203
319 SYS_SETREGID = 204
320 SYS_GETGROUPS = 205
321 SYS_SETGROUPS = 206
322 SYS_FCHOWN = 207
323 SYS_SETRESUID = 208
324 SYS_GETRESUID = 209
325 SYS_SETRESGID = 210
326 SYS_GETRESGID = 211
327 SYS_CHOWN = 212
328 SYS_SETUID = 213
329 SYS_SETGID = 214
330 SYS_SETFSUID = 215
331 SYS_SETFSGID = 216
332 SYS_NEWFSTATAT = 293
333) 337)
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 c9c129d..2d09936 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
@@ -1,5 +1,5 @@
1// mksysnum_linux.pl -Ilinux/usr/include -m64 -D__arch64__ linux/usr/include/asm/unistd.h 1// mksysnum_linux.pl -Ilinux/usr/include -m64 -D__arch64__ linux/usr/include/asm/unistd.h
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4// +build sparc64,linux 4// +build sparc64,linux
5 5
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go
index 8afda9c..f0daa05 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go
@@ -1,5 +1,5 @@
1// mksysnum_netbsd.pl 1// mksysnum_netbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4// +build 386,netbsd 4// +build 386,netbsd
5 5
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go
index aea8dbe..ddb25b9 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go
@@ -1,5 +1,5 @@
1// mksysnum_netbsd.pl 1// mksysnum_netbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4// +build amd64,netbsd 4// +build amd64,netbsd
5 5
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go
index c6158a7..315bd63 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go
@@ -1,5 +1,5 @@
1// mksysnum_netbsd.pl 1// mksysnum_netbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4// +build arm,netbsd 4// +build arm,netbsd
5 5
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go
index 3e8ce2a..0778730 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go
@@ -1,5 +1,5 @@
1// mksysnum_openbsd.pl 1// mksysnum_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4// +build 386,openbsd 4// +build 386,openbsd
5 5
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go
index bd28146..bc7fa57 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go
@@ -1,5 +1,5 @@
1// mksysnum_openbsd.pl 1// mksysnum_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; see README.md. DO NOT EDIT.
3 3
4// +build amd64,openbsd 4// +build amd64,openbsd
5 5
@@ -12,6 +12,7 @@ const (
12 SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ 12 SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \
13 SYS_OPEN = 5 // { int sys_open(const char *path, \ 13 SYS_OPEN = 5 // { int sys_open(const char *path, \
14 SYS_CLOSE = 6 // { int sys_close(int fd); } 14 SYS_CLOSE = 6 // { int sys_close(int fd); }
15 SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); }
15 SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ 16 SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \
16 SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } 17 SYS_LINK = 9 // { int sys_link(const char *path, const char *link); }
17 SYS_UNLINK = 10 // { int sys_unlink(const char *path); } 18 SYS_UNLINK = 10 // { int sys_unlink(const char *path); }
@@ -37,11 +38,10 @@ const (
37 SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ 38 SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \
38 SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ 39 SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \
39 SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ 40 SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \
40 SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); } 41 SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); }
41 SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } 42 SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); }
42 SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } 43 SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); }
43 SYS_SYNC = 36 // { void sys_sync(void); } 44 SYS_SYNC = 36 // { void sys_sync(void); }
44 SYS_KILL = 37 // { int sys_kill(int pid, int signum); }
45 SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } 45 SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); }
46 SYS_GETPPID = 39 // { pid_t sys_getppid(void); } 46 SYS_GETPPID = 39 // { pid_t sys_getppid(void); }
47 SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } 47 SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); }
@@ -53,7 +53,6 @@ const (
53 SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ 53 SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \
54 SYS_GETGID = 47 // { gid_t sys_getgid(void); } 54 SYS_GETGID = 47 // { gid_t sys_getgid(void); }
55 SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } 55 SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); }
56 SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); }
57 SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } 56 SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); }
58 SYS_ACCT = 51 // { int sys_acct(const char *path); } 57 SYS_ACCT = 51 // { int sys_acct(const char *path); }
59 SYS_SIGPENDING = 52 // { int sys_sigpending(void); } 58 SYS_SIGPENDING = 52 // { int sys_sigpending(void); }
@@ -62,7 +61,7 @@ const (
62 SYS_REBOOT = 55 // { int sys_reboot(int opt); } 61 SYS_REBOOT = 55 // { int sys_reboot(int opt); }
63 SYS_REVOKE = 56 // { int sys_revoke(const char *path); } 62 SYS_REVOKE = 56 // { int sys_revoke(const char *path); }
64 SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ 63 SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \
65 SYS_READLINK = 58 // { int sys_readlink(const char *path, char *buf, \ 64 SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \
66 SYS_EXECVE = 59 // { int sys_execve(const char *path, \ 65 SYS_EXECVE = 59 // { int sys_execve(const char *path, \
67 SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } 66 SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); }
68 SYS_CHROOT = 61 // { int sys_chroot(const char *path); } 67 SYS_CHROOT = 61 // { int sys_chroot(const char *path); }
@@ -86,15 +85,18 @@ const (
86 SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ 85 SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \
87 SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ 86 SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \
88 SYS_GETPGRP = 81 // { int sys_getpgrp(void); } 87 SYS_GETPGRP = 81 // { int sys_getpgrp(void); }
89 SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, int pgid); } 88 SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); }
89 SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, \
90 SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ 90 SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \
91 SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ 91 SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \
92 SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, \
92 SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ 93 SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \
93 SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ 94 SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \
94 SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ 95 SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \
95 SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } 96 SYS_DUP2 = 90 // { int sys_dup2(int from, int to); }
96 SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ 97 SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \
97 SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } 98 SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); }
99 SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \
98 SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ 100 SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \
99 SYS_FSYNC = 95 // { int sys_fsync(int fd); } 101 SYS_FSYNC = 95 // { int sys_fsync(int fd); }
100 SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } 102 SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); }
@@ -102,16 +104,24 @@ const (
102 SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ 104 SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \
103 SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } 105 SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); }
104 SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } 106 SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); }
107 SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); }
108 SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); }
105 SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } 109 SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); }
106 SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ 110 SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \
107 SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ 111 SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \
108 SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } 112 SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); }
113 SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \
114 SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, \
109 SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ 115 SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \
110 SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ 116 SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
111 SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } 117 SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); }
118 SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, \
119 SYS_UNVEIL = 114 // { int sys_unveil(const char *path, \
112 SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ 120 SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \
121 SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); }
113 SYS_READV = 120 // { ssize_t sys_readv(int fd, \ 122 SYS_READV = 120 // { ssize_t sys_readv(int fd, \
114 SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ 123 SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \
124 SYS_KILL = 122 // { int sys_kill(int pid, int signum); }
115 SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } 125 SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); }
116 SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } 126 SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); }
117 SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } 127 SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); }
@@ -125,6 +135,7 @@ const (
125 SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } 135 SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); }
126 SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } 136 SYS_RMDIR = 137 // { int sys_rmdir(const char *path); }
127 SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ 137 SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \
138 SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); }
128 SYS_SETSID = 147 // { int sys_setsid(void); } 139 SYS_SETSID = 147 // { int sys_setsid(void); }
129 SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ 140 SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \
130 SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } 141 SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); }
@@ -144,7 +155,7 @@ const (
144 SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ 155 SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \
145 SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ 156 SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \
146 SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } 157 SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); }
147 SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \ 158 SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, \
148 SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } 159 SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); }
149 SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } 160 SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); }
150 SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } 161 SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); }
diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go
index 32653e5..7a1693a 100644
--- a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go
@@ -1,5 +1,5 @@
1// mksysnum_openbsd.pl 1// mksysnum_openbsd.pl
2// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT 2// Code generated by the command above; DO NOT EDIT.
3 3
4// +build arm,openbsd 4// +build arm,openbsd
5 5
diff --git a/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go b/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go
new file mode 100644
index 0000000..cedc9b0
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go
@@ -0,0 +1,345 @@
1// cgo -godefs types_aix.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build ppc,aix
5
6package unix
7
8const (
9 SizeofPtr = 0x4
10 SizeofShort = 0x2
11 SizeofInt = 0x4
12 SizeofLong = 0x4
13 SizeofLongLong = 0x8
14 PathMax = 0x3ff
15)
16
17type (
18 _C_short int16
19 _C_int int32
20 _C_long int32
21 _C_long_long int64
22)
23
24type off64 int64
25type off int32
26type Mode_t uint32
27
28type Timespec struct {
29 Sec int32
30 Nsec int32
31}
32
33type StTimespec struct {
34 Sec int32
35 Nsec int32
36}
37
38type Timeval struct {
39 Sec int32
40 Usec int32
41}
42
43type Timeval32 struct {
44 Sec int32
45 Usec int32
46}
47
48type Timex struct{}
49
50type Time_t int32
51
52type Tms struct{}
53
54type Utimbuf struct {
55 Actime int32
56 Modtime int32
57}
58
59type Timezone struct {
60 Minuteswest int32
61 Dsttime int32
62}
63
64type Rusage struct {
65 Utime Timeval
66 Stime Timeval
67 Maxrss int32
68 Ixrss int32
69 Idrss int32
70 Isrss int32
71 Minflt int32
72 Majflt int32
73 Nswap int32
74 Inblock int32
75 Oublock int32
76 Msgsnd int32
77 Msgrcv int32
78 Nsignals int32
79 Nvcsw int32
80 Nivcsw int32
81}
82
83type Rlimit struct {
84 Cur uint64
85 Max uint64
86}
87
88type Pid_t int32
89
90type _Gid_t uint32
91
92type dev_t uint32
93
94type Stat_t struct {
95 Dev uint32
96 Ino uint32
97 Mode uint32
98 Nlink int16
99 Flag uint16
100 Uid uint32
101 Gid uint32
102 Rdev uint32
103 Size int32
104 Atim StTimespec
105 Mtim StTimespec
106 Ctim StTimespec
107 Blksize int32
108 Blocks int32
109 Vfstype int32
110 Vfs uint32
111 Type uint32
112 Gen uint32
113 Reserved [9]uint32
114}
115
116type StatxTimestamp struct{}
117
118type Statx_t struct{}
119
120type Dirent struct {
121 Offset uint32
122 Ino uint32
123 Reclen uint16
124 Namlen uint16
125 Name [256]uint8
126}
127
128type RawSockaddrInet4 struct {
129 Len uint8
130 Family uint8
131 Port uint16
132 Addr [4]byte /* in_addr */
133 Zero [8]uint8
134}
135
136type RawSockaddrInet6 struct {
137 Len uint8
138 Family uint8
139 Port uint16
140 Flowinfo uint32
141 Addr [16]byte /* in6_addr */
142 Scope_id uint32
143}
144
145type RawSockaddrUnix struct {
146 Len uint8
147 Family uint8
148 Path [1023]uint8
149}
150
151type RawSockaddr struct {
152 Len uint8
153 Family uint8
154 Data [14]uint8
155}
156
157type RawSockaddrAny struct {
158 Addr RawSockaddr
159 Pad [1012]uint8
160}
161
162type _Socklen uint32
163
164type Cmsghdr struct {
165 Len uint32
166 Level int32
167 Type int32
168}
169
170type ICMPv6Filter struct {
171 Filt [8]uint32
172}
173
174type Iovec struct {
175 Base *byte
176 Len uint32
177}
178
179type IPMreq struct {
180 Multiaddr [4]byte /* in_addr */
181 Interface [4]byte /* in_addr */
182}
183
184type IPv6Mreq struct {
185 Multiaddr [16]byte /* in6_addr */
186 Interface uint32
187}
188
189type IPv6MTUInfo struct {
190 Addr RawSockaddrInet6
191 Mtu uint32
192}
193
194type Linger struct {
195 Onoff int32
196 Linger int32
197}
198
199type Msghdr struct {
200 Name *byte
201 Namelen uint32
202 Iov *Iovec
203 Iovlen int32
204 Control *byte
205 Controllen uint32
206 Flags int32
207}
208
209const (
210 SizeofSockaddrInet4 = 0x10
211 SizeofSockaddrInet6 = 0x1c
212 SizeofSockaddrAny = 0x404
213 SizeofSockaddrUnix = 0x401
214 SizeofLinger = 0x8
215 SizeofIPMreq = 0x8
216 SizeofIPv6Mreq = 0x14
217 SizeofIPv6MTUInfo = 0x20
218 SizeofMsghdr = 0x1c
219 SizeofCmsghdr = 0xc
220 SizeofICMPv6Filter = 0x20
221)
222
223const (
224 SizeofIfMsghdr = 0x10
225)
226
227type IfMsgHdr struct {
228 Msglen uint16
229 Version uint8
230 Type uint8
231 Addrs int32
232 Flags int32
233 Index uint16
234 Addrlen uint8
235 _ [1]byte
236}
237
238type FdSet struct {
239 Bits [2048]int32
240}
241
242type Utsname struct {
243 Sysname [32]byte
244 Nodename [32]byte
245 Release [32]byte
246 Version [32]byte
247 Machine [32]byte
248}
249
250type Ustat_t struct{}
251
252type Sigset_t struct {
253 Losigs uint32
254 Hisigs uint32
255}
256
257const (
258 AT_FDCWD = -0x2
259 AT_REMOVEDIR = 0x1
260 AT_SYMLINK_NOFOLLOW = 0x1
261)
262
263type Termios struct {
264 Iflag uint32
265 Oflag uint32
266 Cflag uint32
267 Lflag uint32
268 Cc [16]uint8
269}
270
271type Termio struct {
272 Iflag uint16
273 Oflag uint16
274 Cflag uint16
275 Lflag uint16
276 Line uint8
277 Cc [8]uint8
278 _ [1]byte
279}
280
281type Winsize struct {
282 Row uint16
283 Col uint16
284 Xpixel uint16
285 Ypixel uint16
286}
287
288type PollFd struct {
289 Fd int32
290 Events uint16
291 Revents uint16
292}
293
294const (
295 POLLERR = 0x4000
296 POLLHUP = 0x2000
297 POLLIN = 0x1
298 POLLNVAL = 0x8000
299 POLLOUT = 0x2
300 POLLPRI = 0x4
301 POLLRDBAND = 0x20
302 POLLRDNORM = 0x10
303 POLLWRBAND = 0x40
304 POLLWRNORM = 0x2
305)
306
307type Flock_t struct {
308 Type int16
309 Whence int16
310 Sysid uint32
311 Pid int32
312 Vfs int32
313 Start int64
314 Len int64
315}
316
317type Fsid_t struct {
318 Val [2]uint32
319}
320type Fsid64_t struct {
321 Val [2]uint64
322}
323
324type Statfs_t struct {
325 Version int32
326 Type int32
327 Bsize uint32
328 Blocks uint32
329 Bfree uint32
330 Bavail uint32
331 Files uint32
332 Ffree uint32
333 Fsid Fsid_t
334 Vfstype int32
335 Fsize uint32
336 Vfsnumber int32
337 Vfsoff int32
338 Vfslen int32
339 Vfsvers int32
340 Fname [32]uint8
341 Fpack [32]uint8
342 Name_max int32
343}
344
345const RNDGETENTCNT = 0x80045200
diff --git a/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go
new file mode 100644
index 0000000..f46482d
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go
@@ -0,0 +1,354 @@
1// cgo -godefs types_aix.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build ppc64,aix
5
6package unix
7
8const (
9 SizeofPtr = 0x8
10 SizeofShort = 0x2
11 SizeofInt = 0x4
12 SizeofLong = 0x8
13 SizeofLongLong = 0x8
14 PathMax = 0x3ff
15)
16
17type (
18 _C_short int16
19 _C_int int32
20 _C_long int64
21 _C_long_long int64
22)
23
24type off64 int64
25type off int64
26type Mode_t uint32
27
28type Timespec struct {
29 Sec int64
30 Nsec int64
31}
32
33type StTimespec struct {
34 Sec int64
35 Nsec int32
36 _ [4]byte
37}
38
39type Timeval struct {
40 Sec int64
41 Usec int32
42 _ [4]byte
43}
44
45type Timeval32 struct {
46 Sec int32
47 Usec int32
48}
49
50type Timex struct{}
51
52type Time_t int64
53
54type Tms struct{}
55
56type Utimbuf struct {
57 Actime int64
58 Modtime int64
59}
60
61type Timezone struct {
62 Minuteswest int32
63 Dsttime int32
64}
65
66type Rusage struct {
67 Utime Timeval
68 Stime Timeval
69 Maxrss int64
70 Ixrss int64
71 Idrss int64
72 Isrss int64
73 Minflt int64
74 Majflt int64
75 Nswap int64
76 Inblock int64
77 Oublock int64
78 Msgsnd int64
79 Msgrcv int64
80 Nsignals int64
81 Nvcsw int64
82 Nivcsw int64
83}
84
85type Rlimit struct {
86 Cur uint64
87 Max uint64
88}
89
90type Pid_t int32
91
92type _Gid_t uint32
93
94type dev_t uint64
95
96type Stat_t struct {
97 Dev uint64
98 Ino uint64
99 Mode uint32
100 Nlink int16
101 Flag uint16
102 Uid uint32
103 Gid uint32
104 Rdev uint64
105 Ssize int32
106 _ [4]byte
107 Atim StTimespec
108 Mtim StTimespec
109 Ctim StTimespec
110 Blksize int64
111 Blocks int64
112 Vfstype int32
113 Vfs uint32
114 Type uint32
115 Gen uint32
116 Reserved [9]uint32
117 Padto_ll uint32
118 Size int64
119}
120
121type StatxTimestamp struct{}
122
123type Statx_t struct{}
124
125type Dirent struct {
126 Offset uint64
127 Ino uint64
128 Reclen uint16
129 Namlen uint16
130 Name [256]uint8
131 _ [4]byte
132}
133
134type RawSockaddrInet4 struct {
135 Len uint8
136 Family uint8
137 Port uint16
138 Addr [4]byte /* in_addr */
139 Zero [8]uint8
140}
141
142type RawSockaddrInet6 struct {
143 Len uint8
144 Family uint8
145 Port uint16
146 Flowinfo uint32
147 Addr [16]byte /* in6_addr */
148 Scope_id uint32
149}
150
151type RawSockaddrUnix struct {
152 Len uint8
153 Family uint8
154 Path [1023]uint8
155}
156
157type RawSockaddr struct {
158 Len uint8
159 Family uint8
160 Data [14]uint8
161}
162
163type RawSockaddrAny struct {
164 Addr RawSockaddr
165 Pad [1012]uint8
166}
167
168type _Socklen uint32
169
170type Cmsghdr struct {
171 Len uint32
172 Level int32
173 Type int32
174}
175
176type ICMPv6Filter struct {
177 Filt [8]uint32
178}
179
180type Iovec struct {
181 Base *byte
182 Len uint64
183}
184
185type IPMreq struct {
186 Multiaddr [4]byte /* in_addr */
187 Interface [4]byte /* in_addr */
188}
189
190type IPv6Mreq struct {
191 Multiaddr [16]byte /* in6_addr */
192 Interface uint32
193}
194
195type IPv6MTUInfo struct {
196 Addr RawSockaddrInet6
197 Mtu uint32
198}
199
200type Linger struct {
201 Onoff int32
202 Linger int32
203}
204
205type Msghdr struct {
206 Name *byte
207 Namelen uint32
208 _ [4]byte
209 Iov *Iovec
210 Iovlen int32
211 _ [4]byte
212 Control *byte
213 Controllen uint32
214 Flags int32
215}
216
217const (
218 SizeofSockaddrInet4 = 0x10
219 SizeofSockaddrInet6 = 0x1c
220 SizeofSockaddrAny = 0x404
221 SizeofSockaddrUnix = 0x401
222 SizeofLinger = 0x8
223 SizeofIPMreq = 0x8
224 SizeofIPv6Mreq = 0x14
225 SizeofIPv6MTUInfo = 0x20
226 SizeofMsghdr = 0x30
227 SizeofCmsghdr = 0xc
228 SizeofICMPv6Filter = 0x20
229)
230
231const (
232 SizeofIfMsghdr = 0x10
233)
234
235type IfMsgHdr struct {
236 Msglen uint16
237 Version uint8
238 Type uint8
239 Addrs int32
240 Flags int32
241 Index uint16
242 Addrlen uint8
243 _ [1]byte
244}
245
246type FdSet struct {
247 Bits [1024]int64
248}
249
250type Utsname struct {
251 Sysname [32]byte
252 Nodename [32]byte
253 Release [32]byte
254 Version [32]byte
255 Machine [32]byte
256}
257
258type Ustat_t struct{}
259
260type Sigset_t struct {
261 Set [4]uint64
262}
263
264const (
265 AT_FDCWD = -0x2
266 AT_REMOVEDIR = 0x1
267 AT_SYMLINK_NOFOLLOW = 0x1
268)
269
270type Termios struct {
271 Iflag uint32
272 Oflag uint32
273 Cflag uint32
274 Lflag uint32
275 Cc [16]uint8
276}
277
278type Termio struct {
279 Iflag uint16
280 Oflag uint16
281 Cflag uint16
282 Lflag uint16
283 Line uint8
284 Cc [8]uint8
285 _ [1]byte
286}
287
288type Winsize struct {
289 Row uint16
290 Col uint16
291 Xpixel uint16
292 Ypixel uint16
293}
294
295type PollFd struct {
296 Fd int32
297 Events uint16
298 Revents uint16
299}
300
301const (
302 POLLERR = 0x4000
303 POLLHUP = 0x2000
304 POLLIN = 0x1
305 POLLNVAL = 0x8000
306 POLLOUT = 0x2
307 POLLPRI = 0x4
308 POLLRDBAND = 0x20
309 POLLRDNORM = 0x10
310 POLLWRBAND = 0x40
311 POLLWRNORM = 0x2
312)
313
314type Flock_t struct {
315 Type int16
316 Whence int16
317 Sysid uint32
318 Pid int32
319 Vfs int32
320 Start int64
321 Len int64
322}
323
324type Fsid_t struct {
325 Val [2]uint32
326}
327type Fsid64_t struct {
328 Val [2]uint64
329}
330
331type Statfs_t struct {
332 Version int32
333 Type int32
334 Bsize uint64
335 Blocks uint64
336 Bfree uint64
337 Bavail uint64
338 Files uint64
339 Ffree uint64
340 Fsid Fsid64_t
341 Vfstype int32
342 _ [4]byte
343 Fsize uint64
344 Vfsnumber int32
345 Vfsoff int32
346 Vfslen int32
347 Vfsvers int32
348 Fname [32]uint8
349 Fpack [32]uint8
350 Name_max int32
351 _ [4]byte
352}
353
354const RNDGETENTCNT = 0x80045200
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 bc4bc89..2aeb52a 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -136,13 +136,13 @@ type Fsid struct {
136} 136}
137 137
138type Dirent struct { 138type Dirent struct {
139 Ino uint64 139 Ino uint64
140 Seekoff uint64 140 Seekoff uint64
141 Reclen uint16 141 Reclen uint16
142 Namlen uint16 142 Namlen uint16
143 Type uint8 143 Type uint8
144 Name [1024]int8 144 Name [1024]int8
145 Pad_cgo_0 [3]byte 145 _ [3]byte
146} 146}
147 147
148type RawSockaddrInet4 struct { 148type RawSockaddrInet4 struct {
@@ -295,14 +295,14 @@ const (
295) 295)
296 296
297type IfMsghdr struct { 297type IfMsghdr struct {
298 Msglen uint16 298 Msglen uint16
299 Version uint8 299 Version uint8
300 Type uint8 300 Type uint8
301 Addrs int32 301 Addrs int32
302 Flags int32 302 Flags int32
303 Index uint16 303 Index uint16
304 Pad_cgo_0 [2]byte 304 _ [2]byte
305 Data IfData 305 Data IfData
306} 306}
307 307
308type IfData struct { 308type IfData struct {
@@ -338,51 +338,51 @@ type IfData struct {
338} 338}
339 339
340type IfaMsghdr struct { 340type IfaMsghdr struct {
341 Msglen uint16 341 Msglen uint16
342 Version uint8 342 Version uint8
343 Type uint8 343 Type uint8
344 Addrs int32 344 Addrs int32
345 Flags int32 345 Flags int32
346 Index uint16 346 Index uint16
347 Pad_cgo_0 [2]byte 347 _ [2]byte
348 Metric int32 348 Metric int32
349} 349}
350 350
351type IfmaMsghdr struct { 351type IfmaMsghdr struct {
352 Msglen uint16 352 Msglen uint16
353 Version uint8 353 Version uint8
354 Type uint8 354 Type uint8
355 Addrs int32 355 Addrs int32
356 Flags int32 356 Flags int32
357 Index uint16 357 Index uint16
358 Pad_cgo_0 [2]byte 358 _ [2]byte
359} 359}
360 360
361type IfmaMsghdr2 struct { 361type IfmaMsghdr2 struct {
362 Msglen uint16 362 Msglen uint16
363 Version uint8 363 Version uint8
364 Type uint8 364 Type uint8
365 Addrs int32 365 Addrs int32
366 Flags int32 366 Flags int32
367 Index uint16 367 Index uint16
368 Pad_cgo_0 [2]byte 368 _ [2]byte
369 Refcount int32 369 Refcount int32
370} 370}
371 371
372type RtMsghdr struct { 372type RtMsghdr struct {
373 Msglen uint16 373 Msglen uint16
374 Version uint8 374 Version uint8
375 Type uint8 375 Type uint8
376 Index uint16 376 Index uint16
377 Pad_cgo_0 [2]byte 377 _ [2]byte
378 Flags int32 378 Flags int32
379 Addrs int32 379 Addrs int32
380 Pid int32 380 Pid int32
381 Seq int32 381 Seq int32
382 Errno int32 382 Errno int32
383 Use int32 383 Use int32
384 Inits uint32 384 Inits uint32
385 Rmx RtMetrics 385 Rmx RtMetrics
386} 386}
387 387
388type RtMetrics struct { 388type RtMetrics struct {
@@ -430,11 +430,11 @@ type BpfInsn struct {
430} 430}
431 431
432type BpfHdr struct { 432type BpfHdr struct {
433 Tstamp Timeval 433 Tstamp Timeval
434 Caplen uint32 434 Caplen uint32
435 Datalen uint32 435 Datalen uint32
436 Hdrlen uint16 436 Hdrlen uint16
437 Pad_cgo_0 [2]byte 437 _ [2]byte
438} 438}
439 439
440type Termios struct { 440type Termios struct {
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 d8abcab..0d0d9f2 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -26,9 +26,9 @@ type Timespec struct {
26} 26}
27 27
28type Timeval struct { 28type Timeval struct {
29 Sec int64 29 Sec int64
30 Usec int32 30 Usec int32
31 Pad_cgo_0 [4]byte 31 _ [4]byte
32} 32}
33 33
34type Timeval32 struct { 34type Timeval32 struct {
@@ -70,7 +70,7 @@ type Stat_t struct {
70 Uid uint32 70 Uid uint32
71 Gid uint32 71 Gid uint32
72 Rdev int32 72 Rdev int32
73 Pad_cgo_0 [4]byte 73 _ [4]byte
74 Atimespec Timespec 74 Atimespec Timespec
75 Mtimespec Timespec 75 Mtimespec Timespec
76 Ctimespec Timespec 76 Ctimespec Timespec
@@ -120,9 +120,9 @@ type Fstore_t struct {
120} 120}
121 121
122type Radvisory_t struct { 122type Radvisory_t struct {
123 Offset int64 123 Offset int64
124 Count int32 124 Count int32
125 Pad_cgo_0 [4]byte 125 _ [4]byte
126} 126}
127 127
128type Fbootstraptransfer_t struct { 128type Fbootstraptransfer_t struct {
@@ -132,9 +132,9 @@ type Fbootstraptransfer_t struct {
132} 132}
133 133
134type Log2phys_t struct { 134type Log2phys_t struct {
135 Flags uint32 135 Flags uint32
136 Pad_cgo_0 [8]byte 136 _ [8]byte
137 Pad_cgo_1 [8]byte 137 _ [8]byte
138} 138}
139 139
140type Fsid struct { 140type Fsid struct {
@@ -142,13 +142,13 @@ type Fsid struct {
142} 142}
143 143
144type Dirent struct { 144type Dirent struct {
145 Ino uint64 145 Ino uint64
146 Seekoff uint64 146 Seekoff uint64
147 Reclen uint16 147 Reclen uint16
148 Namlen uint16 148 Namlen uint16
149 Type uint8 149 Type uint8
150 Name [1024]int8 150 Name [1024]int8
151 Pad_cgo_0 [3]byte 151 _ [3]byte
152} 152}
153 153
154type RawSockaddrInet4 struct { 154type RawSockaddrInet4 struct {
@@ -221,10 +221,10 @@ type IPv6Mreq struct {
221type Msghdr struct { 221type Msghdr struct {
222 Name *byte 222 Name *byte
223 Namelen uint32 223 Namelen uint32
224 Pad_cgo_0 [4]byte 224 _ [4]byte
225 Iov *Iovec 225 Iov *Iovec
226 Iovlen int32 226 Iovlen int32
227 Pad_cgo_1 [4]byte 227 _ [4]byte
228 Control *byte 228 Control *byte
229 Controllen uint32 229 Controllen uint32
230 Flags int32 230 Flags int32
@@ -303,14 +303,14 @@ const (
303) 303)
304 304
305type IfMsghdr struct { 305type IfMsghdr struct {
306 Msglen uint16 306 Msglen uint16
307 Version uint8 307 Version uint8
308 Type uint8 308 Type uint8
309 Addrs int32 309 Addrs int32
310 Flags int32 310 Flags int32
311 Index uint16 311 Index uint16
312 Pad_cgo_0 [2]byte 312 _ [2]byte
313 Data IfData 313 Data IfData
314} 314}
315 315
316type IfData struct { 316type IfData struct {
@@ -346,51 +346,51 @@ type IfData struct {
346} 346}
347 347
348type IfaMsghdr struct { 348type IfaMsghdr struct {
349 Msglen uint16 349 Msglen uint16
350 Version uint8 350 Version uint8
351 Type uint8 351 Type uint8
352 Addrs int32 352 Addrs int32
353 Flags int32 353 Flags int32
354 Index uint16 354 Index uint16
355 Pad_cgo_0 [2]byte 355 _ [2]byte
356 Metric int32 356 Metric int32
357} 357}
358 358
359type IfmaMsghdr struct { 359type IfmaMsghdr struct {
360 Msglen uint16 360 Msglen uint16
361 Version uint8 361 Version uint8
362 Type uint8 362 Type uint8
363 Addrs int32 363 Addrs int32
364 Flags int32 364 Flags int32
365 Index uint16 365 Index uint16
366 Pad_cgo_0 [2]byte 366 _ [2]byte
367} 367}
368 368
369type IfmaMsghdr2 struct { 369type IfmaMsghdr2 struct {
370 Msglen uint16 370 Msglen uint16
371 Version uint8 371 Version uint8
372 Type uint8 372 Type uint8
373 Addrs int32 373 Addrs int32
374 Flags int32 374 Flags int32
375 Index uint16 375 Index uint16
376 Pad_cgo_0 [2]byte 376 _ [2]byte
377 Refcount int32 377 Refcount int32
378} 378}
379 379
380type RtMsghdr struct { 380type RtMsghdr struct {
381 Msglen uint16 381 Msglen uint16
382 Version uint8 382 Version uint8
383 Type uint8 383 Type uint8
384 Index uint16 384 Index uint16
385 Pad_cgo_0 [2]byte 385 _ [2]byte
386 Flags int32 386 Flags int32
387 Addrs int32 387 Addrs int32
388 Pid int32 388 Pid int32
389 Seq int32 389 Seq int32
390 Errno int32 390 Errno int32
391 Use int32 391 Use int32
392 Inits uint32 392 Inits uint32
393 Rmx RtMetrics 393 Rmx RtMetrics
394} 394}
395 395
396type RtMetrics struct { 396type RtMetrics struct {
@@ -426,9 +426,9 @@ type BpfStat struct {
426} 426}
427 427
428type BpfProgram struct { 428type BpfProgram struct {
429 Len uint32 429 Len uint32
430 Pad_cgo_0 [4]byte 430 _ [4]byte
431 Insns *BpfInsn 431 Insns *BpfInsn
432} 432}
433 433
434type BpfInsn struct { 434type BpfInsn struct {
@@ -439,22 +439,22 @@ type BpfInsn struct {
439} 439}
440 440
441type BpfHdr struct { 441type BpfHdr struct {
442 Tstamp Timeval32 442 Tstamp Timeval32
443 Caplen uint32 443 Caplen uint32
444 Datalen uint32 444 Datalen uint32
445 Hdrlen uint16 445 Hdrlen uint16
446 Pad_cgo_0 [2]byte 446 _ [2]byte
447} 447}
448 448
449type Termios struct { 449type Termios struct {
450 Iflag uint64 450 Iflag uint64
451 Oflag uint64 451 Oflag uint64
452 Cflag uint64 452 Cflag uint64
453 Lflag uint64 453 Lflag uint64
454 Cc [20]uint8 454 Cc [20]uint8
455 Pad_cgo_0 [4]byte 455 _ [4]byte
456 Ispeed uint64 456 Ispeed uint64
457 Ospeed uint64 457 Ospeed uint64
458} 458}
459 459
460type Winsize struct { 460type Winsize struct {
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 9749c9f..04e344b 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go
@@ -7,11 +7,11 @@
7package unix 7package unix
8 8
9const ( 9const (
10 sizeofPtr = 0x4 10 SizeofPtr = 0x4
11 sizeofShort = 0x2 11 SizeofShort = 0x2
12 sizeofInt = 0x4 12 SizeofInt = 0x4
13 sizeofLong = 0x4 13 SizeofLong = 0x4
14 sizeofLongLong = 0x8 14 SizeofLongLong = 0x8
15) 15)
16 16
17type ( 17type (
@@ -137,13 +137,13 @@ type Fsid struct {
137} 137}
138 138
139type Dirent struct { 139type Dirent struct {
140 Ino uint64 140 Ino uint64
141 Seekoff uint64 141 Seekoff uint64
142 Reclen uint16 142 Reclen uint16
143 Namlen uint16 143 Namlen uint16
144 Type uint8 144 Type uint8
145 Name [1024]int8 145 Name [1024]int8
146 Pad_cgo_0 [3]byte 146 _ [3]byte
147} 147}
148 148
149type RawSockaddrInet4 struct { 149type RawSockaddrInet4 struct {
@@ -296,14 +296,14 @@ const (
296) 296)
297 297
298type IfMsghdr struct { 298type IfMsghdr struct {
299 Msglen uint16 299 Msglen uint16
300 Version uint8 300 Version uint8
301 Type uint8 301 Type uint8
302 Addrs int32 302 Addrs int32
303 Flags int32 303 Flags int32
304 Index uint16 304 Index uint16
305 Pad_cgo_0 [2]byte 305 _ [2]byte
306 Data IfData 306 Data IfData
307} 307}
308 308
309type IfData struct { 309type IfData struct {
@@ -339,51 +339,51 @@ type IfData struct {
339} 339}
340 340
341type IfaMsghdr struct { 341type IfaMsghdr struct {
342 Msglen uint16 342 Msglen uint16
343 Version uint8 343 Version uint8
344 Type uint8 344 Type uint8
345 Addrs int32 345 Addrs int32
346 Flags int32 346 Flags int32
347 Index uint16 347 Index uint16
348 Pad_cgo_0 [2]byte 348 _ [2]byte
349 Metric int32 349 Metric int32
350} 350}
351 351
352type IfmaMsghdr struct { 352type IfmaMsghdr struct {
353 Msglen uint16 353 Msglen uint16
354 Version uint8 354 Version uint8
355 Type uint8 355 Type uint8
356 Addrs int32 356 Addrs int32
357 Flags int32 357 Flags int32
358 Index uint16 358 Index uint16
359 Pad_cgo_0 [2]byte 359 _ [2]byte
360} 360}
361 361
362type IfmaMsghdr2 struct { 362type IfmaMsghdr2 struct {
363 Msglen uint16 363 Msglen uint16
364 Version uint8 364 Version uint8
365 Type uint8 365 Type uint8
366 Addrs int32 366 Addrs int32
367 Flags int32 367 Flags int32
368 Index uint16 368 Index uint16
369 Pad_cgo_0 [2]byte 369 _ [2]byte
370 Refcount int32 370 Refcount int32
371} 371}
372 372
373type RtMsghdr struct { 373type RtMsghdr struct {
374 Msglen uint16 374 Msglen uint16
375 Version uint8 375 Version uint8
376 Type uint8 376 Type uint8
377 Index uint16 377 Index uint16
378 Pad_cgo_0 [2]byte 378 _ [2]byte
379 Flags int32 379 Flags int32
380 Addrs int32 380 Addrs int32
381 Pid int32 381 Pid int32
382 Seq int32 382 Seq int32
383 Errno int32 383 Errno int32
384 Use int32 384 Use int32
385 Inits uint32 385 Inits uint32
386 Rmx RtMetrics 386 Rmx RtMetrics
387} 387}
388 388
389type RtMetrics struct { 389type RtMetrics struct {
@@ -431,11 +431,11 @@ type BpfInsn struct {
431} 431}
432 432
433type BpfHdr struct { 433type BpfHdr struct {
434 Tstamp Timeval 434 Tstamp Timeval
435 Caplen uint32 435 Caplen uint32
436 Datalen uint32 436 Datalen uint32
437 Hdrlen uint16 437 Hdrlen uint16
438 Pad_cgo_0 [2]byte 438 _ [2]byte
439} 439}
440 440
441type Termios struct { 441type Termios struct {
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 810b0bd..9fec185 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -26,9 +26,9 @@ type Timespec struct {
26} 26}
27 27
28type Timeval struct { 28type Timeval struct {
29 Sec int64 29 Sec int64
30 Usec int32 30 Usec int32
31 Pad_cgo_0 [4]byte 31 _ [4]byte
32} 32}
33 33
34type Timeval32 struct { 34type Timeval32 struct {
@@ -70,7 +70,7 @@ type Stat_t struct {
70 Uid uint32 70 Uid uint32
71 Gid uint32 71 Gid uint32
72 Rdev int32 72 Rdev int32
73 Pad_cgo_0 [4]byte 73 _ [4]byte
74 Atimespec Timespec 74 Atimespec Timespec
75 Mtimespec Timespec 75 Mtimespec Timespec
76 Ctimespec Timespec 76 Ctimespec Timespec
@@ -120,9 +120,9 @@ type Fstore_t struct {
120} 120}
121 121
122type Radvisory_t struct { 122type Radvisory_t struct {
123 Offset int64 123 Offset int64
124 Count int32 124 Count int32
125 Pad_cgo_0 [4]byte 125 _ [4]byte
126} 126}
127 127
128type Fbootstraptransfer_t struct { 128type Fbootstraptransfer_t struct {
@@ -132,9 +132,9 @@ type Fbootstraptransfer_t struct {
132} 132}
133 133
134type Log2phys_t struct { 134type Log2phys_t struct {
135 Flags uint32 135 Flags uint32
136 Pad_cgo_0 [8]byte 136 _ [8]byte
137 Pad_cgo_1 [8]byte 137 _ [8]byte
138} 138}
139 139
140type Fsid struct { 140type Fsid struct {
@@ -142,13 +142,13 @@ type Fsid struct {
142} 142}
143 143
144type Dirent struct { 144type Dirent struct {
145 Ino uint64 145 Ino uint64
146 Seekoff uint64 146 Seekoff uint64
147 Reclen uint16 147 Reclen uint16
148 Namlen uint16 148 Namlen uint16
149 Type uint8 149 Type uint8
150 Name [1024]int8 150 Name [1024]int8
151 Pad_cgo_0 [3]byte 151 _ [3]byte
152} 152}
153 153
154type RawSockaddrInet4 struct { 154type RawSockaddrInet4 struct {
@@ -221,10 +221,10 @@ type IPv6Mreq struct {
221type Msghdr struct { 221type Msghdr struct {
222 Name *byte 222 Name *byte
223 Namelen uint32 223 Namelen uint32
224 Pad_cgo_0 [4]byte 224 _ [4]byte
225 Iov *Iovec 225 Iov *Iovec
226 Iovlen int32 226 Iovlen int32
227 Pad_cgo_1 [4]byte 227 _ [4]byte
228 Control *byte 228 Control *byte
229 Controllen uint32 229 Controllen uint32
230 Flags int32 230 Flags int32
@@ -303,14 +303,14 @@ const (
303) 303)
304 304
305type IfMsghdr struct { 305type IfMsghdr struct {
306 Msglen uint16 306 Msglen uint16
307 Version uint8 307 Version uint8
308 Type uint8 308 Type uint8
309 Addrs int32 309 Addrs int32
310 Flags int32 310 Flags int32
311 Index uint16 311 Index uint16
312 Pad_cgo_0 [2]byte 312 _ [2]byte
313 Data IfData 313 Data IfData
314} 314}
315 315
316type IfData struct { 316type IfData struct {
@@ -346,51 +346,51 @@ type IfData struct {
346} 346}
347 347
348type IfaMsghdr struct { 348type IfaMsghdr struct {
349 Msglen uint16 349 Msglen uint16
350 Version uint8 350 Version uint8
351 Type uint8 351 Type uint8
352 Addrs int32 352 Addrs int32
353 Flags int32 353 Flags int32
354 Index uint16 354 Index uint16
355 Pad_cgo_0 [2]byte 355 _ [2]byte
356 Metric int32 356 Metric int32
357} 357}
358 358
359type IfmaMsghdr struct { 359type IfmaMsghdr struct {
360 Msglen uint16 360 Msglen uint16
361 Version uint8 361 Version uint8
362 Type uint8 362 Type uint8
363 Addrs int32 363 Addrs int32
364 Flags int32 364 Flags int32
365 Index uint16 365 Index uint16
366 Pad_cgo_0 [2]byte 366 _ [2]byte
367} 367}
368 368
369type IfmaMsghdr2 struct { 369type IfmaMsghdr2 struct {
370 Msglen uint16 370 Msglen uint16
371 Version uint8 371 Version uint8
372 Type uint8 372 Type uint8
373 Addrs int32 373 Addrs int32
374 Flags int32 374 Flags int32
375 Index uint16 375 Index uint16
376 Pad_cgo_0 [2]byte 376 _ [2]byte
377 Refcount int32 377 Refcount int32
378} 378}
379 379
380type RtMsghdr struct { 380type RtMsghdr struct {
381 Msglen uint16 381 Msglen uint16
382 Version uint8 382 Version uint8
383 Type uint8 383 Type uint8
384 Index uint16 384 Index uint16
385 Pad_cgo_0 [2]byte 385 _ [2]byte
386 Flags int32 386 Flags int32
387 Addrs int32 387 Addrs int32
388 Pid int32 388 Pid int32
389 Seq int32 389 Seq int32
390 Errno int32 390 Errno int32
391 Use int32 391 Use int32
392 Inits uint32 392 Inits uint32
393 Rmx RtMetrics 393 Rmx RtMetrics
394} 394}
395 395
396type RtMetrics struct { 396type RtMetrics struct {
@@ -426,9 +426,9 @@ type BpfStat struct {
426} 426}
427 427
428type BpfProgram struct { 428type BpfProgram struct {
429 Len uint32 429 Len uint32
430 Pad_cgo_0 [4]byte 430 _ [4]byte
431 Insns *BpfInsn 431 Insns *BpfInsn
432} 432}
433 433
434type BpfInsn struct { 434type BpfInsn struct {
@@ -439,22 +439,22 @@ type BpfInsn struct {
439} 439}
440 440
441type BpfHdr struct { 441type BpfHdr struct {
442 Tstamp Timeval32 442 Tstamp Timeval32
443 Caplen uint32 443 Caplen uint32
444 Datalen uint32 444 Datalen uint32
445 Hdrlen uint16 445 Hdrlen uint16
446 Pad_cgo_0 [2]byte 446 _ [2]byte
447} 447}
448 448
449type Termios struct { 449type Termios struct {
450 Iflag uint64 450 Iflag uint64
451 Oflag uint64 451 Oflag uint64
452 Cflag uint64 452 Cflag uint64
453 Lflag uint64 453 Lflag uint64
454 Cc [20]uint8 454 Cc [20]uint8
455 Pad_cgo_0 [4]byte 455 _ [4]byte
456 Ispeed uint64 456 Ispeed uint64
457 Ospeed uint64 457 Ospeed uint64
458} 458}
459 459
460type Winsize struct { 460type Winsize struct {
diff --git a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
index e3b8ebb..7b34e2e 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -56,23 +56,6 @@ type Rlimit struct {
56 56
57type _Gid_t uint32 57type _Gid_t uint32
58 58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct { 59type Stat_t struct {
77 Ino uint64 60 Ino uint64
78 Nlink uint32 61 Nlink uint32
@@ -108,7 +91,7 @@ type Statfs_t struct {
108 Owner uint32 91 Owner uint32
109 Type int32 92 Type int32
110 Flags int32 93 Flags int32
111 Pad_cgo_0 [4]byte 94 _ [4]byte
112 Syncwrites int64 95 Syncwrites int64
113 Asyncwrites int64 96 Asyncwrites int64
114 Fstypename [16]int8 97 Fstypename [16]int8
@@ -118,7 +101,7 @@ type Statfs_t struct {
118 Spares1 int16 101 Spares1 int16
119 Mntfromname [80]int8 102 Mntfromname [80]int8
120 Spares2 int16 103 Spares2 int16
121 Pad_cgo_1 [4]byte 104 _ [4]byte
122 Spare [2]int64 105 Spare [2]int64
123} 106}
124 107
@@ -219,10 +202,10 @@ type IPv6Mreq struct {
219type Msghdr struct { 202type Msghdr struct {
220 Name *byte 203 Name *byte
221 Namelen uint32 204 Namelen uint32
222 Pad_cgo_0 [4]byte 205 _ [4]byte
223 Iov *Iovec 206 Iov *Iovec
224 Iovlen int32 207 Iovlen int32
225 Pad_cgo_1 [4]byte 208 _ [4]byte
226 Control *byte 209 Control *byte
227 Controllen uint32 210 Controllen uint32
228 Flags int32 211 Flags int32
@@ -294,14 +277,14 @@ const (
294) 277)
295 278
296type IfMsghdr struct { 279type IfMsghdr struct {
297 Msglen uint16 280 Msglen uint16
298 Version uint8 281 Version uint8
299 Type uint8 282 Type uint8
300 Addrs int32 283 Addrs int32
301 Flags int32 284 Flags int32
302 Index uint16 285 Index uint16
303 Pad_cgo_0 [2]byte 286 _ [2]byte
304 Data IfData 287 Data IfData
305} 288}
306 289
307type IfData struct { 290type IfData struct {
@@ -311,7 +294,7 @@ type IfData struct {
311 Hdrlen uint8 294 Hdrlen uint8
312 Recvquota uint8 295 Recvquota uint8
313 Xmitquota uint8 296 Xmitquota uint8
314 Pad_cgo_0 [2]byte 297 _ [2]byte
315 Mtu uint64 298 Mtu uint64
316 Metric uint64 299 Metric uint64
317 Link_state uint64 300 Link_state uint64
@@ -333,24 +316,24 @@ type IfData struct {
333} 316}
334 317
335type IfaMsghdr struct { 318type IfaMsghdr struct {
336 Msglen uint16 319 Msglen uint16
337 Version uint8 320 Version uint8
338 Type uint8 321 Type uint8
339 Addrs int32 322 Addrs int32
340 Flags int32 323 Flags int32
341 Index uint16 324 Index uint16
342 Pad_cgo_0 [2]byte 325 _ [2]byte
343 Metric int32 326 Metric int32
344} 327}
345 328
346type IfmaMsghdr struct { 329type IfmaMsghdr struct {
347 Msglen uint16 330 Msglen uint16
348 Version uint8 331 Version uint8
349 Type uint8 332 Type uint8
350 Addrs int32 333 Addrs int32
351 Flags int32 334 Flags int32
352 Index uint16 335 Index uint16
353 Pad_cgo_0 [2]byte 336 _ [2]byte
354} 337}
355 338
356type IfAnnounceMsghdr struct { 339type IfAnnounceMsghdr struct {
@@ -363,19 +346,19 @@ type IfAnnounceMsghdr struct {
363} 346}
364 347
365type RtMsghdr struct { 348type RtMsghdr struct {
366 Msglen uint16 349 Msglen uint16
367 Version uint8 350 Version uint8
368 Type uint8 351 Type uint8
369 Index uint16 352 Index uint16
370 Pad_cgo_0 [2]byte 353 _ [2]byte
371 Flags int32 354 Flags int32
372 Addrs int32 355 Addrs int32
373 Pid int32 356 Pid int32
374 Seq int32 357 Seq int32
375 Errno int32 358 Errno int32
376 Use int32 359 Use int32
377 Inits uint64 360 Inits uint64
378 Rmx RtMetrics 361 Rmx RtMetrics
379} 362}
380 363
381type RtMetrics struct { 364type RtMetrics struct {
@@ -391,7 +374,7 @@ type RtMetrics struct {
391 Hopcount uint64 374 Hopcount uint64
392 Mssopt uint16 375 Mssopt uint16
393 Pad uint16 376 Pad uint16
394 Pad_cgo_0 [4]byte 377 _ [4]byte
395 Msl uint64 378 Msl uint64
396 Iwmaxsegs uint64 379 Iwmaxsegs uint64
397 Iwcapsegs uint64 380 Iwcapsegs uint64
@@ -416,9 +399,9 @@ type BpfStat struct {
416} 399}
417 400
418type BpfProgram struct { 401type BpfProgram struct {
419 Len uint32 402 Len uint32
420 Pad_cgo_0 [4]byte 403 _ [4]byte
421 Insns *BpfInsn 404 Insns *BpfInsn
422} 405}
423 406
424type BpfInsn struct { 407type BpfInsn struct {
@@ -429,11 +412,11 @@ type BpfInsn struct {
429} 412}
430 413
431type BpfHdr struct { 414type BpfHdr struct {
432 Tstamp Timeval 415 Tstamp Timeval
433 Caplen uint32 416 Caplen uint32
434 Datalen uint32 417 Datalen uint32
435 Hdrlen uint16 418 Hdrlen uint16
436 Pad_cgo_0 [6]byte 419 _ [6]byte
437} 420}
438 421
439type Termios struct { 422type Termios struct {
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
index 878a21a..1138029 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -56,23 +56,6 @@ type Rlimit struct {
56 56
57type _Gid_t uint32 57type _Gid_t uint32
58 58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct { 59type Stat_t struct {
77 Dev uint32 60 Dev uint32
78 Ino uint32 61 Ino uint32
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
index 8408af1..a6fc127 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -56,23 +56,6 @@ type Rlimit struct {
56 56
57type _Gid_t uint32 57type _Gid_t uint32
58 58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct { 59type Stat_t struct {
77 Dev uint32 60 Dev uint32
78 Ino uint32 61 Ino uint32
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
index 4b2d9a4..6b3006d 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -58,23 +58,6 @@ type Rlimit struct {
58 58
59type _Gid_t uint32 59type _Gid_t uint32
60 60
61const (
62 S_IFMT = 0xf000
63 S_IFIFO = 0x1000
64 S_IFCHR = 0x2000
65 S_IFDIR = 0x4000
66 S_IFBLK = 0x6000
67 S_IFREG = 0x8000
68 S_IFLNK = 0xa000
69 S_IFSOCK = 0xc000
70 S_ISUID = 0x800
71 S_ISGID = 0x400
72 S_ISVTX = 0x200
73 S_IRUSR = 0x100
74 S_IWUSR = 0x80
75 S_IXUSR = 0x40
76)
77
78type Stat_t struct { 61type Stat_t struct {
79 Dev uint32 62 Dev uint32
80 Ino uint32 63 Ino uint32
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 7aa206e..3879002 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -96,45 +96,30 @@ type Rlimit struct {
96type _Gid_t uint32 96type _Gid_t uint32
97 97
98type Stat_t struct { 98type Stat_t struct {
99 Dev uint64 99 Dev uint64
100 X__pad1 uint16 100 _ uint16
101 _ [2]byte 101 _ [2]byte
102 X__st_ino uint32 102 _ uint32
103 Mode uint32 103 Mode uint32
104 Nlink uint32 104 Nlink uint32
105 Uid uint32 105 Uid uint32
106 Gid uint32 106 Gid uint32
107 Rdev uint64 107 Rdev uint64
108 X__pad2 uint16 108 _ uint16
109 _ [2]byte 109 _ [2]byte
110 Size int64 110 Size int64
111 Blksize int32 111 Blksize int32
112 Blocks int64 112 Blocks int64
113 Atim Timespec 113 Atim Timespec
114 Mtim Timespec 114 Mtim Timespec
115 Ctim Timespec 115 Ctim Timespec
116 Ino uint64 116 Ino uint64
117}
118
119type Statfs_t struct {
120 Type int32
121 Bsize int32
122 Blocks uint64
123 Bfree uint64
124 Bavail uint64
125 Files uint64
126 Ffree uint64
127 Fsid Fsid
128 Namelen int32
129 Frsize int32
130 Flags int32
131 Spare [4]int32
132} 117}
133 118
134type StatxTimestamp struct { 119type StatxTimestamp struct {
135 Sec int64 120 Sec int64
136 Nsec uint32 121 Nsec uint32
137 X__reserved int32 122 _ int32
138} 123}
139 124
140type Statx_t struct { 125type Statx_t struct {
@@ -171,7 +156,7 @@ type Dirent struct {
171} 156}
172 157
173type Fsid struct { 158type Fsid struct {
174 X__val [2]int32 159 Val [2]int32
175} 160}
176 161
177type Flock_t struct { 162type Flock_t struct {
@@ -263,6 +248,13 @@ type RawSockaddrL2 struct {
263 _ [1]byte 248 _ [1]byte
264} 249}
265 250
251type RawSockaddrRFCOMM struct {
252 Family uint16
253 Bdaddr [6]uint8
254 Channel uint8
255 _ [1]byte
256}
257
266type RawSockaddrCAN struct { 258type RawSockaddrCAN struct {
267 Family uint16 259 Family uint16
268 _ [2]byte 260 _ [2]byte
@@ -286,6 +278,14 @@ type RawSockaddrVM struct {
286 Zero [4]uint8 278 Zero [4]uint8
287} 279}
288 280
281type RawSockaddrXDP struct {
282 Family uint16
283 Flags uint16
284 Ifindex uint32
285 Queue_id uint32
286 Shared_umem_fd uint32
287}
288
289type RawSockaddr struct { 289type RawSockaddr struct {
290 Family uint16 290 Family uint16
291 Data [14]int8 291 Data [14]int8
@@ -416,9 +416,11 @@ const (
416 SizeofSockaddrNetlink = 0xc 416 SizeofSockaddrNetlink = 0xc
417 SizeofSockaddrHCI = 0x6 417 SizeofSockaddrHCI = 0x6
418 SizeofSockaddrL2 = 0xe 418 SizeofSockaddrL2 = 0xe
419 SizeofSockaddrRFCOMM = 0xa
419 SizeofSockaddrCAN = 0x10 420 SizeofSockaddrCAN = 0x10
420 SizeofSockaddrALG = 0x58 421 SizeofSockaddrALG = 0x58
421 SizeofSockaddrVM = 0x10 422 SizeofSockaddrVM = 0x10
423 SizeofSockaddrXDP = 0x10
422 SizeofLinger = 0x8 424 SizeofLinger = 0x8
423 SizeofIovec = 0x8 425 SizeofIovec = 0x8
424 SizeofIPMreq = 0x8 426 SizeofIPMreq = 0x8
@@ -436,97 +438,138 @@ const (
436) 438)
437 439
438const ( 440const (
439 IFA_UNSPEC = 0x0 441 IFA_UNSPEC = 0x0
440 IFA_ADDRESS = 0x1 442 IFA_ADDRESS = 0x1
441 IFA_LOCAL = 0x2 443 IFA_LOCAL = 0x2
442 IFA_LABEL = 0x3 444 IFA_LABEL = 0x3
443 IFA_BROADCAST = 0x4 445 IFA_BROADCAST = 0x4
444 IFA_ANYCAST = 0x5 446 IFA_ANYCAST = 0x5
445 IFA_CACHEINFO = 0x6 447 IFA_CACHEINFO = 0x6
446 IFA_MULTICAST = 0x7 448 IFA_MULTICAST = 0x7
447 IFLA_UNSPEC = 0x0 449 IFLA_UNSPEC = 0x0
448 IFLA_ADDRESS = 0x1 450 IFLA_ADDRESS = 0x1
449 IFLA_BROADCAST = 0x2 451 IFLA_BROADCAST = 0x2
450 IFLA_IFNAME = 0x3 452 IFLA_IFNAME = 0x3
451 IFLA_MTU = 0x4 453 IFLA_INFO_KIND = 0x1
452 IFLA_LINK = 0x5 454 IFLA_MTU = 0x4
453 IFLA_QDISC = 0x6 455 IFLA_LINK = 0x5
454 IFLA_STATS = 0x7 456 IFLA_QDISC = 0x6
455 IFLA_COST = 0x8 457 IFLA_STATS = 0x7
456 IFLA_PRIORITY = 0x9 458 IFLA_COST = 0x8
457 IFLA_MASTER = 0xa 459 IFLA_PRIORITY = 0x9
458 IFLA_WIRELESS = 0xb 460 IFLA_MASTER = 0xa
459 IFLA_PROTINFO = 0xc 461 IFLA_WIRELESS = 0xb
460 IFLA_TXQLEN = 0xd 462 IFLA_PROTINFO = 0xc
461 IFLA_MAP = 0xe 463 IFLA_TXQLEN = 0xd
462 IFLA_WEIGHT = 0xf 464 IFLA_MAP = 0xe
463 IFLA_OPERSTATE = 0x10 465 IFLA_WEIGHT = 0xf
464 IFLA_LINKMODE = 0x11 466 IFLA_OPERSTATE = 0x10
465 IFLA_LINKINFO = 0x12 467 IFLA_LINKMODE = 0x11
466 IFLA_NET_NS_PID = 0x13 468 IFLA_LINKINFO = 0x12
467 IFLA_IFALIAS = 0x14 469 IFLA_NET_NS_PID = 0x13
468 IFLA_MAX = 0x2c 470 IFLA_IFALIAS = 0x14
469 RT_SCOPE_UNIVERSE = 0x0 471 IFLA_NUM_VF = 0x15
470 RT_SCOPE_SITE = 0xc8 472 IFLA_VFINFO_LIST = 0x16
471 RT_SCOPE_LINK = 0xfd 473 IFLA_STATS64 = 0x17
472 RT_SCOPE_HOST = 0xfe 474 IFLA_VF_PORTS = 0x18
473 RT_SCOPE_NOWHERE = 0xff 475 IFLA_PORT_SELF = 0x19
474 RT_TABLE_UNSPEC = 0x0 476 IFLA_AF_SPEC = 0x1a
475 RT_TABLE_COMPAT = 0xfc 477 IFLA_GROUP = 0x1b
476 RT_TABLE_DEFAULT = 0xfd 478 IFLA_NET_NS_FD = 0x1c
477 RT_TABLE_MAIN = 0xfe 479 IFLA_EXT_MASK = 0x1d
478 RT_TABLE_LOCAL = 0xff 480 IFLA_PROMISCUITY = 0x1e
479 RT_TABLE_MAX = 0xffffffff 481 IFLA_NUM_TX_QUEUES = 0x1f
480 RTA_UNSPEC = 0x0 482 IFLA_NUM_RX_QUEUES = 0x20
481 RTA_DST = 0x1 483 IFLA_CARRIER = 0x21
482 RTA_SRC = 0x2 484 IFLA_PHYS_PORT_ID = 0x22
483 RTA_IIF = 0x3 485 IFLA_CARRIER_CHANGES = 0x23
484 RTA_OIF = 0x4 486 IFLA_PHYS_SWITCH_ID = 0x24
485 RTA_GATEWAY = 0x5 487 IFLA_LINK_NETNSID = 0x25
486 RTA_PRIORITY = 0x6 488 IFLA_PHYS_PORT_NAME = 0x26
487 RTA_PREFSRC = 0x7 489 IFLA_PROTO_DOWN = 0x27
488 RTA_METRICS = 0x8 490 IFLA_GSO_MAX_SEGS = 0x28
489 RTA_MULTIPATH = 0x9 491 IFLA_GSO_MAX_SIZE = 0x29
490 RTA_FLOW = 0xb 492 IFLA_PAD = 0x2a
491 RTA_CACHEINFO = 0xc 493 IFLA_XDP = 0x2b
492 RTA_TABLE = 0xf 494 IFLA_EVENT = 0x2c
493 RTN_UNSPEC = 0x0 495 IFLA_NEW_NETNSID = 0x2d
494 RTN_UNICAST = 0x1 496 IFLA_IF_NETNSID = 0x2e
495 RTN_LOCAL = 0x2 497 IFLA_MAX = 0x31
496 RTN_BROADCAST = 0x3 498 RT_SCOPE_UNIVERSE = 0x0
497 RTN_ANYCAST = 0x4 499 RT_SCOPE_SITE = 0xc8
498 RTN_MULTICAST = 0x5 500 RT_SCOPE_LINK = 0xfd
499 RTN_BLACKHOLE = 0x6 501 RT_SCOPE_HOST = 0xfe
500 RTN_UNREACHABLE = 0x7 502 RT_SCOPE_NOWHERE = 0xff
501 RTN_PROHIBIT = 0x8 503 RT_TABLE_UNSPEC = 0x0
502 RTN_THROW = 0x9 504 RT_TABLE_COMPAT = 0xfc
503 RTN_NAT = 0xa 505 RT_TABLE_DEFAULT = 0xfd
504 RTN_XRESOLVE = 0xb 506 RT_TABLE_MAIN = 0xfe
505 RTNLGRP_NONE = 0x0 507 RT_TABLE_LOCAL = 0xff
506 RTNLGRP_LINK = 0x1 508 RT_TABLE_MAX = 0xffffffff
507 RTNLGRP_NOTIFY = 0x2 509 RTA_UNSPEC = 0x0
508 RTNLGRP_NEIGH = 0x3 510 RTA_DST = 0x1
509 RTNLGRP_TC = 0x4 511 RTA_SRC = 0x2
510 RTNLGRP_IPV4_IFADDR = 0x5 512 RTA_IIF = 0x3
511 RTNLGRP_IPV4_MROUTE = 0x6 513 RTA_OIF = 0x4
512 RTNLGRP_IPV4_ROUTE = 0x7 514 RTA_GATEWAY = 0x5
513 RTNLGRP_IPV4_RULE = 0x8 515 RTA_PRIORITY = 0x6
514 RTNLGRP_IPV6_IFADDR = 0x9 516 RTA_PREFSRC = 0x7
515 RTNLGRP_IPV6_MROUTE = 0xa 517 RTA_METRICS = 0x8
516 RTNLGRP_IPV6_ROUTE = 0xb 518 RTA_MULTIPATH = 0x9
517 RTNLGRP_IPV6_IFINFO = 0xc 519 RTA_FLOW = 0xb
518 RTNLGRP_IPV6_PREFIX = 0x12 520 RTA_CACHEINFO = 0xc
519 RTNLGRP_IPV6_RULE = 0x13 521 RTA_TABLE = 0xf
520 RTNLGRP_ND_USEROPT = 0x14 522 RTA_MARK = 0x10
521 SizeofNlMsghdr = 0x10 523 RTA_MFC_STATS = 0x11
522 SizeofNlMsgerr = 0x14 524 RTA_VIA = 0x12
523 SizeofRtGenmsg = 0x1 525 RTA_NEWDST = 0x13
524 SizeofNlAttr = 0x4 526 RTA_PREF = 0x14
525 SizeofRtAttr = 0x4 527 RTA_ENCAP_TYPE = 0x15
526 SizeofIfInfomsg = 0x10 528 RTA_ENCAP = 0x16
527 SizeofIfAddrmsg = 0x8 529 RTA_EXPIRES = 0x17
528 SizeofRtMsg = 0xc 530 RTA_PAD = 0x18
529 SizeofRtNexthop = 0x8 531 RTA_UID = 0x19
532 RTA_TTL_PROPAGATE = 0x1a
533 RTA_IP_PROTO = 0x1b
534 RTA_SPORT = 0x1c
535 RTA_DPORT = 0x1d
536 RTN_UNSPEC = 0x0
537 RTN_UNICAST = 0x1
538 RTN_LOCAL = 0x2
539 RTN_BROADCAST = 0x3
540 RTN_ANYCAST = 0x4
541 RTN_MULTICAST = 0x5
542 RTN_BLACKHOLE = 0x6
543 RTN_UNREACHABLE = 0x7
544 RTN_PROHIBIT = 0x8
545 RTN_THROW = 0x9
546 RTN_NAT = 0xa
547 RTN_XRESOLVE = 0xb
548 RTNLGRP_NONE = 0x0
549 RTNLGRP_LINK = 0x1
550 RTNLGRP_NOTIFY = 0x2
551 RTNLGRP_NEIGH = 0x3
552 RTNLGRP_TC = 0x4
553 RTNLGRP_IPV4_IFADDR = 0x5
554 RTNLGRP_IPV4_MROUTE = 0x6
555 RTNLGRP_IPV4_ROUTE = 0x7
556 RTNLGRP_IPV4_RULE = 0x8
557 RTNLGRP_IPV6_IFADDR = 0x9
558 RTNLGRP_IPV6_MROUTE = 0xa
559 RTNLGRP_IPV6_ROUTE = 0xb
560 RTNLGRP_IPV6_IFINFO = 0xc
561 RTNLGRP_IPV6_PREFIX = 0x12
562 RTNLGRP_IPV6_RULE = 0x13
563 RTNLGRP_ND_USEROPT = 0x14
564 SizeofNlMsghdr = 0x10
565 SizeofNlMsgerr = 0x14
566 SizeofRtGenmsg = 0x1
567 SizeofNlAttr = 0x4
568 SizeofRtAttr = 0x4
569 SizeofIfInfomsg = 0x10
570 SizeofIfAddrmsg = 0x8
571 SizeofRtMsg = 0xc
572 SizeofRtNexthop = 0x8
530) 573)
531 574
532type NlMsghdr struct { 575type NlMsghdr struct {
@@ -557,12 +600,12 @@ type RtAttr struct {
557} 600}
558 601
559type IfInfomsg struct { 602type IfInfomsg struct {
560 Family uint8 603 Family uint8
561 X__ifi_pad uint8 604 _ uint8
562 Type uint16 605 Type uint16
563 Index int32 606 Index int32
564 Flags uint32 607 Flags uint32
565 Change uint32 608 Change uint32
566} 609}
567 610
568type IfAddrmsg struct { 611type IfAddrmsg struct {
@@ -657,7 +700,7 @@ type Sysinfo_t struct {
657 Totalhigh uint32 700 Totalhigh uint32
658 Freehigh uint32 701 Freehigh uint32
659 Unit uint32 702 Unit uint32
660 X_f [8]int8 703 _ [8]int8
661} 704}
662 705
663type Utsname struct { 706type Utsname struct {
@@ -694,6 +737,8 @@ const (
694 737
695 AT_SYMLINK_FOLLOW = 0x400 738 AT_SYMLINK_FOLLOW = 0x400
696 AT_SYMLINK_NOFOLLOW = 0x100 739 AT_SYMLINK_NOFOLLOW = 0x100
740
741 AT_EACCESS = 0x200
697) 742)
698 743
699type PollFd struct { 744type PollFd struct {
@@ -713,7 +758,7 @@ const (
713) 758)
714 759
715type Sigset_t struct { 760type Sigset_t struct {
716 X__val [32]uint32 761 Val [32]uint32
717} 762}
718 763
719const RNDGETENTCNT = 0x80045200 764const RNDGETENTCNT = 0x80045200
@@ -869,3 +914,1054 @@ const (
869 BDADDR_LE_PUBLIC = 0x1 914 BDADDR_LE_PUBLIC = 0x1
870 BDADDR_LE_RANDOM = 0x2 915 BDADDR_LE_RANDOM = 0x2
871) 916)
917
918type PerfEventAttr struct {
919 Type uint32
920 Size uint32
921 Config uint64
922 Sample uint64
923 Sample_type uint64
924 Read_format uint64
925 Bits uint64
926 Wakeup uint32
927 Bp_type uint32
928 Ext1 uint64
929 Ext2 uint64
930 Branch_sample_type uint64
931 Sample_regs_user uint64
932 Sample_stack_user uint32
933 Clockid int32
934 Sample_regs_intr uint64
935 Aux_watermark uint32
936 _ uint32
937}
938
939type PerfEventMmapPage struct {
940 Version uint32
941 Compat_version uint32
942 Lock uint32
943 Index uint32
944 Offset int64
945 Time_enabled uint64
946 Time_running uint64
947 Capabilities uint64
948 Pmc_width uint16
949 Time_shift uint16
950 Time_mult uint32
951 Time_offset uint64
952 Time_zero uint64
953 Size uint32
954 _ [948]uint8
955 Data_head uint64
956 Data_tail uint64
957 Data_offset uint64
958 Data_size uint64
959 Aux_head uint64
960 Aux_tail uint64
961 Aux_offset uint64
962 Aux_size uint64
963}
964
965const (
966 PerfBitDisabled uint64 = CBitFieldMaskBit0
967 PerfBitInherit = CBitFieldMaskBit1
968 PerfBitPinned = CBitFieldMaskBit2
969 PerfBitExclusive = CBitFieldMaskBit3
970 PerfBitExcludeUser = CBitFieldMaskBit4
971 PerfBitExcludeKernel = CBitFieldMaskBit5
972 PerfBitExcludeHv = CBitFieldMaskBit6
973 PerfBitExcludeIdle = CBitFieldMaskBit7
974 PerfBitMmap = CBitFieldMaskBit8
975 PerfBitComm = CBitFieldMaskBit9
976 PerfBitFreq = CBitFieldMaskBit10
977 PerfBitInheritStat = CBitFieldMaskBit11
978 PerfBitEnableOnExec = CBitFieldMaskBit12
979 PerfBitTask = CBitFieldMaskBit13
980 PerfBitWatermark = CBitFieldMaskBit14
981 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
982 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
983 PerfBitMmapData = CBitFieldMaskBit17
984 PerfBitSampleIDAll = CBitFieldMaskBit18
985 PerfBitExcludeHost = CBitFieldMaskBit19
986 PerfBitExcludeGuest = CBitFieldMaskBit20
987 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
988 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
989 PerfBitMmap2 = CBitFieldMaskBit23
990 PerfBitCommExec = CBitFieldMaskBit24
991 PerfBitUseClockID = CBitFieldMaskBit25
992 PerfBitContextSwitch = CBitFieldMaskBit26
993)
994
995const (
996 PERF_TYPE_HARDWARE = 0x0
997 PERF_TYPE_SOFTWARE = 0x1
998 PERF_TYPE_TRACEPOINT = 0x2
999 PERF_TYPE_HW_CACHE = 0x3
1000 PERF_TYPE_RAW = 0x4
1001 PERF_TYPE_BREAKPOINT = 0x5
1002
1003 PERF_COUNT_HW_CPU_CYCLES = 0x0
1004 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1005 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1006 PERF_COUNT_HW_CACHE_MISSES = 0x3
1007 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1008 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1009 PERF_COUNT_HW_BUS_CYCLES = 0x6
1010 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1011 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1012 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1013
1014 PERF_COUNT_HW_CACHE_L1D = 0x0
1015 PERF_COUNT_HW_CACHE_L1I = 0x1
1016 PERF_COUNT_HW_CACHE_LL = 0x2
1017 PERF_COUNT_HW_CACHE_DTLB = 0x3
1018 PERF_COUNT_HW_CACHE_ITLB = 0x4
1019 PERF_COUNT_HW_CACHE_BPU = 0x5
1020 PERF_COUNT_HW_CACHE_NODE = 0x6
1021
1022 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1023 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1024 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1025
1026 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1027 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1028
1029 PERF_COUNT_SW_CPU_CLOCK = 0x0
1030 PERF_COUNT_SW_TASK_CLOCK = 0x1
1031 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1032 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1033 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1034 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1035 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1036 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1037 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1038 PERF_COUNT_SW_DUMMY = 0x9
1039
1040 PERF_SAMPLE_IP = 0x1
1041 PERF_SAMPLE_TID = 0x2
1042 PERF_SAMPLE_TIME = 0x4
1043 PERF_SAMPLE_ADDR = 0x8
1044 PERF_SAMPLE_READ = 0x10
1045 PERF_SAMPLE_CALLCHAIN = 0x20
1046 PERF_SAMPLE_ID = 0x40
1047 PERF_SAMPLE_CPU = 0x80
1048 PERF_SAMPLE_PERIOD = 0x100
1049 PERF_SAMPLE_STREAM_ID = 0x200
1050 PERF_SAMPLE_RAW = 0x400
1051 PERF_SAMPLE_BRANCH_STACK = 0x800
1052
1053 PERF_SAMPLE_BRANCH_USER = 0x1
1054 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1055 PERF_SAMPLE_BRANCH_HV = 0x4
1056 PERF_SAMPLE_BRANCH_ANY = 0x8
1057 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1058 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1059 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1060
1061 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1062 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1063 PERF_FORMAT_ID = 0x4
1064 PERF_FORMAT_GROUP = 0x8
1065
1066 PERF_RECORD_MMAP = 0x1
1067 PERF_RECORD_LOST = 0x2
1068 PERF_RECORD_COMM = 0x3
1069 PERF_RECORD_EXIT = 0x4
1070 PERF_RECORD_THROTTLE = 0x5
1071 PERF_RECORD_UNTHROTTLE = 0x6
1072 PERF_RECORD_FORK = 0x7
1073 PERF_RECORD_READ = 0x8
1074 PERF_RECORD_SAMPLE = 0x9
1075
1076 PERF_CONTEXT_HV = -0x20
1077 PERF_CONTEXT_KERNEL = -0x80
1078 PERF_CONTEXT_USER = -0x200
1079
1080 PERF_CONTEXT_GUEST = -0x800
1081 PERF_CONTEXT_GUEST_KERNEL = -0x880
1082 PERF_CONTEXT_GUEST_USER = -0xa00
1083
1084 PERF_FLAG_FD_NO_GROUP = 0x1
1085 PERF_FLAG_FD_OUTPUT = 0x2
1086 PERF_FLAG_PID_CGROUP = 0x4
1087)
1088
1089const (
1090 CBitFieldMaskBit0 = 0x1
1091 CBitFieldMaskBit1 = 0x2
1092 CBitFieldMaskBit2 = 0x4
1093 CBitFieldMaskBit3 = 0x8
1094 CBitFieldMaskBit4 = 0x10
1095 CBitFieldMaskBit5 = 0x20
1096 CBitFieldMaskBit6 = 0x40
1097 CBitFieldMaskBit7 = 0x80
1098 CBitFieldMaskBit8 = 0x100
1099 CBitFieldMaskBit9 = 0x200
1100 CBitFieldMaskBit10 = 0x400
1101 CBitFieldMaskBit11 = 0x800
1102 CBitFieldMaskBit12 = 0x1000
1103 CBitFieldMaskBit13 = 0x2000
1104 CBitFieldMaskBit14 = 0x4000
1105 CBitFieldMaskBit15 = 0x8000
1106 CBitFieldMaskBit16 = 0x10000
1107 CBitFieldMaskBit17 = 0x20000
1108 CBitFieldMaskBit18 = 0x40000
1109 CBitFieldMaskBit19 = 0x80000
1110 CBitFieldMaskBit20 = 0x100000
1111 CBitFieldMaskBit21 = 0x200000
1112 CBitFieldMaskBit22 = 0x400000
1113 CBitFieldMaskBit23 = 0x800000
1114 CBitFieldMaskBit24 = 0x1000000
1115 CBitFieldMaskBit25 = 0x2000000
1116 CBitFieldMaskBit26 = 0x4000000
1117 CBitFieldMaskBit27 = 0x8000000
1118 CBitFieldMaskBit28 = 0x10000000
1119 CBitFieldMaskBit29 = 0x20000000
1120 CBitFieldMaskBit30 = 0x40000000
1121 CBitFieldMaskBit31 = 0x80000000
1122 CBitFieldMaskBit32 = 0x100000000
1123 CBitFieldMaskBit33 = 0x200000000
1124 CBitFieldMaskBit34 = 0x400000000
1125 CBitFieldMaskBit35 = 0x800000000
1126 CBitFieldMaskBit36 = 0x1000000000
1127 CBitFieldMaskBit37 = 0x2000000000
1128 CBitFieldMaskBit38 = 0x4000000000
1129 CBitFieldMaskBit39 = 0x8000000000
1130 CBitFieldMaskBit40 = 0x10000000000
1131 CBitFieldMaskBit41 = 0x20000000000
1132 CBitFieldMaskBit42 = 0x40000000000
1133 CBitFieldMaskBit43 = 0x80000000000
1134 CBitFieldMaskBit44 = 0x100000000000
1135 CBitFieldMaskBit45 = 0x200000000000
1136 CBitFieldMaskBit46 = 0x400000000000
1137 CBitFieldMaskBit47 = 0x800000000000
1138 CBitFieldMaskBit48 = 0x1000000000000
1139 CBitFieldMaskBit49 = 0x2000000000000
1140 CBitFieldMaskBit50 = 0x4000000000000
1141 CBitFieldMaskBit51 = 0x8000000000000
1142 CBitFieldMaskBit52 = 0x10000000000000
1143 CBitFieldMaskBit53 = 0x20000000000000
1144 CBitFieldMaskBit54 = 0x40000000000000
1145 CBitFieldMaskBit55 = 0x80000000000000
1146 CBitFieldMaskBit56 = 0x100000000000000
1147 CBitFieldMaskBit57 = 0x200000000000000
1148 CBitFieldMaskBit58 = 0x400000000000000
1149 CBitFieldMaskBit59 = 0x800000000000000
1150 CBitFieldMaskBit60 = 0x1000000000000000
1151 CBitFieldMaskBit61 = 0x2000000000000000
1152 CBitFieldMaskBit62 = 0x4000000000000000
1153 CBitFieldMaskBit63 = 0x8000000000000000
1154)
1155
1156type SockaddrStorage struct {
1157 Family uint16
1158 _ [122]int8
1159 _ uint32
1160}
1161
1162type TCPMD5Sig struct {
1163 Addr SockaddrStorage
1164 Flags uint8
1165 Prefixlen uint8
1166 Keylen uint16
1167 _ uint32
1168 Key [80]uint8
1169}
1170
1171type HDDriveCmdHdr struct {
1172 Command uint8
1173 Number uint8
1174 Feature uint8
1175 Count uint8
1176}
1177
1178type HDGeometry struct {
1179 Heads uint8
1180 Sectors uint8
1181 Cylinders uint16
1182 Start uint32
1183}
1184
1185type HDDriveID struct {
1186 Config uint16
1187 Cyls uint16
1188 Reserved2 uint16
1189 Heads uint16
1190 Track_bytes uint16
1191 Sector_bytes uint16
1192 Sectors uint16
1193 Vendor0 uint16
1194 Vendor1 uint16
1195 Vendor2 uint16
1196 Serial_no [20]uint8
1197 Buf_type uint16
1198 Buf_size uint16
1199 Ecc_bytes uint16
1200 Fw_rev [8]uint8
1201 Model [40]uint8
1202 Max_multsect uint8
1203 Vendor3 uint8
1204 Dword_io uint16
1205 Vendor4 uint8
1206 Capability uint8
1207 Reserved50 uint16
1208 Vendor5 uint8
1209 TPIO uint8
1210 Vendor6 uint8
1211 TDMA uint8
1212 Field_valid uint16
1213 Cur_cyls uint16
1214 Cur_heads uint16
1215 Cur_sectors uint16
1216 Cur_capacity0 uint16
1217 Cur_capacity1 uint16
1218 Multsect uint8
1219 Multsect_valid uint8
1220 Lba_capacity uint32
1221 Dma_1word uint16
1222 Dma_mword uint16
1223 Eide_pio_modes uint16
1224 Eide_dma_min uint16
1225 Eide_dma_time uint16
1226 Eide_pio uint16
1227 Eide_pio_iordy uint16
1228 Words69_70 [2]uint16
1229 Words71_74 [4]uint16
1230 Queue_depth uint16
1231 Words76_79 [4]uint16
1232 Major_rev_num uint16
1233 Minor_rev_num uint16
1234 Command_set_1 uint16
1235 Command_set_2 uint16
1236 Cfsse uint16
1237 Cfs_enable_1 uint16
1238 Cfs_enable_2 uint16
1239 Csf_default uint16
1240 Dma_ultra uint16
1241 Trseuc uint16
1242 TrsEuc uint16
1243 CurAPMvalues uint16
1244 Mprc uint16
1245 Hw_config uint16
1246 Acoustic uint16
1247 Msrqs uint16
1248 Sxfert uint16
1249 Sal uint16
1250 Spg uint32
1251 Lba_capacity_2 uint64
1252 Words104_125 [22]uint16
1253 Last_lun uint16
1254 Word127 uint16
1255 Dlf uint16
1256 Csfo uint16
1257 Words130_155 [26]uint16
1258 Word156 uint16
1259 Words157_159 [3]uint16
1260 Cfa_power uint16
1261 Words161_175 [15]uint16
1262 Words176_205 [30]uint16
1263 Words206_254 [49]uint16
1264 Integrity_word uint16
1265}
1266
1267type Statfs_t struct {
1268 Type int32
1269 Bsize int32
1270 Blocks uint64
1271 Bfree uint64
1272 Bavail uint64
1273 Files uint64
1274 Ffree uint64
1275 Fsid Fsid
1276 Namelen int32
1277 Frsize int32
1278 Flags int32
1279 Spare [4]int32
1280}
1281
1282const (
1283 ST_MANDLOCK = 0x40
1284 ST_NOATIME = 0x400
1285 ST_NODEV = 0x4
1286 ST_NODIRATIME = 0x800
1287 ST_NOEXEC = 0x8
1288 ST_NOSUID = 0x2
1289 ST_RDONLY = 0x1
1290 ST_RELATIME = 0x1000
1291 ST_SYNCHRONOUS = 0x10
1292)
1293
1294type TpacketHdr struct {
1295 Status uint32
1296 Len uint32
1297 Snaplen uint32
1298 Mac uint16
1299 Net uint16
1300 Sec uint32
1301 Usec uint32
1302}
1303
1304type Tpacket2Hdr struct {
1305 Status uint32
1306 Len uint32
1307 Snaplen uint32
1308 Mac uint16
1309 Net uint16
1310 Sec uint32
1311 Nsec uint32
1312 Vlan_tci uint16
1313 Vlan_tpid uint16
1314 _ [4]uint8
1315}
1316
1317type Tpacket3Hdr struct {
1318 Next_offset uint32
1319 Sec uint32
1320 Nsec uint32
1321 Snaplen uint32
1322 Len uint32
1323 Status uint32
1324 Mac uint16
1325 Net uint16
1326 Hv1 TpacketHdrVariant1
1327 _ [8]uint8
1328}
1329
1330type TpacketHdrVariant1 struct {
1331 Rxhash uint32
1332 Vlan_tci uint32
1333 Vlan_tpid uint16
1334 _ uint16
1335}
1336
1337type TpacketBlockDesc struct {
1338 Version uint32
1339 To_priv uint32
1340 Hdr [40]byte
1341}
1342
1343type TpacketReq struct {
1344 Block_size uint32
1345 Block_nr uint32
1346 Frame_size uint32
1347 Frame_nr uint32
1348}
1349
1350type TpacketReq3 struct {
1351 Block_size uint32
1352 Block_nr uint32
1353 Frame_size uint32
1354 Frame_nr uint32
1355 Retire_blk_tov uint32
1356 Sizeof_priv uint32
1357 Feature_req_word uint32
1358}
1359
1360type TpacketStats struct {
1361 Packets uint32
1362 Drops uint32
1363}
1364
1365type TpacketStatsV3 struct {
1366 Packets uint32
1367 Drops uint32
1368 Freeze_q_cnt uint32
1369}
1370
1371type TpacketAuxdata struct {
1372 Status uint32
1373 Len uint32
1374 Snaplen uint32
1375 Mac uint16
1376 Net uint16
1377 Vlan_tci uint16
1378 Vlan_tpid uint16
1379}
1380
1381const (
1382 TPACKET_V1 = 0x0
1383 TPACKET_V2 = 0x1
1384 TPACKET_V3 = 0x2
1385)
1386
1387const (
1388 SizeofTpacketHdr = 0x18
1389 SizeofTpacket2Hdr = 0x20
1390 SizeofTpacket3Hdr = 0x30
1391)
1392
1393const (
1394 NF_INET_PRE_ROUTING = 0x0
1395 NF_INET_LOCAL_IN = 0x1
1396 NF_INET_FORWARD = 0x2
1397 NF_INET_LOCAL_OUT = 0x3
1398 NF_INET_POST_ROUTING = 0x4
1399 NF_INET_NUMHOOKS = 0x5
1400)
1401
1402const (
1403 NF_NETDEV_INGRESS = 0x0
1404 NF_NETDEV_NUMHOOKS = 0x1
1405)
1406
1407const (
1408 NFPROTO_UNSPEC = 0x0
1409 NFPROTO_INET = 0x1
1410 NFPROTO_IPV4 = 0x2
1411 NFPROTO_ARP = 0x3
1412 NFPROTO_NETDEV = 0x5
1413 NFPROTO_BRIDGE = 0x7
1414 NFPROTO_IPV6 = 0xa
1415 NFPROTO_DECNET = 0xc
1416 NFPROTO_NUMPROTO = 0xd
1417)
1418
1419type Nfgenmsg struct {
1420 Nfgen_family uint8
1421 Version uint8
1422 Res_id uint16
1423}
1424
1425const (
1426 NFNL_BATCH_UNSPEC = 0x0
1427 NFNL_BATCH_GENID = 0x1
1428)
1429
1430const (
1431 NFT_REG_VERDICT = 0x0
1432 NFT_REG_1 = 0x1
1433 NFT_REG_2 = 0x2
1434 NFT_REG_3 = 0x3
1435 NFT_REG_4 = 0x4
1436 NFT_REG32_00 = 0x8
1437 NFT_REG32_01 = 0x9
1438 NFT_REG32_02 = 0xa
1439 NFT_REG32_03 = 0xb
1440 NFT_REG32_04 = 0xc
1441 NFT_REG32_05 = 0xd
1442 NFT_REG32_06 = 0xe
1443 NFT_REG32_07 = 0xf
1444 NFT_REG32_08 = 0x10
1445 NFT_REG32_09 = 0x11
1446 NFT_REG32_10 = 0x12
1447 NFT_REG32_11 = 0x13
1448 NFT_REG32_12 = 0x14
1449 NFT_REG32_13 = 0x15
1450 NFT_REG32_14 = 0x16
1451 NFT_REG32_15 = 0x17
1452 NFT_CONTINUE = -0x1
1453 NFT_BREAK = -0x2
1454 NFT_JUMP = -0x3
1455 NFT_GOTO = -0x4
1456 NFT_RETURN = -0x5
1457 NFT_MSG_NEWTABLE = 0x0
1458 NFT_MSG_GETTABLE = 0x1
1459 NFT_MSG_DELTABLE = 0x2
1460 NFT_MSG_NEWCHAIN = 0x3
1461 NFT_MSG_GETCHAIN = 0x4
1462 NFT_MSG_DELCHAIN = 0x5
1463 NFT_MSG_NEWRULE = 0x6
1464 NFT_MSG_GETRULE = 0x7
1465 NFT_MSG_DELRULE = 0x8
1466 NFT_MSG_NEWSET = 0x9
1467 NFT_MSG_GETSET = 0xa
1468 NFT_MSG_DELSET = 0xb
1469 NFT_MSG_NEWSETELEM = 0xc
1470 NFT_MSG_GETSETELEM = 0xd
1471 NFT_MSG_DELSETELEM = 0xe
1472 NFT_MSG_NEWGEN = 0xf
1473 NFT_MSG_GETGEN = 0x10
1474 NFT_MSG_TRACE = 0x11
1475 NFT_MSG_NEWOBJ = 0x12
1476 NFT_MSG_GETOBJ = 0x13
1477 NFT_MSG_DELOBJ = 0x14
1478 NFT_MSG_GETOBJ_RESET = 0x15
1479 NFT_MSG_MAX = 0x19
1480 NFTA_LIST_UNPEC = 0x0
1481 NFTA_LIST_ELEM = 0x1
1482 NFTA_HOOK_UNSPEC = 0x0
1483 NFTA_HOOK_HOOKNUM = 0x1
1484 NFTA_HOOK_PRIORITY = 0x2
1485 NFTA_HOOK_DEV = 0x3
1486 NFT_TABLE_F_DORMANT = 0x1
1487 NFTA_TABLE_UNSPEC = 0x0
1488 NFTA_TABLE_NAME = 0x1
1489 NFTA_TABLE_FLAGS = 0x2
1490 NFTA_TABLE_USE = 0x3
1491 NFTA_CHAIN_UNSPEC = 0x0
1492 NFTA_CHAIN_TABLE = 0x1
1493 NFTA_CHAIN_HANDLE = 0x2
1494 NFTA_CHAIN_NAME = 0x3
1495 NFTA_CHAIN_HOOK = 0x4
1496 NFTA_CHAIN_POLICY = 0x5
1497 NFTA_CHAIN_USE = 0x6
1498 NFTA_CHAIN_TYPE = 0x7
1499 NFTA_CHAIN_COUNTERS = 0x8
1500 NFTA_CHAIN_PAD = 0x9
1501 NFTA_RULE_UNSPEC = 0x0
1502 NFTA_RULE_TABLE = 0x1
1503 NFTA_RULE_CHAIN = 0x2
1504 NFTA_RULE_HANDLE = 0x3
1505 NFTA_RULE_EXPRESSIONS = 0x4
1506 NFTA_RULE_COMPAT = 0x5
1507 NFTA_RULE_POSITION = 0x6
1508 NFTA_RULE_USERDATA = 0x7
1509 NFTA_RULE_PAD = 0x8
1510 NFTA_RULE_ID = 0x9
1511 NFT_RULE_COMPAT_F_INV = 0x2
1512 NFT_RULE_COMPAT_F_MASK = 0x2
1513 NFTA_RULE_COMPAT_UNSPEC = 0x0
1514 NFTA_RULE_COMPAT_PROTO = 0x1
1515 NFTA_RULE_COMPAT_FLAGS = 0x2
1516 NFT_SET_ANONYMOUS = 0x1
1517 NFT_SET_CONSTANT = 0x2
1518 NFT_SET_INTERVAL = 0x4
1519 NFT_SET_MAP = 0x8
1520 NFT_SET_TIMEOUT = 0x10
1521 NFT_SET_EVAL = 0x20
1522 NFT_SET_OBJECT = 0x40
1523 NFT_SET_POL_PERFORMANCE = 0x0
1524 NFT_SET_POL_MEMORY = 0x1
1525 NFTA_SET_DESC_UNSPEC = 0x0
1526 NFTA_SET_DESC_SIZE = 0x1
1527 NFTA_SET_UNSPEC = 0x0
1528 NFTA_SET_TABLE = 0x1
1529 NFTA_SET_NAME = 0x2
1530 NFTA_SET_FLAGS = 0x3
1531 NFTA_SET_KEY_TYPE = 0x4
1532 NFTA_SET_KEY_LEN = 0x5
1533 NFTA_SET_DATA_TYPE = 0x6
1534 NFTA_SET_DATA_LEN = 0x7
1535 NFTA_SET_POLICY = 0x8
1536 NFTA_SET_DESC = 0x9
1537 NFTA_SET_ID = 0xa
1538 NFTA_SET_TIMEOUT = 0xb
1539 NFTA_SET_GC_INTERVAL = 0xc
1540 NFTA_SET_USERDATA = 0xd
1541 NFTA_SET_PAD = 0xe
1542 NFTA_SET_OBJ_TYPE = 0xf
1543 NFT_SET_ELEM_INTERVAL_END = 0x1
1544 NFTA_SET_ELEM_UNSPEC = 0x0
1545 NFTA_SET_ELEM_KEY = 0x1
1546 NFTA_SET_ELEM_DATA = 0x2
1547 NFTA_SET_ELEM_FLAGS = 0x3
1548 NFTA_SET_ELEM_TIMEOUT = 0x4
1549 NFTA_SET_ELEM_EXPIRATION = 0x5
1550 NFTA_SET_ELEM_USERDATA = 0x6
1551 NFTA_SET_ELEM_EXPR = 0x7
1552 NFTA_SET_ELEM_PAD = 0x8
1553 NFTA_SET_ELEM_OBJREF = 0x9
1554 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1555 NFTA_SET_ELEM_LIST_TABLE = 0x1
1556 NFTA_SET_ELEM_LIST_SET = 0x2
1557 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1558 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1559 NFT_DATA_VALUE = 0x0
1560 NFT_DATA_VERDICT = 0xffffff00
1561 NFTA_DATA_UNSPEC = 0x0
1562 NFTA_DATA_VALUE = 0x1
1563 NFTA_DATA_VERDICT = 0x2
1564 NFTA_VERDICT_UNSPEC = 0x0
1565 NFTA_VERDICT_CODE = 0x1
1566 NFTA_VERDICT_CHAIN = 0x2
1567 NFTA_EXPR_UNSPEC = 0x0
1568 NFTA_EXPR_NAME = 0x1
1569 NFTA_EXPR_DATA = 0x2
1570 NFTA_IMMEDIATE_UNSPEC = 0x0
1571 NFTA_IMMEDIATE_DREG = 0x1
1572 NFTA_IMMEDIATE_DATA = 0x2
1573 NFTA_BITWISE_UNSPEC = 0x0
1574 NFTA_BITWISE_SREG = 0x1
1575 NFTA_BITWISE_DREG = 0x2
1576 NFTA_BITWISE_LEN = 0x3
1577 NFTA_BITWISE_MASK = 0x4
1578 NFTA_BITWISE_XOR = 0x5
1579 NFT_BYTEORDER_NTOH = 0x0
1580 NFT_BYTEORDER_HTON = 0x1
1581 NFTA_BYTEORDER_UNSPEC = 0x0
1582 NFTA_BYTEORDER_SREG = 0x1
1583 NFTA_BYTEORDER_DREG = 0x2
1584 NFTA_BYTEORDER_OP = 0x3
1585 NFTA_BYTEORDER_LEN = 0x4
1586 NFTA_BYTEORDER_SIZE = 0x5
1587 NFT_CMP_EQ = 0x0
1588 NFT_CMP_NEQ = 0x1
1589 NFT_CMP_LT = 0x2
1590 NFT_CMP_LTE = 0x3
1591 NFT_CMP_GT = 0x4
1592 NFT_CMP_GTE = 0x5
1593 NFTA_CMP_UNSPEC = 0x0
1594 NFTA_CMP_SREG = 0x1
1595 NFTA_CMP_OP = 0x2
1596 NFTA_CMP_DATA = 0x3
1597 NFT_RANGE_EQ = 0x0
1598 NFT_RANGE_NEQ = 0x1
1599 NFTA_RANGE_UNSPEC = 0x0
1600 NFTA_RANGE_SREG = 0x1
1601 NFTA_RANGE_OP = 0x2
1602 NFTA_RANGE_FROM_DATA = 0x3
1603 NFTA_RANGE_TO_DATA = 0x4
1604 NFT_LOOKUP_F_INV = 0x1
1605 NFTA_LOOKUP_UNSPEC = 0x0
1606 NFTA_LOOKUP_SET = 0x1
1607 NFTA_LOOKUP_SREG = 0x2
1608 NFTA_LOOKUP_DREG = 0x3
1609 NFTA_LOOKUP_SET_ID = 0x4
1610 NFTA_LOOKUP_FLAGS = 0x5
1611 NFT_DYNSET_OP_ADD = 0x0
1612 NFT_DYNSET_OP_UPDATE = 0x1
1613 NFT_DYNSET_F_INV = 0x1
1614 NFTA_DYNSET_UNSPEC = 0x0
1615 NFTA_DYNSET_SET_NAME = 0x1
1616 NFTA_DYNSET_SET_ID = 0x2
1617 NFTA_DYNSET_OP = 0x3
1618 NFTA_DYNSET_SREG_KEY = 0x4
1619 NFTA_DYNSET_SREG_DATA = 0x5
1620 NFTA_DYNSET_TIMEOUT = 0x6
1621 NFTA_DYNSET_EXPR = 0x7
1622 NFTA_DYNSET_PAD = 0x8
1623 NFTA_DYNSET_FLAGS = 0x9
1624 NFT_PAYLOAD_LL_HEADER = 0x0
1625 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1626 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1627 NFT_PAYLOAD_CSUM_NONE = 0x0
1628 NFT_PAYLOAD_CSUM_INET = 0x1
1629 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1630 NFTA_PAYLOAD_UNSPEC = 0x0
1631 NFTA_PAYLOAD_DREG = 0x1
1632 NFTA_PAYLOAD_BASE = 0x2
1633 NFTA_PAYLOAD_OFFSET = 0x3
1634 NFTA_PAYLOAD_LEN = 0x4
1635 NFTA_PAYLOAD_SREG = 0x5
1636 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1637 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1638 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1639 NFT_EXTHDR_F_PRESENT = 0x1
1640 NFT_EXTHDR_OP_IPV6 = 0x0
1641 NFT_EXTHDR_OP_TCPOPT = 0x1
1642 NFTA_EXTHDR_UNSPEC = 0x0
1643 NFTA_EXTHDR_DREG = 0x1
1644 NFTA_EXTHDR_TYPE = 0x2
1645 NFTA_EXTHDR_OFFSET = 0x3
1646 NFTA_EXTHDR_LEN = 0x4
1647 NFTA_EXTHDR_FLAGS = 0x5
1648 NFTA_EXTHDR_OP = 0x6
1649 NFTA_EXTHDR_SREG = 0x7
1650 NFT_META_LEN = 0x0
1651 NFT_META_PROTOCOL = 0x1
1652 NFT_META_PRIORITY = 0x2
1653 NFT_META_MARK = 0x3
1654 NFT_META_IIF = 0x4
1655 NFT_META_OIF = 0x5
1656 NFT_META_IIFNAME = 0x6
1657 NFT_META_OIFNAME = 0x7
1658 NFT_META_IIFTYPE = 0x8
1659 NFT_META_OIFTYPE = 0x9
1660 NFT_META_SKUID = 0xa
1661 NFT_META_SKGID = 0xb
1662 NFT_META_NFTRACE = 0xc
1663 NFT_META_RTCLASSID = 0xd
1664 NFT_META_SECMARK = 0xe
1665 NFT_META_NFPROTO = 0xf
1666 NFT_META_L4PROTO = 0x10
1667 NFT_META_BRI_IIFNAME = 0x11
1668 NFT_META_BRI_OIFNAME = 0x12
1669 NFT_META_PKTTYPE = 0x13
1670 NFT_META_CPU = 0x14
1671 NFT_META_IIFGROUP = 0x15
1672 NFT_META_OIFGROUP = 0x16
1673 NFT_META_CGROUP = 0x17
1674 NFT_META_PRANDOM = 0x18
1675 NFT_RT_CLASSID = 0x0
1676 NFT_RT_NEXTHOP4 = 0x1
1677 NFT_RT_NEXTHOP6 = 0x2
1678 NFT_RT_TCPMSS = 0x3
1679 NFT_HASH_JENKINS = 0x0
1680 NFT_HASH_SYM = 0x1
1681 NFTA_HASH_UNSPEC = 0x0
1682 NFTA_HASH_SREG = 0x1
1683 NFTA_HASH_DREG = 0x2
1684 NFTA_HASH_LEN = 0x3
1685 NFTA_HASH_MODULUS = 0x4
1686 NFTA_HASH_SEED = 0x5
1687 NFTA_HASH_OFFSET = 0x6
1688 NFTA_HASH_TYPE = 0x7
1689 NFTA_META_UNSPEC = 0x0
1690 NFTA_META_DREG = 0x1
1691 NFTA_META_KEY = 0x2
1692 NFTA_META_SREG = 0x3
1693 NFTA_RT_UNSPEC = 0x0
1694 NFTA_RT_DREG = 0x1
1695 NFTA_RT_KEY = 0x2
1696 NFT_CT_STATE = 0x0
1697 NFT_CT_DIRECTION = 0x1
1698 NFT_CT_STATUS = 0x2
1699 NFT_CT_MARK = 0x3
1700 NFT_CT_SECMARK = 0x4
1701 NFT_CT_EXPIRATION = 0x5
1702 NFT_CT_HELPER = 0x6
1703 NFT_CT_L3PROTOCOL = 0x7
1704 NFT_CT_SRC = 0x8
1705 NFT_CT_DST = 0x9
1706 NFT_CT_PROTOCOL = 0xa
1707 NFT_CT_PROTO_SRC = 0xb
1708 NFT_CT_PROTO_DST = 0xc
1709 NFT_CT_LABELS = 0xd
1710 NFT_CT_PKTS = 0xe
1711 NFT_CT_BYTES = 0xf
1712 NFT_CT_AVGPKT = 0x10
1713 NFT_CT_ZONE = 0x11
1714 NFT_CT_EVENTMASK = 0x12
1715 NFTA_CT_UNSPEC = 0x0
1716 NFTA_CT_DREG = 0x1
1717 NFTA_CT_KEY = 0x2
1718 NFTA_CT_DIRECTION = 0x3
1719 NFTA_CT_SREG = 0x4
1720 NFT_LIMIT_PKTS = 0x0
1721 NFT_LIMIT_PKT_BYTES = 0x1
1722 NFT_LIMIT_F_INV = 0x1
1723 NFTA_LIMIT_UNSPEC = 0x0
1724 NFTA_LIMIT_RATE = 0x1
1725 NFTA_LIMIT_UNIT = 0x2
1726 NFTA_LIMIT_BURST = 0x3
1727 NFTA_LIMIT_TYPE = 0x4
1728 NFTA_LIMIT_FLAGS = 0x5
1729 NFTA_LIMIT_PAD = 0x6
1730 NFTA_COUNTER_UNSPEC = 0x0
1731 NFTA_COUNTER_BYTES = 0x1
1732 NFTA_COUNTER_PACKETS = 0x2
1733 NFTA_COUNTER_PAD = 0x3
1734 NFTA_LOG_UNSPEC = 0x0
1735 NFTA_LOG_GROUP = 0x1
1736 NFTA_LOG_PREFIX = 0x2
1737 NFTA_LOG_SNAPLEN = 0x3
1738 NFTA_LOG_QTHRESHOLD = 0x4
1739 NFTA_LOG_LEVEL = 0x5
1740 NFTA_LOG_FLAGS = 0x6
1741 NFTA_QUEUE_UNSPEC = 0x0
1742 NFTA_QUEUE_NUM = 0x1
1743 NFTA_QUEUE_TOTAL = 0x2
1744 NFTA_QUEUE_FLAGS = 0x3
1745 NFTA_QUEUE_SREG_QNUM = 0x4
1746 NFT_QUOTA_F_INV = 0x1
1747 NFT_QUOTA_F_DEPLETED = 0x2
1748 NFTA_QUOTA_UNSPEC = 0x0
1749 NFTA_QUOTA_BYTES = 0x1
1750 NFTA_QUOTA_FLAGS = 0x2
1751 NFTA_QUOTA_PAD = 0x3
1752 NFTA_QUOTA_CONSUMED = 0x4
1753 NFT_REJECT_ICMP_UNREACH = 0x0
1754 NFT_REJECT_TCP_RST = 0x1
1755 NFT_REJECT_ICMPX_UNREACH = 0x2
1756 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1757 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1758 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1759 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1760 NFTA_REJECT_UNSPEC = 0x0
1761 NFTA_REJECT_TYPE = 0x1
1762 NFTA_REJECT_ICMP_CODE = 0x2
1763 NFT_NAT_SNAT = 0x0
1764 NFT_NAT_DNAT = 0x1
1765 NFTA_NAT_UNSPEC = 0x0
1766 NFTA_NAT_TYPE = 0x1
1767 NFTA_NAT_FAMILY = 0x2
1768 NFTA_NAT_REG_ADDR_MIN = 0x3
1769 NFTA_NAT_REG_ADDR_MAX = 0x4
1770 NFTA_NAT_REG_PROTO_MIN = 0x5
1771 NFTA_NAT_REG_PROTO_MAX = 0x6
1772 NFTA_NAT_FLAGS = 0x7
1773 NFTA_MASQ_UNSPEC = 0x0
1774 NFTA_MASQ_FLAGS = 0x1
1775 NFTA_MASQ_REG_PROTO_MIN = 0x2
1776 NFTA_MASQ_REG_PROTO_MAX = 0x3
1777 NFTA_REDIR_UNSPEC = 0x0
1778 NFTA_REDIR_REG_PROTO_MIN = 0x1
1779 NFTA_REDIR_REG_PROTO_MAX = 0x2
1780 NFTA_REDIR_FLAGS = 0x3
1781 NFTA_DUP_UNSPEC = 0x0
1782 NFTA_DUP_SREG_ADDR = 0x1
1783 NFTA_DUP_SREG_DEV = 0x2
1784 NFTA_FWD_UNSPEC = 0x0
1785 NFTA_FWD_SREG_DEV = 0x1
1786 NFTA_OBJREF_UNSPEC = 0x0
1787 NFTA_OBJREF_IMM_TYPE = 0x1
1788 NFTA_OBJREF_IMM_NAME = 0x2
1789 NFTA_OBJREF_SET_SREG = 0x3
1790 NFTA_OBJREF_SET_NAME = 0x4
1791 NFTA_OBJREF_SET_ID = 0x5
1792 NFTA_GEN_UNSPEC = 0x0
1793 NFTA_GEN_ID = 0x1
1794 NFTA_GEN_PROC_PID = 0x2
1795 NFTA_GEN_PROC_NAME = 0x3
1796 NFTA_FIB_UNSPEC = 0x0
1797 NFTA_FIB_DREG = 0x1
1798 NFTA_FIB_RESULT = 0x2
1799 NFTA_FIB_FLAGS = 0x3
1800 NFT_FIB_RESULT_UNSPEC = 0x0
1801 NFT_FIB_RESULT_OIF = 0x1
1802 NFT_FIB_RESULT_OIFNAME = 0x2
1803 NFT_FIB_RESULT_ADDRTYPE = 0x3
1804 NFTA_FIB_F_SADDR = 0x1
1805 NFTA_FIB_F_DADDR = 0x2
1806 NFTA_FIB_F_MARK = 0x4
1807 NFTA_FIB_F_IIF = 0x8
1808 NFTA_FIB_F_OIF = 0x10
1809 NFTA_FIB_F_PRESENT = 0x20
1810 NFTA_CT_HELPER_UNSPEC = 0x0
1811 NFTA_CT_HELPER_NAME = 0x1
1812 NFTA_CT_HELPER_L3PROTO = 0x2
1813 NFTA_CT_HELPER_L4PROTO = 0x3
1814 NFTA_OBJ_UNSPEC = 0x0
1815 NFTA_OBJ_TABLE = 0x1
1816 NFTA_OBJ_NAME = 0x2
1817 NFTA_OBJ_TYPE = 0x3
1818 NFTA_OBJ_DATA = 0x4
1819 NFTA_OBJ_USE = 0x5
1820 NFTA_TRACE_UNSPEC = 0x0
1821 NFTA_TRACE_TABLE = 0x1
1822 NFTA_TRACE_CHAIN = 0x2
1823 NFTA_TRACE_RULE_HANDLE = 0x3
1824 NFTA_TRACE_TYPE = 0x4
1825 NFTA_TRACE_VERDICT = 0x5
1826 NFTA_TRACE_ID = 0x6
1827 NFTA_TRACE_LL_HEADER = 0x7
1828 NFTA_TRACE_NETWORK_HEADER = 0x8
1829 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1830 NFTA_TRACE_IIF = 0xa
1831 NFTA_TRACE_IIFTYPE = 0xb
1832 NFTA_TRACE_OIF = 0xc
1833 NFTA_TRACE_OIFTYPE = 0xd
1834 NFTA_TRACE_MARK = 0xe
1835 NFTA_TRACE_NFPROTO = 0xf
1836 NFTA_TRACE_POLICY = 0x10
1837 NFTA_TRACE_PAD = 0x11
1838 NFT_TRACETYPE_UNSPEC = 0x0
1839 NFT_TRACETYPE_POLICY = 0x1
1840 NFT_TRACETYPE_RETURN = 0x2
1841 NFT_TRACETYPE_RULE = 0x3
1842 NFTA_NG_UNSPEC = 0x0
1843 NFTA_NG_DREG = 0x1
1844 NFTA_NG_MODULUS = 0x2
1845 NFTA_NG_TYPE = 0x3
1846 NFTA_NG_OFFSET = 0x4
1847 NFT_NG_INCREMENTAL = 0x0
1848 NFT_NG_RANDOM = 0x1
1849)
1850
1851type RTCTime struct {
1852 Sec int32
1853 Min int32
1854 Hour int32
1855 Mday int32
1856 Mon int32
1857 Year int32
1858 Wday int32
1859 Yday int32
1860 Isdst int32
1861}
1862
1863type RTCWkAlrm struct {
1864 Enabled uint8
1865 Pending uint8
1866 _ [2]byte
1867 Time RTCTime
1868}
1869
1870type RTCPLLInfo struct {
1871 Ctrl int32
1872 Value int32
1873 Max int32
1874 Min int32
1875 Posmult int32
1876 Negmult int32
1877 Clock int32
1878}
1879
1880type BlkpgIoctlArg struct {
1881 Op int32
1882 Flags int32
1883 Datalen int32
1884 Data *byte
1885}
1886
1887type BlkpgPartition struct {
1888 Start int64
1889 Length int64
1890 Pno int32
1891 Devname [64]uint8
1892 Volname [64]uint8
1893}
1894
1895const (
1896 BLKPG = 0x1269
1897 BLKPG_ADD_PARTITION = 0x1
1898 BLKPG_DEL_PARTITION = 0x2
1899 BLKPG_RESIZE_PARTITION = 0x3
1900)
1901
1902const (
1903 NETNSA_NONE = 0x0
1904 NETNSA_NSID = 0x1
1905 NETNSA_PID = 0x2
1906 NETNSA_FD = 0x3
1907)
1908
1909type XDPRingOffset struct {
1910 Producer uint64
1911 Consumer uint64
1912 Desc uint64
1913}
1914
1915type XDPMmapOffsets struct {
1916 Rx XDPRingOffset
1917 Tx XDPRingOffset
1918 Fr XDPRingOffset
1919 Cr XDPRingOffset
1920}
1921
1922type XDPUmemReg struct {
1923 Addr uint64
1924 Len uint64
1925 Size uint32
1926 Headroom uint32
1927}
1928
1929type XDPStatistics struct {
1930 Rx_dropped uint64
1931 Rx_invalid_descs uint64
1932 Tx_invalid_descs uint64
1933}
1934
1935type XDPDesc struct {
1936 Addr uint64
1937 Len uint32
1938 Options uint32
1939}
1940
1941const (
1942 NCSI_CMD_UNSPEC = 0x0
1943 NCSI_CMD_PKG_INFO = 0x1
1944 NCSI_CMD_SET_INTERFACE = 0x2
1945 NCSI_CMD_CLEAR_INTERFACE = 0x3
1946 NCSI_ATTR_UNSPEC = 0x0
1947 NCSI_ATTR_IFINDEX = 0x1
1948 NCSI_ATTR_PACKAGE_LIST = 0x2
1949 NCSI_ATTR_PACKAGE_ID = 0x3
1950 NCSI_ATTR_CHANNEL_ID = 0x4
1951 NCSI_PKG_ATTR_UNSPEC = 0x0
1952 NCSI_PKG_ATTR = 0x1
1953 NCSI_PKG_ATTR_ID = 0x2
1954 NCSI_PKG_ATTR_FORCED = 0x3
1955 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1956 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1957 NCSI_CHANNEL_ATTR = 0x1
1958 NCSI_CHANNEL_ATTR_ID = 0x2
1959 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1960 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1961 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1962 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1963 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1964 NCSI_CHANNEL_ATTR_FORCED = 0x8
1965 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1966 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1967)
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 abb3d89..cbc2c7d 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -105,7 +105,7 @@ type Stat_t struct {
105 Mode uint32 105 Mode uint32
106 Uid uint32 106 Uid uint32
107 Gid uint32 107 Gid uint32
108 X__pad0 int32 108 _ int32
109 Rdev uint64 109 Rdev uint64
110 Size int64 110 Size int64
111 Blksize int64 111 Blksize int64
@@ -116,25 +116,10 @@ type Stat_t struct {
116 _ [3]int64 116 _ [3]int64
117} 117}
118 118
119type Statfs_t struct {
120 Type int64
121 Bsize int64
122 Blocks uint64
123 Bfree uint64
124 Bavail uint64
125 Files uint64
126 Ffree uint64
127 Fsid Fsid
128 Namelen int64
129 Frsize int64
130 Flags int64
131 Spare [4]int64
132}
133
134type StatxTimestamp struct { 119type StatxTimestamp struct {
135 Sec int64 120 Sec int64
136 Nsec uint32 121 Nsec uint32
137 X__reserved int32 122 _ int32
138} 123}
139 124
140type Statx_t struct { 125type Statx_t struct {
@@ -171,7 +156,7 @@ type Dirent struct {
171} 156}
172 157
173type Fsid struct { 158type Fsid struct {
174 X__val [2]int32 159 Val [2]int32
175} 160}
176 161
177type Flock_t struct { 162type Flock_t struct {
@@ -265,6 +250,13 @@ type RawSockaddrL2 struct {
265 _ [1]byte 250 _ [1]byte
266} 251}
267 252
253type RawSockaddrRFCOMM struct {
254 Family uint16
255 Bdaddr [6]uint8
256 Channel uint8
257 _ [1]byte
258}
259
268type RawSockaddrCAN struct { 260type RawSockaddrCAN struct {
269 Family uint16 261 Family uint16
270 _ [2]byte 262 _ [2]byte
@@ -288,6 +280,14 @@ type RawSockaddrVM struct {
288 Zero [4]uint8 280 Zero [4]uint8
289} 281}
290 282
283type RawSockaddrXDP struct {
284 Family uint16
285 Flags uint16
286 Ifindex uint32
287 Queue_id uint32
288 Shared_umem_fd uint32
289}
290
291type RawSockaddr struct { 291type RawSockaddr struct {
292 Family uint16 292 Family uint16
293 Data [14]int8 293 Data [14]int8
@@ -420,9 +420,11 @@ const (
420 SizeofSockaddrNetlink = 0xc 420 SizeofSockaddrNetlink = 0xc
421 SizeofSockaddrHCI = 0x6 421 SizeofSockaddrHCI = 0x6
422 SizeofSockaddrL2 = 0xe 422 SizeofSockaddrL2 = 0xe
423 SizeofSockaddrRFCOMM = 0xa
423 SizeofSockaddrCAN = 0x10 424 SizeofSockaddrCAN = 0x10
424 SizeofSockaddrALG = 0x58 425 SizeofSockaddrALG = 0x58
425 SizeofSockaddrVM = 0x10 426 SizeofSockaddrVM = 0x10
427 SizeofSockaddrXDP = 0x10
426 SizeofLinger = 0x8 428 SizeofLinger = 0x8
427 SizeofIovec = 0x10 429 SizeofIovec = 0x10
428 SizeofIPMreq = 0x8 430 SizeofIPMreq = 0x8
@@ -440,97 +442,138 @@ const (
440) 442)
441 443
442const ( 444const (
443 IFA_UNSPEC = 0x0 445 IFA_UNSPEC = 0x0
444 IFA_ADDRESS = 0x1 446 IFA_ADDRESS = 0x1
445 IFA_LOCAL = 0x2 447 IFA_LOCAL = 0x2
446 IFA_LABEL = 0x3 448 IFA_LABEL = 0x3
447 IFA_BROADCAST = 0x4 449 IFA_BROADCAST = 0x4
448 IFA_ANYCAST = 0x5 450 IFA_ANYCAST = 0x5
449 IFA_CACHEINFO = 0x6 451 IFA_CACHEINFO = 0x6
450 IFA_MULTICAST = 0x7 452 IFA_MULTICAST = 0x7
451 IFLA_UNSPEC = 0x0 453 IFLA_UNSPEC = 0x0
452 IFLA_ADDRESS = 0x1 454 IFLA_ADDRESS = 0x1
453 IFLA_BROADCAST = 0x2 455 IFLA_BROADCAST = 0x2
454 IFLA_IFNAME = 0x3 456 IFLA_IFNAME = 0x3
455 IFLA_MTU = 0x4 457 IFLA_INFO_KIND = 0x1
456 IFLA_LINK = 0x5 458 IFLA_MTU = 0x4
457 IFLA_QDISC = 0x6 459 IFLA_LINK = 0x5
458 IFLA_STATS = 0x7 460 IFLA_QDISC = 0x6
459 IFLA_COST = 0x8 461 IFLA_STATS = 0x7
460 IFLA_PRIORITY = 0x9 462 IFLA_COST = 0x8
461 IFLA_MASTER = 0xa 463 IFLA_PRIORITY = 0x9
462 IFLA_WIRELESS = 0xb 464 IFLA_MASTER = 0xa
463 IFLA_PROTINFO = 0xc 465 IFLA_WIRELESS = 0xb
464 IFLA_TXQLEN = 0xd 466 IFLA_PROTINFO = 0xc
465 IFLA_MAP = 0xe 467 IFLA_TXQLEN = 0xd
466 IFLA_WEIGHT = 0xf 468 IFLA_MAP = 0xe
467 IFLA_OPERSTATE = 0x10 469 IFLA_WEIGHT = 0xf
468 IFLA_LINKMODE = 0x11 470 IFLA_OPERSTATE = 0x10
469 IFLA_LINKINFO = 0x12 471 IFLA_LINKMODE = 0x11
470 IFLA_NET_NS_PID = 0x13 472 IFLA_LINKINFO = 0x12
471 IFLA_IFALIAS = 0x14 473 IFLA_NET_NS_PID = 0x13
472 IFLA_MAX = 0x2c 474 IFLA_IFALIAS = 0x14
473 RT_SCOPE_UNIVERSE = 0x0 475 IFLA_NUM_VF = 0x15
474 RT_SCOPE_SITE = 0xc8 476 IFLA_VFINFO_LIST = 0x16
475 RT_SCOPE_LINK = 0xfd 477 IFLA_STATS64 = 0x17
476 RT_SCOPE_HOST = 0xfe 478 IFLA_VF_PORTS = 0x18
477 RT_SCOPE_NOWHERE = 0xff 479 IFLA_PORT_SELF = 0x19
478 RT_TABLE_UNSPEC = 0x0 480 IFLA_AF_SPEC = 0x1a
479 RT_TABLE_COMPAT = 0xfc 481 IFLA_GROUP = 0x1b
480 RT_TABLE_DEFAULT = 0xfd 482 IFLA_NET_NS_FD = 0x1c
481 RT_TABLE_MAIN = 0xfe 483 IFLA_EXT_MASK = 0x1d
482 RT_TABLE_LOCAL = 0xff 484 IFLA_PROMISCUITY = 0x1e
483 RT_TABLE_MAX = 0xffffffff 485 IFLA_NUM_TX_QUEUES = 0x1f
484 RTA_UNSPEC = 0x0 486 IFLA_NUM_RX_QUEUES = 0x20
485 RTA_DST = 0x1 487 IFLA_CARRIER = 0x21
486 RTA_SRC = 0x2 488 IFLA_PHYS_PORT_ID = 0x22
487 RTA_IIF = 0x3 489 IFLA_CARRIER_CHANGES = 0x23
488 RTA_OIF = 0x4 490 IFLA_PHYS_SWITCH_ID = 0x24
489 RTA_GATEWAY = 0x5 491 IFLA_LINK_NETNSID = 0x25
490 RTA_PRIORITY = 0x6 492 IFLA_PHYS_PORT_NAME = 0x26
491 RTA_PREFSRC = 0x7 493 IFLA_PROTO_DOWN = 0x27
492 RTA_METRICS = 0x8 494 IFLA_GSO_MAX_SEGS = 0x28
493 RTA_MULTIPATH = 0x9 495 IFLA_GSO_MAX_SIZE = 0x29
494 RTA_FLOW = 0xb 496 IFLA_PAD = 0x2a
495 RTA_CACHEINFO = 0xc 497 IFLA_XDP = 0x2b
496 RTA_TABLE = 0xf 498 IFLA_EVENT = 0x2c
497 RTN_UNSPEC = 0x0 499 IFLA_NEW_NETNSID = 0x2d
498 RTN_UNICAST = 0x1 500 IFLA_IF_NETNSID = 0x2e
499 RTN_LOCAL = 0x2 501 IFLA_MAX = 0x31
500 RTN_BROADCAST = 0x3 502 RT_SCOPE_UNIVERSE = 0x0
501 RTN_ANYCAST = 0x4 503 RT_SCOPE_SITE = 0xc8
502 RTN_MULTICAST = 0x5 504 RT_SCOPE_LINK = 0xfd
503 RTN_BLACKHOLE = 0x6 505 RT_SCOPE_HOST = 0xfe
504 RTN_UNREACHABLE = 0x7 506 RT_SCOPE_NOWHERE = 0xff
505 RTN_PROHIBIT = 0x8 507 RT_TABLE_UNSPEC = 0x0
506 RTN_THROW = 0x9 508 RT_TABLE_COMPAT = 0xfc
507 RTN_NAT = 0xa 509 RT_TABLE_DEFAULT = 0xfd
508 RTN_XRESOLVE = 0xb 510 RT_TABLE_MAIN = 0xfe
509 RTNLGRP_NONE = 0x0 511 RT_TABLE_LOCAL = 0xff
510 RTNLGRP_LINK = 0x1 512 RT_TABLE_MAX = 0xffffffff
511 RTNLGRP_NOTIFY = 0x2 513 RTA_UNSPEC = 0x0
512 RTNLGRP_NEIGH = 0x3 514 RTA_DST = 0x1
513 RTNLGRP_TC = 0x4 515 RTA_SRC = 0x2
514 RTNLGRP_IPV4_IFADDR = 0x5 516 RTA_IIF = 0x3
515 RTNLGRP_IPV4_MROUTE = 0x6 517 RTA_OIF = 0x4
516 RTNLGRP_IPV4_ROUTE = 0x7 518 RTA_GATEWAY = 0x5
517 RTNLGRP_IPV4_RULE = 0x8 519 RTA_PRIORITY = 0x6
518 RTNLGRP_IPV6_IFADDR = 0x9 520 RTA_PREFSRC = 0x7
519 RTNLGRP_IPV6_MROUTE = 0xa 521 RTA_METRICS = 0x8
520 RTNLGRP_IPV6_ROUTE = 0xb 522 RTA_MULTIPATH = 0x9
521 RTNLGRP_IPV6_IFINFO = 0xc 523 RTA_FLOW = 0xb
522 RTNLGRP_IPV6_PREFIX = 0x12 524 RTA_CACHEINFO = 0xc
523 RTNLGRP_IPV6_RULE = 0x13 525 RTA_TABLE = 0xf
524 RTNLGRP_ND_USEROPT = 0x14 526 RTA_MARK = 0x10
525 SizeofNlMsghdr = 0x10 527 RTA_MFC_STATS = 0x11
526 SizeofNlMsgerr = 0x14 528 RTA_VIA = 0x12
527 SizeofRtGenmsg = 0x1 529 RTA_NEWDST = 0x13
528 SizeofNlAttr = 0x4 530 RTA_PREF = 0x14
529 SizeofRtAttr = 0x4 531 RTA_ENCAP_TYPE = 0x15
530 SizeofIfInfomsg = 0x10 532 RTA_ENCAP = 0x16
531 SizeofIfAddrmsg = 0x8 533 RTA_EXPIRES = 0x17
532 SizeofRtMsg = 0xc 534 RTA_PAD = 0x18
533 SizeofRtNexthop = 0x8 535 RTA_UID = 0x19
536 RTA_TTL_PROPAGATE = 0x1a
537 RTA_IP_PROTO = 0x1b
538 RTA_SPORT = 0x1c
539 RTA_DPORT = 0x1d
540 RTN_UNSPEC = 0x0
541 RTN_UNICAST = 0x1
542 RTN_LOCAL = 0x2
543 RTN_BROADCAST = 0x3
544 RTN_ANYCAST = 0x4
545 RTN_MULTICAST = 0x5
546 RTN_BLACKHOLE = 0x6
547 RTN_UNREACHABLE = 0x7
548 RTN_PROHIBIT = 0x8
549 RTN_THROW = 0x9
550 RTN_NAT = 0xa
551 RTN_XRESOLVE = 0xb
552 RTNLGRP_NONE = 0x0
553 RTNLGRP_LINK = 0x1
554 RTNLGRP_NOTIFY = 0x2
555 RTNLGRP_NEIGH = 0x3
556 RTNLGRP_TC = 0x4
557 RTNLGRP_IPV4_IFADDR = 0x5
558 RTNLGRP_IPV4_MROUTE = 0x6
559 RTNLGRP_IPV4_ROUTE = 0x7
560 RTNLGRP_IPV4_RULE = 0x8
561 RTNLGRP_IPV6_IFADDR = 0x9
562 RTNLGRP_IPV6_MROUTE = 0xa
563 RTNLGRP_IPV6_ROUTE = 0xb
564 RTNLGRP_IPV6_IFINFO = 0xc
565 RTNLGRP_IPV6_PREFIX = 0x12
566 RTNLGRP_IPV6_RULE = 0x13
567 RTNLGRP_ND_USEROPT = 0x14
568 SizeofNlMsghdr = 0x10
569 SizeofNlMsgerr = 0x14
570 SizeofRtGenmsg = 0x1
571 SizeofNlAttr = 0x4
572 SizeofRtAttr = 0x4
573 SizeofIfInfomsg = 0x10
574 SizeofIfAddrmsg = 0x8
575 SizeofRtMsg = 0xc
576 SizeofRtNexthop = 0x8
534) 577)
535 578
536type NlMsghdr struct { 579type NlMsghdr struct {
@@ -561,12 +604,12 @@ type RtAttr struct {
561} 604}
562 605
563type IfInfomsg struct { 606type IfInfomsg struct {
564 Family uint8 607 Family uint8
565 X__ifi_pad uint8 608 _ uint8
566 Type uint16 609 Type uint16
567 Index int32 610 Index int32
568 Flags uint32 611 Flags uint32
569 Change uint32 612 Change uint32
570} 613}
571 614
572type IfAddrmsg struct { 615type IfAddrmsg struct {
@@ -672,7 +715,7 @@ type Sysinfo_t struct {
672 Totalhigh uint64 715 Totalhigh uint64
673 Freehigh uint64 716 Freehigh uint64
674 Unit uint32 717 Unit uint32
675 X_f [0]int8 718 _ [0]int8
676 _ [4]byte 719 _ [4]byte
677} 720}
678 721
@@ -712,6 +755,8 @@ const (
712 755
713 AT_SYMLINK_FOLLOW = 0x400 756 AT_SYMLINK_FOLLOW = 0x400
714 AT_SYMLINK_NOFOLLOW = 0x100 757 AT_SYMLINK_NOFOLLOW = 0x100
758
759 AT_EACCESS = 0x200
715) 760)
716 761
717type PollFd struct { 762type PollFd struct {
@@ -731,7 +776,7 @@ const (
731) 776)
732 777
733type Sigset_t struct { 778type Sigset_t struct {
734 X__val [16]uint64 779 Val [16]uint64
735} 780}
736 781
737const RNDGETENTCNT = 0x80045200 782const RNDGETENTCNT = 0x80045200
@@ -887,3 +932,1058 @@ const (
887 BDADDR_LE_PUBLIC = 0x1 932 BDADDR_LE_PUBLIC = 0x1
888 BDADDR_LE_RANDOM = 0x2 933 BDADDR_LE_RANDOM = 0x2
889) 934)
935
936type PerfEventAttr struct {
937 Type uint32
938 Size uint32
939 Config uint64
940 Sample uint64
941 Sample_type uint64
942 Read_format uint64
943 Bits uint64
944 Wakeup uint32
945 Bp_type uint32
946 Ext1 uint64
947 Ext2 uint64
948 Branch_sample_type uint64
949 Sample_regs_user uint64
950 Sample_stack_user uint32
951 Clockid int32
952 Sample_regs_intr uint64
953 Aux_watermark uint32
954 _ uint32
955}
956
957type PerfEventMmapPage struct {
958 Version uint32
959 Compat_version uint32
960 Lock uint32
961 Index uint32
962 Offset int64
963 Time_enabled uint64
964 Time_running uint64
965 Capabilities uint64
966 Pmc_width uint16
967 Time_shift uint16
968 Time_mult uint32
969 Time_offset uint64
970 Time_zero uint64
971 Size uint32
972 _ [948]uint8
973 Data_head uint64
974 Data_tail uint64
975 Data_offset uint64
976 Data_size uint64
977 Aux_head uint64
978 Aux_tail uint64
979 Aux_offset uint64
980 Aux_size uint64
981}
982
983const (
984 PerfBitDisabled uint64 = CBitFieldMaskBit0
985 PerfBitInherit = CBitFieldMaskBit1
986 PerfBitPinned = CBitFieldMaskBit2
987 PerfBitExclusive = CBitFieldMaskBit3
988 PerfBitExcludeUser = CBitFieldMaskBit4
989 PerfBitExcludeKernel = CBitFieldMaskBit5
990 PerfBitExcludeHv = CBitFieldMaskBit6
991 PerfBitExcludeIdle = CBitFieldMaskBit7
992 PerfBitMmap = CBitFieldMaskBit8
993 PerfBitComm = CBitFieldMaskBit9
994 PerfBitFreq = CBitFieldMaskBit10
995 PerfBitInheritStat = CBitFieldMaskBit11
996 PerfBitEnableOnExec = CBitFieldMaskBit12
997 PerfBitTask = CBitFieldMaskBit13
998 PerfBitWatermark = CBitFieldMaskBit14
999 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
1000 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
1001 PerfBitMmapData = CBitFieldMaskBit17
1002 PerfBitSampleIDAll = CBitFieldMaskBit18
1003 PerfBitExcludeHost = CBitFieldMaskBit19
1004 PerfBitExcludeGuest = CBitFieldMaskBit20
1005 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
1006 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
1007 PerfBitMmap2 = CBitFieldMaskBit23
1008 PerfBitCommExec = CBitFieldMaskBit24
1009 PerfBitUseClockID = CBitFieldMaskBit25
1010 PerfBitContextSwitch = CBitFieldMaskBit26
1011)
1012
1013const (
1014 PERF_TYPE_HARDWARE = 0x0
1015 PERF_TYPE_SOFTWARE = 0x1
1016 PERF_TYPE_TRACEPOINT = 0x2
1017 PERF_TYPE_HW_CACHE = 0x3
1018 PERF_TYPE_RAW = 0x4
1019 PERF_TYPE_BREAKPOINT = 0x5
1020
1021 PERF_COUNT_HW_CPU_CYCLES = 0x0
1022 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1023 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1024 PERF_COUNT_HW_CACHE_MISSES = 0x3
1025 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1026 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1027 PERF_COUNT_HW_BUS_CYCLES = 0x6
1028 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1029 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1030 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1031
1032 PERF_COUNT_HW_CACHE_L1D = 0x0
1033 PERF_COUNT_HW_CACHE_L1I = 0x1
1034 PERF_COUNT_HW_CACHE_LL = 0x2
1035 PERF_COUNT_HW_CACHE_DTLB = 0x3
1036 PERF_COUNT_HW_CACHE_ITLB = 0x4
1037 PERF_COUNT_HW_CACHE_BPU = 0x5
1038 PERF_COUNT_HW_CACHE_NODE = 0x6
1039
1040 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1041 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1042 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1043
1044 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1045 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1046
1047 PERF_COUNT_SW_CPU_CLOCK = 0x0
1048 PERF_COUNT_SW_TASK_CLOCK = 0x1
1049 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1050 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1051 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1052 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1053 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1054 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1055 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1056 PERF_COUNT_SW_DUMMY = 0x9
1057
1058 PERF_SAMPLE_IP = 0x1
1059 PERF_SAMPLE_TID = 0x2
1060 PERF_SAMPLE_TIME = 0x4
1061 PERF_SAMPLE_ADDR = 0x8
1062 PERF_SAMPLE_READ = 0x10
1063 PERF_SAMPLE_CALLCHAIN = 0x20
1064 PERF_SAMPLE_ID = 0x40
1065 PERF_SAMPLE_CPU = 0x80
1066 PERF_SAMPLE_PERIOD = 0x100
1067 PERF_SAMPLE_STREAM_ID = 0x200
1068 PERF_SAMPLE_RAW = 0x400
1069 PERF_SAMPLE_BRANCH_STACK = 0x800
1070
1071 PERF_SAMPLE_BRANCH_USER = 0x1
1072 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1073 PERF_SAMPLE_BRANCH_HV = 0x4
1074 PERF_SAMPLE_BRANCH_ANY = 0x8
1075 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1076 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1077 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1078
1079 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1080 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1081 PERF_FORMAT_ID = 0x4
1082 PERF_FORMAT_GROUP = 0x8
1083
1084 PERF_RECORD_MMAP = 0x1
1085 PERF_RECORD_LOST = 0x2
1086 PERF_RECORD_COMM = 0x3
1087 PERF_RECORD_EXIT = 0x4
1088 PERF_RECORD_THROTTLE = 0x5
1089 PERF_RECORD_UNTHROTTLE = 0x6
1090 PERF_RECORD_FORK = 0x7
1091 PERF_RECORD_READ = 0x8
1092 PERF_RECORD_SAMPLE = 0x9
1093
1094 PERF_CONTEXT_HV = -0x20
1095 PERF_CONTEXT_KERNEL = -0x80
1096 PERF_CONTEXT_USER = -0x200
1097
1098 PERF_CONTEXT_GUEST = -0x800
1099 PERF_CONTEXT_GUEST_KERNEL = -0x880
1100 PERF_CONTEXT_GUEST_USER = -0xa00
1101
1102 PERF_FLAG_FD_NO_GROUP = 0x1
1103 PERF_FLAG_FD_OUTPUT = 0x2
1104 PERF_FLAG_PID_CGROUP = 0x4
1105)
1106
1107const (
1108 CBitFieldMaskBit0 = 0x1
1109 CBitFieldMaskBit1 = 0x2
1110 CBitFieldMaskBit2 = 0x4
1111 CBitFieldMaskBit3 = 0x8
1112 CBitFieldMaskBit4 = 0x10
1113 CBitFieldMaskBit5 = 0x20
1114 CBitFieldMaskBit6 = 0x40
1115 CBitFieldMaskBit7 = 0x80
1116 CBitFieldMaskBit8 = 0x100
1117 CBitFieldMaskBit9 = 0x200
1118 CBitFieldMaskBit10 = 0x400
1119 CBitFieldMaskBit11 = 0x800
1120 CBitFieldMaskBit12 = 0x1000
1121 CBitFieldMaskBit13 = 0x2000
1122 CBitFieldMaskBit14 = 0x4000
1123 CBitFieldMaskBit15 = 0x8000
1124 CBitFieldMaskBit16 = 0x10000
1125 CBitFieldMaskBit17 = 0x20000
1126 CBitFieldMaskBit18 = 0x40000
1127 CBitFieldMaskBit19 = 0x80000
1128 CBitFieldMaskBit20 = 0x100000
1129 CBitFieldMaskBit21 = 0x200000
1130 CBitFieldMaskBit22 = 0x400000
1131 CBitFieldMaskBit23 = 0x800000
1132 CBitFieldMaskBit24 = 0x1000000
1133 CBitFieldMaskBit25 = 0x2000000
1134 CBitFieldMaskBit26 = 0x4000000
1135 CBitFieldMaskBit27 = 0x8000000
1136 CBitFieldMaskBit28 = 0x10000000
1137 CBitFieldMaskBit29 = 0x20000000
1138 CBitFieldMaskBit30 = 0x40000000
1139 CBitFieldMaskBit31 = 0x80000000
1140 CBitFieldMaskBit32 = 0x100000000
1141 CBitFieldMaskBit33 = 0x200000000
1142 CBitFieldMaskBit34 = 0x400000000
1143 CBitFieldMaskBit35 = 0x800000000
1144 CBitFieldMaskBit36 = 0x1000000000
1145 CBitFieldMaskBit37 = 0x2000000000
1146 CBitFieldMaskBit38 = 0x4000000000
1147 CBitFieldMaskBit39 = 0x8000000000
1148 CBitFieldMaskBit40 = 0x10000000000
1149 CBitFieldMaskBit41 = 0x20000000000
1150 CBitFieldMaskBit42 = 0x40000000000
1151 CBitFieldMaskBit43 = 0x80000000000
1152 CBitFieldMaskBit44 = 0x100000000000
1153 CBitFieldMaskBit45 = 0x200000000000
1154 CBitFieldMaskBit46 = 0x400000000000
1155 CBitFieldMaskBit47 = 0x800000000000
1156 CBitFieldMaskBit48 = 0x1000000000000
1157 CBitFieldMaskBit49 = 0x2000000000000
1158 CBitFieldMaskBit50 = 0x4000000000000
1159 CBitFieldMaskBit51 = 0x8000000000000
1160 CBitFieldMaskBit52 = 0x10000000000000
1161 CBitFieldMaskBit53 = 0x20000000000000
1162 CBitFieldMaskBit54 = 0x40000000000000
1163 CBitFieldMaskBit55 = 0x80000000000000
1164 CBitFieldMaskBit56 = 0x100000000000000
1165 CBitFieldMaskBit57 = 0x200000000000000
1166 CBitFieldMaskBit58 = 0x400000000000000
1167 CBitFieldMaskBit59 = 0x800000000000000
1168 CBitFieldMaskBit60 = 0x1000000000000000
1169 CBitFieldMaskBit61 = 0x2000000000000000
1170 CBitFieldMaskBit62 = 0x4000000000000000
1171 CBitFieldMaskBit63 = 0x8000000000000000
1172)
1173
1174type SockaddrStorage struct {
1175 Family uint16
1176 _ [118]int8
1177 _ uint64
1178}
1179
1180type TCPMD5Sig struct {
1181 Addr SockaddrStorage
1182 Flags uint8
1183 Prefixlen uint8
1184 Keylen uint16
1185 _ uint32
1186 Key [80]uint8
1187}
1188
1189type HDDriveCmdHdr struct {
1190 Command uint8
1191 Number uint8
1192 Feature uint8
1193 Count uint8
1194}
1195
1196type HDGeometry struct {
1197 Heads uint8
1198 Sectors uint8
1199 Cylinders uint16
1200 _ [4]byte
1201 Start uint64
1202}
1203
1204type HDDriveID struct {
1205 Config uint16
1206 Cyls uint16
1207 Reserved2 uint16
1208 Heads uint16
1209 Track_bytes uint16
1210 Sector_bytes uint16
1211 Sectors uint16
1212 Vendor0 uint16
1213 Vendor1 uint16
1214 Vendor2 uint16
1215 Serial_no [20]uint8
1216 Buf_type uint16
1217 Buf_size uint16
1218 Ecc_bytes uint16
1219 Fw_rev [8]uint8
1220 Model [40]uint8
1221 Max_multsect uint8
1222 Vendor3 uint8
1223 Dword_io uint16
1224 Vendor4 uint8
1225 Capability uint8
1226 Reserved50 uint16
1227 Vendor5 uint8
1228 TPIO uint8
1229 Vendor6 uint8
1230 TDMA uint8
1231 Field_valid uint16
1232 Cur_cyls uint16
1233 Cur_heads uint16
1234 Cur_sectors uint16
1235 Cur_capacity0 uint16
1236 Cur_capacity1 uint16
1237 Multsect uint8
1238 Multsect_valid uint8
1239 Lba_capacity uint32
1240 Dma_1word uint16
1241 Dma_mword uint16
1242 Eide_pio_modes uint16
1243 Eide_dma_min uint16
1244 Eide_dma_time uint16
1245 Eide_pio uint16
1246 Eide_pio_iordy uint16
1247 Words69_70 [2]uint16
1248 Words71_74 [4]uint16
1249 Queue_depth uint16
1250 Words76_79 [4]uint16
1251 Major_rev_num uint16
1252 Minor_rev_num uint16
1253 Command_set_1 uint16
1254 Command_set_2 uint16
1255 Cfsse uint16
1256 Cfs_enable_1 uint16
1257 Cfs_enable_2 uint16
1258 Csf_default uint16
1259 Dma_ultra uint16
1260 Trseuc uint16
1261 TrsEuc uint16
1262 CurAPMvalues uint16
1263 Mprc uint16
1264 Hw_config uint16
1265 Acoustic uint16
1266 Msrqs uint16
1267 Sxfert uint16
1268 Sal uint16
1269 Spg uint32
1270 Lba_capacity_2 uint64
1271 Words104_125 [22]uint16
1272 Last_lun uint16
1273 Word127 uint16
1274 Dlf uint16
1275 Csfo uint16
1276 Words130_155 [26]uint16
1277 Word156 uint16
1278 Words157_159 [3]uint16
1279 Cfa_power uint16
1280 Words161_175 [15]uint16
1281 Words176_205 [30]uint16
1282 Words206_254 [49]uint16
1283 Integrity_word uint16
1284}
1285
1286type Statfs_t struct {
1287 Type int64
1288 Bsize int64
1289 Blocks uint64
1290 Bfree uint64
1291 Bavail uint64
1292 Files uint64
1293 Ffree uint64
1294 Fsid Fsid
1295 Namelen int64
1296 Frsize int64
1297 Flags int64
1298 Spare [4]int64
1299}
1300
1301const (
1302 ST_MANDLOCK = 0x40
1303 ST_NOATIME = 0x400
1304 ST_NODEV = 0x4
1305 ST_NODIRATIME = 0x800
1306 ST_NOEXEC = 0x8
1307 ST_NOSUID = 0x2
1308 ST_RDONLY = 0x1
1309 ST_RELATIME = 0x1000
1310 ST_SYNCHRONOUS = 0x10
1311)
1312
1313type TpacketHdr struct {
1314 Status uint64
1315 Len uint32
1316 Snaplen uint32
1317 Mac uint16
1318 Net uint16
1319 Sec uint32
1320 Usec uint32
1321 _ [4]byte
1322}
1323
1324type Tpacket2Hdr struct {
1325 Status uint32
1326 Len uint32
1327 Snaplen uint32
1328 Mac uint16
1329 Net uint16
1330 Sec uint32
1331 Nsec uint32
1332 Vlan_tci uint16
1333 Vlan_tpid uint16
1334 _ [4]uint8
1335}
1336
1337type Tpacket3Hdr struct {
1338 Next_offset uint32
1339 Sec uint32
1340 Nsec uint32
1341 Snaplen uint32
1342 Len uint32
1343 Status uint32
1344 Mac uint16
1345 Net uint16
1346 Hv1 TpacketHdrVariant1
1347 _ [8]uint8
1348}
1349
1350type TpacketHdrVariant1 struct {
1351 Rxhash uint32
1352 Vlan_tci uint32
1353 Vlan_tpid uint16
1354 _ uint16
1355}
1356
1357type TpacketBlockDesc struct {
1358 Version uint32
1359 To_priv uint32
1360 Hdr [40]byte
1361}
1362
1363type TpacketReq struct {
1364 Block_size uint32
1365 Block_nr uint32
1366 Frame_size uint32
1367 Frame_nr uint32
1368}
1369
1370type TpacketReq3 struct {
1371 Block_size uint32
1372 Block_nr uint32
1373 Frame_size uint32
1374 Frame_nr uint32
1375 Retire_blk_tov uint32
1376 Sizeof_priv uint32
1377 Feature_req_word uint32
1378}
1379
1380type TpacketStats struct {
1381 Packets uint32
1382 Drops uint32
1383}
1384
1385type TpacketStatsV3 struct {
1386 Packets uint32
1387 Drops uint32
1388 Freeze_q_cnt uint32
1389}
1390
1391type TpacketAuxdata struct {
1392 Status uint32
1393 Len uint32
1394 Snaplen uint32
1395 Mac uint16
1396 Net uint16
1397 Vlan_tci uint16
1398 Vlan_tpid uint16
1399}
1400
1401const (
1402 TPACKET_V1 = 0x0
1403 TPACKET_V2 = 0x1
1404 TPACKET_V3 = 0x2
1405)
1406
1407const (
1408 SizeofTpacketHdr = 0x20
1409 SizeofTpacket2Hdr = 0x20
1410 SizeofTpacket3Hdr = 0x30
1411)
1412
1413const (
1414 NF_INET_PRE_ROUTING = 0x0
1415 NF_INET_LOCAL_IN = 0x1
1416 NF_INET_FORWARD = 0x2
1417 NF_INET_LOCAL_OUT = 0x3
1418 NF_INET_POST_ROUTING = 0x4
1419 NF_INET_NUMHOOKS = 0x5
1420)
1421
1422const (
1423 NF_NETDEV_INGRESS = 0x0
1424 NF_NETDEV_NUMHOOKS = 0x1
1425)
1426
1427const (
1428 NFPROTO_UNSPEC = 0x0
1429 NFPROTO_INET = 0x1
1430 NFPROTO_IPV4 = 0x2
1431 NFPROTO_ARP = 0x3
1432 NFPROTO_NETDEV = 0x5
1433 NFPROTO_BRIDGE = 0x7
1434 NFPROTO_IPV6 = 0xa
1435 NFPROTO_DECNET = 0xc
1436 NFPROTO_NUMPROTO = 0xd
1437)
1438
1439type Nfgenmsg struct {
1440 Nfgen_family uint8
1441 Version uint8
1442 Res_id uint16
1443}
1444
1445const (
1446 NFNL_BATCH_UNSPEC = 0x0
1447 NFNL_BATCH_GENID = 0x1
1448)
1449
1450const (
1451 NFT_REG_VERDICT = 0x0
1452 NFT_REG_1 = 0x1
1453 NFT_REG_2 = 0x2
1454 NFT_REG_3 = 0x3
1455 NFT_REG_4 = 0x4
1456 NFT_REG32_00 = 0x8
1457 NFT_REG32_01 = 0x9
1458 NFT_REG32_02 = 0xa
1459 NFT_REG32_03 = 0xb
1460 NFT_REG32_04 = 0xc
1461 NFT_REG32_05 = 0xd
1462 NFT_REG32_06 = 0xe
1463 NFT_REG32_07 = 0xf
1464 NFT_REG32_08 = 0x10
1465 NFT_REG32_09 = 0x11
1466 NFT_REG32_10 = 0x12
1467 NFT_REG32_11 = 0x13
1468 NFT_REG32_12 = 0x14
1469 NFT_REG32_13 = 0x15
1470 NFT_REG32_14 = 0x16
1471 NFT_REG32_15 = 0x17
1472 NFT_CONTINUE = -0x1
1473 NFT_BREAK = -0x2
1474 NFT_JUMP = -0x3
1475 NFT_GOTO = -0x4
1476 NFT_RETURN = -0x5
1477 NFT_MSG_NEWTABLE = 0x0
1478 NFT_MSG_GETTABLE = 0x1
1479 NFT_MSG_DELTABLE = 0x2
1480 NFT_MSG_NEWCHAIN = 0x3
1481 NFT_MSG_GETCHAIN = 0x4
1482 NFT_MSG_DELCHAIN = 0x5
1483 NFT_MSG_NEWRULE = 0x6
1484 NFT_MSG_GETRULE = 0x7
1485 NFT_MSG_DELRULE = 0x8
1486 NFT_MSG_NEWSET = 0x9
1487 NFT_MSG_GETSET = 0xa
1488 NFT_MSG_DELSET = 0xb
1489 NFT_MSG_NEWSETELEM = 0xc
1490 NFT_MSG_GETSETELEM = 0xd
1491 NFT_MSG_DELSETELEM = 0xe
1492 NFT_MSG_NEWGEN = 0xf
1493 NFT_MSG_GETGEN = 0x10
1494 NFT_MSG_TRACE = 0x11
1495 NFT_MSG_NEWOBJ = 0x12
1496 NFT_MSG_GETOBJ = 0x13
1497 NFT_MSG_DELOBJ = 0x14
1498 NFT_MSG_GETOBJ_RESET = 0x15
1499 NFT_MSG_MAX = 0x19
1500 NFTA_LIST_UNPEC = 0x0
1501 NFTA_LIST_ELEM = 0x1
1502 NFTA_HOOK_UNSPEC = 0x0
1503 NFTA_HOOK_HOOKNUM = 0x1
1504 NFTA_HOOK_PRIORITY = 0x2
1505 NFTA_HOOK_DEV = 0x3
1506 NFT_TABLE_F_DORMANT = 0x1
1507 NFTA_TABLE_UNSPEC = 0x0
1508 NFTA_TABLE_NAME = 0x1
1509 NFTA_TABLE_FLAGS = 0x2
1510 NFTA_TABLE_USE = 0x3
1511 NFTA_CHAIN_UNSPEC = 0x0
1512 NFTA_CHAIN_TABLE = 0x1
1513 NFTA_CHAIN_HANDLE = 0x2
1514 NFTA_CHAIN_NAME = 0x3
1515 NFTA_CHAIN_HOOK = 0x4
1516 NFTA_CHAIN_POLICY = 0x5
1517 NFTA_CHAIN_USE = 0x6
1518 NFTA_CHAIN_TYPE = 0x7
1519 NFTA_CHAIN_COUNTERS = 0x8
1520 NFTA_CHAIN_PAD = 0x9
1521 NFTA_RULE_UNSPEC = 0x0
1522 NFTA_RULE_TABLE = 0x1
1523 NFTA_RULE_CHAIN = 0x2
1524 NFTA_RULE_HANDLE = 0x3
1525 NFTA_RULE_EXPRESSIONS = 0x4
1526 NFTA_RULE_COMPAT = 0x5
1527 NFTA_RULE_POSITION = 0x6
1528 NFTA_RULE_USERDATA = 0x7
1529 NFTA_RULE_PAD = 0x8
1530 NFTA_RULE_ID = 0x9
1531 NFT_RULE_COMPAT_F_INV = 0x2
1532 NFT_RULE_COMPAT_F_MASK = 0x2
1533 NFTA_RULE_COMPAT_UNSPEC = 0x0
1534 NFTA_RULE_COMPAT_PROTO = 0x1
1535 NFTA_RULE_COMPAT_FLAGS = 0x2
1536 NFT_SET_ANONYMOUS = 0x1
1537 NFT_SET_CONSTANT = 0x2
1538 NFT_SET_INTERVAL = 0x4
1539 NFT_SET_MAP = 0x8
1540 NFT_SET_TIMEOUT = 0x10
1541 NFT_SET_EVAL = 0x20
1542 NFT_SET_OBJECT = 0x40
1543 NFT_SET_POL_PERFORMANCE = 0x0
1544 NFT_SET_POL_MEMORY = 0x1
1545 NFTA_SET_DESC_UNSPEC = 0x0
1546 NFTA_SET_DESC_SIZE = 0x1
1547 NFTA_SET_UNSPEC = 0x0
1548 NFTA_SET_TABLE = 0x1
1549 NFTA_SET_NAME = 0x2
1550 NFTA_SET_FLAGS = 0x3
1551 NFTA_SET_KEY_TYPE = 0x4
1552 NFTA_SET_KEY_LEN = 0x5
1553 NFTA_SET_DATA_TYPE = 0x6
1554 NFTA_SET_DATA_LEN = 0x7
1555 NFTA_SET_POLICY = 0x8
1556 NFTA_SET_DESC = 0x9
1557 NFTA_SET_ID = 0xa
1558 NFTA_SET_TIMEOUT = 0xb
1559 NFTA_SET_GC_INTERVAL = 0xc
1560 NFTA_SET_USERDATA = 0xd
1561 NFTA_SET_PAD = 0xe
1562 NFTA_SET_OBJ_TYPE = 0xf
1563 NFT_SET_ELEM_INTERVAL_END = 0x1
1564 NFTA_SET_ELEM_UNSPEC = 0x0
1565 NFTA_SET_ELEM_KEY = 0x1
1566 NFTA_SET_ELEM_DATA = 0x2
1567 NFTA_SET_ELEM_FLAGS = 0x3
1568 NFTA_SET_ELEM_TIMEOUT = 0x4
1569 NFTA_SET_ELEM_EXPIRATION = 0x5
1570 NFTA_SET_ELEM_USERDATA = 0x6
1571 NFTA_SET_ELEM_EXPR = 0x7
1572 NFTA_SET_ELEM_PAD = 0x8
1573 NFTA_SET_ELEM_OBJREF = 0x9
1574 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1575 NFTA_SET_ELEM_LIST_TABLE = 0x1
1576 NFTA_SET_ELEM_LIST_SET = 0x2
1577 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1578 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1579 NFT_DATA_VALUE = 0x0
1580 NFT_DATA_VERDICT = 0xffffff00
1581 NFTA_DATA_UNSPEC = 0x0
1582 NFTA_DATA_VALUE = 0x1
1583 NFTA_DATA_VERDICT = 0x2
1584 NFTA_VERDICT_UNSPEC = 0x0
1585 NFTA_VERDICT_CODE = 0x1
1586 NFTA_VERDICT_CHAIN = 0x2
1587 NFTA_EXPR_UNSPEC = 0x0
1588 NFTA_EXPR_NAME = 0x1
1589 NFTA_EXPR_DATA = 0x2
1590 NFTA_IMMEDIATE_UNSPEC = 0x0
1591 NFTA_IMMEDIATE_DREG = 0x1
1592 NFTA_IMMEDIATE_DATA = 0x2
1593 NFTA_BITWISE_UNSPEC = 0x0
1594 NFTA_BITWISE_SREG = 0x1
1595 NFTA_BITWISE_DREG = 0x2
1596 NFTA_BITWISE_LEN = 0x3
1597 NFTA_BITWISE_MASK = 0x4
1598 NFTA_BITWISE_XOR = 0x5
1599 NFT_BYTEORDER_NTOH = 0x0
1600 NFT_BYTEORDER_HTON = 0x1
1601 NFTA_BYTEORDER_UNSPEC = 0x0
1602 NFTA_BYTEORDER_SREG = 0x1
1603 NFTA_BYTEORDER_DREG = 0x2
1604 NFTA_BYTEORDER_OP = 0x3
1605 NFTA_BYTEORDER_LEN = 0x4
1606 NFTA_BYTEORDER_SIZE = 0x5
1607 NFT_CMP_EQ = 0x0
1608 NFT_CMP_NEQ = 0x1
1609 NFT_CMP_LT = 0x2
1610 NFT_CMP_LTE = 0x3
1611 NFT_CMP_GT = 0x4
1612 NFT_CMP_GTE = 0x5
1613 NFTA_CMP_UNSPEC = 0x0
1614 NFTA_CMP_SREG = 0x1
1615 NFTA_CMP_OP = 0x2
1616 NFTA_CMP_DATA = 0x3
1617 NFT_RANGE_EQ = 0x0
1618 NFT_RANGE_NEQ = 0x1
1619 NFTA_RANGE_UNSPEC = 0x0
1620 NFTA_RANGE_SREG = 0x1
1621 NFTA_RANGE_OP = 0x2
1622 NFTA_RANGE_FROM_DATA = 0x3
1623 NFTA_RANGE_TO_DATA = 0x4
1624 NFT_LOOKUP_F_INV = 0x1
1625 NFTA_LOOKUP_UNSPEC = 0x0
1626 NFTA_LOOKUP_SET = 0x1
1627 NFTA_LOOKUP_SREG = 0x2
1628 NFTA_LOOKUP_DREG = 0x3
1629 NFTA_LOOKUP_SET_ID = 0x4
1630 NFTA_LOOKUP_FLAGS = 0x5
1631 NFT_DYNSET_OP_ADD = 0x0
1632 NFT_DYNSET_OP_UPDATE = 0x1
1633 NFT_DYNSET_F_INV = 0x1
1634 NFTA_DYNSET_UNSPEC = 0x0
1635 NFTA_DYNSET_SET_NAME = 0x1
1636 NFTA_DYNSET_SET_ID = 0x2
1637 NFTA_DYNSET_OP = 0x3
1638 NFTA_DYNSET_SREG_KEY = 0x4
1639 NFTA_DYNSET_SREG_DATA = 0x5
1640 NFTA_DYNSET_TIMEOUT = 0x6
1641 NFTA_DYNSET_EXPR = 0x7
1642 NFTA_DYNSET_PAD = 0x8
1643 NFTA_DYNSET_FLAGS = 0x9
1644 NFT_PAYLOAD_LL_HEADER = 0x0
1645 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1646 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1647 NFT_PAYLOAD_CSUM_NONE = 0x0
1648 NFT_PAYLOAD_CSUM_INET = 0x1
1649 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1650 NFTA_PAYLOAD_UNSPEC = 0x0
1651 NFTA_PAYLOAD_DREG = 0x1
1652 NFTA_PAYLOAD_BASE = 0x2
1653 NFTA_PAYLOAD_OFFSET = 0x3
1654 NFTA_PAYLOAD_LEN = 0x4
1655 NFTA_PAYLOAD_SREG = 0x5
1656 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1657 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1658 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1659 NFT_EXTHDR_F_PRESENT = 0x1
1660 NFT_EXTHDR_OP_IPV6 = 0x0
1661 NFT_EXTHDR_OP_TCPOPT = 0x1
1662 NFTA_EXTHDR_UNSPEC = 0x0
1663 NFTA_EXTHDR_DREG = 0x1
1664 NFTA_EXTHDR_TYPE = 0x2
1665 NFTA_EXTHDR_OFFSET = 0x3
1666 NFTA_EXTHDR_LEN = 0x4
1667 NFTA_EXTHDR_FLAGS = 0x5
1668 NFTA_EXTHDR_OP = 0x6
1669 NFTA_EXTHDR_SREG = 0x7
1670 NFT_META_LEN = 0x0
1671 NFT_META_PROTOCOL = 0x1
1672 NFT_META_PRIORITY = 0x2
1673 NFT_META_MARK = 0x3
1674 NFT_META_IIF = 0x4
1675 NFT_META_OIF = 0x5
1676 NFT_META_IIFNAME = 0x6
1677 NFT_META_OIFNAME = 0x7
1678 NFT_META_IIFTYPE = 0x8
1679 NFT_META_OIFTYPE = 0x9
1680 NFT_META_SKUID = 0xa
1681 NFT_META_SKGID = 0xb
1682 NFT_META_NFTRACE = 0xc
1683 NFT_META_RTCLASSID = 0xd
1684 NFT_META_SECMARK = 0xe
1685 NFT_META_NFPROTO = 0xf
1686 NFT_META_L4PROTO = 0x10
1687 NFT_META_BRI_IIFNAME = 0x11
1688 NFT_META_BRI_OIFNAME = 0x12
1689 NFT_META_PKTTYPE = 0x13
1690 NFT_META_CPU = 0x14
1691 NFT_META_IIFGROUP = 0x15
1692 NFT_META_OIFGROUP = 0x16
1693 NFT_META_CGROUP = 0x17
1694 NFT_META_PRANDOM = 0x18
1695 NFT_RT_CLASSID = 0x0
1696 NFT_RT_NEXTHOP4 = 0x1
1697 NFT_RT_NEXTHOP6 = 0x2
1698 NFT_RT_TCPMSS = 0x3
1699 NFT_HASH_JENKINS = 0x0
1700 NFT_HASH_SYM = 0x1
1701 NFTA_HASH_UNSPEC = 0x0
1702 NFTA_HASH_SREG = 0x1
1703 NFTA_HASH_DREG = 0x2
1704 NFTA_HASH_LEN = 0x3
1705 NFTA_HASH_MODULUS = 0x4
1706 NFTA_HASH_SEED = 0x5
1707 NFTA_HASH_OFFSET = 0x6
1708 NFTA_HASH_TYPE = 0x7
1709 NFTA_META_UNSPEC = 0x0
1710 NFTA_META_DREG = 0x1
1711 NFTA_META_KEY = 0x2
1712 NFTA_META_SREG = 0x3
1713 NFTA_RT_UNSPEC = 0x0
1714 NFTA_RT_DREG = 0x1
1715 NFTA_RT_KEY = 0x2
1716 NFT_CT_STATE = 0x0
1717 NFT_CT_DIRECTION = 0x1
1718 NFT_CT_STATUS = 0x2
1719 NFT_CT_MARK = 0x3
1720 NFT_CT_SECMARK = 0x4
1721 NFT_CT_EXPIRATION = 0x5
1722 NFT_CT_HELPER = 0x6
1723 NFT_CT_L3PROTOCOL = 0x7
1724 NFT_CT_SRC = 0x8
1725 NFT_CT_DST = 0x9
1726 NFT_CT_PROTOCOL = 0xa
1727 NFT_CT_PROTO_SRC = 0xb
1728 NFT_CT_PROTO_DST = 0xc
1729 NFT_CT_LABELS = 0xd
1730 NFT_CT_PKTS = 0xe
1731 NFT_CT_BYTES = 0xf
1732 NFT_CT_AVGPKT = 0x10
1733 NFT_CT_ZONE = 0x11
1734 NFT_CT_EVENTMASK = 0x12
1735 NFTA_CT_UNSPEC = 0x0
1736 NFTA_CT_DREG = 0x1
1737 NFTA_CT_KEY = 0x2
1738 NFTA_CT_DIRECTION = 0x3
1739 NFTA_CT_SREG = 0x4
1740 NFT_LIMIT_PKTS = 0x0
1741 NFT_LIMIT_PKT_BYTES = 0x1
1742 NFT_LIMIT_F_INV = 0x1
1743 NFTA_LIMIT_UNSPEC = 0x0
1744 NFTA_LIMIT_RATE = 0x1
1745 NFTA_LIMIT_UNIT = 0x2
1746 NFTA_LIMIT_BURST = 0x3
1747 NFTA_LIMIT_TYPE = 0x4
1748 NFTA_LIMIT_FLAGS = 0x5
1749 NFTA_LIMIT_PAD = 0x6
1750 NFTA_COUNTER_UNSPEC = 0x0
1751 NFTA_COUNTER_BYTES = 0x1
1752 NFTA_COUNTER_PACKETS = 0x2
1753 NFTA_COUNTER_PAD = 0x3
1754 NFTA_LOG_UNSPEC = 0x0
1755 NFTA_LOG_GROUP = 0x1
1756 NFTA_LOG_PREFIX = 0x2
1757 NFTA_LOG_SNAPLEN = 0x3
1758 NFTA_LOG_QTHRESHOLD = 0x4
1759 NFTA_LOG_LEVEL = 0x5
1760 NFTA_LOG_FLAGS = 0x6
1761 NFTA_QUEUE_UNSPEC = 0x0
1762 NFTA_QUEUE_NUM = 0x1
1763 NFTA_QUEUE_TOTAL = 0x2
1764 NFTA_QUEUE_FLAGS = 0x3
1765 NFTA_QUEUE_SREG_QNUM = 0x4
1766 NFT_QUOTA_F_INV = 0x1
1767 NFT_QUOTA_F_DEPLETED = 0x2
1768 NFTA_QUOTA_UNSPEC = 0x0
1769 NFTA_QUOTA_BYTES = 0x1
1770 NFTA_QUOTA_FLAGS = 0x2
1771 NFTA_QUOTA_PAD = 0x3
1772 NFTA_QUOTA_CONSUMED = 0x4
1773 NFT_REJECT_ICMP_UNREACH = 0x0
1774 NFT_REJECT_TCP_RST = 0x1
1775 NFT_REJECT_ICMPX_UNREACH = 0x2
1776 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1777 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1778 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1779 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1780 NFTA_REJECT_UNSPEC = 0x0
1781 NFTA_REJECT_TYPE = 0x1
1782 NFTA_REJECT_ICMP_CODE = 0x2
1783 NFT_NAT_SNAT = 0x0
1784 NFT_NAT_DNAT = 0x1
1785 NFTA_NAT_UNSPEC = 0x0
1786 NFTA_NAT_TYPE = 0x1
1787 NFTA_NAT_FAMILY = 0x2
1788 NFTA_NAT_REG_ADDR_MIN = 0x3
1789 NFTA_NAT_REG_ADDR_MAX = 0x4
1790 NFTA_NAT_REG_PROTO_MIN = 0x5
1791 NFTA_NAT_REG_PROTO_MAX = 0x6
1792 NFTA_NAT_FLAGS = 0x7
1793 NFTA_MASQ_UNSPEC = 0x0
1794 NFTA_MASQ_FLAGS = 0x1
1795 NFTA_MASQ_REG_PROTO_MIN = 0x2
1796 NFTA_MASQ_REG_PROTO_MAX = 0x3
1797 NFTA_REDIR_UNSPEC = 0x0
1798 NFTA_REDIR_REG_PROTO_MIN = 0x1
1799 NFTA_REDIR_REG_PROTO_MAX = 0x2
1800 NFTA_REDIR_FLAGS = 0x3
1801 NFTA_DUP_UNSPEC = 0x0
1802 NFTA_DUP_SREG_ADDR = 0x1
1803 NFTA_DUP_SREG_DEV = 0x2
1804 NFTA_FWD_UNSPEC = 0x0
1805 NFTA_FWD_SREG_DEV = 0x1
1806 NFTA_OBJREF_UNSPEC = 0x0
1807 NFTA_OBJREF_IMM_TYPE = 0x1
1808 NFTA_OBJREF_IMM_NAME = 0x2
1809 NFTA_OBJREF_SET_SREG = 0x3
1810 NFTA_OBJREF_SET_NAME = 0x4
1811 NFTA_OBJREF_SET_ID = 0x5
1812 NFTA_GEN_UNSPEC = 0x0
1813 NFTA_GEN_ID = 0x1
1814 NFTA_GEN_PROC_PID = 0x2
1815 NFTA_GEN_PROC_NAME = 0x3
1816 NFTA_FIB_UNSPEC = 0x0
1817 NFTA_FIB_DREG = 0x1
1818 NFTA_FIB_RESULT = 0x2
1819 NFTA_FIB_FLAGS = 0x3
1820 NFT_FIB_RESULT_UNSPEC = 0x0
1821 NFT_FIB_RESULT_OIF = 0x1
1822 NFT_FIB_RESULT_OIFNAME = 0x2
1823 NFT_FIB_RESULT_ADDRTYPE = 0x3
1824 NFTA_FIB_F_SADDR = 0x1
1825 NFTA_FIB_F_DADDR = 0x2
1826 NFTA_FIB_F_MARK = 0x4
1827 NFTA_FIB_F_IIF = 0x8
1828 NFTA_FIB_F_OIF = 0x10
1829 NFTA_FIB_F_PRESENT = 0x20
1830 NFTA_CT_HELPER_UNSPEC = 0x0
1831 NFTA_CT_HELPER_NAME = 0x1
1832 NFTA_CT_HELPER_L3PROTO = 0x2
1833 NFTA_CT_HELPER_L4PROTO = 0x3
1834 NFTA_OBJ_UNSPEC = 0x0
1835 NFTA_OBJ_TABLE = 0x1
1836 NFTA_OBJ_NAME = 0x2
1837 NFTA_OBJ_TYPE = 0x3
1838 NFTA_OBJ_DATA = 0x4
1839 NFTA_OBJ_USE = 0x5
1840 NFTA_TRACE_UNSPEC = 0x0
1841 NFTA_TRACE_TABLE = 0x1
1842 NFTA_TRACE_CHAIN = 0x2
1843 NFTA_TRACE_RULE_HANDLE = 0x3
1844 NFTA_TRACE_TYPE = 0x4
1845 NFTA_TRACE_VERDICT = 0x5
1846 NFTA_TRACE_ID = 0x6
1847 NFTA_TRACE_LL_HEADER = 0x7
1848 NFTA_TRACE_NETWORK_HEADER = 0x8
1849 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1850 NFTA_TRACE_IIF = 0xa
1851 NFTA_TRACE_IIFTYPE = 0xb
1852 NFTA_TRACE_OIF = 0xc
1853 NFTA_TRACE_OIFTYPE = 0xd
1854 NFTA_TRACE_MARK = 0xe
1855 NFTA_TRACE_NFPROTO = 0xf
1856 NFTA_TRACE_POLICY = 0x10
1857 NFTA_TRACE_PAD = 0x11
1858 NFT_TRACETYPE_UNSPEC = 0x0
1859 NFT_TRACETYPE_POLICY = 0x1
1860 NFT_TRACETYPE_RETURN = 0x2
1861 NFT_TRACETYPE_RULE = 0x3
1862 NFTA_NG_UNSPEC = 0x0
1863 NFTA_NG_DREG = 0x1
1864 NFTA_NG_MODULUS = 0x2
1865 NFTA_NG_TYPE = 0x3
1866 NFTA_NG_OFFSET = 0x4
1867 NFT_NG_INCREMENTAL = 0x0
1868 NFT_NG_RANDOM = 0x1
1869)
1870
1871type RTCTime struct {
1872 Sec int32
1873 Min int32
1874 Hour int32
1875 Mday int32
1876 Mon int32
1877 Year int32
1878 Wday int32
1879 Yday int32
1880 Isdst int32
1881}
1882
1883type RTCWkAlrm struct {
1884 Enabled uint8
1885 Pending uint8
1886 _ [2]byte
1887 Time RTCTime
1888}
1889
1890type RTCPLLInfo struct {
1891 Ctrl int32
1892 Value int32
1893 Max int32
1894 Min int32
1895 Posmult int32
1896 Negmult int32
1897 Clock int64
1898}
1899
1900type BlkpgIoctlArg struct {
1901 Op int32
1902 Flags int32
1903 Datalen int32
1904 _ [4]byte
1905 Data *byte
1906}
1907
1908type BlkpgPartition struct {
1909 Start int64
1910 Length int64
1911 Pno int32
1912 Devname [64]uint8
1913 Volname [64]uint8
1914 _ [4]byte
1915}
1916
1917const (
1918 BLKPG = 0x1269
1919 BLKPG_ADD_PARTITION = 0x1
1920 BLKPG_DEL_PARTITION = 0x2
1921 BLKPG_RESIZE_PARTITION = 0x3
1922)
1923
1924const (
1925 NETNSA_NONE = 0x0
1926 NETNSA_NSID = 0x1
1927 NETNSA_PID = 0x2
1928 NETNSA_FD = 0x3
1929)
1930
1931type XDPRingOffset struct {
1932 Producer uint64
1933 Consumer uint64
1934 Desc uint64
1935}
1936
1937type XDPMmapOffsets struct {
1938 Rx XDPRingOffset
1939 Tx XDPRingOffset
1940 Fr XDPRingOffset
1941 Cr XDPRingOffset
1942}
1943
1944type XDPUmemReg struct {
1945 Addr uint64
1946 Len uint64
1947 Size uint32
1948 Headroom uint32
1949}
1950
1951type XDPStatistics struct {
1952 Rx_dropped uint64
1953 Rx_invalid_descs uint64
1954 Tx_invalid_descs uint64
1955}
1956
1957type XDPDesc struct {
1958 Addr uint64
1959 Len uint32
1960 Options uint32
1961}
1962
1963const (
1964 NCSI_CMD_UNSPEC = 0x0
1965 NCSI_CMD_PKG_INFO = 0x1
1966 NCSI_CMD_SET_INTERFACE = 0x2
1967 NCSI_CMD_CLEAR_INTERFACE = 0x3
1968 NCSI_ATTR_UNSPEC = 0x0
1969 NCSI_ATTR_IFINDEX = 0x1
1970 NCSI_ATTR_PACKAGE_LIST = 0x2
1971 NCSI_ATTR_PACKAGE_ID = 0x3
1972 NCSI_ATTR_CHANNEL_ID = 0x4
1973 NCSI_PKG_ATTR_UNSPEC = 0x0
1974 NCSI_PKG_ATTR = 0x1
1975 NCSI_PKG_ATTR_ID = 0x2
1976 NCSI_PKG_ATTR_FORCED = 0x3
1977 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1978 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1979 NCSI_CHANNEL_ATTR = 0x1
1980 NCSI_CHANNEL_ATTR_ID = 0x2
1981 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1982 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1983 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1984 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1985 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1986 NCSI_CHANNEL_ATTR_FORCED = 0x8
1987 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1988 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1989)
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 1165417..6ed804f 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -96,47 +96,31 @@ type Rlimit struct {
96type _Gid_t uint32 96type _Gid_t uint32
97 97
98type Stat_t struct { 98type Stat_t struct {
99 Dev uint64 99 Dev uint64
100 X__pad1 uint16 100 _ uint16
101 _ [2]byte 101 _ [2]byte
102 X__st_ino uint32 102 _ uint32
103 Mode uint32 103 Mode uint32
104 Nlink uint32 104 Nlink uint32
105 Uid uint32 105 Uid uint32
106 Gid uint32 106 Gid uint32
107 Rdev uint64 107 Rdev uint64
108 X__pad2 uint16 108 _ uint16
109 _ [6]byte 109 _ [6]byte
110 Size int64 110 Size int64
111 Blksize int32 111 Blksize int32
112 _ [4]byte
113 Blocks int64
114 Atim Timespec
115 Mtim Timespec
116 Ctim Timespec
117 Ino uint64
118}
119
120type Statfs_t struct {
121 Type int32
122 Bsize int32
123 Blocks uint64
124 Bfree uint64
125 Bavail uint64
126 Files uint64
127 Ffree uint64
128 Fsid Fsid
129 Namelen int32
130 Frsize int32
131 Flags int32
132 Spare [4]int32
133 _ [4]byte 112 _ [4]byte
113 Blocks int64
114 Atim Timespec
115 Mtim Timespec
116 Ctim Timespec
117 Ino uint64
134} 118}
135 119
136type StatxTimestamp struct { 120type StatxTimestamp struct {
137 Sec int64 121 Sec int64
138 Nsec uint32 122 Nsec uint32
139 X__reserved int32 123 _ int32
140} 124}
141 125
142type Statx_t struct { 126type Statx_t struct {
@@ -173,7 +157,7 @@ type Dirent struct {
173} 157}
174 158
175type Fsid struct { 159type Fsid struct {
176 X__val [2]int32 160 Val [2]int32
177} 161}
178 162
179type Flock_t struct { 163type Flock_t struct {
@@ -267,6 +251,13 @@ type RawSockaddrL2 struct {
267 _ [1]byte 251 _ [1]byte
268} 252}
269 253
254type RawSockaddrRFCOMM struct {
255 Family uint16
256 Bdaddr [6]uint8
257 Channel uint8
258 _ [1]byte
259}
260
270type RawSockaddrCAN struct { 261type RawSockaddrCAN struct {
271 Family uint16 262 Family uint16
272 _ [2]byte 263 _ [2]byte
@@ -290,6 +281,14 @@ type RawSockaddrVM struct {
290 Zero [4]uint8 281 Zero [4]uint8
291} 282}
292 283
284type RawSockaddrXDP struct {
285 Family uint16
286 Flags uint16
287 Ifindex uint32
288 Queue_id uint32
289 Shared_umem_fd uint32
290}
291
293type RawSockaddr struct { 292type RawSockaddr struct {
294 Family uint16 293 Family uint16
295 Data [14]uint8 294 Data [14]uint8
@@ -420,9 +419,11 @@ const (
420 SizeofSockaddrNetlink = 0xc 419 SizeofSockaddrNetlink = 0xc
421 SizeofSockaddrHCI = 0x6 420 SizeofSockaddrHCI = 0x6
422 SizeofSockaddrL2 = 0xe 421 SizeofSockaddrL2 = 0xe
422 SizeofSockaddrRFCOMM = 0xa
423 SizeofSockaddrCAN = 0x10 423 SizeofSockaddrCAN = 0x10
424 SizeofSockaddrALG = 0x58 424 SizeofSockaddrALG = 0x58
425 SizeofSockaddrVM = 0x10 425 SizeofSockaddrVM = 0x10
426 SizeofSockaddrXDP = 0x10
426 SizeofLinger = 0x8 427 SizeofLinger = 0x8
427 SizeofIovec = 0x8 428 SizeofIovec = 0x8
428 SizeofIPMreq = 0x8 429 SizeofIPMreq = 0x8
@@ -440,97 +441,138 @@ const (
440) 441)
441 442
442const ( 443const (
443 IFA_UNSPEC = 0x0 444 IFA_UNSPEC = 0x0
444 IFA_ADDRESS = 0x1 445 IFA_ADDRESS = 0x1
445 IFA_LOCAL = 0x2 446 IFA_LOCAL = 0x2
446 IFA_LABEL = 0x3 447 IFA_LABEL = 0x3
447 IFA_BROADCAST = 0x4 448 IFA_BROADCAST = 0x4
448 IFA_ANYCAST = 0x5 449 IFA_ANYCAST = 0x5
449 IFA_CACHEINFO = 0x6 450 IFA_CACHEINFO = 0x6
450 IFA_MULTICAST = 0x7 451 IFA_MULTICAST = 0x7
451 IFLA_UNSPEC = 0x0 452 IFLA_UNSPEC = 0x0
452 IFLA_ADDRESS = 0x1 453 IFLA_ADDRESS = 0x1
453 IFLA_BROADCAST = 0x2 454 IFLA_BROADCAST = 0x2
454 IFLA_IFNAME = 0x3 455 IFLA_IFNAME = 0x3
455 IFLA_MTU = 0x4 456 IFLA_INFO_KIND = 0x1
456 IFLA_LINK = 0x5 457 IFLA_MTU = 0x4
457 IFLA_QDISC = 0x6 458 IFLA_LINK = 0x5
458 IFLA_STATS = 0x7 459 IFLA_QDISC = 0x6
459 IFLA_COST = 0x8 460 IFLA_STATS = 0x7
460 IFLA_PRIORITY = 0x9 461 IFLA_COST = 0x8
461 IFLA_MASTER = 0xa 462 IFLA_PRIORITY = 0x9
462 IFLA_WIRELESS = 0xb 463 IFLA_MASTER = 0xa
463 IFLA_PROTINFO = 0xc 464 IFLA_WIRELESS = 0xb
464 IFLA_TXQLEN = 0xd 465 IFLA_PROTINFO = 0xc
465 IFLA_MAP = 0xe 466 IFLA_TXQLEN = 0xd
466 IFLA_WEIGHT = 0xf 467 IFLA_MAP = 0xe
467 IFLA_OPERSTATE = 0x10 468 IFLA_WEIGHT = 0xf
468 IFLA_LINKMODE = 0x11 469 IFLA_OPERSTATE = 0x10
469 IFLA_LINKINFO = 0x12 470 IFLA_LINKMODE = 0x11
470 IFLA_NET_NS_PID = 0x13 471 IFLA_LINKINFO = 0x12
471 IFLA_IFALIAS = 0x14 472 IFLA_NET_NS_PID = 0x13
472 IFLA_MAX = 0x2c 473 IFLA_IFALIAS = 0x14
473 RT_SCOPE_UNIVERSE = 0x0 474 IFLA_NUM_VF = 0x15
474 RT_SCOPE_SITE = 0xc8 475 IFLA_VFINFO_LIST = 0x16
475 RT_SCOPE_LINK = 0xfd 476 IFLA_STATS64 = 0x17
476 RT_SCOPE_HOST = 0xfe 477 IFLA_VF_PORTS = 0x18
477 RT_SCOPE_NOWHERE = 0xff 478 IFLA_PORT_SELF = 0x19
478 RT_TABLE_UNSPEC = 0x0 479 IFLA_AF_SPEC = 0x1a
479 RT_TABLE_COMPAT = 0xfc 480 IFLA_GROUP = 0x1b
480 RT_TABLE_DEFAULT = 0xfd 481 IFLA_NET_NS_FD = 0x1c
481 RT_TABLE_MAIN = 0xfe 482 IFLA_EXT_MASK = 0x1d
482 RT_TABLE_LOCAL = 0xff 483 IFLA_PROMISCUITY = 0x1e
483 RT_TABLE_MAX = 0xffffffff 484 IFLA_NUM_TX_QUEUES = 0x1f
484 RTA_UNSPEC = 0x0 485 IFLA_NUM_RX_QUEUES = 0x20
485 RTA_DST = 0x1 486 IFLA_CARRIER = 0x21
486 RTA_SRC = 0x2 487 IFLA_PHYS_PORT_ID = 0x22
487 RTA_IIF = 0x3 488 IFLA_CARRIER_CHANGES = 0x23
488 RTA_OIF = 0x4 489 IFLA_PHYS_SWITCH_ID = 0x24
489 RTA_GATEWAY = 0x5 490 IFLA_LINK_NETNSID = 0x25
490 RTA_PRIORITY = 0x6 491 IFLA_PHYS_PORT_NAME = 0x26
491 RTA_PREFSRC = 0x7 492 IFLA_PROTO_DOWN = 0x27
492 RTA_METRICS = 0x8 493 IFLA_GSO_MAX_SEGS = 0x28
493 RTA_MULTIPATH = 0x9 494 IFLA_GSO_MAX_SIZE = 0x29
494 RTA_FLOW = 0xb 495 IFLA_PAD = 0x2a
495 RTA_CACHEINFO = 0xc 496 IFLA_XDP = 0x2b
496 RTA_TABLE = 0xf 497 IFLA_EVENT = 0x2c
497 RTN_UNSPEC = 0x0 498 IFLA_NEW_NETNSID = 0x2d
498 RTN_UNICAST = 0x1 499 IFLA_IF_NETNSID = 0x2e
499 RTN_LOCAL = 0x2 500 IFLA_MAX = 0x31
500 RTN_BROADCAST = 0x3 501 RT_SCOPE_UNIVERSE = 0x0
501 RTN_ANYCAST = 0x4 502 RT_SCOPE_SITE = 0xc8
502 RTN_MULTICAST = 0x5 503 RT_SCOPE_LINK = 0xfd
503 RTN_BLACKHOLE = 0x6 504 RT_SCOPE_HOST = 0xfe
504 RTN_UNREACHABLE = 0x7 505 RT_SCOPE_NOWHERE = 0xff
505 RTN_PROHIBIT = 0x8 506 RT_TABLE_UNSPEC = 0x0
506 RTN_THROW = 0x9 507 RT_TABLE_COMPAT = 0xfc
507 RTN_NAT = 0xa 508 RT_TABLE_DEFAULT = 0xfd
508 RTN_XRESOLVE = 0xb 509 RT_TABLE_MAIN = 0xfe
509 RTNLGRP_NONE = 0x0 510 RT_TABLE_LOCAL = 0xff
510 RTNLGRP_LINK = 0x1 511 RT_TABLE_MAX = 0xffffffff
511 RTNLGRP_NOTIFY = 0x2 512 RTA_UNSPEC = 0x0
512 RTNLGRP_NEIGH = 0x3 513 RTA_DST = 0x1
513 RTNLGRP_TC = 0x4 514 RTA_SRC = 0x2
514 RTNLGRP_IPV4_IFADDR = 0x5 515 RTA_IIF = 0x3
515 RTNLGRP_IPV4_MROUTE = 0x6 516 RTA_OIF = 0x4
516 RTNLGRP_IPV4_ROUTE = 0x7 517 RTA_GATEWAY = 0x5
517 RTNLGRP_IPV4_RULE = 0x8 518 RTA_PRIORITY = 0x6
518 RTNLGRP_IPV6_IFADDR = 0x9 519 RTA_PREFSRC = 0x7
519 RTNLGRP_IPV6_MROUTE = 0xa 520 RTA_METRICS = 0x8
520 RTNLGRP_IPV6_ROUTE = 0xb 521 RTA_MULTIPATH = 0x9
521 RTNLGRP_IPV6_IFINFO = 0xc 522 RTA_FLOW = 0xb
522 RTNLGRP_IPV6_PREFIX = 0x12 523 RTA_CACHEINFO = 0xc
523 RTNLGRP_IPV6_RULE = 0x13 524 RTA_TABLE = 0xf
524 RTNLGRP_ND_USEROPT = 0x14 525 RTA_MARK = 0x10
525 SizeofNlMsghdr = 0x10 526 RTA_MFC_STATS = 0x11
526 SizeofNlMsgerr = 0x14 527 RTA_VIA = 0x12
527 SizeofRtGenmsg = 0x1 528 RTA_NEWDST = 0x13
528 SizeofNlAttr = 0x4 529 RTA_PREF = 0x14
529 SizeofRtAttr = 0x4 530 RTA_ENCAP_TYPE = 0x15
530 SizeofIfInfomsg = 0x10 531 RTA_ENCAP = 0x16
531 SizeofIfAddrmsg = 0x8 532 RTA_EXPIRES = 0x17
532 SizeofRtMsg = 0xc 533 RTA_PAD = 0x18
533 SizeofRtNexthop = 0x8 534 RTA_UID = 0x19
535 RTA_TTL_PROPAGATE = 0x1a
536 RTA_IP_PROTO = 0x1b
537 RTA_SPORT = 0x1c
538 RTA_DPORT = 0x1d
539 RTN_UNSPEC = 0x0
540 RTN_UNICAST = 0x1
541 RTN_LOCAL = 0x2
542 RTN_BROADCAST = 0x3
543 RTN_ANYCAST = 0x4
544 RTN_MULTICAST = 0x5
545 RTN_BLACKHOLE = 0x6
546 RTN_UNREACHABLE = 0x7
547 RTN_PROHIBIT = 0x8
548 RTN_THROW = 0x9
549 RTN_NAT = 0xa
550 RTN_XRESOLVE = 0xb
551 RTNLGRP_NONE = 0x0
552 RTNLGRP_LINK = 0x1
553 RTNLGRP_NOTIFY = 0x2
554 RTNLGRP_NEIGH = 0x3
555 RTNLGRP_TC = 0x4
556 RTNLGRP_IPV4_IFADDR = 0x5
557 RTNLGRP_IPV4_MROUTE = 0x6
558 RTNLGRP_IPV4_ROUTE = 0x7
559 RTNLGRP_IPV4_RULE = 0x8
560 RTNLGRP_IPV6_IFADDR = 0x9
561 RTNLGRP_IPV6_MROUTE = 0xa
562 RTNLGRP_IPV6_ROUTE = 0xb
563 RTNLGRP_IPV6_IFINFO = 0xc
564 RTNLGRP_IPV6_PREFIX = 0x12
565 RTNLGRP_IPV6_RULE = 0x13
566 RTNLGRP_ND_USEROPT = 0x14
567 SizeofNlMsghdr = 0x10
568 SizeofNlMsgerr = 0x14
569 SizeofRtGenmsg = 0x1
570 SizeofNlAttr = 0x4
571 SizeofRtAttr = 0x4
572 SizeofIfInfomsg = 0x10
573 SizeofIfAddrmsg = 0x8
574 SizeofRtMsg = 0xc
575 SizeofRtNexthop = 0x8
534) 576)
535 577
536type NlMsghdr struct { 578type NlMsghdr struct {
@@ -561,12 +603,12 @@ type RtAttr struct {
561} 603}
562 604
563type IfInfomsg struct { 605type IfInfomsg struct {
564 Family uint8 606 Family uint8
565 X__ifi_pad uint8 607 _ uint8
566 Type uint16 608 Type uint16
567 Index int32 609 Index int32
568 Flags uint32 610 Flags uint32
569 Change uint32 611 Change uint32
570} 612}
571 613
572type IfAddrmsg struct { 614type IfAddrmsg struct {
@@ -645,7 +687,7 @@ type Sysinfo_t struct {
645 Totalhigh uint32 687 Totalhigh uint32
646 Freehigh uint32 688 Freehigh uint32
647 Unit uint32 689 Unit uint32
648 X_f [8]uint8 690 _ [8]uint8
649} 691}
650 692
651type Utsname struct { 693type Utsname struct {
@@ -683,6 +725,8 @@ const (
683 725
684 AT_SYMLINK_FOLLOW = 0x400 726 AT_SYMLINK_FOLLOW = 0x400
685 AT_SYMLINK_NOFOLLOW = 0x100 727 AT_SYMLINK_NOFOLLOW = 0x100
728
729 AT_EACCESS = 0x200
686) 730)
687 731
688type PollFd struct { 732type PollFd struct {
@@ -702,7 +746,7 @@ const (
702) 746)
703 747
704type Sigset_t struct { 748type Sigset_t struct {
705 X__val [32]uint32 749 Val [32]uint32
706} 750}
707 751
708const RNDGETENTCNT = 0x80045200 752const RNDGETENTCNT = 0x80045200
@@ -858,3 +902,1056 @@ const (
858 BDADDR_LE_PUBLIC = 0x1 902 BDADDR_LE_PUBLIC = 0x1
859 BDADDR_LE_RANDOM = 0x2 903 BDADDR_LE_RANDOM = 0x2
860) 904)
905
906type PerfEventAttr struct {
907 Type uint32
908 Size uint32
909 Config uint64
910 Sample uint64
911 Sample_type uint64
912 Read_format uint64
913 Bits uint64
914 Wakeup uint32
915 Bp_type uint32
916 Ext1 uint64
917 Ext2 uint64
918 Branch_sample_type uint64
919 Sample_regs_user uint64
920 Sample_stack_user uint32
921 Clockid int32
922 Sample_regs_intr uint64
923 Aux_watermark uint32
924 _ uint32
925}
926
927type PerfEventMmapPage struct {
928 Version uint32
929 Compat_version uint32
930 Lock uint32
931 Index uint32
932 Offset int64
933 Time_enabled uint64
934 Time_running uint64
935 Capabilities uint64
936 Pmc_width uint16
937 Time_shift uint16
938 Time_mult uint32
939 Time_offset uint64
940 Time_zero uint64
941 Size uint32
942 _ [948]uint8
943 Data_head uint64
944 Data_tail uint64
945 Data_offset uint64
946 Data_size uint64
947 Aux_head uint64
948 Aux_tail uint64
949 Aux_offset uint64
950 Aux_size uint64
951}
952
953const (
954 PerfBitDisabled uint64 = CBitFieldMaskBit0
955 PerfBitInherit = CBitFieldMaskBit1
956 PerfBitPinned = CBitFieldMaskBit2
957 PerfBitExclusive = CBitFieldMaskBit3
958 PerfBitExcludeUser = CBitFieldMaskBit4
959 PerfBitExcludeKernel = CBitFieldMaskBit5
960 PerfBitExcludeHv = CBitFieldMaskBit6
961 PerfBitExcludeIdle = CBitFieldMaskBit7
962 PerfBitMmap = CBitFieldMaskBit8
963 PerfBitComm = CBitFieldMaskBit9
964 PerfBitFreq = CBitFieldMaskBit10
965 PerfBitInheritStat = CBitFieldMaskBit11
966 PerfBitEnableOnExec = CBitFieldMaskBit12
967 PerfBitTask = CBitFieldMaskBit13
968 PerfBitWatermark = CBitFieldMaskBit14
969 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
970 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
971 PerfBitMmapData = CBitFieldMaskBit17
972 PerfBitSampleIDAll = CBitFieldMaskBit18
973 PerfBitExcludeHost = CBitFieldMaskBit19
974 PerfBitExcludeGuest = CBitFieldMaskBit20
975 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
976 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
977 PerfBitMmap2 = CBitFieldMaskBit23
978 PerfBitCommExec = CBitFieldMaskBit24
979 PerfBitUseClockID = CBitFieldMaskBit25
980 PerfBitContextSwitch = CBitFieldMaskBit26
981)
982
983const (
984 PERF_TYPE_HARDWARE = 0x0
985 PERF_TYPE_SOFTWARE = 0x1
986 PERF_TYPE_TRACEPOINT = 0x2
987 PERF_TYPE_HW_CACHE = 0x3
988 PERF_TYPE_RAW = 0x4
989 PERF_TYPE_BREAKPOINT = 0x5
990
991 PERF_COUNT_HW_CPU_CYCLES = 0x0
992 PERF_COUNT_HW_INSTRUCTIONS = 0x1
993 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
994 PERF_COUNT_HW_CACHE_MISSES = 0x3
995 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
996 PERF_COUNT_HW_BRANCH_MISSES = 0x5
997 PERF_COUNT_HW_BUS_CYCLES = 0x6
998 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
999 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1000 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1001
1002 PERF_COUNT_HW_CACHE_L1D = 0x0
1003 PERF_COUNT_HW_CACHE_L1I = 0x1
1004 PERF_COUNT_HW_CACHE_LL = 0x2
1005 PERF_COUNT_HW_CACHE_DTLB = 0x3
1006 PERF_COUNT_HW_CACHE_ITLB = 0x4
1007 PERF_COUNT_HW_CACHE_BPU = 0x5
1008 PERF_COUNT_HW_CACHE_NODE = 0x6
1009
1010 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1011 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1012 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1013
1014 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1015 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1016
1017 PERF_COUNT_SW_CPU_CLOCK = 0x0
1018 PERF_COUNT_SW_TASK_CLOCK = 0x1
1019 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1020 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1021 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1022 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1023 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1024 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1025 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1026 PERF_COUNT_SW_DUMMY = 0x9
1027
1028 PERF_SAMPLE_IP = 0x1
1029 PERF_SAMPLE_TID = 0x2
1030 PERF_SAMPLE_TIME = 0x4
1031 PERF_SAMPLE_ADDR = 0x8
1032 PERF_SAMPLE_READ = 0x10
1033 PERF_SAMPLE_CALLCHAIN = 0x20
1034 PERF_SAMPLE_ID = 0x40
1035 PERF_SAMPLE_CPU = 0x80
1036 PERF_SAMPLE_PERIOD = 0x100
1037 PERF_SAMPLE_STREAM_ID = 0x200
1038 PERF_SAMPLE_RAW = 0x400
1039 PERF_SAMPLE_BRANCH_STACK = 0x800
1040
1041 PERF_SAMPLE_BRANCH_USER = 0x1
1042 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1043 PERF_SAMPLE_BRANCH_HV = 0x4
1044 PERF_SAMPLE_BRANCH_ANY = 0x8
1045 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1046 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1047 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1048
1049 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1050 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1051 PERF_FORMAT_ID = 0x4
1052 PERF_FORMAT_GROUP = 0x8
1053
1054 PERF_RECORD_MMAP = 0x1
1055 PERF_RECORD_LOST = 0x2
1056 PERF_RECORD_COMM = 0x3
1057 PERF_RECORD_EXIT = 0x4
1058 PERF_RECORD_THROTTLE = 0x5
1059 PERF_RECORD_UNTHROTTLE = 0x6
1060 PERF_RECORD_FORK = 0x7
1061 PERF_RECORD_READ = 0x8
1062 PERF_RECORD_SAMPLE = 0x9
1063
1064 PERF_CONTEXT_HV = -0x20
1065 PERF_CONTEXT_KERNEL = -0x80
1066 PERF_CONTEXT_USER = -0x200
1067
1068 PERF_CONTEXT_GUEST = -0x800
1069 PERF_CONTEXT_GUEST_KERNEL = -0x880
1070 PERF_CONTEXT_GUEST_USER = -0xa00
1071
1072 PERF_FLAG_FD_NO_GROUP = 0x1
1073 PERF_FLAG_FD_OUTPUT = 0x2
1074 PERF_FLAG_PID_CGROUP = 0x4
1075)
1076
1077const (
1078 CBitFieldMaskBit0 = 0x1
1079 CBitFieldMaskBit1 = 0x2
1080 CBitFieldMaskBit2 = 0x4
1081 CBitFieldMaskBit3 = 0x8
1082 CBitFieldMaskBit4 = 0x10
1083 CBitFieldMaskBit5 = 0x20
1084 CBitFieldMaskBit6 = 0x40
1085 CBitFieldMaskBit7 = 0x80
1086 CBitFieldMaskBit8 = 0x100
1087 CBitFieldMaskBit9 = 0x200
1088 CBitFieldMaskBit10 = 0x400
1089 CBitFieldMaskBit11 = 0x800
1090 CBitFieldMaskBit12 = 0x1000
1091 CBitFieldMaskBit13 = 0x2000
1092 CBitFieldMaskBit14 = 0x4000
1093 CBitFieldMaskBit15 = 0x8000
1094 CBitFieldMaskBit16 = 0x10000
1095 CBitFieldMaskBit17 = 0x20000
1096 CBitFieldMaskBit18 = 0x40000
1097 CBitFieldMaskBit19 = 0x80000
1098 CBitFieldMaskBit20 = 0x100000
1099 CBitFieldMaskBit21 = 0x200000
1100 CBitFieldMaskBit22 = 0x400000
1101 CBitFieldMaskBit23 = 0x800000
1102 CBitFieldMaskBit24 = 0x1000000
1103 CBitFieldMaskBit25 = 0x2000000
1104 CBitFieldMaskBit26 = 0x4000000
1105 CBitFieldMaskBit27 = 0x8000000
1106 CBitFieldMaskBit28 = 0x10000000
1107 CBitFieldMaskBit29 = 0x20000000
1108 CBitFieldMaskBit30 = 0x40000000
1109 CBitFieldMaskBit31 = 0x80000000
1110 CBitFieldMaskBit32 = 0x100000000
1111 CBitFieldMaskBit33 = 0x200000000
1112 CBitFieldMaskBit34 = 0x400000000
1113 CBitFieldMaskBit35 = 0x800000000
1114 CBitFieldMaskBit36 = 0x1000000000
1115 CBitFieldMaskBit37 = 0x2000000000
1116 CBitFieldMaskBit38 = 0x4000000000
1117 CBitFieldMaskBit39 = 0x8000000000
1118 CBitFieldMaskBit40 = 0x10000000000
1119 CBitFieldMaskBit41 = 0x20000000000
1120 CBitFieldMaskBit42 = 0x40000000000
1121 CBitFieldMaskBit43 = 0x80000000000
1122 CBitFieldMaskBit44 = 0x100000000000
1123 CBitFieldMaskBit45 = 0x200000000000
1124 CBitFieldMaskBit46 = 0x400000000000
1125 CBitFieldMaskBit47 = 0x800000000000
1126 CBitFieldMaskBit48 = 0x1000000000000
1127 CBitFieldMaskBit49 = 0x2000000000000
1128 CBitFieldMaskBit50 = 0x4000000000000
1129 CBitFieldMaskBit51 = 0x8000000000000
1130 CBitFieldMaskBit52 = 0x10000000000000
1131 CBitFieldMaskBit53 = 0x20000000000000
1132 CBitFieldMaskBit54 = 0x40000000000000
1133 CBitFieldMaskBit55 = 0x80000000000000
1134 CBitFieldMaskBit56 = 0x100000000000000
1135 CBitFieldMaskBit57 = 0x200000000000000
1136 CBitFieldMaskBit58 = 0x400000000000000
1137 CBitFieldMaskBit59 = 0x800000000000000
1138 CBitFieldMaskBit60 = 0x1000000000000000
1139 CBitFieldMaskBit61 = 0x2000000000000000
1140 CBitFieldMaskBit62 = 0x4000000000000000
1141 CBitFieldMaskBit63 = 0x8000000000000000
1142)
1143
1144type SockaddrStorage struct {
1145 Family uint16
1146 _ [122]uint8
1147 _ uint32
1148}
1149
1150type TCPMD5Sig struct {
1151 Addr SockaddrStorage
1152 Flags uint8
1153 Prefixlen uint8
1154 Keylen uint16
1155 _ uint32
1156 Key [80]uint8
1157}
1158
1159type HDDriveCmdHdr struct {
1160 Command uint8
1161 Number uint8
1162 Feature uint8
1163 Count uint8
1164}
1165
1166type HDGeometry struct {
1167 Heads uint8
1168 Sectors uint8
1169 Cylinders uint16
1170 Start uint32
1171}
1172
1173type HDDriveID struct {
1174 Config uint16
1175 Cyls uint16
1176 Reserved2 uint16
1177 Heads uint16
1178 Track_bytes uint16
1179 Sector_bytes uint16
1180 Sectors uint16
1181 Vendor0 uint16
1182 Vendor1 uint16
1183 Vendor2 uint16
1184 Serial_no [20]uint8
1185 Buf_type uint16
1186 Buf_size uint16
1187 Ecc_bytes uint16
1188 Fw_rev [8]uint8
1189 Model [40]uint8
1190 Max_multsect uint8
1191 Vendor3 uint8
1192 Dword_io uint16
1193 Vendor4 uint8
1194 Capability uint8
1195 Reserved50 uint16
1196 Vendor5 uint8
1197 TPIO uint8
1198 Vendor6 uint8
1199 TDMA uint8
1200 Field_valid uint16
1201 Cur_cyls uint16
1202 Cur_heads uint16
1203 Cur_sectors uint16
1204 Cur_capacity0 uint16
1205 Cur_capacity1 uint16
1206 Multsect uint8
1207 Multsect_valid uint8
1208 Lba_capacity uint32
1209 Dma_1word uint16
1210 Dma_mword uint16
1211 Eide_pio_modes uint16
1212 Eide_dma_min uint16
1213 Eide_dma_time uint16
1214 Eide_pio uint16
1215 Eide_pio_iordy uint16
1216 Words69_70 [2]uint16
1217 Words71_74 [4]uint16
1218 Queue_depth uint16
1219 Words76_79 [4]uint16
1220 Major_rev_num uint16
1221 Minor_rev_num uint16
1222 Command_set_1 uint16
1223 Command_set_2 uint16
1224 Cfsse uint16
1225 Cfs_enable_1 uint16
1226 Cfs_enable_2 uint16
1227 Csf_default uint16
1228 Dma_ultra uint16
1229 Trseuc uint16
1230 TrsEuc uint16
1231 CurAPMvalues uint16
1232 Mprc uint16
1233 Hw_config uint16
1234 Acoustic uint16
1235 Msrqs uint16
1236 Sxfert uint16
1237 Sal uint16
1238 Spg uint32
1239 Lba_capacity_2 uint64
1240 Words104_125 [22]uint16
1241 Last_lun uint16
1242 Word127 uint16
1243 Dlf uint16
1244 Csfo uint16
1245 Words130_155 [26]uint16
1246 Word156 uint16
1247 Words157_159 [3]uint16
1248 Cfa_power uint16
1249 Words161_175 [15]uint16
1250 Words176_205 [30]uint16
1251 Words206_254 [49]uint16
1252 Integrity_word uint16
1253}
1254
1255type Statfs_t struct {
1256 Type int32
1257 Bsize int32
1258 Blocks uint64
1259 Bfree uint64
1260 Bavail uint64
1261 Files uint64
1262 Ffree uint64
1263 Fsid Fsid
1264 Namelen int32
1265 Frsize int32
1266 Flags int32
1267 Spare [4]int32
1268 _ [4]byte
1269}
1270
1271const (
1272 ST_MANDLOCK = 0x40
1273 ST_NOATIME = 0x400
1274 ST_NODEV = 0x4
1275 ST_NODIRATIME = 0x800
1276 ST_NOEXEC = 0x8
1277 ST_NOSUID = 0x2
1278 ST_RDONLY = 0x1
1279 ST_RELATIME = 0x1000
1280 ST_SYNCHRONOUS = 0x10
1281)
1282
1283type TpacketHdr struct {
1284 Status uint32
1285 Len uint32
1286 Snaplen uint32
1287 Mac uint16
1288 Net uint16
1289 Sec uint32
1290 Usec uint32
1291}
1292
1293type Tpacket2Hdr struct {
1294 Status uint32
1295 Len uint32
1296 Snaplen uint32
1297 Mac uint16
1298 Net uint16
1299 Sec uint32
1300 Nsec uint32
1301 Vlan_tci uint16
1302 Vlan_tpid uint16
1303 _ [4]uint8
1304}
1305
1306type Tpacket3Hdr struct {
1307 Next_offset uint32
1308 Sec uint32
1309 Nsec uint32
1310 Snaplen uint32
1311 Len uint32
1312 Status uint32
1313 Mac uint16
1314 Net uint16
1315 Hv1 TpacketHdrVariant1
1316 _ [8]uint8
1317}
1318
1319type TpacketHdrVariant1 struct {
1320 Rxhash uint32
1321 Vlan_tci uint32
1322 Vlan_tpid uint16
1323 _ uint16
1324}
1325
1326type TpacketBlockDesc struct {
1327 Version uint32
1328 To_priv uint32
1329 Hdr [40]byte
1330}
1331
1332type TpacketReq struct {
1333 Block_size uint32
1334 Block_nr uint32
1335 Frame_size uint32
1336 Frame_nr uint32
1337}
1338
1339type TpacketReq3 struct {
1340 Block_size uint32
1341 Block_nr uint32
1342 Frame_size uint32
1343 Frame_nr uint32
1344 Retire_blk_tov uint32
1345 Sizeof_priv uint32
1346 Feature_req_word uint32
1347}
1348
1349type TpacketStats struct {
1350 Packets uint32
1351 Drops uint32
1352}
1353
1354type TpacketStatsV3 struct {
1355 Packets uint32
1356 Drops uint32
1357 Freeze_q_cnt uint32
1358}
1359
1360type TpacketAuxdata struct {
1361 Status uint32
1362 Len uint32
1363 Snaplen uint32
1364 Mac uint16
1365 Net uint16
1366 Vlan_tci uint16
1367 Vlan_tpid uint16
1368}
1369
1370const (
1371 TPACKET_V1 = 0x0
1372 TPACKET_V2 = 0x1
1373 TPACKET_V3 = 0x2
1374)
1375
1376const (
1377 SizeofTpacketHdr = 0x18
1378 SizeofTpacket2Hdr = 0x20
1379 SizeofTpacket3Hdr = 0x30
1380)
1381
1382const (
1383 NF_INET_PRE_ROUTING = 0x0
1384 NF_INET_LOCAL_IN = 0x1
1385 NF_INET_FORWARD = 0x2
1386 NF_INET_LOCAL_OUT = 0x3
1387 NF_INET_POST_ROUTING = 0x4
1388 NF_INET_NUMHOOKS = 0x5
1389)
1390
1391const (
1392 NF_NETDEV_INGRESS = 0x0
1393 NF_NETDEV_NUMHOOKS = 0x1
1394)
1395
1396const (
1397 NFPROTO_UNSPEC = 0x0
1398 NFPROTO_INET = 0x1
1399 NFPROTO_IPV4 = 0x2
1400 NFPROTO_ARP = 0x3
1401 NFPROTO_NETDEV = 0x5
1402 NFPROTO_BRIDGE = 0x7
1403 NFPROTO_IPV6 = 0xa
1404 NFPROTO_DECNET = 0xc
1405 NFPROTO_NUMPROTO = 0xd
1406)
1407
1408type Nfgenmsg struct {
1409 Nfgen_family uint8
1410 Version uint8
1411 Res_id uint16
1412}
1413
1414const (
1415 NFNL_BATCH_UNSPEC = 0x0
1416 NFNL_BATCH_GENID = 0x1
1417)
1418
1419const (
1420 NFT_REG_VERDICT = 0x0
1421 NFT_REG_1 = 0x1
1422 NFT_REG_2 = 0x2
1423 NFT_REG_3 = 0x3
1424 NFT_REG_4 = 0x4
1425 NFT_REG32_00 = 0x8
1426 NFT_REG32_01 = 0x9
1427 NFT_REG32_02 = 0xa
1428 NFT_REG32_03 = 0xb
1429 NFT_REG32_04 = 0xc
1430 NFT_REG32_05 = 0xd
1431 NFT_REG32_06 = 0xe
1432 NFT_REG32_07 = 0xf
1433 NFT_REG32_08 = 0x10
1434 NFT_REG32_09 = 0x11
1435 NFT_REG32_10 = 0x12
1436 NFT_REG32_11 = 0x13
1437 NFT_REG32_12 = 0x14
1438 NFT_REG32_13 = 0x15
1439 NFT_REG32_14 = 0x16
1440 NFT_REG32_15 = 0x17
1441 NFT_CONTINUE = -0x1
1442 NFT_BREAK = -0x2
1443 NFT_JUMP = -0x3
1444 NFT_GOTO = -0x4
1445 NFT_RETURN = -0x5
1446 NFT_MSG_NEWTABLE = 0x0
1447 NFT_MSG_GETTABLE = 0x1
1448 NFT_MSG_DELTABLE = 0x2
1449 NFT_MSG_NEWCHAIN = 0x3
1450 NFT_MSG_GETCHAIN = 0x4
1451 NFT_MSG_DELCHAIN = 0x5
1452 NFT_MSG_NEWRULE = 0x6
1453 NFT_MSG_GETRULE = 0x7
1454 NFT_MSG_DELRULE = 0x8
1455 NFT_MSG_NEWSET = 0x9
1456 NFT_MSG_GETSET = 0xa
1457 NFT_MSG_DELSET = 0xb
1458 NFT_MSG_NEWSETELEM = 0xc
1459 NFT_MSG_GETSETELEM = 0xd
1460 NFT_MSG_DELSETELEM = 0xe
1461 NFT_MSG_NEWGEN = 0xf
1462 NFT_MSG_GETGEN = 0x10
1463 NFT_MSG_TRACE = 0x11
1464 NFT_MSG_NEWOBJ = 0x12
1465 NFT_MSG_GETOBJ = 0x13
1466 NFT_MSG_DELOBJ = 0x14
1467 NFT_MSG_GETOBJ_RESET = 0x15
1468 NFT_MSG_MAX = 0x19
1469 NFTA_LIST_UNPEC = 0x0
1470 NFTA_LIST_ELEM = 0x1
1471 NFTA_HOOK_UNSPEC = 0x0
1472 NFTA_HOOK_HOOKNUM = 0x1
1473 NFTA_HOOK_PRIORITY = 0x2
1474 NFTA_HOOK_DEV = 0x3
1475 NFT_TABLE_F_DORMANT = 0x1
1476 NFTA_TABLE_UNSPEC = 0x0
1477 NFTA_TABLE_NAME = 0x1
1478 NFTA_TABLE_FLAGS = 0x2
1479 NFTA_TABLE_USE = 0x3
1480 NFTA_CHAIN_UNSPEC = 0x0
1481 NFTA_CHAIN_TABLE = 0x1
1482 NFTA_CHAIN_HANDLE = 0x2
1483 NFTA_CHAIN_NAME = 0x3
1484 NFTA_CHAIN_HOOK = 0x4
1485 NFTA_CHAIN_POLICY = 0x5
1486 NFTA_CHAIN_USE = 0x6
1487 NFTA_CHAIN_TYPE = 0x7
1488 NFTA_CHAIN_COUNTERS = 0x8
1489 NFTA_CHAIN_PAD = 0x9
1490 NFTA_RULE_UNSPEC = 0x0
1491 NFTA_RULE_TABLE = 0x1
1492 NFTA_RULE_CHAIN = 0x2
1493 NFTA_RULE_HANDLE = 0x3
1494 NFTA_RULE_EXPRESSIONS = 0x4
1495 NFTA_RULE_COMPAT = 0x5
1496 NFTA_RULE_POSITION = 0x6
1497 NFTA_RULE_USERDATA = 0x7
1498 NFTA_RULE_PAD = 0x8
1499 NFTA_RULE_ID = 0x9
1500 NFT_RULE_COMPAT_F_INV = 0x2
1501 NFT_RULE_COMPAT_F_MASK = 0x2
1502 NFTA_RULE_COMPAT_UNSPEC = 0x0
1503 NFTA_RULE_COMPAT_PROTO = 0x1
1504 NFTA_RULE_COMPAT_FLAGS = 0x2
1505 NFT_SET_ANONYMOUS = 0x1
1506 NFT_SET_CONSTANT = 0x2
1507 NFT_SET_INTERVAL = 0x4
1508 NFT_SET_MAP = 0x8
1509 NFT_SET_TIMEOUT = 0x10
1510 NFT_SET_EVAL = 0x20
1511 NFT_SET_OBJECT = 0x40
1512 NFT_SET_POL_PERFORMANCE = 0x0
1513 NFT_SET_POL_MEMORY = 0x1
1514 NFTA_SET_DESC_UNSPEC = 0x0
1515 NFTA_SET_DESC_SIZE = 0x1
1516 NFTA_SET_UNSPEC = 0x0
1517 NFTA_SET_TABLE = 0x1
1518 NFTA_SET_NAME = 0x2
1519 NFTA_SET_FLAGS = 0x3
1520 NFTA_SET_KEY_TYPE = 0x4
1521 NFTA_SET_KEY_LEN = 0x5
1522 NFTA_SET_DATA_TYPE = 0x6
1523 NFTA_SET_DATA_LEN = 0x7
1524 NFTA_SET_POLICY = 0x8
1525 NFTA_SET_DESC = 0x9
1526 NFTA_SET_ID = 0xa
1527 NFTA_SET_TIMEOUT = 0xb
1528 NFTA_SET_GC_INTERVAL = 0xc
1529 NFTA_SET_USERDATA = 0xd
1530 NFTA_SET_PAD = 0xe
1531 NFTA_SET_OBJ_TYPE = 0xf
1532 NFT_SET_ELEM_INTERVAL_END = 0x1
1533 NFTA_SET_ELEM_UNSPEC = 0x0
1534 NFTA_SET_ELEM_KEY = 0x1
1535 NFTA_SET_ELEM_DATA = 0x2
1536 NFTA_SET_ELEM_FLAGS = 0x3
1537 NFTA_SET_ELEM_TIMEOUT = 0x4
1538 NFTA_SET_ELEM_EXPIRATION = 0x5
1539 NFTA_SET_ELEM_USERDATA = 0x6
1540 NFTA_SET_ELEM_EXPR = 0x7
1541 NFTA_SET_ELEM_PAD = 0x8
1542 NFTA_SET_ELEM_OBJREF = 0x9
1543 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1544 NFTA_SET_ELEM_LIST_TABLE = 0x1
1545 NFTA_SET_ELEM_LIST_SET = 0x2
1546 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1547 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1548 NFT_DATA_VALUE = 0x0
1549 NFT_DATA_VERDICT = 0xffffff00
1550 NFTA_DATA_UNSPEC = 0x0
1551 NFTA_DATA_VALUE = 0x1
1552 NFTA_DATA_VERDICT = 0x2
1553 NFTA_VERDICT_UNSPEC = 0x0
1554 NFTA_VERDICT_CODE = 0x1
1555 NFTA_VERDICT_CHAIN = 0x2
1556 NFTA_EXPR_UNSPEC = 0x0
1557 NFTA_EXPR_NAME = 0x1
1558 NFTA_EXPR_DATA = 0x2
1559 NFTA_IMMEDIATE_UNSPEC = 0x0
1560 NFTA_IMMEDIATE_DREG = 0x1
1561 NFTA_IMMEDIATE_DATA = 0x2
1562 NFTA_BITWISE_UNSPEC = 0x0
1563 NFTA_BITWISE_SREG = 0x1
1564 NFTA_BITWISE_DREG = 0x2
1565 NFTA_BITWISE_LEN = 0x3
1566 NFTA_BITWISE_MASK = 0x4
1567 NFTA_BITWISE_XOR = 0x5
1568 NFT_BYTEORDER_NTOH = 0x0
1569 NFT_BYTEORDER_HTON = 0x1
1570 NFTA_BYTEORDER_UNSPEC = 0x0
1571 NFTA_BYTEORDER_SREG = 0x1
1572 NFTA_BYTEORDER_DREG = 0x2
1573 NFTA_BYTEORDER_OP = 0x3
1574 NFTA_BYTEORDER_LEN = 0x4
1575 NFTA_BYTEORDER_SIZE = 0x5
1576 NFT_CMP_EQ = 0x0
1577 NFT_CMP_NEQ = 0x1
1578 NFT_CMP_LT = 0x2
1579 NFT_CMP_LTE = 0x3
1580 NFT_CMP_GT = 0x4
1581 NFT_CMP_GTE = 0x5
1582 NFTA_CMP_UNSPEC = 0x0
1583 NFTA_CMP_SREG = 0x1
1584 NFTA_CMP_OP = 0x2
1585 NFTA_CMP_DATA = 0x3
1586 NFT_RANGE_EQ = 0x0
1587 NFT_RANGE_NEQ = 0x1
1588 NFTA_RANGE_UNSPEC = 0x0
1589 NFTA_RANGE_SREG = 0x1
1590 NFTA_RANGE_OP = 0x2
1591 NFTA_RANGE_FROM_DATA = 0x3
1592 NFTA_RANGE_TO_DATA = 0x4
1593 NFT_LOOKUP_F_INV = 0x1
1594 NFTA_LOOKUP_UNSPEC = 0x0
1595 NFTA_LOOKUP_SET = 0x1
1596 NFTA_LOOKUP_SREG = 0x2
1597 NFTA_LOOKUP_DREG = 0x3
1598 NFTA_LOOKUP_SET_ID = 0x4
1599 NFTA_LOOKUP_FLAGS = 0x5
1600 NFT_DYNSET_OP_ADD = 0x0
1601 NFT_DYNSET_OP_UPDATE = 0x1
1602 NFT_DYNSET_F_INV = 0x1
1603 NFTA_DYNSET_UNSPEC = 0x0
1604 NFTA_DYNSET_SET_NAME = 0x1
1605 NFTA_DYNSET_SET_ID = 0x2
1606 NFTA_DYNSET_OP = 0x3
1607 NFTA_DYNSET_SREG_KEY = 0x4
1608 NFTA_DYNSET_SREG_DATA = 0x5
1609 NFTA_DYNSET_TIMEOUT = 0x6
1610 NFTA_DYNSET_EXPR = 0x7
1611 NFTA_DYNSET_PAD = 0x8
1612 NFTA_DYNSET_FLAGS = 0x9
1613 NFT_PAYLOAD_LL_HEADER = 0x0
1614 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1615 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1616 NFT_PAYLOAD_CSUM_NONE = 0x0
1617 NFT_PAYLOAD_CSUM_INET = 0x1
1618 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1619 NFTA_PAYLOAD_UNSPEC = 0x0
1620 NFTA_PAYLOAD_DREG = 0x1
1621 NFTA_PAYLOAD_BASE = 0x2
1622 NFTA_PAYLOAD_OFFSET = 0x3
1623 NFTA_PAYLOAD_LEN = 0x4
1624 NFTA_PAYLOAD_SREG = 0x5
1625 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1626 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1627 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1628 NFT_EXTHDR_F_PRESENT = 0x1
1629 NFT_EXTHDR_OP_IPV6 = 0x0
1630 NFT_EXTHDR_OP_TCPOPT = 0x1
1631 NFTA_EXTHDR_UNSPEC = 0x0
1632 NFTA_EXTHDR_DREG = 0x1
1633 NFTA_EXTHDR_TYPE = 0x2
1634 NFTA_EXTHDR_OFFSET = 0x3
1635 NFTA_EXTHDR_LEN = 0x4
1636 NFTA_EXTHDR_FLAGS = 0x5
1637 NFTA_EXTHDR_OP = 0x6
1638 NFTA_EXTHDR_SREG = 0x7
1639 NFT_META_LEN = 0x0
1640 NFT_META_PROTOCOL = 0x1
1641 NFT_META_PRIORITY = 0x2
1642 NFT_META_MARK = 0x3
1643 NFT_META_IIF = 0x4
1644 NFT_META_OIF = 0x5
1645 NFT_META_IIFNAME = 0x6
1646 NFT_META_OIFNAME = 0x7
1647 NFT_META_IIFTYPE = 0x8
1648 NFT_META_OIFTYPE = 0x9
1649 NFT_META_SKUID = 0xa
1650 NFT_META_SKGID = 0xb
1651 NFT_META_NFTRACE = 0xc
1652 NFT_META_RTCLASSID = 0xd
1653 NFT_META_SECMARK = 0xe
1654 NFT_META_NFPROTO = 0xf
1655 NFT_META_L4PROTO = 0x10
1656 NFT_META_BRI_IIFNAME = 0x11
1657 NFT_META_BRI_OIFNAME = 0x12
1658 NFT_META_PKTTYPE = 0x13
1659 NFT_META_CPU = 0x14
1660 NFT_META_IIFGROUP = 0x15
1661 NFT_META_OIFGROUP = 0x16
1662 NFT_META_CGROUP = 0x17
1663 NFT_META_PRANDOM = 0x18
1664 NFT_RT_CLASSID = 0x0
1665 NFT_RT_NEXTHOP4 = 0x1
1666 NFT_RT_NEXTHOP6 = 0x2
1667 NFT_RT_TCPMSS = 0x3
1668 NFT_HASH_JENKINS = 0x0
1669 NFT_HASH_SYM = 0x1
1670 NFTA_HASH_UNSPEC = 0x0
1671 NFTA_HASH_SREG = 0x1
1672 NFTA_HASH_DREG = 0x2
1673 NFTA_HASH_LEN = 0x3
1674 NFTA_HASH_MODULUS = 0x4
1675 NFTA_HASH_SEED = 0x5
1676 NFTA_HASH_OFFSET = 0x6
1677 NFTA_HASH_TYPE = 0x7
1678 NFTA_META_UNSPEC = 0x0
1679 NFTA_META_DREG = 0x1
1680 NFTA_META_KEY = 0x2
1681 NFTA_META_SREG = 0x3
1682 NFTA_RT_UNSPEC = 0x0
1683 NFTA_RT_DREG = 0x1
1684 NFTA_RT_KEY = 0x2
1685 NFT_CT_STATE = 0x0
1686 NFT_CT_DIRECTION = 0x1
1687 NFT_CT_STATUS = 0x2
1688 NFT_CT_MARK = 0x3
1689 NFT_CT_SECMARK = 0x4
1690 NFT_CT_EXPIRATION = 0x5
1691 NFT_CT_HELPER = 0x6
1692 NFT_CT_L3PROTOCOL = 0x7
1693 NFT_CT_SRC = 0x8
1694 NFT_CT_DST = 0x9
1695 NFT_CT_PROTOCOL = 0xa
1696 NFT_CT_PROTO_SRC = 0xb
1697 NFT_CT_PROTO_DST = 0xc
1698 NFT_CT_LABELS = 0xd
1699 NFT_CT_PKTS = 0xe
1700 NFT_CT_BYTES = 0xf
1701 NFT_CT_AVGPKT = 0x10
1702 NFT_CT_ZONE = 0x11
1703 NFT_CT_EVENTMASK = 0x12
1704 NFTA_CT_UNSPEC = 0x0
1705 NFTA_CT_DREG = 0x1
1706 NFTA_CT_KEY = 0x2
1707 NFTA_CT_DIRECTION = 0x3
1708 NFTA_CT_SREG = 0x4
1709 NFT_LIMIT_PKTS = 0x0
1710 NFT_LIMIT_PKT_BYTES = 0x1
1711 NFT_LIMIT_F_INV = 0x1
1712 NFTA_LIMIT_UNSPEC = 0x0
1713 NFTA_LIMIT_RATE = 0x1
1714 NFTA_LIMIT_UNIT = 0x2
1715 NFTA_LIMIT_BURST = 0x3
1716 NFTA_LIMIT_TYPE = 0x4
1717 NFTA_LIMIT_FLAGS = 0x5
1718 NFTA_LIMIT_PAD = 0x6
1719 NFTA_COUNTER_UNSPEC = 0x0
1720 NFTA_COUNTER_BYTES = 0x1
1721 NFTA_COUNTER_PACKETS = 0x2
1722 NFTA_COUNTER_PAD = 0x3
1723 NFTA_LOG_UNSPEC = 0x0
1724 NFTA_LOG_GROUP = 0x1
1725 NFTA_LOG_PREFIX = 0x2
1726 NFTA_LOG_SNAPLEN = 0x3
1727 NFTA_LOG_QTHRESHOLD = 0x4
1728 NFTA_LOG_LEVEL = 0x5
1729 NFTA_LOG_FLAGS = 0x6
1730 NFTA_QUEUE_UNSPEC = 0x0
1731 NFTA_QUEUE_NUM = 0x1
1732 NFTA_QUEUE_TOTAL = 0x2
1733 NFTA_QUEUE_FLAGS = 0x3
1734 NFTA_QUEUE_SREG_QNUM = 0x4
1735 NFT_QUOTA_F_INV = 0x1
1736 NFT_QUOTA_F_DEPLETED = 0x2
1737 NFTA_QUOTA_UNSPEC = 0x0
1738 NFTA_QUOTA_BYTES = 0x1
1739 NFTA_QUOTA_FLAGS = 0x2
1740 NFTA_QUOTA_PAD = 0x3
1741 NFTA_QUOTA_CONSUMED = 0x4
1742 NFT_REJECT_ICMP_UNREACH = 0x0
1743 NFT_REJECT_TCP_RST = 0x1
1744 NFT_REJECT_ICMPX_UNREACH = 0x2
1745 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1746 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1747 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1748 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1749 NFTA_REJECT_UNSPEC = 0x0
1750 NFTA_REJECT_TYPE = 0x1
1751 NFTA_REJECT_ICMP_CODE = 0x2
1752 NFT_NAT_SNAT = 0x0
1753 NFT_NAT_DNAT = 0x1
1754 NFTA_NAT_UNSPEC = 0x0
1755 NFTA_NAT_TYPE = 0x1
1756 NFTA_NAT_FAMILY = 0x2
1757 NFTA_NAT_REG_ADDR_MIN = 0x3
1758 NFTA_NAT_REG_ADDR_MAX = 0x4
1759 NFTA_NAT_REG_PROTO_MIN = 0x5
1760 NFTA_NAT_REG_PROTO_MAX = 0x6
1761 NFTA_NAT_FLAGS = 0x7
1762 NFTA_MASQ_UNSPEC = 0x0
1763 NFTA_MASQ_FLAGS = 0x1
1764 NFTA_MASQ_REG_PROTO_MIN = 0x2
1765 NFTA_MASQ_REG_PROTO_MAX = 0x3
1766 NFTA_REDIR_UNSPEC = 0x0
1767 NFTA_REDIR_REG_PROTO_MIN = 0x1
1768 NFTA_REDIR_REG_PROTO_MAX = 0x2
1769 NFTA_REDIR_FLAGS = 0x3
1770 NFTA_DUP_UNSPEC = 0x0
1771 NFTA_DUP_SREG_ADDR = 0x1
1772 NFTA_DUP_SREG_DEV = 0x2
1773 NFTA_FWD_UNSPEC = 0x0
1774 NFTA_FWD_SREG_DEV = 0x1
1775 NFTA_OBJREF_UNSPEC = 0x0
1776 NFTA_OBJREF_IMM_TYPE = 0x1
1777 NFTA_OBJREF_IMM_NAME = 0x2
1778 NFTA_OBJREF_SET_SREG = 0x3
1779 NFTA_OBJREF_SET_NAME = 0x4
1780 NFTA_OBJREF_SET_ID = 0x5
1781 NFTA_GEN_UNSPEC = 0x0
1782 NFTA_GEN_ID = 0x1
1783 NFTA_GEN_PROC_PID = 0x2
1784 NFTA_GEN_PROC_NAME = 0x3
1785 NFTA_FIB_UNSPEC = 0x0
1786 NFTA_FIB_DREG = 0x1
1787 NFTA_FIB_RESULT = 0x2
1788 NFTA_FIB_FLAGS = 0x3
1789 NFT_FIB_RESULT_UNSPEC = 0x0
1790 NFT_FIB_RESULT_OIF = 0x1
1791 NFT_FIB_RESULT_OIFNAME = 0x2
1792 NFT_FIB_RESULT_ADDRTYPE = 0x3
1793 NFTA_FIB_F_SADDR = 0x1
1794 NFTA_FIB_F_DADDR = 0x2
1795 NFTA_FIB_F_MARK = 0x4
1796 NFTA_FIB_F_IIF = 0x8
1797 NFTA_FIB_F_OIF = 0x10
1798 NFTA_FIB_F_PRESENT = 0x20
1799 NFTA_CT_HELPER_UNSPEC = 0x0
1800 NFTA_CT_HELPER_NAME = 0x1
1801 NFTA_CT_HELPER_L3PROTO = 0x2
1802 NFTA_CT_HELPER_L4PROTO = 0x3
1803 NFTA_OBJ_UNSPEC = 0x0
1804 NFTA_OBJ_TABLE = 0x1
1805 NFTA_OBJ_NAME = 0x2
1806 NFTA_OBJ_TYPE = 0x3
1807 NFTA_OBJ_DATA = 0x4
1808 NFTA_OBJ_USE = 0x5
1809 NFTA_TRACE_UNSPEC = 0x0
1810 NFTA_TRACE_TABLE = 0x1
1811 NFTA_TRACE_CHAIN = 0x2
1812 NFTA_TRACE_RULE_HANDLE = 0x3
1813 NFTA_TRACE_TYPE = 0x4
1814 NFTA_TRACE_VERDICT = 0x5
1815 NFTA_TRACE_ID = 0x6
1816 NFTA_TRACE_LL_HEADER = 0x7
1817 NFTA_TRACE_NETWORK_HEADER = 0x8
1818 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1819 NFTA_TRACE_IIF = 0xa
1820 NFTA_TRACE_IIFTYPE = 0xb
1821 NFTA_TRACE_OIF = 0xc
1822 NFTA_TRACE_OIFTYPE = 0xd
1823 NFTA_TRACE_MARK = 0xe
1824 NFTA_TRACE_NFPROTO = 0xf
1825 NFTA_TRACE_POLICY = 0x10
1826 NFTA_TRACE_PAD = 0x11
1827 NFT_TRACETYPE_UNSPEC = 0x0
1828 NFT_TRACETYPE_POLICY = 0x1
1829 NFT_TRACETYPE_RETURN = 0x2
1830 NFT_TRACETYPE_RULE = 0x3
1831 NFTA_NG_UNSPEC = 0x0
1832 NFTA_NG_DREG = 0x1
1833 NFTA_NG_MODULUS = 0x2
1834 NFTA_NG_TYPE = 0x3
1835 NFTA_NG_OFFSET = 0x4
1836 NFT_NG_INCREMENTAL = 0x0
1837 NFT_NG_RANDOM = 0x1
1838)
1839
1840type RTCTime struct {
1841 Sec int32
1842 Min int32
1843 Hour int32
1844 Mday int32
1845 Mon int32
1846 Year int32
1847 Wday int32
1848 Yday int32
1849 Isdst int32
1850}
1851
1852type RTCWkAlrm struct {
1853 Enabled uint8
1854 Pending uint8
1855 _ [2]byte
1856 Time RTCTime
1857}
1858
1859type RTCPLLInfo struct {
1860 Ctrl int32
1861 Value int32
1862 Max int32
1863 Min int32
1864 Posmult int32
1865 Negmult int32
1866 Clock int32
1867}
1868
1869type BlkpgIoctlArg struct {
1870 Op int32
1871 Flags int32
1872 Datalen int32
1873 Data *byte
1874}
1875
1876type BlkpgPartition struct {
1877 Start int64
1878 Length int64
1879 Pno int32
1880 Devname [64]uint8
1881 Volname [64]uint8
1882 _ [4]byte
1883}
1884
1885const (
1886 BLKPG = 0x1269
1887 BLKPG_ADD_PARTITION = 0x1
1888 BLKPG_DEL_PARTITION = 0x2
1889 BLKPG_RESIZE_PARTITION = 0x3
1890)
1891
1892const (
1893 NETNSA_NONE = 0x0
1894 NETNSA_NSID = 0x1
1895 NETNSA_PID = 0x2
1896 NETNSA_FD = 0x3
1897)
1898
1899type XDPRingOffset struct {
1900 Producer uint64
1901 Consumer uint64
1902 Desc uint64
1903}
1904
1905type XDPMmapOffsets struct {
1906 Rx XDPRingOffset
1907 Tx XDPRingOffset
1908 Fr XDPRingOffset
1909 Cr XDPRingOffset
1910}
1911
1912type XDPUmemReg struct {
1913 Addr uint64
1914 Len uint64
1915 Size uint32
1916 Headroom uint32
1917}
1918
1919type XDPStatistics struct {
1920 Rx_dropped uint64
1921 Rx_invalid_descs uint64
1922 Tx_invalid_descs uint64
1923}
1924
1925type XDPDesc struct {
1926 Addr uint64
1927 Len uint32
1928 Options uint32
1929}
1930
1931const (
1932 NCSI_CMD_UNSPEC = 0x0
1933 NCSI_CMD_PKG_INFO = 0x1
1934 NCSI_CMD_SET_INTERFACE = 0x2
1935 NCSI_CMD_CLEAR_INTERFACE = 0x3
1936 NCSI_ATTR_UNSPEC = 0x0
1937 NCSI_ATTR_IFINDEX = 0x1
1938 NCSI_ATTR_PACKAGE_LIST = 0x2
1939 NCSI_ATTR_PACKAGE_ID = 0x3
1940 NCSI_ATTR_CHANNEL_ID = 0x4
1941 NCSI_PKG_ATTR_UNSPEC = 0x0
1942 NCSI_PKG_ATTR = 0x1
1943 NCSI_PKG_ATTR_ID = 0x2
1944 NCSI_PKG_ATTR_FORCED = 0x3
1945 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1946 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1947 NCSI_CHANNEL_ATTR = 0x1
1948 NCSI_CHANNEL_ATTR_ID = 0x2
1949 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1950 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1951 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1952 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1953 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1954 NCSI_CHANNEL_ATTR_FORCED = 0x8
1955 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1956 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1957)
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 0d0de46..b5fe7dd 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -106,10 +106,10 @@ type Stat_t struct {
106 Uid uint32 106 Uid uint32
107 Gid uint32 107 Gid uint32
108 Rdev uint64 108 Rdev uint64
109 X__pad1 uint64 109 _ uint64
110 Size int64 110 Size int64
111 Blksize int32 111 Blksize int32
112 X__pad2 int32 112 _ int32
113 Blocks int64 113 Blocks int64
114 Atim Timespec 114 Atim Timespec
115 Mtim Timespec 115 Mtim Timespec
@@ -117,25 +117,10 @@ type Stat_t struct {
117 _ [2]int32 117 _ [2]int32
118} 118}
119 119
120type Statfs_t struct {
121 Type int64
122 Bsize int64
123 Blocks uint64
124 Bfree uint64
125 Bavail uint64
126 Files uint64
127 Ffree uint64
128 Fsid Fsid
129 Namelen int64
130 Frsize int64
131 Flags int64
132 Spare [4]int64
133}
134
135type StatxTimestamp struct { 120type StatxTimestamp struct {
136 Sec int64 121 Sec int64
137 Nsec uint32 122 Nsec uint32
138 X__reserved int32 123 _ int32
139} 124}
140 125
141type Statx_t struct { 126type Statx_t struct {
@@ -172,7 +157,7 @@ type Dirent struct {
172} 157}
173 158
174type Fsid struct { 159type Fsid struct {
175 X__val [2]int32 160 Val [2]int32
176} 161}
177 162
178type Flock_t struct { 163type Flock_t struct {
@@ -266,6 +251,13 @@ type RawSockaddrL2 struct {
266 _ [1]byte 251 _ [1]byte
267} 252}
268 253
254type RawSockaddrRFCOMM struct {
255 Family uint16
256 Bdaddr [6]uint8
257 Channel uint8
258 _ [1]byte
259}
260
269type RawSockaddrCAN struct { 261type RawSockaddrCAN struct {
270 Family uint16 262 Family uint16
271 _ [2]byte 263 _ [2]byte
@@ -289,6 +281,14 @@ type RawSockaddrVM struct {
289 Zero [4]uint8 281 Zero [4]uint8
290} 282}
291 283
284type RawSockaddrXDP struct {
285 Family uint16
286 Flags uint16
287 Ifindex uint32
288 Queue_id uint32
289 Shared_umem_fd uint32
290}
291
292type RawSockaddr struct { 292type RawSockaddr struct {
293 Family uint16 293 Family uint16
294 Data [14]int8 294 Data [14]int8
@@ -421,9 +421,11 @@ const (
421 SizeofSockaddrNetlink = 0xc 421 SizeofSockaddrNetlink = 0xc
422 SizeofSockaddrHCI = 0x6 422 SizeofSockaddrHCI = 0x6
423 SizeofSockaddrL2 = 0xe 423 SizeofSockaddrL2 = 0xe
424 SizeofSockaddrRFCOMM = 0xa
424 SizeofSockaddrCAN = 0x10 425 SizeofSockaddrCAN = 0x10
425 SizeofSockaddrALG = 0x58 426 SizeofSockaddrALG = 0x58
426 SizeofSockaddrVM = 0x10 427 SizeofSockaddrVM = 0x10
428 SizeofSockaddrXDP = 0x10
427 SizeofLinger = 0x8 429 SizeofLinger = 0x8
428 SizeofIovec = 0x10 430 SizeofIovec = 0x10
429 SizeofIPMreq = 0x8 431 SizeofIPMreq = 0x8
@@ -441,97 +443,138 @@ const (
441) 443)
442 444
443const ( 445const (
444 IFA_UNSPEC = 0x0 446 IFA_UNSPEC = 0x0
445 IFA_ADDRESS = 0x1 447 IFA_ADDRESS = 0x1
446 IFA_LOCAL = 0x2 448 IFA_LOCAL = 0x2
447 IFA_LABEL = 0x3 449 IFA_LABEL = 0x3
448 IFA_BROADCAST = 0x4 450 IFA_BROADCAST = 0x4
449 IFA_ANYCAST = 0x5 451 IFA_ANYCAST = 0x5
450 IFA_CACHEINFO = 0x6 452 IFA_CACHEINFO = 0x6
451 IFA_MULTICAST = 0x7 453 IFA_MULTICAST = 0x7
452 IFLA_UNSPEC = 0x0 454 IFLA_UNSPEC = 0x0
453 IFLA_ADDRESS = 0x1 455 IFLA_ADDRESS = 0x1
454 IFLA_BROADCAST = 0x2 456 IFLA_BROADCAST = 0x2
455 IFLA_IFNAME = 0x3 457 IFLA_IFNAME = 0x3
456 IFLA_MTU = 0x4 458 IFLA_INFO_KIND = 0x1
457 IFLA_LINK = 0x5 459 IFLA_MTU = 0x4
458 IFLA_QDISC = 0x6 460 IFLA_LINK = 0x5
459 IFLA_STATS = 0x7 461 IFLA_QDISC = 0x6
460 IFLA_COST = 0x8 462 IFLA_STATS = 0x7
461 IFLA_PRIORITY = 0x9 463 IFLA_COST = 0x8
462 IFLA_MASTER = 0xa 464 IFLA_PRIORITY = 0x9
463 IFLA_WIRELESS = 0xb 465 IFLA_MASTER = 0xa
464 IFLA_PROTINFO = 0xc 466 IFLA_WIRELESS = 0xb
465 IFLA_TXQLEN = 0xd 467 IFLA_PROTINFO = 0xc
466 IFLA_MAP = 0xe 468 IFLA_TXQLEN = 0xd
467 IFLA_WEIGHT = 0xf 469 IFLA_MAP = 0xe
468 IFLA_OPERSTATE = 0x10 470 IFLA_WEIGHT = 0xf
469 IFLA_LINKMODE = 0x11 471 IFLA_OPERSTATE = 0x10
470 IFLA_LINKINFO = 0x12 472 IFLA_LINKMODE = 0x11
471 IFLA_NET_NS_PID = 0x13 473 IFLA_LINKINFO = 0x12
472 IFLA_IFALIAS = 0x14 474 IFLA_NET_NS_PID = 0x13
473 IFLA_MAX = 0x2c 475 IFLA_IFALIAS = 0x14
474 RT_SCOPE_UNIVERSE = 0x0 476 IFLA_NUM_VF = 0x15
475 RT_SCOPE_SITE = 0xc8 477 IFLA_VFINFO_LIST = 0x16
476 RT_SCOPE_LINK = 0xfd 478 IFLA_STATS64 = 0x17
477 RT_SCOPE_HOST = 0xfe 479 IFLA_VF_PORTS = 0x18
478 RT_SCOPE_NOWHERE = 0xff 480 IFLA_PORT_SELF = 0x19
479 RT_TABLE_UNSPEC = 0x0 481 IFLA_AF_SPEC = 0x1a
480 RT_TABLE_COMPAT = 0xfc 482 IFLA_GROUP = 0x1b
481 RT_TABLE_DEFAULT = 0xfd 483 IFLA_NET_NS_FD = 0x1c
482 RT_TABLE_MAIN = 0xfe 484 IFLA_EXT_MASK = 0x1d
483 RT_TABLE_LOCAL = 0xff 485 IFLA_PROMISCUITY = 0x1e
484 RT_TABLE_MAX = 0xffffffff 486 IFLA_NUM_TX_QUEUES = 0x1f
485 RTA_UNSPEC = 0x0 487 IFLA_NUM_RX_QUEUES = 0x20
486 RTA_DST = 0x1 488 IFLA_CARRIER = 0x21
487 RTA_SRC = 0x2 489 IFLA_PHYS_PORT_ID = 0x22
488 RTA_IIF = 0x3 490 IFLA_CARRIER_CHANGES = 0x23
489 RTA_OIF = 0x4 491 IFLA_PHYS_SWITCH_ID = 0x24
490 RTA_GATEWAY = 0x5 492 IFLA_LINK_NETNSID = 0x25
491 RTA_PRIORITY = 0x6 493 IFLA_PHYS_PORT_NAME = 0x26
492 RTA_PREFSRC = 0x7 494 IFLA_PROTO_DOWN = 0x27
493 RTA_METRICS = 0x8 495 IFLA_GSO_MAX_SEGS = 0x28
494 RTA_MULTIPATH = 0x9 496 IFLA_GSO_MAX_SIZE = 0x29
495 RTA_FLOW = 0xb 497 IFLA_PAD = 0x2a
496 RTA_CACHEINFO = 0xc 498 IFLA_XDP = 0x2b
497 RTA_TABLE = 0xf 499 IFLA_EVENT = 0x2c
498 RTN_UNSPEC = 0x0 500 IFLA_NEW_NETNSID = 0x2d
499 RTN_UNICAST = 0x1 501 IFLA_IF_NETNSID = 0x2e
500 RTN_LOCAL = 0x2 502 IFLA_MAX = 0x31
501 RTN_BROADCAST = 0x3 503 RT_SCOPE_UNIVERSE = 0x0
502 RTN_ANYCAST = 0x4 504 RT_SCOPE_SITE = 0xc8
503 RTN_MULTICAST = 0x5 505 RT_SCOPE_LINK = 0xfd
504 RTN_BLACKHOLE = 0x6 506 RT_SCOPE_HOST = 0xfe
505 RTN_UNREACHABLE = 0x7 507 RT_SCOPE_NOWHERE = 0xff
506 RTN_PROHIBIT = 0x8 508 RT_TABLE_UNSPEC = 0x0
507 RTN_THROW = 0x9 509 RT_TABLE_COMPAT = 0xfc
508 RTN_NAT = 0xa 510 RT_TABLE_DEFAULT = 0xfd
509 RTN_XRESOLVE = 0xb 511 RT_TABLE_MAIN = 0xfe
510 RTNLGRP_NONE = 0x0 512 RT_TABLE_LOCAL = 0xff
511 RTNLGRP_LINK = 0x1 513 RT_TABLE_MAX = 0xffffffff
512 RTNLGRP_NOTIFY = 0x2 514 RTA_UNSPEC = 0x0
513 RTNLGRP_NEIGH = 0x3 515 RTA_DST = 0x1
514 RTNLGRP_TC = 0x4 516 RTA_SRC = 0x2
515 RTNLGRP_IPV4_IFADDR = 0x5 517 RTA_IIF = 0x3
516 RTNLGRP_IPV4_MROUTE = 0x6 518 RTA_OIF = 0x4
517 RTNLGRP_IPV4_ROUTE = 0x7 519 RTA_GATEWAY = 0x5
518 RTNLGRP_IPV4_RULE = 0x8 520 RTA_PRIORITY = 0x6
519 RTNLGRP_IPV6_IFADDR = 0x9 521 RTA_PREFSRC = 0x7
520 RTNLGRP_IPV6_MROUTE = 0xa 522 RTA_METRICS = 0x8
521 RTNLGRP_IPV6_ROUTE = 0xb 523 RTA_MULTIPATH = 0x9
522 RTNLGRP_IPV6_IFINFO = 0xc 524 RTA_FLOW = 0xb
523 RTNLGRP_IPV6_PREFIX = 0x12 525 RTA_CACHEINFO = 0xc
524 RTNLGRP_IPV6_RULE = 0x13 526 RTA_TABLE = 0xf
525 RTNLGRP_ND_USEROPT = 0x14 527 RTA_MARK = 0x10
526 SizeofNlMsghdr = 0x10 528 RTA_MFC_STATS = 0x11
527 SizeofNlMsgerr = 0x14 529 RTA_VIA = 0x12
528 SizeofRtGenmsg = 0x1 530 RTA_NEWDST = 0x13
529 SizeofNlAttr = 0x4 531 RTA_PREF = 0x14
530 SizeofRtAttr = 0x4 532 RTA_ENCAP_TYPE = 0x15
531 SizeofIfInfomsg = 0x10 533 RTA_ENCAP = 0x16
532 SizeofIfAddrmsg = 0x8 534 RTA_EXPIRES = 0x17
533 SizeofRtMsg = 0xc 535 RTA_PAD = 0x18
534 SizeofRtNexthop = 0x8 536 RTA_UID = 0x19
537 RTA_TTL_PROPAGATE = 0x1a
538 RTA_IP_PROTO = 0x1b
539 RTA_SPORT = 0x1c
540 RTA_DPORT = 0x1d
541 RTN_UNSPEC = 0x0
542 RTN_UNICAST = 0x1
543 RTN_LOCAL = 0x2
544 RTN_BROADCAST = 0x3
545 RTN_ANYCAST = 0x4
546 RTN_MULTICAST = 0x5
547 RTN_BLACKHOLE = 0x6
548 RTN_UNREACHABLE = 0x7
549 RTN_PROHIBIT = 0x8
550 RTN_THROW = 0x9
551 RTN_NAT = 0xa
552 RTN_XRESOLVE = 0xb
553 RTNLGRP_NONE = 0x0
554 RTNLGRP_LINK = 0x1
555 RTNLGRP_NOTIFY = 0x2
556 RTNLGRP_NEIGH = 0x3
557 RTNLGRP_TC = 0x4
558 RTNLGRP_IPV4_IFADDR = 0x5
559 RTNLGRP_IPV4_MROUTE = 0x6
560 RTNLGRP_IPV4_ROUTE = 0x7
561 RTNLGRP_IPV4_RULE = 0x8
562 RTNLGRP_IPV6_IFADDR = 0x9
563 RTNLGRP_IPV6_MROUTE = 0xa
564 RTNLGRP_IPV6_ROUTE = 0xb
565 RTNLGRP_IPV6_IFINFO = 0xc
566 RTNLGRP_IPV6_PREFIX = 0x12
567 RTNLGRP_IPV6_RULE = 0x13
568 RTNLGRP_ND_USEROPT = 0x14
569 SizeofNlMsghdr = 0x10
570 SizeofNlMsgerr = 0x14
571 SizeofRtGenmsg = 0x1
572 SizeofNlAttr = 0x4
573 SizeofRtAttr = 0x4
574 SizeofIfInfomsg = 0x10
575 SizeofIfAddrmsg = 0x8
576 SizeofRtMsg = 0xc
577 SizeofRtNexthop = 0x8
535) 578)
536 579
537type NlMsghdr struct { 580type NlMsghdr struct {
@@ -562,12 +605,12 @@ type RtAttr struct {
562} 605}
563 606
564type IfInfomsg struct { 607type IfInfomsg struct {
565 Family uint8 608 Family uint8
566 X__ifi_pad uint8 609 _ uint8
567 Type uint16 610 Type uint16
568 Index int32 611 Index int32
569 Flags uint32 612 Flags uint32
570 Change uint32 613 Change uint32
571} 614}
572 615
573type IfAddrmsg struct { 616type IfAddrmsg struct {
@@ -650,7 +693,7 @@ type Sysinfo_t struct {
650 Totalhigh uint64 693 Totalhigh uint64
651 Freehigh uint64 694 Freehigh uint64
652 Unit uint32 695 Unit uint32
653 X_f [0]int8 696 _ [0]int8
654 _ [4]byte 697 _ [4]byte
655} 698}
656 699
@@ -691,6 +734,8 @@ const (
691 734
692 AT_SYMLINK_FOLLOW = 0x400 735 AT_SYMLINK_FOLLOW = 0x400
693 AT_SYMLINK_NOFOLLOW = 0x100 736 AT_SYMLINK_NOFOLLOW = 0x100
737
738 AT_EACCESS = 0x200
694) 739)
695 740
696type PollFd struct { 741type PollFd struct {
@@ -710,7 +755,7 @@ const (
710) 755)
711 756
712type Sigset_t struct { 757type Sigset_t struct {
713 X__val [16]uint64 758 Val [16]uint64
714} 759}
715 760
716const RNDGETENTCNT = 0x80045200 761const RNDGETENTCNT = 0x80045200
@@ -866,3 +911,1058 @@ const (
866 BDADDR_LE_PUBLIC = 0x1 911 BDADDR_LE_PUBLIC = 0x1
867 BDADDR_LE_RANDOM = 0x2 912 BDADDR_LE_RANDOM = 0x2
868) 913)
914
915type PerfEventAttr struct {
916 Type uint32
917 Size uint32
918 Config uint64
919 Sample uint64
920 Sample_type uint64
921 Read_format uint64
922 Bits uint64
923 Wakeup uint32
924 Bp_type uint32
925 Ext1 uint64
926 Ext2 uint64
927 Branch_sample_type uint64
928 Sample_regs_user uint64
929 Sample_stack_user uint32
930 Clockid int32
931 Sample_regs_intr uint64
932 Aux_watermark uint32
933 _ uint32
934}
935
936type PerfEventMmapPage struct {
937 Version uint32
938 Compat_version uint32
939 Lock uint32
940 Index uint32
941 Offset int64
942 Time_enabled uint64
943 Time_running uint64
944 Capabilities uint64
945 Pmc_width uint16
946 Time_shift uint16
947 Time_mult uint32
948 Time_offset uint64
949 Time_zero uint64
950 Size uint32
951 _ [948]uint8
952 Data_head uint64
953 Data_tail uint64
954 Data_offset uint64
955 Data_size uint64
956 Aux_head uint64
957 Aux_tail uint64
958 Aux_offset uint64
959 Aux_size uint64
960}
961
962const (
963 PerfBitDisabled uint64 = CBitFieldMaskBit0
964 PerfBitInherit = CBitFieldMaskBit1
965 PerfBitPinned = CBitFieldMaskBit2
966 PerfBitExclusive = CBitFieldMaskBit3
967 PerfBitExcludeUser = CBitFieldMaskBit4
968 PerfBitExcludeKernel = CBitFieldMaskBit5
969 PerfBitExcludeHv = CBitFieldMaskBit6
970 PerfBitExcludeIdle = CBitFieldMaskBit7
971 PerfBitMmap = CBitFieldMaskBit8
972 PerfBitComm = CBitFieldMaskBit9
973 PerfBitFreq = CBitFieldMaskBit10
974 PerfBitInheritStat = CBitFieldMaskBit11
975 PerfBitEnableOnExec = CBitFieldMaskBit12
976 PerfBitTask = CBitFieldMaskBit13
977 PerfBitWatermark = CBitFieldMaskBit14
978 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
979 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
980 PerfBitMmapData = CBitFieldMaskBit17
981 PerfBitSampleIDAll = CBitFieldMaskBit18
982 PerfBitExcludeHost = CBitFieldMaskBit19
983 PerfBitExcludeGuest = CBitFieldMaskBit20
984 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
985 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
986 PerfBitMmap2 = CBitFieldMaskBit23
987 PerfBitCommExec = CBitFieldMaskBit24
988 PerfBitUseClockID = CBitFieldMaskBit25
989 PerfBitContextSwitch = CBitFieldMaskBit26
990)
991
992const (
993 PERF_TYPE_HARDWARE = 0x0
994 PERF_TYPE_SOFTWARE = 0x1
995 PERF_TYPE_TRACEPOINT = 0x2
996 PERF_TYPE_HW_CACHE = 0x3
997 PERF_TYPE_RAW = 0x4
998 PERF_TYPE_BREAKPOINT = 0x5
999
1000 PERF_COUNT_HW_CPU_CYCLES = 0x0
1001 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1002 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1003 PERF_COUNT_HW_CACHE_MISSES = 0x3
1004 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1005 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1006 PERF_COUNT_HW_BUS_CYCLES = 0x6
1007 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1008 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1009 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1010
1011 PERF_COUNT_HW_CACHE_L1D = 0x0
1012 PERF_COUNT_HW_CACHE_L1I = 0x1
1013 PERF_COUNT_HW_CACHE_LL = 0x2
1014 PERF_COUNT_HW_CACHE_DTLB = 0x3
1015 PERF_COUNT_HW_CACHE_ITLB = 0x4
1016 PERF_COUNT_HW_CACHE_BPU = 0x5
1017 PERF_COUNT_HW_CACHE_NODE = 0x6
1018
1019 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1020 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1021 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1022
1023 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1024 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1025
1026 PERF_COUNT_SW_CPU_CLOCK = 0x0
1027 PERF_COUNT_SW_TASK_CLOCK = 0x1
1028 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1029 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1030 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1031 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1032 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1033 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1034 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1035 PERF_COUNT_SW_DUMMY = 0x9
1036
1037 PERF_SAMPLE_IP = 0x1
1038 PERF_SAMPLE_TID = 0x2
1039 PERF_SAMPLE_TIME = 0x4
1040 PERF_SAMPLE_ADDR = 0x8
1041 PERF_SAMPLE_READ = 0x10
1042 PERF_SAMPLE_CALLCHAIN = 0x20
1043 PERF_SAMPLE_ID = 0x40
1044 PERF_SAMPLE_CPU = 0x80
1045 PERF_SAMPLE_PERIOD = 0x100
1046 PERF_SAMPLE_STREAM_ID = 0x200
1047 PERF_SAMPLE_RAW = 0x400
1048 PERF_SAMPLE_BRANCH_STACK = 0x800
1049
1050 PERF_SAMPLE_BRANCH_USER = 0x1
1051 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1052 PERF_SAMPLE_BRANCH_HV = 0x4
1053 PERF_SAMPLE_BRANCH_ANY = 0x8
1054 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1055 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1056 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1057
1058 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1059 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1060 PERF_FORMAT_ID = 0x4
1061 PERF_FORMAT_GROUP = 0x8
1062
1063 PERF_RECORD_MMAP = 0x1
1064 PERF_RECORD_LOST = 0x2
1065 PERF_RECORD_COMM = 0x3
1066 PERF_RECORD_EXIT = 0x4
1067 PERF_RECORD_THROTTLE = 0x5
1068 PERF_RECORD_UNTHROTTLE = 0x6
1069 PERF_RECORD_FORK = 0x7
1070 PERF_RECORD_READ = 0x8
1071 PERF_RECORD_SAMPLE = 0x9
1072
1073 PERF_CONTEXT_HV = -0x20
1074 PERF_CONTEXT_KERNEL = -0x80
1075 PERF_CONTEXT_USER = -0x200
1076
1077 PERF_CONTEXT_GUEST = -0x800
1078 PERF_CONTEXT_GUEST_KERNEL = -0x880
1079 PERF_CONTEXT_GUEST_USER = -0xa00
1080
1081 PERF_FLAG_FD_NO_GROUP = 0x1
1082 PERF_FLAG_FD_OUTPUT = 0x2
1083 PERF_FLAG_PID_CGROUP = 0x4
1084)
1085
1086const (
1087 CBitFieldMaskBit0 = 0x1
1088 CBitFieldMaskBit1 = 0x2
1089 CBitFieldMaskBit2 = 0x4
1090 CBitFieldMaskBit3 = 0x8
1091 CBitFieldMaskBit4 = 0x10
1092 CBitFieldMaskBit5 = 0x20
1093 CBitFieldMaskBit6 = 0x40
1094 CBitFieldMaskBit7 = 0x80
1095 CBitFieldMaskBit8 = 0x100
1096 CBitFieldMaskBit9 = 0x200
1097 CBitFieldMaskBit10 = 0x400
1098 CBitFieldMaskBit11 = 0x800
1099 CBitFieldMaskBit12 = 0x1000
1100 CBitFieldMaskBit13 = 0x2000
1101 CBitFieldMaskBit14 = 0x4000
1102 CBitFieldMaskBit15 = 0x8000
1103 CBitFieldMaskBit16 = 0x10000
1104 CBitFieldMaskBit17 = 0x20000
1105 CBitFieldMaskBit18 = 0x40000
1106 CBitFieldMaskBit19 = 0x80000
1107 CBitFieldMaskBit20 = 0x100000
1108 CBitFieldMaskBit21 = 0x200000
1109 CBitFieldMaskBit22 = 0x400000
1110 CBitFieldMaskBit23 = 0x800000
1111 CBitFieldMaskBit24 = 0x1000000
1112 CBitFieldMaskBit25 = 0x2000000
1113 CBitFieldMaskBit26 = 0x4000000
1114 CBitFieldMaskBit27 = 0x8000000
1115 CBitFieldMaskBit28 = 0x10000000
1116 CBitFieldMaskBit29 = 0x20000000
1117 CBitFieldMaskBit30 = 0x40000000
1118 CBitFieldMaskBit31 = 0x80000000
1119 CBitFieldMaskBit32 = 0x100000000
1120 CBitFieldMaskBit33 = 0x200000000
1121 CBitFieldMaskBit34 = 0x400000000
1122 CBitFieldMaskBit35 = 0x800000000
1123 CBitFieldMaskBit36 = 0x1000000000
1124 CBitFieldMaskBit37 = 0x2000000000
1125 CBitFieldMaskBit38 = 0x4000000000
1126 CBitFieldMaskBit39 = 0x8000000000
1127 CBitFieldMaskBit40 = 0x10000000000
1128 CBitFieldMaskBit41 = 0x20000000000
1129 CBitFieldMaskBit42 = 0x40000000000
1130 CBitFieldMaskBit43 = 0x80000000000
1131 CBitFieldMaskBit44 = 0x100000000000
1132 CBitFieldMaskBit45 = 0x200000000000
1133 CBitFieldMaskBit46 = 0x400000000000
1134 CBitFieldMaskBit47 = 0x800000000000
1135 CBitFieldMaskBit48 = 0x1000000000000
1136 CBitFieldMaskBit49 = 0x2000000000000
1137 CBitFieldMaskBit50 = 0x4000000000000
1138 CBitFieldMaskBit51 = 0x8000000000000
1139 CBitFieldMaskBit52 = 0x10000000000000
1140 CBitFieldMaskBit53 = 0x20000000000000
1141 CBitFieldMaskBit54 = 0x40000000000000
1142 CBitFieldMaskBit55 = 0x80000000000000
1143 CBitFieldMaskBit56 = 0x100000000000000
1144 CBitFieldMaskBit57 = 0x200000000000000
1145 CBitFieldMaskBit58 = 0x400000000000000
1146 CBitFieldMaskBit59 = 0x800000000000000
1147 CBitFieldMaskBit60 = 0x1000000000000000
1148 CBitFieldMaskBit61 = 0x2000000000000000
1149 CBitFieldMaskBit62 = 0x4000000000000000
1150 CBitFieldMaskBit63 = 0x8000000000000000
1151)
1152
1153type SockaddrStorage struct {
1154 Family uint16
1155 _ [118]int8
1156 _ uint64
1157}
1158
1159type TCPMD5Sig struct {
1160 Addr SockaddrStorage
1161 Flags uint8
1162 Prefixlen uint8
1163 Keylen uint16
1164 _ uint32
1165 Key [80]uint8
1166}
1167
1168type HDDriveCmdHdr struct {
1169 Command uint8
1170 Number uint8
1171 Feature uint8
1172 Count uint8
1173}
1174
1175type HDGeometry struct {
1176 Heads uint8
1177 Sectors uint8
1178 Cylinders uint16
1179 _ [4]byte
1180 Start uint64
1181}
1182
1183type HDDriveID struct {
1184 Config uint16
1185 Cyls uint16
1186 Reserved2 uint16
1187 Heads uint16
1188 Track_bytes uint16
1189 Sector_bytes uint16
1190 Sectors uint16
1191 Vendor0 uint16
1192 Vendor1 uint16
1193 Vendor2 uint16
1194 Serial_no [20]uint8
1195 Buf_type uint16
1196 Buf_size uint16
1197 Ecc_bytes uint16
1198 Fw_rev [8]uint8
1199 Model [40]uint8
1200 Max_multsect uint8
1201 Vendor3 uint8
1202 Dword_io uint16
1203 Vendor4 uint8
1204 Capability uint8
1205 Reserved50 uint16
1206 Vendor5 uint8
1207 TPIO uint8
1208 Vendor6 uint8
1209 TDMA uint8
1210 Field_valid uint16
1211 Cur_cyls uint16
1212 Cur_heads uint16
1213 Cur_sectors uint16
1214 Cur_capacity0 uint16
1215 Cur_capacity1 uint16
1216 Multsect uint8
1217 Multsect_valid uint8
1218 Lba_capacity uint32
1219 Dma_1word uint16
1220 Dma_mword uint16
1221 Eide_pio_modes uint16
1222 Eide_dma_min uint16
1223 Eide_dma_time uint16
1224 Eide_pio uint16
1225 Eide_pio_iordy uint16
1226 Words69_70 [2]uint16
1227 Words71_74 [4]uint16
1228 Queue_depth uint16
1229 Words76_79 [4]uint16
1230 Major_rev_num uint16
1231 Minor_rev_num uint16
1232 Command_set_1 uint16
1233 Command_set_2 uint16
1234 Cfsse uint16
1235 Cfs_enable_1 uint16
1236 Cfs_enable_2 uint16
1237 Csf_default uint16
1238 Dma_ultra uint16
1239 Trseuc uint16
1240 TrsEuc uint16
1241 CurAPMvalues uint16
1242 Mprc uint16
1243 Hw_config uint16
1244 Acoustic uint16
1245 Msrqs uint16
1246 Sxfert uint16
1247 Sal uint16
1248 Spg uint32
1249 Lba_capacity_2 uint64
1250 Words104_125 [22]uint16
1251 Last_lun uint16
1252 Word127 uint16
1253 Dlf uint16
1254 Csfo uint16
1255 Words130_155 [26]uint16
1256 Word156 uint16
1257 Words157_159 [3]uint16
1258 Cfa_power uint16
1259 Words161_175 [15]uint16
1260 Words176_205 [30]uint16
1261 Words206_254 [49]uint16
1262 Integrity_word uint16
1263}
1264
1265type Statfs_t struct {
1266 Type int64
1267 Bsize int64
1268 Blocks uint64
1269 Bfree uint64
1270 Bavail uint64
1271 Files uint64
1272 Ffree uint64
1273 Fsid Fsid
1274 Namelen int64
1275 Frsize int64
1276 Flags int64
1277 Spare [4]int64
1278}
1279
1280const (
1281 ST_MANDLOCK = 0x40
1282 ST_NOATIME = 0x400
1283 ST_NODEV = 0x4
1284 ST_NODIRATIME = 0x800
1285 ST_NOEXEC = 0x8
1286 ST_NOSUID = 0x2
1287 ST_RDONLY = 0x1
1288 ST_RELATIME = 0x1000
1289 ST_SYNCHRONOUS = 0x10
1290)
1291
1292type TpacketHdr struct {
1293 Status uint64
1294 Len uint32
1295 Snaplen uint32
1296 Mac uint16
1297 Net uint16
1298 Sec uint32
1299 Usec uint32
1300 _ [4]byte
1301}
1302
1303type Tpacket2Hdr struct {
1304 Status uint32
1305 Len uint32
1306 Snaplen uint32
1307 Mac uint16
1308 Net uint16
1309 Sec uint32
1310 Nsec uint32
1311 Vlan_tci uint16
1312 Vlan_tpid uint16
1313 _ [4]uint8
1314}
1315
1316type Tpacket3Hdr struct {
1317 Next_offset uint32
1318 Sec uint32
1319 Nsec uint32
1320 Snaplen uint32
1321 Len uint32
1322 Status uint32
1323 Mac uint16
1324 Net uint16
1325 Hv1 TpacketHdrVariant1
1326 _ [8]uint8
1327}
1328
1329type TpacketHdrVariant1 struct {
1330 Rxhash uint32
1331 Vlan_tci uint32
1332 Vlan_tpid uint16
1333 _ uint16
1334}
1335
1336type TpacketBlockDesc struct {
1337 Version uint32
1338 To_priv uint32
1339 Hdr [40]byte
1340}
1341
1342type TpacketReq struct {
1343 Block_size uint32
1344 Block_nr uint32
1345 Frame_size uint32
1346 Frame_nr uint32
1347}
1348
1349type TpacketReq3 struct {
1350 Block_size uint32
1351 Block_nr uint32
1352 Frame_size uint32
1353 Frame_nr uint32
1354 Retire_blk_tov uint32
1355 Sizeof_priv uint32
1356 Feature_req_word uint32
1357}
1358
1359type TpacketStats struct {
1360 Packets uint32
1361 Drops uint32
1362}
1363
1364type TpacketStatsV3 struct {
1365 Packets uint32
1366 Drops uint32
1367 Freeze_q_cnt uint32
1368}
1369
1370type TpacketAuxdata struct {
1371 Status uint32
1372 Len uint32
1373 Snaplen uint32
1374 Mac uint16
1375 Net uint16
1376 Vlan_tci uint16
1377 Vlan_tpid uint16
1378}
1379
1380const (
1381 TPACKET_V1 = 0x0
1382 TPACKET_V2 = 0x1
1383 TPACKET_V3 = 0x2
1384)
1385
1386const (
1387 SizeofTpacketHdr = 0x20
1388 SizeofTpacket2Hdr = 0x20
1389 SizeofTpacket3Hdr = 0x30
1390)
1391
1392const (
1393 NF_INET_PRE_ROUTING = 0x0
1394 NF_INET_LOCAL_IN = 0x1
1395 NF_INET_FORWARD = 0x2
1396 NF_INET_LOCAL_OUT = 0x3
1397 NF_INET_POST_ROUTING = 0x4
1398 NF_INET_NUMHOOKS = 0x5
1399)
1400
1401const (
1402 NF_NETDEV_INGRESS = 0x0
1403 NF_NETDEV_NUMHOOKS = 0x1
1404)
1405
1406const (
1407 NFPROTO_UNSPEC = 0x0
1408 NFPROTO_INET = 0x1
1409 NFPROTO_IPV4 = 0x2
1410 NFPROTO_ARP = 0x3
1411 NFPROTO_NETDEV = 0x5
1412 NFPROTO_BRIDGE = 0x7
1413 NFPROTO_IPV6 = 0xa
1414 NFPROTO_DECNET = 0xc
1415 NFPROTO_NUMPROTO = 0xd
1416)
1417
1418type Nfgenmsg struct {
1419 Nfgen_family uint8
1420 Version uint8
1421 Res_id uint16
1422}
1423
1424const (
1425 NFNL_BATCH_UNSPEC = 0x0
1426 NFNL_BATCH_GENID = 0x1
1427)
1428
1429const (
1430 NFT_REG_VERDICT = 0x0
1431 NFT_REG_1 = 0x1
1432 NFT_REG_2 = 0x2
1433 NFT_REG_3 = 0x3
1434 NFT_REG_4 = 0x4
1435 NFT_REG32_00 = 0x8
1436 NFT_REG32_01 = 0x9
1437 NFT_REG32_02 = 0xa
1438 NFT_REG32_03 = 0xb
1439 NFT_REG32_04 = 0xc
1440 NFT_REG32_05 = 0xd
1441 NFT_REG32_06 = 0xe
1442 NFT_REG32_07 = 0xf
1443 NFT_REG32_08 = 0x10
1444 NFT_REG32_09 = 0x11
1445 NFT_REG32_10 = 0x12
1446 NFT_REG32_11 = 0x13
1447 NFT_REG32_12 = 0x14
1448 NFT_REG32_13 = 0x15
1449 NFT_REG32_14 = 0x16
1450 NFT_REG32_15 = 0x17
1451 NFT_CONTINUE = -0x1
1452 NFT_BREAK = -0x2
1453 NFT_JUMP = -0x3
1454 NFT_GOTO = -0x4
1455 NFT_RETURN = -0x5
1456 NFT_MSG_NEWTABLE = 0x0
1457 NFT_MSG_GETTABLE = 0x1
1458 NFT_MSG_DELTABLE = 0x2
1459 NFT_MSG_NEWCHAIN = 0x3
1460 NFT_MSG_GETCHAIN = 0x4
1461 NFT_MSG_DELCHAIN = 0x5
1462 NFT_MSG_NEWRULE = 0x6
1463 NFT_MSG_GETRULE = 0x7
1464 NFT_MSG_DELRULE = 0x8
1465 NFT_MSG_NEWSET = 0x9
1466 NFT_MSG_GETSET = 0xa
1467 NFT_MSG_DELSET = 0xb
1468 NFT_MSG_NEWSETELEM = 0xc
1469 NFT_MSG_GETSETELEM = 0xd
1470 NFT_MSG_DELSETELEM = 0xe
1471 NFT_MSG_NEWGEN = 0xf
1472 NFT_MSG_GETGEN = 0x10
1473 NFT_MSG_TRACE = 0x11
1474 NFT_MSG_NEWOBJ = 0x12
1475 NFT_MSG_GETOBJ = 0x13
1476 NFT_MSG_DELOBJ = 0x14
1477 NFT_MSG_GETOBJ_RESET = 0x15
1478 NFT_MSG_MAX = 0x19
1479 NFTA_LIST_UNPEC = 0x0
1480 NFTA_LIST_ELEM = 0x1
1481 NFTA_HOOK_UNSPEC = 0x0
1482 NFTA_HOOK_HOOKNUM = 0x1
1483 NFTA_HOOK_PRIORITY = 0x2
1484 NFTA_HOOK_DEV = 0x3
1485 NFT_TABLE_F_DORMANT = 0x1
1486 NFTA_TABLE_UNSPEC = 0x0
1487 NFTA_TABLE_NAME = 0x1
1488 NFTA_TABLE_FLAGS = 0x2
1489 NFTA_TABLE_USE = 0x3
1490 NFTA_CHAIN_UNSPEC = 0x0
1491 NFTA_CHAIN_TABLE = 0x1
1492 NFTA_CHAIN_HANDLE = 0x2
1493 NFTA_CHAIN_NAME = 0x3
1494 NFTA_CHAIN_HOOK = 0x4
1495 NFTA_CHAIN_POLICY = 0x5
1496 NFTA_CHAIN_USE = 0x6
1497 NFTA_CHAIN_TYPE = 0x7
1498 NFTA_CHAIN_COUNTERS = 0x8
1499 NFTA_CHAIN_PAD = 0x9
1500 NFTA_RULE_UNSPEC = 0x0
1501 NFTA_RULE_TABLE = 0x1
1502 NFTA_RULE_CHAIN = 0x2
1503 NFTA_RULE_HANDLE = 0x3
1504 NFTA_RULE_EXPRESSIONS = 0x4
1505 NFTA_RULE_COMPAT = 0x5
1506 NFTA_RULE_POSITION = 0x6
1507 NFTA_RULE_USERDATA = 0x7
1508 NFTA_RULE_PAD = 0x8
1509 NFTA_RULE_ID = 0x9
1510 NFT_RULE_COMPAT_F_INV = 0x2
1511 NFT_RULE_COMPAT_F_MASK = 0x2
1512 NFTA_RULE_COMPAT_UNSPEC = 0x0
1513 NFTA_RULE_COMPAT_PROTO = 0x1
1514 NFTA_RULE_COMPAT_FLAGS = 0x2
1515 NFT_SET_ANONYMOUS = 0x1
1516 NFT_SET_CONSTANT = 0x2
1517 NFT_SET_INTERVAL = 0x4
1518 NFT_SET_MAP = 0x8
1519 NFT_SET_TIMEOUT = 0x10
1520 NFT_SET_EVAL = 0x20
1521 NFT_SET_OBJECT = 0x40
1522 NFT_SET_POL_PERFORMANCE = 0x0
1523 NFT_SET_POL_MEMORY = 0x1
1524 NFTA_SET_DESC_UNSPEC = 0x0
1525 NFTA_SET_DESC_SIZE = 0x1
1526 NFTA_SET_UNSPEC = 0x0
1527 NFTA_SET_TABLE = 0x1
1528 NFTA_SET_NAME = 0x2
1529 NFTA_SET_FLAGS = 0x3
1530 NFTA_SET_KEY_TYPE = 0x4
1531 NFTA_SET_KEY_LEN = 0x5
1532 NFTA_SET_DATA_TYPE = 0x6
1533 NFTA_SET_DATA_LEN = 0x7
1534 NFTA_SET_POLICY = 0x8
1535 NFTA_SET_DESC = 0x9
1536 NFTA_SET_ID = 0xa
1537 NFTA_SET_TIMEOUT = 0xb
1538 NFTA_SET_GC_INTERVAL = 0xc
1539 NFTA_SET_USERDATA = 0xd
1540 NFTA_SET_PAD = 0xe
1541 NFTA_SET_OBJ_TYPE = 0xf
1542 NFT_SET_ELEM_INTERVAL_END = 0x1
1543 NFTA_SET_ELEM_UNSPEC = 0x0
1544 NFTA_SET_ELEM_KEY = 0x1
1545 NFTA_SET_ELEM_DATA = 0x2
1546 NFTA_SET_ELEM_FLAGS = 0x3
1547 NFTA_SET_ELEM_TIMEOUT = 0x4
1548 NFTA_SET_ELEM_EXPIRATION = 0x5
1549 NFTA_SET_ELEM_USERDATA = 0x6
1550 NFTA_SET_ELEM_EXPR = 0x7
1551 NFTA_SET_ELEM_PAD = 0x8
1552 NFTA_SET_ELEM_OBJREF = 0x9
1553 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1554 NFTA_SET_ELEM_LIST_TABLE = 0x1
1555 NFTA_SET_ELEM_LIST_SET = 0x2
1556 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1557 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1558 NFT_DATA_VALUE = 0x0
1559 NFT_DATA_VERDICT = 0xffffff00
1560 NFTA_DATA_UNSPEC = 0x0
1561 NFTA_DATA_VALUE = 0x1
1562 NFTA_DATA_VERDICT = 0x2
1563 NFTA_VERDICT_UNSPEC = 0x0
1564 NFTA_VERDICT_CODE = 0x1
1565 NFTA_VERDICT_CHAIN = 0x2
1566 NFTA_EXPR_UNSPEC = 0x0
1567 NFTA_EXPR_NAME = 0x1
1568 NFTA_EXPR_DATA = 0x2
1569 NFTA_IMMEDIATE_UNSPEC = 0x0
1570 NFTA_IMMEDIATE_DREG = 0x1
1571 NFTA_IMMEDIATE_DATA = 0x2
1572 NFTA_BITWISE_UNSPEC = 0x0
1573 NFTA_BITWISE_SREG = 0x1
1574 NFTA_BITWISE_DREG = 0x2
1575 NFTA_BITWISE_LEN = 0x3
1576 NFTA_BITWISE_MASK = 0x4
1577 NFTA_BITWISE_XOR = 0x5
1578 NFT_BYTEORDER_NTOH = 0x0
1579 NFT_BYTEORDER_HTON = 0x1
1580 NFTA_BYTEORDER_UNSPEC = 0x0
1581 NFTA_BYTEORDER_SREG = 0x1
1582 NFTA_BYTEORDER_DREG = 0x2
1583 NFTA_BYTEORDER_OP = 0x3
1584 NFTA_BYTEORDER_LEN = 0x4
1585 NFTA_BYTEORDER_SIZE = 0x5
1586 NFT_CMP_EQ = 0x0
1587 NFT_CMP_NEQ = 0x1
1588 NFT_CMP_LT = 0x2
1589 NFT_CMP_LTE = 0x3
1590 NFT_CMP_GT = 0x4
1591 NFT_CMP_GTE = 0x5
1592 NFTA_CMP_UNSPEC = 0x0
1593 NFTA_CMP_SREG = 0x1
1594 NFTA_CMP_OP = 0x2
1595 NFTA_CMP_DATA = 0x3
1596 NFT_RANGE_EQ = 0x0
1597 NFT_RANGE_NEQ = 0x1
1598 NFTA_RANGE_UNSPEC = 0x0
1599 NFTA_RANGE_SREG = 0x1
1600 NFTA_RANGE_OP = 0x2
1601 NFTA_RANGE_FROM_DATA = 0x3
1602 NFTA_RANGE_TO_DATA = 0x4
1603 NFT_LOOKUP_F_INV = 0x1
1604 NFTA_LOOKUP_UNSPEC = 0x0
1605 NFTA_LOOKUP_SET = 0x1
1606 NFTA_LOOKUP_SREG = 0x2
1607 NFTA_LOOKUP_DREG = 0x3
1608 NFTA_LOOKUP_SET_ID = 0x4
1609 NFTA_LOOKUP_FLAGS = 0x5
1610 NFT_DYNSET_OP_ADD = 0x0
1611 NFT_DYNSET_OP_UPDATE = 0x1
1612 NFT_DYNSET_F_INV = 0x1
1613 NFTA_DYNSET_UNSPEC = 0x0
1614 NFTA_DYNSET_SET_NAME = 0x1
1615 NFTA_DYNSET_SET_ID = 0x2
1616 NFTA_DYNSET_OP = 0x3
1617 NFTA_DYNSET_SREG_KEY = 0x4
1618 NFTA_DYNSET_SREG_DATA = 0x5
1619 NFTA_DYNSET_TIMEOUT = 0x6
1620 NFTA_DYNSET_EXPR = 0x7
1621 NFTA_DYNSET_PAD = 0x8
1622 NFTA_DYNSET_FLAGS = 0x9
1623 NFT_PAYLOAD_LL_HEADER = 0x0
1624 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1625 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1626 NFT_PAYLOAD_CSUM_NONE = 0x0
1627 NFT_PAYLOAD_CSUM_INET = 0x1
1628 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1629 NFTA_PAYLOAD_UNSPEC = 0x0
1630 NFTA_PAYLOAD_DREG = 0x1
1631 NFTA_PAYLOAD_BASE = 0x2
1632 NFTA_PAYLOAD_OFFSET = 0x3
1633 NFTA_PAYLOAD_LEN = 0x4
1634 NFTA_PAYLOAD_SREG = 0x5
1635 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1636 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1637 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1638 NFT_EXTHDR_F_PRESENT = 0x1
1639 NFT_EXTHDR_OP_IPV6 = 0x0
1640 NFT_EXTHDR_OP_TCPOPT = 0x1
1641 NFTA_EXTHDR_UNSPEC = 0x0
1642 NFTA_EXTHDR_DREG = 0x1
1643 NFTA_EXTHDR_TYPE = 0x2
1644 NFTA_EXTHDR_OFFSET = 0x3
1645 NFTA_EXTHDR_LEN = 0x4
1646 NFTA_EXTHDR_FLAGS = 0x5
1647 NFTA_EXTHDR_OP = 0x6
1648 NFTA_EXTHDR_SREG = 0x7
1649 NFT_META_LEN = 0x0
1650 NFT_META_PROTOCOL = 0x1
1651 NFT_META_PRIORITY = 0x2
1652 NFT_META_MARK = 0x3
1653 NFT_META_IIF = 0x4
1654 NFT_META_OIF = 0x5
1655 NFT_META_IIFNAME = 0x6
1656 NFT_META_OIFNAME = 0x7
1657 NFT_META_IIFTYPE = 0x8
1658 NFT_META_OIFTYPE = 0x9
1659 NFT_META_SKUID = 0xa
1660 NFT_META_SKGID = 0xb
1661 NFT_META_NFTRACE = 0xc
1662 NFT_META_RTCLASSID = 0xd
1663 NFT_META_SECMARK = 0xe
1664 NFT_META_NFPROTO = 0xf
1665 NFT_META_L4PROTO = 0x10
1666 NFT_META_BRI_IIFNAME = 0x11
1667 NFT_META_BRI_OIFNAME = 0x12
1668 NFT_META_PKTTYPE = 0x13
1669 NFT_META_CPU = 0x14
1670 NFT_META_IIFGROUP = 0x15
1671 NFT_META_OIFGROUP = 0x16
1672 NFT_META_CGROUP = 0x17
1673 NFT_META_PRANDOM = 0x18
1674 NFT_RT_CLASSID = 0x0
1675 NFT_RT_NEXTHOP4 = 0x1
1676 NFT_RT_NEXTHOP6 = 0x2
1677 NFT_RT_TCPMSS = 0x3
1678 NFT_HASH_JENKINS = 0x0
1679 NFT_HASH_SYM = 0x1
1680 NFTA_HASH_UNSPEC = 0x0
1681 NFTA_HASH_SREG = 0x1
1682 NFTA_HASH_DREG = 0x2
1683 NFTA_HASH_LEN = 0x3
1684 NFTA_HASH_MODULUS = 0x4
1685 NFTA_HASH_SEED = 0x5
1686 NFTA_HASH_OFFSET = 0x6
1687 NFTA_HASH_TYPE = 0x7
1688 NFTA_META_UNSPEC = 0x0
1689 NFTA_META_DREG = 0x1
1690 NFTA_META_KEY = 0x2
1691 NFTA_META_SREG = 0x3
1692 NFTA_RT_UNSPEC = 0x0
1693 NFTA_RT_DREG = 0x1
1694 NFTA_RT_KEY = 0x2
1695 NFT_CT_STATE = 0x0
1696 NFT_CT_DIRECTION = 0x1
1697 NFT_CT_STATUS = 0x2
1698 NFT_CT_MARK = 0x3
1699 NFT_CT_SECMARK = 0x4
1700 NFT_CT_EXPIRATION = 0x5
1701 NFT_CT_HELPER = 0x6
1702 NFT_CT_L3PROTOCOL = 0x7
1703 NFT_CT_SRC = 0x8
1704 NFT_CT_DST = 0x9
1705 NFT_CT_PROTOCOL = 0xa
1706 NFT_CT_PROTO_SRC = 0xb
1707 NFT_CT_PROTO_DST = 0xc
1708 NFT_CT_LABELS = 0xd
1709 NFT_CT_PKTS = 0xe
1710 NFT_CT_BYTES = 0xf
1711 NFT_CT_AVGPKT = 0x10
1712 NFT_CT_ZONE = 0x11
1713 NFT_CT_EVENTMASK = 0x12
1714 NFTA_CT_UNSPEC = 0x0
1715 NFTA_CT_DREG = 0x1
1716 NFTA_CT_KEY = 0x2
1717 NFTA_CT_DIRECTION = 0x3
1718 NFTA_CT_SREG = 0x4
1719 NFT_LIMIT_PKTS = 0x0
1720 NFT_LIMIT_PKT_BYTES = 0x1
1721 NFT_LIMIT_F_INV = 0x1
1722 NFTA_LIMIT_UNSPEC = 0x0
1723 NFTA_LIMIT_RATE = 0x1
1724 NFTA_LIMIT_UNIT = 0x2
1725 NFTA_LIMIT_BURST = 0x3
1726 NFTA_LIMIT_TYPE = 0x4
1727 NFTA_LIMIT_FLAGS = 0x5
1728 NFTA_LIMIT_PAD = 0x6
1729 NFTA_COUNTER_UNSPEC = 0x0
1730 NFTA_COUNTER_BYTES = 0x1
1731 NFTA_COUNTER_PACKETS = 0x2
1732 NFTA_COUNTER_PAD = 0x3
1733 NFTA_LOG_UNSPEC = 0x0
1734 NFTA_LOG_GROUP = 0x1
1735 NFTA_LOG_PREFIX = 0x2
1736 NFTA_LOG_SNAPLEN = 0x3
1737 NFTA_LOG_QTHRESHOLD = 0x4
1738 NFTA_LOG_LEVEL = 0x5
1739 NFTA_LOG_FLAGS = 0x6
1740 NFTA_QUEUE_UNSPEC = 0x0
1741 NFTA_QUEUE_NUM = 0x1
1742 NFTA_QUEUE_TOTAL = 0x2
1743 NFTA_QUEUE_FLAGS = 0x3
1744 NFTA_QUEUE_SREG_QNUM = 0x4
1745 NFT_QUOTA_F_INV = 0x1
1746 NFT_QUOTA_F_DEPLETED = 0x2
1747 NFTA_QUOTA_UNSPEC = 0x0
1748 NFTA_QUOTA_BYTES = 0x1
1749 NFTA_QUOTA_FLAGS = 0x2
1750 NFTA_QUOTA_PAD = 0x3
1751 NFTA_QUOTA_CONSUMED = 0x4
1752 NFT_REJECT_ICMP_UNREACH = 0x0
1753 NFT_REJECT_TCP_RST = 0x1
1754 NFT_REJECT_ICMPX_UNREACH = 0x2
1755 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1756 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1757 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1758 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1759 NFTA_REJECT_UNSPEC = 0x0
1760 NFTA_REJECT_TYPE = 0x1
1761 NFTA_REJECT_ICMP_CODE = 0x2
1762 NFT_NAT_SNAT = 0x0
1763 NFT_NAT_DNAT = 0x1
1764 NFTA_NAT_UNSPEC = 0x0
1765 NFTA_NAT_TYPE = 0x1
1766 NFTA_NAT_FAMILY = 0x2
1767 NFTA_NAT_REG_ADDR_MIN = 0x3
1768 NFTA_NAT_REG_ADDR_MAX = 0x4
1769 NFTA_NAT_REG_PROTO_MIN = 0x5
1770 NFTA_NAT_REG_PROTO_MAX = 0x6
1771 NFTA_NAT_FLAGS = 0x7
1772 NFTA_MASQ_UNSPEC = 0x0
1773 NFTA_MASQ_FLAGS = 0x1
1774 NFTA_MASQ_REG_PROTO_MIN = 0x2
1775 NFTA_MASQ_REG_PROTO_MAX = 0x3
1776 NFTA_REDIR_UNSPEC = 0x0
1777 NFTA_REDIR_REG_PROTO_MIN = 0x1
1778 NFTA_REDIR_REG_PROTO_MAX = 0x2
1779 NFTA_REDIR_FLAGS = 0x3
1780 NFTA_DUP_UNSPEC = 0x0
1781 NFTA_DUP_SREG_ADDR = 0x1
1782 NFTA_DUP_SREG_DEV = 0x2
1783 NFTA_FWD_UNSPEC = 0x0
1784 NFTA_FWD_SREG_DEV = 0x1
1785 NFTA_OBJREF_UNSPEC = 0x0
1786 NFTA_OBJREF_IMM_TYPE = 0x1
1787 NFTA_OBJREF_IMM_NAME = 0x2
1788 NFTA_OBJREF_SET_SREG = 0x3
1789 NFTA_OBJREF_SET_NAME = 0x4
1790 NFTA_OBJREF_SET_ID = 0x5
1791 NFTA_GEN_UNSPEC = 0x0
1792 NFTA_GEN_ID = 0x1
1793 NFTA_GEN_PROC_PID = 0x2
1794 NFTA_GEN_PROC_NAME = 0x3
1795 NFTA_FIB_UNSPEC = 0x0
1796 NFTA_FIB_DREG = 0x1
1797 NFTA_FIB_RESULT = 0x2
1798 NFTA_FIB_FLAGS = 0x3
1799 NFT_FIB_RESULT_UNSPEC = 0x0
1800 NFT_FIB_RESULT_OIF = 0x1
1801 NFT_FIB_RESULT_OIFNAME = 0x2
1802 NFT_FIB_RESULT_ADDRTYPE = 0x3
1803 NFTA_FIB_F_SADDR = 0x1
1804 NFTA_FIB_F_DADDR = 0x2
1805 NFTA_FIB_F_MARK = 0x4
1806 NFTA_FIB_F_IIF = 0x8
1807 NFTA_FIB_F_OIF = 0x10
1808 NFTA_FIB_F_PRESENT = 0x20
1809 NFTA_CT_HELPER_UNSPEC = 0x0
1810 NFTA_CT_HELPER_NAME = 0x1
1811 NFTA_CT_HELPER_L3PROTO = 0x2
1812 NFTA_CT_HELPER_L4PROTO = 0x3
1813 NFTA_OBJ_UNSPEC = 0x0
1814 NFTA_OBJ_TABLE = 0x1
1815 NFTA_OBJ_NAME = 0x2
1816 NFTA_OBJ_TYPE = 0x3
1817 NFTA_OBJ_DATA = 0x4
1818 NFTA_OBJ_USE = 0x5
1819 NFTA_TRACE_UNSPEC = 0x0
1820 NFTA_TRACE_TABLE = 0x1
1821 NFTA_TRACE_CHAIN = 0x2
1822 NFTA_TRACE_RULE_HANDLE = 0x3
1823 NFTA_TRACE_TYPE = 0x4
1824 NFTA_TRACE_VERDICT = 0x5
1825 NFTA_TRACE_ID = 0x6
1826 NFTA_TRACE_LL_HEADER = 0x7
1827 NFTA_TRACE_NETWORK_HEADER = 0x8
1828 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1829 NFTA_TRACE_IIF = 0xa
1830 NFTA_TRACE_IIFTYPE = 0xb
1831 NFTA_TRACE_OIF = 0xc
1832 NFTA_TRACE_OIFTYPE = 0xd
1833 NFTA_TRACE_MARK = 0xe
1834 NFTA_TRACE_NFPROTO = 0xf
1835 NFTA_TRACE_POLICY = 0x10
1836 NFTA_TRACE_PAD = 0x11
1837 NFT_TRACETYPE_UNSPEC = 0x0
1838 NFT_TRACETYPE_POLICY = 0x1
1839 NFT_TRACETYPE_RETURN = 0x2
1840 NFT_TRACETYPE_RULE = 0x3
1841 NFTA_NG_UNSPEC = 0x0
1842 NFTA_NG_DREG = 0x1
1843 NFTA_NG_MODULUS = 0x2
1844 NFTA_NG_TYPE = 0x3
1845 NFTA_NG_OFFSET = 0x4
1846 NFT_NG_INCREMENTAL = 0x0
1847 NFT_NG_RANDOM = 0x1
1848)
1849
1850type RTCTime struct {
1851 Sec int32
1852 Min int32
1853 Hour int32
1854 Mday int32
1855 Mon int32
1856 Year int32
1857 Wday int32
1858 Yday int32
1859 Isdst int32
1860}
1861
1862type RTCWkAlrm struct {
1863 Enabled uint8
1864 Pending uint8
1865 _ [2]byte
1866 Time RTCTime
1867}
1868
1869type RTCPLLInfo struct {
1870 Ctrl int32
1871 Value int32
1872 Max int32
1873 Min int32
1874 Posmult int32
1875 Negmult int32
1876 Clock int64
1877}
1878
1879type BlkpgIoctlArg struct {
1880 Op int32
1881 Flags int32
1882 Datalen int32
1883 _ [4]byte
1884 Data *byte
1885}
1886
1887type BlkpgPartition struct {
1888 Start int64
1889 Length int64
1890 Pno int32
1891 Devname [64]uint8
1892 Volname [64]uint8
1893 _ [4]byte
1894}
1895
1896const (
1897 BLKPG = 0x1269
1898 BLKPG_ADD_PARTITION = 0x1
1899 BLKPG_DEL_PARTITION = 0x2
1900 BLKPG_RESIZE_PARTITION = 0x3
1901)
1902
1903const (
1904 NETNSA_NONE = 0x0
1905 NETNSA_NSID = 0x1
1906 NETNSA_PID = 0x2
1907 NETNSA_FD = 0x3
1908)
1909
1910type XDPRingOffset struct {
1911 Producer uint64
1912 Consumer uint64
1913 Desc uint64
1914}
1915
1916type XDPMmapOffsets struct {
1917 Rx XDPRingOffset
1918 Tx XDPRingOffset
1919 Fr XDPRingOffset
1920 Cr XDPRingOffset
1921}
1922
1923type XDPUmemReg struct {
1924 Addr uint64
1925 Len uint64
1926 Size uint32
1927 Headroom uint32
1928}
1929
1930type XDPStatistics struct {
1931 Rx_dropped uint64
1932 Rx_invalid_descs uint64
1933 Tx_invalid_descs uint64
1934}
1935
1936type XDPDesc struct {
1937 Addr uint64
1938 Len uint32
1939 Options uint32
1940}
1941
1942const (
1943 NCSI_CMD_UNSPEC = 0x0
1944 NCSI_CMD_PKG_INFO = 0x1
1945 NCSI_CMD_SET_INTERFACE = 0x2
1946 NCSI_CMD_CLEAR_INTERFACE = 0x3
1947 NCSI_ATTR_UNSPEC = 0x0
1948 NCSI_ATTR_IFINDEX = 0x1
1949 NCSI_ATTR_PACKAGE_LIST = 0x2
1950 NCSI_ATTR_PACKAGE_ID = 0x3
1951 NCSI_ATTR_CHANNEL_ID = 0x4
1952 NCSI_PKG_ATTR_UNSPEC = 0x0
1953 NCSI_PKG_ATTR = 0x1
1954 NCSI_PKG_ATTR_ID = 0x2
1955 NCSI_PKG_ATTR_FORCED = 0x3
1956 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1957 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1958 NCSI_CHANNEL_ATTR = 0x1
1959 NCSI_CHANNEL_ATTR_ID = 0x2
1960 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1961 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1962 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1963 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1964 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1965 NCSI_CHANNEL_ATTR_FORCED = 0x8
1966 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1967 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1968)
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 a9087c5..7379ad2 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -115,27 +115,10 @@ type Stat_t struct {
115 Pad5 [14]int32 115 Pad5 [14]int32
116} 116}
117 117
118type Statfs_t struct {
119 Type int32
120 Bsize int32
121 Frsize int32
122 _ [4]byte
123 Blocks uint64
124 Bfree uint64
125 Files uint64
126 Ffree uint64
127 Bavail uint64
128 Fsid Fsid
129 Namelen int32
130 Flags int32
131 Spare [5]int32
132 _ [4]byte
133}
134
135type StatxTimestamp struct { 118type StatxTimestamp struct {
136 Sec int64 119 Sec int64
137 Nsec uint32 120 Nsec uint32
138 X__reserved int32 121 _ int32
139} 122}
140 123
141type Statx_t struct { 124type Statx_t struct {
@@ -172,7 +155,7 @@ type Dirent struct {
172} 155}
173 156
174type Fsid struct { 157type Fsid struct {
175 X__val [2]int32 158 Val [2]int32
176} 159}
177 160
178type Flock_t struct { 161type Flock_t struct {
@@ -266,6 +249,13 @@ type RawSockaddrL2 struct {
266 _ [1]byte 249 _ [1]byte
267} 250}
268 251
252type RawSockaddrRFCOMM struct {
253 Family uint16
254 Bdaddr [6]uint8
255 Channel uint8
256 _ [1]byte
257}
258
269type RawSockaddrCAN struct { 259type RawSockaddrCAN struct {
270 Family uint16 260 Family uint16
271 _ [2]byte 261 _ [2]byte
@@ -289,6 +279,14 @@ type RawSockaddrVM struct {
289 Zero [4]uint8 279 Zero [4]uint8
290} 280}
291 281
282type RawSockaddrXDP struct {
283 Family uint16
284 Flags uint16
285 Ifindex uint32
286 Queue_id uint32
287 Shared_umem_fd uint32
288}
289
292type RawSockaddr struct { 290type RawSockaddr struct {
293 Family uint16 291 Family uint16
294 Data [14]int8 292 Data [14]int8
@@ -419,9 +417,11 @@ const (
419 SizeofSockaddrNetlink = 0xc 417 SizeofSockaddrNetlink = 0xc
420 SizeofSockaddrHCI = 0x6 418 SizeofSockaddrHCI = 0x6
421 SizeofSockaddrL2 = 0xe 419 SizeofSockaddrL2 = 0xe
420 SizeofSockaddrRFCOMM = 0xa
422 SizeofSockaddrCAN = 0x10 421 SizeofSockaddrCAN = 0x10
423 SizeofSockaddrALG = 0x58 422 SizeofSockaddrALG = 0x58
424 SizeofSockaddrVM = 0x10 423 SizeofSockaddrVM = 0x10
424 SizeofSockaddrXDP = 0x10
425 SizeofLinger = 0x8 425 SizeofLinger = 0x8
426 SizeofIovec = 0x8 426 SizeofIovec = 0x8
427 SizeofIPMreq = 0x8 427 SizeofIPMreq = 0x8
@@ -439,97 +439,138 @@ const (
439) 439)
440 440
441const ( 441const (
442 IFA_UNSPEC = 0x0 442 IFA_UNSPEC = 0x0
443 IFA_ADDRESS = 0x1 443 IFA_ADDRESS = 0x1
444 IFA_LOCAL = 0x2 444 IFA_LOCAL = 0x2
445 IFA_LABEL = 0x3 445 IFA_LABEL = 0x3
446 IFA_BROADCAST = 0x4 446 IFA_BROADCAST = 0x4
447 IFA_ANYCAST = 0x5 447 IFA_ANYCAST = 0x5
448 IFA_CACHEINFO = 0x6 448 IFA_CACHEINFO = 0x6
449 IFA_MULTICAST = 0x7 449 IFA_MULTICAST = 0x7
450 IFLA_UNSPEC = 0x0 450 IFLA_UNSPEC = 0x0
451 IFLA_ADDRESS = 0x1 451 IFLA_ADDRESS = 0x1
452 IFLA_BROADCAST = 0x2 452 IFLA_BROADCAST = 0x2
453 IFLA_IFNAME = 0x3 453 IFLA_IFNAME = 0x3
454 IFLA_MTU = 0x4 454 IFLA_INFO_KIND = 0x1
455 IFLA_LINK = 0x5 455 IFLA_MTU = 0x4
456 IFLA_QDISC = 0x6 456 IFLA_LINK = 0x5
457 IFLA_STATS = 0x7 457 IFLA_QDISC = 0x6
458 IFLA_COST = 0x8 458 IFLA_STATS = 0x7
459 IFLA_PRIORITY = 0x9 459 IFLA_COST = 0x8
460 IFLA_MASTER = 0xa 460 IFLA_PRIORITY = 0x9
461 IFLA_WIRELESS = 0xb 461 IFLA_MASTER = 0xa
462 IFLA_PROTINFO = 0xc 462 IFLA_WIRELESS = 0xb
463 IFLA_TXQLEN = 0xd 463 IFLA_PROTINFO = 0xc
464 IFLA_MAP = 0xe 464 IFLA_TXQLEN = 0xd
465 IFLA_WEIGHT = 0xf 465 IFLA_MAP = 0xe
466 IFLA_OPERSTATE = 0x10 466 IFLA_WEIGHT = 0xf
467 IFLA_LINKMODE = 0x11 467 IFLA_OPERSTATE = 0x10
468 IFLA_LINKINFO = 0x12 468 IFLA_LINKMODE = 0x11
469 IFLA_NET_NS_PID = 0x13 469 IFLA_LINKINFO = 0x12
470 IFLA_IFALIAS = 0x14 470 IFLA_NET_NS_PID = 0x13
471 IFLA_MAX = 0x2c 471 IFLA_IFALIAS = 0x14
472 RT_SCOPE_UNIVERSE = 0x0 472 IFLA_NUM_VF = 0x15
473 RT_SCOPE_SITE = 0xc8 473 IFLA_VFINFO_LIST = 0x16
474 RT_SCOPE_LINK = 0xfd 474 IFLA_STATS64 = 0x17
475 RT_SCOPE_HOST = 0xfe 475 IFLA_VF_PORTS = 0x18
476 RT_SCOPE_NOWHERE = 0xff 476 IFLA_PORT_SELF = 0x19
477 RT_TABLE_UNSPEC = 0x0 477 IFLA_AF_SPEC = 0x1a
478 RT_TABLE_COMPAT = 0xfc 478 IFLA_GROUP = 0x1b
479 RT_TABLE_DEFAULT = 0xfd 479 IFLA_NET_NS_FD = 0x1c
480 RT_TABLE_MAIN = 0xfe 480 IFLA_EXT_MASK = 0x1d
481 RT_TABLE_LOCAL = 0xff 481 IFLA_PROMISCUITY = 0x1e
482 RT_TABLE_MAX = 0xffffffff 482 IFLA_NUM_TX_QUEUES = 0x1f
483 RTA_UNSPEC = 0x0 483 IFLA_NUM_RX_QUEUES = 0x20
484 RTA_DST = 0x1 484 IFLA_CARRIER = 0x21
485 RTA_SRC = 0x2 485 IFLA_PHYS_PORT_ID = 0x22
486 RTA_IIF = 0x3 486 IFLA_CARRIER_CHANGES = 0x23
487 RTA_OIF = 0x4 487 IFLA_PHYS_SWITCH_ID = 0x24
488 RTA_GATEWAY = 0x5 488 IFLA_LINK_NETNSID = 0x25
489 RTA_PRIORITY = 0x6 489 IFLA_PHYS_PORT_NAME = 0x26
490 RTA_PREFSRC = 0x7 490 IFLA_PROTO_DOWN = 0x27
491 RTA_METRICS = 0x8 491 IFLA_GSO_MAX_SEGS = 0x28
492 RTA_MULTIPATH = 0x9 492 IFLA_GSO_MAX_SIZE = 0x29
493 RTA_FLOW = 0xb 493 IFLA_PAD = 0x2a
494 RTA_CACHEINFO = 0xc 494 IFLA_XDP = 0x2b
495 RTA_TABLE = 0xf 495 IFLA_EVENT = 0x2c
496 RTN_UNSPEC = 0x0 496 IFLA_NEW_NETNSID = 0x2d
497 RTN_UNICAST = 0x1 497 IFLA_IF_NETNSID = 0x2e
498 RTN_LOCAL = 0x2 498 IFLA_MAX = 0x31
499 RTN_BROADCAST = 0x3 499 RT_SCOPE_UNIVERSE = 0x0
500 RTN_ANYCAST = 0x4 500 RT_SCOPE_SITE = 0xc8
501 RTN_MULTICAST = 0x5 501 RT_SCOPE_LINK = 0xfd
502 RTN_BLACKHOLE = 0x6 502 RT_SCOPE_HOST = 0xfe
503 RTN_UNREACHABLE = 0x7 503 RT_SCOPE_NOWHERE = 0xff
504 RTN_PROHIBIT = 0x8 504 RT_TABLE_UNSPEC = 0x0
505 RTN_THROW = 0x9 505 RT_TABLE_COMPAT = 0xfc
506 RTN_NAT = 0xa 506 RT_TABLE_DEFAULT = 0xfd
507 RTN_XRESOLVE = 0xb 507 RT_TABLE_MAIN = 0xfe
508 RTNLGRP_NONE = 0x0 508 RT_TABLE_LOCAL = 0xff
509 RTNLGRP_LINK = 0x1 509 RT_TABLE_MAX = 0xffffffff
510 RTNLGRP_NOTIFY = 0x2 510 RTA_UNSPEC = 0x0
511 RTNLGRP_NEIGH = 0x3 511 RTA_DST = 0x1
512 RTNLGRP_TC = 0x4 512 RTA_SRC = 0x2
513 RTNLGRP_IPV4_IFADDR = 0x5 513 RTA_IIF = 0x3
514 RTNLGRP_IPV4_MROUTE = 0x6 514 RTA_OIF = 0x4
515 RTNLGRP_IPV4_ROUTE = 0x7 515 RTA_GATEWAY = 0x5
516 RTNLGRP_IPV4_RULE = 0x8 516 RTA_PRIORITY = 0x6
517 RTNLGRP_IPV6_IFADDR = 0x9 517 RTA_PREFSRC = 0x7
518 RTNLGRP_IPV6_MROUTE = 0xa 518 RTA_METRICS = 0x8
519 RTNLGRP_IPV6_ROUTE = 0xb 519 RTA_MULTIPATH = 0x9
520 RTNLGRP_IPV6_IFINFO = 0xc 520 RTA_FLOW = 0xb
521 RTNLGRP_IPV6_PREFIX = 0x12 521 RTA_CACHEINFO = 0xc
522 RTNLGRP_IPV6_RULE = 0x13 522 RTA_TABLE = 0xf
523 RTNLGRP_ND_USEROPT = 0x14 523 RTA_MARK = 0x10
524 SizeofNlMsghdr = 0x10 524 RTA_MFC_STATS = 0x11
525 SizeofNlMsgerr = 0x14 525 RTA_VIA = 0x12
526 SizeofRtGenmsg = 0x1 526 RTA_NEWDST = 0x13
527 SizeofNlAttr = 0x4 527 RTA_PREF = 0x14
528 SizeofRtAttr = 0x4 528 RTA_ENCAP_TYPE = 0x15
529 SizeofIfInfomsg = 0x10 529 RTA_ENCAP = 0x16
530 SizeofIfAddrmsg = 0x8 530 RTA_EXPIRES = 0x17
531 SizeofRtMsg = 0xc 531 RTA_PAD = 0x18
532 SizeofRtNexthop = 0x8 532 RTA_UID = 0x19
533 RTA_TTL_PROPAGATE = 0x1a
534 RTA_IP_PROTO = 0x1b
535 RTA_SPORT = 0x1c
536 RTA_DPORT = 0x1d
537 RTN_UNSPEC = 0x0
538 RTN_UNICAST = 0x1
539 RTN_LOCAL = 0x2
540 RTN_BROADCAST = 0x3
541 RTN_ANYCAST = 0x4
542 RTN_MULTICAST = 0x5
543 RTN_BLACKHOLE = 0x6
544 RTN_UNREACHABLE = 0x7
545 RTN_PROHIBIT = 0x8
546 RTN_THROW = 0x9
547 RTN_NAT = 0xa
548 RTN_XRESOLVE = 0xb
549 RTNLGRP_NONE = 0x0
550 RTNLGRP_LINK = 0x1
551 RTNLGRP_NOTIFY = 0x2
552 RTNLGRP_NEIGH = 0x3
553 RTNLGRP_TC = 0x4
554 RTNLGRP_IPV4_IFADDR = 0x5
555 RTNLGRP_IPV4_MROUTE = 0x6
556 RTNLGRP_IPV4_ROUTE = 0x7
557 RTNLGRP_IPV4_RULE = 0x8
558 RTNLGRP_IPV6_IFADDR = 0x9
559 RTNLGRP_IPV6_MROUTE = 0xa
560 RTNLGRP_IPV6_ROUTE = 0xb
561 RTNLGRP_IPV6_IFINFO = 0xc
562 RTNLGRP_IPV6_PREFIX = 0x12
563 RTNLGRP_IPV6_RULE = 0x13
564 RTNLGRP_ND_USEROPT = 0x14
565 SizeofNlMsghdr = 0x10
566 SizeofNlMsgerr = 0x14
567 SizeofRtGenmsg = 0x1
568 SizeofNlAttr = 0x4
569 SizeofRtAttr = 0x4
570 SizeofIfInfomsg = 0x10
571 SizeofIfAddrmsg = 0x8
572 SizeofRtMsg = 0xc
573 SizeofRtNexthop = 0x8
533) 574)
534 575
535type NlMsghdr struct { 576type NlMsghdr struct {
@@ -560,12 +601,12 @@ type RtAttr struct {
560} 601}
561 602
562type IfInfomsg struct { 603type IfInfomsg struct {
563 Family uint8 604 Family uint8
564 X__ifi_pad uint8 605 _ uint8
565 Type uint16 606 Type uint16
566 Index int32 607 Index int32
567 Flags uint32 608 Flags uint32
568 Change uint32 609 Change uint32
569} 610}
570 611
571type IfAddrmsg struct { 612type IfAddrmsg struct {
@@ -650,7 +691,7 @@ type Sysinfo_t struct {
650 Totalhigh uint32 691 Totalhigh uint32
651 Freehigh uint32 692 Freehigh uint32
652 Unit uint32 693 Unit uint32
653 X_f [8]int8 694 _ [8]int8
654} 695}
655 696
656type Utsname struct { 697type Utsname struct {
@@ -688,6 +729,8 @@ const (
688 729
689 AT_SYMLINK_FOLLOW = 0x400 730 AT_SYMLINK_FOLLOW = 0x400
690 AT_SYMLINK_NOFOLLOW = 0x100 731 AT_SYMLINK_NOFOLLOW = 0x100
732
733 AT_EACCESS = 0x200
691) 734)
692 735
693type PollFd struct { 736type PollFd struct {
@@ -707,7 +750,7 @@ const (
707) 750)
708 751
709type Sigset_t struct { 752type Sigset_t struct {
710 X__val [32]uint32 753 Val [32]uint32
711} 754}
712 755
713const RNDGETENTCNT = 0x40045200 756const RNDGETENTCNT = 0x40045200
@@ -863,3 +906,1057 @@ const (
863 BDADDR_LE_PUBLIC = 0x1 906 BDADDR_LE_PUBLIC = 0x1
864 BDADDR_LE_RANDOM = 0x2 907 BDADDR_LE_RANDOM = 0x2
865) 908)
909
910type PerfEventAttr struct {
911 Type uint32
912 Size uint32
913 Config uint64
914 Sample uint64
915 Sample_type uint64
916 Read_format uint64
917 Bits uint64
918 Wakeup uint32
919 Bp_type uint32
920 Ext1 uint64
921 Ext2 uint64
922 Branch_sample_type uint64
923 Sample_regs_user uint64
924 Sample_stack_user uint32
925 Clockid int32
926 Sample_regs_intr uint64
927 Aux_watermark uint32
928 _ uint32
929}
930
931type PerfEventMmapPage struct {
932 Version uint32
933 Compat_version uint32
934 Lock uint32
935 Index uint32
936 Offset int64
937 Time_enabled uint64
938 Time_running uint64
939 Capabilities uint64
940 Pmc_width uint16
941 Time_shift uint16
942 Time_mult uint32
943 Time_offset uint64
944 Time_zero uint64
945 Size uint32
946 _ [948]uint8
947 Data_head uint64
948 Data_tail uint64
949 Data_offset uint64
950 Data_size uint64
951 Aux_head uint64
952 Aux_tail uint64
953 Aux_offset uint64
954 Aux_size uint64
955}
956
957const (
958 PerfBitDisabled uint64 = CBitFieldMaskBit0
959 PerfBitInherit = CBitFieldMaskBit1
960 PerfBitPinned = CBitFieldMaskBit2
961 PerfBitExclusive = CBitFieldMaskBit3
962 PerfBitExcludeUser = CBitFieldMaskBit4
963 PerfBitExcludeKernel = CBitFieldMaskBit5
964 PerfBitExcludeHv = CBitFieldMaskBit6
965 PerfBitExcludeIdle = CBitFieldMaskBit7
966 PerfBitMmap = CBitFieldMaskBit8
967 PerfBitComm = CBitFieldMaskBit9
968 PerfBitFreq = CBitFieldMaskBit10
969 PerfBitInheritStat = CBitFieldMaskBit11
970 PerfBitEnableOnExec = CBitFieldMaskBit12
971 PerfBitTask = CBitFieldMaskBit13
972 PerfBitWatermark = CBitFieldMaskBit14
973 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
974 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
975 PerfBitMmapData = CBitFieldMaskBit17
976 PerfBitSampleIDAll = CBitFieldMaskBit18
977 PerfBitExcludeHost = CBitFieldMaskBit19
978 PerfBitExcludeGuest = CBitFieldMaskBit20
979 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
980 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
981 PerfBitMmap2 = CBitFieldMaskBit23
982 PerfBitCommExec = CBitFieldMaskBit24
983 PerfBitUseClockID = CBitFieldMaskBit25
984 PerfBitContextSwitch = CBitFieldMaskBit26
985)
986
987const (
988 PERF_TYPE_HARDWARE = 0x0
989 PERF_TYPE_SOFTWARE = 0x1
990 PERF_TYPE_TRACEPOINT = 0x2
991 PERF_TYPE_HW_CACHE = 0x3
992 PERF_TYPE_RAW = 0x4
993 PERF_TYPE_BREAKPOINT = 0x5
994
995 PERF_COUNT_HW_CPU_CYCLES = 0x0
996 PERF_COUNT_HW_INSTRUCTIONS = 0x1
997 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
998 PERF_COUNT_HW_CACHE_MISSES = 0x3
999 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1000 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1001 PERF_COUNT_HW_BUS_CYCLES = 0x6
1002 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1003 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1004 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1005
1006 PERF_COUNT_HW_CACHE_L1D = 0x0
1007 PERF_COUNT_HW_CACHE_L1I = 0x1
1008 PERF_COUNT_HW_CACHE_LL = 0x2
1009 PERF_COUNT_HW_CACHE_DTLB = 0x3
1010 PERF_COUNT_HW_CACHE_ITLB = 0x4
1011 PERF_COUNT_HW_CACHE_BPU = 0x5
1012 PERF_COUNT_HW_CACHE_NODE = 0x6
1013
1014 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1015 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1016 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1017
1018 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1019 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1020
1021 PERF_COUNT_SW_CPU_CLOCK = 0x0
1022 PERF_COUNT_SW_TASK_CLOCK = 0x1
1023 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1024 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1025 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1026 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1027 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1028 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1029 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1030 PERF_COUNT_SW_DUMMY = 0x9
1031
1032 PERF_SAMPLE_IP = 0x1
1033 PERF_SAMPLE_TID = 0x2
1034 PERF_SAMPLE_TIME = 0x4
1035 PERF_SAMPLE_ADDR = 0x8
1036 PERF_SAMPLE_READ = 0x10
1037 PERF_SAMPLE_CALLCHAIN = 0x20
1038 PERF_SAMPLE_ID = 0x40
1039 PERF_SAMPLE_CPU = 0x80
1040 PERF_SAMPLE_PERIOD = 0x100
1041 PERF_SAMPLE_STREAM_ID = 0x200
1042 PERF_SAMPLE_RAW = 0x400
1043 PERF_SAMPLE_BRANCH_STACK = 0x800
1044
1045 PERF_SAMPLE_BRANCH_USER = 0x1
1046 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1047 PERF_SAMPLE_BRANCH_HV = 0x4
1048 PERF_SAMPLE_BRANCH_ANY = 0x8
1049 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1050 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1051 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1052
1053 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1054 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1055 PERF_FORMAT_ID = 0x4
1056 PERF_FORMAT_GROUP = 0x8
1057
1058 PERF_RECORD_MMAP = 0x1
1059 PERF_RECORD_LOST = 0x2
1060 PERF_RECORD_COMM = 0x3
1061 PERF_RECORD_EXIT = 0x4
1062 PERF_RECORD_THROTTLE = 0x5
1063 PERF_RECORD_UNTHROTTLE = 0x6
1064 PERF_RECORD_FORK = 0x7
1065 PERF_RECORD_READ = 0x8
1066 PERF_RECORD_SAMPLE = 0x9
1067
1068 PERF_CONTEXT_HV = -0x20
1069 PERF_CONTEXT_KERNEL = -0x80
1070 PERF_CONTEXT_USER = -0x200
1071
1072 PERF_CONTEXT_GUEST = -0x800
1073 PERF_CONTEXT_GUEST_KERNEL = -0x880
1074 PERF_CONTEXT_GUEST_USER = -0xa00
1075
1076 PERF_FLAG_FD_NO_GROUP = 0x1
1077 PERF_FLAG_FD_OUTPUT = 0x2
1078 PERF_FLAG_PID_CGROUP = 0x4
1079)
1080
1081const (
1082 CBitFieldMaskBit0 = 0x8000000000000000
1083 CBitFieldMaskBit1 = 0x4000000000000000
1084 CBitFieldMaskBit2 = 0x2000000000000000
1085 CBitFieldMaskBit3 = 0x1000000000000000
1086 CBitFieldMaskBit4 = 0x800000000000000
1087 CBitFieldMaskBit5 = 0x400000000000000
1088 CBitFieldMaskBit6 = 0x200000000000000
1089 CBitFieldMaskBit7 = 0x100000000000000
1090 CBitFieldMaskBit8 = 0x80000000000000
1091 CBitFieldMaskBit9 = 0x40000000000000
1092 CBitFieldMaskBit10 = 0x20000000000000
1093 CBitFieldMaskBit11 = 0x10000000000000
1094 CBitFieldMaskBit12 = 0x8000000000000
1095 CBitFieldMaskBit13 = 0x4000000000000
1096 CBitFieldMaskBit14 = 0x2000000000000
1097 CBitFieldMaskBit15 = 0x1000000000000
1098 CBitFieldMaskBit16 = 0x800000000000
1099 CBitFieldMaskBit17 = 0x400000000000
1100 CBitFieldMaskBit18 = 0x200000000000
1101 CBitFieldMaskBit19 = 0x100000000000
1102 CBitFieldMaskBit20 = 0x80000000000
1103 CBitFieldMaskBit21 = 0x40000000000
1104 CBitFieldMaskBit22 = 0x20000000000
1105 CBitFieldMaskBit23 = 0x10000000000
1106 CBitFieldMaskBit24 = 0x8000000000
1107 CBitFieldMaskBit25 = 0x4000000000
1108 CBitFieldMaskBit26 = 0x2000000000
1109 CBitFieldMaskBit27 = 0x1000000000
1110 CBitFieldMaskBit28 = 0x800000000
1111 CBitFieldMaskBit29 = 0x400000000
1112 CBitFieldMaskBit30 = 0x200000000
1113 CBitFieldMaskBit31 = 0x100000000
1114 CBitFieldMaskBit32 = 0x80000000
1115 CBitFieldMaskBit33 = 0x40000000
1116 CBitFieldMaskBit34 = 0x20000000
1117 CBitFieldMaskBit35 = 0x10000000
1118 CBitFieldMaskBit36 = 0x8000000
1119 CBitFieldMaskBit37 = 0x4000000
1120 CBitFieldMaskBit38 = 0x2000000
1121 CBitFieldMaskBit39 = 0x1000000
1122 CBitFieldMaskBit40 = 0x800000
1123 CBitFieldMaskBit41 = 0x400000
1124 CBitFieldMaskBit42 = 0x200000
1125 CBitFieldMaskBit43 = 0x100000
1126 CBitFieldMaskBit44 = 0x80000
1127 CBitFieldMaskBit45 = 0x40000
1128 CBitFieldMaskBit46 = 0x20000
1129 CBitFieldMaskBit47 = 0x10000
1130 CBitFieldMaskBit48 = 0x8000
1131 CBitFieldMaskBit49 = 0x4000
1132 CBitFieldMaskBit50 = 0x2000
1133 CBitFieldMaskBit51 = 0x1000
1134 CBitFieldMaskBit52 = 0x800
1135 CBitFieldMaskBit53 = 0x400
1136 CBitFieldMaskBit54 = 0x200
1137 CBitFieldMaskBit55 = 0x100
1138 CBitFieldMaskBit56 = 0x80
1139 CBitFieldMaskBit57 = 0x40
1140 CBitFieldMaskBit58 = 0x20
1141 CBitFieldMaskBit59 = 0x10
1142 CBitFieldMaskBit60 = 0x8
1143 CBitFieldMaskBit61 = 0x4
1144 CBitFieldMaskBit62 = 0x2
1145 CBitFieldMaskBit63 = 0x1
1146)
1147
1148type SockaddrStorage struct {
1149 Family uint16
1150 _ [122]int8
1151 _ uint32
1152}
1153
1154type TCPMD5Sig struct {
1155 Addr SockaddrStorage
1156 Flags uint8
1157 Prefixlen uint8
1158 Keylen uint16
1159 _ uint32
1160 Key [80]uint8
1161}
1162
1163type HDDriveCmdHdr struct {
1164 Command uint8
1165 Number uint8
1166 Feature uint8
1167 Count uint8
1168}
1169
1170type HDGeometry struct {
1171 Heads uint8
1172 Sectors uint8
1173 Cylinders uint16
1174 Start uint32
1175}
1176
1177type HDDriveID struct {
1178 Config uint16
1179 Cyls uint16
1180 Reserved2 uint16
1181 Heads uint16
1182 Track_bytes uint16
1183 Sector_bytes uint16
1184 Sectors uint16
1185 Vendor0 uint16
1186 Vendor1 uint16
1187 Vendor2 uint16
1188 Serial_no [20]uint8
1189 Buf_type uint16
1190 Buf_size uint16
1191 Ecc_bytes uint16
1192 Fw_rev [8]uint8
1193 Model [40]uint8
1194 Max_multsect uint8
1195 Vendor3 uint8
1196 Dword_io uint16
1197 Vendor4 uint8
1198 Capability uint8
1199 Reserved50 uint16
1200 Vendor5 uint8
1201 TPIO uint8
1202 Vendor6 uint8
1203 TDMA uint8
1204 Field_valid uint16
1205 Cur_cyls uint16
1206 Cur_heads uint16
1207 Cur_sectors uint16
1208 Cur_capacity0 uint16
1209 Cur_capacity1 uint16
1210 Multsect uint8
1211 Multsect_valid uint8
1212 Lba_capacity uint32
1213 Dma_1word uint16
1214 Dma_mword uint16
1215 Eide_pio_modes uint16
1216 Eide_dma_min uint16
1217 Eide_dma_time uint16
1218 Eide_pio uint16
1219 Eide_pio_iordy uint16
1220 Words69_70 [2]uint16
1221 Words71_74 [4]uint16
1222 Queue_depth uint16
1223 Words76_79 [4]uint16
1224 Major_rev_num uint16
1225 Minor_rev_num uint16
1226 Command_set_1 uint16
1227 Command_set_2 uint16
1228 Cfsse uint16
1229 Cfs_enable_1 uint16
1230 Cfs_enable_2 uint16
1231 Csf_default uint16
1232 Dma_ultra uint16
1233 Trseuc uint16
1234 TrsEuc uint16
1235 CurAPMvalues uint16
1236 Mprc uint16
1237 Hw_config uint16
1238 Acoustic uint16
1239 Msrqs uint16
1240 Sxfert uint16
1241 Sal uint16
1242 Spg uint32
1243 Lba_capacity_2 uint64
1244 Words104_125 [22]uint16
1245 Last_lun uint16
1246 Word127 uint16
1247 Dlf uint16
1248 Csfo uint16
1249 Words130_155 [26]uint16
1250 Word156 uint16
1251 Words157_159 [3]uint16
1252 Cfa_power uint16
1253 Words161_175 [15]uint16
1254 Words176_205 [30]uint16
1255 Words206_254 [49]uint16
1256 Integrity_word uint16
1257}
1258
1259type Statfs_t struct {
1260 Type int32
1261 Bsize int32
1262 Frsize int32
1263 _ [4]byte
1264 Blocks uint64
1265 Bfree uint64
1266 Files uint64
1267 Ffree uint64
1268 Bavail uint64
1269 Fsid Fsid
1270 Namelen int32
1271 Flags int32
1272 Spare [5]int32
1273 _ [4]byte
1274}
1275
1276const (
1277 ST_MANDLOCK = 0x40
1278 ST_NOATIME = 0x400
1279 ST_NODEV = 0x4
1280 ST_NODIRATIME = 0x800
1281 ST_NOEXEC = 0x8
1282 ST_NOSUID = 0x2
1283 ST_RDONLY = 0x1
1284 ST_RELATIME = 0x1000
1285 ST_SYNCHRONOUS = 0x10
1286)
1287
1288type TpacketHdr struct {
1289 Status uint32
1290 Len uint32
1291 Snaplen uint32
1292 Mac uint16
1293 Net uint16
1294 Sec uint32
1295 Usec uint32
1296}
1297
1298type Tpacket2Hdr struct {
1299 Status uint32
1300 Len uint32
1301 Snaplen uint32
1302 Mac uint16
1303 Net uint16
1304 Sec uint32
1305 Nsec uint32
1306 Vlan_tci uint16
1307 Vlan_tpid uint16
1308 _ [4]uint8
1309}
1310
1311type Tpacket3Hdr struct {
1312 Next_offset uint32
1313 Sec uint32
1314 Nsec uint32
1315 Snaplen uint32
1316 Len uint32
1317 Status uint32
1318 Mac uint16
1319 Net uint16
1320 Hv1 TpacketHdrVariant1
1321 _ [8]uint8
1322}
1323
1324type TpacketHdrVariant1 struct {
1325 Rxhash uint32
1326 Vlan_tci uint32
1327 Vlan_tpid uint16
1328 _ uint16
1329}
1330
1331type TpacketBlockDesc struct {
1332 Version uint32
1333 To_priv uint32
1334 Hdr [40]byte
1335}
1336
1337type TpacketReq struct {
1338 Block_size uint32
1339 Block_nr uint32
1340 Frame_size uint32
1341 Frame_nr uint32
1342}
1343
1344type TpacketReq3 struct {
1345 Block_size uint32
1346 Block_nr uint32
1347 Frame_size uint32
1348 Frame_nr uint32
1349 Retire_blk_tov uint32
1350 Sizeof_priv uint32
1351 Feature_req_word uint32
1352}
1353
1354type TpacketStats struct {
1355 Packets uint32
1356 Drops uint32
1357}
1358
1359type TpacketStatsV3 struct {
1360 Packets uint32
1361 Drops uint32
1362 Freeze_q_cnt uint32
1363}
1364
1365type TpacketAuxdata struct {
1366 Status uint32
1367 Len uint32
1368 Snaplen uint32
1369 Mac uint16
1370 Net uint16
1371 Vlan_tci uint16
1372 Vlan_tpid uint16
1373}
1374
1375const (
1376 TPACKET_V1 = 0x0
1377 TPACKET_V2 = 0x1
1378 TPACKET_V3 = 0x2
1379)
1380
1381const (
1382 SizeofTpacketHdr = 0x18
1383 SizeofTpacket2Hdr = 0x20
1384 SizeofTpacket3Hdr = 0x30
1385)
1386
1387const (
1388 NF_INET_PRE_ROUTING = 0x0
1389 NF_INET_LOCAL_IN = 0x1
1390 NF_INET_FORWARD = 0x2
1391 NF_INET_LOCAL_OUT = 0x3
1392 NF_INET_POST_ROUTING = 0x4
1393 NF_INET_NUMHOOKS = 0x5
1394)
1395
1396const (
1397 NF_NETDEV_INGRESS = 0x0
1398 NF_NETDEV_NUMHOOKS = 0x1
1399)
1400
1401const (
1402 NFPROTO_UNSPEC = 0x0
1403 NFPROTO_INET = 0x1
1404 NFPROTO_IPV4 = 0x2
1405 NFPROTO_ARP = 0x3
1406 NFPROTO_NETDEV = 0x5
1407 NFPROTO_BRIDGE = 0x7
1408 NFPROTO_IPV6 = 0xa
1409 NFPROTO_DECNET = 0xc
1410 NFPROTO_NUMPROTO = 0xd
1411)
1412
1413type Nfgenmsg struct {
1414 Nfgen_family uint8
1415 Version uint8
1416 Res_id uint16
1417}
1418
1419const (
1420 NFNL_BATCH_UNSPEC = 0x0
1421 NFNL_BATCH_GENID = 0x1
1422)
1423
1424const (
1425 NFT_REG_VERDICT = 0x0
1426 NFT_REG_1 = 0x1
1427 NFT_REG_2 = 0x2
1428 NFT_REG_3 = 0x3
1429 NFT_REG_4 = 0x4
1430 NFT_REG32_00 = 0x8
1431 NFT_REG32_01 = 0x9
1432 NFT_REG32_02 = 0xa
1433 NFT_REG32_03 = 0xb
1434 NFT_REG32_04 = 0xc
1435 NFT_REG32_05 = 0xd
1436 NFT_REG32_06 = 0xe
1437 NFT_REG32_07 = 0xf
1438 NFT_REG32_08 = 0x10
1439 NFT_REG32_09 = 0x11
1440 NFT_REG32_10 = 0x12
1441 NFT_REG32_11 = 0x13
1442 NFT_REG32_12 = 0x14
1443 NFT_REG32_13 = 0x15
1444 NFT_REG32_14 = 0x16
1445 NFT_REG32_15 = 0x17
1446 NFT_CONTINUE = -0x1
1447 NFT_BREAK = -0x2
1448 NFT_JUMP = -0x3
1449 NFT_GOTO = -0x4
1450 NFT_RETURN = -0x5
1451 NFT_MSG_NEWTABLE = 0x0
1452 NFT_MSG_GETTABLE = 0x1
1453 NFT_MSG_DELTABLE = 0x2
1454 NFT_MSG_NEWCHAIN = 0x3
1455 NFT_MSG_GETCHAIN = 0x4
1456 NFT_MSG_DELCHAIN = 0x5
1457 NFT_MSG_NEWRULE = 0x6
1458 NFT_MSG_GETRULE = 0x7
1459 NFT_MSG_DELRULE = 0x8
1460 NFT_MSG_NEWSET = 0x9
1461 NFT_MSG_GETSET = 0xa
1462 NFT_MSG_DELSET = 0xb
1463 NFT_MSG_NEWSETELEM = 0xc
1464 NFT_MSG_GETSETELEM = 0xd
1465 NFT_MSG_DELSETELEM = 0xe
1466 NFT_MSG_NEWGEN = 0xf
1467 NFT_MSG_GETGEN = 0x10
1468 NFT_MSG_TRACE = 0x11
1469 NFT_MSG_NEWOBJ = 0x12
1470 NFT_MSG_GETOBJ = 0x13
1471 NFT_MSG_DELOBJ = 0x14
1472 NFT_MSG_GETOBJ_RESET = 0x15
1473 NFT_MSG_MAX = 0x19
1474 NFTA_LIST_UNPEC = 0x0
1475 NFTA_LIST_ELEM = 0x1
1476 NFTA_HOOK_UNSPEC = 0x0
1477 NFTA_HOOK_HOOKNUM = 0x1
1478 NFTA_HOOK_PRIORITY = 0x2
1479 NFTA_HOOK_DEV = 0x3
1480 NFT_TABLE_F_DORMANT = 0x1
1481 NFTA_TABLE_UNSPEC = 0x0
1482 NFTA_TABLE_NAME = 0x1
1483 NFTA_TABLE_FLAGS = 0x2
1484 NFTA_TABLE_USE = 0x3
1485 NFTA_CHAIN_UNSPEC = 0x0
1486 NFTA_CHAIN_TABLE = 0x1
1487 NFTA_CHAIN_HANDLE = 0x2
1488 NFTA_CHAIN_NAME = 0x3
1489 NFTA_CHAIN_HOOK = 0x4
1490 NFTA_CHAIN_POLICY = 0x5
1491 NFTA_CHAIN_USE = 0x6
1492 NFTA_CHAIN_TYPE = 0x7
1493 NFTA_CHAIN_COUNTERS = 0x8
1494 NFTA_CHAIN_PAD = 0x9
1495 NFTA_RULE_UNSPEC = 0x0
1496 NFTA_RULE_TABLE = 0x1
1497 NFTA_RULE_CHAIN = 0x2
1498 NFTA_RULE_HANDLE = 0x3
1499 NFTA_RULE_EXPRESSIONS = 0x4
1500 NFTA_RULE_COMPAT = 0x5
1501 NFTA_RULE_POSITION = 0x6
1502 NFTA_RULE_USERDATA = 0x7
1503 NFTA_RULE_PAD = 0x8
1504 NFTA_RULE_ID = 0x9
1505 NFT_RULE_COMPAT_F_INV = 0x2
1506 NFT_RULE_COMPAT_F_MASK = 0x2
1507 NFTA_RULE_COMPAT_UNSPEC = 0x0
1508 NFTA_RULE_COMPAT_PROTO = 0x1
1509 NFTA_RULE_COMPAT_FLAGS = 0x2
1510 NFT_SET_ANONYMOUS = 0x1
1511 NFT_SET_CONSTANT = 0x2
1512 NFT_SET_INTERVAL = 0x4
1513 NFT_SET_MAP = 0x8
1514 NFT_SET_TIMEOUT = 0x10
1515 NFT_SET_EVAL = 0x20
1516 NFT_SET_OBJECT = 0x40
1517 NFT_SET_POL_PERFORMANCE = 0x0
1518 NFT_SET_POL_MEMORY = 0x1
1519 NFTA_SET_DESC_UNSPEC = 0x0
1520 NFTA_SET_DESC_SIZE = 0x1
1521 NFTA_SET_UNSPEC = 0x0
1522 NFTA_SET_TABLE = 0x1
1523 NFTA_SET_NAME = 0x2
1524 NFTA_SET_FLAGS = 0x3
1525 NFTA_SET_KEY_TYPE = 0x4
1526 NFTA_SET_KEY_LEN = 0x5
1527 NFTA_SET_DATA_TYPE = 0x6
1528 NFTA_SET_DATA_LEN = 0x7
1529 NFTA_SET_POLICY = 0x8
1530 NFTA_SET_DESC = 0x9
1531 NFTA_SET_ID = 0xa
1532 NFTA_SET_TIMEOUT = 0xb
1533 NFTA_SET_GC_INTERVAL = 0xc
1534 NFTA_SET_USERDATA = 0xd
1535 NFTA_SET_PAD = 0xe
1536 NFTA_SET_OBJ_TYPE = 0xf
1537 NFT_SET_ELEM_INTERVAL_END = 0x1
1538 NFTA_SET_ELEM_UNSPEC = 0x0
1539 NFTA_SET_ELEM_KEY = 0x1
1540 NFTA_SET_ELEM_DATA = 0x2
1541 NFTA_SET_ELEM_FLAGS = 0x3
1542 NFTA_SET_ELEM_TIMEOUT = 0x4
1543 NFTA_SET_ELEM_EXPIRATION = 0x5
1544 NFTA_SET_ELEM_USERDATA = 0x6
1545 NFTA_SET_ELEM_EXPR = 0x7
1546 NFTA_SET_ELEM_PAD = 0x8
1547 NFTA_SET_ELEM_OBJREF = 0x9
1548 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1549 NFTA_SET_ELEM_LIST_TABLE = 0x1
1550 NFTA_SET_ELEM_LIST_SET = 0x2
1551 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1552 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1553 NFT_DATA_VALUE = 0x0
1554 NFT_DATA_VERDICT = 0xffffff00
1555 NFTA_DATA_UNSPEC = 0x0
1556 NFTA_DATA_VALUE = 0x1
1557 NFTA_DATA_VERDICT = 0x2
1558 NFTA_VERDICT_UNSPEC = 0x0
1559 NFTA_VERDICT_CODE = 0x1
1560 NFTA_VERDICT_CHAIN = 0x2
1561 NFTA_EXPR_UNSPEC = 0x0
1562 NFTA_EXPR_NAME = 0x1
1563 NFTA_EXPR_DATA = 0x2
1564 NFTA_IMMEDIATE_UNSPEC = 0x0
1565 NFTA_IMMEDIATE_DREG = 0x1
1566 NFTA_IMMEDIATE_DATA = 0x2
1567 NFTA_BITWISE_UNSPEC = 0x0
1568 NFTA_BITWISE_SREG = 0x1
1569 NFTA_BITWISE_DREG = 0x2
1570 NFTA_BITWISE_LEN = 0x3
1571 NFTA_BITWISE_MASK = 0x4
1572 NFTA_BITWISE_XOR = 0x5
1573 NFT_BYTEORDER_NTOH = 0x0
1574 NFT_BYTEORDER_HTON = 0x1
1575 NFTA_BYTEORDER_UNSPEC = 0x0
1576 NFTA_BYTEORDER_SREG = 0x1
1577 NFTA_BYTEORDER_DREG = 0x2
1578 NFTA_BYTEORDER_OP = 0x3
1579 NFTA_BYTEORDER_LEN = 0x4
1580 NFTA_BYTEORDER_SIZE = 0x5
1581 NFT_CMP_EQ = 0x0
1582 NFT_CMP_NEQ = 0x1
1583 NFT_CMP_LT = 0x2
1584 NFT_CMP_LTE = 0x3
1585 NFT_CMP_GT = 0x4
1586 NFT_CMP_GTE = 0x5
1587 NFTA_CMP_UNSPEC = 0x0
1588 NFTA_CMP_SREG = 0x1
1589 NFTA_CMP_OP = 0x2
1590 NFTA_CMP_DATA = 0x3
1591 NFT_RANGE_EQ = 0x0
1592 NFT_RANGE_NEQ = 0x1
1593 NFTA_RANGE_UNSPEC = 0x0
1594 NFTA_RANGE_SREG = 0x1
1595 NFTA_RANGE_OP = 0x2
1596 NFTA_RANGE_FROM_DATA = 0x3
1597 NFTA_RANGE_TO_DATA = 0x4
1598 NFT_LOOKUP_F_INV = 0x1
1599 NFTA_LOOKUP_UNSPEC = 0x0
1600 NFTA_LOOKUP_SET = 0x1
1601 NFTA_LOOKUP_SREG = 0x2
1602 NFTA_LOOKUP_DREG = 0x3
1603 NFTA_LOOKUP_SET_ID = 0x4
1604 NFTA_LOOKUP_FLAGS = 0x5
1605 NFT_DYNSET_OP_ADD = 0x0
1606 NFT_DYNSET_OP_UPDATE = 0x1
1607 NFT_DYNSET_F_INV = 0x1
1608 NFTA_DYNSET_UNSPEC = 0x0
1609 NFTA_DYNSET_SET_NAME = 0x1
1610 NFTA_DYNSET_SET_ID = 0x2
1611 NFTA_DYNSET_OP = 0x3
1612 NFTA_DYNSET_SREG_KEY = 0x4
1613 NFTA_DYNSET_SREG_DATA = 0x5
1614 NFTA_DYNSET_TIMEOUT = 0x6
1615 NFTA_DYNSET_EXPR = 0x7
1616 NFTA_DYNSET_PAD = 0x8
1617 NFTA_DYNSET_FLAGS = 0x9
1618 NFT_PAYLOAD_LL_HEADER = 0x0
1619 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1620 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1621 NFT_PAYLOAD_CSUM_NONE = 0x0
1622 NFT_PAYLOAD_CSUM_INET = 0x1
1623 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1624 NFTA_PAYLOAD_UNSPEC = 0x0
1625 NFTA_PAYLOAD_DREG = 0x1
1626 NFTA_PAYLOAD_BASE = 0x2
1627 NFTA_PAYLOAD_OFFSET = 0x3
1628 NFTA_PAYLOAD_LEN = 0x4
1629 NFTA_PAYLOAD_SREG = 0x5
1630 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1631 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1632 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1633 NFT_EXTHDR_F_PRESENT = 0x1
1634 NFT_EXTHDR_OP_IPV6 = 0x0
1635 NFT_EXTHDR_OP_TCPOPT = 0x1
1636 NFTA_EXTHDR_UNSPEC = 0x0
1637 NFTA_EXTHDR_DREG = 0x1
1638 NFTA_EXTHDR_TYPE = 0x2
1639 NFTA_EXTHDR_OFFSET = 0x3
1640 NFTA_EXTHDR_LEN = 0x4
1641 NFTA_EXTHDR_FLAGS = 0x5
1642 NFTA_EXTHDR_OP = 0x6
1643 NFTA_EXTHDR_SREG = 0x7
1644 NFT_META_LEN = 0x0
1645 NFT_META_PROTOCOL = 0x1
1646 NFT_META_PRIORITY = 0x2
1647 NFT_META_MARK = 0x3
1648 NFT_META_IIF = 0x4
1649 NFT_META_OIF = 0x5
1650 NFT_META_IIFNAME = 0x6
1651 NFT_META_OIFNAME = 0x7
1652 NFT_META_IIFTYPE = 0x8
1653 NFT_META_OIFTYPE = 0x9
1654 NFT_META_SKUID = 0xa
1655 NFT_META_SKGID = 0xb
1656 NFT_META_NFTRACE = 0xc
1657 NFT_META_RTCLASSID = 0xd
1658 NFT_META_SECMARK = 0xe
1659 NFT_META_NFPROTO = 0xf
1660 NFT_META_L4PROTO = 0x10
1661 NFT_META_BRI_IIFNAME = 0x11
1662 NFT_META_BRI_OIFNAME = 0x12
1663 NFT_META_PKTTYPE = 0x13
1664 NFT_META_CPU = 0x14
1665 NFT_META_IIFGROUP = 0x15
1666 NFT_META_OIFGROUP = 0x16
1667 NFT_META_CGROUP = 0x17
1668 NFT_META_PRANDOM = 0x18
1669 NFT_RT_CLASSID = 0x0
1670 NFT_RT_NEXTHOP4 = 0x1
1671 NFT_RT_NEXTHOP6 = 0x2
1672 NFT_RT_TCPMSS = 0x3
1673 NFT_HASH_JENKINS = 0x0
1674 NFT_HASH_SYM = 0x1
1675 NFTA_HASH_UNSPEC = 0x0
1676 NFTA_HASH_SREG = 0x1
1677 NFTA_HASH_DREG = 0x2
1678 NFTA_HASH_LEN = 0x3
1679 NFTA_HASH_MODULUS = 0x4
1680 NFTA_HASH_SEED = 0x5
1681 NFTA_HASH_OFFSET = 0x6
1682 NFTA_HASH_TYPE = 0x7
1683 NFTA_META_UNSPEC = 0x0
1684 NFTA_META_DREG = 0x1
1685 NFTA_META_KEY = 0x2
1686 NFTA_META_SREG = 0x3
1687 NFTA_RT_UNSPEC = 0x0
1688 NFTA_RT_DREG = 0x1
1689 NFTA_RT_KEY = 0x2
1690 NFT_CT_STATE = 0x0
1691 NFT_CT_DIRECTION = 0x1
1692 NFT_CT_STATUS = 0x2
1693 NFT_CT_MARK = 0x3
1694 NFT_CT_SECMARK = 0x4
1695 NFT_CT_EXPIRATION = 0x5
1696 NFT_CT_HELPER = 0x6
1697 NFT_CT_L3PROTOCOL = 0x7
1698 NFT_CT_SRC = 0x8
1699 NFT_CT_DST = 0x9
1700 NFT_CT_PROTOCOL = 0xa
1701 NFT_CT_PROTO_SRC = 0xb
1702 NFT_CT_PROTO_DST = 0xc
1703 NFT_CT_LABELS = 0xd
1704 NFT_CT_PKTS = 0xe
1705 NFT_CT_BYTES = 0xf
1706 NFT_CT_AVGPKT = 0x10
1707 NFT_CT_ZONE = 0x11
1708 NFT_CT_EVENTMASK = 0x12
1709 NFTA_CT_UNSPEC = 0x0
1710 NFTA_CT_DREG = 0x1
1711 NFTA_CT_KEY = 0x2
1712 NFTA_CT_DIRECTION = 0x3
1713 NFTA_CT_SREG = 0x4
1714 NFT_LIMIT_PKTS = 0x0
1715 NFT_LIMIT_PKT_BYTES = 0x1
1716 NFT_LIMIT_F_INV = 0x1
1717 NFTA_LIMIT_UNSPEC = 0x0
1718 NFTA_LIMIT_RATE = 0x1
1719 NFTA_LIMIT_UNIT = 0x2
1720 NFTA_LIMIT_BURST = 0x3
1721 NFTA_LIMIT_TYPE = 0x4
1722 NFTA_LIMIT_FLAGS = 0x5
1723 NFTA_LIMIT_PAD = 0x6
1724 NFTA_COUNTER_UNSPEC = 0x0
1725 NFTA_COUNTER_BYTES = 0x1
1726 NFTA_COUNTER_PACKETS = 0x2
1727 NFTA_COUNTER_PAD = 0x3
1728 NFTA_LOG_UNSPEC = 0x0
1729 NFTA_LOG_GROUP = 0x1
1730 NFTA_LOG_PREFIX = 0x2
1731 NFTA_LOG_SNAPLEN = 0x3
1732 NFTA_LOG_QTHRESHOLD = 0x4
1733 NFTA_LOG_LEVEL = 0x5
1734 NFTA_LOG_FLAGS = 0x6
1735 NFTA_QUEUE_UNSPEC = 0x0
1736 NFTA_QUEUE_NUM = 0x1
1737 NFTA_QUEUE_TOTAL = 0x2
1738 NFTA_QUEUE_FLAGS = 0x3
1739 NFTA_QUEUE_SREG_QNUM = 0x4
1740 NFT_QUOTA_F_INV = 0x1
1741 NFT_QUOTA_F_DEPLETED = 0x2
1742 NFTA_QUOTA_UNSPEC = 0x0
1743 NFTA_QUOTA_BYTES = 0x1
1744 NFTA_QUOTA_FLAGS = 0x2
1745 NFTA_QUOTA_PAD = 0x3
1746 NFTA_QUOTA_CONSUMED = 0x4
1747 NFT_REJECT_ICMP_UNREACH = 0x0
1748 NFT_REJECT_TCP_RST = 0x1
1749 NFT_REJECT_ICMPX_UNREACH = 0x2
1750 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1751 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1752 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1753 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1754 NFTA_REJECT_UNSPEC = 0x0
1755 NFTA_REJECT_TYPE = 0x1
1756 NFTA_REJECT_ICMP_CODE = 0x2
1757 NFT_NAT_SNAT = 0x0
1758 NFT_NAT_DNAT = 0x1
1759 NFTA_NAT_UNSPEC = 0x0
1760 NFTA_NAT_TYPE = 0x1
1761 NFTA_NAT_FAMILY = 0x2
1762 NFTA_NAT_REG_ADDR_MIN = 0x3
1763 NFTA_NAT_REG_ADDR_MAX = 0x4
1764 NFTA_NAT_REG_PROTO_MIN = 0x5
1765 NFTA_NAT_REG_PROTO_MAX = 0x6
1766 NFTA_NAT_FLAGS = 0x7
1767 NFTA_MASQ_UNSPEC = 0x0
1768 NFTA_MASQ_FLAGS = 0x1
1769 NFTA_MASQ_REG_PROTO_MIN = 0x2
1770 NFTA_MASQ_REG_PROTO_MAX = 0x3
1771 NFTA_REDIR_UNSPEC = 0x0
1772 NFTA_REDIR_REG_PROTO_MIN = 0x1
1773 NFTA_REDIR_REG_PROTO_MAX = 0x2
1774 NFTA_REDIR_FLAGS = 0x3
1775 NFTA_DUP_UNSPEC = 0x0
1776 NFTA_DUP_SREG_ADDR = 0x1
1777 NFTA_DUP_SREG_DEV = 0x2
1778 NFTA_FWD_UNSPEC = 0x0
1779 NFTA_FWD_SREG_DEV = 0x1
1780 NFTA_OBJREF_UNSPEC = 0x0
1781 NFTA_OBJREF_IMM_TYPE = 0x1
1782 NFTA_OBJREF_IMM_NAME = 0x2
1783 NFTA_OBJREF_SET_SREG = 0x3
1784 NFTA_OBJREF_SET_NAME = 0x4
1785 NFTA_OBJREF_SET_ID = 0x5
1786 NFTA_GEN_UNSPEC = 0x0
1787 NFTA_GEN_ID = 0x1
1788 NFTA_GEN_PROC_PID = 0x2
1789 NFTA_GEN_PROC_NAME = 0x3
1790 NFTA_FIB_UNSPEC = 0x0
1791 NFTA_FIB_DREG = 0x1
1792 NFTA_FIB_RESULT = 0x2
1793 NFTA_FIB_FLAGS = 0x3
1794 NFT_FIB_RESULT_UNSPEC = 0x0
1795 NFT_FIB_RESULT_OIF = 0x1
1796 NFT_FIB_RESULT_OIFNAME = 0x2
1797 NFT_FIB_RESULT_ADDRTYPE = 0x3
1798 NFTA_FIB_F_SADDR = 0x1
1799 NFTA_FIB_F_DADDR = 0x2
1800 NFTA_FIB_F_MARK = 0x4
1801 NFTA_FIB_F_IIF = 0x8
1802 NFTA_FIB_F_OIF = 0x10
1803 NFTA_FIB_F_PRESENT = 0x20
1804 NFTA_CT_HELPER_UNSPEC = 0x0
1805 NFTA_CT_HELPER_NAME = 0x1
1806 NFTA_CT_HELPER_L3PROTO = 0x2
1807 NFTA_CT_HELPER_L4PROTO = 0x3
1808 NFTA_OBJ_UNSPEC = 0x0
1809 NFTA_OBJ_TABLE = 0x1
1810 NFTA_OBJ_NAME = 0x2
1811 NFTA_OBJ_TYPE = 0x3
1812 NFTA_OBJ_DATA = 0x4
1813 NFTA_OBJ_USE = 0x5
1814 NFTA_TRACE_UNSPEC = 0x0
1815 NFTA_TRACE_TABLE = 0x1
1816 NFTA_TRACE_CHAIN = 0x2
1817 NFTA_TRACE_RULE_HANDLE = 0x3
1818 NFTA_TRACE_TYPE = 0x4
1819 NFTA_TRACE_VERDICT = 0x5
1820 NFTA_TRACE_ID = 0x6
1821 NFTA_TRACE_LL_HEADER = 0x7
1822 NFTA_TRACE_NETWORK_HEADER = 0x8
1823 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1824 NFTA_TRACE_IIF = 0xa
1825 NFTA_TRACE_IIFTYPE = 0xb
1826 NFTA_TRACE_OIF = 0xc
1827 NFTA_TRACE_OIFTYPE = 0xd
1828 NFTA_TRACE_MARK = 0xe
1829 NFTA_TRACE_NFPROTO = 0xf
1830 NFTA_TRACE_POLICY = 0x10
1831 NFTA_TRACE_PAD = 0x11
1832 NFT_TRACETYPE_UNSPEC = 0x0
1833 NFT_TRACETYPE_POLICY = 0x1
1834 NFT_TRACETYPE_RETURN = 0x2
1835 NFT_TRACETYPE_RULE = 0x3
1836 NFTA_NG_UNSPEC = 0x0
1837 NFTA_NG_DREG = 0x1
1838 NFTA_NG_MODULUS = 0x2
1839 NFTA_NG_TYPE = 0x3
1840 NFTA_NG_OFFSET = 0x4
1841 NFT_NG_INCREMENTAL = 0x0
1842 NFT_NG_RANDOM = 0x1
1843)
1844
1845type RTCTime struct {
1846 Sec int32
1847 Min int32
1848 Hour int32
1849 Mday int32
1850 Mon int32
1851 Year int32
1852 Wday int32
1853 Yday int32
1854 Isdst int32
1855}
1856
1857type RTCWkAlrm struct {
1858 Enabled uint8
1859 Pending uint8
1860 _ [2]byte
1861 Time RTCTime
1862}
1863
1864type RTCPLLInfo struct {
1865 Ctrl int32
1866 Value int32
1867 Max int32
1868 Min int32
1869 Posmult int32
1870 Negmult int32
1871 Clock int32
1872}
1873
1874type BlkpgIoctlArg struct {
1875 Op int32
1876 Flags int32
1877 Datalen int32
1878 Data *byte
1879}
1880
1881type BlkpgPartition struct {
1882 Start int64
1883 Length int64
1884 Pno int32
1885 Devname [64]uint8
1886 Volname [64]uint8
1887 _ [4]byte
1888}
1889
1890const (
1891 BLKPG = 0x20001269
1892 BLKPG_ADD_PARTITION = 0x1
1893 BLKPG_DEL_PARTITION = 0x2
1894 BLKPG_RESIZE_PARTITION = 0x3
1895)
1896
1897const (
1898 NETNSA_NONE = 0x0
1899 NETNSA_NSID = 0x1
1900 NETNSA_PID = 0x2
1901 NETNSA_FD = 0x3
1902)
1903
1904type XDPRingOffset struct {
1905 Producer uint64
1906 Consumer uint64
1907 Desc uint64
1908}
1909
1910type XDPMmapOffsets struct {
1911 Rx XDPRingOffset
1912 Tx XDPRingOffset
1913 Fr XDPRingOffset
1914 Cr XDPRingOffset
1915}
1916
1917type XDPUmemReg struct {
1918 Addr uint64
1919 Len uint64
1920 Size uint32
1921 Headroom uint32
1922}
1923
1924type XDPStatistics struct {
1925 Rx_dropped uint64
1926 Rx_invalid_descs uint64
1927 Tx_invalid_descs uint64
1928}
1929
1930type XDPDesc struct {
1931 Addr uint64
1932 Len uint32
1933 Options uint32
1934}
1935
1936const (
1937 NCSI_CMD_UNSPEC = 0x0
1938 NCSI_CMD_PKG_INFO = 0x1
1939 NCSI_CMD_SET_INTERFACE = 0x2
1940 NCSI_CMD_CLEAR_INTERFACE = 0x3
1941 NCSI_ATTR_UNSPEC = 0x0
1942 NCSI_ATTR_IFINDEX = 0x1
1943 NCSI_ATTR_PACKAGE_LIST = 0x2
1944 NCSI_ATTR_PACKAGE_ID = 0x3
1945 NCSI_ATTR_CHANNEL_ID = 0x4
1946 NCSI_PKG_ATTR_UNSPEC = 0x0
1947 NCSI_PKG_ATTR = 0x1
1948 NCSI_PKG_ATTR_ID = 0x2
1949 NCSI_PKG_ATTR_FORCED = 0x3
1950 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1951 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1952 NCSI_CHANNEL_ATTR = 0x1
1953 NCSI_CHANNEL_ATTR_ID = 0x2
1954 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1955 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1956 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1957 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1958 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1959 NCSI_CHANNEL_ATTR_FORCED = 0x8
1960 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1961 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1962)
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 01e8f65..0b131a2 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -117,25 +117,10 @@ type Stat_t struct {
117 Blocks int64 117 Blocks int64
118} 118}
119 119
120type Statfs_t struct {
121 Type int64
122 Bsize int64
123 Frsize int64
124 Blocks uint64
125 Bfree uint64
126 Files uint64
127 Ffree uint64
128 Bavail uint64
129 Fsid Fsid
130 Namelen int64
131 Flags int64
132 Spare [5]int64
133}
134
135type StatxTimestamp struct { 120type StatxTimestamp struct {
136 Sec int64 121 Sec int64
137 Nsec uint32 122 Nsec uint32
138 X__reserved int32 123 _ int32
139} 124}
140 125
141type Statx_t struct { 126type Statx_t struct {
@@ -172,7 +157,7 @@ type Dirent struct {
172} 157}
173 158
174type Fsid struct { 159type Fsid struct {
175 X__val [2]int32 160 Val [2]int32
176} 161}
177 162
178type Flock_t struct { 163type Flock_t struct {
@@ -266,6 +251,13 @@ type RawSockaddrL2 struct {
266 _ [1]byte 251 _ [1]byte
267} 252}
268 253
254type RawSockaddrRFCOMM struct {
255 Family uint16
256 Bdaddr [6]uint8
257 Channel uint8
258 _ [1]byte
259}
260
269type RawSockaddrCAN struct { 261type RawSockaddrCAN struct {
270 Family uint16 262 Family uint16
271 _ [2]byte 263 _ [2]byte
@@ -289,6 +281,14 @@ type RawSockaddrVM struct {
289 Zero [4]uint8 281 Zero [4]uint8
290} 282}
291 283
284type RawSockaddrXDP struct {
285 Family uint16
286 Flags uint16
287 Ifindex uint32
288 Queue_id uint32
289 Shared_umem_fd uint32
290}
291
292type RawSockaddr struct { 292type RawSockaddr struct {
293 Family uint16 293 Family uint16
294 Data [14]int8 294 Data [14]int8
@@ -421,9 +421,11 @@ const (
421 SizeofSockaddrNetlink = 0xc 421 SizeofSockaddrNetlink = 0xc
422 SizeofSockaddrHCI = 0x6 422 SizeofSockaddrHCI = 0x6
423 SizeofSockaddrL2 = 0xe 423 SizeofSockaddrL2 = 0xe
424 SizeofSockaddrRFCOMM = 0xa
424 SizeofSockaddrCAN = 0x10 425 SizeofSockaddrCAN = 0x10
425 SizeofSockaddrALG = 0x58 426 SizeofSockaddrALG = 0x58
426 SizeofSockaddrVM = 0x10 427 SizeofSockaddrVM = 0x10
428 SizeofSockaddrXDP = 0x10
427 SizeofLinger = 0x8 429 SizeofLinger = 0x8
428 SizeofIovec = 0x10 430 SizeofIovec = 0x10
429 SizeofIPMreq = 0x8 431 SizeofIPMreq = 0x8
@@ -441,97 +443,138 @@ const (
441) 443)
442 444
443const ( 445const (
444 IFA_UNSPEC = 0x0 446 IFA_UNSPEC = 0x0
445 IFA_ADDRESS = 0x1 447 IFA_ADDRESS = 0x1
446 IFA_LOCAL = 0x2 448 IFA_LOCAL = 0x2
447 IFA_LABEL = 0x3 449 IFA_LABEL = 0x3
448 IFA_BROADCAST = 0x4 450 IFA_BROADCAST = 0x4
449 IFA_ANYCAST = 0x5 451 IFA_ANYCAST = 0x5
450 IFA_CACHEINFO = 0x6 452 IFA_CACHEINFO = 0x6
451 IFA_MULTICAST = 0x7 453 IFA_MULTICAST = 0x7
452 IFLA_UNSPEC = 0x0 454 IFLA_UNSPEC = 0x0
453 IFLA_ADDRESS = 0x1 455 IFLA_ADDRESS = 0x1
454 IFLA_BROADCAST = 0x2 456 IFLA_BROADCAST = 0x2
455 IFLA_IFNAME = 0x3 457 IFLA_IFNAME = 0x3
456 IFLA_MTU = 0x4 458 IFLA_INFO_KIND = 0x1
457 IFLA_LINK = 0x5 459 IFLA_MTU = 0x4
458 IFLA_QDISC = 0x6 460 IFLA_LINK = 0x5
459 IFLA_STATS = 0x7 461 IFLA_QDISC = 0x6
460 IFLA_COST = 0x8 462 IFLA_STATS = 0x7
461 IFLA_PRIORITY = 0x9 463 IFLA_COST = 0x8
462 IFLA_MASTER = 0xa 464 IFLA_PRIORITY = 0x9
463 IFLA_WIRELESS = 0xb 465 IFLA_MASTER = 0xa
464 IFLA_PROTINFO = 0xc 466 IFLA_WIRELESS = 0xb
465 IFLA_TXQLEN = 0xd 467 IFLA_PROTINFO = 0xc
466 IFLA_MAP = 0xe 468 IFLA_TXQLEN = 0xd
467 IFLA_WEIGHT = 0xf 469 IFLA_MAP = 0xe
468 IFLA_OPERSTATE = 0x10 470 IFLA_WEIGHT = 0xf
469 IFLA_LINKMODE = 0x11 471 IFLA_OPERSTATE = 0x10
470 IFLA_LINKINFO = 0x12 472 IFLA_LINKMODE = 0x11
471 IFLA_NET_NS_PID = 0x13 473 IFLA_LINKINFO = 0x12
472 IFLA_IFALIAS = 0x14 474 IFLA_NET_NS_PID = 0x13
473 IFLA_MAX = 0x2c 475 IFLA_IFALIAS = 0x14
474 RT_SCOPE_UNIVERSE = 0x0 476 IFLA_NUM_VF = 0x15
475 RT_SCOPE_SITE = 0xc8 477 IFLA_VFINFO_LIST = 0x16
476 RT_SCOPE_LINK = 0xfd 478 IFLA_STATS64 = 0x17
477 RT_SCOPE_HOST = 0xfe 479 IFLA_VF_PORTS = 0x18
478 RT_SCOPE_NOWHERE = 0xff 480 IFLA_PORT_SELF = 0x19
479 RT_TABLE_UNSPEC = 0x0 481 IFLA_AF_SPEC = 0x1a
480 RT_TABLE_COMPAT = 0xfc 482 IFLA_GROUP = 0x1b
481 RT_TABLE_DEFAULT = 0xfd 483 IFLA_NET_NS_FD = 0x1c
482 RT_TABLE_MAIN = 0xfe 484 IFLA_EXT_MASK = 0x1d
483 RT_TABLE_LOCAL = 0xff 485 IFLA_PROMISCUITY = 0x1e
484 RT_TABLE_MAX = 0xffffffff 486 IFLA_NUM_TX_QUEUES = 0x1f
485 RTA_UNSPEC = 0x0 487 IFLA_NUM_RX_QUEUES = 0x20
486 RTA_DST = 0x1 488 IFLA_CARRIER = 0x21
487 RTA_SRC = 0x2 489 IFLA_PHYS_PORT_ID = 0x22
488 RTA_IIF = 0x3 490 IFLA_CARRIER_CHANGES = 0x23
489 RTA_OIF = 0x4 491 IFLA_PHYS_SWITCH_ID = 0x24
490 RTA_GATEWAY = 0x5 492 IFLA_LINK_NETNSID = 0x25
491 RTA_PRIORITY = 0x6 493 IFLA_PHYS_PORT_NAME = 0x26
492 RTA_PREFSRC = 0x7 494 IFLA_PROTO_DOWN = 0x27
493 RTA_METRICS = 0x8 495 IFLA_GSO_MAX_SEGS = 0x28
494 RTA_MULTIPATH = 0x9 496 IFLA_GSO_MAX_SIZE = 0x29
495 RTA_FLOW = 0xb 497 IFLA_PAD = 0x2a
496 RTA_CACHEINFO = 0xc 498 IFLA_XDP = 0x2b
497 RTA_TABLE = 0xf 499 IFLA_EVENT = 0x2c
498 RTN_UNSPEC = 0x0 500 IFLA_NEW_NETNSID = 0x2d
499 RTN_UNICAST = 0x1 501 IFLA_IF_NETNSID = 0x2e
500 RTN_LOCAL = 0x2 502 IFLA_MAX = 0x31
501 RTN_BROADCAST = 0x3 503 RT_SCOPE_UNIVERSE = 0x0
502 RTN_ANYCAST = 0x4 504 RT_SCOPE_SITE = 0xc8
503 RTN_MULTICAST = 0x5 505 RT_SCOPE_LINK = 0xfd
504 RTN_BLACKHOLE = 0x6 506 RT_SCOPE_HOST = 0xfe
505 RTN_UNREACHABLE = 0x7 507 RT_SCOPE_NOWHERE = 0xff
506 RTN_PROHIBIT = 0x8 508 RT_TABLE_UNSPEC = 0x0
507 RTN_THROW = 0x9 509 RT_TABLE_COMPAT = 0xfc
508 RTN_NAT = 0xa 510 RT_TABLE_DEFAULT = 0xfd
509 RTN_XRESOLVE = 0xb 511 RT_TABLE_MAIN = 0xfe
510 RTNLGRP_NONE = 0x0 512 RT_TABLE_LOCAL = 0xff
511 RTNLGRP_LINK = 0x1 513 RT_TABLE_MAX = 0xffffffff
512 RTNLGRP_NOTIFY = 0x2 514 RTA_UNSPEC = 0x0
513 RTNLGRP_NEIGH = 0x3 515 RTA_DST = 0x1
514 RTNLGRP_TC = 0x4 516 RTA_SRC = 0x2
515 RTNLGRP_IPV4_IFADDR = 0x5 517 RTA_IIF = 0x3
516 RTNLGRP_IPV4_MROUTE = 0x6 518 RTA_OIF = 0x4
517 RTNLGRP_IPV4_ROUTE = 0x7 519 RTA_GATEWAY = 0x5
518 RTNLGRP_IPV4_RULE = 0x8 520 RTA_PRIORITY = 0x6
519 RTNLGRP_IPV6_IFADDR = 0x9 521 RTA_PREFSRC = 0x7
520 RTNLGRP_IPV6_MROUTE = 0xa 522 RTA_METRICS = 0x8
521 RTNLGRP_IPV6_ROUTE = 0xb 523 RTA_MULTIPATH = 0x9
522 RTNLGRP_IPV6_IFINFO = 0xc 524 RTA_FLOW = 0xb
523 RTNLGRP_IPV6_PREFIX = 0x12 525 RTA_CACHEINFO = 0xc
524 RTNLGRP_IPV6_RULE = 0x13 526 RTA_TABLE = 0xf
525 RTNLGRP_ND_USEROPT = 0x14 527 RTA_MARK = 0x10
526 SizeofNlMsghdr = 0x10 528 RTA_MFC_STATS = 0x11
527 SizeofNlMsgerr = 0x14 529 RTA_VIA = 0x12
528 SizeofRtGenmsg = 0x1 530 RTA_NEWDST = 0x13
529 SizeofNlAttr = 0x4 531 RTA_PREF = 0x14
530 SizeofRtAttr = 0x4 532 RTA_ENCAP_TYPE = 0x15
531 SizeofIfInfomsg = 0x10 533 RTA_ENCAP = 0x16
532 SizeofIfAddrmsg = 0x8 534 RTA_EXPIRES = 0x17
533 SizeofRtMsg = 0xc 535 RTA_PAD = 0x18
534 SizeofRtNexthop = 0x8 536 RTA_UID = 0x19
537 RTA_TTL_PROPAGATE = 0x1a
538 RTA_IP_PROTO = 0x1b
539 RTA_SPORT = 0x1c
540 RTA_DPORT = 0x1d
541 RTN_UNSPEC = 0x0
542 RTN_UNICAST = 0x1
543 RTN_LOCAL = 0x2
544 RTN_BROADCAST = 0x3
545 RTN_ANYCAST = 0x4
546 RTN_MULTICAST = 0x5
547 RTN_BLACKHOLE = 0x6
548 RTN_UNREACHABLE = 0x7
549 RTN_PROHIBIT = 0x8
550 RTN_THROW = 0x9
551 RTN_NAT = 0xa
552 RTN_XRESOLVE = 0xb
553 RTNLGRP_NONE = 0x0
554 RTNLGRP_LINK = 0x1
555 RTNLGRP_NOTIFY = 0x2
556 RTNLGRP_NEIGH = 0x3
557 RTNLGRP_TC = 0x4
558 RTNLGRP_IPV4_IFADDR = 0x5
559 RTNLGRP_IPV4_MROUTE = 0x6
560 RTNLGRP_IPV4_ROUTE = 0x7
561 RTNLGRP_IPV4_RULE = 0x8
562 RTNLGRP_IPV6_IFADDR = 0x9
563 RTNLGRP_IPV6_MROUTE = 0xa
564 RTNLGRP_IPV6_ROUTE = 0xb
565 RTNLGRP_IPV6_IFINFO = 0xc
566 RTNLGRP_IPV6_PREFIX = 0x12
567 RTNLGRP_IPV6_RULE = 0x13
568 RTNLGRP_ND_USEROPT = 0x14
569 SizeofNlMsghdr = 0x10
570 SizeofNlMsgerr = 0x14
571 SizeofRtGenmsg = 0x1
572 SizeofNlAttr = 0x4
573 SizeofRtAttr = 0x4
574 SizeofIfInfomsg = 0x10
575 SizeofIfAddrmsg = 0x8
576 SizeofRtMsg = 0xc
577 SizeofRtNexthop = 0x8
535) 578)
536 579
537type NlMsghdr struct { 580type NlMsghdr struct {
@@ -562,12 +605,12 @@ type RtAttr struct {
562} 605}
563 606
564type IfInfomsg struct { 607type IfInfomsg struct {
565 Family uint8 608 Family uint8
566 X__ifi_pad uint8 609 _ uint8
567 Type uint16 610 Type uint16
568 Index int32 611 Index int32
569 Flags uint32 612 Flags uint32
570 Change uint32 613 Change uint32
571} 614}
572 615
573type IfAddrmsg struct { 616type IfAddrmsg struct {
@@ -653,7 +696,7 @@ type Sysinfo_t struct {
653 Totalhigh uint64 696 Totalhigh uint64
654 Freehigh uint64 697 Freehigh uint64
655 Unit uint32 698 Unit uint32
656 X_f [0]int8 699 _ [0]int8
657 _ [4]byte 700 _ [4]byte
658} 701}
659 702
@@ -693,6 +736,8 @@ const (
693 736
694 AT_SYMLINK_FOLLOW = 0x400 737 AT_SYMLINK_FOLLOW = 0x400
695 AT_SYMLINK_NOFOLLOW = 0x100 738 AT_SYMLINK_NOFOLLOW = 0x100
739
740 AT_EACCESS = 0x200
696) 741)
697 742
698type PollFd struct { 743type PollFd struct {
@@ -712,7 +757,7 @@ const (
712) 757)
713 758
714type Sigset_t struct { 759type Sigset_t struct {
715 X__val [16]uint64 760 Val [16]uint64
716} 761}
717 762
718const RNDGETENTCNT = 0x40045200 763const RNDGETENTCNT = 0x40045200
@@ -868,3 +913,1058 @@ const (
868 BDADDR_LE_PUBLIC = 0x1 913 BDADDR_LE_PUBLIC = 0x1
869 BDADDR_LE_RANDOM = 0x2 914 BDADDR_LE_RANDOM = 0x2
870) 915)
916
917type PerfEventAttr struct {
918 Type uint32
919 Size uint32
920 Config uint64
921 Sample uint64
922 Sample_type uint64
923 Read_format uint64
924 Bits uint64
925 Wakeup uint32
926 Bp_type uint32
927 Ext1 uint64
928 Ext2 uint64
929 Branch_sample_type uint64
930 Sample_regs_user uint64
931 Sample_stack_user uint32
932 Clockid int32
933 Sample_regs_intr uint64
934 Aux_watermark uint32
935 _ uint32
936}
937
938type PerfEventMmapPage struct {
939 Version uint32
940 Compat_version uint32
941 Lock uint32
942 Index uint32
943 Offset int64
944 Time_enabled uint64
945 Time_running uint64
946 Capabilities uint64
947 Pmc_width uint16
948 Time_shift uint16
949 Time_mult uint32
950 Time_offset uint64
951 Time_zero uint64
952 Size uint32
953 _ [948]uint8
954 Data_head uint64
955 Data_tail uint64
956 Data_offset uint64
957 Data_size uint64
958 Aux_head uint64
959 Aux_tail uint64
960 Aux_offset uint64
961 Aux_size uint64
962}
963
964const (
965 PerfBitDisabled uint64 = CBitFieldMaskBit0
966 PerfBitInherit = CBitFieldMaskBit1
967 PerfBitPinned = CBitFieldMaskBit2
968 PerfBitExclusive = CBitFieldMaskBit3
969 PerfBitExcludeUser = CBitFieldMaskBit4
970 PerfBitExcludeKernel = CBitFieldMaskBit5
971 PerfBitExcludeHv = CBitFieldMaskBit6
972 PerfBitExcludeIdle = CBitFieldMaskBit7
973 PerfBitMmap = CBitFieldMaskBit8
974 PerfBitComm = CBitFieldMaskBit9
975 PerfBitFreq = CBitFieldMaskBit10
976 PerfBitInheritStat = CBitFieldMaskBit11
977 PerfBitEnableOnExec = CBitFieldMaskBit12
978 PerfBitTask = CBitFieldMaskBit13
979 PerfBitWatermark = CBitFieldMaskBit14
980 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
981 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
982 PerfBitMmapData = CBitFieldMaskBit17
983 PerfBitSampleIDAll = CBitFieldMaskBit18
984 PerfBitExcludeHost = CBitFieldMaskBit19
985 PerfBitExcludeGuest = CBitFieldMaskBit20
986 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
987 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
988 PerfBitMmap2 = CBitFieldMaskBit23
989 PerfBitCommExec = CBitFieldMaskBit24
990 PerfBitUseClockID = CBitFieldMaskBit25
991 PerfBitContextSwitch = CBitFieldMaskBit26
992)
993
994const (
995 PERF_TYPE_HARDWARE = 0x0
996 PERF_TYPE_SOFTWARE = 0x1
997 PERF_TYPE_TRACEPOINT = 0x2
998 PERF_TYPE_HW_CACHE = 0x3
999 PERF_TYPE_RAW = 0x4
1000 PERF_TYPE_BREAKPOINT = 0x5
1001
1002 PERF_COUNT_HW_CPU_CYCLES = 0x0
1003 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1004 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1005 PERF_COUNT_HW_CACHE_MISSES = 0x3
1006 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1007 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1008 PERF_COUNT_HW_BUS_CYCLES = 0x6
1009 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1010 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1011 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1012
1013 PERF_COUNT_HW_CACHE_L1D = 0x0
1014 PERF_COUNT_HW_CACHE_L1I = 0x1
1015 PERF_COUNT_HW_CACHE_LL = 0x2
1016 PERF_COUNT_HW_CACHE_DTLB = 0x3
1017 PERF_COUNT_HW_CACHE_ITLB = 0x4
1018 PERF_COUNT_HW_CACHE_BPU = 0x5
1019 PERF_COUNT_HW_CACHE_NODE = 0x6
1020
1021 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1022 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1023 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1024
1025 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1026 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1027
1028 PERF_COUNT_SW_CPU_CLOCK = 0x0
1029 PERF_COUNT_SW_TASK_CLOCK = 0x1
1030 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1031 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1032 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1033 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1034 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1035 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1036 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1037 PERF_COUNT_SW_DUMMY = 0x9
1038
1039 PERF_SAMPLE_IP = 0x1
1040 PERF_SAMPLE_TID = 0x2
1041 PERF_SAMPLE_TIME = 0x4
1042 PERF_SAMPLE_ADDR = 0x8
1043 PERF_SAMPLE_READ = 0x10
1044 PERF_SAMPLE_CALLCHAIN = 0x20
1045 PERF_SAMPLE_ID = 0x40
1046 PERF_SAMPLE_CPU = 0x80
1047 PERF_SAMPLE_PERIOD = 0x100
1048 PERF_SAMPLE_STREAM_ID = 0x200
1049 PERF_SAMPLE_RAW = 0x400
1050 PERF_SAMPLE_BRANCH_STACK = 0x800
1051
1052 PERF_SAMPLE_BRANCH_USER = 0x1
1053 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1054 PERF_SAMPLE_BRANCH_HV = 0x4
1055 PERF_SAMPLE_BRANCH_ANY = 0x8
1056 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1057 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1058 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1059
1060 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1061 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1062 PERF_FORMAT_ID = 0x4
1063 PERF_FORMAT_GROUP = 0x8
1064
1065 PERF_RECORD_MMAP = 0x1
1066 PERF_RECORD_LOST = 0x2
1067 PERF_RECORD_COMM = 0x3
1068 PERF_RECORD_EXIT = 0x4
1069 PERF_RECORD_THROTTLE = 0x5
1070 PERF_RECORD_UNTHROTTLE = 0x6
1071 PERF_RECORD_FORK = 0x7
1072 PERF_RECORD_READ = 0x8
1073 PERF_RECORD_SAMPLE = 0x9
1074
1075 PERF_CONTEXT_HV = -0x20
1076 PERF_CONTEXT_KERNEL = -0x80
1077 PERF_CONTEXT_USER = -0x200
1078
1079 PERF_CONTEXT_GUEST = -0x800
1080 PERF_CONTEXT_GUEST_KERNEL = -0x880
1081 PERF_CONTEXT_GUEST_USER = -0xa00
1082
1083 PERF_FLAG_FD_NO_GROUP = 0x1
1084 PERF_FLAG_FD_OUTPUT = 0x2
1085 PERF_FLAG_PID_CGROUP = 0x4
1086)
1087
1088const (
1089 CBitFieldMaskBit0 = 0x8000000000000000
1090 CBitFieldMaskBit1 = 0x4000000000000000
1091 CBitFieldMaskBit2 = 0x2000000000000000
1092 CBitFieldMaskBit3 = 0x1000000000000000
1093 CBitFieldMaskBit4 = 0x800000000000000
1094 CBitFieldMaskBit5 = 0x400000000000000
1095 CBitFieldMaskBit6 = 0x200000000000000
1096 CBitFieldMaskBit7 = 0x100000000000000
1097 CBitFieldMaskBit8 = 0x80000000000000
1098 CBitFieldMaskBit9 = 0x40000000000000
1099 CBitFieldMaskBit10 = 0x20000000000000
1100 CBitFieldMaskBit11 = 0x10000000000000
1101 CBitFieldMaskBit12 = 0x8000000000000
1102 CBitFieldMaskBit13 = 0x4000000000000
1103 CBitFieldMaskBit14 = 0x2000000000000
1104 CBitFieldMaskBit15 = 0x1000000000000
1105 CBitFieldMaskBit16 = 0x800000000000
1106 CBitFieldMaskBit17 = 0x400000000000
1107 CBitFieldMaskBit18 = 0x200000000000
1108 CBitFieldMaskBit19 = 0x100000000000
1109 CBitFieldMaskBit20 = 0x80000000000
1110 CBitFieldMaskBit21 = 0x40000000000
1111 CBitFieldMaskBit22 = 0x20000000000
1112 CBitFieldMaskBit23 = 0x10000000000
1113 CBitFieldMaskBit24 = 0x8000000000
1114 CBitFieldMaskBit25 = 0x4000000000
1115 CBitFieldMaskBit26 = 0x2000000000
1116 CBitFieldMaskBit27 = 0x1000000000
1117 CBitFieldMaskBit28 = 0x800000000
1118 CBitFieldMaskBit29 = 0x400000000
1119 CBitFieldMaskBit30 = 0x200000000
1120 CBitFieldMaskBit31 = 0x100000000
1121 CBitFieldMaskBit32 = 0x80000000
1122 CBitFieldMaskBit33 = 0x40000000
1123 CBitFieldMaskBit34 = 0x20000000
1124 CBitFieldMaskBit35 = 0x10000000
1125 CBitFieldMaskBit36 = 0x8000000
1126 CBitFieldMaskBit37 = 0x4000000
1127 CBitFieldMaskBit38 = 0x2000000
1128 CBitFieldMaskBit39 = 0x1000000
1129 CBitFieldMaskBit40 = 0x800000
1130 CBitFieldMaskBit41 = 0x400000
1131 CBitFieldMaskBit42 = 0x200000
1132 CBitFieldMaskBit43 = 0x100000
1133 CBitFieldMaskBit44 = 0x80000
1134 CBitFieldMaskBit45 = 0x40000
1135 CBitFieldMaskBit46 = 0x20000
1136 CBitFieldMaskBit47 = 0x10000
1137 CBitFieldMaskBit48 = 0x8000
1138 CBitFieldMaskBit49 = 0x4000
1139 CBitFieldMaskBit50 = 0x2000
1140 CBitFieldMaskBit51 = 0x1000
1141 CBitFieldMaskBit52 = 0x800
1142 CBitFieldMaskBit53 = 0x400
1143 CBitFieldMaskBit54 = 0x200
1144 CBitFieldMaskBit55 = 0x100
1145 CBitFieldMaskBit56 = 0x80
1146 CBitFieldMaskBit57 = 0x40
1147 CBitFieldMaskBit58 = 0x20
1148 CBitFieldMaskBit59 = 0x10
1149 CBitFieldMaskBit60 = 0x8
1150 CBitFieldMaskBit61 = 0x4
1151 CBitFieldMaskBit62 = 0x2
1152 CBitFieldMaskBit63 = 0x1
1153)
1154
1155type SockaddrStorage struct {
1156 Family uint16
1157 _ [118]int8
1158 _ uint64
1159}
1160
1161type TCPMD5Sig struct {
1162 Addr SockaddrStorage
1163 Flags uint8
1164 Prefixlen uint8
1165 Keylen uint16
1166 _ uint32
1167 Key [80]uint8
1168}
1169
1170type HDDriveCmdHdr struct {
1171 Command uint8
1172 Number uint8
1173 Feature uint8
1174 Count uint8
1175}
1176
1177type HDGeometry struct {
1178 Heads uint8
1179 Sectors uint8
1180 Cylinders uint16
1181 _ [4]byte
1182 Start uint64
1183}
1184
1185type HDDriveID struct {
1186 Config uint16
1187 Cyls uint16
1188 Reserved2 uint16
1189 Heads uint16
1190 Track_bytes uint16
1191 Sector_bytes uint16
1192 Sectors uint16
1193 Vendor0 uint16
1194 Vendor1 uint16
1195 Vendor2 uint16
1196 Serial_no [20]uint8
1197 Buf_type uint16
1198 Buf_size uint16
1199 Ecc_bytes uint16
1200 Fw_rev [8]uint8
1201 Model [40]uint8
1202 Max_multsect uint8
1203 Vendor3 uint8
1204 Dword_io uint16
1205 Vendor4 uint8
1206 Capability uint8
1207 Reserved50 uint16
1208 Vendor5 uint8
1209 TPIO uint8
1210 Vendor6 uint8
1211 TDMA uint8
1212 Field_valid uint16
1213 Cur_cyls uint16
1214 Cur_heads uint16
1215 Cur_sectors uint16
1216 Cur_capacity0 uint16
1217 Cur_capacity1 uint16
1218 Multsect uint8
1219 Multsect_valid uint8
1220 Lba_capacity uint32
1221 Dma_1word uint16
1222 Dma_mword uint16
1223 Eide_pio_modes uint16
1224 Eide_dma_min uint16
1225 Eide_dma_time uint16
1226 Eide_pio uint16
1227 Eide_pio_iordy uint16
1228 Words69_70 [2]uint16
1229 Words71_74 [4]uint16
1230 Queue_depth uint16
1231 Words76_79 [4]uint16
1232 Major_rev_num uint16
1233 Minor_rev_num uint16
1234 Command_set_1 uint16
1235 Command_set_2 uint16
1236 Cfsse uint16
1237 Cfs_enable_1 uint16
1238 Cfs_enable_2 uint16
1239 Csf_default uint16
1240 Dma_ultra uint16
1241 Trseuc uint16
1242 TrsEuc uint16
1243 CurAPMvalues uint16
1244 Mprc uint16
1245 Hw_config uint16
1246 Acoustic uint16
1247 Msrqs uint16
1248 Sxfert uint16
1249 Sal uint16
1250 Spg uint32
1251 Lba_capacity_2 uint64
1252 Words104_125 [22]uint16
1253 Last_lun uint16
1254 Word127 uint16
1255 Dlf uint16
1256 Csfo uint16
1257 Words130_155 [26]uint16
1258 Word156 uint16
1259 Words157_159 [3]uint16
1260 Cfa_power uint16
1261 Words161_175 [15]uint16
1262 Words176_205 [30]uint16
1263 Words206_254 [49]uint16
1264 Integrity_word uint16
1265}
1266
1267type Statfs_t struct {
1268 Type int64
1269 Bsize int64
1270 Frsize int64
1271 Blocks uint64
1272 Bfree uint64
1273 Files uint64
1274 Ffree uint64
1275 Bavail uint64
1276 Fsid Fsid
1277 Namelen int64
1278 Flags int64
1279 Spare [5]int64
1280}
1281
1282const (
1283 ST_MANDLOCK = 0x40
1284 ST_NOATIME = 0x400
1285 ST_NODEV = 0x4
1286 ST_NODIRATIME = 0x800
1287 ST_NOEXEC = 0x8
1288 ST_NOSUID = 0x2
1289 ST_RDONLY = 0x1
1290 ST_RELATIME = 0x1000
1291 ST_SYNCHRONOUS = 0x10
1292)
1293
1294type TpacketHdr struct {
1295 Status uint64
1296 Len uint32
1297 Snaplen uint32
1298 Mac uint16
1299 Net uint16
1300 Sec uint32
1301 Usec uint32
1302 _ [4]byte
1303}
1304
1305type Tpacket2Hdr struct {
1306 Status uint32
1307 Len uint32
1308 Snaplen uint32
1309 Mac uint16
1310 Net uint16
1311 Sec uint32
1312 Nsec uint32
1313 Vlan_tci uint16
1314 Vlan_tpid uint16
1315 _ [4]uint8
1316}
1317
1318type Tpacket3Hdr struct {
1319 Next_offset uint32
1320 Sec uint32
1321 Nsec uint32
1322 Snaplen uint32
1323 Len uint32
1324 Status uint32
1325 Mac uint16
1326 Net uint16
1327 Hv1 TpacketHdrVariant1
1328 _ [8]uint8
1329}
1330
1331type TpacketHdrVariant1 struct {
1332 Rxhash uint32
1333 Vlan_tci uint32
1334 Vlan_tpid uint16
1335 _ uint16
1336}
1337
1338type TpacketBlockDesc struct {
1339 Version uint32
1340 To_priv uint32
1341 Hdr [40]byte
1342}
1343
1344type TpacketReq struct {
1345 Block_size uint32
1346 Block_nr uint32
1347 Frame_size uint32
1348 Frame_nr uint32
1349}
1350
1351type TpacketReq3 struct {
1352 Block_size uint32
1353 Block_nr uint32
1354 Frame_size uint32
1355 Frame_nr uint32
1356 Retire_blk_tov uint32
1357 Sizeof_priv uint32
1358 Feature_req_word uint32
1359}
1360
1361type TpacketStats struct {
1362 Packets uint32
1363 Drops uint32
1364}
1365
1366type TpacketStatsV3 struct {
1367 Packets uint32
1368 Drops uint32
1369 Freeze_q_cnt uint32
1370}
1371
1372type TpacketAuxdata struct {
1373 Status uint32
1374 Len uint32
1375 Snaplen uint32
1376 Mac uint16
1377 Net uint16
1378 Vlan_tci uint16
1379 Vlan_tpid uint16
1380}
1381
1382const (
1383 TPACKET_V1 = 0x0
1384 TPACKET_V2 = 0x1
1385 TPACKET_V3 = 0x2
1386)
1387
1388const (
1389 SizeofTpacketHdr = 0x20
1390 SizeofTpacket2Hdr = 0x20
1391 SizeofTpacket3Hdr = 0x30
1392)
1393
1394const (
1395 NF_INET_PRE_ROUTING = 0x0
1396 NF_INET_LOCAL_IN = 0x1
1397 NF_INET_FORWARD = 0x2
1398 NF_INET_LOCAL_OUT = 0x3
1399 NF_INET_POST_ROUTING = 0x4
1400 NF_INET_NUMHOOKS = 0x5
1401)
1402
1403const (
1404 NF_NETDEV_INGRESS = 0x0
1405 NF_NETDEV_NUMHOOKS = 0x1
1406)
1407
1408const (
1409 NFPROTO_UNSPEC = 0x0
1410 NFPROTO_INET = 0x1
1411 NFPROTO_IPV4 = 0x2
1412 NFPROTO_ARP = 0x3
1413 NFPROTO_NETDEV = 0x5
1414 NFPROTO_BRIDGE = 0x7
1415 NFPROTO_IPV6 = 0xa
1416 NFPROTO_DECNET = 0xc
1417 NFPROTO_NUMPROTO = 0xd
1418)
1419
1420type Nfgenmsg struct {
1421 Nfgen_family uint8
1422 Version uint8
1423 Res_id uint16
1424}
1425
1426const (
1427 NFNL_BATCH_UNSPEC = 0x0
1428 NFNL_BATCH_GENID = 0x1
1429)
1430
1431const (
1432 NFT_REG_VERDICT = 0x0
1433 NFT_REG_1 = 0x1
1434 NFT_REG_2 = 0x2
1435 NFT_REG_3 = 0x3
1436 NFT_REG_4 = 0x4
1437 NFT_REG32_00 = 0x8
1438 NFT_REG32_01 = 0x9
1439 NFT_REG32_02 = 0xa
1440 NFT_REG32_03 = 0xb
1441 NFT_REG32_04 = 0xc
1442 NFT_REG32_05 = 0xd
1443 NFT_REG32_06 = 0xe
1444 NFT_REG32_07 = 0xf
1445 NFT_REG32_08 = 0x10
1446 NFT_REG32_09 = 0x11
1447 NFT_REG32_10 = 0x12
1448 NFT_REG32_11 = 0x13
1449 NFT_REG32_12 = 0x14
1450 NFT_REG32_13 = 0x15
1451 NFT_REG32_14 = 0x16
1452 NFT_REG32_15 = 0x17
1453 NFT_CONTINUE = -0x1
1454 NFT_BREAK = -0x2
1455 NFT_JUMP = -0x3
1456 NFT_GOTO = -0x4
1457 NFT_RETURN = -0x5
1458 NFT_MSG_NEWTABLE = 0x0
1459 NFT_MSG_GETTABLE = 0x1
1460 NFT_MSG_DELTABLE = 0x2
1461 NFT_MSG_NEWCHAIN = 0x3
1462 NFT_MSG_GETCHAIN = 0x4
1463 NFT_MSG_DELCHAIN = 0x5
1464 NFT_MSG_NEWRULE = 0x6
1465 NFT_MSG_GETRULE = 0x7
1466 NFT_MSG_DELRULE = 0x8
1467 NFT_MSG_NEWSET = 0x9
1468 NFT_MSG_GETSET = 0xa
1469 NFT_MSG_DELSET = 0xb
1470 NFT_MSG_NEWSETELEM = 0xc
1471 NFT_MSG_GETSETELEM = 0xd
1472 NFT_MSG_DELSETELEM = 0xe
1473 NFT_MSG_NEWGEN = 0xf
1474 NFT_MSG_GETGEN = 0x10
1475 NFT_MSG_TRACE = 0x11
1476 NFT_MSG_NEWOBJ = 0x12
1477 NFT_MSG_GETOBJ = 0x13
1478 NFT_MSG_DELOBJ = 0x14
1479 NFT_MSG_GETOBJ_RESET = 0x15
1480 NFT_MSG_MAX = 0x19
1481 NFTA_LIST_UNPEC = 0x0
1482 NFTA_LIST_ELEM = 0x1
1483 NFTA_HOOK_UNSPEC = 0x0
1484 NFTA_HOOK_HOOKNUM = 0x1
1485 NFTA_HOOK_PRIORITY = 0x2
1486 NFTA_HOOK_DEV = 0x3
1487 NFT_TABLE_F_DORMANT = 0x1
1488 NFTA_TABLE_UNSPEC = 0x0
1489 NFTA_TABLE_NAME = 0x1
1490 NFTA_TABLE_FLAGS = 0x2
1491 NFTA_TABLE_USE = 0x3
1492 NFTA_CHAIN_UNSPEC = 0x0
1493 NFTA_CHAIN_TABLE = 0x1
1494 NFTA_CHAIN_HANDLE = 0x2
1495 NFTA_CHAIN_NAME = 0x3
1496 NFTA_CHAIN_HOOK = 0x4
1497 NFTA_CHAIN_POLICY = 0x5
1498 NFTA_CHAIN_USE = 0x6
1499 NFTA_CHAIN_TYPE = 0x7
1500 NFTA_CHAIN_COUNTERS = 0x8
1501 NFTA_CHAIN_PAD = 0x9
1502 NFTA_RULE_UNSPEC = 0x0
1503 NFTA_RULE_TABLE = 0x1
1504 NFTA_RULE_CHAIN = 0x2
1505 NFTA_RULE_HANDLE = 0x3
1506 NFTA_RULE_EXPRESSIONS = 0x4
1507 NFTA_RULE_COMPAT = 0x5
1508 NFTA_RULE_POSITION = 0x6
1509 NFTA_RULE_USERDATA = 0x7
1510 NFTA_RULE_PAD = 0x8
1511 NFTA_RULE_ID = 0x9
1512 NFT_RULE_COMPAT_F_INV = 0x2
1513 NFT_RULE_COMPAT_F_MASK = 0x2
1514 NFTA_RULE_COMPAT_UNSPEC = 0x0
1515 NFTA_RULE_COMPAT_PROTO = 0x1
1516 NFTA_RULE_COMPAT_FLAGS = 0x2
1517 NFT_SET_ANONYMOUS = 0x1
1518 NFT_SET_CONSTANT = 0x2
1519 NFT_SET_INTERVAL = 0x4
1520 NFT_SET_MAP = 0x8
1521 NFT_SET_TIMEOUT = 0x10
1522 NFT_SET_EVAL = 0x20
1523 NFT_SET_OBJECT = 0x40
1524 NFT_SET_POL_PERFORMANCE = 0x0
1525 NFT_SET_POL_MEMORY = 0x1
1526 NFTA_SET_DESC_UNSPEC = 0x0
1527 NFTA_SET_DESC_SIZE = 0x1
1528 NFTA_SET_UNSPEC = 0x0
1529 NFTA_SET_TABLE = 0x1
1530 NFTA_SET_NAME = 0x2
1531 NFTA_SET_FLAGS = 0x3
1532 NFTA_SET_KEY_TYPE = 0x4
1533 NFTA_SET_KEY_LEN = 0x5
1534 NFTA_SET_DATA_TYPE = 0x6
1535 NFTA_SET_DATA_LEN = 0x7
1536 NFTA_SET_POLICY = 0x8
1537 NFTA_SET_DESC = 0x9
1538 NFTA_SET_ID = 0xa
1539 NFTA_SET_TIMEOUT = 0xb
1540 NFTA_SET_GC_INTERVAL = 0xc
1541 NFTA_SET_USERDATA = 0xd
1542 NFTA_SET_PAD = 0xe
1543 NFTA_SET_OBJ_TYPE = 0xf
1544 NFT_SET_ELEM_INTERVAL_END = 0x1
1545 NFTA_SET_ELEM_UNSPEC = 0x0
1546 NFTA_SET_ELEM_KEY = 0x1
1547 NFTA_SET_ELEM_DATA = 0x2
1548 NFTA_SET_ELEM_FLAGS = 0x3
1549 NFTA_SET_ELEM_TIMEOUT = 0x4
1550 NFTA_SET_ELEM_EXPIRATION = 0x5
1551 NFTA_SET_ELEM_USERDATA = 0x6
1552 NFTA_SET_ELEM_EXPR = 0x7
1553 NFTA_SET_ELEM_PAD = 0x8
1554 NFTA_SET_ELEM_OBJREF = 0x9
1555 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1556 NFTA_SET_ELEM_LIST_TABLE = 0x1
1557 NFTA_SET_ELEM_LIST_SET = 0x2
1558 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1559 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1560 NFT_DATA_VALUE = 0x0
1561 NFT_DATA_VERDICT = 0xffffff00
1562 NFTA_DATA_UNSPEC = 0x0
1563 NFTA_DATA_VALUE = 0x1
1564 NFTA_DATA_VERDICT = 0x2
1565 NFTA_VERDICT_UNSPEC = 0x0
1566 NFTA_VERDICT_CODE = 0x1
1567 NFTA_VERDICT_CHAIN = 0x2
1568 NFTA_EXPR_UNSPEC = 0x0
1569 NFTA_EXPR_NAME = 0x1
1570 NFTA_EXPR_DATA = 0x2
1571 NFTA_IMMEDIATE_UNSPEC = 0x0
1572 NFTA_IMMEDIATE_DREG = 0x1
1573 NFTA_IMMEDIATE_DATA = 0x2
1574 NFTA_BITWISE_UNSPEC = 0x0
1575 NFTA_BITWISE_SREG = 0x1
1576 NFTA_BITWISE_DREG = 0x2
1577 NFTA_BITWISE_LEN = 0x3
1578 NFTA_BITWISE_MASK = 0x4
1579 NFTA_BITWISE_XOR = 0x5
1580 NFT_BYTEORDER_NTOH = 0x0
1581 NFT_BYTEORDER_HTON = 0x1
1582 NFTA_BYTEORDER_UNSPEC = 0x0
1583 NFTA_BYTEORDER_SREG = 0x1
1584 NFTA_BYTEORDER_DREG = 0x2
1585 NFTA_BYTEORDER_OP = 0x3
1586 NFTA_BYTEORDER_LEN = 0x4
1587 NFTA_BYTEORDER_SIZE = 0x5
1588 NFT_CMP_EQ = 0x0
1589 NFT_CMP_NEQ = 0x1
1590 NFT_CMP_LT = 0x2
1591 NFT_CMP_LTE = 0x3
1592 NFT_CMP_GT = 0x4
1593 NFT_CMP_GTE = 0x5
1594 NFTA_CMP_UNSPEC = 0x0
1595 NFTA_CMP_SREG = 0x1
1596 NFTA_CMP_OP = 0x2
1597 NFTA_CMP_DATA = 0x3
1598 NFT_RANGE_EQ = 0x0
1599 NFT_RANGE_NEQ = 0x1
1600 NFTA_RANGE_UNSPEC = 0x0
1601 NFTA_RANGE_SREG = 0x1
1602 NFTA_RANGE_OP = 0x2
1603 NFTA_RANGE_FROM_DATA = 0x3
1604 NFTA_RANGE_TO_DATA = 0x4
1605 NFT_LOOKUP_F_INV = 0x1
1606 NFTA_LOOKUP_UNSPEC = 0x0
1607 NFTA_LOOKUP_SET = 0x1
1608 NFTA_LOOKUP_SREG = 0x2
1609 NFTA_LOOKUP_DREG = 0x3
1610 NFTA_LOOKUP_SET_ID = 0x4
1611 NFTA_LOOKUP_FLAGS = 0x5
1612 NFT_DYNSET_OP_ADD = 0x0
1613 NFT_DYNSET_OP_UPDATE = 0x1
1614 NFT_DYNSET_F_INV = 0x1
1615 NFTA_DYNSET_UNSPEC = 0x0
1616 NFTA_DYNSET_SET_NAME = 0x1
1617 NFTA_DYNSET_SET_ID = 0x2
1618 NFTA_DYNSET_OP = 0x3
1619 NFTA_DYNSET_SREG_KEY = 0x4
1620 NFTA_DYNSET_SREG_DATA = 0x5
1621 NFTA_DYNSET_TIMEOUT = 0x6
1622 NFTA_DYNSET_EXPR = 0x7
1623 NFTA_DYNSET_PAD = 0x8
1624 NFTA_DYNSET_FLAGS = 0x9
1625 NFT_PAYLOAD_LL_HEADER = 0x0
1626 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1627 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1628 NFT_PAYLOAD_CSUM_NONE = 0x0
1629 NFT_PAYLOAD_CSUM_INET = 0x1
1630 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1631 NFTA_PAYLOAD_UNSPEC = 0x0
1632 NFTA_PAYLOAD_DREG = 0x1
1633 NFTA_PAYLOAD_BASE = 0x2
1634 NFTA_PAYLOAD_OFFSET = 0x3
1635 NFTA_PAYLOAD_LEN = 0x4
1636 NFTA_PAYLOAD_SREG = 0x5
1637 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1638 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1639 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1640 NFT_EXTHDR_F_PRESENT = 0x1
1641 NFT_EXTHDR_OP_IPV6 = 0x0
1642 NFT_EXTHDR_OP_TCPOPT = 0x1
1643 NFTA_EXTHDR_UNSPEC = 0x0
1644 NFTA_EXTHDR_DREG = 0x1
1645 NFTA_EXTHDR_TYPE = 0x2
1646 NFTA_EXTHDR_OFFSET = 0x3
1647 NFTA_EXTHDR_LEN = 0x4
1648 NFTA_EXTHDR_FLAGS = 0x5
1649 NFTA_EXTHDR_OP = 0x6
1650 NFTA_EXTHDR_SREG = 0x7
1651 NFT_META_LEN = 0x0
1652 NFT_META_PROTOCOL = 0x1
1653 NFT_META_PRIORITY = 0x2
1654 NFT_META_MARK = 0x3
1655 NFT_META_IIF = 0x4
1656 NFT_META_OIF = 0x5
1657 NFT_META_IIFNAME = 0x6
1658 NFT_META_OIFNAME = 0x7
1659 NFT_META_IIFTYPE = 0x8
1660 NFT_META_OIFTYPE = 0x9
1661 NFT_META_SKUID = 0xa
1662 NFT_META_SKGID = 0xb
1663 NFT_META_NFTRACE = 0xc
1664 NFT_META_RTCLASSID = 0xd
1665 NFT_META_SECMARK = 0xe
1666 NFT_META_NFPROTO = 0xf
1667 NFT_META_L4PROTO = 0x10
1668 NFT_META_BRI_IIFNAME = 0x11
1669 NFT_META_BRI_OIFNAME = 0x12
1670 NFT_META_PKTTYPE = 0x13
1671 NFT_META_CPU = 0x14
1672 NFT_META_IIFGROUP = 0x15
1673 NFT_META_OIFGROUP = 0x16
1674 NFT_META_CGROUP = 0x17
1675 NFT_META_PRANDOM = 0x18
1676 NFT_RT_CLASSID = 0x0
1677 NFT_RT_NEXTHOP4 = 0x1
1678 NFT_RT_NEXTHOP6 = 0x2
1679 NFT_RT_TCPMSS = 0x3
1680 NFT_HASH_JENKINS = 0x0
1681 NFT_HASH_SYM = 0x1
1682 NFTA_HASH_UNSPEC = 0x0
1683 NFTA_HASH_SREG = 0x1
1684 NFTA_HASH_DREG = 0x2
1685 NFTA_HASH_LEN = 0x3
1686 NFTA_HASH_MODULUS = 0x4
1687 NFTA_HASH_SEED = 0x5
1688 NFTA_HASH_OFFSET = 0x6
1689 NFTA_HASH_TYPE = 0x7
1690 NFTA_META_UNSPEC = 0x0
1691 NFTA_META_DREG = 0x1
1692 NFTA_META_KEY = 0x2
1693 NFTA_META_SREG = 0x3
1694 NFTA_RT_UNSPEC = 0x0
1695 NFTA_RT_DREG = 0x1
1696 NFTA_RT_KEY = 0x2
1697 NFT_CT_STATE = 0x0
1698 NFT_CT_DIRECTION = 0x1
1699 NFT_CT_STATUS = 0x2
1700 NFT_CT_MARK = 0x3
1701 NFT_CT_SECMARK = 0x4
1702 NFT_CT_EXPIRATION = 0x5
1703 NFT_CT_HELPER = 0x6
1704 NFT_CT_L3PROTOCOL = 0x7
1705 NFT_CT_SRC = 0x8
1706 NFT_CT_DST = 0x9
1707 NFT_CT_PROTOCOL = 0xa
1708 NFT_CT_PROTO_SRC = 0xb
1709 NFT_CT_PROTO_DST = 0xc
1710 NFT_CT_LABELS = 0xd
1711 NFT_CT_PKTS = 0xe
1712 NFT_CT_BYTES = 0xf
1713 NFT_CT_AVGPKT = 0x10
1714 NFT_CT_ZONE = 0x11
1715 NFT_CT_EVENTMASK = 0x12
1716 NFTA_CT_UNSPEC = 0x0
1717 NFTA_CT_DREG = 0x1
1718 NFTA_CT_KEY = 0x2
1719 NFTA_CT_DIRECTION = 0x3
1720 NFTA_CT_SREG = 0x4
1721 NFT_LIMIT_PKTS = 0x0
1722 NFT_LIMIT_PKT_BYTES = 0x1
1723 NFT_LIMIT_F_INV = 0x1
1724 NFTA_LIMIT_UNSPEC = 0x0
1725 NFTA_LIMIT_RATE = 0x1
1726 NFTA_LIMIT_UNIT = 0x2
1727 NFTA_LIMIT_BURST = 0x3
1728 NFTA_LIMIT_TYPE = 0x4
1729 NFTA_LIMIT_FLAGS = 0x5
1730 NFTA_LIMIT_PAD = 0x6
1731 NFTA_COUNTER_UNSPEC = 0x0
1732 NFTA_COUNTER_BYTES = 0x1
1733 NFTA_COUNTER_PACKETS = 0x2
1734 NFTA_COUNTER_PAD = 0x3
1735 NFTA_LOG_UNSPEC = 0x0
1736 NFTA_LOG_GROUP = 0x1
1737 NFTA_LOG_PREFIX = 0x2
1738 NFTA_LOG_SNAPLEN = 0x3
1739 NFTA_LOG_QTHRESHOLD = 0x4
1740 NFTA_LOG_LEVEL = 0x5
1741 NFTA_LOG_FLAGS = 0x6
1742 NFTA_QUEUE_UNSPEC = 0x0
1743 NFTA_QUEUE_NUM = 0x1
1744 NFTA_QUEUE_TOTAL = 0x2
1745 NFTA_QUEUE_FLAGS = 0x3
1746 NFTA_QUEUE_SREG_QNUM = 0x4
1747 NFT_QUOTA_F_INV = 0x1
1748 NFT_QUOTA_F_DEPLETED = 0x2
1749 NFTA_QUOTA_UNSPEC = 0x0
1750 NFTA_QUOTA_BYTES = 0x1
1751 NFTA_QUOTA_FLAGS = 0x2
1752 NFTA_QUOTA_PAD = 0x3
1753 NFTA_QUOTA_CONSUMED = 0x4
1754 NFT_REJECT_ICMP_UNREACH = 0x0
1755 NFT_REJECT_TCP_RST = 0x1
1756 NFT_REJECT_ICMPX_UNREACH = 0x2
1757 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1758 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1759 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1760 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1761 NFTA_REJECT_UNSPEC = 0x0
1762 NFTA_REJECT_TYPE = 0x1
1763 NFTA_REJECT_ICMP_CODE = 0x2
1764 NFT_NAT_SNAT = 0x0
1765 NFT_NAT_DNAT = 0x1
1766 NFTA_NAT_UNSPEC = 0x0
1767 NFTA_NAT_TYPE = 0x1
1768 NFTA_NAT_FAMILY = 0x2
1769 NFTA_NAT_REG_ADDR_MIN = 0x3
1770 NFTA_NAT_REG_ADDR_MAX = 0x4
1771 NFTA_NAT_REG_PROTO_MIN = 0x5
1772 NFTA_NAT_REG_PROTO_MAX = 0x6
1773 NFTA_NAT_FLAGS = 0x7
1774 NFTA_MASQ_UNSPEC = 0x0
1775 NFTA_MASQ_FLAGS = 0x1
1776 NFTA_MASQ_REG_PROTO_MIN = 0x2
1777 NFTA_MASQ_REG_PROTO_MAX = 0x3
1778 NFTA_REDIR_UNSPEC = 0x0
1779 NFTA_REDIR_REG_PROTO_MIN = 0x1
1780 NFTA_REDIR_REG_PROTO_MAX = 0x2
1781 NFTA_REDIR_FLAGS = 0x3
1782 NFTA_DUP_UNSPEC = 0x0
1783 NFTA_DUP_SREG_ADDR = 0x1
1784 NFTA_DUP_SREG_DEV = 0x2
1785 NFTA_FWD_UNSPEC = 0x0
1786 NFTA_FWD_SREG_DEV = 0x1
1787 NFTA_OBJREF_UNSPEC = 0x0
1788 NFTA_OBJREF_IMM_TYPE = 0x1
1789 NFTA_OBJREF_IMM_NAME = 0x2
1790 NFTA_OBJREF_SET_SREG = 0x3
1791 NFTA_OBJREF_SET_NAME = 0x4
1792 NFTA_OBJREF_SET_ID = 0x5
1793 NFTA_GEN_UNSPEC = 0x0
1794 NFTA_GEN_ID = 0x1
1795 NFTA_GEN_PROC_PID = 0x2
1796 NFTA_GEN_PROC_NAME = 0x3
1797 NFTA_FIB_UNSPEC = 0x0
1798 NFTA_FIB_DREG = 0x1
1799 NFTA_FIB_RESULT = 0x2
1800 NFTA_FIB_FLAGS = 0x3
1801 NFT_FIB_RESULT_UNSPEC = 0x0
1802 NFT_FIB_RESULT_OIF = 0x1
1803 NFT_FIB_RESULT_OIFNAME = 0x2
1804 NFT_FIB_RESULT_ADDRTYPE = 0x3
1805 NFTA_FIB_F_SADDR = 0x1
1806 NFTA_FIB_F_DADDR = 0x2
1807 NFTA_FIB_F_MARK = 0x4
1808 NFTA_FIB_F_IIF = 0x8
1809 NFTA_FIB_F_OIF = 0x10
1810 NFTA_FIB_F_PRESENT = 0x20
1811 NFTA_CT_HELPER_UNSPEC = 0x0
1812 NFTA_CT_HELPER_NAME = 0x1
1813 NFTA_CT_HELPER_L3PROTO = 0x2
1814 NFTA_CT_HELPER_L4PROTO = 0x3
1815 NFTA_OBJ_UNSPEC = 0x0
1816 NFTA_OBJ_TABLE = 0x1
1817 NFTA_OBJ_NAME = 0x2
1818 NFTA_OBJ_TYPE = 0x3
1819 NFTA_OBJ_DATA = 0x4
1820 NFTA_OBJ_USE = 0x5
1821 NFTA_TRACE_UNSPEC = 0x0
1822 NFTA_TRACE_TABLE = 0x1
1823 NFTA_TRACE_CHAIN = 0x2
1824 NFTA_TRACE_RULE_HANDLE = 0x3
1825 NFTA_TRACE_TYPE = 0x4
1826 NFTA_TRACE_VERDICT = 0x5
1827 NFTA_TRACE_ID = 0x6
1828 NFTA_TRACE_LL_HEADER = 0x7
1829 NFTA_TRACE_NETWORK_HEADER = 0x8
1830 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1831 NFTA_TRACE_IIF = 0xa
1832 NFTA_TRACE_IIFTYPE = 0xb
1833 NFTA_TRACE_OIF = 0xc
1834 NFTA_TRACE_OIFTYPE = 0xd
1835 NFTA_TRACE_MARK = 0xe
1836 NFTA_TRACE_NFPROTO = 0xf
1837 NFTA_TRACE_POLICY = 0x10
1838 NFTA_TRACE_PAD = 0x11
1839 NFT_TRACETYPE_UNSPEC = 0x0
1840 NFT_TRACETYPE_POLICY = 0x1
1841 NFT_TRACETYPE_RETURN = 0x2
1842 NFT_TRACETYPE_RULE = 0x3
1843 NFTA_NG_UNSPEC = 0x0
1844 NFTA_NG_DREG = 0x1
1845 NFTA_NG_MODULUS = 0x2
1846 NFTA_NG_TYPE = 0x3
1847 NFTA_NG_OFFSET = 0x4
1848 NFT_NG_INCREMENTAL = 0x0
1849 NFT_NG_RANDOM = 0x1
1850)
1851
1852type RTCTime struct {
1853 Sec int32
1854 Min int32
1855 Hour int32
1856 Mday int32
1857 Mon int32
1858 Year int32
1859 Wday int32
1860 Yday int32
1861 Isdst int32
1862}
1863
1864type RTCWkAlrm struct {
1865 Enabled uint8
1866 Pending uint8
1867 _ [2]byte
1868 Time RTCTime
1869}
1870
1871type RTCPLLInfo struct {
1872 Ctrl int32
1873 Value int32
1874 Max int32
1875 Min int32
1876 Posmult int32
1877 Negmult int32
1878 Clock int64
1879}
1880
1881type BlkpgIoctlArg struct {
1882 Op int32
1883 Flags int32
1884 Datalen int32
1885 _ [4]byte
1886 Data *byte
1887}
1888
1889type BlkpgPartition struct {
1890 Start int64
1891 Length int64
1892 Pno int32
1893 Devname [64]uint8
1894 Volname [64]uint8
1895 _ [4]byte
1896}
1897
1898const (
1899 BLKPG = 0x20001269
1900 BLKPG_ADD_PARTITION = 0x1
1901 BLKPG_DEL_PARTITION = 0x2
1902 BLKPG_RESIZE_PARTITION = 0x3
1903)
1904
1905const (
1906 NETNSA_NONE = 0x0
1907 NETNSA_NSID = 0x1
1908 NETNSA_PID = 0x2
1909 NETNSA_FD = 0x3
1910)
1911
1912type XDPRingOffset struct {
1913 Producer uint64
1914 Consumer uint64
1915 Desc uint64
1916}
1917
1918type XDPMmapOffsets struct {
1919 Rx XDPRingOffset
1920 Tx XDPRingOffset
1921 Fr XDPRingOffset
1922 Cr XDPRingOffset
1923}
1924
1925type XDPUmemReg struct {
1926 Addr uint64
1927 Len uint64
1928 Size uint32
1929 Headroom uint32
1930}
1931
1932type XDPStatistics struct {
1933 Rx_dropped uint64
1934 Rx_invalid_descs uint64
1935 Tx_invalid_descs uint64
1936}
1937
1938type XDPDesc struct {
1939 Addr uint64
1940 Len uint32
1941 Options uint32
1942}
1943
1944const (
1945 NCSI_CMD_UNSPEC = 0x0
1946 NCSI_CMD_PKG_INFO = 0x1
1947 NCSI_CMD_SET_INTERFACE = 0x2
1948 NCSI_CMD_CLEAR_INTERFACE = 0x3
1949 NCSI_ATTR_UNSPEC = 0x0
1950 NCSI_ATTR_IFINDEX = 0x1
1951 NCSI_ATTR_PACKAGE_LIST = 0x2
1952 NCSI_ATTR_PACKAGE_ID = 0x3
1953 NCSI_ATTR_CHANNEL_ID = 0x4
1954 NCSI_PKG_ATTR_UNSPEC = 0x0
1955 NCSI_PKG_ATTR = 0x1
1956 NCSI_PKG_ATTR_ID = 0x2
1957 NCSI_PKG_ATTR_FORCED = 0x3
1958 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1959 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1960 NCSI_CHANNEL_ATTR = 0x1
1961 NCSI_CHANNEL_ATTR_ID = 0x2
1962 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1963 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1964 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1965 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1966 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1967 NCSI_CHANNEL_ATTR_FORCED = 0x8
1968 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1969 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1970)
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 6f9452d..9191020 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -117,25 +117,10 @@ type Stat_t struct {
117 Blocks int64 117 Blocks int64
118} 118}
119 119
120type Statfs_t struct {
121 Type int64
122 Bsize int64
123 Frsize int64
124 Blocks uint64
125 Bfree uint64
126 Files uint64
127 Ffree uint64
128 Bavail uint64
129 Fsid Fsid
130 Namelen int64
131 Flags int64
132 Spare [5]int64
133}
134
135type StatxTimestamp struct { 120type StatxTimestamp struct {
136 Sec int64 121 Sec int64
137 Nsec uint32 122 Nsec uint32
138 X__reserved int32 123 _ int32
139} 124}
140 125
141type Statx_t struct { 126type Statx_t struct {
@@ -172,7 +157,7 @@ type Dirent struct {
172} 157}
173 158
174type Fsid struct { 159type Fsid struct {
175 X__val [2]int32 160 Val [2]int32
176} 161}
177 162
178type Flock_t struct { 163type Flock_t struct {
@@ -266,6 +251,13 @@ type RawSockaddrL2 struct {
266 _ [1]byte 251 _ [1]byte
267} 252}
268 253
254type RawSockaddrRFCOMM struct {
255 Family uint16
256 Bdaddr [6]uint8
257 Channel uint8
258 _ [1]byte
259}
260
269type RawSockaddrCAN struct { 261type RawSockaddrCAN struct {
270 Family uint16 262 Family uint16
271 _ [2]byte 263 _ [2]byte
@@ -289,6 +281,14 @@ type RawSockaddrVM struct {
289 Zero [4]uint8 281 Zero [4]uint8
290} 282}
291 283
284type RawSockaddrXDP struct {
285 Family uint16
286 Flags uint16
287 Ifindex uint32
288 Queue_id uint32
289 Shared_umem_fd uint32
290}
291
292type RawSockaddr struct { 292type RawSockaddr struct {
293 Family uint16 293 Family uint16
294 Data [14]int8 294 Data [14]int8
@@ -421,9 +421,11 @@ const (
421 SizeofSockaddrNetlink = 0xc 421 SizeofSockaddrNetlink = 0xc
422 SizeofSockaddrHCI = 0x6 422 SizeofSockaddrHCI = 0x6
423 SizeofSockaddrL2 = 0xe 423 SizeofSockaddrL2 = 0xe
424 SizeofSockaddrRFCOMM = 0xa
424 SizeofSockaddrCAN = 0x10 425 SizeofSockaddrCAN = 0x10
425 SizeofSockaddrALG = 0x58 426 SizeofSockaddrALG = 0x58
426 SizeofSockaddrVM = 0x10 427 SizeofSockaddrVM = 0x10
428 SizeofSockaddrXDP = 0x10
427 SizeofLinger = 0x8 429 SizeofLinger = 0x8
428 SizeofIovec = 0x10 430 SizeofIovec = 0x10
429 SizeofIPMreq = 0x8 431 SizeofIPMreq = 0x8
@@ -441,97 +443,138 @@ const (
441) 443)
442 444
443const ( 445const (
444 IFA_UNSPEC = 0x0 446 IFA_UNSPEC = 0x0
445 IFA_ADDRESS = 0x1 447 IFA_ADDRESS = 0x1
446 IFA_LOCAL = 0x2 448 IFA_LOCAL = 0x2
447 IFA_LABEL = 0x3 449 IFA_LABEL = 0x3
448 IFA_BROADCAST = 0x4 450 IFA_BROADCAST = 0x4
449 IFA_ANYCAST = 0x5 451 IFA_ANYCAST = 0x5
450 IFA_CACHEINFO = 0x6 452 IFA_CACHEINFO = 0x6
451 IFA_MULTICAST = 0x7 453 IFA_MULTICAST = 0x7
452 IFLA_UNSPEC = 0x0 454 IFLA_UNSPEC = 0x0
453 IFLA_ADDRESS = 0x1 455 IFLA_ADDRESS = 0x1
454 IFLA_BROADCAST = 0x2 456 IFLA_BROADCAST = 0x2
455 IFLA_IFNAME = 0x3 457 IFLA_IFNAME = 0x3
456 IFLA_MTU = 0x4 458 IFLA_INFO_KIND = 0x1
457 IFLA_LINK = 0x5 459 IFLA_MTU = 0x4
458 IFLA_QDISC = 0x6 460 IFLA_LINK = 0x5
459 IFLA_STATS = 0x7 461 IFLA_QDISC = 0x6
460 IFLA_COST = 0x8 462 IFLA_STATS = 0x7
461 IFLA_PRIORITY = 0x9 463 IFLA_COST = 0x8
462 IFLA_MASTER = 0xa 464 IFLA_PRIORITY = 0x9
463 IFLA_WIRELESS = 0xb 465 IFLA_MASTER = 0xa
464 IFLA_PROTINFO = 0xc 466 IFLA_WIRELESS = 0xb
465 IFLA_TXQLEN = 0xd 467 IFLA_PROTINFO = 0xc
466 IFLA_MAP = 0xe 468 IFLA_TXQLEN = 0xd
467 IFLA_WEIGHT = 0xf 469 IFLA_MAP = 0xe
468 IFLA_OPERSTATE = 0x10 470 IFLA_WEIGHT = 0xf
469 IFLA_LINKMODE = 0x11 471 IFLA_OPERSTATE = 0x10
470 IFLA_LINKINFO = 0x12 472 IFLA_LINKMODE = 0x11
471 IFLA_NET_NS_PID = 0x13 473 IFLA_LINKINFO = 0x12
472 IFLA_IFALIAS = 0x14 474 IFLA_NET_NS_PID = 0x13
473 IFLA_MAX = 0x2c 475 IFLA_IFALIAS = 0x14
474 RT_SCOPE_UNIVERSE = 0x0 476 IFLA_NUM_VF = 0x15
475 RT_SCOPE_SITE = 0xc8 477 IFLA_VFINFO_LIST = 0x16
476 RT_SCOPE_LINK = 0xfd 478 IFLA_STATS64 = 0x17
477 RT_SCOPE_HOST = 0xfe 479 IFLA_VF_PORTS = 0x18
478 RT_SCOPE_NOWHERE = 0xff 480 IFLA_PORT_SELF = 0x19
479 RT_TABLE_UNSPEC = 0x0 481 IFLA_AF_SPEC = 0x1a
480 RT_TABLE_COMPAT = 0xfc 482 IFLA_GROUP = 0x1b
481 RT_TABLE_DEFAULT = 0xfd 483 IFLA_NET_NS_FD = 0x1c
482 RT_TABLE_MAIN = 0xfe 484 IFLA_EXT_MASK = 0x1d
483 RT_TABLE_LOCAL = 0xff 485 IFLA_PROMISCUITY = 0x1e
484 RT_TABLE_MAX = 0xffffffff 486 IFLA_NUM_TX_QUEUES = 0x1f
485 RTA_UNSPEC = 0x0 487 IFLA_NUM_RX_QUEUES = 0x20
486 RTA_DST = 0x1 488 IFLA_CARRIER = 0x21
487 RTA_SRC = 0x2 489 IFLA_PHYS_PORT_ID = 0x22
488 RTA_IIF = 0x3 490 IFLA_CARRIER_CHANGES = 0x23
489 RTA_OIF = 0x4 491 IFLA_PHYS_SWITCH_ID = 0x24
490 RTA_GATEWAY = 0x5 492 IFLA_LINK_NETNSID = 0x25
491 RTA_PRIORITY = 0x6 493 IFLA_PHYS_PORT_NAME = 0x26
492 RTA_PREFSRC = 0x7 494 IFLA_PROTO_DOWN = 0x27
493 RTA_METRICS = 0x8 495 IFLA_GSO_MAX_SEGS = 0x28
494 RTA_MULTIPATH = 0x9 496 IFLA_GSO_MAX_SIZE = 0x29
495 RTA_FLOW = 0xb 497 IFLA_PAD = 0x2a
496 RTA_CACHEINFO = 0xc 498 IFLA_XDP = 0x2b
497 RTA_TABLE = 0xf 499 IFLA_EVENT = 0x2c
498 RTN_UNSPEC = 0x0 500 IFLA_NEW_NETNSID = 0x2d
499 RTN_UNICAST = 0x1 501 IFLA_IF_NETNSID = 0x2e
500 RTN_LOCAL = 0x2 502 IFLA_MAX = 0x31
501 RTN_BROADCAST = 0x3 503 RT_SCOPE_UNIVERSE = 0x0
502 RTN_ANYCAST = 0x4 504 RT_SCOPE_SITE = 0xc8
503 RTN_MULTICAST = 0x5 505 RT_SCOPE_LINK = 0xfd
504 RTN_BLACKHOLE = 0x6 506 RT_SCOPE_HOST = 0xfe
505 RTN_UNREACHABLE = 0x7 507 RT_SCOPE_NOWHERE = 0xff
506 RTN_PROHIBIT = 0x8 508 RT_TABLE_UNSPEC = 0x0
507 RTN_THROW = 0x9 509 RT_TABLE_COMPAT = 0xfc
508 RTN_NAT = 0xa 510 RT_TABLE_DEFAULT = 0xfd
509 RTN_XRESOLVE = 0xb 511 RT_TABLE_MAIN = 0xfe
510 RTNLGRP_NONE = 0x0 512 RT_TABLE_LOCAL = 0xff
511 RTNLGRP_LINK = 0x1 513 RT_TABLE_MAX = 0xffffffff
512 RTNLGRP_NOTIFY = 0x2 514 RTA_UNSPEC = 0x0
513 RTNLGRP_NEIGH = 0x3 515 RTA_DST = 0x1
514 RTNLGRP_TC = 0x4 516 RTA_SRC = 0x2
515 RTNLGRP_IPV4_IFADDR = 0x5 517 RTA_IIF = 0x3
516 RTNLGRP_IPV4_MROUTE = 0x6 518 RTA_OIF = 0x4
517 RTNLGRP_IPV4_ROUTE = 0x7 519 RTA_GATEWAY = 0x5
518 RTNLGRP_IPV4_RULE = 0x8 520 RTA_PRIORITY = 0x6
519 RTNLGRP_IPV6_IFADDR = 0x9 521 RTA_PREFSRC = 0x7
520 RTNLGRP_IPV6_MROUTE = 0xa 522 RTA_METRICS = 0x8
521 RTNLGRP_IPV6_ROUTE = 0xb 523 RTA_MULTIPATH = 0x9
522 RTNLGRP_IPV6_IFINFO = 0xc 524 RTA_FLOW = 0xb
523 RTNLGRP_IPV6_PREFIX = 0x12 525 RTA_CACHEINFO = 0xc
524 RTNLGRP_IPV6_RULE = 0x13 526 RTA_TABLE = 0xf
525 RTNLGRP_ND_USEROPT = 0x14 527 RTA_MARK = 0x10
526 SizeofNlMsghdr = 0x10 528 RTA_MFC_STATS = 0x11
527 SizeofNlMsgerr = 0x14 529 RTA_VIA = 0x12
528 SizeofRtGenmsg = 0x1 530 RTA_NEWDST = 0x13
529 SizeofNlAttr = 0x4 531 RTA_PREF = 0x14
530 SizeofRtAttr = 0x4 532 RTA_ENCAP_TYPE = 0x15
531 SizeofIfInfomsg = 0x10 533 RTA_ENCAP = 0x16
532 SizeofIfAddrmsg = 0x8 534 RTA_EXPIRES = 0x17
533 SizeofRtMsg = 0xc 535 RTA_PAD = 0x18
534 SizeofRtNexthop = 0x8 536 RTA_UID = 0x19
537 RTA_TTL_PROPAGATE = 0x1a
538 RTA_IP_PROTO = 0x1b
539 RTA_SPORT = 0x1c
540 RTA_DPORT = 0x1d
541 RTN_UNSPEC = 0x0
542 RTN_UNICAST = 0x1
543 RTN_LOCAL = 0x2
544 RTN_BROADCAST = 0x3
545 RTN_ANYCAST = 0x4
546 RTN_MULTICAST = 0x5
547 RTN_BLACKHOLE = 0x6
548 RTN_UNREACHABLE = 0x7
549 RTN_PROHIBIT = 0x8
550 RTN_THROW = 0x9
551 RTN_NAT = 0xa
552 RTN_XRESOLVE = 0xb
553 RTNLGRP_NONE = 0x0
554 RTNLGRP_LINK = 0x1
555 RTNLGRP_NOTIFY = 0x2
556 RTNLGRP_NEIGH = 0x3
557 RTNLGRP_TC = 0x4
558 RTNLGRP_IPV4_IFADDR = 0x5
559 RTNLGRP_IPV4_MROUTE = 0x6
560 RTNLGRP_IPV4_ROUTE = 0x7
561 RTNLGRP_IPV4_RULE = 0x8
562 RTNLGRP_IPV6_IFADDR = 0x9
563 RTNLGRP_IPV6_MROUTE = 0xa
564 RTNLGRP_IPV6_ROUTE = 0xb
565 RTNLGRP_IPV6_IFINFO = 0xc
566 RTNLGRP_IPV6_PREFIX = 0x12
567 RTNLGRP_IPV6_RULE = 0x13
568 RTNLGRP_ND_USEROPT = 0x14
569 SizeofNlMsghdr = 0x10
570 SizeofNlMsgerr = 0x14
571 SizeofRtGenmsg = 0x1
572 SizeofNlAttr = 0x4
573 SizeofRtAttr = 0x4
574 SizeofIfInfomsg = 0x10
575 SizeofIfAddrmsg = 0x8
576 SizeofRtMsg = 0xc
577 SizeofRtNexthop = 0x8
535) 578)
536 579
537type NlMsghdr struct { 580type NlMsghdr struct {
@@ -562,12 +605,12 @@ type RtAttr struct {
562} 605}
563 606
564type IfInfomsg struct { 607type IfInfomsg struct {
565 Family uint8 608 Family uint8
566 X__ifi_pad uint8 609 _ uint8
567 Type uint16 610 Type uint16
568 Index int32 611 Index int32
569 Flags uint32 612 Flags uint32
570 Change uint32 613 Change uint32
571} 614}
572 615
573type IfAddrmsg struct { 616type IfAddrmsg struct {
@@ -653,7 +696,7 @@ type Sysinfo_t struct {
653 Totalhigh uint64 696 Totalhigh uint64
654 Freehigh uint64 697 Freehigh uint64
655 Unit uint32 698 Unit uint32
656 X_f [0]int8 699 _ [0]int8
657 _ [4]byte 700 _ [4]byte
658} 701}
659 702
@@ -693,6 +736,8 @@ const (
693 736
694 AT_SYMLINK_FOLLOW = 0x400 737 AT_SYMLINK_FOLLOW = 0x400
695 AT_SYMLINK_NOFOLLOW = 0x100 738 AT_SYMLINK_NOFOLLOW = 0x100
739
740 AT_EACCESS = 0x200
696) 741)
697 742
698type PollFd struct { 743type PollFd struct {
@@ -712,7 +757,7 @@ const (
712) 757)
713 758
714type Sigset_t struct { 759type Sigset_t struct {
715 X__val [16]uint64 760 Val [16]uint64
716} 761}
717 762
718const RNDGETENTCNT = 0x40045200 763const RNDGETENTCNT = 0x40045200
@@ -868,3 +913,1058 @@ const (
868 BDADDR_LE_PUBLIC = 0x1 913 BDADDR_LE_PUBLIC = 0x1
869 BDADDR_LE_RANDOM = 0x2 914 BDADDR_LE_RANDOM = 0x2
870) 915)
916
917type PerfEventAttr struct {
918 Type uint32
919 Size uint32
920 Config uint64
921 Sample uint64
922 Sample_type uint64
923 Read_format uint64
924 Bits uint64
925 Wakeup uint32
926 Bp_type uint32
927 Ext1 uint64
928 Ext2 uint64
929 Branch_sample_type uint64
930 Sample_regs_user uint64
931 Sample_stack_user uint32
932 Clockid int32
933 Sample_regs_intr uint64
934 Aux_watermark uint32
935 _ uint32
936}
937
938type PerfEventMmapPage struct {
939 Version uint32
940 Compat_version uint32
941 Lock uint32
942 Index uint32
943 Offset int64
944 Time_enabled uint64
945 Time_running uint64
946 Capabilities uint64
947 Pmc_width uint16
948 Time_shift uint16
949 Time_mult uint32
950 Time_offset uint64
951 Time_zero uint64
952 Size uint32
953 _ [948]uint8
954 Data_head uint64
955 Data_tail uint64
956 Data_offset uint64
957 Data_size uint64
958 Aux_head uint64
959 Aux_tail uint64
960 Aux_offset uint64
961 Aux_size uint64
962}
963
964const (
965 PerfBitDisabled uint64 = CBitFieldMaskBit0
966 PerfBitInherit = CBitFieldMaskBit1
967 PerfBitPinned = CBitFieldMaskBit2
968 PerfBitExclusive = CBitFieldMaskBit3
969 PerfBitExcludeUser = CBitFieldMaskBit4
970 PerfBitExcludeKernel = CBitFieldMaskBit5
971 PerfBitExcludeHv = CBitFieldMaskBit6
972 PerfBitExcludeIdle = CBitFieldMaskBit7
973 PerfBitMmap = CBitFieldMaskBit8
974 PerfBitComm = CBitFieldMaskBit9
975 PerfBitFreq = CBitFieldMaskBit10
976 PerfBitInheritStat = CBitFieldMaskBit11
977 PerfBitEnableOnExec = CBitFieldMaskBit12
978 PerfBitTask = CBitFieldMaskBit13
979 PerfBitWatermark = CBitFieldMaskBit14
980 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
981 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
982 PerfBitMmapData = CBitFieldMaskBit17
983 PerfBitSampleIDAll = CBitFieldMaskBit18
984 PerfBitExcludeHost = CBitFieldMaskBit19
985 PerfBitExcludeGuest = CBitFieldMaskBit20
986 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
987 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
988 PerfBitMmap2 = CBitFieldMaskBit23
989 PerfBitCommExec = CBitFieldMaskBit24
990 PerfBitUseClockID = CBitFieldMaskBit25
991 PerfBitContextSwitch = CBitFieldMaskBit26
992)
993
994const (
995 PERF_TYPE_HARDWARE = 0x0
996 PERF_TYPE_SOFTWARE = 0x1
997 PERF_TYPE_TRACEPOINT = 0x2
998 PERF_TYPE_HW_CACHE = 0x3
999 PERF_TYPE_RAW = 0x4
1000 PERF_TYPE_BREAKPOINT = 0x5
1001
1002 PERF_COUNT_HW_CPU_CYCLES = 0x0
1003 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1004 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1005 PERF_COUNT_HW_CACHE_MISSES = 0x3
1006 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1007 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1008 PERF_COUNT_HW_BUS_CYCLES = 0x6
1009 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1010 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1011 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1012
1013 PERF_COUNT_HW_CACHE_L1D = 0x0
1014 PERF_COUNT_HW_CACHE_L1I = 0x1
1015 PERF_COUNT_HW_CACHE_LL = 0x2
1016 PERF_COUNT_HW_CACHE_DTLB = 0x3
1017 PERF_COUNT_HW_CACHE_ITLB = 0x4
1018 PERF_COUNT_HW_CACHE_BPU = 0x5
1019 PERF_COUNT_HW_CACHE_NODE = 0x6
1020
1021 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1022 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1023 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1024
1025 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1026 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1027
1028 PERF_COUNT_SW_CPU_CLOCK = 0x0
1029 PERF_COUNT_SW_TASK_CLOCK = 0x1
1030 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1031 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1032 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1033 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1034 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1035 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1036 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1037 PERF_COUNT_SW_DUMMY = 0x9
1038
1039 PERF_SAMPLE_IP = 0x1
1040 PERF_SAMPLE_TID = 0x2
1041 PERF_SAMPLE_TIME = 0x4
1042 PERF_SAMPLE_ADDR = 0x8
1043 PERF_SAMPLE_READ = 0x10
1044 PERF_SAMPLE_CALLCHAIN = 0x20
1045 PERF_SAMPLE_ID = 0x40
1046 PERF_SAMPLE_CPU = 0x80
1047 PERF_SAMPLE_PERIOD = 0x100
1048 PERF_SAMPLE_STREAM_ID = 0x200
1049 PERF_SAMPLE_RAW = 0x400
1050 PERF_SAMPLE_BRANCH_STACK = 0x800
1051
1052 PERF_SAMPLE_BRANCH_USER = 0x1
1053 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1054 PERF_SAMPLE_BRANCH_HV = 0x4
1055 PERF_SAMPLE_BRANCH_ANY = 0x8
1056 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1057 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1058 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1059
1060 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1061 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1062 PERF_FORMAT_ID = 0x4
1063 PERF_FORMAT_GROUP = 0x8
1064
1065 PERF_RECORD_MMAP = 0x1
1066 PERF_RECORD_LOST = 0x2
1067 PERF_RECORD_COMM = 0x3
1068 PERF_RECORD_EXIT = 0x4
1069 PERF_RECORD_THROTTLE = 0x5
1070 PERF_RECORD_UNTHROTTLE = 0x6
1071 PERF_RECORD_FORK = 0x7
1072 PERF_RECORD_READ = 0x8
1073 PERF_RECORD_SAMPLE = 0x9
1074
1075 PERF_CONTEXT_HV = -0x20
1076 PERF_CONTEXT_KERNEL = -0x80
1077 PERF_CONTEXT_USER = -0x200
1078
1079 PERF_CONTEXT_GUEST = -0x800
1080 PERF_CONTEXT_GUEST_KERNEL = -0x880
1081 PERF_CONTEXT_GUEST_USER = -0xa00
1082
1083 PERF_FLAG_FD_NO_GROUP = 0x1
1084 PERF_FLAG_FD_OUTPUT = 0x2
1085 PERF_FLAG_PID_CGROUP = 0x4
1086)
1087
1088const (
1089 CBitFieldMaskBit0 = 0x1
1090 CBitFieldMaskBit1 = 0x2
1091 CBitFieldMaskBit2 = 0x4
1092 CBitFieldMaskBit3 = 0x8
1093 CBitFieldMaskBit4 = 0x10
1094 CBitFieldMaskBit5 = 0x20
1095 CBitFieldMaskBit6 = 0x40
1096 CBitFieldMaskBit7 = 0x80
1097 CBitFieldMaskBit8 = 0x100
1098 CBitFieldMaskBit9 = 0x200
1099 CBitFieldMaskBit10 = 0x400
1100 CBitFieldMaskBit11 = 0x800
1101 CBitFieldMaskBit12 = 0x1000
1102 CBitFieldMaskBit13 = 0x2000
1103 CBitFieldMaskBit14 = 0x4000
1104 CBitFieldMaskBit15 = 0x8000
1105 CBitFieldMaskBit16 = 0x10000
1106 CBitFieldMaskBit17 = 0x20000
1107 CBitFieldMaskBit18 = 0x40000
1108 CBitFieldMaskBit19 = 0x80000
1109 CBitFieldMaskBit20 = 0x100000
1110 CBitFieldMaskBit21 = 0x200000
1111 CBitFieldMaskBit22 = 0x400000
1112 CBitFieldMaskBit23 = 0x800000
1113 CBitFieldMaskBit24 = 0x1000000
1114 CBitFieldMaskBit25 = 0x2000000
1115 CBitFieldMaskBit26 = 0x4000000
1116 CBitFieldMaskBit27 = 0x8000000
1117 CBitFieldMaskBit28 = 0x10000000
1118 CBitFieldMaskBit29 = 0x20000000
1119 CBitFieldMaskBit30 = 0x40000000
1120 CBitFieldMaskBit31 = 0x80000000
1121 CBitFieldMaskBit32 = 0x100000000
1122 CBitFieldMaskBit33 = 0x200000000
1123 CBitFieldMaskBit34 = 0x400000000
1124 CBitFieldMaskBit35 = 0x800000000
1125 CBitFieldMaskBit36 = 0x1000000000
1126 CBitFieldMaskBit37 = 0x2000000000
1127 CBitFieldMaskBit38 = 0x4000000000
1128 CBitFieldMaskBit39 = 0x8000000000
1129 CBitFieldMaskBit40 = 0x10000000000
1130 CBitFieldMaskBit41 = 0x20000000000
1131 CBitFieldMaskBit42 = 0x40000000000
1132 CBitFieldMaskBit43 = 0x80000000000
1133 CBitFieldMaskBit44 = 0x100000000000
1134 CBitFieldMaskBit45 = 0x200000000000
1135 CBitFieldMaskBit46 = 0x400000000000
1136 CBitFieldMaskBit47 = 0x800000000000
1137 CBitFieldMaskBit48 = 0x1000000000000
1138 CBitFieldMaskBit49 = 0x2000000000000
1139 CBitFieldMaskBit50 = 0x4000000000000
1140 CBitFieldMaskBit51 = 0x8000000000000
1141 CBitFieldMaskBit52 = 0x10000000000000
1142 CBitFieldMaskBit53 = 0x20000000000000
1143 CBitFieldMaskBit54 = 0x40000000000000
1144 CBitFieldMaskBit55 = 0x80000000000000
1145 CBitFieldMaskBit56 = 0x100000000000000
1146 CBitFieldMaskBit57 = 0x200000000000000
1147 CBitFieldMaskBit58 = 0x400000000000000
1148 CBitFieldMaskBit59 = 0x800000000000000
1149 CBitFieldMaskBit60 = 0x1000000000000000
1150 CBitFieldMaskBit61 = 0x2000000000000000
1151 CBitFieldMaskBit62 = 0x4000000000000000
1152 CBitFieldMaskBit63 = 0x8000000000000000
1153)
1154
1155type SockaddrStorage struct {
1156 Family uint16
1157 _ [118]int8
1158 _ uint64
1159}
1160
1161type TCPMD5Sig struct {
1162 Addr SockaddrStorage
1163 Flags uint8
1164 Prefixlen uint8
1165 Keylen uint16
1166 _ uint32
1167 Key [80]uint8
1168}
1169
1170type HDDriveCmdHdr struct {
1171 Command uint8
1172 Number uint8
1173 Feature uint8
1174 Count uint8
1175}
1176
1177type HDGeometry struct {
1178 Heads uint8
1179 Sectors uint8
1180 Cylinders uint16
1181 _ [4]byte
1182 Start uint64
1183}
1184
1185type HDDriveID struct {
1186 Config uint16
1187 Cyls uint16
1188 Reserved2 uint16
1189 Heads uint16
1190 Track_bytes uint16
1191 Sector_bytes uint16
1192 Sectors uint16
1193 Vendor0 uint16
1194 Vendor1 uint16
1195 Vendor2 uint16
1196 Serial_no [20]uint8
1197 Buf_type uint16
1198 Buf_size uint16
1199 Ecc_bytes uint16
1200 Fw_rev [8]uint8
1201 Model [40]uint8
1202 Max_multsect uint8
1203 Vendor3 uint8
1204 Dword_io uint16
1205 Vendor4 uint8
1206 Capability uint8
1207 Reserved50 uint16
1208 Vendor5 uint8
1209 TPIO uint8
1210 Vendor6 uint8
1211 TDMA uint8
1212 Field_valid uint16
1213 Cur_cyls uint16
1214 Cur_heads uint16
1215 Cur_sectors uint16
1216 Cur_capacity0 uint16
1217 Cur_capacity1 uint16
1218 Multsect uint8
1219 Multsect_valid uint8
1220 Lba_capacity uint32
1221 Dma_1word uint16
1222 Dma_mword uint16
1223 Eide_pio_modes uint16
1224 Eide_dma_min uint16
1225 Eide_dma_time uint16
1226 Eide_pio uint16
1227 Eide_pio_iordy uint16
1228 Words69_70 [2]uint16
1229 Words71_74 [4]uint16
1230 Queue_depth uint16
1231 Words76_79 [4]uint16
1232 Major_rev_num uint16
1233 Minor_rev_num uint16
1234 Command_set_1 uint16
1235 Command_set_2 uint16
1236 Cfsse uint16
1237 Cfs_enable_1 uint16
1238 Cfs_enable_2 uint16
1239 Csf_default uint16
1240 Dma_ultra uint16
1241 Trseuc uint16
1242 TrsEuc uint16
1243 CurAPMvalues uint16
1244 Mprc uint16
1245 Hw_config uint16
1246 Acoustic uint16
1247 Msrqs uint16
1248 Sxfert uint16
1249 Sal uint16
1250 Spg uint32
1251 Lba_capacity_2 uint64
1252 Words104_125 [22]uint16
1253 Last_lun uint16
1254 Word127 uint16
1255 Dlf uint16
1256 Csfo uint16
1257 Words130_155 [26]uint16
1258 Word156 uint16
1259 Words157_159 [3]uint16
1260 Cfa_power uint16
1261 Words161_175 [15]uint16
1262 Words176_205 [30]uint16
1263 Words206_254 [49]uint16
1264 Integrity_word uint16
1265}
1266
1267type Statfs_t struct {
1268 Type int64
1269 Bsize int64
1270 Frsize int64
1271 Blocks uint64
1272 Bfree uint64
1273 Files uint64
1274 Ffree uint64
1275 Bavail uint64
1276 Fsid Fsid
1277 Namelen int64
1278 Flags int64
1279 Spare [5]int64
1280}
1281
1282const (
1283 ST_MANDLOCK = 0x40
1284 ST_NOATIME = 0x400
1285 ST_NODEV = 0x4
1286 ST_NODIRATIME = 0x800
1287 ST_NOEXEC = 0x8
1288 ST_NOSUID = 0x2
1289 ST_RDONLY = 0x1
1290 ST_RELATIME = 0x1000
1291 ST_SYNCHRONOUS = 0x10
1292)
1293
1294type TpacketHdr struct {
1295 Status uint64
1296 Len uint32
1297 Snaplen uint32
1298 Mac uint16
1299 Net uint16
1300 Sec uint32
1301 Usec uint32
1302 _ [4]byte
1303}
1304
1305type Tpacket2Hdr struct {
1306 Status uint32
1307 Len uint32
1308 Snaplen uint32
1309 Mac uint16
1310 Net uint16
1311 Sec uint32
1312 Nsec uint32
1313 Vlan_tci uint16
1314 Vlan_tpid uint16
1315 _ [4]uint8
1316}
1317
1318type Tpacket3Hdr struct {
1319 Next_offset uint32
1320 Sec uint32
1321 Nsec uint32
1322 Snaplen uint32
1323 Len uint32
1324 Status uint32
1325 Mac uint16
1326 Net uint16
1327 Hv1 TpacketHdrVariant1
1328 _ [8]uint8
1329}
1330
1331type TpacketHdrVariant1 struct {
1332 Rxhash uint32
1333 Vlan_tci uint32
1334 Vlan_tpid uint16
1335 _ uint16
1336}
1337
1338type TpacketBlockDesc struct {
1339 Version uint32
1340 To_priv uint32
1341 Hdr [40]byte
1342}
1343
1344type TpacketReq struct {
1345 Block_size uint32
1346 Block_nr uint32
1347 Frame_size uint32
1348 Frame_nr uint32
1349}
1350
1351type TpacketReq3 struct {
1352 Block_size uint32
1353 Block_nr uint32
1354 Frame_size uint32
1355 Frame_nr uint32
1356 Retire_blk_tov uint32
1357 Sizeof_priv uint32
1358 Feature_req_word uint32
1359}
1360
1361type TpacketStats struct {
1362 Packets uint32
1363 Drops uint32
1364}
1365
1366type TpacketStatsV3 struct {
1367 Packets uint32
1368 Drops uint32
1369 Freeze_q_cnt uint32
1370}
1371
1372type TpacketAuxdata struct {
1373 Status uint32
1374 Len uint32
1375 Snaplen uint32
1376 Mac uint16
1377 Net uint16
1378 Vlan_tci uint16
1379 Vlan_tpid uint16
1380}
1381
1382const (
1383 TPACKET_V1 = 0x0
1384 TPACKET_V2 = 0x1
1385 TPACKET_V3 = 0x2
1386)
1387
1388const (
1389 SizeofTpacketHdr = 0x20
1390 SizeofTpacket2Hdr = 0x20
1391 SizeofTpacket3Hdr = 0x30
1392)
1393
1394const (
1395 NF_INET_PRE_ROUTING = 0x0
1396 NF_INET_LOCAL_IN = 0x1
1397 NF_INET_FORWARD = 0x2
1398 NF_INET_LOCAL_OUT = 0x3
1399 NF_INET_POST_ROUTING = 0x4
1400 NF_INET_NUMHOOKS = 0x5
1401)
1402
1403const (
1404 NF_NETDEV_INGRESS = 0x0
1405 NF_NETDEV_NUMHOOKS = 0x1
1406)
1407
1408const (
1409 NFPROTO_UNSPEC = 0x0
1410 NFPROTO_INET = 0x1
1411 NFPROTO_IPV4 = 0x2
1412 NFPROTO_ARP = 0x3
1413 NFPROTO_NETDEV = 0x5
1414 NFPROTO_BRIDGE = 0x7
1415 NFPROTO_IPV6 = 0xa
1416 NFPROTO_DECNET = 0xc
1417 NFPROTO_NUMPROTO = 0xd
1418)
1419
1420type Nfgenmsg struct {
1421 Nfgen_family uint8
1422 Version uint8
1423 Res_id uint16
1424}
1425
1426const (
1427 NFNL_BATCH_UNSPEC = 0x0
1428 NFNL_BATCH_GENID = 0x1
1429)
1430
1431const (
1432 NFT_REG_VERDICT = 0x0
1433 NFT_REG_1 = 0x1
1434 NFT_REG_2 = 0x2
1435 NFT_REG_3 = 0x3
1436 NFT_REG_4 = 0x4
1437 NFT_REG32_00 = 0x8
1438 NFT_REG32_01 = 0x9
1439 NFT_REG32_02 = 0xa
1440 NFT_REG32_03 = 0xb
1441 NFT_REG32_04 = 0xc
1442 NFT_REG32_05 = 0xd
1443 NFT_REG32_06 = 0xe
1444 NFT_REG32_07 = 0xf
1445 NFT_REG32_08 = 0x10
1446 NFT_REG32_09 = 0x11
1447 NFT_REG32_10 = 0x12
1448 NFT_REG32_11 = 0x13
1449 NFT_REG32_12 = 0x14
1450 NFT_REG32_13 = 0x15
1451 NFT_REG32_14 = 0x16
1452 NFT_REG32_15 = 0x17
1453 NFT_CONTINUE = -0x1
1454 NFT_BREAK = -0x2
1455 NFT_JUMP = -0x3
1456 NFT_GOTO = -0x4
1457 NFT_RETURN = -0x5
1458 NFT_MSG_NEWTABLE = 0x0
1459 NFT_MSG_GETTABLE = 0x1
1460 NFT_MSG_DELTABLE = 0x2
1461 NFT_MSG_NEWCHAIN = 0x3
1462 NFT_MSG_GETCHAIN = 0x4
1463 NFT_MSG_DELCHAIN = 0x5
1464 NFT_MSG_NEWRULE = 0x6
1465 NFT_MSG_GETRULE = 0x7
1466 NFT_MSG_DELRULE = 0x8
1467 NFT_MSG_NEWSET = 0x9
1468 NFT_MSG_GETSET = 0xa
1469 NFT_MSG_DELSET = 0xb
1470 NFT_MSG_NEWSETELEM = 0xc
1471 NFT_MSG_GETSETELEM = 0xd
1472 NFT_MSG_DELSETELEM = 0xe
1473 NFT_MSG_NEWGEN = 0xf
1474 NFT_MSG_GETGEN = 0x10
1475 NFT_MSG_TRACE = 0x11
1476 NFT_MSG_NEWOBJ = 0x12
1477 NFT_MSG_GETOBJ = 0x13
1478 NFT_MSG_DELOBJ = 0x14
1479 NFT_MSG_GETOBJ_RESET = 0x15
1480 NFT_MSG_MAX = 0x19
1481 NFTA_LIST_UNPEC = 0x0
1482 NFTA_LIST_ELEM = 0x1
1483 NFTA_HOOK_UNSPEC = 0x0
1484 NFTA_HOOK_HOOKNUM = 0x1
1485 NFTA_HOOK_PRIORITY = 0x2
1486 NFTA_HOOK_DEV = 0x3
1487 NFT_TABLE_F_DORMANT = 0x1
1488 NFTA_TABLE_UNSPEC = 0x0
1489 NFTA_TABLE_NAME = 0x1
1490 NFTA_TABLE_FLAGS = 0x2
1491 NFTA_TABLE_USE = 0x3
1492 NFTA_CHAIN_UNSPEC = 0x0
1493 NFTA_CHAIN_TABLE = 0x1
1494 NFTA_CHAIN_HANDLE = 0x2
1495 NFTA_CHAIN_NAME = 0x3
1496 NFTA_CHAIN_HOOK = 0x4
1497 NFTA_CHAIN_POLICY = 0x5
1498 NFTA_CHAIN_USE = 0x6
1499 NFTA_CHAIN_TYPE = 0x7
1500 NFTA_CHAIN_COUNTERS = 0x8
1501 NFTA_CHAIN_PAD = 0x9
1502 NFTA_RULE_UNSPEC = 0x0
1503 NFTA_RULE_TABLE = 0x1
1504 NFTA_RULE_CHAIN = 0x2
1505 NFTA_RULE_HANDLE = 0x3
1506 NFTA_RULE_EXPRESSIONS = 0x4
1507 NFTA_RULE_COMPAT = 0x5
1508 NFTA_RULE_POSITION = 0x6
1509 NFTA_RULE_USERDATA = 0x7
1510 NFTA_RULE_PAD = 0x8
1511 NFTA_RULE_ID = 0x9
1512 NFT_RULE_COMPAT_F_INV = 0x2
1513 NFT_RULE_COMPAT_F_MASK = 0x2
1514 NFTA_RULE_COMPAT_UNSPEC = 0x0
1515 NFTA_RULE_COMPAT_PROTO = 0x1
1516 NFTA_RULE_COMPAT_FLAGS = 0x2
1517 NFT_SET_ANONYMOUS = 0x1
1518 NFT_SET_CONSTANT = 0x2
1519 NFT_SET_INTERVAL = 0x4
1520 NFT_SET_MAP = 0x8
1521 NFT_SET_TIMEOUT = 0x10
1522 NFT_SET_EVAL = 0x20
1523 NFT_SET_OBJECT = 0x40
1524 NFT_SET_POL_PERFORMANCE = 0x0
1525 NFT_SET_POL_MEMORY = 0x1
1526 NFTA_SET_DESC_UNSPEC = 0x0
1527 NFTA_SET_DESC_SIZE = 0x1
1528 NFTA_SET_UNSPEC = 0x0
1529 NFTA_SET_TABLE = 0x1
1530 NFTA_SET_NAME = 0x2
1531 NFTA_SET_FLAGS = 0x3
1532 NFTA_SET_KEY_TYPE = 0x4
1533 NFTA_SET_KEY_LEN = 0x5
1534 NFTA_SET_DATA_TYPE = 0x6
1535 NFTA_SET_DATA_LEN = 0x7
1536 NFTA_SET_POLICY = 0x8
1537 NFTA_SET_DESC = 0x9
1538 NFTA_SET_ID = 0xa
1539 NFTA_SET_TIMEOUT = 0xb
1540 NFTA_SET_GC_INTERVAL = 0xc
1541 NFTA_SET_USERDATA = 0xd
1542 NFTA_SET_PAD = 0xe
1543 NFTA_SET_OBJ_TYPE = 0xf
1544 NFT_SET_ELEM_INTERVAL_END = 0x1
1545 NFTA_SET_ELEM_UNSPEC = 0x0
1546 NFTA_SET_ELEM_KEY = 0x1
1547 NFTA_SET_ELEM_DATA = 0x2
1548 NFTA_SET_ELEM_FLAGS = 0x3
1549 NFTA_SET_ELEM_TIMEOUT = 0x4
1550 NFTA_SET_ELEM_EXPIRATION = 0x5
1551 NFTA_SET_ELEM_USERDATA = 0x6
1552 NFTA_SET_ELEM_EXPR = 0x7
1553 NFTA_SET_ELEM_PAD = 0x8
1554 NFTA_SET_ELEM_OBJREF = 0x9
1555 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1556 NFTA_SET_ELEM_LIST_TABLE = 0x1
1557 NFTA_SET_ELEM_LIST_SET = 0x2
1558 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1559 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1560 NFT_DATA_VALUE = 0x0
1561 NFT_DATA_VERDICT = 0xffffff00
1562 NFTA_DATA_UNSPEC = 0x0
1563 NFTA_DATA_VALUE = 0x1
1564 NFTA_DATA_VERDICT = 0x2
1565 NFTA_VERDICT_UNSPEC = 0x0
1566 NFTA_VERDICT_CODE = 0x1
1567 NFTA_VERDICT_CHAIN = 0x2
1568 NFTA_EXPR_UNSPEC = 0x0
1569 NFTA_EXPR_NAME = 0x1
1570 NFTA_EXPR_DATA = 0x2
1571 NFTA_IMMEDIATE_UNSPEC = 0x0
1572 NFTA_IMMEDIATE_DREG = 0x1
1573 NFTA_IMMEDIATE_DATA = 0x2
1574 NFTA_BITWISE_UNSPEC = 0x0
1575 NFTA_BITWISE_SREG = 0x1
1576 NFTA_BITWISE_DREG = 0x2
1577 NFTA_BITWISE_LEN = 0x3
1578 NFTA_BITWISE_MASK = 0x4
1579 NFTA_BITWISE_XOR = 0x5
1580 NFT_BYTEORDER_NTOH = 0x0
1581 NFT_BYTEORDER_HTON = 0x1
1582 NFTA_BYTEORDER_UNSPEC = 0x0
1583 NFTA_BYTEORDER_SREG = 0x1
1584 NFTA_BYTEORDER_DREG = 0x2
1585 NFTA_BYTEORDER_OP = 0x3
1586 NFTA_BYTEORDER_LEN = 0x4
1587 NFTA_BYTEORDER_SIZE = 0x5
1588 NFT_CMP_EQ = 0x0
1589 NFT_CMP_NEQ = 0x1
1590 NFT_CMP_LT = 0x2
1591 NFT_CMP_LTE = 0x3
1592 NFT_CMP_GT = 0x4
1593 NFT_CMP_GTE = 0x5
1594 NFTA_CMP_UNSPEC = 0x0
1595 NFTA_CMP_SREG = 0x1
1596 NFTA_CMP_OP = 0x2
1597 NFTA_CMP_DATA = 0x3
1598 NFT_RANGE_EQ = 0x0
1599 NFT_RANGE_NEQ = 0x1
1600 NFTA_RANGE_UNSPEC = 0x0
1601 NFTA_RANGE_SREG = 0x1
1602 NFTA_RANGE_OP = 0x2
1603 NFTA_RANGE_FROM_DATA = 0x3
1604 NFTA_RANGE_TO_DATA = 0x4
1605 NFT_LOOKUP_F_INV = 0x1
1606 NFTA_LOOKUP_UNSPEC = 0x0
1607 NFTA_LOOKUP_SET = 0x1
1608 NFTA_LOOKUP_SREG = 0x2
1609 NFTA_LOOKUP_DREG = 0x3
1610 NFTA_LOOKUP_SET_ID = 0x4
1611 NFTA_LOOKUP_FLAGS = 0x5
1612 NFT_DYNSET_OP_ADD = 0x0
1613 NFT_DYNSET_OP_UPDATE = 0x1
1614 NFT_DYNSET_F_INV = 0x1
1615 NFTA_DYNSET_UNSPEC = 0x0
1616 NFTA_DYNSET_SET_NAME = 0x1
1617 NFTA_DYNSET_SET_ID = 0x2
1618 NFTA_DYNSET_OP = 0x3
1619 NFTA_DYNSET_SREG_KEY = 0x4
1620 NFTA_DYNSET_SREG_DATA = 0x5
1621 NFTA_DYNSET_TIMEOUT = 0x6
1622 NFTA_DYNSET_EXPR = 0x7
1623 NFTA_DYNSET_PAD = 0x8
1624 NFTA_DYNSET_FLAGS = 0x9
1625 NFT_PAYLOAD_LL_HEADER = 0x0
1626 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1627 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1628 NFT_PAYLOAD_CSUM_NONE = 0x0
1629 NFT_PAYLOAD_CSUM_INET = 0x1
1630 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1631 NFTA_PAYLOAD_UNSPEC = 0x0
1632 NFTA_PAYLOAD_DREG = 0x1
1633 NFTA_PAYLOAD_BASE = 0x2
1634 NFTA_PAYLOAD_OFFSET = 0x3
1635 NFTA_PAYLOAD_LEN = 0x4
1636 NFTA_PAYLOAD_SREG = 0x5
1637 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1638 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1639 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1640 NFT_EXTHDR_F_PRESENT = 0x1
1641 NFT_EXTHDR_OP_IPV6 = 0x0
1642 NFT_EXTHDR_OP_TCPOPT = 0x1
1643 NFTA_EXTHDR_UNSPEC = 0x0
1644 NFTA_EXTHDR_DREG = 0x1
1645 NFTA_EXTHDR_TYPE = 0x2
1646 NFTA_EXTHDR_OFFSET = 0x3
1647 NFTA_EXTHDR_LEN = 0x4
1648 NFTA_EXTHDR_FLAGS = 0x5
1649 NFTA_EXTHDR_OP = 0x6
1650 NFTA_EXTHDR_SREG = 0x7
1651 NFT_META_LEN = 0x0
1652 NFT_META_PROTOCOL = 0x1
1653 NFT_META_PRIORITY = 0x2
1654 NFT_META_MARK = 0x3
1655 NFT_META_IIF = 0x4
1656 NFT_META_OIF = 0x5
1657 NFT_META_IIFNAME = 0x6
1658 NFT_META_OIFNAME = 0x7
1659 NFT_META_IIFTYPE = 0x8
1660 NFT_META_OIFTYPE = 0x9
1661 NFT_META_SKUID = 0xa
1662 NFT_META_SKGID = 0xb
1663 NFT_META_NFTRACE = 0xc
1664 NFT_META_RTCLASSID = 0xd
1665 NFT_META_SECMARK = 0xe
1666 NFT_META_NFPROTO = 0xf
1667 NFT_META_L4PROTO = 0x10
1668 NFT_META_BRI_IIFNAME = 0x11
1669 NFT_META_BRI_OIFNAME = 0x12
1670 NFT_META_PKTTYPE = 0x13
1671 NFT_META_CPU = 0x14
1672 NFT_META_IIFGROUP = 0x15
1673 NFT_META_OIFGROUP = 0x16
1674 NFT_META_CGROUP = 0x17
1675 NFT_META_PRANDOM = 0x18
1676 NFT_RT_CLASSID = 0x0
1677 NFT_RT_NEXTHOP4 = 0x1
1678 NFT_RT_NEXTHOP6 = 0x2
1679 NFT_RT_TCPMSS = 0x3
1680 NFT_HASH_JENKINS = 0x0
1681 NFT_HASH_SYM = 0x1
1682 NFTA_HASH_UNSPEC = 0x0
1683 NFTA_HASH_SREG = 0x1
1684 NFTA_HASH_DREG = 0x2
1685 NFTA_HASH_LEN = 0x3
1686 NFTA_HASH_MODULUS = 0x4
1687 NFTA_HASH_SEED = 0x5
1688 NFTA_HASH_OFFSET = 0x6
1689 NFTA_HASH_TYPE = 0x7
1690 NFTA_META_UNSPEC = 0x0
1691 NFTA_META_DREG = 0x1
1692 NFTA_META_KEY = 0x2
1693 NFTA_META_SREG = 0x3
1694 NFTA_RT_UNSPEC = 0x0
1695 NFTA_RT_DREG = 0x1
1696 NFTA_RT_KEY = 0x2
1697 NFT_CT_STATE = 0x0
1698 NFT_CT_DIRECTION = 0x1
1699 NFT_CT_STATUS = 0x2
1700 NFT_CT_MARK = 0x3
1701 NFT_CT_SECMARK = 0x4
1702 NFT_CT_EXPIRATION = 0x5
1703 NFT_CT_HELPER = 0x6
1704 NFT_CT_L3PROTOCOL = 0x7
1705 NFT_CT_SRC = 0x8
1706 NFT_CT_DST = 0x9
1707 NFT_CT_PROTOCOL = 0xa
1708 NFT_CT_PROTO_SRC = 0xb
1709 NFT_CT_PROTO_DST = 0xc
1710 NFT_CT_LABELS = 0xd
1711 NFT_CT_PKTS = 0xe
1712 NFT_CT_BYTES = 0xf
1713 NFT_CT_AVGPKT = 0x10
1714 NFT_CT_ZONE = 0x11
1715 NFT_CT_EVENTMASK = 0x12
1716 NFTA_CT_UNSPEC = 0x0
1717 NFTA_CT_DREG = 0x1
1718 NFTA_CT_KEY = 0x2
1719 NFTA_CT_DIRECTION = 0x3
1720 NFTA_CT_SREG = 0x4
1721 NFT_LIMIT_PKTS = 0x0
1722 NFT_LIMIT_PKT_BYTES = 0x1
1723 NFT_LIMIT_F_INV = 0x1
1724 NFTA_LIMIT_UNSPEC = 0x0
1725 NFTA_LIMIT_RATE = 0x1
1726 NFTA_LIMIT_UNIT = 0x2
1727 NFTA_LIMIT_BURST = 0x3
1728 NFTA_LIMIT_TYPE = 0x4
1729 NFTA_LIMIT_FLAGS = 0x5
1730 NFTA_LIMIT_PAD = 0x6
1731 NFTA_COUNTER_UNSPEC = 0x0
1732 NFTA_COUNTER_BYTES = 0x1
1733 NFTA_COUNTER_PACKETS = 0x2
1734 NFTA_COUNTER_PAD = 0x3
1735 NFTA_LOG_UNSPEC = 0x0
1736 NFTA_LOG_GROUP = 0x1
1737 NFTA_LOG_PREFIX = 0x2
1738 NFTA_LOG_SNAPLEN = 0x3
1739 NFTA_LOG_QTHRESHOLD = 0x4
1740 NFTA_LOG_LEVEL = 0x5
1741 NFTA_LOG_FLAGS = 0x6
1742 NFTA_QUEUE_UNSPEC = 0x0
1743 NFTA_QUEUE_NUM = 0x1
1744 NFTA_QUEUE_TOTAL = 0x2
1745 NFTA_QUEUE_FLAGS = 0x3
1746 NFTA_QUEUE_SREG_QNUM = 0x4
1747 NFT_QUOTA_F_INV = 0x1
1748 NFT_QUOTA_F_DEPLETED = 0x2
1749 NFTA_QUOTA_UNSPEC = 0x0
1750 NFTA_QUOTA_BYTES = 0x1
1751 NFTA_QUOTA_FLAGS = 0x2
1752 NFTA_QUOTA_PAD = 0x3
1753 NFTA_QUOTA_CONSUMED = 0x4
1754 NFT_REJECT_ICMP_UNREACH = 0x0
1755 NFT_REJECT_TCP_RST = 0x1
1756 NFT_REJECT_ICMPX_UNREACH = 0x2
1757 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1758 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1759 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1760 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1761 NFTA_REJECT_UNSPEC = 0x0
1762 NFTA_REJECT_TYPE = 0x1
1763 NFTA_REJECT_ICMP_CODE = 0x2
1764 NFT_NAT_SNAT = 0x0
1765 NFT_NAT_DNAT = 0x1
1766 NFTA_NAT_UNSPEC = 0x0
1767 NFTA_NAT_TYPE = 0x1
1768 NFTA_NAT_FAMILY = 0x2
1769 NFTA_NAT_REG_ADDR_MIN = 0x3
1770 NFTA_NAT_REG_ADDR_MAX = 0x4
1771 NFTA_NAT_REG_PROTO_MIN = 0x5
1772 NFTA_NAT_REG_PROTO_MAX = 0x6
1773 NFTA_NAT_FLAGS = 0x7
1774 NFTA_MASQ_UNSPEC = 0x0
1775 NFTA_MASQ_FLAGS = 0x1
1776 NFTA_MASQ_REG_PROTO_MIN = 0x2
1777 NFTA_MASQ_REG_PROTO_MAX = 0x3
1778 NFTA_REDIR_UNSPEC = 0x0
1779 NFTA_REDIR_REG_PROTO_MIN = 0x1
1780 NFTA_REDIR_REG_PROTO_MAX = 0x2
1781 NFTA_REDIR_FLAGS = 0x3
1782 NFTA_DUP_UNSPEC = 0x0
1783 NFTA_DUP_SREG_ADDR = 0x1
1784 NFTA_DUP_SREG_DEV = 0x2
1785 NFTA_FWD_UNSPEC = 0x0
1786 NFTA_FWD_SREG_DEV = 0x1
1787 NFTA_OBJREF_UNSPEC = 0x0
1788 NFTA_OBJREF_IMM_TYPE = 0x1
1789 NFTA_OBJREF_IMM_NAME = 0x2
1790 NFTA_OBJREF_SET_SREG = 0x3
1791 NFTA_OBJREF_SET_NAME = 0x4
1792 NFTA_OBJREF_SET_ID = 0x5
1793 NFTA_GEN_UNSPEC = 0x0
1794 NFTA_GEN_ID = 0x1
1795 NFTA_GEN_PROC_PID = 0x2
1796 NFTA_GEN_PROC_NAME = 0x3
1797 NFTA_FIB_UNSPEC = 0x0
1798 NFTA_FIB_DREG = 0x1
1799 NFTA_FIB_RESULT = 0x2
1800 NFTA_FIB_FLAGS = 0x3
1801 NFT_FIB_RESULT_UNSPEC = 0x0
1802 NFT_FIB_RESULT_OIF = 0x1
1803 NFT_FIB_RESULT_OIFNAME = 0x2
1804 NFT_FIB_RESULT_ADDRTYPE = 0x3
1805 NFTA_FIB_F_SADDR = 0x1
1806 NFTA_FIB_F_DADDR = 0x2
1807 NFTA_FIB_F_MARK = 0x4
1808 NFTA_FIB_F_IIF = 0x8
1809 NFTA_FIB_F_OIF = 0x10
1810 NFTA_FIB_F_PRESENT = 0x20
1811 NFTA_CT_HELPER_UNSPEC = 0x0
1812 NFTA_CT_HELPER_NAME = 0x1
1813 NFTA_CT_HELPER_L3PROTO = 0x2
1814 NFTA_CT_HELPER_L4PROTO = 0x3
1815 NFTA_OBJ_UNSPEC = 0x0
1816 NFTA_OBJ_TABLE = 0x1
1817 NFTA_OBJ_NAME = 0x2
1818 NFTA_OBJ_TYPE = 0x3
1819 NFTA_OBJ_DATA = 0x4
1820 NFTA_OBJ_USE = 0x5
1821 NFTA_TRACE_UNSPEC = 0x0
1822 NFTA_TRACE_TABLE = 0x1
1823 NFTA_TRACE_CHAIN = 0x2
1824 NFTA_TRACE_RULE_HANDLE = 0x3
1825 NFTA_TRACE_TYPE = 0x4
1826 NFTA_TRACE_VERDICT = 0x5
1827 NFTA_TRACE_ID = 0x6
1828 NFTA_TRACE_LL_HEADER = 0x7
1829 NFTA_TRACE_NETWORK_HEADER = 0x8
1830 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1831 NFTA_TRACE_IIF = 0xa
1832 NFTA_TRACE_IIFTYPE = 0xb
1833 NFTA_TRACE_OIF = 0xc
1834 NFTA_TRACE_OIFTYPE = 0xd
1835 NFTA_TRACE_MARK = 0xe
1836 NFTA_TRACE_NFPROTO = 0xf
1837 NFTA_TRACE_POLICY = 0x10
1838 NFTA_TRACE_PAD = 0x11
1839 NFT_TRACETYPE_UNSPEC = 0x0
1840 NFT_TRACETYPE_POLICY = 0x1
1841 NFT_TRACETYPE_RETURN = 0x2
1842 NFT_TRACETYPE_RULE = 0x3
1843 NFTA_NG_UNSPEC = 0x0
1844 NFTA_NG_DREG = 0x1
1845 NFTA_NG_MODULUS = 0x2
1846 NFTA_NG_TYPE = 0x3
1847 NFTA_NG_OFFSET = 0x4
1848 NFT_NG_INCREMENTAL = 0x0
1849 NFT_NG_RANDOM = 0x1
1850)
1851
1852type RTCTime struct {
1853 Sec int32
1854 Min int32
1855 Hour int32
1856 Mday int32
1857 Mon int32
1858 Year int32
1859 Wday int32
1860 Yday int32
1861 Isdst int32
1862}
1863
1864type RTCWkAlrm struct {
1865 Enabled uint8
1866 Pending uint8
1867 _ [2]byte
1868 Time RTCTime
1869}
1870
1871type RTCPLLInfo struct {
1872 Ctrl int32
1873 Value int32
1874 Max int32
1875 Min int32
1876 Posmult int32
1877 Negmult int32
1878 Clock int64
1879}
1880
1881type BlkpgIoctlArg struct {
1882 Op int32
1883 Flags int32
1884 Datalen int32
1885 _ [4]byte
1886 Data *byte
1887}
1888
1889type BlkpgPartition struct {
1890 Start int64
1891 Length int64
1892 Pno int32
1893 Devname [64]uint8
1894 Volname [64]uint8
1895 _ [4]byte
1896}
1897
1898const (
1899 BLKPG = 0x20001269
1900 BLKPG_ADD_PARTITION = 0x1
1901 BLKPG_DEL_PARTITION = 0x2
1902 BLKPG_RESIZE_PARTITION = 0x3
1903)
1904
1905const (
1906 NETNSA_NONE = 0x0
1907 NETNSA_NSID = 0x1
1908 NETNSA_PID = 0x2
1909 NETNSA_FD = 0x3
1910)
1911
1912type XDPRingOffset struct {
1913 Producer uint64
1914 Consumer uint64
1915 Desc uint64
1916}
1917
1918type XDPMmapOffsets struct {
1919 Rx XDPRingOffset
1920 Tx XDPRingOffset
1921 Fr XDPRingOffset
1922 Cr XDPRingOffset
1923}
1924
1925type XDPUmemReg struct {
1926 Addr uint64
1927 Len uint64
1928 Size uint32
1929 Headroom uint32
1930}
1931
1932type XDPStatistics struct {
1933 Rx_dropped uint64
1934 Rx_invalid_descs uint64
1935 Tx_invalid_descs uint64
1936}
1937
1938type XDPDesc struct {
1939 Addr uint64
1940 Len uint32
1941 Options uint32
1942}
1943
1944const (
1945 NCSI_CMD_UNSPEC = 0x0
1946 NCSI_CMD_PKG_INFO = 0x1
1947 NCSI_CMD_SET_INTERFACE = 0x2
1948 NCSI_CMD_CLEAR_INTERFACE = 0x3
1949 NCSI_ATTR_UNSPEC = 0x0
1950 NCSI_ATTR_IFINDEX = 0x1
1951 NCSI_ATTR_PACKAGE_LIST = 0x2
1952 NCSI_ATTR_PACKAGE_ID = 0x3
1953 NCSI_ATTR_CHANNEL_ID = 0x4
1954 NCSI_PKG_ATTR_UNSPEC = 0x0
1955 NCSI_PKG_ATTR = 0x1
1956 NCSI_PKG_ATTR_ID = 0x2
1957 NCSI_PKG_ATTR_FORCED = 0x3
1958 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1959 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1960 NCSI_CHANNEL_ATTR = 0x1
1961 NCSI_CHANNEL_ATTR_ID = 0x2
1962 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1963 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1964 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1965 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1966 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1967 NCSI_CHANNEL_ATTR_FORCED = 0x8
1968 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1969 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1970)
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 6de721f..8fcad32 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -115,27 +115,10 @@ type Stat_t struct {
115 Pad5 [14]int32 115 Pad5 [14]int32
116} 116}
117 117
118type Statfs_t struct {
119 Type int32
120 Bsize int32
121 Frsize int32
122 _ [4]byte
123 Blocks uint64
124 Bfree uint64
125 Files uint64
126 Ffree uint64
127 Bavail uint64
128 Fsid Fsid
129 Namelen int32
130 Flags int32
131 Spare [5]int32
132 _ [4]byte
133}
134
135type StatxTimestamp struct { 118type StatxTimestamp struct {
136 Sec int64 119 Sec int64
137 Nsec uint32 120 Nsec uint32
138 X__reserved int32 121 _ int32
139} 122}
140 123
141type Statx_t struct { 124type Statx_t struct {
@@ -172,7 +155,7 @@ type Dirent struct {
172} 155}
173 156
174type Fsid struct { 157type Fsid struct {
175 X__val [2]int32 158 Val [2]int32
176} 159}
177 160
178type Flock_t struct { 161type Flock_t struct {
@@ -266,6 +249,13 @@ type RawSockaddrL2 struct {
266 _ [1]byte 249 _ [1]byte
267} 250}
268 251
252type RawSockaddrRFCOMM struct {
253 Family uint16
254 Bdaddr [6]uint8
255 Channel uint8
256 _ [1]byte
257}
258
269type RawSockaddrCAN struct { 259type RawSockaddrCAN struct {
270 Family uint16 260 Family uint16
271 _ [2]byte 261 _ [2]byte
@@ -289,6 +279,14 @@ type RawSockaddrVM struct {
289 Zero [4]uint8 279 Zero [4]uint8
290} 280}
291 281
282type RawSockaddrXDP struct {
283 Family uint16
284 Flags uint16
285 Ifindex uint32
286 Queue_id uint32
287 Shared_umem_fd uint32
288}
289
292type RawSockaddr struct { 290type RawSockaddr struct {
293 Family uint16 291 Family uint16
294 Data [14]int8 292 Data [14]int8
@@ -419,9 +417,11 @@ const (
419 SizeofSockaddrNetlink = 0xc 417 SizeofSockaddrNetlink = 0xc
420 SizeofSockaddrHCI = 0x6 418 SizeofSockaddrHCI = 0x6
421 SizeofSockaddrL2 = 0xe 419 SizeofSockaddrL2 = 0xe
420 SizeofSockaddrRFCOMM = 0xa
422 SizeofSockaddrCAN = 0x10 421 SizeofSockaddrCAN = 0x10
423 SizeofSockaddrALG = 0x58 422 SizeofSockaddrALG = 0x58
424 SizeofSockaddrVM = 0x10 423 SizeofSockaddrVM = 0x10
424 SizeofSockaddrXDP = 0x10
425 SizeofLinger = 0x8 425 SizeofLinger = 0x8
426 SizeofIovec = 0x8 426 SizeofIovec = 0x8
427 SizeofIPMreq = 0x8 427 SizeofIPMreq = 0x8
@@ -439,97 +439,138 @@ const (
439) 439)
440 440
441const ( 441const (
442 IFA_UNSPEC = 0x0 442 IFA_UNSPEC = 0x0
443 IFA_ADDRESS = 0x1 443 IFA_ADDRESS = 0x1
444 IFA_LOCAL = 0x2 444 IFA_LOCAL = 0x2
445 IFA_LABEL = 0x3 445 IFA_LABEL = 0x3
446 IFA_BROADCAST = 0x4 446 IFA_BROADCAST = 0x4
447 IFA_ANYCAST = 0x5 447 IFA_ANYCAST = 0x5
448 IFA_CACHEINFO = 0x6 448 IFA_CACHEINFO = 0x6
449 IFA_MULTICAST = 0x7 449 IFA_MULTICAST = 0x7
450 IFLA_UNSPEC = 0x0 450 IFLA_UNSPEC = 0x0
451 IFLA_ADDRESS = 0x1 451 IFLA_ADDRESS = 0x1
452 IFLA_BROADCAST = 0x2 452 IFLA_BROADCAST = 0x2
453 IFLA_IFNAME = 0x3 453 IFLA_IFNAME = 0x3
454 IFLA_MTU = 0x4 454 IFLA_INFO_KIND = 0x1
455 IFLA_LINK = 0x5 455 IFLA_MTU = 0x4
456 IFLA_QDISC = 0x6 456 IFLA_LINK = 0x5
457 IFLA_STATS = 0x7 457 IFLA_QDISC = 0x6
458 IFLA_COST = 0x8 458 IFLA_STATS = 0x7
459 IFLA_PRIORITY = 0x9 459 IFLA_COST = 0x8
460 IFLA_MASTER = 0xa 460 IFLA_PRIORITY = 0x9
461 IFLA_WIRELESS = 0xb 461 IFLA_MASTER = 0xa
462 IFLA_PROTINFO = 0xc 462 IFLA_WIRELESS = 0xb
463 IFLA_TXQLEN = 0xd 463 IFLA_PROTINFO = 0xc
464 IFLA_MAP = 0xe 464 IFLA_TXQLEN = 0xd
465 IFLA_WEIGHT = 0xf 465 IFLA_MAP = 0xe
466 IFLA_OPERSTATE = 0x10 466 IFLA_WEIGHT = 0xf
467 IFLA_LINKMODE = 0x11 467 IFLA_OPERSTATE = 0x10
468 IFLA_LINKINFO = 0x12 468 IFLA_LINKMODE = 0x11
469 IFLA_NET_NS_PID = 0x13 469 IFLA_LINKINFO = 0x12
470 IFLA_IFALIAS = 0x14 470 IFLA_NET_NS_PID = 0x13
471 IFLA_MAX = 0x2c 471 IFLA_IFALIAS = 0x14
472 RT_SCOPE_UNIVERSE = 0x0 472 IFLA_NUM_VF = 0x15
473 RT_SCOPE_SITE = 0xc8 473 IFLA_VFINFO_LIST = 0x16
474 RT_SCOPE_LINK = 0xfd 474 IFLA_STATS64 = 0x17
475 RT_SCOPE_HOST = 0xfe 475 IFLA_VF_PORTS = 0x18
476 RT_SCOPE_NOWHERE = 0xff 476 IFLA_PORT_SELF = 0x19
477 RT_TABLE_UNSPEC = 0x0 477 IFLA_AF_SPEC = 0x1a
478 RT_TABLE_COMPAT = 0xfc 478 IFLA_GROUP = 0x1b
479 RT_TABLE_DEFAULT = 0xfd 479 IFLA_NET_NS_FD = 0x1c
480 RT_TABLE_MAIN = 0xfe 480 IFLA_EXT_MASK = 0x1d
481 RT_TABLE_LOCAL = 0xff 481 IFLA_PROMISCUITY = 0x1e
482 RT_TABLE_MAX = 0xffffffff 482 IFLA_NUM_TX_QUEUES = 0x1f
483 RTA_UNSPEC = 0x0 483 IFLA_NUM_RX_QUEUES = 0x20
484 RTA_DST = 0x1 484 IFLA_CARRIER = 0x21
485 RTA_SRC = 0x2 485 IFLA_PHYS_PORT_ID = 0x22
486 RTA_IIF = 0x3 486 IFLA_CARRIER_CHANGES = 0x23
487 RTA_OIF = 0x4 487 IFLA_PHYS_SWITCH_ID = 0x24
488 RTA_GATEWAY = 0x5 488 IFLA_LINK_NETNSID = 0x25
489 RTA_PRIORITY = 0x6 489 IFLA_PHYS_PORT_NAME = 0x26
490 RTA_PREFSRC = 0x7 490 IFLA_PROTO_DOWN = 0x27
491 RTA_METRICS = 0x8 491 IFLA_GSO_MAX_SEGS = 0x28
492 RTA_MULTIPATH = 0x9 492 IFLA_GSO_MAX_SIZE = 0x29
493 RTA_FLOW = 0xb 493 IFLA_PAD = 0x2a
494 RTA_CACHEINFO = 0xc 494 IFLA_XDP = 0x2b
495 RTA_TABLE = 0xf 495 IFLA_EVENT = 0x2c
496 RTN_UNSPEC = 0x0 496 IFLA_NEW_NETNSID = 0x2d
497 RTN_UNICAST = 0x1 497 IFLA_IF_NETNSID = 0x2e
498 RTN_LOCAL = 0x2 498 IFLA_MAX = 0x31
499 RTN_BROADCAST = 0x3 499 RT_SCOPE_UNIVERSE = 0x0
500 RTN_ANYCAST = 0x4 500 RT_SCOPE_SITE = 0xc8
501 RTN_MULTICAST = 0x5 501 RT_SCOPE_LINK = 0xfd
502 RTN_BLACKHOLE = 0x6 502 RT_SCOPE_HOST = 0xfe
503 RTN_UNREACHABLE = 0x7 503 RT_SCOPE_NOWHERE = 0xff
504 RTN_PROHIBIT = 0x8 504 RT_TABLE_UNSPEC = 0x0
505 RTN_THROW = 0x9 505 RT_TABLE_COMPAT = 0xfc
506 RTN_NAT = 0xa 506 RT_TABLE_DEFAULT = 0xfd
507 RTN_XRESOLVE = 0xb 507 RT_TABLE_MAIN = 0xfe
508 RTNLGRP_NONE = 0x0 508 RT_TABLE_LOCAL = 0xff
509 RTNLGRP_LINK = 0x1 509 RT_TABLE_MAX = 0xffffffff
510 RTNLGRP_NOTIFY = 0x2 510 RTA_UNSPEC = 0x0
511 RTNLGRP_NEIGH = 0x3 511 RTA_DST = 0x1
512 RTNLGRP_TC = 0x4 512 RTA_SRC = 0x2
513 RTNLGRP_IPV4_IFADDR = 0x5 513 RTA_IIF = 0x3
514 RTNLGRP_IPV4_MROUTE = 0x6 514 RTA_OIF = 0x4
515 RTNLGRP_IPV4_ROUTE = 0x7 515 RTA_GATEWAY = 0x5
516 RTNLGRP_IPV4_RULE = 0x8 516 RTA_PRIORITY = 0x6
517 RTNLGRP_IPV6_IFADDR = 0x9 517 RTA_PREFSRC = 0x7
518 RTNLGRP_IPV6_MROUTE = 0xa 518 RTA_METRICS = 0x8
519 RTNLGRP_IPV6_ROUTE = 0xb 519 RTA_MULTIPATH = 0x9
520 RTNLGRP_IPV6_IFINFO = 0xc 520 RTA_FLOW = 0xb
521 RTNLGRP_IPV6_PREFIX = 0x12 521 RTA_CACHEINFO = 0xc
522 RTNLGRP_IPV6_RULE = 0x13 522 RTA_TABLE = 0xf
523 RTNLGRP_ND_USEROPT = 0x14 523 RTA_MARK = 0x10
524 SizeofNlMsghdr = 0x10 524 RTA_MFC_STATS = 0x11
525 SizeofNlMsgerr = 0x14 525 RTA_VIA = 0x12
526 SizeofRtGenmsg = 0x1 526 RTA_NEWDST = 0x13
527 SizeofNlAttr = 0x4 527 RTA_PREF = 0x14
528 SizeofRtAttr = 0x4 528 RTA_ENCAP_TYPE = 0x15
529 SizeofIfInfomsg = 0x10 529 RTA_ENCAP = 0x16
530 SizeofIfAddrmsg = 0x8 530 RTA_EXPIRES = 0x17
531 SizeofRtMsg = 0xc 531 RTA_PAD = 0x18
532 SizeofRtNexthop = 0x8 532 RTA_UID = 0x19
533 RTA_TTL_PROPAGATE = 0x1a
534 RTA_IP_PROTO = 0x1b
535 RTA_SPORT = 0x1c
536 RTA_DPORT = 0x1d
537 RTN_UNSPEC = 0x0
538 RTN_UNICAST = 0x1
539 RTN_LOCAL = 0x2
540 RTN_BROADCAST = 0x3
541 RTN_ANYCAST = 0x4
542 RTN_MULTICAST = 0x5
543 RTN_BLACKHOLE = 0x6
544 RTN_UNREACHABLE = 0x7
545 RTN_PROHIBIT = 0x8
546 RTN_THROW = 0x9
547 RTN_NAT = 0xa
548 RTN_XRESOLVE = 0xb
549 RTNLGRP_NONE = 0x0
550 RTNLGRP_LINK = 0x1
551 RTNLGRP_NOTIFY = 0x2
552 RTNLGRP_NEIGH = 0x3
553 RTNLGRP_TC = 0x4
554 RTNLGRP_IPV4_IFADDR = 0x5
555 RTNLGRP_IPV4_MROUTE = 0x6
556 RTNLGRP_IPV4_ROUTE = 0x7
557 RTNLGRP_IPV4_RULE = 0x8
558 RTNLGRP_IPV6_IFADDR = 0x9
559 RTNLGRP_IPV6_MROUTE = 0xa
560 RTNLGRP_IPV6_ROUTE = 0xb
561 RTNLGRP_IPV6_IFINFO = 0xc
562 RTNLGRP_IPV6_PREFIX = 0x12
563 RTNLGRP_IPV6_RULE = 0x13
564 RTNLGRP_ND_USEROPT = 0x14
565 SizeofNlMsghdr = 0x10
566 SizeofNlMsgerr = 0x14
567 SizeofRtGenmsg = 0x1
568 SizeofNlAttr = 0x4
569 SizeofRtAttr = 0x4
570 SizeofIfInfomsg = 0x10
571 SizeofIfAddrmsg = 0x8
572 SizeofRtMsg = 0xc
573 SizeofRtNexthop = 0x8
533) 574)
534 575
535type NlMsghdr struct { 576type NlMsghdr struct {
@@ -560,12 +601,12 @@ type RtAttr struct {
560} 601}
561 602
562type IfInfomsg struct { 603type IfInfomsg struct {
563 Family uint8 604 Family uint8
564 X__ifi_pad uint8 605 _ uint8
565 Type uint16 606 Type uint16
566 Index int32 607 Index int32
567 Flags uint32 608 Flags uint32
568 Change uint32 609 Change uint32
569} 610}
570 611
571type IfAddrmsg struct { 612type IfAddrmsg struct {
@@ -650,7 +691,7 @@ type Sysinfo_t struct {
650 Totalhigh uint32 691 Totalhigh uint32
651 Freehigh uint32 692 Freehigh uint32
652 Unit uint32 693 Unit uint32
653 X_f [8]int8 694 _ [8]int8
654} 695}
655 696
656type Utsname struct { 697type Utsname struct {
@@ -688,6 +729,8 @@ const (
688 729
689 AT_SYMLINK_FOLLOW = 0x400 730 AT_SYMLINK_FOLLOW = 0x400
690 AT_SYMLINK_NOFOLLOW = 0x100 731 AT_SYMLINK_NOFOLLOW = 0x100
732
733 AT_EACCESS = 0x200
691) 734)
692 735
693type PollFd struct { 736type PollFd struct {
@@ -707,7 +750,7 @@ const (
707) 750)
708 751
709type Sigset_t struct { 752type Sigset_t struct {
710 X__val [32]uint32 753 Val [32]uint32
711} 754}
712 755
713const RNDGETENTCNT = 0x40045200 756const RNDGETENTCNT = 0x40045200
@@ -863,3 +906,1057 @@ const (
863 BDADDR_LE_PUBLIC = 0x1 906 BDADDR_LE_PUBLIC = 0x1
864 BDADDR_LE_RANDOM = 0x2 907 BDADDR_LE_RANDOM = 0x2
865) 908)
909
910type PerfEventAttr struct {
911 Type uint32
912 Size uint32
913 Config uint64
914 Sample uint64
915 Sample_type uint64
916 Read_format uint64
917 Bits uint64
918 Wakeup uint32
919 Bp_type uint32
920 Ext1 uint64
921 Ext2 uint64
922 Branch_sample_type uint64
923 Sample_regs_user uint64
924 Sample_stack_user uint32
925 Clockid int32
926 Sample_regs_intr uint64
927 Aux_watermark uint32
928 _ uint32
929}
930
931type PerfEventMmapPage struct {
932 Version uint32
933 Compat_version uint32
934 Lock uint32
935 Index uint32
936 Offset int64
937 Time_enabled uint64
938 Time_running uint64
939 Capabilities uint64
940 Pmc_width uint16
941 Time_shift uint16
942 Time_mult uint32
943 Time_offset uint64
944 Time_zero uint64
945 Size uint32
946 _ [948]uint8
947 Data_head uint64
948 Data_tail uint64
949 Data_offset uint64
950 Data_size uint64
951 Aux_head uint64
952 Aux_tail uint64
953 Aux_offset uint64
954 Aux_size uint64
955}
956
957const (
958 PerfBitDisabled uint64 = CBitFieldMaskBit0
959 PerfBitInherit = CBitFieldMaskBit1
960 PerfBitPinned = CBitFieldMaskBit2
961 PerfBitExclusive = CBitFieldMaskBit3
962 PerfBitExcludeUser = CBitFieldMaskBit4
963 PerfBitExcludeKernel = CBitFieldMaskBit5
964 PerfBitExcludeHv = CBitFieldMaskBit6
965 PerfBitExcludeIdle = CBitFieldMaskBit7
966 PerfBitMmap = CBitFieldMaskBit8
967 PerfBitComm = CBitFieldMaskBit9
968 PerfBitFreq = CBitFieldMaskBit10
969 PerfBitInheritStat = CBitFieldMaskBit11
970 PerfBitEnableOnExec = CBitFieldMaskBit12
971 PerfBitTask = CBitFieldMaskBit13
972 PerfBitWatermark = CBitFieldMaskBit14
973 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
974 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
975 PerfBitMmapData = CBitFieldMaskBit17
976 PerfBitSampleIDAll = CBitFieldMaskBit18
977 PerfBitExcludeHost = CBitFieldMaskBit19
978 PerfBitExcludeGuest = CBitFieldMaskBit20
979 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
980 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
981 PerfBitMmap2 = CBitFieldMaskBit23
982 PerfBitCommExec = CBitFieldMaskBit24
983 PerfBitUseClockID = CBitFieldMaskBit25
984 PerfBitContextSwitch = CBitFieldMaskBit26
985)
986
987const (
988 PERF_TYPE_HARDWARE = 0x0
989 PERF_TYPE_SOFTWARE = 0x1
990 PERF_TYPE_TRACEPOINT = 0x2
991 PERF_TYPE_HW_CACHE = 0x3
992 PERF_TYPE_RAW = 0x4
993 PERF_TYPE_BREAKPOINT = 0x5
994
995 PERF_COUNT_HW_CPU_CYCLES = 0x0
996 PERF_COUNT_HW_INSTRUCTIONS = 0x1
997 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
998 PERF_COUNT_HW_CACHE_MISSES = 0x3
999 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1000 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1001 PERF_COUNT_HW_BUS_CYCLES = 0x6
1002 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1003 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1004 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1005
1006 PERF_COUNT_HW_CACHE_L1D = 0x0
1007 PERF_COUNT_HW_CACHE_L1I = 0x1
1008 PERF_COUNT_HW_CACHE_LL = 0x2
1009 PERF_COUNT_HW_CACHE_DTLB = 0x3
1010 PERF_COUNT_HW_CACHE_ITLB = 0x4
1011 PERF_COUNT_HW_CACHE_BPU = 0x5
1012 PERF_COUNT_HW_CACHE_NODE = 0x6
1013
1014 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1015 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1016 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1017
1018 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1019 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1020
1021 PERF_COUNT_SW_CPU_CLOCK = 0x0
1022 PERF_COUNT_SW_TASK_CLOCK = 0x1
1023 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1024 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1025 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1026 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1027 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1028 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1029 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1030 PERF_COUNT_SW_DUMMY = 0x9
1031
1032 PERF_SAMPLE_IP = 0x1
1033 PERF_SAMPLE_TID = 0x2
1034 PERF_SAMPLE_TIME = 0x4
1035 PERF_SAMPLE_ADDR = 0x8
1036 PERF_SAMPLE_READ = 0x10
1037 PERF_SAMPLE_CALLCHAIN = 0x20
1038 PERF_SAMPLE_ID = 0x40
1039 PERF_SAMPLE_CPU = 0x80
1040 PERF_SAMPLE_PERIOD = 0x100
1041 PERF_SAMPLE_STREAM_ID = 0x200
1042 PERF_SAMPLE_RAW = 0x400
1043 PERF_SAMPLE_BRANCH_STACK = 0x800
1044
1045 PERF_SAMPLE_BRANCH_USER = 0x1
1046 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1047 PERF_SAMPLE_BRANCH_HV = 0x4
1048 PERF_SAMPLE_BRANCH_ANY = 0x8
1049 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1050 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1051 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1052
1053 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1054 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1055 PERF_FORMAT_ID = 0x4
1056 PERF_FORMAT_GROUP = 0x8
1057
1058 PERF_RECORD_MMAP = 0x1
1059 PERF_RECORD_LOST = 0x2
1060 PERF_RECORD_COMM = 0x3
1061 PERF_RECORD_EXIT = 0x4
1062 PERF_RECORD_THROTTLE = 0x5
1063 PERF_RECORD_UNTHROTTLE = 0x6
1064 PERF_RECORD_FORK = 0x7
1065 PERF_RECORD_READ = 0x8
1066 PERF_RECORD_SAMPLE = 0x9
1067
1068 PERF_CONTEXT_HV = -0x20
1069 PERF_CONTEXT_KERNEL = -0x80
1070 PERF_CONTEXT_USER = -0x200
1071
1072 PERF_CONTEXT_GUEST = -0x800
1073 PERF_CONTEXT_GUEST_KERNEL = -0x880
1074 PERF_CONTEXT_GUEST_USER = -0xa00
1075
1076 PERF_FLAG_FD_NO_GROUP = 0x1
1077 PERF_FLAG_FD_OUTPUT = 0x2
1078 PERF_FLAG_PID_CGROUP = 0x4
1079)
1080
1081const (
1082 CBitFieldMaskBit0 = 0x1
1083 CBitFieldMaskBit1 = 0x2
1084 CBitFieldMaskBit2 = 0x4
1085 CBitFieldMaskBit3 = 0x8
1086 CBitFieldMaskBit4 = 0x10
1087 CBitFieldMaskBit5 = 0x20
1088 CBitFieldMaskBit6 = 0x40
1089 CBitFieldMaskBit7 = 0x80
1090 CBitFieldMaskBit8 = 0x100
1091 CBitFieldMaskBit9 = 0x200
1092 CBitFieldMaskBit10 = 0x400
1093 CBitFieldMaskBit11 = 0x800
1094 CBitFieldMaskBit12 = 0x1000
1095 CBitFieldMaskBit13 = 0x2000
1096 CBitFieldMaskBit14 = 0x4000
1097 CBitFieldMaskBit15 = 0x8000
1098 CBitFieldMaskBit16 = 0x10000
1099 CBitFieldMaskBit17 = 0x20000
1100 CBitFieldMaskBit18 = 0x40000
1101 CBitFieldMaskBit19 = 0x80000
1102 CBitFieldMaskBit20 = 0x100000
1103 CBitFieldMaskBit21 = 0x200000
1104 CBitFieldMaskBit22 = 0x400000
1105 CBitFieldMaskBit23 = 0x800000
1106 CBitFieldMaskBit24 = 0x1000000
1107 CBitFieldMaskBit25 = 0x2000000
1108 CBitFieldMaskBit26 = 0x4000000
1109 CBitFieldMaskBit27 = 0x8000000
1110 CBitFieldMaskBit28 = 0x10000000
1111 CBitFieldMaskBit29 = 0x20000000
1112 CBitFieldMaskBit30 = 0x40000000
1113 CBitFieldMaskBit31 = 0x80000000
1114 CBitFieldMaskBit32 = 0x100000000
1115 CBitFieldMaskBit33 = 0x200000000
1116 CBitFieldMaskBit34 = 0x400000000
1117 CBitFieldMaskBit35 = 0x800000000
1118 CBitFieldMaskBit36 = 0x1000000000
1119 CBitFieldMaskBit37 = 0x2000000000
1120 CBitFieldMaskBit38 = 0x4000000000
1121 CBitFieldMaskBit39 = 0x8000000000
1122 CBitFieldMaskBit40 = 0x10000000000
1123 CBitFieldMaskBit41 = 0x20000000000
1124 CBitFieldMaskBit42 = 0x40000000000
1125 CBitFieldMaskBit43 = 0x80000000000
1126 CBitFieldMaskBit44 = 0x100000000000
1127 CBitFieldMaskBit45 = 0x200000000000
1128 CBitFieldMaskBit46 = 0x400000000000
1129 CBitFieldMaskBit47 = 0x800000000000
1130 CBitFieldMaskBit48 = 0x1000000000000
1131 CBitFieldMaskBit49 = 0x2000000000000
1132 CBitFieldMaskBit50 = 0x4000000000000
1133 CBitFieldMaskBit51 = 0x8000000000000
1134 CBitFieldMaskBit52 = 0x10000000000000
1135 CBitFieldMaskBit53 = 0x20000000000000
1136 CBitFieldMaskBit54 = 0x40000000000000
1137 CBitFieldMaskBit55 = 0x80000000000000
1138 CBitFieldMaskBit56 = 0x100000000000000
1139 CBitFieldMaskBit57 = 0x200000000000000
1140 CBitFieldMaskBit58 = 0x400000000000000
1141 CBitFieldMaskBit59 = 0x800000000000000
1142 CBitFieldMaskBit60 = 0x1000000000000000
1143 CBitFieldMaskBit61 = 0x2000000000000000
1144 CBitFieldMaskBit62 = 0x4000000000000000
1145 CBitFieldMaskBit63 = 0x8000000000000000
1146)
1147
1148type SockaddrStorage struct {
1149 Family uint16
1150 _ [122]int8
1151 _ uint32
1152}
1153
1154type TCPMD5Sig struct {
1155 Addr SockaddrStorage
1156 Flags uint8
1157 Prefixlen uint8
1158 Keylen uint16
1159 _ uint32
1160 Key [80]uint8
1161}
1162
1163type HDDriveCmdHdr struct {
1164 Command uint8
1165 Number uint8
1166 Feature uint8
1167 Count uint8
1168}
1169
1170type HDGeometry struct {
1171 Heads uint8
1172 Sectors uint8
1173 Cylinders uint16
1174 Start uint32
1175}
1176
1177type HDDriveID struct {
1178 Config uint16
1179 Cyls uint16
1180 Reserved2 uint16
1181 Heads uint16
1182 Track_bytes uint16
1183 Sector_bytes uint16
1184 Sectors uint16
1185 Vendor0 uint16
1186 Vendor1 uint16
1187 Vendor2 uint16
1188 Serial_no [20]uint8
1189 Buf_type uint16
1190 Buf_size uint16
1191 Ecc_bytes uint16
1192 Fw_rev [8]uint8
1193 Model [40]uint8
1194 Max_multsect uint8
1195 Vendor3 uint8
1196 Dword_io uint16
1197 Vendor4 uint8
1198 Capability uint8
1199 Reserved50 uint16
1200 Vendor5 uint8
1201 TPIO uint8
1202 Vendor6 uint8
1203 TDMA uint8
1204 Field_valid uint16
1205 Cur_cyls uint16
1206 Cur_heads uint16
1207 Cur_sectors uint16
1208 Cur_capacity0 uint16
1209 Cur_capacity1 uint16
1210 Multsect uint8
1211 Multsect_valid uint8
1212 Lba_capacity uint32
1213 Dma_1word uint16
1214 Dma_mword uint16
1215 Eide_pio_modes uint16
1216 Eide_dma_min uint16
1217 Eide_dma_time uint16
1218 Eide_pio uint16
1219 Eide_pio_iordy uint16
1220 Words69_70 [2]uint16
1221 Words71_74 [4]uint16
1222 Queue_depth uint16
1223 Words76_79 [4]uint16
1224 Major_rev_num uint16
1225 Minor_rev_num uint16
1226 Command_set_1 uint16
1227 Command_set_2 uint16
1228 Cfsse uint16
1229 Cfs_enable_1 uint16
1230 Cfs_enable_2 uint16
1231 Csf_default uint16
1232 Dma_ultra uint16
1233 Trseuc uint16
1234 TrsEuc uint16
1235 CurAPMvalues uint16
1236 Mprc uint16
1237 Hw_config uint16
1238 Acoustic uint16
1239 Msrqs uint16
1240 Sxfert uint16
1241 Sal uint16
1242 Spg uint32
1243 Lba_capacity_2 uint64
1244 Words104_125 [22]uint16
1245 Last_lun uint16
1246 Word127 uint16
1247 Dlf uint16
1248 Csfo uint16
1249 Words130_155 [26]uint16
1250 Word156 uint16
1251 Words157_159 [3]uint16
1252 Cfa_power uint16
1253 Words161_175 [15]uint16
1254 Words176_205 [30]uint16
1255 Words206_254 [49]uint16
1256 Integrity_word uint16
1257}
1258
1259type Statfs_t struct {
1260 Type int32
1261 Bsize int32
1262 Frsize int32
1263 _ [4]byte
1264 Blocks uint64
1265 Bfree uint64
1266 Files uint64
1267 Ffree uint64
1268 Bavail uint64
1269 Fsid Fsid
1270 Namelen int32
1271 Flags int32
1272 Spare [5]int32
1273 _ [4]byte
1274}
1275
1276const (
1277 ST_MANDLOCK = 0x40
1278 ST_NOATIME = 0x400
1279 ST_NODEV = 0x4
1280 ST_NODIRATIME = 0x800
1281 ST_NOEXEC = 0x8
1282 ST_NOSUID = 0x2
1283 ST_RDONLY = 0x1
1284 ST_RELATIME = 0x1000
1285 ST_SYNCHRONOUS = 0x10
1286)
1287
1288type TpacketHdr struct {
1289 Status uint32
1290 Len uint32
1291 Snaplen uint32
1292 Mac uint16
1293 Net uint16
1294 Sec uint32
1295 Usec uint32
1296}
1297
1298type Tpacket2Hdr struct {
1299 Status uint32
1300 Len uint32
1301 Snaplen uint32
1302 Mac uint16
1303 Net uint16
1304 Sec uint32
1305 Nsec uint32
1306 Vlan_tci uint16
1307 Vlan_tpid uint16
1308 _ [4]uint8
1309}
1310
1311type Tpacket3Hdr struct {
1312 Next_offset uint32
1313 Sec uint32
1314 Nsec uint32
1315 Snaplen uint32
1316 Len uint32
1317 Status uint32
1318 Mac uint16
1319 Net uint16
1320 Hv1 TpacketHdrVariant1
1321 _ [8]uint8
1322}
1323
1324type TpacketHdrVariant1 struct {
1325 Rxhash uint32
1326 Vlan_tci uint32
1327 Vlan_tpid uint16
1328 _ uint16
1329}
1330
1331type TpacketBlockDesc struct {
1332 Version uint32
1333 To_priv uint32
1334 Hdr [40]byte
1335}
1336
1337type TpacketReq struct {
1338 Block_size uint32
1339 Block_nr uint32
1340 Frame_size uint32
1341 Frame_nr uint32
1342}
1343
1344type TpacketReq3 struct {
1345 Block_size uint32
1346 Block_nr uint32
1347 Frame_size uint32
1348 Frame_nr uint32
1349 Retire_blk_tov uint32
1350 Sizeof_priv uint32
1351 Feature_req_word uint32
1352}
1353
1354type TpacketStats struct {
1355 Packets uint32
1356 Drops uint32
1357}
1358
1359type TpacketStatsV3 struct {
1360 Packets uint32
1361 Drops uint32
1362 Freeze_q_cnt uint32
1363}
1364
1365type TpacketAuxdata struct {
1366 Status uint32
1367 Len uint32
1368 Snaplen uint32
1369 Mac uint16
1370 Net uint16
1371 Vlan_tci uint16
1372 Vlan_tpid uint16
1373}
1374
1375const (
1376 TPACKET_V1 = 0x0
1377 TPACKET_V2 = 0x1
1378 TPACKET_V3 = 0x2
1379)
1380
1381const (
1382 SizeofTpacketHdr = 0x18
1383 SizeofTpacket2Hdr = 0x20
1384 SizeofTpacket3Hdr = 0x30
1385)
1386
1387const (
1388 NF_INET_PRE_ROUTING = 0x0
1389 NF_INET_LOCAL_IN = 0x1
1390 NF_INET_FORWARD = 0x2
1391 NF_INET_LOCAL_OUT = 0x3
1392 NF_INET_POST_ROUTING = 0x4
1393 NF_INET_NUMHOOKS = 0x5
1394)
1395
1396const (
1397 NF_NETDEV_INGRESS = 0x0
1398 NF_NETDEV_NUMHOOKS = 0x1
1399)
1400
1401const (
1402 NFPROTO_UNSPEC = 0x0
1403 NFPROTO_INET = 0x1
1404 NFPROTO_IPV4 = 0x2
1405 NFPROTO_ARP = 0x3
1406 NFPROTO_NETDEV = 0x5
1407 NFPROTO_BRIDGE = 0x7
1408 NFPROTO_IPV6 = 0xa
1409 NFPROTO_DECNET = 0xc
1410 NFPROTO_NUMPROTO = 0xd
1411)
1412
1413type Nfgenmsg struct {
1414 Nfgen_family uint8
1415 Version uint8
1416 Res_id uint16
1417}
1418
1419const (
1420 NFNL_BATCH_UNSPEC = 0x0
1421 NFNL_BATCH_GENID = 0x1
1422)
1423
1424const (
1425 NFT_REG_VERDICT = 0x0
1426 NFT_REG_1 = 0x1
1427 NFT_REG_2 = 0x2
1428 NFT_REG_3 = 0x3
1429 NFT_REG_4 = 0x4
1430 NFT_REG32_00 = 0x8
1431 NFT_REG32_01 = 0x9
1432 NFT_REG32_02 = 0xa
1433 NFT_REG32_03 = 0xb
1434 NFT_REG32_04 = 0xc
1435 NFT_REG32_05 = 0xd
1436 NFT_REG32_06 = 0xe
1437 NFT_REG32_07 = 0xf
1438 NFT_REG32_08 = 0x10
1439 NFT_REG32_09 = 0x11
1440 NFT_REG32_10 = 0x12
1441 NFT_REG32_11 = 0x13
1442 NFT_REG32_12 = 0x14
1443 NFT_REG32_13 = 0x15
1444 NFT_REG32_14 = 0x16
1445 NFT_REG32_15 = 0x17
1446 NFT_CONTINUE = -0x1
1447 NFT_BREAK = -0x2
1448 NFT_JUMP = -0x3
1449 NFT_GOTO = -0x4
1450 NFT_RETURN = -0x5
1451 NFT_MSG_NEWTABLE = 0x0
1452 NFT_MSG_GETTABLE = 0x1
1453 NFT_MSG_DELTABLE = 0x2
1454 NFT_MSG_NEWCHAIN = 0x3
1455 NFT_MSG_GETCHAIN = 0x4
1456 NFT_MSG_DELCHAIN = 0x5
1457 NFT_MSG_NEWRULE = 0x6
1458 NFT_MSG_GETRULE = 0x7
1459 NFT_MSG_DELRULE = 0x8
1460 NFT_MSG_NEWSET = 0x9
1461 NFT_MSG_GETSET = 0xa
1462 NFT_MSG_DELSET = 0xb
1463 NFT_MSG_NEWSETELEM = 0xc
1464 NFT_MSG_GETSETELEM = 0xd
1465 NFT_MSG_DELSETELEM = 0xe
1466 NFT_MSG_NEWGEN = 0xf
1467 NFT_MSG_GETGEN = 0x10
1468 NFT_MSG_TRACE = 0x11
1469 NFT_MSG_NEWOBJ = 0x12
1470 NFT_MSG_GETOBJ = 0x13
1471 NFT_MSG_DELOBJ = 0x14
1472 NFT_MSG_GETOBJ_RESET = 0x15
1473 NFT_MSG_MAX = 0x19
1474 NFTA_LIST_UNPEC = 0x0
1475 NFTA_LIST_ELEM = 0x1
1476 NFTA_HOOK_UNSPEC = 0x0
1477 NFTA_HOOK_HOOKNUM = 0x1
1478 NFTA_HOOK_PRIORITY = 0x2
1479 NFTA_HOOK_DEV = 0x3
1480 NFT_TABLE_F_DORMANT = 0x1
1481 NFTA_TABLE_UNSPEC = 0x0
1482 NFTA_TABLE_NAME = 0x1
1483 NFTA_TABLE_FLAGS = 0x2
1484 NFTA_TABLE_USE = 0x3
1485 NFTA_CHAIN_UNSPEC = 0x0
1486 NFTA_CHAIN_TABLE = 0x1
1487 NFTA_CHAIN_HANDLE = 0x2
1488 NFTA_CHAIN_NAME = 0x3
1489 NFTA_CHAIN_HOOK = 0x4
1490 NFTA_CHAIN_POLICY = 0x5
1491 NFTA_CHAIN_USE = 0x6
1492 NFTA_CHAIN_TYPE = 0x7
1493 NFTA_CHAIN_COUNTERS = 0x8
1494 NFTA_CHAIN_PAD = 0x9
1495 NFTA_RULE_UNSPEC = 0x0
1496 NFTA_RULE_TABLE = 0x1
1497 NFTA_RULE_CHAIN = 0x2
1498 NFTA_RULE_HANDLE = 0x3
1499 NFTA_RULE_EXPRESSIONS = 0x4
1500 NFTA_RULE_COMPAT = 0x5
1501 NFTA_RULE_POSITION = 0x6
1502 NFTA_RULE_USERDATA = 0x7
1503 NFTA_RULE_PAD = 0x8
1504 NFTA_RULE_ID = 0x9
1505 NFT_RULE_COMPAT_F_INV = 0x2
1506 NFT_RULE_COMPAT_F_MASK = 0x2
1507 NFTA_RULE_COMPAT_UNSPEC = 0x0
1508 NFTA_RULE_COMPAT_PROTO = 0x1
1509 NFTA_RULE_COMPAT_FLAGS = 0x2
1510 NFT_SET_ANONYMOUS = 0x1
1511 NFT_SET_CONSTANT = 0x2
1512 NFT_SET_INTERVAL = 0x4
1513 NFT_SET_MAP = 0x8
1514 NFT_SET_TIMEOUT = 0x10
1515 NFT_SET_EVAL = 0x20
1516 NFT_SET_OBJECT = 0x40
1517 NFT_SET_POL_PERFORMANCE = 0x0
1518 NFT_SET_POL_MEMORY = 0x1
1519 NFTA_SET_DESC_UNSPEC = 0x0
1520 NFTA_SET_DESC_SIZE = 0x1
1521 NFTA_SET_UNSPEC = 0x0
1522 NFTA_SET_TABLE = 0x1
1523 NFTA_SET_NAME = 0x2
1524 NFTA_SET_FLAGS = 0x3
1525 NFTA_SET_KEY_TYPE = 0x4
1526 NFTA_SET_KEY_LEN = 0x5
1527 NFTA_SET_DATA_TYPE = 0x6
1528 NFTA_SET_DATA_LEN = 0x7
1529 NFTA_SET_POLICY = 0x8
1530 NFTA_SET_DESC = 0x9
1531 NFTA_SET_ID = 0xa
1532 NFTA_SET_TIMEOUT = 0xb
1533 NFTA_SET_GC_INTERVAL = 0xc
1534 NFTA_SET_USERDATA = 0xd
1535 NFTA_SET_PAD = 0xe
1536 NFTA_SET_OBJ_TYPE = 0xf
1537 NFT_SET_ELEM_INTERVAL_END = 0x1
1538 NFTA_SET_ELEM_UNSPEC = 0x0
1539 NFTA_SET_ELEM_KEY = 0x1
1540 NFTA_SET_ELEM_DATA = 0x2
1541 NFTA_SET_ELEM_FLAGS = 0x3
1542 NFTA_SET_ELEM_TIMEOUT = 0x4
1543 NFTA_SET_ELEM_EXPIRATION = 0x5
1544 NFTA_SET_ELEM_USERDATA = 0x6
1545 NFTA_SET_ELEM_EXPR = 0x7
1546 NFTA_SET_ELEM_PAD = 0x8
1547 NFTA_SET_ELEM_OBJREF = 0x9
1548 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1549 NFTA_SET_ELEM_LIST_TABLE = 0x1
1550 NFTA_SET_ELEM_LIST_SET = 0x2
1551 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1552 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1553 NFT_DATA_VALUE = 0x0
1554 NFT_DATA_VERDICT = 0xffffff00
1555 NFTA_DATA_UNSPEC = 0x0
1556 NFTA_DATA_VALUE = 0x1
1557 NFTA_DATA_VERDICT = 0x2
1558 NFTA_VERDICT_UNSPEC = 0x0
1559 NFTA_VERDICT_CODE = 0x1
1560 NFTA_VERDICT_CHAIN = 0x2
1561 NFTA_EXPR_UNSPEC = 0x0
1562 NFTA_EXPR_NAME = 0x1
1563 NFTA_EXPR_DATA = 0x2
1564 NFTA_IMMEDIATE_UNSPEC = 0x0
1565 NFTA_IMMEDIATE_DREG = 0x1
1566 NFTA_IMMEDIATE_DATA = 0x2
1567 NFTA_BITWISE_UNSPEC = 0x0
1568 NFTA_BITWISE_SREG = 0x1
1569 NFTA_BITWISE_DREG = 0x2
1570 NFTA_BITWISE_LEN = 0x3
1571 NFTA_BITWISE_MASK = 0x4
1572 NFTA_BITWISE_XOR = 0x5
1573 NFT_BYTEORDER_NTOH = 0x0
1574 NFT_BYTEORDER_HTON = 0x1
1575 NFTA_BYTEORDER_UNSPEC = 0x0
1576 NFTA_BYTEORDER_SREG = 0x1
1577 NFTA_BYTEORDER_DREG = 0x2
1578 NFTA_BYTEORDER_OP = 0x3
1579 NFTA_BYTEORDER_LEN = 0x4
1580 NFTA_BYTEORDER_SIZE = 0x5
1581 NFT_CMP_EQ = 0x0
1582 NFT_CMP_NEQ = 0x1
1583 NFT_CMP_LT = 0x2
1584 NFT_CMP_LTE = 0x3
1585 NFT_CMP_GT = 0x4
1586 NFT_CMP_GTE = 0x5
1587 NFTA_CMP_UNSPEC = 0x0
1588 NFTA_CMP_SREG = 0x1
1589 NFTA_CMP_OP = 0x2
1590 NFTA_CMP_DATA = 0x3
1591 NFT_RANGE_EQ = 0x0
1592 NFT_RANGE_NEQ = 0x1
1593 NFTA_RANGE_UNSPEC = 0x0
1594 NFTA_RANGE_SREG = 0x1
1595 NFTA_RANGE_OP = 0x2
1596 NFTA_RANGE_FROM_DATA = 0x3
1597 NFTA_RANGE_TO_DATA = 0x4
1598 NFT_LOOKUP_F_INV = 0x1
1599 NFTA_LOOKUP_UNSPEC = 0x0
1600 NFTA_LOOKUP_SET = 0x1
1601 NFTA_LOOKUP_SREG = 0x2
1602 NFTA_LOOKUP_DREG = 0x3
1603 NFTA_LOOKUP_SET_ID = 0x4
1604 NFTA_LOOKUP_FLAGS = 0x5
1605 NFT_DYNSET_OP_ADD = 0x0
1606 NFT_DYNSET_OP_UPDATE = 0x1
1607 NFT_DYNSET_F_INV = 0x1
1608 NFTA_DYNSET_UNSPEC = 0x0
1609 NFTA_DYNSET_SET_NAME = 0x1
1610 NFTA_DYNSET_SET_ID = 0x2
1611 NFTA_DYNSET_OP = 0x3
1612 NFTA_DYNSET_SREG_KEY = 0x4
1613 NFTA_DYNSET_SREG_DATA = 0x5
1614 NFTA_DYNSET_TIMEOUT = 0x6
1615 NFTA_DYNSET_EXPR = 0x7
1616 NFTA_DYNSET_PAD = 0x8
1617 NFTA_DYNSET_FLAGS = 0x9
1618 NFT_PAYLOAD_LL_HEADER = 0x0
1619 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1620 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1621 NFT_PAYLOAD_CSUM_NONE = 0x0
1622 NFT_PAYLOAD_CSUM_INET = 0x1
1623 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1624 NFTA_PAYLOAD_UNSPEC = 0x0
1625 NFTA_PAYLOAD_DREG = 0x1
1626 NFTA_PAYLOAD_BASE = 0x2
1627 NFTA_PAYLOAD_OFFSET = 0x3
1628 NFTA_PAYLOAD_LEN = 0x4
1629 NFTA_PAYLOAD_SREG = 0x5
1630 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1631 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1632 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1633 NFT_EXTHDR_F_PRESENT = 0x1
1634 NFT_EXTHDR_OP_IPV6 = 0x0
1635 NFT_EXTHDR_OP_TCPOPT = 0x1
1636 NFTA_EXTHDR_UNSPEC = 0x0
1637 NFTA_EXTHDR_DREG = 0x1
1638 NFTA_EXTHDR_TYPE = 0x2
1639 NFTA_EXTHDR_OFFSET = 0x3
1640 NFTA_EXTHDR_LEN = 0x4
1641 NFTA_EXTHDR_FLAGS = 0x5
1642 NFTA_EXTHDR_OP = 0x6
1643 NFTA_EXTHDR_SREG = 0x7
1644 NFT_META_LEN = 0x0
1645 NFT_META_PROTOCOL = 0x1
1646 NFT_META_PRIORITY = 0x2
1647 NFT_META_MARK = 0x3
1648 NFT_META_IIF = 0x4
1649 NFT_META_OIF = 0x5
1650 NFT_META_IIFNAME = 0x6
1651 NFT_META_OIFNAME = 0x7
1652 NFT_META_IIFTYPE = 0x8
1653 NFT_META_OIFTYPE = 0x9
1654 NFT_META_SKUID = 0xa
1655 NFT_META_SKGID = 0xb
1656 NFT_META_NFTRACE = 0xc
1657 NFT_META_RTCLASSID = 0xd
1658 NFT_META_SECMARK = 0xe
1659 NFT_META_NFPROTO = 0xf
1660 NFT_META_L4PROTO = 0x10
1661 NFT_META_BRI_IIFNAME = 0x11
1662 NFT_META_BRI_OIFNAME = 0x12
1663 NFT_META_PKTTYPE = 0x13
1664 NFT_META_CPU = 0x14
1665 NFT_META_IIFGROUP = 0x15
1666 NFT_META_OIFGROUP = 0x16
1667 NFT_META_CGROUP = 0x17
1668 NFT_META_PRANDOM = 0x18
1669 NFT_RT_CLASSID = 0x0
1670 NFT_RT_NEXTHOP4 = 0x1
1671 NFT_RT_NEXTHOP6 = 0x2
1672 NFT_RT_TCPMSS = 0x3
1673 NFT_HASH_JENKINS = 0x0
1674 NFT_HASH_SYM = 0x1
1675 NFTA_HASH_UNSPEC = 0x0
1676 NFTA_HASH_SREG = 0x1
1677 NFTA_HASH_DREG = 0x2
1678 NFTA_HASH_LEN = 0x3
1679 NFTA_HASH_MODULUS = 0x4
1680 NFTA_HASH_SEED = 0x5
1681 NFTA_HASH_OFFSET = 0x6
1682 NFTA_HASH_TYPE = 0x7
1683 NFTA_META_UNSPEC = 0x0
1684 NFTA_META_DREG = 0x1
1685 NFTA_META_KEY = 0x2
1686 NFTA_META_SREG = 0x3
1687 NFTA_RT_UNSPEC = 0x0
1688 NFTA_RT_DREG = 0x1
1689 NFTA_RT_KEY = 0x2
1690 NFT_CT_STATE = 0x0
1691 NFT_CT_DIRECTION = 0x1
1692 NFT_CT_STATUS = 0x2
1693 NFT_CT_MARK = 0x3
1694 NFT_CT_SECMARK = 0x4
1695 NFT_CT_EXPIRATION = 0x5
1696 NFT_CT_HELPER = 0x6
1697 NFT_CT_L3PROTOCOL = 0x7
1698 NFT_CT_SRC = 0x8
1699 NFT_CT_DST = 0x9
1700 NFT_CT_PROTOCOL = 0xa
1701 NFT_CT_PROTO_SRC = 0xb
1702 NFT_CT_PROTO_DST = 0xc
1703 NFT_CT_LABELS = 0xd
1704 NFT_CT_PKTS = 0xe
1705 NFT_CT_BYTES = 0xf
1706 NFT_CT_AVGPKT = 0x10
1707 NFT_CT_ZONE = 0x11
1708 NFT_CT_EVENTMASK = 0x12
1709 NFTA_CT_UNSPEC = 0x0
1710 NFTA_CT_DREG = 0x1
1711 NFTA_CT_KEY = 0x2
1712 NFTA_CT_DIRECTION = 0x3
1713 NFTA_CT_SREG = 0x4
1714 NFT_LIMIT_PKTS = 0x0
1715 NFT_LIMIT_PKT_BYTES = 0x1
1716 NFT_LIMIT_F_INV = 0x1
1717 NFTA_LIMIT_UNSPEC = 0x0
1718 NFTA_LIMIT_RATE = 0x1
1719 NFTA_LIMIT_UNIT = 0x2
1720 NFTA_LIMIT_BURST = 0x3
1721 NFTA_LIMIT_TYPE = 0x4
1722 NFTA_LIMIT_FLAGS = 0x5
1723 NFTA_LIMIT_PAD = 0x6
1724 NFTA_COUNTER_UNSPEC = 0x0
1725 NFTA_COUNTER_BYTES = 0x1
1726 NFTA_COUNTER_PACKETS = 0x2
1727 NFTA_COUNTER_PAD = 0x3
1728 NFTA_LOG_UNSPEC = 0x0
1729 NFTA_LOG_GROUP = 0x1
1730 NFTA_LOG_PREFIX = 0x2
1731 NFTA_LOG_SNAPLEN = 0x3
1732 NFTA_LOG_QTHRESHOLD = 0x4
1733 NFTA_LOG_LEVEL = 0x5
1734 NFTA_LOG_FLAGS = 0x6
1735 NFTA_QUEUE_UNSPEC = 0x0
1736 NFTA_QUEUE_NUM = 0x1
1737 NFTA_QUEUE_TOTAL = 0x2
1738 NFTA_QUEUE_FLAGS = 0x3
1739 NFTA_QUEUE_SREG_QNUM = 0x4
1740 NFT_QUOTA_F_INV = 0x1
1741 NFT_QUOTA_F_DEPLETED = 0x2
1742 NFTA_QUOTA_UNSPEC = 0x0
1743 NFTA_QUOTA_BYTES = 0x1
1744 NFTA_QUOTA_FLAGS = 0x2
1745 NFTA_QUOTA_PAD = 0x3
1746 NFTA_QUOTA_CONSUMED = 0x4
1747 NFT_REJECT_ICMP_UNREACH = 0x0
1748 NFT_REJECT_TCP_RST = 0x1
1749 NFT_REJECT_ICMPX_UNREACH = 0x2
1750 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1751 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1752 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1753 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1754 NFTA_REJECT_UNSPEC = 0x0
1755 NFTA_REJECT_TYPE = 0x1
1756 NFTA_REJECT_ICMP_CODE = 0x2
1757 NFT_NAT_SNAT = 0x0
1758 NFT_NAT_DNAT = 0x1
1759 NFTA_NAT_UNSPEC = 0x0
1760 NFTA_NAT_TYPE = 0x1
1761 NFTA_NAT_FAMILY = 0x2
1762 NFTA_NAT_REG_ADDR_MIN = 0x3
1763 NFTA_NAT_REG_ADDR_MAX = 0x4
1764 NFTA_NAT_REG_PROTO_MIN = 0x5
1765 NFTA_NAT_REG_PROTO_MAX = 0x6
1766 NFTA_NAT_FLAGS = 0x7
1767 NFTA_MASQ_UNSPEC = 0x0
1768 NFTA_MASQ_FLAGS = 0x1
1769 NFTA_MASQ_REG_PROTO_MIN = 0x2
1770 NFTA_MASQ_REG_PROTO_MAX = 0x3
1771 NFTA_REDIR_UNSPEC = 0x0
1772 NFTA_REDIR_REG_PROTO_MIN = 0x1
1773 NFTA_REDIR_REG_PROTO_MAX = 0x2
1774 NFTA_REDIR_FLAGS = 0x3
1775 NFTA_DUP_UNSPEC = 0x0
1776 NFTA_DUP_SREG_ADDR = 0x1
1777 NFTA_DUP_SREG_DEV = 0x2
1778 NFTA_FWD_UNSPEC = 0x0
1779 NFTA_FWD_SREG_DEV = 0x1
1780 NFTA_OBJREF_UNSPEC = 0x0
1781 NFTA_OBJREF_IMM_TYPE = 0x1
1782 NFTA_OBJREF_IMM_NAME = 0x2
1783 NFTA_OBJREF_SET_SREG = 0x3
1784 NFTA_OBJREF_SET_NAME = 0x4
1785 NFTA_OBJREF_SET_ID = 0x5
1786 NFTA_GEN_UNSPEC = 0x0
1787 NFTA_GEN_ID = 0x1
1788 NFTA_GEN_PROC_PID = 0x2
1789 NFTA_GEN_PROC_NAME = 0x3
1790 NFTA_FIB_UNSPEC = 0x0
1791 NFTA_FIB_DREG = 0x1
1792 NFTA_FIB_RESULT = 0x2
1793 NFTA_FIB_FLAGS = 0x3
1794 NFT_FIB_RESULT_UNSPEC = 0x0
1795 NFT_FIB_RESULT_OIF = 0x1
1796 NFT_FIB_RESULT_OIFNAME = 0x2
1797 NFT_FIB_RESULT_ADDRTYPE = 0x3
1798 NFTA_FIB_F_SADDR = 0x1
1799 NFTA_FIB_F_DADDR = 0x2
1800 NFTA_FIB_F_MARK = 0x4
1801 NFTA_FIB_F_IIF = 0x8
1802 NFTA_FIB_F_OIF = 0x10
1803 NFTA_FIB_F_PRESENT = 0x20
1804 NFTA_CT_HELPER_UNSPEC = 0x0
1805 NFTA_CT_HELPER_NAME = 0x1
1806 NFTA_CT_HELPER_L3PROTO = 0x2
1807 NFTA_CT_HELPER_L4PROTO = 0x3
1808 NFTA_OBJ_UNSPEC = 0x0
1809 NFTA_OBJ_TABLE = 0x1
1810 NFTA_OBJ_NAME = 0x2
1811 NFTA_OBJ_TYPE = 0x3
1812 NFTA_OBJ_DATA = 0x4
1813 NFTA_OBJ_USE = 0x5
1814 NFTA_TRACE_UNSPEC = 0x0
1815 NFTA_TRACE_TABLE = 0x1
1816 NFTA_TRACE_CHAIN = 0x2
1817 NFTA_TRACE_RULE_HANDLE = 0x3
1818 NFTA_TRACE_TYPE = 0x4
1819 NFTA_TRACE_VERDICT = 0x5
1820 NFTA_TRACE_ID = 0x6
1821 NFTA_TRACE_LL_HEADER = 0x7
1822 NFTA_TRACE_NETWORK_HEADER = 0x8
1823 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1824 NFTA_TRACE_IIF = 0xa
1825 NFTA_TRACE_IIFTYPE = 0xb
1826 NFTA_TRACE_OIF = 0xc
1827 NFTA_TRACE_OIFTYPE = 0xd
1828 NFTA_TRACE_MARK = 0xe
1829 NFTA_TRACE_NFPROTO = 0xf
1830 NFTA_TRACE_POLICY = 0x10
1831 NFTA_TRACE_PAD = 0x11
1832 NFT_TRACETYPE_UNSPEC = 0x0
1833 NFT_TRACETYPE_POLICY = 0x1
1834 NFT_TRACETYPE_RETURN = 0x2
1835 NFT_TRACETYPE_RULE = 0x3
1836 NFTA_NG_UNSPEC = 0x0
1837 NFTA_NG_DREG = 0x1
1838 NFTA_NG_MODULUS = 0x2
1839 NFTA_NG_TYPE = 0x3
1840 NFTA_NG_OFFSET = 0x4
1841 NFT_NG_INCREMENTAL = 0x0
1842 NFT_NG_RANDOM = 0x1
1843)
1844
1845type RTCTime struct {
1846 Sec int32
1847 Min int32
1848 Hour int32
1849 Mday int32
1850 Mon int32
1851 Year int32
1852 Wday int32
1853 Yday int32
1854 Isdst int32
1855}
1856
1857type RTCWkAlrm struct {
1858 Enabled uint8
1859 Pending uint8
1860 _ [2]byte
1861 Time RTCTime
1862}
1863
1864type RTCPLLInfo struct {
1865 Ctrl int32
1866 Value int32
1867 Max int32
1868 Min int32
1869 Posmult int32
1870 Negmult int32
1871 Clock int32
1872}
1873
1874type BlkpgIoctlArg struct {
1875 Op int32
1876 Flags int32
1877 Datalen int32
1878 Data *byte
1879}
1880
1881type BlkpgPartition struct {
1882 Start int64
1883 Length int64
1884 Pno int32
1885 Devname [64]uint8
1886 Volname [64]uint8
1887 _ [4]byte
1888}
1889
1890const (
1891 BLKPG = 0x20001269
1892 BLKPG_ADD_PARTITION = 0x1
1893 BLKPG_DEL_PARTITION = 0x2
1894 BLKPG_RESIZE_PARTITION = 0x3
1895)
1896
1897const (
1898 NETNSA_NONE = 0x0
1899 NETNSA_NSID = 0x1
1900 NETNSA_PID = 0x2
1901 NETNSA_FD = 0x3
1902)
1903
1904type XDPRingOffset struct {
1905 Producer uint64
1906 Consumer uint64
1907 Desc uint64
1908}
1909
1910type XDPMmapOffsets struct {
1911 Rx XDPRingOffset
1912 Tx XDPRingOffset
1913 Fr XDPRingOffset
1914 Cr XDPRingOffset
1915}
1916
1917type XDPUmemReg struct {
1918 Addr uint64
1919 Len uint64
1920 Size uint32
1921 Headroom uint32
1922}
1923
1924type XDPStatistics struct {
1925 Rx_dropped uint64
1926 Rx_invalid_descs uint64
1927 Tx_invalid_descs uint64
1928}
1929
1930type XDPDesc struct {
1931 Addr uint64
1932 Len uint32
1933 Options uint32
1934}
1935
1936const (
1937 NCSI_CMD_UNSPEC = 0x0
1938 NCSI_CMD_PKG_INFO = 0x1
1939 NCSI_CMD_SET_INTERFACE = 0x2
1940 NCSI_CMD_CLEAR_INTERFACE = 0x3
1941 NCSI_ATTR_UNSPEC = 0x0
1942 NCSI_ATTR_IFINDEX = 0x1
1943 NCSI_ATTR_PACKAGE_LIST = 0x2
1944 NCSI_ATTR_PACKAGE_ID = 0x3
1945 NCSI_ATTR_CHANNEL_ID = 0x4
1946 NCSI_PKG_ATTR_UNSPEC = 0x0
1947 NCSI_PKG_ATTR = 0x1
1948 NCSI_PKG_ATTR_ID = 0x2
1949 NCSI_PKG_ATTR_FORCED = 0x3
1950 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1951 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1952 NCSI_CHANNEL_ATTR = 0x1
1953 NCSI_CHANNEL_ATTR_ID = 0x2
1954 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1955 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1956 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1957 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1958 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1959 NCSI_CHANNEL_ATTR_FORCED = 0x8
1960 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1961 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1962)
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 cb2701f..a9d1b6c 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -105,7 +105,7 @@ type Stat_t struct {
105 Mode uint32 105 Mode uint32
106 Uid uint32 106 Uid uint32
107 Gid uint32 107 Gid uint32
108 X__pad2 int32 108 _ int32
109 Rdev uint64 109 Rdev uint64
110 Size int64 110 Size int64
111 Blksize int64 111 Blksize int64
@@ -118,25 +118,10 @@ type Stat_t struct {
118 _ uint64 118 _ uint64
119} 119}
120 120
121type Statfs_t struct {
122 Type int64
123 Bsize int64
124 Blocks uint64
125 Bfree uint64
126 Bavail uint64
127 Files uint64
128 Ffree uint64
129 Fsid Fsid
130 Namelen int64
131 Frsize int64
132 Flags int64
133 Spare [4]int64
134}
135
136type StatxTimestamp struct { 121type StatxTimestamp struct {
137 Sec int64 122 Sec int64
138 Nsec uint32 123 Nsec uint32
139 X__reserved int32 124 _ int32
140} 125}
141 126
142type Statx_t struct { 127type Statx_t struct {
@@ -173,7 +158,7 @@ type Dirent struct {
173} 158}
174 159
175type Fsid struct { 160type Fsid struct {
176 X__val [2]int32 161 Val [2]int32
177} 162}
178 163
179type Flock_t struct { 164type Flock_t struct {
@@ -267,6 +252,13 @@ type RawSockaddrL2 struct {
267 _ [1]byte 252 _ [1]byte
268} 253}
269 254
255type RawSockaddrRFCOMM struct {
256 Family uint16
257 Bdaddr [6]uint8
258 Channel uint8
259 _ [1]byte
260}
261
270type RawSockaddrCAN struct { 262type RawSockaddrCAN struct {
271 Family uint16 263 Family uint16
272 _ [2]byte 264 _ [2]byte
@@ -290,6 +282,14 @@ type RawSockaddrVM struct {
290 Zero [4]uint8 282 Zero [4]uint8
291} 283}
292 284
285type RawSockaddrXDP struct {
286 Family uint16
287 Flags uint16
288 Ifindex uint32
289 Queue_id uint32
290 Shared_umem_fd uint32
291}
292
293type RawSockaddr struct { 293type RawSockaddr struct {
294 Family uint16 294 Family uint16
295 Data [14]uint8 295 Data [14]uint8
@@ -422,9 +422,11 @@ const (
422 SizeofSockaddrNetlink = 0xc 422 SizeofSockaddrNetlink = 0xc
423 SizeofSockaddrHCI = 0x6 423 SizeofSockaddrHCI = 0x6
424 SizeofSockaddrL2 = 0xe 424 SizeofSockaddrL2 = 0xe
425 SizeofSockaddrRFCOMM = 0xa
425 SizeofSockaddrCAN = 0x10 426 SizeofSockaddrCAN = 0x10
426 SizeofSockaddrALG = 0x58 427 SizeofSockaddrALG = 0x58
427 SizeofSockaddrVM = 0x10 428 SizeofSockaddrVM = 0x10
429 SizeofSockaddrXDP = 0x10
428 SizeofLinger = 0x8 430 SizeofLinger = 0x8
429 SizeofIovec = 0x10 431 SizeofIovec = 0x10
430 SizeofIPMreq = 0x8 432 SizeofIPMreq = 0x8
@@ -442,97 +444,138 @@ const (
442) 444)
443 445
444const ( 446const (
445 IFA_UNSPEC = 0x0 447 IFA_UNSPEC = 0x0
446 IFA_ADDRESS = 0x1 448 IFA_ADDRESS = 0x1
447 IFA_LOCAL = 0x2 449 IFA_LOCAL = 0x2
448 IFA_LABEL = 0x3 450 IFA_LABEL = 0x3
449 IFA_BROADCAST = 0x4 451 IFA_BROADCAST = 0x4
450 IFA_ANYCAST = 0x5 452 IFA_ANYCAST = 0x5
451 IFA_CACHEINFO = 0x6 453 IFA_CACHEINFO = 0x6
452 IFA_MULTICAST = 0x7 454 IFA_MULTICAST = 0x7
453 IFLA_UNSPEC = 0x0 455 IFLA_UNSPEC = 0x0
454 IFLA_ADDRESS = 0x1 456 IFLA_ADDRESS = 0x1
455 IFLA_BROADCAST = 0x2 457 IFLA_BROADCAST = 0x2
456 IFLA_IFNAME = 0x3 458 IFLA_IFNAME = 0x3
457 IFLA_MTU = 0x4 459 IFLA_INFO_KIND = 0x1
458 IFLA_LINK = 0x5 460 IFLA_MTU = 0x4
459 IFLA_QDISC = 0x6 461 IFLA_LINK = 0x5
460 IFLA_STATS = 0x7 462 IFLA_QDISC = 0x6
461 IFLA_COST = 0x8 463 IFLA_STATS = 0x7
462 IFLA_PRIORITY = 0x9 464 IFLA_COST = 0x8
463 IFLA_MASTER = 0xa 465 IFLA_PRIORITY = 0x9
464 IFLA_WIRELESS = 0xb 466 IFLA_MASTER = 0xa
465 IFLA_PROTINFO = 0xc 467 IFLA_WIRELESS = 0xb
466 IFLA_TXQLEN = 0xd 468 IFLA_PROTINFO = 0xc
467 IFLA_MAP = 0xe 469 IFLA_TXQLEN = 0xd
468 IFLA_WEIGHT = 0xf 470 IFLA_MAP = 0xe
469 IFLA_OPERSTATE = 0x10 471 IFLA_WEIGHT = 0xf
470 IFLA_LINKMODE = 0x11 472 IFLA_OPERSTATE = 0x10
471 IFLA_LINKINFO = 0x12 473 IFLA_LINKMODE = 0x11
472 IFLA_NET_NS_PID = 0x13 474 IFLA_LINKINFO = 0x12
473 IFLA_IFALIAS = 0x14 475 IFLA_NET_NS_PID = 0x13
474 IFLA_MAX = 0x2c 476 IFLA_IFALIAS = 0x14
475 RT_SCOPE_UNIVERSE = 0x0 477 IFLA_NUM_VF = 0x15
476 RT_SCOPE_SITE = 0xc8 478 IFLA_VFINFO_LIST = 0x16
477 RT_SCOPE_LINK = 0xfd 479 IFLA_STATS64 = 0x17
478 RT_SCOPE_HOST = 0xfe 480 IFLA_VF_PORTS = 0x18
479 RT_SCOPE_NOWHERE = 0xff 481 IFLA_PORT_SELF = 0x19
480 RT_TABLE_UNSPEC = 0x0 482 IFLA_AF_SPEC = 0x1a
481 RT_TABLE_COMPAT = 0xfc 483 IFLA_GROUP = 0x1b
482 RT_TABLE_DEFAULT = 0xfd 484 IFLA_NET_NS_FD = 0x1c
483 RT_TABLE_MAIN = 0xfe 485 IFLA_EXT_MASK = 0x1d
484 RT_TABLE_LOCAL = 0xff 486 IFLA_PROMISCUITY = 0x1e
485 RT_TABLE_MAX = 0xffffffff 487 IFLA_NUM_TX_QUEUES = 0x1f
486 RTA_UNSPEC = 0x0 488 IFLA_NUM_RX_QUEUES = 0x20
487 RTA_DST = 0x1 489 IFLA_CARRIER = 0x21
488 RTA_SRC = 0x2 490 IFLA_PHYS_PORT_ID = 0x22
489 RTA_IIF = 0x3 491 IFLA_CARRIER_CHANGES = 0x23
490 RTA_OIF = 0x4 492 IFLA_PHYS_SWITCH_ID = 0x24
491 RTA_GATEWAY = 0x5 493 IFLA_LINK_NETNSID = 0x25
492 RTA_PRIORITY = 0x6 494 IFLA_PHYS_PORT_NAME = 0x26
493 RTA_PREFSRC = 0x7 495 IFLA_PROTO_DOWN = 0x27
494 RTA_METRICS = 0x8 496 IFLA_GSO_MAX_SEGS = 0x28
495 RTA_MULTIPATH = 0x9 497 IFLA_GSO_MAX_SIZE = 0x29
496 RTA_FLOW = 0xb 498 IFLA_PAD = 0x2a
497 RTA_CACHEINFO = 0xc 499 IFLA_XDP = 0x2b
498 RTA_TABLE = 0xf 500 IFLA_EVENT = 0x2c
499 RTN_UNSPEC = 0x0 501 IFLA_NEW_NETNSID = 0x2d
500 RTN_UNICAST = 0x1 502 IFLA_IF_NETNSID = 0x2e
501 RTN_LOCAL = 0x2 503 IFLA_MAX = 0x31
502 RTN_BROADCAST = 0x3 504 RT_SCOPE_UNIVERSE = 0x0
503 RTN_ANYCAST = 0x4 505 RT_SCOPE_SITE = 0xc8
504 RTN_MULTICAST = 0x5 506 RT_SCOPE_LINK = 0xfd
505 RTN_BLACKHOLE = 0x6 507 RT_SCOPE_HOST = 0xfe
506 RTN_UNREACHABLE = 0x7 508 RT_SCOPE_NOWHERE = 0xff
507 RTN_PROHIBIT = 0x8 509 RT_TABLE_UNSPEC = 0x0
508 RTN_THROW = 0x9 510 RT_TABLE_COMPAT = 0xfc
509 RTN_NAT = 0xa 511 RT_TABLE_DEFAULT = 0xfd
510 RTN_XRESOLVE = 0xb 512 RT_TABLE_MAIN = 0xfe
511 RTNLGRP_NONE = 0x0 513 RT_TABLE_LOCAL = 0xff
512 RTNLGRP_LINK = 0x1 514 RT_TABLE_MAX = 0xffffffff
513 RTNLGRP_NOTIFY = 0x2 515 RTA_UNSPEC = 0x0
514 RTNLGRP_NEIGH = 0x3 516 RTA_DST = 0x1
515 RTNLGRP_TC = 0x4 517 RTA_SRC = 0x2
516 RTNLGRP_IPV4_IFADDR = 0x5 518 RTA_IIF = 0x3
517 RTNLGRP_IPV4_MROUTE = 0x6 519 RTA_OIF = 0x4
518 RTNLGRP_IPV4_ROUTE = 0x7 520 RTA_GATEWAY = 0x5
519 RTNLGRP_IPV4_RULE = 0x8 521 RTA_PRIORITY = 0x6
520 RTNLGRP_IPV6_IFADDR = 0x9 522 RTA_PREFSRC = 0x7
521 RTNLGRP_IPV6_MROUTE = 0xa 523 RTA_METRICS = 0x8
522 RTNLGRP_IPV6_ROUTE = 0xb 524 RTA_MULTIPATH = 0x9
523 RTNLGRP_IPV6_IFINFO = 0xc 525 RTA_FLOW = 0xb
524 RTNLGRP_IPV6_PREFIX = 0x12 526 RTA_CACHEINFO = 0xc
525 RTNLGRP_IPV6_RULE = 0x13 527 RTA_TABLE = 0xf
526 RTNLGRP_ND_USEROPT = 0x14 528 RTA_MARK = 0x10
527 SizeofNlMsghdr = 0x10 529 RTA_MFC_STATS = 0x11
528 SizeofNlMsgerr = 0x14 530 RTA_VIA = 0x12
529 SizeofRtGenmsg = 0x1 531 RTA_NEWDST = 0x13
530 SizeofNlAttr = 0x4 532 RTA_PREF = 0x14
531 SizeofRtAttr = 0x4 533 RTA_ENCAP_TYPE = 0x15
532 SizeofIfInfomsg = 0x10 534 RTA_ENCAP = 0x16
533 SizeofIfAddrmsg = 0x8 535 RTA_EXPIRES = 0x17
534 SizeofRtMsg = 0xc 536 RTA_PAD = 0x18
535 SizeofRtNexthop = 0x8 537 RTA_UID = 0x19
538 RTA_TTL_PROPAGATE = 0x1a
539 RTA_IP_PROTO = 0x1b
540 RTA_SPORT = 0x1c
541 RTA_DPORT = 0x1d
542 RTN_UNSPEC = 0x0
543 RTN_UNICAST = 0x1
544 RTN_LOCAL = 0x2
545 RTN_BROADCAST = 0x3
546 RTN_ANYCAST = 0x4
547 RTN_MULTICAST = 0x5
548 RTN_BLACKHOLE = 0x6
549 RTN_UNREACHABLE = 0x7
550 RTN_PROHIBIT = 0x8
551 RTN_THROW = 0x9
552 RTN_NAT = 0xa
553 RTN_XRESOLVE = 0xb
554 RTNLGRP_NONE = 0x0
555 RTNLGRP_LINK = 0x1
556 RTNLGRP_NOTIFY = 0x2
557 RTNLGRP_NEIGH = 0x3
558 RTNLGRP_TC = 0x4
559 RTNLGRP_IPV4_IFADDR = 0x5
560 RTNLGRP_IPV4_MROUTE = 0x6
561 RTNLGRP_IPV4_ROUTE = 0x7
562 RTNLGRP_IPV4_RULE = 0x8
563 RTNLGRP_IPV6_IFADDR = 0x9
564 RTNLGRP_IPV6_MROUTE = 0xa
565 RTNLGRP_IPV6_ROUTE = 0xb
566 RTNLGRP_IPV6_IFINFO = 0xc
567 RTNLGRP_IPV6_PREFIX = 0x12
568 RTNLGRP_IPV6_RULE = 0x13
569 RTNLGRP_ND_USEROPT = 0x14
570 SizeofNlMsghdr = 0x10
571 SizeofNlMsgerr = 0x14
572 SizeofRtGenmsg = 0x1
573 SizeofNlAttr = 0x4
574 SizeofRtAttr = 0x4
575 SizeofIfInfomsg = 0x10
576 SizeofIfAddrmsg = 0x8
577 SizeofRtMsg = 0xc
578 SizeofRtNexthop = 0x8
536) 579)
537 580
538type NlMsghdr struct { 581type NlMsghdr struct {
@@ -563,12 +606,12 @@ type RtAttr struct {
563} 606}
564 607
565type IfInfomsg struct { 608type IfInfomsg struct {
566 Family uint8 609 Family uint8
567 X__ifi_pad uint8 610 _ uint8
568 Type uint16 611 Type uint16
569 Index int32 612 Index int32
570 Flags uint32 613 Flags uint32
571 Change uint32 614 Change uint32
572} 615}
573 616
574type IfAddrmsg struct { 617type IfAddrmsg struct {
@@ -660,7 +703,7 @@ type Sysinfo_t struct {
660 Totalhigh uint64 703 Totalhigh uint64
661 Freehigh uint64 704 Freehigh uint64
662 Unit uint32 705 Unit uint32
663 X_f [0]uint8 706 _ [0]uint8
664 _ [4]byte 707 _ [4]byte
665} 708}
666 709
@@ -683,10 +726,10 @@ type Ustat_t struct {
683} 726}
684 727
685type EpollEvent struct { 728type EpollEvent struct {
686 Events uint32 729 Events uint32
687 X_padFd int32 730 _ int32
688 Fd int32 731 Fd int32
689 Pad int32 732 Pad int32
690} 733}
691 734
692const ( 735const (
@@ -701,6 +744,8 @@ const (
701 744
702 AT_SYMLINK_FOLLOW = 0x400 745 AT_SYMLINK_FOLLOW = 0x400
703 AT_SYMLINK_NOFOLLOW = 0x100 746 AT_SYMLINK_NOFOLLOW = 0x100
747
748 AT_EACCESS = 0x200
704) 749)
705 750
706type PollFd struct { 751type PollFd struct {
@@ -720,7 +765,7 @@ const (
720) 765)
721 766
722type Sigset_t struct { 767type Sigset_t struct {
723 X__val [16]uint64 768 Val [16]uint64
724} 769}
725 770
726const RNDGETENTCNT = 0x40045200 771const RNDGETENTCNT = 0x40045200
@@ -876,3 +921,1058 @@ const (
876 BDADDR_LE_PUBLIC = 0x1 921 BDADDR_LE_PUBLIC = 0x1
877 BDADDR_LE_RANDOM = 0x2 922 BDADDR_LE_RANDOM = 0x2
878) 923)
924
925type PerfEventAttr struct {
926 Type uint32
927 Size uint32
928 Config uint64
929 Sample uint64
930 Sample_type uint64
931 Read_format uint64
932 Bits uint64
933 Wakeup uint32
934 Bp_type uint32
935 Ext1 uint64
936 Ext2 uint64
937 Branch_sample_type uint64
938 Sample_regs_user uint64
939 Sample_stack_user uint32
940 Clockid int32
941 Sample_regs_intr uint64
942 Aux_watermark uint32
943 _ uint32
944}
945
946type PerfEventMmapPage struct {
947 Version uint32
948 Compat_version uint32
949 Lock uint32
950 Index uint32
951 Offset int64
952 Time_enabled uint64
953 Time_running uint64
954 Capabilities uint64
955 Pmc_width uint16
956 Time_shift uint16
957 Time_mult uint32
958 Time_offset uint64
959 Time_zero uint64
960 Size uint32
961 _ [948]uint8
962 Data_head uint64
963 Data_tail uint64
964 Data_offset uint64
965 Data_size uint64
966 Aux_head uint64
967 Aux_tail uint64
968 Aux_offset uint64
969 Aux_size uint64
970}
971
972const (
973 PerfBitDisabled uint64 = CBitFieldMaskBit0
974 PerfBitInherit = CBitFieldMaskBit1
975 PerfBitPinned = CBitFieldMaskBit2
976 PerfBitExclusive = CBitFieldMaskBit3
977 PerfBitExcludeUser = CBitFieldMaskBit4
978 PerfBitExcludeKernel = CBitFieldMaskBit5
979 PerfBitExcludeHv = CBitFieldMaskBit6
980 PerfBitExcludeIdle = CBitFieldMaskBit7
981 PerfBitMmap = CBitFieldMaskBit8
982 PerfBitComm = CBitFieldMaskBit9
983 PerfBitFreq = CBitFieldMaskBit10
984 PerfBitInheritStat = CBitFieldMaskBit11
985 PerfBitEnableOnExec = CBitFieldMaskBit12
986 PerfBitTask = CBitFieldMaskBit13
987 PerfBitWatermark = CBitFieldMaskBit14
988 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
989 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
990 PerfBitMmapData = CBitFieldMaskBit17
991 PerfBitSampleIDAll = CBitFieldMaskBit18
992 PerfBitExcludeHost = CBitFieldMaskBit19
993 PerfBitExcludeGuest = CBitFieldMaskBit20
994 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
995 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
996 PerfBitMmap2 = CBitFieldMaskBit23
997 PerfBitCommExec = CBitFieldMaskBit24
998 PerfBitUseClockID = CBitFieldMaskBit25
999 PerfBitContextSwitch = CBitFieldMaskBit26
1000)
1001
1002const (
1003 PERF_TYPE_HARDWARE = 0x0
1004 PERF_TYPE_SOFTWARE = 0x1
1005 PERF_TYPE_TRACEPOINT = 0x2
1006 PERF_TYPE_HW_CACHE = 0x3
1007 PERF_TYPE_RAW = 0x4
1008 PERF_TYPE_BREAKPOINT = 0x5
1009
1010 PERF_COUNT_HW_CPU_CYCLES = 0x0
1011 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1012 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1013 PERF_COUNT_HW_CACHE_MISSES = 0x3
1014 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1015 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1016 PERF_COUNT_HW_BUS_CYCLES = 0x6
1017 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1018 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1019 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1020
1021 PERF_COUNT_HW_CACHE_L1D = 0x0
1022 PERF_COUNT_HW_CACHE_L1I = 0x1
1023 PERF_COUNT_HW_CACHE_LL = 0x2
1024 PERF_COUNT_HW_CACHE_DTLB = 0x3
1025 PERF_COUNT_HW_CACHE_ITLB = 0x4
1026 PERF_COUNT_HW_CACHE_BPU = 0x5
1027 PERF_COUNT_HW_CACHE_NODE = 0x6
1028
1029 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1030 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1031 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1032
1033 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1034 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1035
1036 PERF_COUNT_SW_CPU_CLOCK = 0x0
1037 PERF_COUNT_SW_TASK_CLOCK = 0x1
1038 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1039 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1040 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1041 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1042 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1043 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1044 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1045 PERF_COUNT_SW_DUMMY = 0x9
1046
1047 PERF_SAMPLE_IP = 0x1
1048 PERF_SAMPLE_TID = 0x2
1049 PERF_SAMPLE_TIME = 0x4
1050 PERF_SAMPLE_ADDR = 0x8
1051 PERF_SAMPLE_READ = 0x10
1052 PERF_SAMPLE_CALLCHAIN = 0x20
1053 PERF_SAMPLE_ID = 0x40
1054 PERF_SAMPLE_CPU = 0x80
1055 PERF_SAMPLE_PERIOD = 0x100
1056 PERF_SAMPLE_STREAM_ID = 0x200
1057 PERF_SAMPLE_RAW = 0x400
1058 PERF_SAMPLE_BRANCH_STACK = 0x800
1059
1060 PERF_SAMPLE_BRANCH_USER = 0x1
1061 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1062 PERF_SAMPLE_BRANCH_HV = 0x4
1063 PERF_SAMPLE_BRANCH_ANY = 0x8
1064 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1065 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1066 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1067
1068 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1069 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1070 PERF_FORMAT_ID = 0x4
1071 PERF_FORMAT_GROUP = 0x8
1072
1073 PERF_RECORD_MMAP = 0x1
1074 PERF_RECORD_LOST = 0x2
1075 PERF_RECORD_COMM = 0x3
1076 PERF_RECORD_EXIT = 0x4
1077 PERF_RECORD_THROTTLE = 0x5
1078 PERF_RECORD_UNTHROTTLE = 0x6
1079 PERF_RECORD_FORK = 0x7
1080 PERF_RECORD_READ = 0x8
1081 PERF_RECORD_SAMPLE = 0x9
1082
1083 PERF_CONTEXT_HV = -0x20
1084 PERF_CONTEXT_KERNEL = -0x80
1085 PERF_CONTEXT_USER = -0x200
1086
1087 PERF_CONTEXT_GUEST = -0x800
1088 PERF_CONTEXT_GUEST_KERNEL = -0x880
1089 PERF_CONTEXT_GUEST_USER = -0xa00
1090
1091 PERF_FLAG_FD_NO_GROUP = 0x1
1092 PERF_FLAG_FD_OUTPUT = 0x2
1093 PERF_FLAG_PID_CGROUP = 0x4
1094)
1095
1096const (
1097 CBitFieldMaskBit0 = 0x8000000000000000
1098 CBitFieldMaskBit1 = 0x4000000000000000
1099 CBitFieldMaskBit2 = 0x2000000000000000
1100 CBitFieldMaskBit3 = 0x1000000000000000
1101 CBitFieldMaskBit4 = 0x800000000000000
1102 CBitFieldMaskBit5 = 0x400000000000000
1103 CBitFieldMaskBit6 = 0x200000000000000
1104 CBitFieldMaskBit7 = 0x100000000000000
1105 CBitFieldMaskBit8 = 0x80000000000000
1106 CBitFieldMaskBit9 = 0x40000000000000
1107 CBitFieldMaskBit10 = 0x20000000000000
1108 CBitFieldMaskBit11 = 0x10000000000000
1109 CBitFieldMaskBit12 = 0x8000000000000
1110 CBitFieldMaskBit13 = 0x4000000000000
1111 CBitFieldMaskBit14 = 0x2000000000000
1112 CBitFieldMaskBit15 = 0x1000000000000
1113 CBitFieldMaskBit16 = 0x800000000000
1114 CBitFieldMaskBit17 = 0x400000000000
1115 CBitFieldMaskBit18 = 0x200000000000
1116 CBitFieldMaskBit19 = 0x100000000000
1117 CBitFieldMaskBit20 = 0x80000000000
1118 CBitFieldMaskBit21 = 0x40000000000
1119 CBitFieldMaskBit22 = 0x20000000000
1120 CBitFieldMaskBit23 = 0x10000000000
1121 CBitFieldMaskBit24 = 0x8000000000
1122 CBitFieldMaskBit25 = 0x4000000000
1123 CBitFieldMaskBit26 = 0x2000000000
1124 CBitFieldMaskBit27 = 0x1000000000
1125 CBitFieldMaskBit28 = 0x800000000
1126 CBitFieldMaskBit29 = 0x400000000
1127 CBitFieldMaskBit30 = 0x200000000
1128 CBitFieldMaskBit31 = 0x100000000
1129 CBitFieldMaskBit32 = 0x80000000
1130 CBitFieldMaskBit33 = 0x40000000
1131 CBitFieldMaskBit34 = 0x20000000
1132 CBitFieldMaskBit35 = 0x10000000
1133 CBitFieldMaskBit36 = 0x8000000
1134 CBitFieldMaskBit37 = 0x4000000
1135 CBitFieldMaskBit38 = 0x2000000
1136 CBitFieldMaskBit39 = 0x1000000
1137 CBitFieldMaskBit40 = 0x800000
1138 CBitFieldMaskBit41 = 0x400000
1139 CBitFieldMaskBit42 = 0x200000
1140 CBitFieldMaskBit43 = 0x100000
1141 CBitFieldMaskBit44 = 0x80000
1142 CBitFieldMaskBit45 = 0x40000
1143 CBitFieldMaskBit46 = 0x20000
1144 CBitFieldMaskBit47 = 0x10000
1145 CBitFieldMaskBit48 = 0x8000
1146 CBitFieldMaskBit49 = 0x4000
1147 CBitFieldMaskBit50 = 0x2000
1148 CBitFieldMaskBit51 = 0x1000
1149 CBitFieldMaskBit52 = 0x800
1150 CBitFieldMaskBit53 = 0x400
1151 CBitFieldMaskBit54 = 0x200
1152 CBitFieldMaskBit55 = 0x100
1153 CBitFieldMaskBit56 = 0x80
1154 CBitFieldMaskBit57 = 0x40
1155 CBitFieldMaskBit58 = 0x20
1156 CBitFieldMaskBit59 = 0x10
1157 CBitFieldMaskBit60 = 0x8
1158 CBitFieldMaskBit61 = 0x4
1159 CBitFieldMaskBit62 = 0x2
1160 CBitFieldMaskBit63 = 0x1
1161)
1162
1163type SockaddrStorage struct {
1164 Family uint16
1165 _ [118]uint8
1166 _ uint64
1167}
1168
1169type TCPMD5Sig struct {
1170 Addr SockaddrStorage
1171 Flags uint8
1172 Prefixlen uint8
1173 Keylen uint16
1174 _ uint32
1175 Key [80]uint8
1176}
1177
1178type HDDriveCmdHdr struct {
1179 Command uint8
1180 Number uint8
1181 Feature uint8
1182 Count uint8
1183}
1184
1185type HDGeometry struct {
1186 Heads uint8
1187 Sectors uint8
1188 Cylinders uint16
1189 _ [4]byte
1190 Start uint64
1191}
1192
1193type HDDriveID struct {
1194 Config uint16
1195 Cyls uint16
1196 Reserved2 uint16
1197 Heads uint16
1198 Track_bytes uint16
1199 Sector_bytes uint16
1200 Sectors uint16
1201 Vendor0 uint16
1202 Vendor1 uint16
1203 Vendor2 uint16
1204 Serial_no [20]uint8
1205 Buf_type uint16
1206 Buf_size uint16
1207 Ecc_bytes uint16
1208 Fw_rev [8]uint8
1209 Model [40]uint8
1210 Max_multsect uint8
1211 Vendor3 uint8
1212 Dword_io uint16
1213 Vendor4 uint8
1214 Capability uint8
1215 Reserved50 uint16
1216 Vendor5 uint8
1217 TPIO uint8
1218 Vendor6 uint8
1219 TDMA uint8
1220 Field_valid uint16
1221 Cur_cyls uint16
1222 Cur_heads uint16
1223 Cur_sectors uint16
1224 Cur_capacity0 uint16
1225 Cur_capacity1 uint16
1226 Multsect uint8
1227 Multsect_valid uint8
1228 Lba_capacity uint32
1229 Dma_1word uint16
1230 Dma_mword uint16
1231 Eide_pio_modes uint16
1232 Eide_dma_min uint16
1233 Eide_dma_time uint16
1234 Eide_pio uint16
1235 Eide_pio_iordy uint16
1236 Words69_70 [2]uint16
1237 Words71_74 [4]uint16
1238 Queue_depth uint16
1239 Words76_79 [4]uint16
1240 Major_rev_num uint16
1241 Minor_rev_num uint16
1242 Command_set_1 uint16
1243 Command_set_2 uint16
1244 Cfsse uint16
1245 Cfs_enable_1 uint16
1246 Cfs_enable_2 uint16
1247 Csf_default uint16
1248 Dma_ultra uint16
1249 Trseuc uint16
1250 TrsEuc uint16
1251 CurAPMvalues uint16
1252 Mprc uint16
1253 Hw_config uint16
1254 Acoustic uint16
1255 Msrqs uint16
1256 Sxfert uint16
1257 Sal uint16
1258 Spg uint32
1259 Lba_capacity_2 uint64
1260 Words104_125 [22]uint16
1261 Last_lun uint16
1262 Word127 uint16
1263 Dlf uint16
1264 Csfo uint16
1265 Words130_155 [26]uint16
1266 Word156 uint16
1267 Words157_159 [3]uint16
1268 Cfa_power uint16
1269 Words161_175 [15]uint16
1270 Words176_205 [30]uint16
1271 Words206_254 [49]uint16
1272 Integrity_word uint16
1273}
1274
1275type Statfs_t struct {
1276 Type int64
1277 Bsize int64
1278 Blocks uint64
1279 Bfree uint64
1280 Bavail uint64
1281 Files uint64
1282 Ffree uint64
1283 Fsid Fsid
1284 Namelen int64
1285 Frsize int64
1286 Flags int64
1287 Spare [4]int64
1288}
1289
1290const (
1291 ST_MANDLOCK = 0x40
1292 ST_NOATIME = 0x400
1293 ST_NODEV = 0x4
1294 ST_NODIRATIME = 0x800
1295 ST_NOEXEC = 0x8
1296 ST_NOSUID = 0x2
1297 ST_RDONLY = 0x1
1298 ST_RELATIME = 0x1000
1299 ST_SYNCHRONOUS = 0x10
1300)
1301
1302type TpacketHdr struct {
1303 Status uint64
1304 Len uint32
1305 Snaplen uint32
1306 Mac uint16
1307 Net uint16
1308 Sec uint32
1309 Usec uint32
1310 _ [4]byte
1311}
1312
1313type Tpacket2Hdr struct {
1314 Status uint32
1315 Len uint32
1316 Snaplen uint32
1317 Mac uint16
1318 Net uint16
1319 Sec uint32
1320 Nsec uint32
1321 Vlan_tci uint16
1322 Vlan_tpid uint16
1323 _ [4]uint8
1324}
1325
1326type Tpacket3Hdr struct {
1327 Next_offset uint32
1328 Sec uint32
1329 Nsec uint32
1330 Snaplen uint32
1331 Len uint32
1332 Status uint32
1333 Mac uint16
1334 Net uint16
1335 Hv1 TpacketHdrVariant1
1336 _ [8]uint8
1337}
1338
1339type TpacketHdrVariant1 struct {
1340 Rxhash uint32
1341 Vlan_tci uint32
1342 Vlan_tpid uint16
1343 _ uint16
1344}
1345
1346type TpacketBlockDesc struct {
1347 Version uint32
1348 To_priv uint32
1349 Hdr [40]byte
1350}
1351
1352type TpacketReq struct {
1353 Block_size uint32
1354 Block_nr uint32
1355 Frame_size uint32
1356 Frame_nr uint32
1357}
1358
1359type TpacketReq3 struct {
1360 Block_size uint32
1361 Block_nr uint32
1362 Frame_size uint32
1363 Frame_nr uint32
1364 Retire_blk_tov uint32
1365 Sizeof_priv uint32
1366 Feature_req_word uint32
1367}
1368
1369type TpacketStats struct {
1370 Packets uint32
1371 Drops uint32
1372}
1373
1374type TpacketStatsV3 struct {
1375 Packets uint32
1376 Drops uint32
1377 Freeze_q_cnt uint32
1378}
1379
1380type TpacketAuxdata struct {
1381 Status uint32
1382 Len uint32
1383 Snaplen uint32
1384 Mac uint16
1385 Net uint16
1386 Vlan_tci uint16
1387 Vlan_tpid uint16
1388}
1389
1390const (
1391 TPACKET_V1 = 0x0
1392 TPACKET_V2 = 0x1
1393 TPACKET_V3 = 0x2
1394)
1395
1396const (
1397 SizeofTpacketHdr = 0x20
1398 SizeofTpacket2Hdr = 0x20
1399 SizeofTpacket3Hdr = 0x30
1400)
1401
1402const (
1403 NF_INET_PRE_ROUTING = 0x0
1404 NF_INET_LOCAL_IN = 0x1
1405 NF_INET_FORWARD = 0x2
1406 NF_INET_LOCAL_OUT = 0x3
1407 NF_INET_POST_ROUTING = 0x4
1408 NF_INET_NUMHOOKS = 0x5
1409)
1410
1411const (
1412 NF_NETDEV_INGRESS = 0x0
1413 NF_NETDEV_NUMHOOKS = 0x1
1414)
1415
1416const (
1417 NFPROTO_UNSPEC = 0x0
1418 NFPROTO_INET = 0x1
1419 NFPROTO_IPV4 = 0x2
1420 NFPROTO_ARP = 0x3
1421 NFPROTO_NETDEV = 0x5
1422 NFPROTO_BRIDGE = 0x7
1423 NFPROTO_IPV6 = 0xa
1424 NFPROTO_DECNET = 0xc
1425 NFPROTO_NUMPROTO = 0xd
1426)
1427
1428type Nfgenmsg struct {
1429 Nfgen_family uint8
1430 Version uint8
1431 Res_id uint16
1432}
1433
1434const (
1435 NFNL_BATCH_UNSPEC = 0x0
1436 NFNL_BATCH_GENID = 0x1
1437)
1438
1439const (
1440 NFT_REG_VERDICT = 0x0
1441 NFT_REG_1 = 0x1
1442 NFT_REG_2 = 0x2
1443 NFT_REG_3 = 0x3
1444 NFT_REG_4 = 0x4
1445 NFT_REG32_00 = 0x8
1446 NFT_REG32_01 = 0x9
1447 NFT_REG32_02 = 0xa
1448 NFT_REG32_03 = 0xb
1449 NFT_REG32_04 = 0xc
1450 NFT_REG32_05 = 0xd
1451 NFT_REG32_06 = 0xe
1452 NFT_REG32_07 = 0xf
1453 NFT_REG32_08 = 0x10
1454 NFT_REG32_09 = 0x11
1455 NFT_REG32_10 = 0x12
1456 NFT_REG32_11 = 0x13
1457 NFT_REG32_12 = 0x14
1458 NFT_REG32_13 = 0x15
1459 NFT_REG32_14 = 0x16
1460 NFT_REG32_15 = 0x17
1461 NFT_CONTINUE = -0x1
1462 NFT_BREAK = -0x2
1463 NFT_JUMP = -0x3
1464 NFT_GOTO = -0x4
1465 NFT_RETURN = -0x5
1466 NFT_MSG_NEWTABLE = 0x0
1467 NFT_MSG_GETTABLE = 0x1
1468 NFT_MSG_DELTABLE = 0x2
1469 NFT_MSG_NEWCHAIN = 0x3
1470 NFT_MSG_GETCHAIN = 0x4
1471 NFT_MSG_DELCHAIN = 0x5
1472 NFT_MSG_NEWRULE = 0x6
1473 NFT_MSG_GETRULE = 0x7
1474 NFT_MSG_DELRULE = 0x8
1475 NFT_MSG_NEWSET = 0x9
1476 NFT_MSG_GETSET = 0xa
1477 NFT_MSG_DELSET = 0xb
1478 NFT_MSG_NEWSETELEM = 0xc
1479 NFT_MSG_GETSETELEM = 0xd
1480 NFT_MSG_DELSETELEM = 0xe
1481 NFT_MSG_NEWGEN = 0xf
1482 NFT_MSG_GETGEN = 0x10
1483 NFT_MSG_TRACE = 0x11
1484 NFT_MSG_NEWOBJ = 0x12
1485 NFT_MSG_GETOBJ = 0x13
1486 NFT_MSG_DELOBJ = 0x14
1487 NFT_MSG_GETOBJ_RESET = 0x15
1488 NFT_MSG_MAX = 0x19
1489 NFTA_LIST_UNPEC = 0x0
1490 NFTA_LIST_ELEM = 0x1
1491 NFTA_HOOK_UNSPEC = 0x0
1492 NFTA_HOOK_HOOKNUM = 0x1
1493 NFTA_HOOK_PRIORITY = 0x2
1494 NFTA_HOOK_DEV = 0x3
1495 NFT_TABLE_F_DORMANT = 0x1
1496 NFTA_TABLE_UNSPEC = 0x0
1497 NFTA_TABLE_NAME = 0x1
1498 NFTA_TABLE_FLAGS = 0x2
1499 NFTA_TABLE_USE = 0x3
1500 NFTA_CHAIN_UNSPEC = 0x0
1501 NFTA_CHAIN_TABLE = 0x1
1502 NFTA_CHAIN_HANDLE = 0x2
1503 NFTA_CHAIN_NAME = 0x3
1504 NFTA_CHAIN_HOOK = 0x4
1505 NFTA_CHAIN_POLICY = 0x5
1506 NFTA_CHAIN_USE = 0x6
1507 NFTA_CHAIN_TYPE = 0x7
1508 NFTA_CHAIN_COUNTERS = 0x8
1509 NFTA_CHAIN_PAD = 0x9
1510 NFTA_RULE_UNSPEC = 0x0
1511 NFTA_RULE_TABLE = 0x1
1512 NFTA_RULE_CHAIN = 0x2
1513 NFTA_RULE_HANDLE = 0x3
1514 NFTA_RULE_EXPRESSIONS = 0x4
1515 NFTA_RULE_COMPAT = 0x5
1516 NFTA_RULE_POSITION = 0x6
1517 NFTA_RULE_USERDATA = 0x7
1518 NFTA_RULE_PAD = 0x8
1519 NFTA_RULE_ID = 0x9
1520 NFT_RULE_COMPAT_F_INV = 0x2
1521 NFT_RULE_COMPAT_F_MASK = 0x2
1522 NFTA_RULE_COMPAT_UNSPEC = 0x0
1523 NFTA_RULE_COMPAT_PROTO = 0x1
1524 NFTA_RULE_COMPAT_FLAGS = 0x2
1525 NFT_SET_ANONYMOUS = 0x1
1526 NFT_SET_CONSTANT = 0x2
1527 NFT_SET_INTERVAL = 0x4
1528 NFT_SET_MAP = 0x8
1529 NFT_SET_TIMEOUT = 0x10
1530 NFT_SET_EVAL = 0x20
1531 NFT_SET_OBJECT = 0x40
1532 NFT_SET_POL_PERFORMANCE = 0x0
1533 NFT_SET_POL_MEMORY = 0x1
1534 NFTA_SET_DESC_UNSPEC = 0x0
1535 NFTA_SET_DESC_SIZE = 0x1
1536 NFTA_SET_UNSPEC = 0x0
1537 NFTA_SET_TABLE = 0x1
1538 NFTA_SET_NAME = 0x2
1539 NFTA_SET_FLAGS = 0x3
1540 NFTA_SET_KEY_TYPE = 0x4
1541 NFTA_SET_KEY_LEN = 0x5
1542 NFTA_SET_DATA_TYPE = 0x6
1543 NFTA_SET_DATA_LEN = 0x7
1544 NFTA_SET_POLICY = 0x8
1545 NFTA_SET_DESC = 0x9
1546 NFTA_SET_ID = 0xa
1547 NFTA_SET_TIMEOUT = 0xb
1548 NFTA_SET_GC_INTERVAL = 0xc
1549 NFTA_SET_USERDATA = 0xd
1550 NFTA_SET_PAD = 0xe
1551 NFTA_SET_OBJ_TYPE = 0xf
1552 NFT_SET_ELEM_INTERVAL_END = 0x1
1553 NFTA_SET_ELEM_UNSPEC = 0x0
1554 NFTA_SET_ELEM_KEY = 0x1
1555 NFTA_SET_ELEM_DATA = 0x2
1556 NFTA_SET_ELEM_FLAGS = 0x3
1557 NFTA_SET_ELEM_TIMEOUT = 0x4
1558 NFTA_SET_ELEM_EXPIRATION = 0x5
1559 NFTA_SET_ELEM_USERDATA = 0x6
1560 NFTA_SET_ELEM_EXPR = 0x7
1561 NFTA_SET_ELEM_PAD = 0x8
1562 NFTA_SET_ELEM_OBJREF = 0x9
1563 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1564 NFTA_SET_ELEM_LIST_TABLE = 0x1
1565 NFTA_SET_ELEM_LIST_SET = 0x2
1566 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1567 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1568 NFT_DATA_VALUE = 0x0
1569 NFT_DATA_VERDICT = 0xffffff00
1570 NFTA_DATA_UNSPEC = 0x0
1571 NFTA_DATA_VALUE = 0x1
1572 NFTA_DATA_VERDICT = 0x2
1573 NFTA_VERDICT_UNSPEC = 0x0
1574 NFTA_VERDICT_CODE = 0x1
1575 NFTA_VERDICT_CHAIN = 0x2
1576 NFTA_EXPR_UNSPEC = 0x0
1577 NFTA_EXPR_NAME = 0x1
1578 NFTA_EXPR_DATA = 0x2
1579 NFTA_IMMEDIATE_UNSPEC = 0x0
1580 NFTA_IMMEDIATE_DREG = 0x1
1581 NFTA_IMMEDIATE_DATA = 0x2
1582 NFTA_BITWISE_UNSPEC = 0x0
1583 NFTA_BITWISE_SREG = 0x1
1584 NFTA_BITWISE_DREG = 0x2
1585 NFTA_BITWISE_LEN = 0x3
1586 NFTA_BITWISE_MASK = 0x4
1587 NFTA_BITWISE_XOR = 0x5
1588 NFT_BYTEORDER_NTOH = 0x0
1589 NFT_BYTEORDER_HTON = 0x1
1590 NFTA_BYTEORDER_UNSPEC = 0x0
1591 NFTA_BYTEORDER_SREG = 0x1
1592 NFTA_BYTEORDER_DREG = 0x2
1593 NFTA_BYTEORDER_OP = 0x3
1594 NFTA_BYTEORDER_LEN = 0x4
1595 NFTA_BYTEORDER_SIZE = 0x5
1596 NFT_CMP_EQ = 0x0
1597 NFT_CMP_NEQ = 0x1
1598 NFT_CMP_LT = 0x2
1599 NFT_CMP_LTE = 0x3
1600 NFT_CMP_GT = 0x4
1601 NFT_CMP_GTE = 0x5
1602 NFTA_CMP_UNSPEC = 0x0
1603 NFTA_CMP_SREG = 0x1
1604 NFTA_CMP_OP = 0x2
1605 NFTA_CMP_DATA = 0x3
1606 NFT_RANGE_EQ = 0x0
1607 NFT_RANGE_NEQ = 0x1
1608 NFTA_RANGE_UNSPEC = 0x0
1609 NFTA_RANGE_SREG = 0x1
1610 NFTA_RANGE_OP = 0x2
1611 NFTA_RANGE_FROM_DATA = 0x3
1612 NFTA_RANGE_TO_DATA = 0x4
1613 NFT_LOOKUP_F_INV = 0x1
1614 NFTA_LOOKUP_UNSPEC = 0x0
1615 NFTA_LOOKUP_SET = 0x1
1616 NFTA_LOOKUP_SREG = 0x2
1617 NFTA_LOOKUP_DREG = 0x3
1618 NFTA_LOOKUP_SET_ID = 0x4
1619 NFTA_LOOKUP_FLAGS = 0x5
1620 NFT_DYNSET_OP_ADD = 0x0
1621 NFT_DYNSET_OP_UPDATE = 0x1
1622 NFT_DYNSET_F_INV = 0x1
1623 NFTA_DYNSET_UNSPEC = 0x0
1624 NFTA_DYNSET_SET_NAME = 0x1
1625 NFTA_DYNSET_SET_ID = 0x2
1626 NFTA_DYNSET_OP = 0x3
1627 NFTA_DYNSET_SREG_KEY = 0x4
1628 NFTA_DYNSET_SREG_DATA = 0x5
1629 NFTA_DYNSET_TIMEOUT = 0x6
1630 NFTA_DYNSET_EXPR = 0x7
1631 NFTA_DYNSET_PAD = 0x8
1632 NFTA_DYNSET_FLAGS = 0x9
1633 NFT_PAYLOAD_LL_HEADER = 0x0
1634 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1635 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1636 NFT_PAYLOAD_CSUM_NONE = 0x0
1637 NFT_PAYLOAD_CSUM_INET = 0x1
1638 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1639 NFTA_PAYLOAD_UNSPEC = 0x0
1640 NFTA_PAYLOAD_DREG = 0x1
1641 NFTA_PAYLOAD_BASE = 0x2
1642 NFTA_PAYLOAD_OFFSET = 0x3
1643 NFTA_PAYLOAD_LEN = 0x4
1644 NFTA_PAYLOAD_SREG = 0x5
1645 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1646 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1647 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1648 NFT_EXTHDR_F_PRESENT = 0x1
1649 NFT_EXTHDR_OP_IPV6 = 0x0
1650 NFT_EXTHDR_OP_TCPOPT = 0x1
1651 NFTA_EXTHDR_UNSPEC = 0x0
1652 NFTA_EXTHDR_DREG = 0x1
1653 NFTA_EXTHDR_TYPE = 0x2
1654 NFTA_EXTHDR_OFFSET = 0x3
1655 NFTA_EXTHDR_LEN = 0x4
1656 NFTA_EXTHDR_FLAGS = 0x5
1657 NFTA_EXTHDR_OP = 0x6
1658 NFTA_EXTHDR_SREG = 0x7
1659 NFT_META_LEN = 0x0
1660 NFT_META_PROTOCOL = 0x1
1661 NFT_META_PRIORITY = 0x2
1662 NFT_META_MARK = 0x3
1663 NFT_META_IIF = 0x4
1664 NFT_META_OIF = 0x5
1665 NFT_META_IIFNAME = 0x6
1666 NFT_META_OIFNAME = 0x7
1667 NFT_META_IIFTYPE = 0x8
1668 NFT_META_OIFTYPE = 0x9
1669 NFT_META_SKUID = 0xa
1670 NFT_META_SKGID = 0xb
1671 NFT_META_NFTRACE = 0xc
1672 NFT_META_RTCLASSID = 0xd
1673 NFT_META_SECMARK = 0xe
1674 NFT_META_NFPROTO = 0xf
1675 NFT_META_L4PROTO = 0x10
1676 NFT_META_BRI_IIFNAME = 0x11
1677 NFT_META_BRI_OIFNAME = 0x12
1678 NFT_META_PKTTYPE = 0x13
1679 NFT_META_CPU = 0x14
1680 NFT_META_IIFGROUP = 0x15
1681 NFT_META_OIFGROUP = 0x16
1682 NFT_META_CGROUP = 0x17
1683 NFT_META_PRANDOM = 0x18
1684 NFT_RT_CLASSID = 0x0
1685 NFT_RT_NEXTHOP4 = 0x1
1686 NFT_RT_NEXTHOP6 = 0x2
1687 NFT_RT_TCPMSS = 0x3
1688 NFT_HASH_JENKINS = 0x0
1689 NFT_HASH_SYM = 0x1
1690 NFTA_HASH_UNSPEC = 0x0
1691 NFTA_HASH_SREG = 0x1
1692 NFTA_HASH_DREG = 0x2
1693 NFTA_HASH_LEN = 0x3
1694 NFTA_HASH_MODULUS = 0x4
1695 NFTA_HASH_SEED = 0x5
1696 NFTA_HASH_OFFSET = 0x6
1697 NFTA_HASH_TYPE = 0x7
1698 NFTA_META_UNSPEC = 0x0
1699 NFTA_META_DREG = 0x1
1700 NFTA_META_KEY = 0x2
1701 NFTA_META_SREG = 0x3
1702 NFTA_RT_UNSPEC = 0x0
1703 NFTA_RT_DREG = 0x1
1704 NFTA_RT_KEY = 0x2
1705 NFT_CT_STATE = 0x0
1706 NFT_CT_DIRECTION = 0x1
1707 NFT_CT_STATUS = 0x2
1708 NFT_CT_MARK = 0x3
1709 NFT_CT_SECMARK = 0x4
1710 NFT_CT_EXPIRATION = 0x5
1711 NFT_CT_HELPER = 0x6
1712 NFT_CT_L3PROTOCOL = 0x7
1713 NFT_CT_SRC = 0x8
1714 NFT_CT_DST = 0x9
1715 NFT_CT_PROTOCOL = 0xa
1716 NFT_CT_PROTO_SRC = 0xb
1717 NFT_CT_PROTO_DST = 0xc
1718 NFT_CT_LABELS = 0xd
1719 NFT_CT_PKTS = 0xe
1720 NFT_CT_BYTES = 0xf
1721 NFT_CT_AVGPKT = 0x10
1722 NFT_CT_ZONE = 0x11
1723 NFT_CT_EVENTMASK = 0x12
1724 NFTA_CT_UNSPEC = 0x0
1725 NFTA_CT_DREG = 0x1
1726 NFTA_CT_KEY = 0x2
1727 NFTA_CT_DIRECTION = 0x3
1728 NFTA_CT_SREG = 0x4
1729 NFT_LIMIT_PKTS = 0x0
1730 NFT_LIMIT_PKT_BYTES = 0x1
1731 NFT_LIMIT_F_INV = 0x1
1732 NFTA_LIMIT_UNSPEC = 0x0
1733 NFTA_LIMIT_RATE = 0x1
1734 NFTA_LIMIT_UNIT = 0x2
1735 NFTA_LIMIT_BURST = 0x3
1736 NFTA_LIMIT_TYPE = 0x4
1737 NFTA_LIMIT_FLAGS = 0x5
1738 NFTA_LIMIT_PAD = 0x6
1739 NFTA_COUNTER_UNSPEC = 0x0
1740 NFTA_COUNTER_BYTES = 0x1
1741 NFTA_COUNTER_PACKETS = 0x2
1742 NFTA_COUNTER_PAD = 0x3
1743 NFTA_LOG_UNSPEC = 0x0
1744 NFTA_LOG_GROUP = 0x1
1745 NFTA_LOG_PREFIX = 0x2
1746 NFTA_LOG_SNAPLEN = 0x3
1747 NFTA_LOG_QTHRESHOLD = 0x4
1748 NFTA_LOG_LEVEL = 0x5
1749 NFTA_LOG_FLAGS = 0x6
1750 NFTA_QUEUE_UNSPEC = 0x0
1751 NFTA_QUEUE_NUM = 0x1
1752 NFTA_QUEUE_TOTAL = 0x2
1753 NFTA_QUEUE_FLAGS = 0x3
1754 NFTA_QUEUE_SREG_QNUM = 0x4
1755 NFT_QUOTA_F_INV = 0x1
1756 NFT_QUOTA_F_DEPLETED = 0x2
1757 NFTA_QUOTA_UNSPEC = 0x0
1758 NFTA_QUOTA_BYTES = 0x1
1759 NFTA_QUOTA_FLAGS = 0x2
1760 NFTA_QUOTA_PAD = 0x3
1761 NFTA_QUOTA_CONSUMED = 0x4
1762 NFT_REJECT_ICMP_UNREACH = 0x0
1763 NFT_REJECT_TCP_RST = 0x1
1764 NFT_REJECT_ICMPX_UNREACH = 0x2
1765 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1766 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1767 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1768 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1769 NFTA_REJECT_UNSPEC = 0x0
1770 NFTA_REJECT_TYPE = 0x1
1771 NFTA_REJECT_ICMP_CODE = 0x2
1772 NFT_NAT_SNAT = 0x0
1773 NFT_NAT_DNAT = 0x1
1774 NFTA_NAT_UNSPEC = 0x0
1775 NFTA_NAT_TYPE = 0x1
1776 NFTA_NAT_FAMILY = 0x2
1777 NFTA_NAT_REG_ADDR_MIN = 0x3
1778 NFTA_NAT_REG_ADDR_MAX = 0x4
1779 NFTA_NAT_REG_PROTO_MIN = 0x5
1780 NFTA_NAT_REG_PROTO_MAX = 0x6
1781 NFTA_NAT_FLAGS = 0x7
1782 NFTA_MASQ_UNSPEC = 0x0
1783 NFTA_MASQ_FLAGS = 0x1
1784 NFTA_MASQ_REG_PROTO_MIN = 0x2
1785 NFTA_MASQ_REG_PROTO_MAX = 0x3
1786 NFTA_REDIR_UNSPEC = 0x0
1787 NFTA_REDIR_REG_PROTO_MIN = 0x1
1788 NFTA_REDIR_REG_PROTO_MAX = 0x2
1789 NFTA_REDIR_FLAGS = 0x3
1790 NFTA_DUP_UNSPEC = 0x0
1791 NFTA_DUP_SREG_ADDR = 0x1
1792 NFTA_DUP_SREG_DEV = 0x2
1793 NFTA_FWD_UNSPEC = 0x0
1794 NFTA_FWD_SREG_DEV = 0x1
1795 NFTA_OBJREF_UNSPEC = 0x0
1796 NFTA_OBJREF_IMM_TYPE = 0x1
1797 NFTA_OBJREF_IMM_NAME = 0x2
1798 NFTA_OBJREF_SET_SREG = 0x3
1799 NFTA_OBJREF_SET_NAME = 0x4
1800 NFTA_OBJREF_SET_ID = 0x5
1801 NFTA_GEN_UNSPEC = 0x0
1802 NFTA_GEN_ID = 0x1
1803 NFTA_GEN_PROC_PID = 0x2
1804 NFTA_GEN_PROC_NAME = 0x3
1805 NFTA_FIB_UNSPEC = 0x0
1806 NFTA_FIB_DREG = 0x1
1807 NFTA_FIB_RESULT = 0x2
1808 NFTA_FIB_FLAGS = 0x3
1809 NFT_FIB_RESULT_UNSPEC = 0x0
1810 NFT_FIB_RESULT_OIF = 0x1
1811 NFT_FIB_RESULT_OIFNAME = 0x2
1812 NFT_FIB_RESULT_ADDRTYPE = 0x3
1813 NFTA_FIB_F_SADDR = 0x1
1814 NFTA_FIB_F_DADDR = 0x2
1815 NFTA_FIB_F_MARK = 0x4
1816 NFTA_FIB_F_IIF = 0x8
1817 NFTA_FIB_F_OIF = 0x10
1818 NFTA_FIB_F_PRESENT = 0x20
1819 NFTA_CT_HELPER_UNSPEC = 0x0
1820 NFTA_CT_HELPER_NAME = 0x1
1821 NFTA_CT_HELPER_L3PROTO = 0x2
1822 NFTA_CT_HELPER_L4PROTO = 0x3
1823 NFTA_OBJ_UNSPEC = 0x0
1824 NFTA_OBJ_TABLE = 0x1
1825 NFTA_OBJ_NAME = 0x2
1826 NFTA_OBJ_TYPE = 0x3
1827 NFTA_OBJ_DATA = 0x4
1828 NFTA_OBJ_USE = 0x5
1829 NFTA_TRACE_UNSPEC = 0x0
1830 NFTA_TRACE_TABLE = 0x1
1831 NFTA_TRACE_CHAIN = 0x2
1832 NFTA_TRACE_RULE_HANDLE = 0x3
1833 NFTA_TRACE_TYPE = 0x4
1834 NFTA_TRACE_VERDICT = 0x5
1835 NFTA_TRACE_ID = 0x6
1836 NFTA_TRACE_LL_HEADER = 0x7
1837 NFTA_TRACE_NETWORK_HEADER = 0x8
1838 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1839 NFTA_TRACE_IIF = 0xa
1840 NFTA_TRACE_IIFTYPE = 0xb
1841 NFTA_TRACE_OIF = 0xc
1842 NFTA_TRACE_OIFTYPE = 0xd
1843 NFTA_TRACE_MARK = 0xe
1844 NFTA_TRACE_NFPROTO = 0xf
1845 NFTA_TRACE_POLICY = 0x10
1846 NFTA_TRACE_PAD = 0x11
1847 NFT_TRACETYPE_UNSPEC = 0x0
1848 NFT_TRACETYPE_POLICY = 0x1
1849 NFT_TRACETYPE_RETURN = 0x2
1850 NFT_TRACETYPE_RULE = 0x3
1851 NFTA_NG_UNSPEC = 0x0
1852 NFTA_NG_DREG = 0x1
1853 NFTA_NG_MODULUS = 0x2
1854 NFTA_NG_TYPE = 0x3
1855 NFTA_NG_OFFSET = 0x4
1856 NFT_NG_INCREMENTAL = 0x0
1857 NFT_NG_RANDOM = 0x1
1858)
1859
1860type RTCTime struct {
1861 Sec int32
1862 Min int32
1863 Hour int32
1864 Mday int32
1865 Mon int32
1866 Year int32
1867 Wday int32
1868 Yday int32
1869 Isdst int32
1870}
1871
1872type RTCWkAlrm struct {
1873 Enabled uint8
1874 Pending uint8
1875 _ [2]byte
1876 Time RTCTime
1877}
1878
1879type RTCPLLInfo struct {
1880 Ctrl int32
1881 Value int32
1882 Max int32
1883 Min int32
1884 Posmult int32
1885 Negmult int32
1886 Clock int64
1887}
1888
1889type BlkpgIoctlArg struct {
1890 Op int32
1891 Flags int32
1892 Datalen int32
1893 _ [4]byte
1894 Data *byte
1895}
1896
1897type BlkpgPartition struct {
1898 Start int64
1899 Length int64
1900 Pno int32
1901 Devname [64]uint8
1902 Volname [64]uint8
1903 _ [4]byte
1904}
1905
1906const (
1907 BLKPG = 0x20001269
1908 BLKPG_ADD_PARTITION = 0x1
1909 BLKPG_DEL_PARTITION = 0x2
1910 BLKPG_RESIZE_PARTITION = 0x3
1911)
1912
1913const (
1914 NETNSA_NONE = 0x0
1915 NETNSA_NSID = 0x1
1916 NETNSA_PID = 0x2
1917 NETNSA_FD = 0x3
1918)
1919
1920type XDPRingOffset struct {
1921 Producer uint64
1922 Consumer uint64
1923 Desc uint64
1924}
1925
1926type XDPMmapOffsets struct {
1927 Rx XDPRingOffset
1928 Tx XDPRingOffset
1929 Fr XDPRingOffset
1930 Cr XDPRingOffset
1931}
1932
1933type XDPUmemReg struct {
1934 Addr uint64
1935 Len uint64
1936 Size uint32
1937 Headroom uint32
1938}
1939
1940type XDPStatistics struct {
1941 Rx_dropped uint64
1942 Rx_invalid_descs uint64
1943 Tx_invalid_descs uint64
1944}
1945
1946type XDPDesc struct {
1947 Addr uint64
1948 Len uint32
1949 Options uint32
1950}
1951
1952const (
1953 NCSI_CMD_UNSPEC = 0x0
1954 NCSI_CMD_PKG_INFO = 0x1
1955 NCSI_CMD_SET_INTERFACE = 0x2
1956 NCSI_CMD_CLEAR_INTERFACE = 0x3
1957 NCSI_ATTR_UNSPEC = 0x0
1958 NCSI_ATTR_IFINDEX = 0x1
1959 NCSI_ATTR_PACKAGE_LIST = 0x2
1960 NCSI_ATTR_PACKAGE_ID = 0x3
1961 NCSI_ATTR_CHANNEL_ID = 0x4
1962 NCSI_PKG_ATTR_UNSPEC = 0x0
1963 NCSI_PKG_ATTR = 0x1
1964 NCSI_PKG_ATTR_ID = 0x2
1965 NCSI_PKG_ATTR_FORCED = 0x3
1966 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1967 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1968 NCSI_CHANNEL_ATTR = 0x1
1969 NCSI_CHANNEL_ATTR_ID = 0x2
1970 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1971 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1972 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1973 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1974 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1975 NCSI_CHANNEL_ATTR_FORCED = 0x8
1976 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1977 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1978)
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 fa5b15b..f0f5214 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -105,7 +105,7 @@ type Stat_t struct {
105 Mode uint32 105 Mode uint32
106 Uid uint32 106 Uid uint32
107 Gid uint32 107 Gid uint32
108 X__pad2 int32 108 _ int32
109 Rdev uint64 109 Rdev uint64
110 Size int64 110 Size int64
111 Blksize int64 111 Blksize int64
@@ -118,25 +118,10 @@ type Stat_t struct {
118 _ uint64 118 _ uint64
119} 119}
120 120
121type Statfs_t struct {
122 Type int64
123 Bsize int64
124 Blocks uint64
125 Bfree uint64
126 Bavail uint64
127 Files uint64
128 Ffree uint64
129 Fsid Fsid
130 Namelen int64
131 Frsize int64
132 Flags int64
133 Spare [4]int64
134}
135
136type StatxTimestamp struct { 121type StatxTimestamp struct {
137 Sec int64 122 Sec int64
138 Nsec uint32 123 Nsec uint32
139 X__reserved int32 124 _ int32
140} 125}
141 126
142type Statx_t struct { 127type Statx_t struct {
@@ -173,7 +158,7 @@ type Dirent struct {
173} 158}
174 159
175type Fsid struct { 160type Fsid struct {
176 X__val [2]int32 161 Val [2]int32
177} 162}
178 163
179type Flock_t struct { 164type Flock_t struct {
@@ -267,6 +252,13 @@ type RawSockaddrL2 struct {
267 _ [1]byte 252 _ [1]byte
268} 253}
269 254
255type RawSockaddrRFCOMM struct {
256 Family uint16
257 Bdaddr [6]uint8
258 Channel uint8
259 _ [1]byte
260}
261
270type RawSockaddrCAN struct { 262type RawSockaddrCAN struct {
271 Family uint16 263 Family uint16
272 _ [2]byte 264 _ [2]byte
@@ -290,6 +282,14 @@ type RawSockaddrVM struct {
290 Zero [4]uint8 282 Zero [4]uint8
291} 283}
292 284
285type RawSockaddrXDP struct {
286 Family uint16
287 Flags uint16
288 Ifindex uint32
289 Queue_id uint32
290 Shared_umem_fd uint32
291}
292
293type RawSockaddr struct { 293type RawSockaddr struct {
294 Family uint16 294 Family uint16
295 Data [14]uint8 295 Data [14]uint8
@@ -422,9 +422,11 @@ const (
422 SizeofSockaddrNetlink = 0xc 422 SizeofSockaddrNetlink = 0xc
423 SizeofSockaddrHCI = 0x6 423 SizeofSockaddrHCI = 0x6
424 SizeofSockaddrL2 = 0xe 424 SizeofSockaddrL2 = 0xe
425 SizeofSockaddrRFCOMM = 0xa
425 SizeofSockaddrCAN = 0x10 426 SizeofSockaddrCAN = 0x10
426 SizeofSockaddrALG = 0x58 427 SizeofSockaddrALG = 0x58
427 SizeofSockaddrVM = 0x10 428 SizeofSockaddrVM = 0x10
429 SizeofSockaddrXDP = 0x10
428 SizeofLinger = 0x8 430 SizeofLinger = 0x8
429 SizeofIovec = 0x10 431 SizeofIovec = 0x10
430 SizeofIPMreq = 0x8 432 SizeofIPMreq = 0x8
@@ -442,97 +444,138 @@ const (
442) 444)
443 445
444const ( 446const (
445 IFA_UNSPEC = 0x0 447 IFA_UNSPEC = 0x0
446 IFA_ADDRESS = 0x1 448 IFA_ADDRESS = 0x1
447 IFA_LOCAL = 0x2 449 IFA_LOCAL = 0x2
448 IFA_LABEL = 0x3 450 IFA_LABEL = 0x3
449 IFA_BROADCAST = 0x4 451 IFA_BROADCAST = 0x4
450 IFA_ANYCAST = 0x5 452 IFA_ANYCAST = 0x5
451 IFA_CACHEINFO = 0x6 453 IFA_CACHEINFO = 0x6
452 IFA_MULTICAST = 0x7 454 IFA_MULTICAST = 0x7
453 IFLA_UNSPEC = 0x0 455 IFLA_UNSPEC = 0x0
454 IFLA_ADDRESS = 0x1 456 IFLA_ADDRESS = 0x1
455 IFLA_BROADCAST = 0x2 457 IFLA_BROADCAST = 0x2
456 IFLA_IFNAME = 0x3 458 IFLA_IFNAME = 0x3
457 IFLA_MTU = 0x4 459 IFLA_INFO_KIND = 0x1
458 IFLA_LINK = 0x5 460 IFLA_MTU = 0x4
459 IFLA_QDISC = 0x6 461 IFLA_LINK = 0x5
460 IFLA_STATS = 0x7 462 IFLA_QDISC = 0x6
461 IFLA_COST = 0x8 463 IFLA_STATS = 0x7
462 IFLA_PRIORITY = 0x9 464 IFLA_COST = 0x8
463 IFLA_MASTER = 0xa 465 IFLA_PRIORITY = 0x9
464 IFLA_WIRELESS = 0xb 466 IFLA_MASTER = 0xa
465 IFLA_PROTINFO = 0xc 467 IFLA_WIRELESS = 0xb
466 IFLA_TXQLEN = 0xd 468 IFLA_PROTINFO = 0xc
467 IFLA_MAP = 0xe 469 IFLA_TXQLEN = 0xd
468 IFLA_WEIGHT = 0xf 470 IFLA_MAP = 0xe
469 IFLA_OPERSTATE = 0x10 471 IFLA_WEIGHT = 0xf
470 IFLA_LINKMODE = 0x11 472 IFLA_OPERSTATE = 0x10
471 IFLA_LINKINFO = 0x12 473 IFLA_LINKMODE = 0x11
472 IFLA_NET_NS_PID = 0x13 474 IFLA_LINKINFO = 0x12
473 IFLA_IFALIAS = 0x14 475 IFLA_NET_NS_PID = 0x13
474 IFLA_MAX = 0x2c 476 IFLA_IFALIAS = 0x14
475 RT_SCOPE_UNIVERSE = 0x0 477 IFLA_NUM_VF = 0x15
476 RT_SCOPE_SITE = 0xc8 478 IFLA_VFINFO_LIST = 0x16
477 RT_SCOPE_LINK = 0xfd 479 IFLA_STATS64 = 0x17
478 RT_SCOPE_HOST = 0xfe 480 IFLA_VF_PORTS = 0x18
479 RT_SCOPE_NOWHERE = 0xff 481 IFLA_PORT_SELF = 0x19
480 RT_TABLE_UNSPEC = 0x0 482 IFLA_AF_SPEC = 0x1a
481 RT_TABLE_COMPAT = 0xfc 483 IFLA_GROUP = 0x1b
482 RT_TABLE_DEFAULT = 0xfd 484 IFLA_NET_NS_FD = 0x1c
483 RT_TABLE_MAIN = 0xfe 485 IFLA_EXT_MASK = 0x1d
484 RT_TABLE_LOCAL = 0xff 486 IFLA_PROMISCUITY = 0x1e
485 RT_TABLE_MAX = 0xffffffff 487 IFLA_NUM_TX_QUEUES = 0x1f
486 RTA_UNSPEC = 0x0 488 IFLA_NUM_RX_QUEUES = 0x20
487 RTA_DST = 0x1 489 IFLA_CARRIER = 0x21
488 RTA_SRC = 0x2 490 IFLA_PHYS_PORT_ID = 0x22
489 RTA_IIF = 0x3 491 IFLA_CARRIER_CHANGES = 0x23
490 RTA_OIF = 0x4 492 IFLA_PHYS_SWITCH_ID = 0x24
491 RTA_GATEWAY = 0x5 493 IFLA_LINK_NETNSID = 0x25
492 RTA_PRIORITY = 0x6 494 IFLA_PHYS_PORT_NAME = 0x26
493 RTA_PREFSRC = 0x7 495 IFLA_PROTO_DOWN = 0x27
494 RTA_METRICS = 0x8 496 IFLA_GSO_MAX_SEGS = 0x28
495 RTA_MULTIPATH = 0x9 497 IFLA_GSO_MAX_SIZE = 0x29
496 RTA_FLOW = 0xb 498 IFLA_PAD = 0x2a
497 RTA_CACHEINFO = 0xc 499 IFLA_XDP = 0x2b
498 RTA_TABLE = 0xf 500 IFLA_EVENT = 0x2c
499 RTN_UNSPEC = 0x0 501 IFLA_NEW_NETNSID = 0x2d
500 RTN_UNICAST = 0x1 502 IFLA_IF_NETNSID = 0x2e
501 RTN_LOCAL = 0x2 503 IFLA_MAX = 0x31
502 RTN_BROADCAST = 0x3 504 RT_SCOPE_UNIVERSE = 0x0
503 RTN_ANYCAST = 0x4 505 RT_SCOPE_SITE = 0xc8
504 RTN_MULTICAST = 0x5 506 RT_SCOPE_LINK = 0xfd
505 RTN_BLACKHOLE = 0x6 507 RT_SCOPE_HOST = 0xfe
506 RTN_UNREACHABLE = 0x7 508 RT_SCOPE_NOWHERE = 0xff
507 RTN_PROHIBIT = 0x8 509 RT_TABLE_UNSPEC = 0x0
508 RTN_THROW = 0x9 510 RT_TABLE_COMPAT = 0xfc
509 RTN_NAT = 0xa 511 RT_TABLE_DEFAULT = 0xfd
510 RTN_XRESOLVE = 0xb 512 RT_TABLE_MAIN = 0xfe
511 RTNLGRP_NONE = 0x0 513 RT_TABLE_LOCAL = 0xff
512 RTNLGRP_LINK = 0x1 514 RT_TABLE_MAX = 0xffffffff
513 RTNLGRP_NOTIFY = 0x2 515 RTA_UNSPEC = 0x0
514 RTNLGRP_NEIGH = 0x3 516 RTA_DST = 0x1
515 RTNLGRP_TC = 0x4 517 RTA_SRC = 0x2
516 RTNLGRP_IPV4_IFADDR = 0x5 518 RTA_IIF = 0x3
517 RTNLGRP_IPV4_MROUTE = 0x6 519 RTA_OIF = 0x4
518 RTNLGRP_IPV4_ROUTE = 0x7 520 RTA_GATEWAY = 0x5
519 RTNLGRP_IPV4_RULE = 0x8 521 RTA_PRIORITY = 0x6
520 RTNLGRP_IPV6_IFADDR = 0x9 522 RTA_PREFSRC = 0x7
521 RTNLGRP_IPV6_MROUTE = 0xa 523 RTA_METRICS = 0x8
522 RTNLGRP_IPV6_ROUTE = 0xb 524 RTA_MULTIPATH = 0x9
523 RTNLGRP_IPV6_IFINFO = 0xc 525 RTA_FLOW = 0xb
524 RTNLGRP_IPV6_PREFIX = 0x12 526 RTA_CACHEINFO = 0xc
525 RTNLGRP_IPV6_RULE = 0x13 527 RTA_TABLE = 0xf
526 RTNLGRP_ND_USEROPT = 0x14 528 RTA_MARK = 0x10
527 SizeofNlMsghdr = 0x10 529 RTA_MFC_STATS = 0x11
528 SizeofNlMsgerr = 0x14 530 RTA_VIA = 0x12
529 SizeofRtGenmsg = 0x1 531 RTA_NEWDST = 0x13
530 SizeofNlAttr = 0x4 532 RTA_PREF = 0x14
531 SizeofRtAttr = 0x4 533 RTA_ENCAP_TYPE = 0x15
532 SizeofIfInfomsg = 0x10 534 RTA_ENCAP = 0x16
533 SizeofIfAddrmsg = 0x8 535 RTA_EXPIRES = 0x17
534 SizeofRtMsg = 0xc 536 RTA_PAD = 0x18
535 SizeofRtNexthop = 0x8 537 RTA_UID = 0x19
538 RTA_TTL_PROPAGATE = 0x1a
539 RTA_IP_PROTO = 0x1b
540 RTA_SPORT = 0x1c
541 RTA_DPORT = 0x1d
542 RTN_UNSPEC = 0x0
543 RTN_UNICAST = 0x1
544 RTN_LOCAL = 0x2
545 RTN_BROADCAST = 0x3
546 RTN_ANYCAST = 0x4
547 RTN_MULTICAST = 0x5
548 RTN_BLACKHOLE = 0x6
549 RTN_UNREACHABLE = 0x7
550 RTN_PROHIBIT = 0x8
551 RTN_THROW = 0x9
552 RTN_NAT = 0xa
553 RTN_XRESOLVE = 0xb
554 RTNLGRP_NONE = 0x0
555 RTNLGRP_LINK = 0x1
556 RTNLGRP_NOTIFY = 0x2
557 RTNLGRP_NEIGH = 0x3
558 RTNLGRP_TC = 0x4
559 RTNLGRP_IPV4_IFADDR = 0x5
560 RTNLGRP_IPV4_MROUTE = 0x6
561 RTNLGRP_IPV4_ROUTE = 0x7
562 RTNLGRP_IPV4_RULE = 0x8
563 RTNLGRP_IPV6_IFADDR = 0x9
564 RTNLGRP_IPV6_MROUTE = 0xa
565 RTNLGRP_IPV6_ROUTE = 0xb
566 RTNLGRP_IPV6_IFINFO = 0xc
567 RTNLGRP_IPV6_PREFIX = 0x12
568 RTNLGRP_IPV6_RULE = 0x13
569 RTNLGRP_ND_USEROPT = 0x14
570 SizeofNlMsghdr = 0x10
571 SizeofNlMsgerr = 0x14
572 SizeofRtGenmsg = 0x1
573 SizeofNlAttr = 0x4
574 SizeofRtAttr = 0x4
575 SizeofIfInfomsg = 0x10
576 SizeofIfAddrmsg = 0x8
577 SizeofRtMsg = 0xc
578 SizeofRtNexthop = 0x8
536) 579)
537 580
538type NlMsghdr struct { 581type NlMsghdr struct {
@@ -563,12 +606,12 @@ type RtAttr struct {
563} 606}
564 607
565type IfInfomsg struct { 608type IfInfomsg struct {
566 Family uint8 609 Family uint8
567 X__ifi_pad uint8 610 _ uint8
568 Type uint16 611 Type uint16
569 Index int32 612 Index int32
570 Flags uint32 613 Flags uint32
571 Change uint32 614 Change uint32
572} 615}
573 616
574type IfAddrmsg struct { 617type IfAddrmsg struct {
@@ -660,7 +703,7 @@ type Sysinfo_t struct {
660 Totalhigh uint64 703 Totalhigh uint64
661 Freehigh uint64 704 Freehigh uint64
662 Unit uint32 705 Unit uint32
663 X_f [0]uint8 706 _ [0]uint8
664 _ [4]byte 707 _ [4]byte
665} 708}
666 709
@@ -683,10 +726,10 @@ type Ustat_t struct {
683} 726}
684 727
685type EpollEvent struct { 728type EpollEvent struct {
686 Events uint32 729 Events uint32
687 X_padFd int32 730 _ int32
688 Fd int32 731 Fd int32
689 Pad int32 732 Pad int32
690} 733}
691 734
692const ( 735const (
@@ -701,6 +744,8 @@ const (
701 744
702 AT_SYMLINK_FOLLOW = 0x400 745 AT_SYMLINK_FOLLOW = 0x400
703 AT_SYMLINK_NOFOLLOW = 0x100 746 AT_SYMLINK_NOFOLLOW = 0x100
747
748 AT_EACCESS = 0x200
704) 749)
705 750
706type PollFd struct { 751type PollFd struct {
@@ -720,7 +765,7 @@ const (
720) 765)
721 766
722type Sigset_t struct { 767type Sigset_t struct {
723 X__val [16]uint64 768 Val [16]uint64
724} 769}
725 770
726const RNDGETENTCNT = 0x40045200 771const RNDGETENTCNT = 0x40045200
@@ -876,3 +921,1058 @@ const (
876 BDADDR_LE_PUBLIC = 0x1 921 BDADDR_LE_PUBLIC = 0x1
877 BDADDR_LE_RANDOM = 0x2 922 BDADDR_LE_RANDOM = 0x2
878) 923)
924
925type PerfEventAttr struct {
926 Type uint32
927 Size uint32
928 Config uint64
929 Sample uint64
930 Sample_type uint64
931 Read_format uint64
932 Bits uint64
933 Wakeup uint32
934 Bp_type uint32
935 Ext1 uint64
936 Ext2 uint64
937 Branch_sample_type uint64
938 Sample_regs_user uint64
939 Sample_stack_user uint32
940 Clockid int32
941 Sample_regs_intr uint64
942 Aux_watermark uint32
943 _ uint32
944}
945
946type PerfEventMmapPage struct {
947 Version uint32
948 Compat_version uint32
949 Lock uint32
950 Index uint32
951 Offset int64
952 Time_enabled uint64
953 Time_running uint64
954 Capabilities uint64
955 Pmc_width uint16
956 Time_shift uint16
957 Time_mult uint32
958 Time_offset uint64
959 Time_zero uint64
960 Size uint32
961 _ [948]uint8
962 Data_head uint64
963 Data_tail uint64
964 Data_offset uint64
965 Data_size uint64
966 Aux_head uint64
967 Aux_tail uint64
968 Aux_offset uint64
969 Aux_size uint64
970}
971
972const (
973 PerfBitDisabled uint64 = CBitFieldMaskBit0
974 PerfBitInherit = CBitFieldMaskBit1
975 PerfBitPinned = CBitFieldMaskBit2
976 PerfBitExclusive = CBitFieldMaskBit3
977 PerfBitExcludeUser = CBitFieldMaskBit4
978 PerfBitExcludeKernel = CBitFieldMaskBit5
979 PerfBitExcludeHv = CBitFieldMaskBit6
980 PerfBitExcludeIdle = CBitFieldMaskBit7
981 PerfBitMmap = CBitFieldMaskBit8
982 PerfBitComm = CBitFieldMaskBit9
983 PerfBitFreq = CBitFieldMaskBit10
984 PerfBitInheritStat = CBitFieldMaskBit11
985 PerfBitEnableOnExec = CBitFieldMaskBit12
986 PerfBitTask = CBitFieldMaskBit13
987 PerfBitWatermark = CBitFieldMaskBit14
988 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
989 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
990 PerfBitMmapData = CBitFieldMaskBit17
991 PerfBitSampleIDAll = CBitFieldMaskBit18
992 PerfBitExcludeHost = CBitFieldMaskBit19
993 PerfBitExcludeGuest = CBitFieldMaskBit20
994 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
995 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
996 PerfBitMmap2 = CBitFieldMaskBit23
997 PerfBitCommExec = CBitFieldMaskBit24
998 PerfBitUseClockID = CBitFieldMaskBit25
999 PerfBitContextSwitch = CBitFieldMaskBit26
1000)
1001
1002const (
1003 PERF_TYPE_HARDWARE = 0x0
1004 PERF_TYPE_SOFTWARE = 0x1
1005 PERF_TYPE_TRACEPOINT = 0x2
1006 PERF_TYPE_HW_CACHE = 0x3
1007 PERF_TYPE_RAW = 0x4
1008 PERF_TYPE_BREAKPOINT = 0x5
1009
1010 PERF_COUNT_HW_CPU_CYCLES = 0x0
1011 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1012 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1013 PERF_COUNT_HW_CACHE_MISSES = 0x3
1014 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1015 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1016 PERF_COUNT_HW_BUS_CYCLES = 0x6
1017 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1018 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1019 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1020
1021 PERF_COUNT_HW_CACHE_L1D = 0x0
1022 PERF_COUNT_HW_CACHE_L1I = 0x1
1023 PERF_COUNT_HW_CACHE_LL = 0x2
1024 PERF_COUNT_HW_CACHE_DTLB = 0x3
1025 PERF_COUNT_HW_CACHE_ITLB = 0x4
1026 PERF_COUNT_HW_CACHE_BPU = 0x5
1027 PERF_COUNT_HW_CACHE_NODE = 0x6
1028
1029 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1030 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1031 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1032
1033 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1034 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1035
1036 PERF_COUNT_SW_CPU_CLOCK = 0x0
1037 PERF_COUNT_SW_TASK_CLOCK = 0x1
1038 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1039 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1040 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1041 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1042 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1043 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1044 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1045 PERF_COUNT_SW_DUMMY = 0x9
1046
1047 PERF_SAMPLE_IP = 0x1
1048 PERF_SAMPLE_TID = 0x2
1049 PERF_SAMPLE_TIME = 0x4
1050 PERF_SAMPLE_ADDR = 0x8
1051 PERF_SAMPLE_READ = 0x10
1052 PERF_SAMPLE_CALLCHAIN = 0x20
1053 PERF_SAMPLE_ID = 0x40
1054 PERF_SAMPLE_CPU = 0x80
1055 PERF_SAMPLE_PERIOD = 0x100
1056 PERF_SAMPLE_STREAM_ID = 0x200
1057 PERF_SAMPLE_RAW = 0x400
1058 PERF_SAMPLE_BRANCH_STACK = 0x800
1059
1060 PERF_SAMPLE_BRANCH_USER = 0x1
1061 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1062 PERF_SAMPLE_BRANCH_HV = 0x4
1063 PERF_SAMPLE_BRANCH_ANY = 0x8
1064 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1065 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1066 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1067
1068 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1069 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1070 PERF_FORMAT_ID = 0x4
1071 PERF_FORMAT_GROUP = 0x8
1072
1073 PERF_RECORD_MMAP = 0x1
1074 PERF_RECORD_LOST = 0x2
1075 PERF_RECORD_COMM = 0x3
1076 PERF_RECORD_EXIT = 0x4
1077 PERF_RECORD_THROTTLE = 0x5
1078 PERF_RECORD_UNTHROTTLE = 0x6
1079 PERF_RECORD_FORK = 0x7
1080 PERF_RECORD_READ = 0x8
1081 PERF_RECORD_SAMPLE = 0x9
1082
1083 PERF_CONTEXT_HV = -0x20
1084 PERF_CONTEXT_KERNEL = -0x80
1085 PERF_CONTEXT_USER = -0x200
1086
1087 PERF_CONTEXT_GUEST = -0x800
1088 PERF_CONTEXT_GUEST_KERNEL = -0x880
1089 PERF_CONTEXT_GUEST_USER = -0xa00
1090
1091 PERF_FLAG_FD_NO_GROUP = 0x1
1092 PERF_FLAG_FD_OUTPUT = 0x2
1093 PERF_FLAG_PID_CGROUP = 0x4
1094)
1095
1096const (
1097 CBitFieldMaskBit0 = 0x1
1098 CBitFieldMaskBit1 = 0x2
1099 CBitFieldMaskBit2 = 0x4
1100 CBitFieldMaskBit3 = 0x8
1101 CBitFieldMaskBit4 = 0x10
1102 CBitFieldMaskBit5 = 0x20
1103 CBitFieldMaskBit6 = 0x40
1104 CBitFieldMaskBit7 = 0x80
1105 CBitFieldMaskBit8 = 0x100
1106 CBitFieldMaskBit9 = 0x200
1107 CBitFieldMaskBit10 = 0x400
1108 CBitFieldMaskBit11 = 0x800
1109 CBitFieldMaskBit12 = 0x1000
1110 CBitFieldMaskBit13 = 0x2000
1111 CBitFieldMaskBit14 = 0x4000
1112 CBitFieldMaskBit15 = 0x8000
1113 CBitFieldMaskBit16 = 0x10000
1114 CBitFieldMaskBit17 = 0x20000
1115 CBitFieldMaskBit18 = 0x40000
1116 CBitFieldMaskBit19 = 0x80000
1117 CBitFieldMaskBit20 = 0x100000
1118 CBitFieldMaskBit21 = 0x200000
1119 CBitFieldMaskBit22 = 0x400000
1120 CBitFieldMaskBit23 = 0x800000
1121 CBitFieldMaskBit24 = 0x1000000
1122 CBitFieldMaskBit25 = 0x2000000
1123 CBitFieldMaskBit26 = 0x4000000
1124 CBitFieldMaskBit27 = 0x8000000
1125 CBitFieldMaskBit28 = 0x10000000
1126 CBitFieldMaskBit29 = 0x20000000
1127 CBitFieldMaskBit30 = 0x40000000
1128 CBitFieldMaskBit31 = 0x80000000
1129 CBitFieldMaskBit32 = 0x100000000
1130 CBitFieldMaskBit33 = 0x200000000
1131 CBitFieldMaskBit34 = 0x400000000
1132 CBitFieldMaskBit35 = 0x800000000
1133 CBitFieldMaskBit36 = 0x1000000000
1134 CBitFieldMaskBit37 = 0x2000000000
1135 CBitFieldMaskBit38 = 0x4000000000
1136 CBitFieldMaskBit39 = 0x8000000000
1137 CBitFieldMaskBit40 = 0x10000000000
1138 CBitFieldMaskBit41 = 0x20000000000
1139 CBitFieldMaskBit42 = 0x40000000000
1140 CBitFieldMaskBit43 = 0x80000000000
1141 CBitFieldMaskBit44 = 0x100000000000
1142 CBitFieldMaskBit45 = 0x200000000000
1143 CBitFieldMaskBit46 = 0x400000000000
1144 CBitFieldMaskBit47 = 0x800000000000
1145 CBitFieldMaskBit48 = 0x1000000000000
1146 CBitFieldMaskBit49 = 0x2000000000000
1147 CBitFieldMaskBit50 = 0x4000000000000
1148 CBitFieldMaskBit51 = 0x8000000000000
1149 CBitFieldMaskBit52 = 0x10000000000000
1150 CBitFieldMaskBit53 = 0x20000000000000
1151 CBitFieldMaskBit54 = 0x40000000000000
1152 CBitFieldMaskBit55 = 0x80000000000000
1153 CBitFieldMaskBit56 = 0x100000000000000
1154 CBitFieldMaskBit57 = 0x200000000000000
1155 CBitFieldMaskBit58 = 0x400000000000000
1156 CBitFieldMaskBit59 = 0x800000000000000
1157 CBitFieldMaskBit60 = 0x1000000000000000
1158 CBitFieldMaskBit61 = 0x2000000000000000
1159 CBitFieldMaskBit62 = 0x4000000000000000
1160 CBitFieldMaskBit63 = 0x8000000000000000
1161)
1162
1163type SockaddrStorage struct {
1164 Family uint16
1165 _ [118]uint8
1166 _ uint64
1167}
1168
1169type TCPMD5Sig struct {
1170 Addr SockaddrStorage
1171 Flags uint8
1172 Prefixlen uint8
1173 Keylen uint16
1174 _ uint32
1175 Key [80]uint8
1176}
1177
1178type HDDriveCmdHdr struct {
1179 Command uint8
1180 Number uint8
1181 Feature uint8
1182 Count uint8
1183}
1184
1185type HDGeometry struct {
1186 Heads uint8
1187 Sectors uint8
1188 Cylinders uint16
1189 _ [4]byte
1190 Start uint64
1191}
1192
1193type HDDriveID struct {
1194 Config uint16
1195 Cyls uint16
1196 Reserved2 uint16
1197 Heads uint16
1198 Track_bytes uint16
1199 Sector_bytes uint16
1200 Sectors uint16
1201 Vendor0 uint16
1202 Vendor1 uint16
1203 Vendor2 uint16
1204 Serial_no [20]uint8
1205 Buf_type uint16
1206 Buf_size uint16
1207 Ecc_bytes uint16
1208 Fw_rev [8]uint8
1209 Model [40]uint8
1210 Max_multsect uint8
1211 Vendor3 uint8
1212 Dword_io uint16
1213 Vendor4 uint8
1214 Capability uint8
1215 Reserved50 uint16
1216 Vendor5 uint8
1217 TPIO uint8
1218 Vendor6 uint8
1219 TDMA uint8
1220 Field_valid uint16
1221 Cur_cyls uint16
1222 Cur_heads uint16
1223 Cur_sectors uint16
1224 Cur_capacity0 uint16
1225 Cur_capacity1 uint16
1226 Multsect uint8
1227 Multsect_valid uint8
1228 Lba_capacity uint32
1229 Dma_1word uint16
1230 Dma_mword uint16
1231 Eide_pio_modes uint16
1232 Eide_dma_min uint16
1233 Eide_dma_time uint16
1234 Eide_pio uint16
1235 Eide_pio_iordy uint16
1236 Words69_70 [2]uint16
1237 Words71_74 [4]uint16
1238 Queue_depth uint16
1239 Words76_79 [4]uint16
1240 Major_rev_num uint16
1241 Minor_rev_num uint16
1242 Command_set_1 uint16
1243 Command_set_2 uint16
1244 Cfsse uint16
1245 Cfs_enable_1 uint16
1246 Cfs_enable_2 uint16
1247 Csf_default uint16
1248 Dma_ultra uint16
1249 Trseuc uint16
1250 TrsEuc uint16
1251 CurAPMvalues uint16
1252 Mprc uint16
1253 Hw_config uint16
1254 Acoustic uint16
1255 Msrqs uint16
1256 Sxfert uint16
1257 Sal uint16
1258 Spg uint32
1259 Lba_capacity_2 uint64
1260 Words104_125 [22]uint16
1261 Last_lun uint16
1262 Word127 uint16
1263 Dlf uint16
1264 Csfo uint16
1265 Words130_155 [26]uint16
1266 Word156 uint16
1267 Words157_159 [3]uint16
1268 Cfa_power uint16
1269 Words161_175 [15]uint16
1270 Words176_205 [30]uint16
1271 Words206_254 [49]uint16
1272 Integrity_word uint16
1273}
1274
1275type Statfs_t struct {
1276 Type int64
1277 Bsize int64
1278 Blocks uint64
1279 Bfree uint64
1280 Bavail uint64
1281 Files uint64
1282 Ffree uint64
1283 Fsid Fsid
1284 Namelen int64
1285 Frsize int64
1286 Flags int64
1287 Spare [4]int64
1288}
1289
1290const (
1291 ST_MANDLOCK = 0x40
1292 ST_NOATIME = 0x400
1293 ST_NODEV = 0x4
1294 ST_NODIRATIME = 0x800
1295 ST_NOEXEC = 0x8
1296 ST_NOSUID = 0x2
1297 ST_RDONLY = 0x1
1298 ST_RELATIME = 0x1000
1299 ST_SYNCHRONOUS = 0x10
1300)
1301
1302type TpacketHdr struct {
1303 Status uint64
1304 Len uint32
1305 Snaplen uint32
1306 Mac uint16
1307 Net uint16
1308 Sec uint32
1309 Usec uint32
1310 _ [4]byte
1311}
1312
1313type Tpacket2Hdr struct {
1314 Status uint32
1315 Len uint32
1316 Snaplen uint32
1317 Mac uint16
1318 Net uint16
1319 Sec uint32
1320 Nsec uint32
1321 Vlan_tci uint16
1322 Vlan_tpid uint16
1323 _ [4]uint8
1324}
1325
1326type Tpacket3Hdr struct {
1327 Next_offset uint32
1328 Sec uint32
1329 Nsec uint32
1330 Snaplen uint32
1331 Len uint32
1332 Status uint32
1333 Mac uint16
1334 Net uint16
1335 Hv1 TpacketHdrVariant1
1336 _ [8]uint8
1337}
1338
1339type TpacketHdrVariant1 struct {
1340 Rxhash uint32
1341 Vlan_tci uint32
1342 Vlan_tpid uint16
1343 _ uint16
1344}
1345
1346type TpacketBlockDesc struct {
1347 Version uint32
1348 To_priv uint32
1349 Hdr [40]byte
1350}
1351
1352type TpacketReq struct {
1353 Block_size uint32
1354 Block_nr uint32
1355 Frame_size uint32
1356 Frame_nr uint32
1357}
1358
1359type TpacketReq3 struct {
1360 Block_size uint32
1361 Block_nr uint32
1362 Frame_size uint32
1363 Frame_nr uint32
1364 Retire_blk_tov uint32
1365 Sizeof_priv uint32
1366 Feature_req_word uint32
1367}
1368
1369type TpacketStats struct {
1370 Packets uint32
1371 Drops uint32
1372}
1373
1374type TpacketStatsV3 struct {
1375 Packets uint32
1376 Drops uint32
1377 Freeze_q_cnt uint32
1378}
1379
1380type TpacketAuxdata struct {
1381 Status uint32
1382 Len uint32
1383 Snaplen uint32
1384 Mac uint16
1385 Net uint16
1386 Vlan_tci uint16
1387 Vlan_tpid uint16
1388}
1389
1390const (
1391 TPACKET_V1 = 0x0
1392 TPACKET_V2 = 0x1
1393 TPACKET_V3 = 0x2
1394)
1395
1396const (
1397 SizeofTpacketHdr = 0x20
1398 SizeofTpacket2Hdr = 0x20
1399 SizeofTpacket3Hdr = 0x30
1400)
1401
1402const (
1403 NF_INET_PRE_ROUTING = 0x0
1404 NF_INET_LOCAL_IN = 0x1
1405 NF_INET_FORWARD = 0x2
1406 NF_INET_LOCAL_OUT = 0x3
1407 NF_INET_POST_ROUTING = 0x4
1408 NF_INET_NUMHOOKS = 0x5
1409)
1410
1411const (
1412 NF_NETDEV_INGRESS = 0x0
1413 NF_NETDEV_NUMHOOKS = 0x1
1414)
1415
1416const (
1417 NFPROTO_UNSPEC = 0x0
1418 NFPROTO_INET = 0x1
1419 NFPROTO_IPV4 = 0x2
1420 NFPROTO_ARP = 0x3
1421 NFPROTO_NETDEV = 0x5
1422 NFPROTO_BRIDGE = 0x7
1423 NFPROTO_IPV6 = 0xa
1424 NFPROTO_DECNET = 0xc
1425 NFPROTO_NUMPROTO = 0xd
1426)
1427
1428type Nfgenmsg struct {
1429 Nfgen_family uint8
1430 Version uint8
1431 Res_id uint16
1432}
1433
1434const (
1435 NFNL_BATCH_UNSPEC = 0x0
1436 NFNL_BATCH_GENID = 0x1
1437)
1438
1439const (
1440 NFT_REG_VERDICT = 0x0
1441 NFT_REG_1 = 0x1
1442 NFT_REG_2 = 0x2
1443 NFT_REG_3 = 0x3
1444 NFT_REG_4 = 0x4
1445 NFT_REG32_00 = 0x8
1446 NFT_REG32_01 = 0x9
1447 NFT_REG32_02 = 0xa
1448 NFT_REG32_03 = 0xb
1449 NFT_REG32_04 = 0xc
1450 NFT_REG32_05 = 0xd
1451 NFT_REG32_06 = 0xe
1452 NFT_REG32_07 = 0xf
1453 NFT_REG32_08 = 0x10
1454 NFT_REG32_09 = 0x11
1455 NFT_REG32_10 = 0x12
1456 NFT_REG32_11 = 0x13
1457 NFT_REG32_12 = 0x14
1458 NFT_REG32_13 = 0x15
1459 NFT_REG32_14 = 0x16
1460 NFT_REG32_15 = 0x17
1461 NFT_CONTINUE = -0x1
1462 NFT_BREAK = -0x2
1463 NFT_JUMP = -0x3
1464 NFT_GOTO = -0x4
1465 NFT_RETURN = -0x5
1466 NFT_MSG_NEWTABLE = 0x0
1467 NFT_MSG_GETTABLE = 0x1
1468 NFT_MSG_DELTABLE = 0x2
1469 NFT_MSG_NEWCHAIN = 0x3
1470 NFT_MSG_GETCHAIN = 0x4
1471 NFT_MSG_DELCHAIN = 0x5
1472 NFT_MSG_NEWRULE = 0x6
1473 NFT_MSG_GETRULE = 0x7
1474 NFT_MSG_DELRULE = 0x8
1475 NFT_MSG_NEWSET = 0x9
1476 NFT_MSG_GETSET = 0xa
1477 NFT_MSG_DELSET = 0xb
1478 NFT_MSG_NEWSETELEM = 0xc
1479 NFT_MSG_GETSETELEM = 0xd
1480 NFT_MSG_DELSETELEM = 0xe
1481 NFT_MSG_NEWGEN = 0xf
1482 NFT_MSG_GETGEN = 0x10
1483 NFT_MSG_TRACE = 0x11
1484 NFT_MSG_NEWOBJ = 0x12
1485 NFT_MSG_GETOBJ = 0x13
1486 NFT_MSG_DELOBJ = 0x14
1487 NFT_MSG_GETOBJ_RESET = 0x15
1488 NFT_MSG_MAX = 0x19
1489 NFTA_LIST_UNPEC = 0x0
1490 NFTA_LIST_ELEM = 0x1
1491 NFTA_HOOK_UNSPEC = 0x0
1492 NFTA_HOOK_HOOKNUM = 0x1
1493 NFTA_HOOK_PRIORITY = 0x2
1494 NFTA_HOOK_DEV = 0x3
1495 NFT_TABLE_F_DORMANT = 0x1
1496 NFTA_TABLE_UNSPEC = 0x0
1497 NFTA_TABLE_NAME = 0x1
1498 NFTA_TABLE_FLAGS = 0x2
1499 NFTA_TABLE_USE = 0x3
1500 NFTA_CHAIN_UNSPEC = 0x0
1501 NFTA_CHAIN_TABLE = 0x1
1502 NFTA_CHAIN_HANDLE = 0x2
1503 NFTA_CHAIN_NAME = 0x3
1504 NFTA_CHAIN_HOOK = 0x4
1505 NFTA_CHAIN_POLICY = 0x5
1506 NFTA_CHAIN_USE = 0x6
1507 NFTA_CHAIN_TYPE = 0x7
1508 NFTA_CHAIN_COUNTERS = 0x8
1509 NFTA_CHAIN_PAD = 0x9
1510 NFTA_RULE_UNSPEC = 0x0
1511 NFTA_RULE_TABLE = 0x1
1512 NFTA_RULE_CHAIN = 0x2
1513 NFTA_RULE_HANDLE = 0x3
1514 NFTA_RULE_EXPRESSIONS = 0x4
1515 NFTA_RULE_COMPAT = 0x5
1516 NFTA_RULE_POSITION = 0x6
1517 NFTA_RULE_USERDATA = 0x7
1518 NFTA_RULE_PAD = 0x8
1519 NFTA_RULE_ID = 0x9
1520 NFT_RULE_COMPAT_F_INV = 0x2
1521 NFT_RULE_COMPAT_F_MASK = 0x2
1522 NFTA_RULE_COMPAT_UNSPEC = 0x0
1523 NFTA_RULE_COMPAT_PROTO = 0x1
1524 NFTA_RULE_COMPAT_FLAGS = 0x2
1525 NFT_SET_ANONYMOUS = 0x1
1526 NFT_SET_CONSTANT = 0x2
1527 NFT_SET_INTERVAL = 0x4
1528 NFT_SET_MAP = 0x8
1529 NFT_SET_TIMEOUT = 0x10
1530 NFT_SET_EVAL = 0x20
1531 NFT_SET_OBJECT = 0x40
1532 NFT_SET_POL_PERFORMANCE = 0x0
1533 NFT_SET_POL_MEMORY = 0x1
1534 NFTA_SET_DESC_UNSPEC = 0x0
1535 NFTA_SET_DESC_SIZE = 0x1
1536 NFTA_SET_UNSPEC = 0x0
1537 NFTA_SET_TABLE = 0x1
1538 NFTA_SET_NAME = 0x2
1539 NFTA_SET_FLAGS = 0x3
1540 NFTA_SET_KEY_TYPE = 0x4
1541 NFTA_SET_KEY_LEN = 0x5
1542 NFTA_SET_DATA_TYPE = 0x6
1543 NFTA_SET_DATA_LEN = 0x7
1544 NFTA_SET_POLICY = 0x8
1545 NFTA_SET_DESC = 0x9
1546 NFTA_SET_ID = 0xa
1547 NFTA_SET_TIMEOUT = 0xb
1548 NFTA_SET_GC_INTERVAL = 0xc
1549 NFTA_SET_USERDATA = 0xd
1550 NFTA_SET_PAD = 0xe
1551 NFTA_SET_OBJ_TYPE = 0xf
1552 NFT_SET_ELEM_INTERVAL_END = 0x1
1553 NFTA_SET_ELEM_UNSPEC = 0x0
1554 NFTA_SET_ELEM_KEY = 0x1
1555 NFTA_SET_ELEM_DATA = 0x2
1556 NFTA_SET_ELEM_FLAGS = 0x3
1557 NFTA_SET_ELEM_TIMEOUT = 0x4
1558 NFTA_SET_ELEM_EXPIRATION = 0x5
1559 NFTA_SET_ELEM_USERDATA = 0x6
1560 NFTA_SET_ELEM_EXPR = 0x7
1561 NFTA_SET_ELEM_PAD = 0x8
1562 NFTA_SET_ELEM_OBJREF = 0x9
1563 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1564 NFTA_SET_ELEM_LIST_TABLE = 0x1
1565 NFTA_SET_ELEM_LIST_SET = 0x2
1566 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1567 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1568 NFT_DATA_VALUE = 0x0
1569 NFT_DATA_VERDICT = 0xffffff00
1570 NFTA_DATA_UNSPEC = 0x0
1571 NFTA_DATA_VALUE = 0x1
1572 NFTA_DATA_VERDICT = 0x2
1573 NFTA_VERDICT_UNSPEC = 0x0
1574 NFTA_VERDICT_CODE = 0x1
1575 NFTA_VERDICT_CHAIN = 0x2
1576 NFTA_EXPR_UNSPEC = 0x0
1577 NFTA_EXPR_NAME = 0x1
1578 NFTA_EXPR_DATA = 0x2
1579 NFTA_IMMEDIATE_UNSPEC = 0x0
1580 NFTA_IMMEDIATE_DREG = 0x1
1581 NFTA_IMMEDIATE_DATA = 0x2
1582 NFTA_BITWISE_UNSPEC = 0x0
1583 NFTA_BITWISE_SREG = 0x1
1584 NFTA_BITWISE_DREG = 0x2
1585 NFTA_BITWISE_LEN = 0x3
1586 NFTA_BITWISE_MASK = 0x4
1587 NFTA_BITWISE_XOR = 0x5
1588 NFT_BYTEORDER_NTOH = 0x0
1589 NFT_BYTEORDER_HTON = 0x1
1590 NFTA_BYTEORDER_UNSPEC = 0x0
1591 NFTA_BYTEORDER_SREG = 0x1
1592 NFTA_BYTEORDER_DREG = 0x2
1593 NFTA_BYTEORDER_OP = 0x3
1594 NFTA_BYTEORDER_LEN = 0x4
1595 NFTA_BYTEORDER_SIZE = 0x5
1596 NFT_CMP_EQ = 0x0
1597 NFT_CMP_NEQ = 0x1
1598 NFT_CMP_LT = 0x2
1599 NFT_CMP_LTE = 0x3
1600 NFT_CMP_GT = 0x4
1601 NFT_CMP_GTE = 0x5
1602 NFTA_CMP_UNSPEC = 0x0
1603 NFTA_CMP_SREG = 0x1
1604 NFTA_CMP_OP = 0x2
1605 NFTA_CMP_DATA = 0x3
1606 NFT_RANGE_EQ = 0x0
1607 NFT_RANGE_NEQ = 0x1
1608 NFTA_RANGE_UNSPEC = 0x0
1609 NFTA_RANGE_SREG = 0x1
1610 NFTA_RANGE_OP = 0x2
1611 NFTA_RANGE_FROM_DATA = 0x3
1612 NFTA_RANGE_TO_DATA = 0x4
1613 NFT_LOOKUP_F_INV = 0x1
1614 NFTA_LOOKUP_UNSPEC = 0x0
1615 NFTA_LOOKUP_SET = 0x1
1616 NFTA_LOOKUP_SREG = 0x2
1617 NFTA_LOOKUP_DREG = 0x3
1618 NFTA_LOOKUP_SET_ID = 0x4
1619 NFTA_LOOKUP_FLAGS = 0x5
1620 NFT_DYNSET_OP_ADD = 0x0
1621 NFT_DYNSET_OP_UPDATE = 0x1
1622 NFT_DYNSET_F_INV = 0x1
1623 NFTA_DYNSET_UNSPEC = 0x0
1624 NFTA_DYNSET_SET_NAME = 0x1
1625 NFTA_DYNSET_SET_ID = 0x2
1626 NFTA_DYNSET_OP = 0x3
1627 NFTA_DYNSET_SREG_KEY = 0x4
1628 NFTA_DYNSET_SREG_DATA = 0x5
1629 NFTA_DYNSET_TIMEOUT = 0x6
1630 NFTA_DYNSET_EXPR = 0x7
1631 NFTA_DYNSET_PAD = 0x8
1632 NFTA_DYNSET_FLAGS = 0x9
1633 NFT_PAYLOAD_LL_HEADER = 0x0
1634 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1635 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1636 NFT_PAYLOAD_CSUM_NONE = 0x0
1637 NFT_PAYLOAD_CSUM_INET = 0x1
1638 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1639 NFTA_PAYLOAD_UNSPEC = 0x0
1640 NFTA_PAYLOAD_DREG = 0x1
1641 NFTA_PAYLOAD_BASE = 0x2
1642 NFTA_PAYLOAD_OFFSET = 0x3
1643 NFTA_PAYLOAD_LEN = 0x4
1644 NFTA_PAYLOAD_SREG = 0x5
1645 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1646 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1647 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1648 NFT_EXTHDR_F_PRESENT = 0x1
1649 NFT_EXTHDR_OP_IPV6 = 0x0
1650 NFT_EXTHDR_OP_TCPOPT = 0x1
1651 NFTA_EXTHDR_UNSPEC = 0x0
1652 NFTA_EXTHDR_DREG = 0x1
1653 NFTA_EXTHDR_TYPE = 0x2
1654 NFTA_EXTHDR_OFFSET = 0x3
1655 NFTA_EXTHDR_LEN = 0x4
1656 NFTA_EXTHDR_FLAGS = 0x5
1657 NFTA_EXTHDR_OP = 0x6
1658 NFTA_EXTHDR_SREG = 0x7
1659 NFT_META_LEN = 0x0
1660 NFT_META_PROTOCOL = 0x1
1661 NFT_META_PRIORITY = 0x2
1662 NFT_META_MARK = 0x3
1663 NFT_META_IIF = 0x4
1664 NFT_META_OIF = 0x5
1665 NFT_META_IIFNAME = 0x6
1666 NFT_META_OIFNAME = 0x7
1667 NFT_META_IIFTYPE = 0x8
1668 NFT_META_OIFTYPE = 0x9
1669 NFT_META_SKUID = 0xa
1670 NFT_META_SKGID = 0xb
1671 NFT_META_NFTRACE = 0xc
1672 NFT_META_RTCLASSID = 0xd
1673 NFT_META_SECMARK = 0xe
1674 NFT_META_NFPROTO = 0xf
1675 NFT_META_L4PROTO = 0x10
1676 NFT_META_BRI_IIFNAME = 0x11
1677 NFT_META_BRI_OIFNAME = 0x12
1678 NFT_META_PKTTYPE = 0x13
1679 NFT_META_CPU = 0x14
1680 NFT_META_IIFGROUP = 0x15
1681 NFT_META_OIFGROUP = 0x16
1682 NFT_META_CGROUP = 0x17
1683 NFT_META_PRANDOM = 0x18
1684 NFT_RT_CLASSID = 0x0
1685 NFT_RT_NEXTHOP4 = 0x1
1686 NFT_RT_NEXTHOP6 = 0x2
1687 NFT_RT_TCPMSS = 0x3
1688 NFT_HASH_JENKINS = 0x0
1689 NFT_HASH_SYM = 0x1
1690 NFTA_HASH_UNSPEC = 0x0
1691 NFTA_HASH_SREG = 0x1
1692 NFTA_HASH_DREG = 0x2
1693 NFTA_HASH_LEN = 0x3
1694 NFTA_HASH_MODULUS = 0x4
1695 NFTA_HASH_SEED = 0x5
1696 NFTA_HASH_OFFSET = 0x6
1697 NFTA_HASH_TYPE = 0x7
1698 NFTA_META_UNSPEC = 0x0
1699 NFTA_META_DREG = 0x1
1700 NFTA_META_KEY = 0x2
1701 NFTA_META_SREG = 0x3
1702 NFTA_RT_UNSPEC = 0x0
1703 NFTA_RT_DREG = 0x1
1704 NFTA_RT_KEY = 0x2
1705 NFT_CT_STATE = 0x0
1706 NFT_CT_DIRECTION = 0x1
1707 NFT_CT_STATUS = 0x2
1708 NFT_CT_MARK = 0x3
1709 NFT_CT_SECMARK = 0x4
1710 NFT_CT_EXPIRATION = 0x5
1711 NFT_CT_HELPER = 0x6
1712 NFT_CT_L3PROTOCOL = 0x7
1713 NFT_CT_SRC = 0x8
1714 NFT_CT_DST = 0x9
1715 NFT_CT_PROTOCOL = 0xa
1716 NFT_CT_PROTO_SRC = 0xb
1717 NFT_CT_PROTO_DST = 0xc
1718 NFT_CT_LABELS = 0xd
1719 NFT_CT_PKTS = 0xe
1720 NFT_CT_BYTES = 0xf
1721 NFT_CT_AVGPKT = 0x10
1722 NFT_CT_ZONE = 0x11
1723 NFT_CT_EVENTMASK = 0x12
1724 NFTA_CT_UNSPEC = 0x0
1725 NFTA_CT_DREG = 0x1
1726 NFTA_CT_KEY = 0x2
1727 NFTA_CT_DIRECTION = 0x3
1728 NFTA_CT_SREG = 0x4
1729 NFT_LIMIT_PKTS = 0x0
1730 NFT_LIMIT_PKT_BYTES = 0x1
1731 NFT_LIMIT_F_INV = 0x1
1732 NFTA_LIMIT_UNSPEC = 0x0
1733 NFTA_LIMIT_RATE = 0x1
1734 NFTA_LIMIT_UNIT = 0x2
1735 NFTA_LIMIT_BURST = 0x3
1736 NFTA_LIMIT_TYPE = 0x4
1737 NFTA_LIMIT_FLAGS = 0x5
1738 NFTA_LIMIT_PAD = 0x6
1739 NFTA_COUNTER_UNSPEC = 0x0
1740 NFTA_COUNTER_BYTES = 0x1
1741 NFTA_COUNTER_PACKETS = 0x2
1742 NFTA_COUNTER_PAD = 0x3
1743 NFTA_LOG_UNSPEC = 0x0
1744 NFTA_LOG_GROUP = 0x1
1745 NFTA_LOG_PREFIX = 0x2
1746 NFTA_LOG_SNAPLEN = 0x3
1747 NFTA_LOG_QTHRESHOLD = 0x4
1748 NFTA_LOG_LEVEL = 0x5
1749 NFTA_LOG_FLAGS = 0x6
1750 NFTA_QUEUE_UNSPEC = 0x0
1751 NFTA_QUEUE_NUM = 0x1
1752 NFTA_QUEUE_TOTAL = 0x2
1753 NFTA_QUEUE_FLAGS = 0x3
1754 NFTA_QUEUE_SREG_QNUM = 0x4
1755 NFT_QUOTA_F_INV = 0x1
1756 NFT_QUOTA_F_DEPLETED = 0x2
1757 NFTA_QUOTA_UNSPEC = 0x0
1758 NFTA_QUOTA_BYTES = 0x1
1759 NFTA_QUOTA_FLAGS = 0x2
1760 NFTA_QUOTA_PAD = 0x3
1761 NFTA_QUOTA_CONSUMED = 0x4
1762 NFT_REJECT_ICMP_UNREACH = 0x0
1763 NFT_REJECT_TCP_RST = 0x1
1764 NFT_REJECT_ICMPX_UNREACH = 0x2
1765 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1766 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1767 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1768 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1769 NFTA_REJECT_UNSPEC = 0x0
1770 NFTA_REJECT_TYPE = 0x1
1771 NFTA_REJECT_ICMP_CODE = 0x2
1772 NFT_NAT_SNAT = 0x0
1773 NFT_NAT_DNAT = 0x1
1774 NFTA_NAT_UNSPEC = 0x0
1775 NFTA_NAT_TYPE = 0x1
1776 NFTA_NAT_FAMILY = 0x2
1777 NFTA_NAT_REG_ADDR_MIN = 0x3
1778 NFTA_NAT_REG_ADDR_MAX = 0x4
1779 NFTA_NAT_REG_PROTO_MIN = 0x5
1780 NFTA_NAT_REG_PROTO_MAX = 0x6
1781 NFTA_NAT_FLAGS = 0x7
1782 NFTA_MASQ_UNSPEC = 0x0
1783 NFTA_MASQ_FLAGS = 0x1
1784 NFTA_MASQ_REG_PROTO_MIN = 0x2
1785 NFTA_MASQ_REG_PROTO_MAX = 0x3
1786 NFTA_REDIR_UNSPEC = 0x0
1787 NFTA_REDIR_REG_PROTO_MIN = 0x1
1788 NFTA_REDIR_REG_PROTO_MAX = 0x2
1789 NFTA_REDIR_FLAGS = 0x3
1790 NFTA_DUP_UNSPEC = 0x0
1791 NFTA_DUP_SREG_ADDR = 0x1
1792 NFTA_DUP_SREG_DEV = 0x2
1793 NFTA_FWD_UNSPEC = 0x0
1794 NFTA_FWD_SREG_DEV = 0x1
1795 NFTA_OBJREF_UNSPEC = 0x0
1796 NFTA_OBJREF_IMM_TYPE = 0x1
1797 NFTA_OBJREF_IMM_NAME = 0x2
1798 NFTA_OBJREF_SET_SREG = 0x3
1799 NFTA_OBJREF_SET_NAME = 0x4
1800 NFTA_OBJREF_SET_ID = 0x5
1801 NFTA_GEN_UNSPEC = 0x0
1802 NFTA_GEN_ID = 0x1
1803 NFTA_GEN_PROC_PID = 0x2
1804 NFTA_GEN_PROC_NAME = 0x3
1805 NFTA_FIB_UNSPEC = 0x0
1806 NFTA_FIB_DREG = 0x1
1807 NFTA_FIB_RESULT = 0x2
1808 NFTA_FIB_FLAGS = 0x3
1809 NFT_FIB_RESULT_UNSPEC = 0x0
1810 NFT_FIB_RESULT_OIF = 0x1
1811 NFT_FIB_RESULT_OIFNAME = 0x2
1812 NFT_FIB_RESULT_ADDRTYPE = 0x3
1813 NFTA_FIB_F_SADDR = 0x1
1814 NFTA_FIB_F_DADDR = 0x2
1815 NFTA_FIB_F_MARK = 0x4
1816 NFTA_FIB_F_IIF = 0x8
1817 NFTA_FIB_F_OIF = 0x10
1818 NFTA_FIB_F_PRESENT = 0x20
1819 NFTA_CT_HELPER_UNSPEC = 0x0
1820 NFTA_CT_HELPER_NAME = 0x1
1821 NFTA_CT_HELPER_L3PROTO = 0x2
1822 NFTA_CT_HELPER_L4PROTO = 0x3
1823 NFTA_OBJ_UNSPEC = 0x0
1824 NFTA_OBJ_TABLE = 0x1
1825 NFTA_OBJ_NAME = 0x2
1826 NFTA_OBJ_TYPE = 0x3
1827 NFTA_OBJ_DATA = 0x4
1828 NFTA_OBJ_USE = 0x5
1829 NFTA_TRACE_UNSPEC = 0x0
1830 NFTA_TRACE_TABLE = 0x1
1831 NFTA_TRACE_CHAIN = 0x2
1832 NFTA_TRACE_RULE_HANDLE = 0x3
1833 NFTA_TRACE_TYPE = 0x4
1834 NFTA_TRACE_VERDICT = 0x5
1835 NFTA_TRACE_ID = 0x6
1836 NFTA_TRACE_LL_HEADER = 0x7
1837 NFTA_TRACE_NETWORK_HEADER = 0x8
1838 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1839 NFTA_TRACE_IIF = 0xa
1840 NFTA_TRACE_IIFTYPE = 0xb
1841 NFTA_TRACE_OIF = 0xc
1842 NFTA_TRACE_OIFTYPE = 0xd
1843 NFTA_TRACE_MARK = 0xe
1844 NFTA_TRACE_NFPROTO = 0xf
1845 NFTA_TRACE_POLICY = 0x10
1846 NFTA_TRACE_PAD = 0x11
1847 NFT_TRACETYPE_UNSPEC = 0x0
1848 NFT_TRACETYPE_POLICY = 0x1
1849 NFT_TRACETYPE_RETURN = 0x2
1850 NFT_TRACETYPE_RULE = 0x3
1851 NFTA_NG_UNSPEC = 0x0
1852 NFTA_NG_DREG = 0x1
1853 NFTA_NG_MODULUS = 0x2
1854 NFTA_NG_TYPE = 0x3
1855 NFTA_NG_OFFSET = 0x4
1856 NFT_NG_INCREMENTAL = 0x0
1857 NFT_NG_RANDOM = 0x1
1858)
1859
1860type RTCTime struct {
1861 Sec int32
1862 Min int32
1863 Hour int32
1864 Mday int32
1865 Mon int32
1866 Year int32
1867 Wday int32
1868 Yday int32
1869 Isdst int32
1870}
1871
1872type RTCWkAlrm struct {
1873 Enabled uint8
1874 Pending uint8
1875 _ [2]byte
1876 Time RTCTime
1877}
1878
1879type RTCPLLInfo struct {
1880 Ctrl int32
1881 Value int32
1882 Max int32
1883 Min int32
1884 Posmult int32
1885 Negmult int32
1886 Clock int64
1887}
1888
1889type BlkpgIoctlArg struct {
1890 Op int32
1891 Flags int32
1892 Datalen int32
1893 _ [4]byte
1894 Data *byte
1895}
1896
1897type BlkpgPartition struct {
1898 Start int64
1899 Length int64
1900 Pno int32
1901 Devname [64]uint8
1902 Volname [64]uint8
1903 _ [4]byte
1904}
1905
1906const (
1907 BLKPG = 0x20001269
1908 BLKPG_ADD_PARTITION = 0x1
1909 BLKPG_DEL_PARTITION = 0x2
1910 BLKPG_RESIZE_PARTITION = 0x3
1911)
1912
1913const (
1914 NETNSA_NONE = 0x0
1915 NETNSA_NSID = 0x1
1916 NETNSA_PID = 0x2
1917 NETNSA_FD = 0x3
1918)
1919
1920type XDPRingOffset struct {
1921 Producer uint64
1922 Consumer uint64
1923 Desc uint64
1924}
1925
1926type XDPMmapOffsets struct {
1927 Rx XDPRingOffset
1928 Tx XDPRingOffset
1929 Fr XDPRingOffset
1930 Cr XDPRingOffset
1931}
1932
1933type XDPUmemReg struct {
1934 Addr uint64
1935 Len uint64
1936 Size uint32
1937 Headroom uint32
1938}
1939
1940type XDPStatistics struct {
1941 Rx_dropped uint64
1942 Rx_invalid_descs uint64
1943 Tx_invalid_descs uint64
1944}
1945
1946type XDPDesc struct {
1947 Addr uint64
1948 Len uint32
1949 Options uint32
1950}
1951
1952const (
1953 NCSI_CMD_UNSPEC = 0x0
1954 NCSI_CMD_PKG_INFO = 0x1
1955 NCSI_CMD_SET_INTERFACE = 0x2
1956 NCSI_CMD_CLEAR_INTERFACE = 0x3
1957 NCSI_ATTR_UNSPEC = 0x0
1958 NCSI_ATTR_IFINDEX = 0x1
1959 NCSI_ATTR_PACKAGE_LIST = 0x2
1960 NCSI_ATTR_PACKAGE_ID = 0x3
1961 NCSI_ATTR_CHANNEL_ID = 0x4
1962 NCSI_PKG_ATTR_UNSPEC = 0x0
1963 NCSI_PKG_ATTR = 0x1
1964 NCSI_PKG_ATTR_ID = 0x2
1965 NCSI_PKG_ATTR_FORCED = 0x3
1966 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1967 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1968 NCSI_CHANNEL_ATTR = 0x1
1969 NCSI_CHANNEL_ATTR_ID = 0x2
1970 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1971 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1972 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1973 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1974 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1975 NCSI_CHANNEL_ATTR_FORCED = 0x8
1976 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1977 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1978)
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
new file mode 100644
index 0000000..09c9058
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
@@ -0,0 +1,1995 @@
1// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build riscv64,linux
5
6package unix
7
8const (
9 SizeofPtr = 0x8
10 SizeofShort = 0x2
11 SizeofInt = 0x4
12 SizeofLong = 0x8
13 SizeofLongLong = 0x8
14 PathMax = 0x1000
15)
16
17type (
18 _C_short int16
19 _C_int int32
20 _C_long int64
21 _C_long_long int64
22)
23
24type Timespec struct {
25 Sec int64
26 Nsec int64
27}
28
29type Timeval struct {
30 Sec int64
31 Usec int64
32}
33
34type Timex struct {
35 Modes uint32
36 _ [4]byte
37 Offset int64
38 Freq int64
39 Maxerror int64
40 Esterror int64
41 Status int32
42 _ [4]byte
43 Constant int64
44 Precision int64
45 Tolerance int64
46 Time Timeval
47 Tick int64
48 Ppsfreq int64
49 Jitter int64
50 Shift int32
51 _ [4]byte
52 Stabil int64
53 Jitcnt int64
54 Calcnt int64
55 Errcnt int64
56 Stbcnt int64
57 Tai int32
58 _ [44]byte
59}
60
61type Time_t int64
62
63type Tms struct {
64 Utime int64
65 Stime int64
66 Cutime int64
67 Cstime int64
68}
69
70type Utimbuf struct {
71 Actime int64
72 Modtime int64
73}
74
75type Rusage struct {
76 Utime Timeval
77 Stime Timeval
78 Maxrss int64
79 Ixrss int64
80 Idrss int64
81 Isrss int64
82 Minflt int64
83 Majflt int64
84 Nswap int64
85 Inblock int64
86 Oublock int64
87 Msgsnd int64
88 Msgrcv int64
89 Nsignals int64
90 Nvcsw int64
91 Nivcsw int64
92}
93
94type Rlimit struct {
95 Cur uint64
96 Max uint64
97}
98
99type _Gid_t uint32
100
101type Stat_t struct {
102 Dev uint64
103 Ino uint64
104 Mode uint32
105 Nlink uint32
106 Uid uint32
107 Gid uint32
108 Rdev uint64
109 _ uint64
110 Size int64
111 Blksize int32
112 _ int32
113 Blocks int64
114 Atim Timespec
115 Mtim Timespec
116 Ctim Timespec
117 _ [2]int32
118}
119
120type StatxTimestamp struct {
121 Sec int64
122 Nsec uint32
123 _ int32
124}
125
126type Statx_t struct {
127 Mask uint32
128 Blksize uint32
129 Attributes uint64
130 Nlink uint32
131 Uid uint32
132 Gid uint32
133 Mode uint16
134 _ [1]uint16
135 Ino uint64
136 Size uint64
137 Blocks uint64
138 Attributes_mask uint64
139 Atime StatxTimestamp
140 Btime StatxTimestamp
141 Ctime StatxTimestamp
142 Mtime StatxTimestamp
143 Rdev_major uint32
144 Rdev_minor uint32
145 Dev_major uint32
146 Dev_minor uint32
147 _ [14]uint64
148}
149
150type Dirent struct {
151 Ino uint64
152 Off int64
153 Reclen uint16
154 Type uint8
155 Name [256]uint8
156 _ [5]byte
157}
158
159type Fsid struct {
160 Val [2]int32
161}
162
163type Flock_t struct {
164 Type int16
165 Whence int16
166 _ [4]byte
167 Start int64
168 Len int64
169 Pid int32
170 _ [4]byte
171}
172
173type FscryptPolicy struct {
174 Version uint8
175 Contents_encryption_mode uint8
176 Filenames_encryption_mode uint8
177 Flags uint8
178 Master_key_descriptor [8]uint8
179}
180
181type FscryptKey struct {
182 Mode uint32
183 Raw [64]uint8
184 Size uint32
185}
186
187type KeyctlDHParams struct {
188 Private int32
189 Prime int32
190 Base int32
191}
192
193const (
194 FADV_NORMAL = 0x0
195 FADV_RANDOM = 0x1
196 FADV_SEQUENTIAL = 0x2
197 FADV_WILLNEED = 0x3
198 FADV_DONTNEED = 0x4
199 FADV_NOREUSE = 0x5
200)
201
202type RawSockaddrInet4 struct {
203 Family uint16
204 Port uint16
205 Addr [4]byte /* in_addr */
206 Zero [8]uint8
207}
208
209type RawSockaddrInet6 struct {
210 Family uint16
211 Port uint16
212 Flowinfo uint32
213 Addr [16]byte /* in6_addr */
214 Scope_id uint32
215}
216
217type RawSockaddrUnix struct {
218 Family uint16
219 Path [108]uint8
220}
221
222type RawSockaddrLinklayer struct {
223 Family uint16
224 Protocol uint16
225 Ifindex int32
226 Hatype uint16
227 Pkttype uint8
228 Halen uint8
229 Addr [8]uint8
230}
231
232type RawSockaddrNetlink struct {
233 Family uint16
234 Pad uint16
235 Pid uint32
236 Groups uint32
237}
238
239type RawSockaddrHCI struct {
240 Family uint16
241 Dev uint16
242 Channel uint16
243}
244
245type RawSockaddrL2 struct {
246 Family uint16
247 Psm uint16
248 Bdaddr [6]uint8
249 Cid uint16
250 Bdaddr_type uint8
251 _ [1]byte
252}
253
254type RawSockaddrRFCOMM struct {
255 Family uint16
256 Bdaddr [6]uint8
257 Channel uint8
258 _ [1]byte
259}
260
261type RawSockaddrCAN struct {
262 Family uint16
263 _ [2]byte
264 Ifindex int32
265 Addr [8]byte
266}
267
268type RawSockaddrALG struct {
269 Family uint16
270 Type [14]uint8
271 Feat uint32
272 Mask uint32
273 Name [64]uint8
274}
275
276type RawSockaddrVM struct {
277 Family uint16
278 Reserved1 uint16
279 Port uint32
280 Cid uint32
281 Zero [4]uint8
282}
283
284type RawSockaddrXDP struct {
285 Family uint16
286 Flags uint16
287 Ifindex uint32
288 Queue_id uint32
289 Shared_umem_fd uint32
290}
291
292type RawSockaddr struct {
293 Family uint16
294 Data [14]uint8
295}
296
297type RawSockaddrAny struct {
298 Addr RawSockaddr
299 Pad [96]uint8
300}
301
302type _Socklen uint32
303
304type Linger struct {
305 Onoff int32
306 Linger int32
307}
308
309type Iovec struct {
310 Base *byte
311 Len uint64
312}
313
314type IPMreq struct {
315 Multiaddr [4]byte /* in_addr */
316 Interface [4]byte /* in_addr */
317}
318
319type IPMreqn struct {
320 Multiaddr [4]byte /* in_addr */
321 Address [4]byte /* in_addr */
322 Ifindex int32
323}
324
325type IPv6Mreq struct {
326 Multiaddr [16]byte /* in6_addr */
327 Interface uint32
328}
329
330type PacketMreq struct {
331 Ifindex int32
332 Type uint16
333 Alen uint16
334 Address [8]uint8
335}
336
337type Msghdr struct {
338 Name *byte
339 Namelen uint32
340 _ [4]byte
341 Iov *Iovec
342 Iovlen uint64
343 Control *byte
344 Controllen uint64
345 Flags int32
346 _ [4]byte
347}
348
349type Cmsghdr struct {
350 Len uint64
351 Level int32
352 Type int32
353}
354
355type Inet4Pktinfo struct {
356 Ifindex int32
357 Spec_dst [4]byte /* in_addr */
358 Addr [4]byte /* in_addr */
359}
360
361type Inet6Pktinfo struct {
362 Addr [16]byte /* in6_addr */
363 Ifindex uint32
364}
365
366type IPv6MTUInfo struct {
367 Addr RawSockaddrInet6
368 Mtu uint32
369}
370
371type ICMPv6Filter struct {
372 Data [8]uint32
373}
374
375type Ucred struct {
376 Pid int32
377 Uid uint32
378 Gid uint32
379}
380
381type TCPInfo struct {
382 State uint8
383 Ca_state uint8
384 Retransmits uint8
385 Probes uint8
386 Backoff uint8
387 Options uint8
388 _ [2]byte
389 Rto uint32
390 Ato uint32
391 Snd_mss uint32
392 Rcv_mss uint32
393 Unacked uint32
394 Sacked uint32
395 Lost uint32
396 Retrans uint32
397 Fackets uint32
398 Last_data_sent uint32
399 Last_ack_sent uint32
400 Last_data_recv uint32
401 Last_ack_recv uint32
402 Pmtu uint32
403 Rcv_ssthresh uint32
404 Rtt uint32
405 Rttvar uint32
406 Snd_ssthresh uint32
407 Snd_cwnd uint32
408 Advmss uint32
409 Reordering uint32
410 Rcv_rtt uint32
411 Rcv_space uint32
412 Total_retrans uint32
413}
414
415const (
416 SizeofSockaddrInet4 = 0x10
417 SizeofSockaddrInet6 = 0x1c
418 SizeofSockaddrAny = 0x70
419 SizeofSockaddrUnix = 0x6e
420 SizeofSockaddrLinklayer = 0x14
421 SizeofSockaddrNetlink = 0xc
422 SizeofSockaddrHCI = 0x6
423 SizeofSockaddrL2 = 0xe
424 SizeofSockaddrRFCOMM = 0xa
425 SizeofSockaddrCAN = 0x10
426 SizeofSockaddrALG = 0x58
427 SizeofSockaddrVM = 0x10
428 SizeofSockaddrXDP = 0x10
429 SizeofLinger = 0x8
430 SizeofIovec = 0x10
431 SizeofIPMreq = 0x8
432 SizeofIPMreqn = 0xc
433 SizeofIPv6Mreq = 0x14
434 SizeofPacketMreq = 0x10
435 SizeofMsghdr = 0x38
436 SizeofCmsghdr = 0x10
437 SizeofInet4Pktinfo = 0xc
438 SizeofInet6Pktinfo = 0x14
439 SizeofIPv6MTUInfo = 0x20
440 SizeofICMPv6Filter = 0x20
441 SizeofUcred = 0xc
442 SizeofTCPInfo = 0x68
443)
444
445const (
446 IFA_UNSPEC = 0x0
447 IFA_ADDRESS = 0x1
448 IFA_LOCAL = 0x2
449 IFA_LABEL = 0x3
450 IFA_BROADCAST = 0x4
451 IFA_ANYCAST = 0x5
452 IFA_CACHEINFO = 0x6
453 IFA_MULTICAST = 0x7
454 IFLA_UNSPEC = 0x0
455 IFLA_ADDRESS = 0x1
456 IFLA_BROADCAST = 0x2
457 IFLA_IFNAME = 0x3
458 IFLA_INFO_KIND = 0x1
459 IFLA_MTU = 0x4
460 IFLA_LINK = 0x5
461 IFLA_QDISC = 0x6
462 IFLA_STATS = 0x7
463 IFLA_COST = 0x8
464 IFLA_PRIORITY = 0x9
465 IFLA_MASTER = 0xa
466 IFLA_WIRELESS = 0xb
467 IFLA_PROTINFO = 0xc
468 IFLA_TXQLEN = 0xd
469 IFLA_MAP = 0xe
470 IFLA_WEIGHT = 0xf
471 IFLA_OPERSTATE = 0x10
472 IFLA_LINKMODE = 0x11
473 IFLA_LINKINFO = 0x12
474 IFLA_NET_NS_PID = 0x13
475 IFLA_IFALIAS = 0x14
476 IFLA_NUM_VF = 0x15
477 IFLA_VFINFO_LIST = 0x16
478 IFLA_STATS64 = 0x17
479 IFLA_VF_PORTS = 0x18
480 IFLA_PORT_SELF = 0x19
481 IFLA_AF_SPEC = 0x1a
482 IFLA_GROUP = 0x1b
483 IFLA_NET_NS_FD = 0x1c
484 IFLA_EXT_MASK = 0x1d
485 IFLA_PROMISCUITY = 0x1e
486 IFLA_NUM_TX_QUEUES = 0x1f
487 IFLA_NUM_RX_QUEUES = 0x20
488 IFLA_CARRIER = 0x21
489 IFLA_PHYS_PORT_ID = 0x22
490 IFLA_CARRIER_CHANGES = 0x23
491 IFLA_PHYS_SWITCH_ID = 0x24
492 IFLA_LINK_NETNSID = 0x25
493 IFLA_PHYS_PORT_NAME = 0x26
494 IFLA_PROTO_DOWN = 0x27
495 IFLA_GSO_MAX_SEGS = 0x28
496 IFLA_GSO_MAX_SIZE = 0x29
497 IFLA_PAD = 0x2a
498 IFLA_XDP = 0x2b
499 IFLA_EVENT = 0x2c
500 IFLA_NEW_NETNSID = 0x2d
501 IFLA_IF_NETNSID = 0x2e
502 IFLA_MAX = 0x31
503 RT_SCOPE_UNIVERSE = 0x0
504 RT_SCOPE_SITE = 0xc8
505 RT_SCOPE_LINK = 0xfd
506 RT_SCOPE_HOST = 0xfe
507 RT_SCOPE_NOWHERE = 0xff
508 RT_TABLE_UNSPEC = 0x0
509 RT_TABLE_COMPAT = 0xfc
510 RT_TABLE_DEFAULT = 0xfd
511 RT_TABLE_MAIN = 0xfe
512 RT_TABLE_LOCAL = 0xff
513 RT_TABLE_MAX = 0xffffffff
514 RTA_UNSPEC = 0x0
515 RTA_DST = 0x1
516 RTA_SRC = 0x2
517 RTA_IIF = 0x3
518 RTA_OIF = 0x4
519 RTA_GATEWAY = 0x5
520 RTA_PRIORITY = 0x6
521 RTA_PREFSRC = 0x7
522 RTA_METRICS = 0x8
523 RTA_MULTIPATH = 0x9
524 RTA_FLOW = 0xb
525 RTA_CACHEINFO = 0xc
526 RTA_TABLE = 0xf
527 RTA_MARK = 0x10
528 RTA_MFC_STATS = 0x11
529 RTA_VIA = 0x12
530 RTA_NEWDST = 0x13
531 RTA_PREF = 0x14
532 RTA_ENCAP_TYPE = 0x15
533 RTA_ENCAP = 0x16
534 RTA_EXPIRES = 0x17
535 RTA_PAD = 0x18
536 RTA_UID = 0x19
537 RTA_TTL_PROPAGATE = 0x1a
538 RTA_IP_PROTO = 0x1b
539 RTA_SPORT = 0x1c
540 RTA_DPORT = 0x1d
541 RTN_UNSPEC = 0x0
542 RTN_UNICAST = 0x1
543 RTN_LOCAL = 0x2
544 RTN_BROADCAST = 0x3
545 RTN_ANYCAST = 0x4
546 RTN_MULTICAST = 0x5
547 RTN_BLACKHOLE = 0x6
548 RTN_UNREACHABLE = 0x7
549 RTN_PROHIBIT = 0x8
550 RTN_THROW = 0x9
551 RTN_NAT = 0xa
552 RTN_XRESOLVE = 0xb
553 RTNLGRP_NONE = 0x0
554 RTNLGRP_LINK = 0x1
555 RTNLGRP_NOTIFY = 0x2
556 RTNLGRP_NEIGH = 0x3
557 RTNLGRP_TC = 0x4
558 RTNLGRP_IPV4_IFADDR = 0x5
559 RTNLGRP_IPV4_MROUTE = 0x6
560 RTNLGRP_IPV4_ROUTE = 0x7
561 RTNLGRP_IPV4_RULE = 0x8
562 RTNLGRP_IPV6_IFADDR = 0x9
563 RTNLGRP_IPV6_MROUTE = 0xa
564 RTNLGRP_IPV6_ROUTE = 0xb
565 RTNLGRP_IPV6_IFINFO = 0xc
566 RTNLGRP_IPV6_PREFIX = 0x12
567 RTNLGRP_IPV6_RULE = 0x13
568 RTNLGRP_ND_USEROPT = 0x14
569 SizeofNlMsghdr = 0x10
570 SizeofNlMsgerr = 0x14
571 SizeofRtGenmsg = 0x1
572 SizeofNlAttr = 0x4
573 SizeofRtAttr = 0x4
574 SizeofIfInfomsg = 0x10
575 SizeofIfAddrmsg = 0x8
576 SizeofRtMsg = 0xc
577 SizeofRtNexthop = 0x8
578)
579
580type NlMsghdr struct {
581 Len uint32
582 Type uint16
583 Flags uint16
584 Seq uint32
585 Pid uint32
586}
587
588type NlMsgerr struct {
589 Error int32
590 Msg NlMsghdr
591}
592
593type RtGenmsg struct {
594 Family uint8
595}
596
597type NlAttr struct {
598 Len uint16
599 Type uint16
600}
601
602type RtAttr struct {
603 Len uint16
604 Type uint16
605}
606
607type IfInfomsg struct {
608 Family uint8
609 _ uint8
610 Type uint16
611 Index int32
612 Flags uint32
613 Change uint32
614}
615
616type IfAddrmsg struct {
617 Family uint8
618 Prefixlen uint8
619 Flags uint8
620 Scope uint8
621 Index uint32
622}
623
624type RtMsg struct {
625 Family uint8
626 Dst_len uint8
627 Src_len uint8
628 Tos uint8
629 Table uint8
630 Protocol uint8
631 Scope uint8
632 Type uint8
633 Flags uint32
634}
635
636type RtNexthop struct {
637 Len uint16
638 Flags uint8
639 Hops uint8
640 Ifindex int32
641}
642
643const (
644 SizeofSockFilter = 0x8
645 SizeofSockFprog = 0x10
646)
647
648type SockFilter struct {
649 Code uint16
650 Jt uint8
651 Jf uint8
652 K uint32
653}
654
655type SockFprog struct {
656 Len uint16
657 _ [6]byte
658 Filter *SockFilter
659}
660
661type InotifyEvent struct {
662 Wd int32
663 Mask uint32
664 Cookie uint32
665 Len uint32
666}
667
668const SizeofInotifyEvent = 0x10
669
670type PtraceRegs struct {
671 Pc uint64
672 Ra uint64
673 Sp uint64
674 Gp uint64
675 Tp uint64
676 T0 uint64
677 T1 uint64
678 T2 uint64
679 S0 uint64
680 S1 uint64
681 A0 uint64
682 A1 uint64
683 A2 uint64
684 A3 uint64
685 A4 uint64
686 A5 uint64
687 A6 uint64
688 A7 uint64
689 S2 uint64
690 S3 uint64
691 S4 uint64
692 S5 uint64
693 S6 uint64
694 S7 uint64
695 S8 uint64
696 S9 uint64
697 S10 uint64
698 S11 uint64
699 T3 uint64
700 T4 uint64
701 T5 uint64
702 T6 uint64
703}
704
705type FdSet struct {
706 Bits [16]int64
707}
708
709type Sysinfo_t struct {
710 Uptime int64
711 Loads [3]uint64
712 Totalram uint64
713 Freeram uint64
714 Sharedram uint64
715 Bufferram uint64
716 Totalswap uint64
717 Freeswap uint64
718 Procs uint16
719 Pad uint16
720 _ [4]byte
721 Totalhigh uint64
722 Freehigh uint64
723 Unit uint32
724 _ [0]uint8
725 _ [4]byte
726}
727
728type Utsname struct {
729 Sysname [65]byte
730 Nodename [65]byte
731 Release [65]byte
732 Version [65]byte
733 Machine [65]byte
734 Domainname [65]byte
735}
736
737type Ustat_t struct {
738 Tfree int32
739 _ [4]byte
740 Tinode uint64
741 Fname [6]uint8
742 Fpack [6]uint8
743 _ [4]byte
744}
745
746type EpollEvent struct {
747 Events uint32
748 Fd int32
749 Pad int32
750}
751
752const (
753 AT_EMPTY_PATH = 0x1000
754 AT_FDCWD = -0x64
755 AT_NO_AUTOMOUNT = 0x800
756 AT_REMOVEDIR = 0x200
757
758 AT_STATX_SYNC_AS_STAT = 0x0
759 AT_STATX_FORCE_SYNC = 0x2000
760 AT_STATX_DONT_SYNC = 0x4000
761
762 AT_SYMLINK_FOLLOW = 0x400
763 AT_SYMLINK_NOFOLLOW = 0x100
764
765 AT_EACCESS = 0x200
766)
767
768type PollFd struct {
769 Fd int32
770 Events int16
771 Revents int16
772}
773
774const (
775 POLLIN = 0x1
776 POLLPRI = 0x2
777 POLLOUT = 0x4
778 POLLRDHUP = 0x2000
779 POLLERR = 0x8
780 POLLHUP = 0x10
781 POLLNVAL = 0x20
782)
783
784type Sigset_t struct {
785 Val [16]uint64
786}
787
788const RNDGETENTCNT = 0x80045200
789
790const PERF_IOC_FLAG_GROUP = 0x1
791
792type Termios struct {
793 Iflag uint32
794 Oflag uint32
795 Cflag uint32
796 Lflag uint32
797 Line uint8
798 Cc [19]uint8
799 Ispeed uint32
800 Ospeed uint32
801}
802
803type Winsize struct {
804 Row uint16
805 Col uint16
806 Xpixel uint16
807 Ypixel uint16
808}
809
810type Taskstats struct {
811 Version uint16
812 _ [2]byte
813 Ac_exitcode uint32
814 Ac_flag uint8
815 Ac_nice uint8
816 _ [6]byte
817 Cpu_count uint64
818 Cpu_delay_total uint64
819 Blkio_count uint64
820 Blkio_delay_total uint64
821 Swapin_count uint64
822 Swapin_delay_total uint64
823 Cpu_run_real_total uint64
824 Cpu_run_virtual_total uint64
825 Ac_comm [32]uint8
826 Ac_sched uint8
827 Ac_pad [3]uint8
828 _ [4]byte
829 Ac_uid uint32
830 Ac_gid uint32
831 Ac_pid uint32
832 Ac_ppid uint32
833 Ac_btime uint32
834 _ [4]byte
835 Ac_etime uint64
836 Ac_utime uint64
837 Ac_stime uint64
838 Ac_minflt uint64
839 Ac_majflt uint64
840 Coremem uint64
841 Virtmem uint64
842 Hiwater_rss uint64
843 Hiwater_vm uint64
844 Read_char uint64
845 Write_char uint64
846 Read_syscalls uint64
847 Write_syscalls uint64
848 Read_bytes uint64
849 Write_bytes uint64
850 Cancelled_write_bytes uint64
851 Nvcsw uint64
852 Nivcsw uint64
853 Ac_utimescaled uint64
854 Ac_stimescaled uint64
855 Cpu_scaled_run_real_total uint64
856 Freepages_count uint64
857 Freepages_delay_total uint64
858}
859
860const (
861 TASKSTATS_CMD_UNSPEC = 0x0
862 TASKSTATS_CMD_GET = 0x1
863 TASKSTATS_CMD_NEW = 0x2
864 TASKSTATS_TYPE_UNSPEC = 0x0
865 TASKSTATS_TYPE_PID = 0x1
866 TASKSTATS_TYPE_TGID = 0x2
867 TASKSTATS_TYPE_STATS = 0x3
868 TASKSTATS_TYPE_AGGR_PID = 0x4
869 TASKSTATS_TYPE_AGGR_TGID = 0x5
870 TASKSTATS_TYPE_NULL = 0x6
871 TASKSTATS_CMD_ATTR_UNSPEC = 0x0
872 TASKSTATS_CMD_ATTR_PID = 0x1
873 TASKSTATS_CMD_ATTR_TGID = 0x2
874 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3
875 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4
876)
877
878type CGroupStats struct {
879 Sleeping uint64
880 Running uint64
881 Stopped uint64
882 Uninterruptible uint64
883 Io_wait uint64
884}
885
886const (
887 CGROUPSTATS_CMD_UNSPEC = 0x3
888 CGROUPSTATS_CMD_GET = 0x4
889 CGROUPSTATS_CMD_NEW = 0x5
890 CGROUPSTATS_TYPE_UNSPEC = 0x0
891 CGROUPSTATS_TYPE_CGROUP_STATS = 0x1
892 CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0
893 CGROUPSTATS_CMD_ATTR_FD = 0x1
894)
895
896type Genlmsghdr struct {
897 Cmd uint8
898 Version uint8
899 Reserved uint16
900}
901
902const (
903 CTRL_CMD_UNSPEC = 0x0
904 CTRL_CMD_NEWFAMILY = 0x1
905 CTRL_CMD_DELFAMILY = 0x2
906 CTRL_CMD_GETFAMILY = 0x3
907 CTRL_CMD_NEWOPS = 0x4
908 CTRL_CMD_DELOPS = 0x5
909 CTRL_CMD_GETOPS = 0x6
910 CTRL_CMD_NEWMCAST_GRP = 0x7
911 CTRL_CMD_DELMCAST_GRP = 0x8
912 CTRL_CMD_GETMCAST_GRP = 0x9
913 CTRL_ATTR_UNSPEC = 0x0
914 CTRL_ATTR_FAMILY_ID = 0x1
915 CTRL_ATTR_FAMILY_NAME = 0x2
916 CTRL_ATTR_VERSION = 0x3
917 CTRL_ATTR_HDRSIZE = 0x4
918 CTRL_ATTR_MAXATTR = 0x5
919 CTRL_ATTR_OPS = 0x6
920 CTRL_ATTR_MCAST_GROUPS = 0x7
921 CTRL_ATTR_OP_UNSPEC = 0x0
922 CTRL_ATTR_OP_ID = 0x1
923 CTRL_ATTR_OP_FLAGS = 0x2
924 CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0
925 CTRL_ATTR_MCAST_GRP_NAME = 0x1
926 CTRL_ATTR_MCAST_GRP_ID = 0x2
927)
928
929type cpuMask uint64
930
931const (
932 _CPU_SETSIZE = 0x400
933 _NCPUBITS = 0x40
934)
935
936const (
937 BDADDR_BREDR = 0x0
938 BDADDR_LE_PUBLIC = 0x1
939 BDADDR_LE_RANDOM = 0x2
940)
941
942type PerfEventAttr struct {
943 Type uint32
944 Size uint32
945 Config uint64
946 Sample uint64
947 Sample_type uint64
948 Read_format uint64
949 Bits uint64
950 Wakeup uint32
951 Bp_type uint32
952 Ext1 uint64
953 Ext2 uint64
954 Branch_sample_type uint64
955 Sample_regs_user uint64
956 Sample_stack_user uint32
957 Clockid int32
958 Sample_regs_intr uint64
959 Aux_watermark uint32
960 _ uint32
961}
962
963type PerfEventMmapPage struct {
964 Version uint32
965 Compat_version uint32
966 Lock uint32
967 Index uint32
968 Offset int64
969 Time_enabled uint64
970 Time_running uint64
971 Capabilities uint64
972 Pmc_width uint16
973 Time_shift uint16
974 Time_mult uint32
975 Time_offset uint64
976 Time_zero uint64
977 Size uint32
978 _ [948]uint8
979 Data_head uint64
980 Data_tail uint64
981 Data_offset uint64
982 Data_size uint64
983 Aux_head uint64
984 Aux_tail uint64
985 Aux_offset uint64
986 Aux_size uint64
987}
988
989const (
990 PerfBitDisabled uint64 = CBitFieldMaskBit0
991 PerfBitInherit = CBitFieldMaskBit1
992 PerfBitPinned = CBitFieldMaskBit2
993 PerfBitExclusive = CBitFieldMaskBit3
994 PerfBitExcludeUser = CBitFieldMaskBit4
995 PerfBitExcludeKernel = CBitFieldMaskBit5
996 PerfBitExcludeHv = CBitFieldMaskBit6
997 PerfBitExcludeIdle = CBitFieldMaskBit7
998 PerfBitMmap = CBitFieldMaskBit8
999 PerfBitComm = CBitFieldMaskBit9
1000 PerfBitFreq = CBitFieldMaskBit10
1001 PerfBitInheritStat = CBitFieldMaskBit11
1002 PerfBitEnableOnExec = CBitFieldMaskBit12
1003 PerfBitTask = CBitFieldMaskBit13
1004 PerfBitWatermark = CBitFieldMaskBit14
1005 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
1006 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
1007 PerfBitMmapData = CBitFieldMaskBit17
1008 PerfBitSampleIDAll = CBitFieldMaskBit18
1009 PerfBitExcludeHost = CBitFieldMaskBit19
1010 PerfBitExcludeGuest = CBitFieldMaskBit20
1011 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
1012 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
1013 PerfBitMmap2 = CBitFieldMaskBit23
1014 PerfBitCommExec = CBitFieldMaskBit24
1015 PerfBitUseClockID = CBitFieldMaskBit25
1016 PerfBitContextSwitch = CBitFieldMaskBit26
1017)
1018
1019const (
1020 PERF_TYPE_HARDWARE = 0x0
1021 PERF_TYPE_SOFTWARE = 0x1
1022 PERF_TYPE_TRACEPOINT = 0x2
1023 PERF_TYPE_HW_CACHE = 0x3
1024 PERF_TYPE_RAW = 0x4
1025 PERF_TYPE_BREAKPOINT = 0x5
1026
1027 PERF_COUNT_HW_CPU_CYCLES = 0x0
1028 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1029 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1030 PERF_COUNT_HW_CACHE_MISSES = 0x3
1031 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1032 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1033 PERF_COUNT_HW_BUS_CYCLES = 0x6
1034 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1035 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1036 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1037
1038 PERF_COUNT_HW_CACHE_L1D = 0x0
1039 PERF_COUNT_HW_CACHE_L1I = 0x1
1040 PERF_COUNT_HW_CACHE_LL = 0x2
1041 PERF_COUNT_HW_CACHE_DTLB = 0x3
1042 PERF_COUNT_HW_CACHE_ITLB = 0x4
1043 PERF_COUNT_HW_CACHE_BPU = 0x5
1044 PERF_COUNT_HW_CACHE_NODE = 0x6
1045
1046 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1047 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1048 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1049
1050 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1051 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1052
1053 PERF_COUNT_SW_CPU_CLOCK = 0x0
1054 PERF_COUNT_SW_TASK_CLOCK = 0x1
1055 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1056 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1057 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1058 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1059 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1060 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1061 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1062 PERF_COUNT_SW_DUMMY = 0x9
1063
1064 PERF_SAMPLE_IP = 0x1
1065 PERF_SAMPLE_TID = 0x2
1066 PERF_SAMPLE_TIME = 0x4
1067 PERF_SAMPLE_ADDR = 0x8
1068 PERF_SAMPLE_READ = 0x10
1069 PERF_SAMPLE_CALLCHAIN = 0x20
1070 PERF_SAMPLE_ID = 0x40
1071 PERF_SAMPLE_CPU = 0x80
1072 PERF_SAMPLE_PERIOD = 0x100
1073 PERF_SAMPLE_STREAM_ID = 0x200
1074 PERF_SAMPLE_RAW = 0x400
1075 PERF_SAMPLE_BRANCH_STACK = 0x800
1076
1077 PERF_SAMPLE_BRANCH_USER = 0x1
1078 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1079 PERF_SAMPLE_BRANCH_HV = 0x4
1080 PERF_SAMPLE_BRANCH_ANY = 0x8
1081 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1082 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1083 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1084
1085 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1086 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1087 PERF_FORMAT_ID = 0x4
1088 PERF_FORMAT_GROUP = 0x8
1089
1090 PERF_RECORD_MMAP = 0x1
1091 PERF_RECORD_LOST = 0x2
1092 PERF_RECORD_COMM = 0x3
1093 PERF_RECORD_EXIT = 0x4
1094 PERF_RECORD_THROTTLE = 0x5
1095 PERF_RECORD_UNTHROTTLE = 0x6
1096 PERF_RECORD_FORK = 0x7
1097 PERF_RECORD_READ = 0x8
1098 PERF_RECORD_SAMPLE = 0x9
1099
1100 PERF_CONTEXT_HV = -0x20
1101 PERF_CONTEXT_KERNEL = -0x80
1102 PERF_CONTEXT_USER = -0x200
1103
1104 PERF_CONTEXT_GUEST = -0x800
1105 PERF_CONTEXT_GUEST_KERNEL = -0x880
1106 PERF_CONTEXT_GUEST_USER = -0xa00
1107
1108 PERF_FLAG_FD_NO_GROUP = 0x1
1109 PERF_FLAG_FD_OUTPUT = 0x2
1110 PERF_FLAG_PID_CGROUP = 0x4
1111)
1112
1113const (
1114 CBitFieldMaskBit0 = 0x1
1115 CBitFieldMaskBit1 = 0x2
1116 CBitFieldMaskBit2 = 0x4
1117 CBitFieldMaskBit3 = 0x8
1118 CBitFieldMaskBit4 = 0x10
1119 CBitFieldMaskBit5 = 0x20
1120 CBitFieldMaskBit6 = 0x40
1121 CBitFieldMaskBit7 = 0x80
1122 CBitFieldMaskBit8 = 0x100
1123 CBitFieldMaskBit9 = 0x200
1124 CBitFieldMaskBit10 = 0x400
1125 CBitFieldMaskBit11 = 0x800
1126 CBitFieldMaskBit12 = 0x1000
1127 CBitFieldMaskBit13 = 0x2000
1128 CBitFieldMaskBit14 = 0x4000
1129 CBitFieldMaskBit15 = 0x8000
1130 CBitFieldMaskBit16 = 0x10000
1131 CBitFieldMaskBit17 = 0x20000
1132 CBitFieldMaskBit18 = 0x40000
1133 CBitFieldMaskBit19 = 0x80000
1134 CBitFieldMaskBit20 = 0x100000
1135 CBitFieldMaskBit21 = 0x200000
1136 CBitFieldMaskBit22 = 0x400000
1137 CBitFieldMaskBit23 = 0x800000
1138 CBitFieldMaskBit24 = 0x1000000
1139 CBitFieldMaskBit25 = 0x2000000
1140 CBitFieldMaskBit26 = 0x4000000
1141 CBitFieldMaskBit27 = 0x8000000
1142 CBitFieldMaskBit28 = 0x10000000
1143 CBitFieldMaskBit29 = 0x20000000
1144 CBitFieldMaskBit30 = 0x40000000
1145 CBitFieldMaskBit31 = 0x80000000
1146 CBitFieldMaskBit32 = 0x100000000
1147 CBitFieldMaskBit33 = 0x200000000
1148 CBitFieldMaskBit34 = 0x400000000
1149 CBitFieldMaskBit35 = 0x800000000
1150 CBitFieldMaskBit36 = 0x1000000000
1151 CBitFieldMaskBit37 = 0x2000000000
1152 CBitFieldMaskBit38 = 0x4000000000
1153 CBitFieldMaskBit39 = 0x8000000000
1154 CBitFieldMaskBit40 = 0x10000000000
1155 CBitFieldMaskBit41 = 0x20000000000
1156 CBitFieldMaskBit42 = 0x40000000000
1157 CBitFieldMaskBit43 = 0x80000000000
1158 CBitFieldMaskBit44 = 0x100000000000
1159 CBitFieldMaskBit45 = 0x200000000000
1160 CBitFieldMaskBit46 = 0x400000000000
1161 CBitFieldMaskBit47 = 0x800000000000
1162 CBitFieldMaskBit48 = 0x1000000000000
1163 CBitFieldMaskBit49 = 0x2000000000000
1164 CBitFieldMaskBit50 = 0x4000000000000
1165 CBitFieldMaskBit51 = 0x8000000000000
1166 CBitFieldMaskBit52 = 0x10000000000000
1167 CBitFieldMaskBit53 = 0x20000000000000
1168 CBitFieldMaskBit54 = 0x40000000000000
1169 CBitFieldMaskBit55 = 0x80000000000000
1170 CBitFieldMaskBit56 = 0x100000000000000
1171 CBitFieldMaskBit57 = 0x200000000000000
1172 CBitFieldMaskBit58 = 0x400000000000000
1173 CBitFieldMaskBit59 = 0x800000000000000
1174 CBitFieldMaskBit60 = 0x1000000000000000
1175 CBitFieldMaskBit61 = 0x2000000000000000
1176 CBitFieldMaskBit62 = 0x4000000000000000
1177 CBitFieldMaskBit63 = 0x8000000000000000
1178)
1179
1180type SockaddrStorage struct {
1181 Family uint16
1182 _ [118]uint8
1183 _ uint64
1184}
1185
1186type TCPMD5Sig struct {
1187 Addr SockaddrStorage
1188 Flags uint8
1189 Prefixlen uint8
1190 Keylen uint16
1191 _ uint32
1192 Key [80]uint8
1193}
1194
1195type HDDriveCmdHdr struct {
1196 Command uint8
1197 Number uint8
1198 Feature uint8
1199 Count uint8
1200}
1201
1202type HDGeometry struct {
1203 Heads uint8
1204 Sectors uint8
1205 Cylinders uint16
1206 _ [4]byte
1207 Start uint64
1208}
1209
1210type HDDriveID struct {
1211 Config uint16
1212 Cyls uint16
1213 Reserved2 uint16
1214 Heads uint16
1215 Track_bytes uint16
1216 Sector_bytes uint16
1217 Sectors uint16
1218 Vendor0 uint16
1219 Vendor1 uint16
1220 Vendor2 uint16
1221 Serial_no [20]uint8
1222 Buf_type uint16
1223 Buf_size uint16
1224 Ecc_bytes uint16
1225 Fw_rev [8]uint8
1226 Model [40]uint8
1227 Max_multsect uint8
1228 Vendor3 uint8
1229 Dword_io uint16
1230 Vendor4 uint8
1231 Capability uint8
1232 Reserved50 uint16
1233 Vendor5 uint8
1234 TPIO uint8
1235 Vendor6 uint8
1236 TDMA uint8
1237 Field_valid uint16
1238 Cur_cyls uint16
1239 Cur_heads uint16
1240 Cur_sectors uint16
1241 Cur_capacity0 uint16
1242 Cur_capacity1 uint16
1243 Multsect uint8
1244 Multsect_valid uint8
1245 Lba_capacity uint32
1246 Dma_1word uint16
1247 Dma_mword uint16
1248 Eide_pio_modes uint16
1249 Eide_dma_min uint16
1250 Eide_dma_time uint16
1251 Eide_pio uint16
1252 Eide_pio_iordy uint16
1253 Words69_70 [2]uint16
1254 Words71_74 [4]uint16
1255 Queue_depth uint16
1256 Words76_79 [4]uint16
1257 Major_rev_num uint16
1258 Minor_rev_num uint16
1259 Command_set_1 uint16
1260 Command_set_2 uint16
1261 Cfsse uint16
1262 Cfs_enable_1 uint16
1263 Cfs_enable_2 uint16
1264 Csf_default uint16
1265 Dma_ultra uint16
1266 Trseuc uint16
1267 TrsEuc uint16
1268 CurAPMvalues uint16
1269 Mprc uint16
1270 Hw_config uint16
1271 Acoustic uint16
1272 Msrqs uint16
1273 Sxfert uint16
1274 Sal uint16
1275 Spg uint32
1276 Lba_capacity_2 uint64
1277 Words104_125 [22]uint16
1278 Last_lun uint16
1279 Word127 uint16
1280 Dlf uint16
1281 Csfo uint16
1282 Words130_155 [26]uint16
1283 Word156 uint16
1284 Words157_159 [3]uint16
1285 Cfa_power uint16
1286 Words161_175 [15]uint16
1287 Words176_205 [30]uint16
1288 Words206_254 [49]uint16
1289 Integrity_word uint16
1290}
1291
1292type Statfs_t struct {
1293 Type int64
1294 Bsize int64
1295 Blocks uint64
1296 Bfree uint64
1297 Bavail uint64
1298 Files uint64
1299 Ffree uint64
1300 Fsid Fsid
1301 Namelen int64
1302 Frsize int64
1303 Flags int64
1304 Spare [4]int64
1305}
1306
1307const (
1308 ST_MANDLOCK = 0x40
1309 ST_NOATIME = 0x400
1310 ST_NODEV = 0x4
1311 ST_NODIRATIME = 0x800
1312 ST_NOEXEC = 0x8
1313 ST_NOSUID = 0x2
1314 ST_RDONLY = 0x1
1315 ST_RELATIME = 0x1000
1316 ST_SYNCHRONOUS = 0x10
1317)
1318
1319type TpacketHdr struct {
1320 Status uint64
1321 Len uint32
1322 Snaplen uint32
1323 Mac uint16
1324 Net uint16
1325 Sec uint32
1326 Usec uint32
1327 _ [4]byte
1328}
1329
1330type Tpacket2Hdr struct {
1331 Status uint32
1332 Len uint32
1333 Snaplen uint32
1334 Mac uint16
1335 Net uint16
1336 Sec uint32
1337 Nsec uint32
1338 Vlan_tci uint16
1339 Vlan_tpid uint16
1340 _ [4]uint8
1341}
1342
1343type Tpacket3Hdr struct {
1344 Next_offset uint32
1345 Sec uint32
1346 Nsec uint32
1347 Snaplen uint32
1348 Len uint32
1349 Status uint32
1350 Mac uint16
1351 Net uint16
1352 Hv1 TpacketHdrVariant1
1353 _ [8]uint8
1354}
1355
1356type TpacketHdrVariant1 struct {
1357 Rxhash uint32
1358 Vlan_tci uint32
1359 Vlan_tpid uint16
1360 _ uint16
1361}
1362
1363type TpacketBlockDesc struct {
1364 Version uint32
1365 To_priv uint32
1366 Hdr [40]byte
1367}
1368
1369type TpacketReq struct {
1370 Block_size uint32
1371 Block_nr uint32
1372 Frame_size uint32
1373 Frame_nr uint32
1374}
1375
1376type TpacketReq3 struct {
1377 Block_size uint32
1378 Block_nr uint32
1379 Frame_size uint32
1380 Frame_nr uint32
1381 Retire_blk_tov uint32
1382 Sizeof_priv uint32
1383 Feature_req_word uint32
1384}
1385
1386type TpacketStats struct {
1387 Packets uint32
1388 Drops uint32
1389}
1390
1391type TpacketStatsV3 struct {
1392 Packets uint32
1393 Drops uint32
1394 Freeze_q_cnt uint32
1395}
1396
1397type TpacketAuxdata struct {
1398 Status uint32
1399 Len uint32
1400 Snaplen uint32
1401 Mac uint16
1402 Net uint16
1403 Vlan_tci uint16
1404 Vlan_tpid uint16
1405}
1406
1407const (
1408 TPACKET_V1 = 0x0
1409 TPACKET_V2 = 0x1
1410 TPACKET_V3 = 0x2
1411)
1412
1413const (
1414 SizeofTpacketHdr = 0x20
1415 SizeofTpacket2Hdr = 0x20
1416 SizeofTpacket3Hdr = 0x30
1417)
1418
1419const (
1420 NF_INET_PRE_ROUTING = 0x0
1421 NF_INET_LOCAL_IN = 0x1
1422 NF_INET_FORWARD = 0x2
1423 NF_INET_LOCAL_OUT = 0x3
1424 NF_INET_POST_ROUTING = 0x4
1425 NF_INET_NUMHOOKS = 0x5
1426)
1427
1428const (
1429 NF_NETDEV_INGRESS = 0x0
1430 NF_NETDEV_NUMHOOKS = 0x1
1431)
1432
1433const (
1434 NFPROTO_UNSPEC = 0x0
1435 NFPROTO_INET = 0x1
1436 NFPROTO_IPV4 = 0x2
1437 NFPROTO_ARP = 0x3
1438 NFPROTO_NETDEV = 0x5
1439 NFPROTO_BRIDGE = 0x7
1440 NFPROTO_IPV6 = 0xa
1441 NFPROTO_DECNET = 0xc
1442 NFPROTO_NUMPROTO = 0xd
1443)
1444
1445type Nfgenmsg struct {
1446 Nfgen_family uint8
1447 Version uint8
1448 Res_id uint16
1449}
1450
1451const (
1452 NFNL_BATCH_UNSPEC = 0x0
1453 NFNL_BATCH_GENID = 0x1
1454)
1455
1456const (
1457 NFT_REG_VERDICT = 0x0
1458 NFT_REG_1 = 0x1
1459 NFT_REG_2 = 0x2
1460 NFT_REG_3 = 0x3
1461 NFT_REG_4 = 0x4
1462 NFT_REG32_00 = 0x8
1463 NFT_REG32_01 = 0x9
1464 NFT_REG32_02 = 0xa
1465 NFT_REG32_03 = 0xb
1466 NFT_REG32_04 = 0xc
1467 NFT_REG32_05 = 0xd
1468 NFT_REG32_06 = 0xe
1469 NFT_REG32_07 = 0xf
1470 NFT_REG32_08 = 0x10
1471 NFT_REG32_09 = 0x11
1472 NFT_REG32_10 = 0x12
1473 NFT_REG32_11 = 0x13
1474 NFT_REG32_12 = 0x14
1475 NFT_REG32_13 = 0x15
1476 NFT_REG32_14 = 0x16
1477 NFT_REG32_15 = 0x17
1478 NFT_CONTINUE = -0x1
1479 NFT_BREAK = -0x2
1480 NFT_JUMP = -0x3
1481 NFT_GOTO = -0x4
1482 NFT_RETURN = -0x5
1483 NFT_MSG_NEWTABLE = 0x0
1484 NFT_MSG_GETTABLE = 0x1
1485 NFT_MSG_DELTABLE = 0x2
1486 NFT_MSG_NEWCHAIN = 0x3
1487 NFT_MSG_GETCHAIN = 0x4
1488 NFT_MSG_DELCHAIN = 0x5
1489 NFT_MSG_NEWRULE = 0x6
1490 NFT_MSG_GETRULE = 0x7
1491 NFT_MSG_DELRULE = 0x8
1492 NFT_MSG_NEWSET = 0x9
1493 NFT_MSG_GETSET = 0xa
1494 NFT_MSG_DELSET = 0xb
1495 NFT_MSG_NEWSETELEM = 0xc
1496 NFT_MSG_GETSETELEM = 0xd
1497 NFT_MSG_DELSETELEM = 0xe
1498 NFT_MSG_NEWGEN = 0xf
1499 NFT_MSG_GETGEN = 0x10
1500 NFT_MSG_TRACE = 0x11
1501 NFT_MSG_NEWOBJ = 0x12
1502 NFT_MSG_GETOBJ = 0x13
1503 NFT_MSG_DELOBJ = 0x14
1504 NFT_MSG_GETOBJ_RESET = 0x15
1505 NFT_MSG_MAX = 0x19
1506 NFTA_LIST_UNPEC = 0x0
1507 NFTA_LIST_ELEM = 0x1
1508 NFTA_HOOK_UNSPEC = 0x0
1509 NFTA_HOOK_HOOKNUM = 0x1
1510 NFTA_HOOK_PRIORITY = 0x2
1511 NFTA_HOOK_DEV = 0x3
1512 NFT_TABLE_F_DORMANT = 0x1
1513 NFTA_TABLE_UNSPEC = 0x0
1514 NFTA_TABLE_NAME = 0x1
1515 NFTA_TABLE_FLAGS = 0x2
1516 NFTA_TABLE_USE = 0x3
1517 NFTA_CHAIN_UNSPEC = 0x0
1518 NFTA_CHAIN_TABLE = 0x1
1519 NFTA_CHAIN_HANDLE = 0x2
1520 NFTA_CHAIN_NAME = 0x3
1521 NFTA_CHAIN_HOOK = 0x4
1522 NFTA_CHAIN_POLICY = 0x5
1523 NFTA_CHAIN_USE = 0x6
1524 NFTA_CHAIN_TYPE = 0x7
1525 NFTA_CHAIN_COUNTERS = 0x8
1526 NFTA_CHAIN_PAD = 0x9
1527 NFTA_RULE_UNSPEC = 0x0
1528 NFTA_RULE_TABLE = 0x1
1529 NFTA_RULE_CHAIN = 0x2
1530 NFTA_RULE_HANDLE = 0x3
1531 NFTA_RULE_EXPRESSIONS = 0x4
1532 NFTA_RULE_COMPAT = 0x5
1533 NFTA_RULE_POSITION = 0x6
1534 NFTA_RULE_USERDATA = 0x7
1535 NFTA_RULE_PAD = 0x8
1536 NFTA_RULE_ID = 0x9
1537 NFT_RULE_COMPAT_F_INV = 0x2
1538 NFT_RULE_COMPAT_F_MASK = 0x2
1539 NFTA_RULE_COMPAT_UNSPEC = 0x0
1540 NFTA_RULE_COMPAT_PROTO = 0x1
1541 NFTA_RULE_COMPAT_FLAGS = 0x2
1542 NFT_SET_ANONYMOUS = 0x1
1543 NFT_SET_CONSTANT = 0x2
1544 NFT_SET_INTERVAL = 0x4
1545 NFT_SET_MAP = 0x8
1546 NFT_SET_TIMEOUT = 0x10
1547 NFT_SET_EVAL = 0x20
1548 NFT_SET_OBJECT = 0x40
1549 NFT_SET_POL_PERFORMANCE = 0x0
1550 NFT_SET_POL_MEMORY = 0x1
1551 NFTA_SET_DESC_UNSPEC = 0x0
1552 NFTA_SET_DESC_SIZE = 0x1
1553 NFTA_SET_UNSPEC = 0x0
1554 NFTA_SET_TABLE = 0x1
1555 NFTA_SET_NAME = 0x2
1556 NFTA_SET_FLAGS = 0x3
1557 NFTA_SET_KEY_TYPE = 0x4
1558 NFTA_SET_KEY_LEN = 0x5
1559 NFTA_SET_DATA_TYPE = 0x6
1560 NFTA_SET_DATA_LEN = 0x7
1561 NFTA_SET_POLICY = 0x8
1562 NFTA_SET_DESC = 0x9
1563 NFTA_SET_ID = 0xa
1564 NFTA_SET_TIMEOUT = 0xb
1565 NFTA_SET_GC_INTERVAL = 0xc
1566 NFTA_SET_USERDATA = 0xd
1567 NFTA_SET_PAD = 0xe
1568 NFTA_SET_OBJ_TYPE = 0xf
1569 NFT_SET_ELEM_INTERVAL_END = 0x1
1570 NFTA_SET_ELEM_UNSPEC = 0x0
1571 NFTA_SET_ELEM_KEY = 0x1
1572 NFTA_SET_ELEM_DATA = 0x2
1573 NFTA_SET_ELEM_FLAGS = 0x3
1574 NFTA_SET_ELEM_TIMEOUT = 0x4
1575 NFTA_SET_ELEM_EXPIRATION = 0x5
1576 NFTA_SET_ELEM_USERDATA = 0x6
1577 NFTA_SET_ELEM_EXPR = 0x7
1578 NFTA_SET_ELEM_PAD = 0x8
1579 NFTA_SET_ELEM_OBJREF = 0x9
1580 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1581 NFTA_SET_ELEM_LIST_TABLE = 0x1
1582 NFTA_SET_ELEM_LIST_SET = 0x2
1583 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1584 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1585 NFT_DATA_VALUE = 0x0
1586 NFT_DATA_VERDICT = 0xffffff00
1587 NFTA_DATA_UNSPEC = 0x0
1588 NFTA_DATA_VALUE = 0x1
1589 NFTA_DATA_VERDICT = 0x2
1590 NFTA_VERDICT_UNSPEC = 0x0
1591 NFTA_VERDICT_CODE = 0x1
1592 NFTA_VERDICT_CHAIN = 0x2
1593 NFTA_EXPR_UNSPEC = 0x0
1594 NFTA_EXPR_NAME = 0x1
1595 NFTA_EXPR_DATA = 0x2
1596 NFTA_IMMEDIATE_UNSPEC = 0x0
1597 NFTA_IMMEDIATE_DREG = 0x1
1598 NFTA_IMMEDIATE_DATA = 0x2
1599 NFTA_BITWISE_UNSPEC = 0x0
1600 NFTA_BITWISE_SREG = 0x1
1601 NFTA_BITWISE_DREG = 0x2
1602 NFTA_BITWISE_LEN = 0x3
1603 NFTA_BITWISE_MASK = 0x4
1604 NFTA_BITWISE_XOR = 0x5
1605 NFT_BYTEORDER_NTOH = 0x0
1606 NFT_BYTEORDER_HTON = 0x1
1607 NFTA_BYTEORDER_UNSPEC = 0x0
1608 NFTA_BYTEORDER_SREG = 0x1
1609 NFTA_BYTEORDER_DREG = 0x2
1610 NFTA_BYTEORDER_OP = 0x3
1611 NFTA_BYTEORDER_LEN = 0x4
1612 NFTA_BYTEORDER_SIZE = 0x5
1613 NFT_CMP_EQ = 0x0
1614 NFT_CMP_NEQ = 0x1
1615 NFT_CMP_LT = 0x2
1616 NFT_CMP_LTE = 0x3
1617 NFT_CMP_GT = 0x4
1618 NFT_CMP_GTE = 0x5
1619 NFTA_CMP_UNSPEC = 0x0
1620 NFTA_CMP_SREG = 0x1
1621 NFTA_CMP_OP = 0x2
1622 NFTA_CMP_DATA = 0x3
1623 NFT_RANGE_EQ = 0x0
1624 NFT_RANGE_NEQ = 0x1
1625 NFTA_RANGE_UNSPEC = 0x0
1626 NFTA_RANGE_SREG = 0x1
1627 NFTA_RANGE_OP = 0x2
1628 NFTA_RANGE_FROM_DATA = 0x3
1629 NFTA_RANGE_TO_DATA = 0x4
1630 NFT_LOOKUP_F_INV = 0x1
1631 NFTA_LOOKUP_UNSPEC = 0x0
1632 NFTA_LOOKUP_SET = 0x1
1633 NFTA_LOOKUP_SREG = 0x2
1634 NFTA_LOOKUP_DREG = 0x3
1635 NFTA_LOOKUP_SET_ID = 0x4
1636 NFTA_LOOKUP_FLAGS = 0x5
1637 NFT_DYNSET_OP_ADD = 0x0
1638 NFT_DYNSET_OP_UPDATE = 0x1
1639 NFT_DYNSET_F_INV = 0x1
1640 NFTA_DYNSET_UNSPEC = 0x0
1641 NFTA_DYNSET_SET_NAME = 0x1
1642 NFTA_DYNSET_SET_ID = 0x2
1643 NFTA_DYNSET_OP = 0x3
1644 NFTA_DYNSET_SREG_KEY = 0x4
1645 NFTA_DYNSET_SREG_DATA = 0x5
1646 NFTA_DYNSET_TIMEOUT = 0x6
1647 NFTA_DYNSET_EXPR = 0x7
1648 NFTA_DYNSET_PAD = 0x8
1649 NFTA_DYNSET_FLAGS = 0x9
1650 NFT_PAYLOAD_LL_HEADER = 0x0
1651 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1652 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1653 NFT_PAYLOAD_CSUM_NONE = 0x0
1654 NFT_PAYLOAD_CSUM_INET = 0x1
1655 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1656 NFTA_PAYLOAD_UNSPEC = 0x0
1657 NFTA_PAYLOAD_DREG = 0x1
1658 NFTA_PAYLOAD_BASE = 0x2
1659 NFTA_PAYLOAD_OFFSET = 0x3
1660 NFTA_PAYLOAD_LEN = 0x4
1661 NFTA_PAYLOAD_SREG = 0x5
1662 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1663 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1664 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1665 NFT_EXTHDR_F_PRESENT = 0x1
1666 NFT_EXTHDR_OP_IPV6 = 0x0
1667 NFT_EXTHDR_OP_TCPOPT = 0x1
1668 NFTA_EXTHDR_UNSPEC = 0x0
1669 NFTA_EXTHDR_DREG = 0x1
1670 NFTA_EXTHDR_TYPE = 0x2
1671 NFTA_EXTHDR_OFFSET = 0x3
1672 NFTA_EXTHDR_LEN = 0x4
1673 NFTA_EXTHDR_FLAGS = 0x5
1674 NFTA_EXTHDR_OP = 0x6
1675 NFTA_EXTHDR_SREG = 0x7
1676 NFT_META_LEN = 0x0
1677 NFT_META_PROTOCOL = 0x1
1678 NFT_META_PRIORITY = 0x2
1679 NFT_META_MARK = 0x3
1680 NFT_META_IIF = 0x4
1681 NFT_META_OIF = 0x5
1682 NFT_META_IIFNAME = 0x6
1683 NFT_META_OIFNAME = 0x7
1684 NFT_META_IIFTYPE = 0x8
1685 NFT_META_OIFTYPE = 0x9
1686 NFT_META_SKUID = 0xa
1687 NFT_META_SKGID = 0xb
1688 NFT_META_NFTRACE = 0xc
1689 NFT_META_RTCLASSID = 0xd
1690 NFT_META_SECMARK = 0xe
1691 NFT_META_NFPROTO = 0xf
1692 NFT_META_L4PROTO = 0x10
1693 NFT_META_BRI_IIFNAME = 0x11
1694 NFT_META_BRI_OIFNAME = 0x12
1695 NFT_META_PKTTYPE = 0x13
1696 NFT_META_CPU = 0x14
1697 NFT_META_IIFGROUP = 0x15
1698 NFT_META_OIFGROUP = 0x16
1699 NFT_META_CGROUP = 0x17
1700 NFT_META_PRANDOM = 0x18
1701 NFT_RT_CLASSID = 0x0
1702 NFT_RT_NEXTHOP4 = 0x1
1703 NFT_RT_NEXTHOP6 = 0x2
1704 NFT_RT_TCPMSS = 0x3
1705 NFT_HASH_JENKINS = 0x0
1706 NFT_HASH_SYM = 0x1
1707 NFTA_HASH_UNSPEC = 0x0
1708 NFTA_HASH_SREG = 0x1
1709 NFTA_HASH_DREG = 0x2
1710 NFTA_HASH_LEN = 0x3
1711 NFTA_HASH_MODULUS = 0x4
1712 NFTA_HASH_SEED = 0x5
1713 NFTA_HASH_OFFSET = 0x6
1714 NFTA_HASH_TYPE = 0x7
1715 NFTA_META_UNSPEC = 0x0
1716 NFTA_META_DREG = 0x1
1717 NFTA_META_KEY = 0x2
1718 NFTA_META_SREG = 0x3
1719 NFTA_RT_UNSPEC = 0x0
1720 NFTA_RT_DREG = 0x1
1721 NFTA_RT_KEY = 0x2
1722 NFT_CT_STATE = 0x0
1723 NFT_CT_DIRECTION = 0x1
1724 NFT_CT_STATUS = 0x2
1725 NFT_CT_MARK = 0x3
1726 NFT_CT_SECMARK = 0x4
1727 NFT_CT_EXPIRATION = 0x5
1728 NFT_CT_HELPER = 0x6
1729 NFT_CT_L3PROTOCOL = 0x7
1730 NFT_CT_SRC = 0x8
1731 NFT_CT_DST = 0x9
1732 NFT_CT_PROTOCOL = 0xa
1733 NFT_CT_PROTO_SRC = 0xb
1734 NFT_CT_PROTO_DST = 0xc
1735 NFT_CT_LABELS = 0xd
1736 NFT_CT_PKTS = 0xe
1737 NFT_CT_BYTES = 0xf
1738 NFT_CT_AVGPKT = 0x10
1739 NFT_CT_ZONE = 0x11
1740 NFT_CT_EVENTMASK = 0x12
1741 NFTA_CT_UNSPEC = 0x0
1742 NFTA_CT_DREG = 0x1
1743 NFTA_CT_KEY = 0x2
1744 NFTA_CT_DIRECTION = 0x3
1745 NFTA_CT_SREG = 0x4
1746 NFT_LIMIT_PKTS = 0x0
1747 NFT_LIMIT_PKT_BYTES = 0x1
1748 NFT_LIMIT_F_INV = 0x1
1749 NFTA_LIMIT_UNSPEC = 0x0
1750 NFTA_LIMIT_RATE = 0x1
1751 NFTA_LIMIT_UNIT = 0x2
1752 NFTA_LIMIT_BURST = 0x3
1753 NFTA_LIMIT_TYPE = 0x4
1754 NFTA_LIMIT_FLAGS = 0x5
1755 NFTA_LIMIT_PAD = 0x6
1756 NFTA_COUNTER_UNSPEC = 0x0
1757 NFTA_COUNTER_BYTES = 0x1
1758 NFTA_COUNTER_PACKETS = 0x2
1759 NFTA_COUNTER_PAD = 0x3
1760 NFTA_LOG_UNSPEC = 0x0
1761 NFTA_LOG_GROUP = 0x1
1762 NFTA_LOG_PREFIX = 0x2
1763 NFTA_LOG_SNAPLEN = 0x3
1764 NFTA_LOG_QTHRESHOLD = 0x4
1765 NFTA_LOG_LEVEL = 0x5
1766 NFTA_LOG_FLAGS = 0x6
1767 NFTA_QUEUE_UNSPEC = 0x0
1768 NFTA_QUEUE_NUM = 0x1
1769 NFTA_QUEUE_TOTAL = 0x2
1770 NFTA_QUEUE_FLAGS = 0x3
1771 NFTA_QUEUE_SREG_QNUM = 0x4
1772 NFT_QUOTA_F_INV = 0x1
1773 NFT_QUOTA_F_DEPLETED = 0x2
1774 NFTA_QUOTA_UNSPEC = 0x0
1775 NFTA_QUOTA_BYTES = 0x1
1776 NFTA_QUOTA_FLAGS = 0x2
1777 NFTA_QUOTA_PAD = 0x3
1778 NFTA_QUOTA_CONSUMED = 0x4
1779 NFT_REJECT_ICMP_UNREACH = 0x0
1780 NFT_REJECT_TCP_RST = 0x1
1781 NFT_REJECT_ICMPX_UNREACH = 0x2
1782 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1783 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1784 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1785 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1786 NFTA_REJECT_UNSPEC = 0x0
1787 NFTA_REJECT_TYPE = 0x1
1788 NFTA_REJECT_ICMP_CODE = 0x2
1789 NFT_NAT_SNAT = 0x0
1790 NFT_NAT_DNAT = 0x1
1791 NFTA_NAT_UNSPEC = 0x0
1792 NFTA_NAT_TYPE = 0x1
1793 NFTA_NAT_FAMILY = 0x2
1794 NFTA_NAT_REG_ADDR_MIN = 0x3
1795 NFTA_NAT_REG_ADDR_MAX = 0x4
1796 NFTA_NAT_REG_PROTO_MIN = 0x5
1797 NFTA_NAT_REG_PROTO_MAX = 0x6
1798 NFTA_NAT_FLAGS = 0x7
1799 NFTA_MASQ_UNSPEC = 0x0
1800 NFTA_MASQ_FLAGS = 0x1
1801 NFTA_MASQ_REG_PROTO_MIN = 0x2
1802 NFTA_MASQ_REG_PROTO_MAX = 0x3
1803 NFTA_REDIR_UNSPEC = 0x0
1804 NFTA_REDIR_REG_PROTO_MIN = 0x1
1805 NFTA_REDIR_REG_PROTO_MAX = 0x2
1806 NFTA_REDIR_FLAGS = 0x3
1807 NFTA_DUP_UNSPEC = 0x0
1808 NFTA_DUP_SREG_ADDR = 0x1
1809 NFTA_DUP_SREG_DEV = 0x2
1810 NFTA_FWD_UNSPEC = 0x0
1811 NFTA_FWD_SREG_DEV = 0x1
1812 NFTA_OBJREF_UNSPEC = 0x0
1813 NFTA_OBJREF_IMM_TYPE = 0x1
1814 NFTA_OBJREF_IMM_NAME = 0x2
1815 NFTA_OBJREF_SET_SREG = 0x3
1816 NFTA_OBJREF_SET_NAME = 0x4
1817 NFTA_OBJREF_SET_ID = 0x5
1818 NFTA_GEN_UNSPEC = 0x0
1819 NFTA_GEN_ID = 0x1
1820 NFTA_GEN_PROC_PID = 0x2
1821 NFTA_GEN_PROC_NAME = 0x3
1822 NFTA_FIB_UNSPEC = 0x0
1823 NFTA_FIB_DREG = 0x1
1824 NFTA_FIB_RESULT = 0x2
1825 NFTA_FIB_FLAGS = 0x3
1826 NFT_FIB_RESULT_UNSPEC = 0x0
1827 NFT_FIB_RESULT_OIF = 0x1
1828 NFT_FIB_RESULT_OIFNAME = 0x2
1829 NFT_FIB_RESULT_ADDRTYPE = 0x3
1830 NFTA_FIB_F_SADDR = 0x1
1831 NFTA_FIB_F_DADDR = 0x2
1832 NFTA_FIB_F_MARK = 0x4
1833 NFTA_FIB_F_IIF = 0x8
1834 NFTA_FIB_F_OIF = 0x10
1835 NFTA_FIB_F_PRESENT = 0x20
1836 NFTA_CT_HELPER_UNSPEC = 0x0
1837 NFTA_CT_HELPER_NAME = 0x1
1838 NFTA_CT_HELPER_L3PROTO = 0x2
1839 NFTA_CT_HELPER_L4PROTO = 0x3
1840 NFTA_OBJ_UNSPEC = 0x0
1841 NFTA_OBJ_TABLE = 0x1
1842 NFTA_OBJ_NAME = 0x2
1843 NFTA_OBJ_TYPE = 0x3
1844 NFTA_OBJ_DATA = 0x4
1845 NFTA_OBJ_USE = 0x5
1846 NFTA_TRACE_UNSPEC = 0x0
1847 NFTA_TRACE_TABLE = 0x1
1848 NFTA_TRACE_CHAIN = 0x2
1849 NFTA_TRACE_RULE_HANDLE = 0x3
1850 NFTA_TRACE_TYPE = 0x4
1851 NFTA_TRACE_VERDICT = 0x5
1852 NFTA_TRACE_ID = 0x6
1853 NFTA_TRACE_LL_HEADER = 0x7
1854 NFTA_TRACE_NETWORK_HEADER = 0x8
1855 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1856 NFTA_TRACE_IIF = 0xa
1857 NFTA_TRACE_IIFTYPE = 0xb
1858 NFTA_TRACE_OIF = 0xc
1859 NFTA_TRACE_OIFTYPE = 0xd
1860 NFTA_TRACE_MARK = 0xe
1861 NFTA_TRACE_NFPROTO = 0xf
1862 NFTA_TRACE_POLICY = 0x10
1863 NFTA_TRACE_PAD = 0x11
1864 NFT_TRACETYPE_UNSPEC = 0x0
1865 NFT_TRACETYPE_POLICY = 0x1
1866 NFT_TRACETYPE_RETURN = 0x2
1867 NFT_TRACETYPE_RULE = 0x3
1868 NFTA_NG_UNSPEC = 0x0
1869 NFTA_NG_DREG = 0x1
1870 NFTA_NG_MODULUS = 0x2
1871 NFTA_NG_TYPE = 0x3
1872 NFTA_NG_OFFSET = 0x4
1873 NFT_NG_INCREMENTAL = 0x0
1874 NFT_NG_RANDOM = 0x1
1875)
1876
1877type RTCTime struct {
1878 Sec int32
1879 Min int32
1880 Hour int32
1881 Mday int32
1882 Mon int32
1883 Year int32
1884 Wday int32
1885 Yday int32
1886 Isdst int32
1887}
1888
1889type RTCWkAlrm struct {
1890 Enabled uint8
1891 Pending uint8
1892 _ [2]byte
1893 Time RTCTime
1894}
1895
1896type RTCPLLInfo struct {
1897 Ctrl int32
1898 Value int32
1899 Max int32
1900 Min int32
1901 Posmult int32
1902 Negmult int32
1903 Clock int64
1904}
1905
1906type BlkpgIoctlArg struct {
1907 Op int32
1908 Flags int32
1909 Datalen int32
1910 _ [4]byte
1911 Data *byte
1912}
1913
1914type BlkpgPartition struct {
1915 Start int64
1916 Length int64
1917 Pno int32
1918 Devname [64]uint8
1919 Volname [64]uint8
1920 _ [4]byte
1921}
1922
1923const (
1924 BLKPG = 0x1269
1925 BLKPG_ADD_PARTITION = 0x1
1926 BLKPG_DEL_PARTITION = 0x2
1927 BLKPG_RESIZE_PARTITION = 0x3
1928)
1929
1930const (
1931 NETNSA_NONE = 0x0
1932 NETNSA_NSID = 0x1
1933 NETNSA_PID = 0x2
1934 NETNSA_FD = 0x3
1935)
1936
1937type XDPRingOffset struct {
1938 Producer uint64
1939 Consumer uint64
1940 Desc uint64
1941}
1942
1943type XDPMmapOffsets struct {
1944 Rx XDPRingOffset
1945 Tx XDPRingOffset
1946 Fr XDPRingOffset
1947 Cr XDPRingOffset
1948}
1949
1950type XDPUmemReg struct {
1951 Addr uint64
1952 Len uint64
1953 Size uint32
1954 Headroom uint32
1955}
1956
1957type XDPStatistics struct {
1958 Rx_dropped uint64
1959 Rx_invalid_descs uint64
1960 Tx_invalid_descs uint64
1961}
1962
1963type XDPDesc struct {
1964 Addr uint64
1965 Len uint32
1966 Options uint32
1967}
1968
1969const (
1970 NCSI_CMD_UNSPEC = 0x0
1971 NCSI_CMD_PKG_INFO = 0x1
1972 NCSI_CMD_SET_INTERFACE = 0x2
1973 NCSI_CMD_CLEAR_INTERFACE = 0x3
1974 NCSI_ATTR_UNSPEC = 0x0
1975 NCSI_ATTR_IFINDEX = 0x1
1976 NCSI_ATTR_PACKAGE_LIST = 0x2
1977 NCSI_ATTR_PACKAGE_ID = 0x3
1978 NCSI_ATTR_CHANNEL_ID = 0x4
1979 NCSI_PKG_ATTR_UNSPEC = 0x0
1980 NCSI_PKG_ATTR = 0x1
1981 NCSI_PKG_ATTR_ID = 0x2
1982 NCSI_PKG_ATTR_FORCED = 0x3
1983 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1984 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1985 NCSI_CHANNEL_ATTR = 0x1
1986 NCSI_CHANNEL_ATTR_ID = 0x2
1987 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1988 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1989 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1990 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1991 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1992 NCSI_CHANNEL_ATTR_FORCED = 0x8
1993 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1994 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1995)
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 64952cb..5e86e49 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x1000 14 PathMax = 0x1000
15) 15)
16 16
@@ -116,22 +116,6 @@ type Stat_t struct {
116 _ [3]int64 116 _ [3]int64
117} 117}
118 118
119type Statfs_t struct {
120 Type uint32
121 Bsize uint32
122 Blocks uint64
123 Bfree uint64
124 Bavail uint64
125 Files uint64
126 Ffree uint64
127 Fsid Fsid
128 Namelen uint32
129 Frsize uint32
130 Flags uint32
131 Spare [4]uint32
132 _ [4]byte
133}
134
135type StatxTimestamp struct { 119type StatxTimestamp struct {
136 Sec int64 120 Sec int64
137 Nsec uint32 121 Nsec uint32
@@ -172,7 +156,7 @@ type Dirent struct {
172} 156}
173 157
174type Fsid struct { 158type Fsid struct {
175 _ [2]int32 159 Val [2]int32
176} 160}
177 161
178type Flock_t struct { 162type Flock_t struct {
@@ -266,6 +250,13 @@ type RawSockaddrL2 struct {
266 _ [1]byte 250 _ [1]byte
267} 251}
268 252
253type RawSockaddrRFCOMM struct {
254 Family uint16
255 Bdaddr [6]uint8
256 Channel uint8
257 _ [1]byte
258}
259
269type RawSockaddrCAN struct { 260type RawSockaddrCAN struct {
270 Family uint16 261 Family uint16
271 _ [2]byte 262 _ [2]byte
@@ -289,6 +280,14 @@ type RawSockaddrVM struct {
289 Zero [4]uint8 280 Zero [4]uint8
290} 281}
291 282
283type RawSockaddrXDP struct {
284 Family uint16
285 Flags uint16
286 Ifindex uint32
287 Queue_id uint32
288 Shared_umem_fd uint32
289}
290
292type RawSockaddr struct { 291type RawSockaddr struct {
293 Family uint16 292 Family uint16
294 Data [14]int8 293 Data [14]int8
@@ -421,9 +420,11 @@ const (
421 SizeofSockaddrNetlink = 0xc 420 SizeofSockaddrNetlink = 0xc
422 SizeofSockaddrHCI = 0x6 421 SizeofSockaddrHCI = 0x6
423 SizeofSockaddrL2 = 0xe 422 SizeofSockaddrL2 = 0xe
423 SizeofSockaddrRFCOMM = 0xa
424 SizeofSockaddrCAN = 0x10 424 SizeofSockaddrCAN = 0x10
425 SizeofSockaddrALG = 0x58 425 SizeofSockaddrALG = 0x58
426 SizeofSockaddrVM = 0x10 426 SizeofSockaddrVM = 0x10
427 SizeofSockaddrXDP = 0x10
427 SizeofLinger = 0x8 428 SizeofLinger = 0x8
428 SizeofIovec = 0x10 429 SizeofIovec = 0x10
429 SizeofIPMreq = 0x8 430 SizeofIPMreq = 0x8
@@ -441,97 +442,138 @@ const (
441) 442)
442 443
443const ( 444const (
444 IFA_UNSPEC = 0x0 445 IFA_UNSPEC = 0x0
445 IFA_ADDRESS = 0x1 446 IFA_ADDRESS = 0x1
446 IFA_LOCAL = 0x2 447 IFA_LOCAL = 0x2
447 IFA_LABEL = 0x3 448 IFA_LABEL = 0x3
448 IFA_BROADCAST = 0x4 449 IFA_BROADCAST = 0x4
449 IFA_ANYCAST = 0x5 450 IFA_ANYCAST = 0x5
450 IFA_CACHEINFO = 0x6 451 IFA_CACHEINFO = 0x6
451 IFA_MULTICAST = 0x7 452 IFA_MULTICAST = 0x7
452 IFLA_UNSPEC = 0x0 453 IFLA_UNSPEC = 0x0
453 IFLA_ADDRESS = 0x1 454 IFLA_ADDRESS = 0x1
454 IFLA_BROADCAST = 0x2 455 IFLA_BROADCAST = 0x2
455 IFLA_IFNAME = 0x3 456 IFLA_IFNAME = 0x3
456 IFLA_MTU = 0x4 457 IFLA_INFO_KIND = 0x1
457 IFLA_LINK = 0x5 458 IFLA_MTU = 0x4
458 IFLA_QDISC = 0x6 459 IFLA_LINK = 0x5
459 IFLA_STATS = 0x7 460 IFLA_QDISC = 0x6
460 IFLA_COST = 0x8 461 IFLA_STATS = 0x7
461 IFLA_PRIORITY = 0x9 462 IFLA_COST = 0x8
462 IFLA_MASTER = 0xa 463 IFLA_PRIORITY = 0x9
463 IFLA_WIRELESS = 0xb 464 IFLA_MASTER = 0xa
464 IFLA_PROTINFO = 0xc 465 IFLA_WIRELESS = 0xb
465 IFLA_TXQLEN = 0xd 466 IFLA_PROTINFO = 0xc
466 IFLA_MAP = 0xe 467 IFLA_TXQLEN = 0xd
467 IFLA_WEIGHT = 0xf 468 IFLA_MAP = 0xe
468 IFLA_OPERSTATE = 0x10 469 IFLA_WEIGHT = 0xf
469 IFLA_LINKMODE = 0x11 470 IFLA_OPERSTATE = 0x10
470 IFLA_LINKINFO = 0x12 471 IFLA_LINKMODE = 0x11
471 IFLA_NET_NS_PID = 0x13 472 IFLA_LINKINFO = 0x12
472 IFLA_IFALIAS = 0x14 473 IFLA_NET_NS_PID = 0x13
473 IFLA_MAX = 0x2c 474 IFLA_IFALIAS = 0x14
474 RT_SCOPE_UNIVERSE = 0x0 475 IFLA_NUM_VF = 0x15
475 RT_SCOPE_SITE = 0xc8 476 IFLA_VFINFO_LIST = 0x16
476 RT_SCOPE_LINK = 0xfd 477 IFLA_STATS64 = 0x17
477 RT_SCOPE_HOST = 0xfe 478 IFLA_VF_PORTS = 0x18
478 RT_SCOPE_NOWHERE = 0xff 479 IFLA_PORT_SELF = 0x19
479 RT_TABLE_UNSPEC = 0x0 480 IFLA_AF_SPEC = 0x1a
480 RT_TABLE_COMPAT = 0xfc 481 IFLA_GROUP = 0x1b
481 RT_TABLE_DEFAULT = 0xfd 482 IFLA_NET_NS_FD = 0x1c
482 RT_TABLE_MAIN = 0xfe 483 IFLA_EXT_MASK = 0x1d
483 RT_TABLE_LOCAL = 0xff 484 IFLA_PROMISCUITY = 0x1e
484 RT_TABLE_MAX = 0xffffffff 485 IFLA_NUM_TX_QUEUES = 0x1f
485 RTA_UNSPEC = 0x0 486 IFLA_NUM_RX_QUEUES = 0x20
486 RTA_DST = 0x1 487 IFLA_CARRIER = 0x21
487 RTA_SRC = 0x2 488 IFLA_PHYS_PORT_ID = 0x22
488 RTA_IIF = 0x3 489 IFLA_CARRIER_CHANGES = 0x23
489 RTA_OIF = 0x4 490 IFLA_PHYS_SWITCH_ID = 0x24
490 RTA_GATEWAY = 0x5 491 IFLA_LINK_NETNSID = 0x25
491 RTA_PRIORITY = 0x6 492 IFLA_PHYS_PORT_NAME = 0x26
492 RTA_PREFSRC = 0x7 493 IFLA_PROTO_DOWN = 0x27
493 RTA_METRICS = 0x8 494 IFLA_GSO_MAX_SEGS = 0x28
494 RTA_MULTIPATH = 0x9 495 IFLA_GSO_MAX_SIZE = 0x29
495 RTA_FLOW = 0xb 496 IFLA_PAD = 0x2a
496 RTA_CACHEINFO = 0xc 497 IFLA_XDP = 0x2b
497 RTA_TABLE = 0xf 498 IFLA_EVENT = 0x2c
498 RTN_UNSPEC = 0x0 499 IFLA_NEW_NETNSID = 0x2d
499 RTN_UNICAST = 0x1 500 IFLA_IF_NETNSID = 0x2e
500 RTN_LOCAL = 0x2 501 IFLA_MAX = 0x31
501 RTN_BROADCAST = 0x3 502 RT_SCOPE_UNIVERSE = 0x0
502 RTN_ANYCAST = 0x4 503 RT_SCOPE_SITE = 0xc8
503 RTN_MULTICAST = 0x5 504 RT_SCOPE_LINK = 0xfd
504 RTN_BLACKHOLE = 0x6 505 RT_SCOPE_HOST = 0xfe
505 RTN_UNREACHABLE = 0x7 506 RT_SCOPE_NOWHERE = 0xff
506 RTN_PROHIBIT = 0x8 507 RT_TABLE_UNSPEC = 0x0
507 RTN_THROW = 0x9 508 RT_TABLE_COMPAT = 0xfc
508 RTN_NAT = 0xa 509 RT_TABLE_DEFAULT = 0xfd
509 RTN_XRESOLVE = 0xb 510 RT_TABLE_MAIN = 0xfe
510 RTNLGRP_NONE = 0x0 511 RT_TABLE_LOCAL = 0xff
511 RTNLGRP_LINK = 0x1 512 RT_TABLE_MAX = 0xffffffff
512 RTNLGRP_NOTIFY = 0x2 513 RTA_UNSPEC = 0x0
513 RTNLGRP_NEIGH = 0x3 514 RTA_DST = 0x1
514 RTNLGRP_TC = 0x4 515 RTA_SRC = 0x2
515 RTNLGRP_IPV4_IFADDR = 0x5 516 RTA_IIF = 0x3
516 RTNLGRP_IPV4_MROUTE = 0x6 517 RTA_OIF = 0x4
517 RTNLGRP_IPV4_ROUTE = 0x7 518 RTA_GATEWAY = 0x5
518 RTNLGRP_IPV4_RULE = 0x8 519 RTA_PRIORITY = 0x6
519 RTNLGRP_IPV6_IFADDR = 0x9 520 RTA_PREFSRC = 0x7
520 RTNLGRP_IPV6_MROUTE = 0xa 521 RTA_METRICS = 0x8
521 RTNLGRP_IPV6_ROUTE = 0xb 522 RTA_MULTIPATH = 0x9
522 RTNLGRP_IPV6_IFINFO = 0xc 523 RTA_FLOW = 0xb
523 RTNLGRP_IPV6_PREFIX = 0x12 524 RTA_CACHEINFO = 0xc
524 RTNLGRP_IPV6_RULE = 0x13 525 RTA_TABLE = 0xf
525 RTNLGRP_ND_USEROPT = 0x14 526 RTA_MARK = 0x10
526 SizeofNlMsghdr = 0x10 527 RTA_MFC_STATS = 0x11
527 SizeofNlMsgerr = 0x14 528 RTA_VIA = 0x12
528 SizeofRtGenmsg = 0x1 529 RTA_NEWDST = 0x13
529 SizeofNlAttr = 0x4 530 RTA_PREF = 0x14
530 SizeofRtAttr = 0x4 531 RTA_ENCAP_TYPE = 0x15
531 SizeofIfInfomsg = 0x10 532 RTA_ENCAP = 0x16
532 SizeofIfAddrmsg = 0x8 533 RTA_EXPIRES = 0x17
533 SizeofRtMsg = 0xc 534 RTA_PAD = 0x18
534 SizeofRtNexthop = 0x8 535 RTA_UID = 0x19
536 RTA_TTL_PROPAGATE = 0x1a
537 RTA_IP_PROTO = 0x1b
538 RTA_SPORT = 0x1c
539 RTA_DPORT = 0x1d
540 RTN_UNSPEC = 0x0
541 RTN_UNICAST = 0x1
542 RTN_LOCAL = 0x2
543 RTN_BROADCAST = 0x3
544 RTN_ANYCAST = 0x4
545 RTN_MULTICAST = 0x5
546 RTN_BLACKHOLE = 0x6
547 RTN_UNREACHABLE = 0x7
548 RTN_PROHIBIT = 0x8
549 RTN_THROW = 0x9
550 RTN_NAT = 0xa
551 RTN_XRESOLVE = 0xb
552 RTNLGRP_NONE = 0x0
553 RTNLGRP_LINK = 0x1
554 RTNLGRP_NOTIFY = 0x2
555 RTNLGRP_NEIGH = 0x3
556 RTNLGRP_TC = 0x4
557 RTNLGRP_IPV4_IFADDR = 0x5
558 RTNLGRP_IPV4_MROUTE = 0x6
559 RTNLGRP_IPV4_ROUTE = 0x7
560 RTNLGRP_IPV4_RULE = 0x8
561 RTNLGRP_IPV6_IFADDR = 0x9
562 RTNLGRP_IPV6_MROUTE = 0xa
563 RTNLGRP_IPV6_ROUTE = 0xb
564 RTNLGRP_IPV6_IFINFO = 0xc
565 RTNLGRP_IPV6_PREFIX = 0x12
566 RTNLGRP_IPV6_RULE = 0x13
567 RTNLGRP_ND_USEROPT = 0x14
568 SizeofNlMsghdr = 0x10
569 SizeofNlMsgerr = 0x14
570 SizeofRtGenmsg = 0x1
571 SizeofNlAttr = 0x4
572 SizeofRtAttr = 0x4
573 SizeofIfInfomsg = 0x10
574 SizeofIfAddrmsg = 0x8
575 SizeofRtMsg = 0xc
576 SizeofRtNexthop = 0x8
535) 577)
536 578
537type NlMsghdr struct { 579type NlMsghdr struct {
@@ -718,6 +760,8 @@ const (
718 760
719 AT_SYMLINK_FOLLOW = 0x400 761 AT_SYMLINK_FOLLOW = 0x400
720 AT_SYMLINK_NOFOLLOW = 0x100 762 AT_SYMLINK_NOFOLLOW = 0x100
763
764 AT_EACCESS = 0x200
721) 765)
722 766
723type PollFd struct { 767type PollFd struct {
@@ -737,7 +781,7 @@ const (
737) 781)
738 782
739type Sigset_t struct { 783type Sigset_t struct {
740 _ [16]uint64 784 Val [16]uint64
741} 785}
742 786
743const RNDGETENTCNT = 0x80045200 787const RNDGETENTCNT = 0x80045200
@@ -893,3 +937,1059 @@ const (
893 BDADDR_LE_PUBLIC = 0x1 937 BDADDR_LE_PUBLIC = 0x1
894 BDADDR_LE_RANDOM = 0x2 938 BDADDR_LE_RANDOM = 0x2
895) 939)
940
941type PerfEventAttr struct {
942 Type uint32
943 Size uint32
944 Config uint64
945 Sample uint64
946 Sample_type uint64
947 Read_format uint64
948 Bits uint64
949 Wakeup uint32
950 Bp_type uint32
951 Ext1 uint64
952 Ext2 uint64
953 Branch_sample_type uint64
954 Sample_regs_user uint64
955 Sample_stack_user uint32
956 Clockid int32
957 Sample_regs_intr uint64
958 Aux_watermark uint32
959 _ uint32
960}
961
962type PerfEventMmapPage struct {
963 Version uint32
964 Compat_version uint32
965 Lock uint32
966 Index uint32
967 Offset int64
968 Time_enabled uint64
969 Time_running uint64
970 Capabilities uint64
971 Pmc_width uint16
972 Time_shift uint16
973 Time_mult uint32
974 Time_offset uint64
975 Time_zero uint64
976 Size uint32
977 _ [948]uint8
978 Data_head uint64
979 Data_tail uint64
980 Data_offset uint64
981 Data_size uint64
982 Aux_head uint64
983 Aux_tail uint64
984 Aux_offset uint64
985 Aux_size uint64
986}
987
988const (
989 PerfBitDisabled uint64 = CBitFieldMaskBit0
990 PerfBitInherit = CBitFieldMaskBit1
991 PerfBitPinned = CBitFieldMaskBit2
992 PerfBitExclusive = CBitFieldMaskBit3
993 PerfBitExcludeUser = CBitFieldMaskBit4
994 PerfBitExcludeKernel = CBitFieldMaskBit5
995 PerfBitExcludeHv = CBitFieldMaskBit6
996 PerfBitExcludeIdle = CBitFieldMaskBit7
997 PerfBitMmap = CBitFieldMaskBit8
998 PerfBitComm = CBitFieldMaskBit9
999 PerfBitFreq = CBitFieldMaskBit10
1000 PerfBitInheritStat = CBitFieldMaskBit11
1001 PerfBitEnableOnExec = CBitFieldMaskBit12
1002 PerfBitTask = CBitFieldMaskBit13
1003 PerfBitWatermark = CBitFieldMaskBit14
1004 PerfBitPreciseIPBit1 = CBitFieldMaskBit15
1005 PerfBitPreciseIPBit2 = CBitFieldMaskBit16
1006 PerfBitMmapData = CBitFieldMaskBit17
1007 PerfBitSampleIDAll = CBitFieldMaskBit18
1008 PerfBitExcludeHost = CBitFieldMaskBit19
1009 PerfBitExcludeGuest = CBitFieldMaskBit20
1010 PerfBitExcludeCallchainKernel = CBitFieldMaskBit21
1011 PerfBitExcludeCallchainUser = CBitFieldMaskBit22
1012 PerfBitMmap2 = CBitFieldMaskBit23
1013 PerfBitCommExec = CBitFieldMaskBit24
1014 PerfBitUseClockID = CBitFieldMaskBit25
1015 PerfBitContextSwitch = CBitFieldMaskBit26
1016)
1017
1018const (
1019 PERF_TYPE_HARDWARE = 0x0
1020 PERF_TYPE_SOFTWARE = 0x1
1021 PERF_TYPE_TRACEPOINT = 0x2
1022 PERF_TYPE_HW_CACHE = 0x3
1023 PERF_TYPE_RAW = 0x4
1024 PERF_TYPE_BREAKPOINT = 0x5
1025
1026 PERF_COUNT_HW_CPU_CYCLES = 0x0
1027 PERF_COUNT_HW_INSTRUCTIONS = 0x1
1028 PERF_COUNT_HW_CACHE_REFERENCES = 0x2
1029 PERF_COUNT_HW_CACHE_MISSES = 0x3
1030 PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4
1031 PERF_COUNT_HW_BRANCH_MISSES = 0x5
1032 PERF_COUNT_HW_BUS_CYCLES = 0x6
1033 PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7
1034 PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8
1035 PERF_COUNT_HW_REF_CPU_CYCLES = 0x9
1036
1037 PERF_COUNT_HW_CACHE_L1D = 0x0
1038 PERF_COUNT_HW_CACHE_L1I = 0x1
1039 PERF_COUNT_HW_CACHE_LL = 0x2
1040 PERF_COUNT_HW_CACHE_DTLB = 0x3
1041 PERF_COUNT_HW_CACHE_ITLB = 0x4
1042 PERF_COUNT_HW_CACHE_BPU = 0x5
1043 PERF_COUNT_HW_CACHE_NODE = 0x6
1044
1045 PERF_COUNT_HW_CACHE_OP_READ = 0x0
1046 PERF_COUNT_HW_CACHE_OP_WRITE = 0x1
1047 PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2
1048
1049 PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0
1050 PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1
1051
1052 PERF_COUNT_SW_CPU_CLOCK = 0x0
1053 PERF_COUNT_SW_TASK_CLOCK = 0x1
1054 PERF_COUNT_SW_PAGE_FAULTS = 0x2
1055 PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3
1056 PERF_COUNT_SW_CPU_MIGRATIONS = 0x4
1057 PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5
1058 PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6
1059 PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
1060 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
1061 PERF_COUNT_SW_DUMMY = 0x9
1062
1063 PERF_SAMPLE_IP = 0x1
1064 PERF_SAMPLE_TID = 0x2
1065 PERF_SAMPLE_TIME = 0x4
1066 PERF_SAMPLE_ADDR = 0x8
1067 PERF_SAMPLE_READ = 0x10
1068 PERF_SAMPLE_CALLCHAIN = 0x20
1069 PERF_SAMPLE_ID = 0x40
1070 PERF_SAMPLE_CPU = 0x80
1071 PERF_SAMPLE_PERIOD = 0x100
1072 PERF_SAMPLE_STREAM_ID = 0x200
1073 PERF_SAMPLE_RAW = 0x400
1074 PERF_SAMPLE_BRANCH_STACK = 0x800
1075
1076 PERF_SAMPLE_BRANCH_USER = 0x1
1077 PERF_SAMPLE_BRANCH_KERNEL = 0x2
1078 PERF_SAMPLE_BRANCH_HV = 0x4
1079 PERF_SAMPLE_BRANCH_ANY = 0x8
1080 PERF_SAMPLE_BRANCH_ANY_CALL = 0x10
1081 PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
1082 PERF_SAMPLE_BRANCH_IND_CALL = 0x40
1083
1084 PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
1085 PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
1086 PERF_FORMAT_ID = 0x4
1087 PERF_FORMAT_GROUP = 0x8
1088
1089 PERF_RECORD_MMAP = 0x1
1090 PERF_RECORD_LOST = 0x2
1091 PERF_RECORD_COMM = 0x3
1092 PERF_RECORD_EXIT = 0x4
1093 PERF_RECORD_THROTTLE = 0x5
1094 PERF_RECORD_UNTHROTTLE = 0x6
1095 PERF_RECORD_FORK = 0x7
1096 PERF_RECORD_READ = 0x8
1097 PERF_RECORD_SAMPLE = 0x9
1098
1099 PERF_CONTEXT_HV = -0x20
1100 PERF_CONTEXT_KERNEL = -0x80
1101 PERF_CONTEXT_USER = -0x200
1102
1103 PERF_CONTEXT_GUEST = -0x800
1104 PERF_CONTEXT_GUEST_KERNEL = -0x880
1105 PERF_CONTEXT_GUEST_USER = -0xa00
1106
1107 PERF_FLAG_FD_NO_GROUP = 0x1
1108 PERF_FLAG_FD_OUTPUT = 0x2
1109 PERF_FLAG_PID_CGROUP = 0x4
1110)
1111
1112const (
1113 CBitFieldMaskBit0 = 0x8000000000000000
1114 CBitFieldMaskBit1 = 0x4000000000000000
1115 CBitFieldMaskBit2 = 0x2000000000000000
1116 CBitFieldMaskBit3 = 0x1000000000000000
1117 CBitFieldMaskBit4 = 0x800000000000000
1118 CBitFieldMaskBit5 = 0x400000000000000
1119 CBitFieldMaskBit6 = 0x200000000000000
1120 CBitFieldMaskBit7 = 0x100000000000000
1121 CBitFieldMaskBit8 = 0x80000000000000
1122 CBitFieldMaskBit9 = 0x40000000000000
1123 CBitFieldMaskBit10 = 0x20000000000000
1124 CBitFieldMaskBit11 = 0x10000000000000
1125 CBitFieldMaskBit12 = 0x8000000000000
1126 CBitFieldMaskBit13 = 0x4000000000000
1127 CBitFieldMaskBit14 = 0x2000000000000
1128 CBitFieldMaskBit15 = 0x1000000000000
1129 CBitFieldMaskBit16 = 0x800000000000
1130 CBitFieldMaskBit17 = 0x400000000000
1131 CBitFieldMaskBit18 = 0x200000000000
1132 CBitFieldMaskBit19 = 0x100000000000
1133 CBitFieldMaskBit20 = 0x80000000000
1134 CBitFieldMaskBit21 = 0x40000000000
1135 CBitFieldMaskBit22 = 0x20000000000
1136 CBitFieldMaskBit23 = 0x10000000000
1137 CBitFieldMaskBit24 = 0x8000000000
1138 CBitFieldMaskBit25 = 0x4000000000
1139 CBitFieldMaskBit26 = 0x2000000000
1140 CBitFieldMaskBit27 = 0x1000000000
1141 CBitFieldMaskBit28 = 0x800000000
1142 CBitFieldMaskBit29 = 0x400000000
1143 CBitFieldMaskBit30 = 0x200000000
1144 CBitFieldMaskBit31 = 0x100000000
1145 CBitFieldMaskBit32 = 0x80000000
1146 CBitFieldMaskBit33 = 0x40000000
1147 CBitFieldMaskBit34 = 0x20000000
1148 CBitFieldMaskBit35 = 0x10000000
1149 CBitFieldMaskBit36 = 0x8000000
1150 CBitFieldMaskBit37 = 0x4000000
1151 CBitFieldMaskBit38 = 0x2000000
1152 CBitFieldMaskBit39 = 0x1000000
1153 CBitFieldMaskBit40 = 0x800000
1154 CBitFieldMaskBit41 = 0x400000
1155 CBitFieldMaskBit42 = 0x200000
1156 CBitFieldMaskBit43 = 0x100000
1157 CBitFieldMaskBit44 = 0x80000
1158 CBitFieldMaskBit45 = 0x40000
1159 CBitFieldMaskBit46 = 0x20000
1160 CBitFieldMaskBit47 = 0x10000
1161 CBitFieldMaskBit48 = 0x8000
1162 CBitFieldMaskBit49 = 0x4000
1163 CBitFieldMaskBit50 = 0x2000
1164 CBitFieldMaskBit51 = 0x1000
1165 CBitFieldMaskBit52 = 0x800
1166 CBitFieldMaskBit53 = 0x400
1167 CBitFieldMaskBit54 = 0x200
1168 CBitFieldMaskBit55 = 0x100
1169 CBitFieldMaskBit56 = 0x80
1170 CBitFieldMaskBit57 = 0x40
1171 CBitFieldMaskBit58 = 0x20
1172 CBitFieldMaskBit59 = 0x10
1173 CBitFieldMaskBit60 = 0x8
1174 CBitFieldMaskBit61 = 0x4
1175 CBitFieldMaskBit62 = 0x2
1176 CBitFieldMaskBit63 = 0x1
1177)
1178
1179type SockaddrStorage struct {
1180 Family uint16
1181 _ [118]int8
1182 _ uint64
1183}
1184
1185type TCPMD5Sig struct {
1186 Addr SockaddrStorage
1187 Flags uint8
1188 Prefixlen uint8
1189 Keylen uint16
1190 _ uint32
1191 Key [80]uint8
1192}
1193
1194type HDDriveCmdHdr struct {
1195 Command uint8
1196 Number uint8
1197 Feature uint8
1198 Count uint8
1199}
1200
1201type HDGeometry struct {
1202 Heads uint8
1203 Sectors uint8
1204 Cylinders uint16
1205 _ [4]byte
1206 Start uint64
1207}
1208
1209type HDDriveID struct {
1210 Config uint16
1211 Cyls uint16
1212 Reserved2 uint16
1213 Heads uint16
1214 Track_bytes uint16
1215 Sector_bytes uint16
1216 Sectors uint16
1217 Vendor0 uint16
1218 Vendor1 uint16
1219 Vendor2 uint16
1220 Serial_no [20]uint8
1221 Buf_type uint16
1222 Buf_size uint16
1223 Ecc_bytes uint16
1224 Fw_rev [8]uint8
1225 Model [40]uint8
1226 Max_multsect uint8
1227 Vendor3 uint8
1228 Dword_io uint16
1229 Vendor4 uint8
1230 Capability uint8
1231 Reserved50 uint16
1232 Vendor5 uint8
1233 TPIO uint8
1234 Vendor6 uint8
1235 TDMA uint8
1236 Field_valid uint16
1237 Cur_cyls uint16
1238 Cur_heads uint16
1239 Cur_sectors uint16
1240 Cur_capacity0 uint16
1241 Cur_capacity1 uint16
1242 Multsect uint8
1243 Multsect_valid uint8
1244 Lba_capacity uint32
1245 Dma_1word uint16
1246 Dma_mword uint16
1247 Eide_pio_modes uint16
1248 Eide_dma_min uint16
1249 Eide_dma_time uint16
1250 Eide_pio uint16
1251 Eide_pio_iordy uint16
1252 Words69_70 [2]uint16
1253 Words71_74 [4]uint16
1254 Queue_depth uint16
1255 Words76_79 [4]uint16
1256 Major_rev_num uint16
1257 Minor_rev_num uint16
1258 Command_set_1 uint16
1259 Command_set_2 uint16
1260 Cfsse uint16
1261 Cfs_enable_1 uint16
1262 Cfs_enable_2 uint16
1263 Csf_default uint16
1264 Dma_ultra uint16
1265 Trseuc uint16
1266 TrsEuc uint16
1267 CurAPMvalues uint16
1268 Mprc uint16
1269 Hw_config uint16
1270 Acoustic uint16
1271 Msrqs uint16
1272 Sxfert uint16
1273 Sal uint16
1274 Spg uint32
1275 Lba_capacity_2 uint64
1276 Words104_125 [22]uint16
1277 Last_lun uint16
1278 Word127 uint16
1279 Dlf uint16
1280 Csfo uint16
1281 Words130_155 [26]uint16
1282 Word156 uint16
1283 Words157_159 [3]uint16
1284 Cfa_power uint16
1285 Words161_175 [15]uint16
1286 Words176_205 [30]uint16
1287 Words206_254 [49]uint16
1288 Integrity_word uint16
1289}
1290
1291type Statfs_t struct {
1292 Type uint32
1293 Bsize uint32
1294 Blocks uint64
1295 Bfree uint64
1296 Bavail uint64
1297 Files uint64
1298 Ffree uint64
1299 Fsid Fsid
1300 Namelen uint32
1301 Frsize uint32
1302 Flags uint32
1303 Spare [4]uint32
1304 _ [4]byte
1305}
1306
1307const (
1308 ST_MANDLOCK = 0x40
1309 ST_NOATIME = 0x400
1310 ST_NODEV = 0x4
1311 ST_NODIRATIME = 0x800
1312 ST_NOEXEC = 0x8
1313 ST_NOSUID = 0x2
1314 ST_RDONLY = 0x1
1315 ST_RELATIME = 0x1000
1316 ST_SYNCHRONOUS = 0x10
1317)
1318
1319type TpacketHdr struct {
1320 Status uint64
1321 Len uint32
1322 Snaplen uint32
1323 Mac uint16
1324 Net uint16
1325 Sec uint32
1326 Usec uint32
1327 _ [4]byte
1328}
1329
1330type Tpacket2Hdr struct {
1331 Status uint32
1332 Len uint32
1333 Snaplen uint32
1334 Mac uint16
1335 Net uint16
1336 Sec uint32
1337 Nsec uint32
1338 Vlan_tci uint16
1339 Vlan_tpid uint16
1340 _ [4]uint8
1341}
1342
1343type Tpacket3Hdr struct {
1344 Next_offset uint32
1345 Sec uint32
1346 Nsec uint32
1347 Snaplen uint32
1348 Len uint32
1349 Status uint32
1350 Mac uint16
1351 Net uint16
1352 Hv1 TpacketHdrVariant1
1353 _ [8]uint8
1354}
1355
1356type TpacketHdrVariant1 struct {
1357 Rxhash uint32
1358 Vlan_tci uint32
1359 Vlan_tpid uint16
1360 _ uint16
1361}
1362
1363type TpacketBlockDesc struct {
1364 Version uint32
1365 To_priv uint32
1366 Hdr [40]byte
1367}
1368
1369type TpacketReq struct {
1370 Block_size uint32
1371 Block_nr uint32
1372 Frame_size uint32
1373 Frame_nr uint32
1374}
1375
1376type TpacketReq3 struct {
1377 Block_size uint32
1378 Block_nr uint32
1379 Frame_size uint32
1380 Frame_nr uint32
1381 Retire_blk_tov uint32
1382 Sizeof_priv uint32
1383 Feature_req_word uint32
1384}
1385
1386type TpacketStats struct {
1387 Packets uint32
1388 Drops uint32
1389}
1390
1391type TpacketStatsV3 struct {
1392 Packets uint32
1393 Drops uint32
1394 Freeze_q_cnt uint32
1395}
1396
1397type TpacketAuxdata struct {
1398 Status uint32
1399 Len uint32
1400 Snaplen uint32
1401 Mac uint16
1402 Net uint16
1403 Vlan_tci uint16
1404 Vlan_tpid uint16
1405}
1406
1407const (
1408 TPACKET_V1 = 0x0
1409 TPACKET_V2 = 0x1
1410 TPACKET_V3 = 0x2
1411)
1412
1413const (
1414 SizeofTpacketHdr = 0x20
1415 SizeofTpacket2Hdr = 0x20
1416 SizeofTpacket3Hdr = 0x30
1417)
1418
1419const (
1420 NF_INET_PRE_ROUTING = 0x0
1421 NF_INET_LOCAL_IN = 0x1
1422 NF_INET_FORWARD = 0x2
1423 NF_INET_LOCAL_OUT = 0x3
1424 NF_INET_POST_ROUTING = 0x4
1425 NF_INET_NUMHOOKS = 0x5
1426)
1427
1428const (
1429 NF_NETDEV_INGRESS = 0x0
1430 NF_NETDEV_NUMHOOKS = 0x1
1431)
1432
1433const (
1434 NFPROTO_UNSPEC = 0x0
1435 NFPROTO_INET = 0x1
1436 NFPROTO_IPV4 = 0x2
1437 NFPROTO_ARP = 0x3
1438 NFPROTO_NETDEV = 0x5
1439 NFPROTO_BRIDGE = 0x7
1440 NFPROTO_IPV6 = 0xa
1441 NFPROTO_DECNET = 0xc
1442 NFPROTO_NUMPROTO = 0xd
1443)
1444
1445type Nfgenmsg struct {
1446 Nfgen_family uint8
1447 Version uint8
1448 Res_id uint16
1449}
1450
1451const (
1452 NFNL_BATCH_UNSPEC = 0x0
1453 NFNL_BATCH_GENID = 0x1
1454)
1455
1456const (
1457 NFT_REG_VERDICT = 0x0
1458 NFT_REG_1 = 0x1
1459 NFT_REG_2 = 0x2
1460 NFT_REG_3 = 0x3
1461 NFT_REG_4 = 0x4
1462 NFT_REG32_00 = 0x8
1463 NFT_REG32_01 = 0x9
1464 NFT_REG32_02 = 0xa
1465 NFT_REG32_03 = 0xb
1466 NFT_REG32_04 = 0xc
1467 NFT_REG32_05 = 0xd
1468 NFT_REG32_06 = 0xe
1469 NFT_REG32_07 = 0xf
1470 NFT_REG32_08 = 0x10
1471 NFT_REG32_09 = 0x11
1472 NFT_REG32_10 = 0x12
1473 NFT_REG32_11 = 0x13
1474 NFT_REG32_12 = 0x14
1475 NFT_REG32_13 = 0x15
1476 NFT_REG32_14 = 0x16
1477 NFT_REG32_15 = 0x17
1478 NFT_CONTINUE = -0x1
1479 NFT_BREAK = -0x2
1480 NFT_JUMP = -0x3
1481 NFT_GOTO = -0x4
1482 NFT_RETURN = -0x5
1483 NFT_MSG_NEWTABLE = 0x0
1484 NFT_MSG_GETTABLE = 0x1
1485 NFT_MSG_DELTABLE = 0x2
1486 NFT_MSG_NEWCHAIN = 0x3
1487 NFT_MSG_GETCHAIN = 0x4
1488 NFT_MSG_DELCHAIN = 0x5
1489 NFT_MSG_NEWRULE = 0x6
1490 NFT_MSG_GETRULE = 0x7
1491 NFT_MSG_DELRULE = 0x8
1492 NFT_MSG_NEWSET = 0x9
1493 NFT_MSG_GETSET = 0xa
1494 NFT_MSG_DELSET = 0xb
1495 NFT_MSG_NEWSETELEM = 0xc
1496 NFT_MSG_GETSETELEM = 0xd
1497 NFT_MSG_DELSETELEM = 0xe
1498 NFT_MSG_NEWGEN = 0xf
1499 NFT_MSG_GETGEN = 0x10
1500 NFT_MSG_TRACE = 0x11
1501 NFT_MSG_NEWOBJ = 0x12
1502 NFT_MSG_GETOBJ = 0x13
1503 NFT_MSG_DELOBJ = 0x14
1504 NFT_MSG_GETOBJ_RESET = 0x15
1505 NFT_MSG_MAX = 0x19
1506 NFTA_LIST_UNPEC = 0x0
1507 NFTA_LIST_ELEM = 0x1
1508 NFTA_HOOK_UNSPEC = 0x0
1509 NFTA_HOOK_HOOKNUM = 0x1
1510 NFTA_HOOK_PRIORITY = 0x2
1511 NFTA_HOOK_DEV = 0x3
1512 NFT_TABLE_F_DORMANT = 0x1
1513 NFTA_TABLE_UNSPEC = 0x0
1514 NFTA_TABLE_NAME = 0x1
1515 NFTA_TABLE_FLAGS = 0x2
1516 NFTA_TABLE_USE = 0x3
1517 NFTA_CHAIN_UNSPEC = 0x0
1518 NFTA_CHAIN_TABLE = 0x1
1519 NFTA_CHAIN_HANDLE = 0x2
1520 NFTA_CHAIN_NAME = 0x3
1521 NFTA_CHAIN_HOOK = 0x4
1522 NFTA_CHAIN_POLICY = 0x5
1523 NFTA_CHAIN_USE = 0x6
1524 NFTA_CHAIN_TYPE = 0x7
1525 NFTA_CHAIN_COUNTERS = 0x8
1526 NFTA_CHAIN_PAD = 0x9
1527 NFTA_RULE_UNSPEC = 0x0
1528 NFTA_RULE_TABLE = 0x1
1529 NFTA_RULE_CHAIN = 0x2
1530 NFTA_RULE_HANDLE = 0x3
1531 NFTA_RULE_EXPRESSIONS = 0x4
1532 NFTA_RULE_COMPAT = 0x5
1533 NFTA_RULE_POSITION = 0x6
1534 NFTA_RULE_USERDATA = 0x7
1535 NFTA_RULE_PAD = 0x8
1536 NFTA_RULE_ID = 0x9
1537 NFT_RULE_COMPAT_F_INV = 0x2
1538 NFT_RULE_COMPAT_F_MASK = 0x2
1539 NFTA_RULE_COMPAT_UNSPEC = 0x0
1540 NFTA_RULE_COMPAT_PROTO = 0x1
1541 NFTA_RULE_COMPAT_FLAGS = 0x2
1542 NFT_SET_ANONYMOUS = 0x1
1543 NFT_SET_CONSTANT = 0x2
1544 NFT_SET_INTERVAL = 0x4
1545 NFT_SET_MAP = 0x8
1546 NFT_SET_TIMEOUT = 0x10
1547 NFT_SET_EVAL = 0x20
1548 NFT_SET_OBJECT = 0x40
1549 NFT_SET_POL_PERFORMANCE = 0x0
1550 NFT_SET_POL_MEMORY = 0x1
1551 NFTA_SET_DESC_UNSPEC = 0x0
1552 NFTA_SET_DESC_SIZE = 0x1
1553 NFTA_SET_UNSPEC = 0x0
1554 NFTA_SET_TABLE = 0x1
1555 NFTA_SET_NAME = 0x2
1556 NFTA_SET_FLAGS = 0x3
1557 NFTA_SET_KEY_TYPE = 0x4
1558 NFTA_SET_KEY_LEN = 0x5
1559 NFTA_SET_DATA_TYPE = 0x6
1560 NFTA_SET_DATA_LEN = 0x7
1561 NFTA_SET_POLICY = 0x8
1562 NFTA_SET_DESC = 0x9
1563 NFTA_SET_ID = 0xa
1564 NFTA_SET_TIMEOUT = 0xb
1565 NFTA_SET_GC_INTERVAL = 0xc
1566 NFTA_SET_USERDATA = 0xd
1567 NFTA_SET_PAD = 0xe
1568 NFTA_SET_OBJ_TYPE = 0xf
1569 NFT_SET_ELEM_INTERVAL_END = 0x1
1570 NFTA_SET_ELEM_UNSPEC = 0x0
1571 NFTA_SET_ELEM_KEY = 0x1
1572 NFTA_SET_ELEM_DATA = 0x2
1573 NFTA_SET_ELEM_FLAGS = 0x3
1574 NFTA_SET_ELEM_TIMEOUT = 0x4
1575 NFTA_SET_ELEM_EXPIRATION = 0x5
1576 NFTA_SET_ELEM_USERDATA = 0x6
1577 NFTA_SET_ELEM_EXPR = 0x7
1578 NFTA_SET_ELEM_PAD = 0x8
1579 NFTA_SET_ELEM_OBJREF = 0x9
1580 NFTA_SET_ELEM_LIST_UNSPEC = 0x0
1581 NFTA_SET_ELEM_LIST_TABLE = 0x1
1582 NFTA_SET_ELEM_LIST_SET = 0x2
1583 NFTA_SET_ELEM_LIST_ELEMENTS = 0x3
1584 NFTA_SET_ELEM_LIST_SET_ID = 0x4
1585 NFT_DATA_VALUE = 0x0
1586 NFT_DATA_VERDICT = 0xffffff00
1587 NFTA_DATA_UNSPEC = 0x0
1588 NFTA_DATA_VALUE = 0x1
1589 NFTA_DATA_VERDICT = 0x2
1590 NFTA_VERDICT_UNSPEC = 0x0
1591 NFTA_VERDICT_CODE = 0x1
1592 NFTA_VERDICT_CHAIN = 0x2
1593 NFTA_EXPR_UNSPEC = 0x0
1594 NFTA_EXPR_NAME = 0x1
1595 NFTA_EXPR_DATA = 0x2
1596 NFTA_IMMEDIATE_UNSPEC = 0x0
1597 NFTA_IMMEDIATE_DREG = 0x1
1598 NFTA_IMMEDIATE_DATA = 0x2
1599 NFTA_BITWISE_UNSPEC = 0x0
1600 NFTA_BITWISE_SREG = 0x1
1601 NFTA_BITWISE_DREG = 0x2
1602 NFTA_BITWISE_LEN = 0x3
1603 NFTA_BITWISE_MASK = 0x4
1604 NFTA_BITWISE_XOR = 0x5
1605 NFT_BYTEORDER_NTOH = 0x0
1606 NFT_BYTEORDER_HTON = 0x1
1607 NFTA_BYTEORDER_UNSPEC = 0x0
1608 NFTA_BYTEORDER_SREG = 0x1
1609 NFTA_BYTEORDER_DREG = 0x2
1610 NFTA_BYTEORDER_OP = 0x3
1611 NFTA_BYTEORDER_LEN = 0x4
1612 NFTA_BYTEORDER_SIZE = 0x5
1613 NFT_CMP_EQ = 0x0
1614 NFT_CMP_NEQ = 0x1
1615 NFT_CMP_LT = 0x2
1616 NFT_CMP_LTE = 0x3
1617 NFT_CMP_GT = 0x4
1618 NFT_CMP_GTE = 0x5
1619 NFTA_CMP_UNSPEC = 0x0
1620 NFTA_CMP_SREG = 0x1
1621 NFTA_CMP_OP = 0x2
1622 NFTA_CMP_DATA = 0x3
1623 NFT_RANGE_EQ = 0x0
1624 NFT_RANGE_NEQ = 0x1
1625 NFTA_RANGE_UNSPEC = 0x0
1626 NFTA_RANGE_SREG = 0x1
1627 NFTA_RANGE_OP = 0x2
1628 NFTA_RANGE_FROM_DATA = 0x3
1629 NFTA_RANGE_TO_DATA = 0x4
1630 NFT_LOOKUP_F_INV = 0x1
1631 NFTA_LOOKUP_UNSPEC = 0x0
1632 NFTA_LOOKUP_SET = 0x1
1633 NFTA_LOOKUP_SREG = 0x2
1634 NFTA_LOOKUP_DREG = 0x3
1635 NFTA_LOOKUP_SET_ID = 0x4
1636 NFTA_LOOKUP_FLAGS = 0x5
1637 NFT_DYNSET_OP_ADD = 0x0
1638 NFT_DYNSET_OP_UPDATE = 0x1
1639 NFT_DYNSET_F_INV = 0x1
1640 NFTA_DYNSET_UNSPEC = 0x0
1641 NFTA_DYNSET_SET_NAME = 0x1
1642 NFTA_DYNSET_SET_ID = 0x2
1643 NFTA_DYNSET_OP = 0x3
1644 NFTA_DYNSET_SREG_KEY = 0x4
1645 NFTA_DYNSET_SREG_DATA = 0x5
1646 NFTA_DYNSET_TIMEOUT = 0x6
1647 NFTA_DYNSET_EXPR = 0x7
1648 NFTA_DYNSET_PAD = 0x8
1649 NFTA_DYNSET_FLAGS = 0x9
1650 NFT_PAYLOAD_LL_HEADER = 0x0
1651 NFT_PAYLOAD_NETWORK_HEADER = 0x1
1652 NFT_PAYLOAD_TRANSPORT_HEADER = 0x2
1653 NFT_PAYLOAD_CSUM_NONE = 0x0
1654 NFT_PAYLOAD_CSUM_INET = 0x1
1655 NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1
1656 NFTA_PAYLOAD_UNSPEC = 0x0
1657 NFTA_PAYLOAD_DREG = 0x1
1658 NFTA_PAYLOAD_BASE = 0x2
1659 NFTA_PAYLOAD_OFFSET = 0x3
1660 NFTA_PAYLOAD_LEN = 0x4
1661 NFTA_PAYLOAD_SREG = 0x5
1662 NFTA_PAYLOAD_CSUM_TYPE = 0x6
1663 NFTA_PAYLOAD_CSUM_OFFSET = 0x7
1664 NFTA_PAYLOAD_CSUM_FLAGS = 0x8
1665 NFT_EXTHDR_F_PRESENT = 0x1
1666 NFT_EXTHDR_OP_IPV6 = 0x0
1667 NFT_EXTHDR_OP_TCPOPT = 0x1
1668 NFTA_EXTHDR_UNSPEC = 0x0
1669 NFTA_EXTHDR_DREG = 0x1
1670 NFTA_EXTHDR_TYPE = 0x2
1671 NFTA_EXTHDR_OFFSET = 0x3
1672 NFTA_EXTHDR_LEN = 0x4
1673 NFTA_EXTHDR_FLAGS = 0x5
1674 NFTA_EXTHDR_OP = 0x6
1675 NFTA_EXTHDR_SREG = 0x7
1676 NFT_META_LEN = 0x0
1677 NFT_META_PROTOCOL = 0x1
1678 NFT_META_PRIORITY = 0x2
1679 NFT_META_MARK = 0x3
1680 NFT_META_IIF = 0x4
1681 NFT_META_OIF = 0x5
1682 NFT_META_IIFNAME = 0x6
1683 NFT_META_OIFNAME = 0x7
1684 NFT_META_IIFTYPE = 0x8
1685 NFT_META_OIFTYPE = 0x9
1686 NFT_META_SKUID = 0xa
1687 NFT_META_SKGID = 0xb
1688 NFT_META_NFTRACE = 0xc
1689 NFT_META_RTCLASSID = 0xd
1690 NFT_META_SECMARK = 0xe
1691 NFT_META_NFPROTO = 0xf
1692 NFT_META_L4PROTO = 0x10
1693 NFT_META_BRI_IIFNAME = 0x11
1694 NFT_META_BRI_OIFNAME = 0x12
1695 NFT_META_PKTTYPE = 0x13
1696 NFT_META_CPU = 0x14
1697 NFT_META_IIFGROUP = 0x15
1698 NFT_META_OIFGROUP = 0x16
1699 NFT_META_CGROUP = 0x17
1700 NFT_META_PRANDOM = 0x18
1701 NFT_RT_CLASSID = 0x0
1702 NFT_RT_NEXTHOP4 = 0x1
1703 NFT_RT_NEXTHOP6 = 0x2
1704 NFT_RT_TCPMSS = 0x3
1705 NFT_HASH_JENKINS = 0x0
1706 NFT_HASH_SYM = 0x1
1707 NFTA_HASH_UNSPEC = 0x0
1708 NFTA_HASH_SREG = 0x1
1709 NFTA_HASH_DREG = 0x2
1710 NFTA_HASH_LEN = 0x3
1711 NFTA_HASH_MODULUS = 0x4
1712 NFTA_HASH_SEED = 0x5
1713 NFTA_HASH_OFFSET = 0x6
1714 NFTA_HASH_TYPE = 0x7
1715 NFTA_META_UNSPEC = 0x0
1716 NFTA_META_DREG = 0x1
1717 NFTA_META_KEY = 0x2
1718 NFTA_META_SREG = 0x3
1719 NFTA_RT_UNSPEC = 0x0
1720 NFTA_RT_DREG = 0x1
1721 NFTA_RT_KEY = 0x2
1722 NFT_CT_STATE = 0x0
1723 NFT_CT_DIRECTION = 0x1
1724 NFT_CT_STATUS = 0x2
1725 NFT_CT_MARK = 0x3
1726 NFT_CT_SECMARK = 0x4
1727 NFT_CT_EXPIRATION = 0x5
1728 NFT_CT_HELPER = 0x6
1729 NFT_CT_L3PROTOCOL = 0x7
1730 NFT_CT_SRC = 0x8
1731 NFT_CT_DST = 0x9
1732 NFT_CT_PROTOCOL = 0xa
1733 NFT_CT_PROTO_SRC = 0xb
1734 NFT_CT_PROTO_DST = 0xc
1735 NFT_CT_LABELS = 0xd
1736 NFT_CT_PKTS = 0xe
1737 NFT_CT_BYTES = 0xf
1738 NFT_CT_AVGPKT = 0x10
1739 NFT_CT_ZONE = 0x11
1740 NFT_CT_EVENTMASK = 0x12
1741 NFTA_CT_UNSPEC = 0x0
1742 NFTA_CT_DREG = 0x1
1743 NFTA_CT_KEY = 0x2
1744 NFTA_CT_DIRECTION = 0x3
1745 NFTA_CT_SREG = 0x4
1746 NFT_LIMIT_PKTS = 0x0
1747 NFT_LIMIT_PKT_BYTES = 0x1
1748 NFT_LIMIT_F_INV = 0x1
1749 NFTA_LIMIT_UNSPEC = 0x0
1750 NFTA_LIMIT_RATE = 0x1
1751 NFTA_LIMIT_UNIT = 0x2
1752 NFTA_LIMIT_BURST = 0x3
1753 NFTA_LIMIT_TYPE = 0x4
1754 NFTA_LIMIT_FLAGS = 0x5
1755 NFTA_LIMIT_PAD = 0x6
1756 NFTA_COUNTER_UNSPEC = 0x0
1757 NFTA_COUNTER_BYTES = 0x1
1758 NFTA_COUNTER_PACKETS = 0x2
1759 NFTA_COUNTER_PAD = 0x3
1760 NFTA_LOG_UNSPEC = 0x0
1761 NFTA_LOG_GROUP = 0x1
1762 NFTA_LOG_PREFIX = 0x2
1763 NFTA_LOG_SNAPLEN = 0x3
1764 NFTA_LOG_QTHRESHOLD = 0x4
1765 NFTA_LOG_LEVEL = 0x5
1766 NFTA_LOG_FLAGS = 0x6
1767 NFTA_QUEUE_UNSPEC = 0x0
1768 NFTA_QUEUE_NUM = 0x1
1769 NFTA_QUEUE_TOTAL = 0x2
1770 NFTA_QUEUE_FLAGS = 0x3
1771 NFTA_QUEUE_SREG_QNUM = 0x4
1772 NFT_QUOTA_F_INV = 0x1
1773 NFT_QUOTA_F_DEPLETED = 0x2
1774 NFTA_QUOTA_UNSPEC = 0x0
1775 NFTA_QUOTA_BYTES = 0x1
1776 NFTA_QUOTA_FLAGS = 0x2
1777 NFTA_QUOTA_PAD = 0x3
1778 NFTA_QUOTA_CONSUMED = 0x4
1779 NFT_REJECT_ICMP_UNREACH = 0x0
1780 NFT_REJECT_TCP_RST = 0x1
1781 NFT_REJECT_ICMPX_UNREACH = 0x2
1782 NFT_REJECT_ICMPX_NO_ROUTE = 0x0
1783 NFT_REJECT_ICMPX_PORT_UNREACH = 0x1
1784 NFT_REJECT_ICMPX_HOST_UNREACH = 0x2
1785 NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3
1786 NFTA_REJECT_UNSPEC = 0x0
1787 NFTA_REJECT_TYPE = 0x1
1788 NFTA_REJECT_ICMP_CODE = 0x2
1789 NFT_NAT_SNAT = 0x0
1790 NFT_NAT_DNAT = 0x1
1791 NFTA_NAT_UNSPEC = 0x0
1792 NFTA_NAT_TYPE = 0x1
1793 NFTA_NAT_FAMILY = 0x2
1794 NFTA_NAT_REG_ADDR_MIN = 0x3
1795 NFTA_NAT_REG_ADDR_MAX = 0x4
1796 NFTA_NAT_REG_PROTO_MIN = 0x5
1797 NFTA_NAT_REG_PROTO_MAX = 0x6
1798 NFTA_NAT_FLAGS = 0x7
1799 NFTA_MASQ_UNSPEC = 0x0
1800 NFTA_MASQ_FLAGS = 0x1
1801 NFTA_MASQ_REG_PROTO_MIN = 0x2
1802 NFTA_MASQ_REG_PROTO_MAX = 0x3
1803 NFTA_REDIR_UNSPEC = 0x0
1804 NFTA_REDIR_REG_PROTO_MIN = 0x1
1805 NFTA_REDIR_REG_PROTO_MAX = 0x2
1806 NFTA_REDIR_FLAGS = 0x3
1807 NFTA_DUP_UNSPEC = 0x0
1808 NFTA_DUP_SREG_ADDR = 0x1
1809 NFTA_DUP_SREG_DEV = 0x2
1810 NFTA_FWD_UNSPEC = 0x0
1811 NFTA_FWD_SREG_DEV = 0x1
1812 NFTA_OBJREF_UNSPEC = 0x0
1813 NFTA_OBJREF_IMM_TYPE = 0x1
1814 NFTA_OBJREF_IMM_NAME = 0x2
1815 NFTA_OBJREF_SET_SREG = 0x3
1816 NFTA_OBJREF_SET_NAME = 0x4
1817 NFTA_OBJREF_SET_ID = 0x5
1818 NFTA_GEN_UNSPEC = 0x0
1819 NFTA_GEN_ID = 0x1
1820 NFTA_GEN_PROC_PID = 0x2
1821 NFTA_GEN_PROC_NAME = 0x3
1822 NFTA_FIB_UNSPEC = 0x0
1823 NFTA_FIB_DREG = 0x1
1824 NFTA_FIB_RESULT = 0x2
1825 NFTA_FIB_FLAGS = 0x3
1826 NFT_FIB_RESULT_UNSPEC = 0x0
1827 NFT_FIB_RESULT_OIF = 0x1
1828 NFT_FIB_RESULT_OIFNAME = 0x2
1829 NFT_FIB_RESULT_ADDRTYPE = 0x3
1830 NFTA_FIB_F_SADDR = 0x1
1831 NFTA_FIB_F_DADDR = 0x2
1832 NFTA_FIB_F_MARK = 0x4
1833 NFTA_FIB_F_IIF = 0x8
1834 NFTA_FIB_F_OIF = 0x10
1835 NFTA_FIB_F_PRESENT = 0x20
1836 NFTA_CT_HELPER_UNSPEC = 0x0
1837 NFTA_CT_HELPER_NAME = 0x1
1838 NFTA_CT_HELPER_L3PROTO = 0x2
1839 NFTA_CT_HELPER_L4PROTO = 0x3
1840 NFTA_OBJ_UNSPEC = 0x0
1841 NFTA_OBJ_TABLE = 0x1
1842 NFTA_OBJ_NAME = 0x2
1843 NFTA_OBJ_TYPE = 0x3
1844 NFTA_OBJ_DATA = 0x4
1845 NFTA_OBJ_USE = 0x5
1846 NFTA_TRACE_UNSPEC = 0x0
1847 NFTA_TRACE_TABLE = 0x1
1848 NFTA_TRACE_CHAIN = 0x2
1849 NFTA_TRACE_RULE_HANDLE = 0x3
1850 NFTA_TRACE_TYPE = 0x4
1851 NFTA_TRACE_VERDICT = 0x5
1852 NFTA_TRACE_ID = 0x6
1853 NFTA_TRACE_LL_HEADER = 0x7
1854 NFTA_TRACE_NETWORK_HEADER = 0x8
1855 NFTA_TRACE_TRANSPORT_HEADER = 0x9
1856 NFTA_TRACE_IIF = 0xa
1857 NFTA_TRACE_IIFTYPE = 0xb
1858 NFTA_TRACE_OIF = 0xc
1859 NFTA_TRACE_OIFTYPE = 0xd
1860 NFTA_TRACE_MARK = 0xe
1861 NFTA_TRACE_NFPROTO = 0xf
1862 NFTA_TRACE_POLICY = 0x10
1863 NFTA_TRACE_PAD = 0x11
1864 NFT_TRACETYPE_UNSPEC = 0x0
1865 NFT_TRACETYPE_POLICY = 0x1
1866 NFT_TRACETYPE_RETURN = 0x2
1867 NFT_TRACETYPE_RULE = 0x3
1868 NFTA_NG_UNSPEC = 0x0
1869 NFTA_NG_DREG = 0x1
1870 NFTA_NG_MODULUS = 0x2
1871 NFTA_NG_TYPE = 0x3
1872 NFTA_NG_OFFSET = 0x4
1873 NFT_NG_INCREMENTAL = 0x0
1874 NFT_NG_RANDOM = 0x1
1875)
1876
1877type RTCTime struct {
1878 Sec int32
1879 Min int32
1880 Hour int32
1881 Mday int32
1882 Mon int32
1883 Year int32
1884 Wday int32
1885 Yday int32
1886 Isdst int32
1887}
1888
1889type RTCWkAlrm struct {
1890 Enabled uint8
1891 Pending uint8
1892 _ [2]byte
1893 Time RTCTime
1894}
1895
1896type RTCPLLInfo struct {
1897 Ctrl int32
1898 Value int32
1899 Max int32
1900 Min int32
1901 Posmult int32
1902 Negmult int32
1903 Clock int64
1904}
1905
1906type BlkpgIoctlArg struct {
1907 Op int32
1908 Flags int32
1909 Datalen int32
1910 _ [4]byte
1911 Data *byte
1912}
1913
1914type BlkpgPartition struct {
1915 Start int64
1916 Length int64
1917 Pno int32
1918 Devname [64]uint8
1919 Volname [64]uint8
1920 _ [4]byte
1921}
1922
1923const (
1924 BLKPG = 0x1269
1925 BLKPG_ADD_PARTITION = 0x1
1926 BLKPG_DEL_PARTITION = 0x2
1927 BLKPG_RESIZE_PARTITION = 0x3
1928)
1929
1930const (
1931 NETNSA_NONE = 0x0
1932 NETNSA_NSID = 0x1
1933 NETNSA_PID = 0x2
1934 NETNSA_FD = 0x3
1935)
1936
1937type XDPRingOffset struct {
1938 Producer uint64
1939 Consumer uint64
1940 Desc uint64
1941}
1942
1943type XDPMmapOffsets struct {
1944 Rx XDPRingOffset
1945 Tx XDPRingOffset
1946 Fr XDPRingOffset
1947 Cr XDPRingOffset
1948}
1949
1950type XDPUmemReg struct {
1951 Addr uint64
1952 Len uint64
1953 Size uint32
1954 Headroom uint32
1955}
1956
1957type XDPStatistics struct {
1958 Rx_dropped uint64
1959 Rx_invalid_descs uint64
1960 Tx_invalid_descs uint64
1961}
1962
1963type XDPDesc struct {
1964 Addr uint64
1965 Len uint32
1966 Options uint32
1967}
1968
1969const (
1970 NCSI_CMD_UNSPEC = 0x0
1971 NCSI_CMD_PKG_INFO = 0x1
1972 NCSI_CMD_SET_INTERFACE = 0x2
1973 NCSI_CMD_CLEAR_INTERFACE = 0x3
1974 NCSI_ATTR_UNSPEC = 0x0
1975 NCSI_ATTR_IFINDEX = 0x1
1976 NCSI_ATTR_PACKAGE_LIST = 0x2
1977 NCSI_ATTR_PACKAGE_ID = 0x3
1978 NCSI_ATTR_CHANNEL_ID = 0x4
1979 NCSI_PKG_ATTR_UNSPEC = 0x0
1980 NCSI_PKG_ATTR = 0x1
1981 NCSI_PKG_ATTR_ID = 0x2
1982 NCSI_PKG_ATTR_FORCED = 0x3
1983 NCSI_PKG_ATTR_CHANNEL_LIST = 0x4
1984 NCSI_CHANNEL_ATTR_UNSPEC = 0x0
1985 NCSI_CHANNEL_ATTR = 0x1
1986 NCSI_CHANNEL_ATTR_ID = 0x2
1987 NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3
1988 NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4
1989 NCSI_CHANNEL_ATTR_VERSION_STR = 0x5
1990 NCSI_CHANNEL_ATTR_LINK_STATE = 0x6
1991 NCSI_CHANNEL_ATTR_ACTIVE = 0x7
1992 NCSI_CHANNEL_ATTR_FORCED = 0x8
1993 NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9
1994 NCSI_CHANNEL_ATTR_VLAN_ID = 0xa
1995)
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 9dbbb1c..1fc7f7d 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
@@ -5,11 +5,11 @@
5package unix 5package unix
6 6
7const ( 7const (
8 sizeofPtr = 0x8 8 SizeofPtr = 0x8
9 sizeofShort = 0x2 9 SizeofShort = 0x2
10 sizeofInt = 0x4 10 SizeofInt = 0x4
11 sizeofLong = 0x8 11 SizeofLong = 0x8
12 sizeofLongLong = 0x8 12 SizeofLongLong = 0x8
13 PathMax = 0x1000 13 PathMax = 0x1000
14) 14)
15 15
@@ -376,97 +376,123 @@ const (
376) 376)
377 377
378const ( 378const (
379 IFA_UNSPEC = 0x0 379 IFA_UNSPEC = 0x0
380 IFA_ADDRESS = 0x1 380 IFA_ADDRESS = 0x1
381 IFA_LOCAL = 0x2 381 IFA_LOCAL = 0x2
382 IFA_LABEL = 0x3 382 IFA_LABEL = 0x3
383 IFA_BROADCAST = 0x4 383 IFA_BROADCAST = 0x4
384 IFA_ANYCAST = 0x5 384 IFA_ANYCAST = 0x5
385 IFA_CACHEINFO = 0x6 385 IFA_CACHEINFO = 0x6
386 IFA_MULTICAST = 0x7 386 IFA_MULTICAST = 0x7
387 IFLA_UNSPEC = 0x0 387 IFLA_UNSPEC = 0x0
388 IFLA_ADDRESS = 0x1 388 IFLA_ADDRESS = 0x1
389 IFLA_BROADCAST = 0x2 389 IFLA_BROADCAST = 0x2
390 IFLA_IFNAME = 0x3 390 IFLA_IFNAME = 0x3
391 IFLA_MTU = 0x4 391 IFLA_MTU = 0x4
392 IFLA_LINK = 0x5 392 IFLA_LINK = 0x5
393 IFLA_QDISC = 0x6 393 IFLA_QDISC = 0x6
394 IFLA_STATS = 0x7 394 IFLA_STATS = 0x7
395 IFLA_COST = 0x8 395 IFLA_COST = 0x8
396 IFLA_PRIORITY = 0x9 396 IFLA_PRIORITY = 0x9
397 IFLA_MASTER = 0xa 397 IFLA_MASTER = 0xa
398 IFLA_WIRELESS = 0xb 398 IFLA_WIRELESS = 0xb
399 IFLA_PROTINFO = 0xc 399 IFLA_PROTINFO = 0xc
400 IFLA_TXQLEN = 0xd 400 IFLA_TXQLEN = 0xd
401 IFLA_MAP = 0xe 401 IFLA_MAP = 0xe
402 IFLA_WEIGHT = 0xf 402 IFLA_WEIGHT = 0xf
403 IFLA_OPERSTATE = 0x10 403 IFLA_OPERSTATE = 0x10
404 IFLA_LINKMODE = 0x11 404 IFLA_LINKMODE = 0x11
405 IFLA_LINKINFO = 0x12 405 IFLA_LINKINFO = 0x12
406 IFLA_NET_NS_PID = 0x13 406 IFLA_NET_NS_PID = 0x13
407 IFLA_IFALIAS = 0x14 407 IFLA_IFALIAS = 0x14
408 IFLA_MAX = 0x2a 408 IFLA_NUM_VF = 0x15
409 RT_SCOPE_UNIVERSE = 0x0 409 IFLA_VFINFO_LIST = 0x16
410 RT_SCOPE_SITE = 0xc8 410 IFLA_STATS64 = 0x17
411 RT_SCOPE_LINK = 0xfd 411 IFLA_VF_PORTS = 0x18
412 RT_SCOPE_HOST = 0xfe 412 IFLA_PORT_SELF = 0x19
413 RT_SCOPE_NOWHERE = 0xff 413 IFLA_AF_SPEC = 0x1a
414 RT_TABLE_UNSPEC = 0x0 414 IFLA_GROUP = 0x1b
415 RT_TABLE_COMPAT = 0xfc 415 IFLA_NET_NS_FD = 0x1c
416 RT_TABLE_DEFAULT = 0xfd 416 IFLA_EXT_MASK = 0x1d
417 RT_TABLE_MAIN = 0xfe 417 IFLA_PROMISCUITY = 0x1e
418 RT_TABLE_LOCAL = 0xff 418 IFLA_NUM_TX_QUEUES = 0x1f
419 RT_TABLE_MAX = 0xffffffff 419 IFLA_NUM_RX_QUEUES = 0x20
420 RTA_UNSPEC = 0x0 420 IFLA_CARRIER = 0x21
421 RTA_DST = 0x1 421 IFLA_PHYS_PORT_ID = 0x22
422 RTA_SRC = 0x2 422 IFLA_CARRIER_CHANGES = 0x23
423 RTA_IIF = 0x3 423 IFLA_PHYS_SWITCH_ID = 0x24
424 RTA_OIF = 0x4 424 IFLA_LINK_NETNSID = 0x25
425 RTA_GATEWAY = 0x5 425 IFLA_PHYS_PORT_NAME = 0x26
426 RTA_PRIORITY = 0x6 426 IFLA_PROTO_DOWN = 0x27
427 RTA_PREFSRC = 0x7 427 IFLA_GSO_MAX_SEGS = 0x28
428 RTA_METRICS = 0x8 428 IFLA_GSO_MAX_SIZE = 0x29
429 RTA_MULTIPATH = 0x9 429 IFLA_PAD = 0x2a
430 RTA_FLOW = 0xb 430 IFLA_XDP = 0x2b
431 RTA_CACHEINFO = 0xc 431 IFLA_EVENT = 0x2c
432 RTA_TABLE = 0xf 432 IFLA_NEW_NETNSID = 0x2d
433 RTN_UNSPEC = 0x0 433 IFLA_IF_NETNSID = 0x2e
434 RTN_UNICAST = 0x1 434 IFLA_MAX = 0x2e
435 RTN_LOCAL = 0x2 435 RT_SCOPE_UNIVERSE = 0x0
436 RTN_BROADCAST = 0x3 436 RT_SCOPE_SITE = 0xc8
437 RTN_ANYCAST = 0x4 437 RT_SCOPE_LINK = 0xfd
438 RTN_MULTICAST = 0x5 438 RT_SCOPE_HOST = 0xfe
439 RTN_BLACKHOLE = 0x6 439 RT_SCOPE_NOWHERE = 0xff
440 RTN_UNREACHABLE = 0x7 440 RT_TABLE_UNSPEC = 0x0
441 RTN_PROHIBIT = 0x8 441 RT_TABLE_COMPAT = 0xfc
442 RTN_THROW = 0x9 442 RT_TABLE_DEFAULT = 0xfd
443 RTN_NAT = 0xa 443 RT_TABLE_MAIN = 0xfe
444 RTN_XRESOLVE = 0xb 444 RT_TABLE_LOCAL = 0xff
445 RTNLGRP_NONE = 0x0 445 RT_TABLE_MAX = 0xffffffff
446 RTNLGRP_LINK = 0x1 446 RTA_UNSPEC = 0x0
447 RTNLGRP_NOTIFY = 0x2 447 RTA_DST = 0x1
448 RTNLGRP_NEIGH = 0x3 448 RTA_SRC = 0x2
449 RTNLGRP_TC = 0x4 449 RTA_IIF = 0x3
450 RTNLGRP_IPV4_IFADDR = 0x5 450 RTA_OIF = 0x4
451 RTNLGRP_IPV4_MROUTE = 0x6 451 RTA_GATEWAY = 0x5
452 RTNLGRP_IPV4_ROUTE = 0x7 452 RTA_PRIORITY = 0x6
453 RTNLGRP_IPV4_RULE = 0x8 453 RTA_PREFSRC = 0x7
454 RTNLGRP_IPV6_IFADDR = 0x9 454 RTA_METRICS = 0x8
455 RTNLGRP_IPV6_MROUTE = 0xa 455 RTA_MULTIPATH = 0x9
456 RTNLGRP_IPV6_ROUTE = 0xb 456 RTA_FLOW = 0xb
457 RTNLGRP_IPV6_IFINFO = 0xc 457 RTA_CACHEINFO = 0xc
458 RTNLGRP_IPV6_PREFIX = 0x12 458 RTA_TABLE = 0xf
459 RTNLGRP_IPV6_RULE = 0x13 459 RTN_UNSPEC = 0x0
460 RTNLGRP_ND_USEROPT = 0x14 460 RTN_UNICAST = 0x1
461 SizeofNlMsghdr = 0x10 461 RTN_LOCAL = 0x2
462 SizeofNlMsgerr = 0x14 462 RTN_BROADCAST = 0x3
463 SizeofRtGenmsg = 0x1 463 RTN_ANYCAST = 0x4
464 SizeofNlAttr = 0x4 464 RTN_MULTICAST = 0x5
465 SizeofRtAttr = 0x4 465 RTN_BLACKHOLE = 0x6
466 SizeofIfInfomsg = 0x10 466 RTN_UNREACHABLE = 0x7
467 SizeofIfAddrmsg = 0x8 467 RTN_PROHIBIT = 0x8
468 SizeofRtMsg = 0xc 468 RTN_THROW = 0x9
469 SizeofRtNexthop = 0x8 469 RTN_NAT = 0xa
470 RTN_XRESOLVE = 0xb
471 RTNLGRP_NONE = 0x0
472 RTNLGRP_LINK = 0x1
473 RTNLGRP_NOTIFY = 0x2
474 RTNLGRP_NEIGH = 0x3
475 RTNLGRP_TC = 0x4
476 RTNLGRP_IPV4_IFADDR = 0x5
477 RTNLGRP_IPV4_MROUTE = 0x6
478 RTNLGRP_IPV4_ROUTE = 0x7
479 RTNLGRP_IPV4_RULE = 0x8
480 RTNLGRP_IPV6_IFADDR = 0x9
481 RTNLGRP_IPV6_MROUTE = 0xa
482 RTNLGRP_IPV6_ROUTE = 0xb
483 RTNLGRP_IPV6_IFINFO = 0xc
484 RTNLGRP_IPV6_PREFIX = 0x12
485 RTNLGRP_IPV6_RULE = 0x13
486 RTNLGRP_ND_USEROPT = 0x14
487 SizeofNlMsghdr = 0x10
488 SizeofNlMsgerr = 0x14
489 SizeofRtGenmsg = 0x1
490 SizeofNlAttr = 0x4
491 SizeofRtAttr = 0x4
492 SizeofIfInfomsg = 0x10
493 SizeofIfAddrmsg = 0x8
494 SizeofRtMsg = 0xc
495 SizeofRtNexthop = 0x8
470) 496)
471 497
472type NlMsghdr struct { 498type NlMsghdr struct {
diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
index da70faa..1fdc5fd 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -103,6 +103,15 @@ const (
103 PathMax = 0x400 103 PathMax = 0x400
104) 104)
105 105
106const (
107 FADV_NORMAL = 0x0
108 FADV_RANDOM = 0x1
109 FADV_SEQUENTIAL = 0x2
110 FADV_WILLNEED = 0x3
111 FADV_DONTNEED = 0x4
112 FADV_NOREUSE = 0x5
113)
114
106type RawSockaddrInet4 struct { 115type RawSockaddrInet4 struct {
107 Len uint8 116 Len uint8
108 Family uint8 117 Family uint8
@@ -437,3 +446,13 @@ type Utsname struct {
437 Version [256]byte 446 Version [256]byte
438 Machine [256]byte 447 Machine [256]byte
439} 448}
449
450const SizeofClockinfo = 0x14
451
452type Clockinfo struct {
453 Hz int32
454 Tick int32
455 Tickadj int32
456 Stathz int32
457 Profhz int32
458}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
index 0963ab8..711f780 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -107,6 +107,15 @@ const (
107 PathMax = 0x400 107 PathMax = 0x400
108) 108)
109 109
110const (
111 FADV_NORMAL = 0x0
112 FADV_RANDOM = 0x1
113 FADV_SEQUENTIAL = 0x2
114 FADV_WILLNEED = 0x3
115 FADV_DONTNEED = 0x4
116 FADV_NOREUSE = 0x5
117)
118
110type RawSockaddrInet4 struct { 119type RawSockaddrInet4 struct {
111 Len uint8 120 Len uint8
112 Family uint8 121 Family uint8
@@ -444,3 +453,13 @@ type Utsname struct {
444 Version [256]byte 453 Version [256]byte
445 Machine [256]byte 454 Machine [256]byte
446} 455}
456
457const SizeofClockinfo = 0x14
458
459type Clockinfo struct {
460 Hz int32
461 Tick int32
462 Tickadj int32
463 Stathz int32
464 Profhz int32
465}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
index 211f641..fa1a16b 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -108,6 +108,15 @@ const (
108 PathMax = 0x400 108 PathMax = 0x400
109) 109)
110 110
111const (
112 FADV_NORMAL = 0x0
113 FADV_RANDOM = 0x1
114 FADV_SEQUENTIAL = 0x2
115 FADV_WILLNEED = 0x3
116 FADV_DONTNEED = 0x4
117 FADV_NOREUSE = 0x5
118)
119
111type RawSockaddrInet4 struct { 120type RawSockaddrInet4 struct {
112 Len uint8 121 Len uint8
113 Family uint8 122 Family uint8
@@ -442,3 +451,13 @@ type Utsname struct {
442 Version [256]byte 451 Version [256]byte
443 Machine [256]byte 452 Machine [256]byte
444} 453}
454
455const SizeofClockinfo = 0x14
456
457type Clockinfo struct {
458 Hz int32
459 Tick int32
460 Tickadj int32
461 Stathz int32
462 Profhz int32
463}
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 d5a2d75..c8509bf 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -56,23 +56,6 @@ type Rlimit struct {
56 56
57type _Gid_t uint32 57type _Gid_t uint32
58 58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct { 59type Stat_t struct {
77 Mode uint32 60 Mode uint32
78 Dev int32 61 Dev int32
@@ -482,3 +465,94 @@ type Utsname struct {
482 Version [256]byte 465 Version [256]byte
483 Machine [256]byte 466 Machine [256]byte
484} 467}
468
469const SizeofUvmexp = 0x158
470
471type Uvmexp struct {
472 Pagesize int32
473 Pagemask int32
474 Pageshift int32
475 Npages int32
476 Free int32
477 Active int32
478 Inactive int32
479 Paging int32
480 Wired int32
481 Zeropages int32
482 Reserve_pagedaemon int32
483 Reserve_kernel int32
484 Anonpages int32
485 Vnodepages int32
486 Vtextpages int32
487 Freemin int32
488 Freetarg int32
489 Inactarg int32
490 Wiredmax int32
491 Anonmin int32
492 Vtextmin int32
493 Vnodemin int32
494 Anonminpct int32
495 Vtextminpct int32
496 Vnodeminpct int32
497 Nswapdev int32
498 Swpages int32
499 Swpginuse int32
500 Swpgonly int32
501 Nswget int32
502 Nanon int32
503 Nanonneeded int32
504 Nfreeanon int32
505 Faults int32
506 Traps int32
507 Intrs int32
508 Swtch int32
509 Softs int32
510 Syscalls int32
511 Pageins int32
512 Obsolete_swapins int32
513 Obsolete_swapouts int32
514 Pgswapin int32
515 Pgswapout int32
516 Forks int32
517 Forks_ppwait int32
518 Forks_sharevm int32
519 Pga_zerohit int32
520 Pga_zeromiss int32
521 Zeroaborts int32
522 Fltnoram int32
523 Fltnoanon int32
524 Fltnoamap int32
525 Fltpgwait int32
526 Fltpgrele int32
527 Fltrelck int32
528 Fltrelckok int32
529 Fltanget int32
530 Fltanretry int32
531 Fltamcopy int32
532 Fltnamap int32
533 Fltnomap int32
534 Fltlget int32
535 Fltget int32
536 Flt_anon int32
537 Flt_acow int32
538 Flt_obj int32
539 Flt_prcopy int32
540 Flt_przero int32
541 Pdwoke int32
542 Pdrevs int32
543 Pdswout int32
544 Pdfreed int32
545 Pdscans int32
546 Pdanscan int32
547 Pdobscan int32
548 Pdreact int32
549 Pdbusy int32
550 Pdpageouts int32
551 Pdpending int32
552 Pddeact int32
553 Pdreanon int32
554 Pdrevnode int32
555 Pdrevtext int32
556 Fpswtch int32
557 Kmapent int32
558}
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 d531410..200575d 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -56,48 +56,31 @@ type Rlimit struct {
56 56
57type _Gid_t uint32 57type _Gid_t uint32
58 58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct { 59type Stat_t struct {
77 Mode uint32 60 Mode uint32
78 Dev int32 61 Dev int32
79 Ino uint64 62 Ino uint64
80 Nlink uint32 63 Nlink uint32
81 Uid uint32 64 Uid uint32
82 Gid uint32 65 Gid uint32
83 Rdev int32 66 Rdev int32
84 Atim Timespec 67 Atim Timespec
85 Mtim Timespec 68 Mtim Timespec
86 Ctim Timespec 69 Ctim Timespec
87 Size int64 70 Size int64
88 Blocks int64 71 Blocks int64
89 Blksize uint32 72 Blksize int32
90 Flags uint32 73 Flags uint32
91 Gen uint32 74 Gen uint32
92 Pad_cgo_0 [4]byte 75 _ [4]byte
93 X__st_birthtim Timespec 76 _ Timespec
94} 77}
95 78
96type Statfs_t struct { 79type Statfs_t struct {
97 F_flags uint32 80 F_flags uint32
98 F_bsize uint32 81 F_bsize uint32
99 F_iosize uint32 82 F_iosize uint32
100 Pad_cgo_0 [4]byte 83 _ [4]byte
101 F_blocks uint64 84 F_blocks uint64
102 F_bfree uint64 85 F_bfree uint64
103 F_bavail int64 86 F_bavail int64
@@ -116,7 +99,7 @@ type Statfs_t struct {
116 F_mntonname [90]int8 99 F_mntonname [90]int8
117 F_mntfromname [90]int8 100 F_mntfromname [90]int8
118 F_mntfromspec [90]int8 101 F_mntfromspec [90]int8
119 Pad_cgo_1 [2]byte 102 _ [2]byte
120 Mount_info [160]byte 103 Mount_info [160]byte
121} 104}
122 105
@@ -129,13 +112,13 @@ type Flock_t struct {
129} 112}
130 113
131type Dirent struct { 114type Dirent struct {
132 Fileno uint64 115 Fileno uint64
133 Off int64 116 Off int64
134 Reclen uint16 117 Reclen uint16
135 Type uint8 118 Type uint8
136 Namlen uint8 119 Namlen uint8
137 X__d_padding [4]uint8 120 _ [4]uint8
138 Name [256]int8 121 Name [256]int8
139} 122}
140 123
141type Fsid struct { 124type Fsid struct {
@@ -216,10 +199,10 @@ type IPv6Mreq struct {
216type Msghdr struct { 199type Msghdr struct {
217 Name *byte 200 Name *byte
218 Namelen uint32 201 Namelen uint32
219 Pad_cgo_0 [4]byte 202 _ [4]byte
220 Iov *Iovec 203 Iov *Iovec
221 Iovlen uint32 204 Iovlen uint32
222 Pad_cgo_1 [4]byte 205 _ [4]byte
223 Control *byte 206 Control *byte
224 Controllen uint32 207 Controllen uint32
225 Flags int32 208 Flags int32
@@ -281,8 +264,8 @@ type FdSet struct {
281} 264}
282 265
283const ( 266const (
284 SizeofIfMsghdr = 0xf8 267 SizeofIfMsghdr = 0xa8
285 SizeofIfData = 0xe0 268 SizeofIfData = 0x90
286 SizeofIfaMsghdr = 0x18 269 SizeofIfaMsghdr = 0x18
287 SizeofIfAnnounceMsghdr = 0x1a 270 SizeofIfAnnounceMsghdr = 0x1a
288 SizeofRtMsghdr = 0x60 271 SizeofRtMsghdr = 0x60
@@ -311,7 +294,7 @@ type IfData struct {
311 Link_state uint8 294 Link_state uint8
312 Mtu uint32 295 Mtu uint32
313 Metric uint32 296 Metric uint32
314 Pad uint32 297 Rdomain uint32
315 Baudrate uint64 298 Baudrate uint64
316 Ipackets uint64 299 Ipackets uint64
317 Ierrors uint64 300 Ierrors uint64
@@ -323,12 +306,11 @@ type IfData struct {
323 Imcasts uint64 306 Imcasts uint64
324 Omcasts uint64 307 Omcasts uint64
325 Iqdrops uint64 308 Iqdrops uint64
309 Oqdrops uint64
326 Noproto uint64 310 Noproto uint64
327 Capabilities uint32 311 Capabilities uint32
328 Pad_cgo_0 [4]byte 312 _ [4]byte
329 Lastchange Timeval 313 Lastchange Timeval
330 Mclpool [7]Mclpool
331 Pad_cgo_1 [4]byte
332} 314}
333 315
334type IfaMsghdr struct { 316type IfaMsghdr struct {
@@ -389,13 +371,7 @@ type RtMetrics struct {
389 Pad uint32 371 Pad uint32
390} 372}
391 373
392type Mclpool struct { 374type Mclpool struct{}
393 Grown int32
394 Alive uint16
395 Hwm uint16
396 Cwm uint16
397 Lwm uint16
398}
399 375
400const ( 376const (
401 SizeofBpfVersion = 0x4 377 SizeofBpfVersion = 0x4
@@ -416,9 +392,9 @@ type BpfStat struct {
416} 392}
417 393
418type BpfProgram struct { 394type BpfProgram struct {
419 Len uint32 395 Len uint32
420 Pad_cgo_0 [4]byte 396 _ [4]byte
421 Insns *BpfInsn 397 Insns *BpfInsn
422} 398}
423 399
424type BpfInsn struct { 400type BpfInsn struct {
@@ -429,11 +405,11 @@ type BpfInsn struct {
429} 405}
430 406
431type BpfHdr struct { 407type BpfHdr struct {
432 Tstamp BpfTimeval 408 Tstamp BpfTimeval
433 Caplen uint32 409 Caplen uint32
434 Datalen uint32 410 Datalen uint32
435 Hdrlen uint16 411 Hdrlen uint16
436 Pad_cgo_0 [2]byte 412 _ [2]byte
437} 413}
438 414
439type BpfTimeval struct { 415type BpfTimeval struct {
@@ -489,3 +465,94 @@ type Utsname struct {
489 Version [256]byte 465 Version [256]byte
490 Machine [256]byte 466 Machine [256]byte
491} 467}
468
469const SizeofUvmexp = 0x158
470
471type Uvmexp struct {
472 Pagesize int32
473 Pagemask int32
474 Pageshift int32
475 Npages int32
476 Free int32
477 Active int32
478 Inactive int32
479 Paging int32
480 Wired int32
481 Zeropages int32
482 Reserve_pagedaemon int32
483 Reserve_kernel int32
484 Anonpages int32
485 Vnodepages int32
486 Vtextpages int32
487 Freemin int32
488 Freetarg int32
489 Inactarg int32
490 Wiredmax int32
491 Anonmin int32
492 Vtextmin int32
493 Vnodemin int32
494 Anonminpct int32
495 Vtextminpct int32
496 Vnodeminpct int32
497 Nswapdev int32
498 Swpages int32
499 Swpginuse int32
500 Swpgonly int32
501 Nswget int32
502 Nanon int32
503 Nanonneeded int32
504 Nfreeanon int32
505 Faults int32
506 Traps int32
507 Intrs int32
508 Swtch int32
509 Softs int32
510 Syscalls int32
511 Pageins int32
512 Obsolete_swapins int32
513 Obsolete_swapouts int32
514 Pgswapin int32
515 Pgswapout int32
516 Forks int32
517 Forks_ppwait int32
518 Forks_sharevm int32
519 Pga_zerohit int32
520 Pga_zeromiss int32
521 Zeroaborts int32
522 Fltnoram int32
523 Fltnoanon int32
524 Fltnoamap int32
525 Fltpgwait int32
526 Fltpgrele int32
527 Fltrelck int32
528 Fltrelckok int32
529 Fltanget int32
530 Fltanretry int32
531 Fltamcopy int32
532 Fltnamap int32
533 Fltnomap int32
534 Fltlget int32
535 Fltget int32
536 Flt_anon int32
537 Flt_acow int32
538 Flt_obj int32
539 Flt_prcopy int32
540 Flt_przero int32
541 Pdwoke int32
542 Pdrevs int32
543 Pdswout int32
544 Pdfreed int32
545 Pdscans int32
546 Pdanscan int32
547 Pdobscan int32
548 Pdreact int32
549 Pdbusy int32
550 Pdpageouts int32
551 Pdpending int32
552 Pddeact int32
553 Pdreanon int32
554 Pdrevnode int32
555 Pdrevtext int32
556 Fpswtch int32
557 Kmapent int32
558}
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 e35b13b..3e20cdf 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x4 9 SizeofPtr = 0x4
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x4 12 SizeofLong = 0x4
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14) 14)
15 15
16type ( 16type (
@@ -56,23 +56,6 @@ type Rlimit struct {
56 56
57type _Gid_t uint32 57type _Gid_t uint32
58 58
59const (
60 S_IFMT = 0xf000
61 S_IFIFO = 0x1000
62 S_IFCHR = 0x2000
63 S_IFDIR = 0x4000
64 S_IFBLK = 0x6000
65 S_IFREG = 0x8000
66 S_IFLNK = 0xa000
67 S_IFSOCK = 0xc000
68 S_ISUID = 0x800
69 S_ISGID = 0x400
70 S_ISVTX = 0x200
71 S_IRUSR = 0x100
72 S_IWUSR = 0x80
73 S_IXUSR = 0x40
74)
75
76type Stat_t struct { 59type Stat_t struct {
77 Mode uint32 60 Mode uint32
78 Dev int32 61 Dev int32
@@ -475,3 +458,94 @@ type Utsname struct {
475 Version [256]byte 458 Version [256]byte
476 Machine [256]byte 459 Machine [256]byte
477} 460}
461
462const SizeofUvmexp = 0x158
463
464type Uvmexp struct {
465 Pagesize int32
466 Pagemask int32
467 Pageshift int32
468 Npages int32
469 Free int32
470 Active int32
471 Inactive int32
472 Paging int32
473 Wired int32
474 Zeropages int32
475 Reserve_pagedaemon int32
476 Reserve_kernel int32
477 Anonpages int32
478 Vnodepages int32
479 Vtextpages int32
480 Freemin int32
481 Freetarg int32
482 Inactarg int32
483 Wiredmax int32
484 Anonmin int32
485 Vtextmin int32
486 Vnodemin int32
487 Anonminpct int32
488 Vtextminpct int32
489 Vnodeminpct int32
490 Nswapdev int32
491 Swpages int32
492 Swpginuse int32
493 Swpgonly int32
494 Nswget int32
495 Nanon int32
496 Nanonneeded int32
497 Nfreeanon int32
498 Faults int32
499 Traps int32
500 Intrs int32
501 Swtch int32
502 Softs int32
503 Syscalls int32
504 Pageins int32
505 Obsolete_swapins int32
506 Obsolete_swapouts int32
507 Pgswapin int32
508 Pgswapout int32
509 Forks int32
510 Forks_ppwait int32
511 Forks_sharevm int32
512 Pga_zerohit int32
513 Pga_zeromiss int32
514 Zeroaborts int32
515 Fltnoram int32
516 Fltnoanon int32
517 Fltnoamap int32
518 Fltpgwait int32
519 Fltpgrele int32
520 Fltrelck int32
521 Fltrelckok int32
522 Fltanget int32
523 Fltanretry int32
524 Fltamcopy int32
525 Fltnamap int32
526 Fltnomap int32
527 Fltlget int32
528 Fltget int32
529 Flt_anon int32
530 Flt_acow int32
531 Flt_obj int32
532 Flt_prcopy int32
533 Flt_przero int32
534 Pdwoke int32
535 Pdrevs int32
536 Pdswout int32
537 Pdfreed int32
538 Pdscans int32
539 Pdanscan int32
540 Pdobscan int32
541 Pdreact int32
542 Pdbusy int32
543 Pdpageouts int32
544 Pdpending int32
545 Pddeact int32
546 Pdreanon int32
547 Pdrevnode int32
548 Pdrevtext int32
549 Fpswtch int32
550 Kmapent int32
551}
diff --git a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
index d445452..8531a19 100644
--- a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
+++ b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
@@ -6,11 +6,11 @@
6package unix 6package unix
7 7
8const ( 8const (
9 sizeofPtr = 0x8 9 SizeofPtr = 0x8
10 sizeofShort = 0x2 10 SizeofShort = 0x2
11 sizeofInt = 0x4 11 SizeofInt = 0x4
12 sizeofLong = 0x8 12 SizeofLong = 0x8
13 sizeofLongLong = 0x8 13 SizeofLongLong = 0x8
14 PathMax = 0x400 14 PathMax = 0x400
15 MaxHostNameLen = 0x100 15 MaxHostNameLen = 0x100
16) 16)
@@ -75,58 +75,41 @@ type Rlimit struct {
75 75
76type _Gid_t uint32 76type _Gid_t uint32
77 77
78const (
79 S_IFMT = 0xf000
80 S_IFIFO = 0x1000
81 S_IFCHR = 0x2000
82 S_IFDIR = 0x4000
83 S_IFBLK = 0x6000
84 S_IFREG = 0x8000
85 S_IFLNK = 0xa000
86 S_IFSOCK = 0xc000
87 S_ISUID = 0x800
88 S_ISGID = 0x400
89 S_ISVTX = 0x200
90 S_IRUSR = 0x100
91 S_IWUSR = 0x80
92 S_IXUSR = 0x40
93)
94
95type Stat_t struct { 78type Stat_t struct {
96 Dev uint64 79 Dev uint64
97 Ino uint64 80 Ino uint64
98 Mode uint32 81 Mode uint32
99 Nlink uint32 82 Nlink uint32
100 Uid uint32 83 Uid uint32
101 Gid uint32 84 Gid uint32
102 Rdev uint64 85 Rdev uint64
103 Size int64 86 Size int64
104 Atim Timespec 87 Atim Timespec
105 Mtim Timespec 88 Mtim Timespec
106 Ctim Timespec 89 Ctim Timespec
107 Blksize int32 90 Blksize int32
108 Pad_cgo_0 [4]byte 91 _ [4]byte
109 Blocks int64 92 Blocks int64
110 Fstype [16]int8 93 Fstype [16]int8
111} 94}
112 95
113type Flock_t struct { 96type Flock_t struct {
114 Type int16 97 Type int16
115 Whence int16 98 Whence int16
116 Pad_cgo_0 [4]byte 99 _ [4]byte
117 Start int64 100 Start int64
118 Len int64 101 Len int64
119 Sysid int32 102 Sysid int32
120 Pid int32 103 Pid int32
121 Pad [4]int64 104 Pad [4]int64
122} 105}
123 106
124type Dirent struct { 107type Dirent struct {
125 Ino uint64 108 Ino uint64
126 Off int64 109 Off int64
127 Reclen uint16 110 Reclen uint16
128 Name [1]int8 111 Name [1]int8
129 Pad_cgo_0 [5]byte 112 _ [5]byte
130} 113}
131 114
132type _Fsblkcnt_t uint64 115type _Fsblkcnt_t uint64
@@ -213,13 +196,13 @@ type IPv6Mreq struct {
213type Msghdr struct { 196type Msghdr struct {
214 Name *byte 197 Name *byte
215 Namelen uint32 198 Namelen uint32
216 Pad_cgo_0 [4]byte 199 _ [4]byte
217 Iov *Iovec 200 Iov *Iovec
218 Iovlen int32 201 Iovlen int32
219 Pad_cgo_1 [4]byte 202 _ [4]byte
220 Accrights *int8 203 Accrights *int8
221 Accrightslen int32 204 Accrightslen int32
222 Pad_cgo_2 [4]byte 205 _ [4]byte
223} 206}
224 207
225type Cmsghdr struct { 208type Cmsghdr struct {
@@ -271,11 +254,11 @@ type Utsname struct {
271} 254}
272 255
273type Ustat_t struct { 256type Ustat_t struct {
274 Tfree int64 257 Tfree int64
275 Tinode uint64 258 Tinode uint64
276 Fname [6]int8 259 Fname [6]int8
277 Fpack [6]int8 260 Fpack [6]int8
278 Pad_cgo_0 [4]byte 261 _ [4]byte
279} 262}
280 263
281const ( 264const (
@@ -295,21 +278,21 @@ const (
295) 278)
296 279
297type IfMsghdr struct { 280type IfMsghdr struct {
298 Msglen uint16 281 Msglen uint16
299 Version uint8 282 Version uint8
300 Type uint8 283 Type uint8
301 Addrs int32 284 Addrs int32
302 Flags int32 285 Flags int32
303 Index uint16 286 Index uint16
304 Pad_cgo_0 [2]byte 287 _ [2]byte
305 Data IfData 288 Data IfData
306} 289}
307 290
308type IfData struct { 291type IfData struct {
309 Type uint8 292 Type uint8
310 Addrlen uint8 293 Addrlen uint8
311 Hdrlen uint8 294 Hdrlen uint8
312 Pad_cgo_0 [1]byte 295 _ [1]byte
313 Mtu uint32 296 Mtu uint32
314 Metric uint32 297 Metric uint32
315 Baudrate uint32 298 Baudrate uint32
@@ -328,30 +311,30 @@ type IfData struct {
328} 311}
329 312
330type IfaMsghdr struct { 313type IfaMsghdr struct {
331 Msglen uint16 314 Msglen uint16
332 Version uint8 315 Version uint8
333 Type uint8 316 Type uint8
334 Addrs int32 317 Addrs int32
335 Flags int32 318 Flags int32
336 Index uint16 319 Index uint16
337 Pad_cgo_0 [2]byte 320 _ [2]byte
338 Metric int32 321 Metric int32
339} 322}
340 323
341type RtMsghdr struct { 324type RtMsghdr struct {
342 Msglen uint16 325 Msglen uint16
343 Version uint8 326 Version uint8
344 Type uint8 327 Type uint8
345 Index uint16 328 Index uint16
346 Pad_cgo_0 [2]byte 329 _ [2]byte
347 Flags int32 330 Flags int32
348 Addrs int32 331 Addrs int32
349 Pid int32 332 Pid int32
350 Seq int32 333 Seq int32
351 Errno int32 334 Errno int32
352 Use int32 335 Use int32
353 Inits uint32 336 Inits uint32
354 Rmx RtMetrics 337 Rmx RtMetrics
355} 338}
356 339
357type RtMetrics struct { 340type RtMetrics struct {
@@ -388,9 +371,9 @@ type BpfStat struct {
388} 371}
389 372
390type BpfProgram struct { 373type BpfProgram struct {
391 Len uint32 374 Len uint32
392 Pad_cgo_0 [4]byte 375 _ [4]byte
393 Insns *BpfInsn 376 Insns *BpfInsn
394} 377}
395 378
396type BpfInsn struct { 379type BpfInsn struct {
@@ -406,30 +389,30 @@ type BpfTimeval struct {
406} 389}
407 390
408type BpfHdr struct { 391type BpfHdr struct {
409 Tstamp BpfTimeval 392 Tstamp BpfTimeval
410 Caplen uint32 393 Caplen uint32
411 Datalen uint32 394 Datalen uint32
412 Hdrlen uint16 395 Hdrlen uint16
413 Pad_cgo_0 [2]byte 396 _ [2]byte
414} 397}
415 398
416type Termios struct { 399type Termios struct {
417 Iflag uint32 400 Iflag uint32
418 Oflag uint32 401 Oflag uint32
419 Cflag uint32 402 Cflag uint32
420 Lflag uint32 403 Lflag uint32
421 Cc [19]uint8 404 Cc [19]uint8
422 Pad_cgo_0 [1]byte 405 _ [1]byte
423} 406}
424 407
425type Termio struct { 408type Termio struct {
426 Iflag uint16 409 Iflag uint16
427 Oflag uint16 410 Oflag uint16
428 Cflag uint16 411 Cflag uint16
429 Lflag uint16 412 Lflag uint16
430 Line int8 413 Line int8
431 Cc [8]uint8 414 Cc [8]uint8
432 Pad_cgo_0 [1]byte 415 _ [1]byte
433} 416}
434 417
435type Winsize struct { 418type Winsize struct {
diff --git a/vendor/golang.org/x/sys/windows/aliases.go b/vendor/golang.org/x/sys/windows/aliases.go
new file mode 100644
index 0000000..af3af60
--- /dev/null
+++ b/vendor/golang.org/x/sys/windows/aliases.go
@@ -0,0 +1,13 @@
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 windows
6// +build go1.9
7
8package windows
9
10import "syscall"
11
12type Errno = syscall.Errno
13type SysProcAttr = syscall.SysProcAttr
diff --git a/vendor/golang.org/x/sys/windows/asm_windows_386.s b/vendor/golang.org/x/sys/windows/asm_windows_386.s
index 1c20dd2..21d994d 100644
--- a/vendor/golang.org/x/sys/windows/asm_windows_386.s
+++ b/vendor/golang.org/x/sys/windows/asm_windows_386.s
@@ -6,8 +6,8 @@
6// System calls for 386, Windows are implemented in runtime/syscall_windows.goc 6// System calls for 386, Windows are implemented in runtime/syscall_windows.goc
7// 7//
8 8
9TEXT ·getprocaddress(SB), 7, $0-8 9TEXT ·getprocaddress(SB), 7, $0-16
10 JMP syscall·getprocaddress(SB) 10 JMP syscall·getprocaddress(SB)
11 11
12TEXT ·loadlibrary(SB), 7, $0-4 12TEXT ·loadlibrary(SB), 7, $0-12
13 JMP syscall·loadlibrary(SB) 13 JMP syscall·loadlibrary(SB)
diff --git a/vendor/golang.org/x/sys/windows/asm_windows_amd64.s b/vendor/golang.org/x/sys/windows/asm_windows_amd64.s
index 4d025ab..5bfdf79 100644
--- a/vendor/golang.org/x/sys/windows/asm_windows_amd64.s
+++ b/vendor/golang.org/x/sys/windows/asm_windows_amd64.s
@@ -9,5 +9,5 @@
9TEXT ·getprocaddress(SB), 7, $0-32 9TEXT ·getprocaddress(SB), 7, $0-32
10 JMP syscall·getprocaddress(SB) 10 JMP syscall·getprocaddress(SB)
11 11
12TEXT ·loadlibrary(SB), 7, $0-8 12TEXT ·loadlibrary(SB), 7, $0-24
13 JMP syscall·loadlibrary(SB) 13 JMP syscall·loadlibrary(SB)
diff --git a/vendor/golang.org/x/sys/windows/asm_windows_arm.s b/vendor/golang.org/x/sys/windows/asm_windows_arm.s
new file mode 100644
index 0000000..55d8b91
--- /dev/null
+++ b/vendor/golang.org/x/sys/windows/asm_windows_arm.s
@@ -0,0 +1,11 @@
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#include "textflag.h"
6
7TEXT ·getprocaddress(SB),NOSPLIT,$0
8 B syscall·getprocaddress(SB)
9
10TEXT ·loadlibrary(SB),NOSPLIT,$0
11 B syscall·loadlibrary(SB)
diff --git a/vendor/golang.org/x/sys/windows/registry/key.go b/vendor/golang.org/x/sys/windows/registry/key.go
index d0beb19..c256483 100644
--- a/vendor/golang.org/x/sys/windows/registry/key.go
+++ b/vendor/golang.org/x/sys/windows/registry/key.go
@@ -113,12 +113,10 @@ func OpenRemoteKey(pcname string, k Key) (Key, error) {
113// The parameter n controls the number of returned names, 113// The parameter n controls the number of returned names,
114// analogous to the way os.File.Readdirnames works. 114// analogous to the way os.File.Readdirnames works.
115func (k Key) ReadSubKeyNames(n int) ([]string, error) { 115func (k Key) ReadSubKeyNames(n int) ([]string, error) {
116 ki, err := k.Stat() 116 names := make([]string, 0)
117 if err != nil { 117 // Registry key size limit is 255 bytes and described there:
118 return nil, err 118 // https://msdn.microsoft.com/library/windows/desktop/ms724872.aspx
119 } 119 buf := make([]uint16, 256) //plus extra room for terminating zero byte
120 names := make([]string, 0, ki.SubKeyCount)
121 buf := make([]uint16, ki.MaxSubKeyLen+1) // extra room for terminating zero byte
122loopItems: 120loopItems:
123 for i := uint32(0); ; i++ { 121 for i := uint32(0); ; i++ {
124 if n > 0 { 122 if n > 0 {
diff --git a/vendor/golang.org/x/sys/windows/registry/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/registry/zsyscall_windows.go
index ceebdd7..3778075 100644
--- a/vendor/golang.org/x/sys/windows/registry/zsyscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/registry/zsyscall_windows.go
@@ -1,4 +1,4 @@
1// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT 1// Code generated by 'go generate'; DO NOT EDIT.
2 2
3package registry 3package registry
4 4
diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go
index f1ec5dc..4f17a33 100644
--- a/vendor/golang.org/x/sys/windows/security_windows.go
+++ b/vendor/golang.org/x/sys/windows/security_windows.go
@@ -296,6 +296,7 @@ const (
296 TOKEN_ADJUST_PRIVILEGES 296 TOKEN_ADJUST_PRIVILEGES
297 TOKEN_ADJUST_GROUPS 297 TOKEN_ADJUST_GROUPS
298 TOKEN_ADJUST_DEFAULT 298 TOKEN_ADJUST_DEFAULT
299 TOKEN_ADJUST_SESSIONID
299 300
300 TOKEN_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | 301 TOKEN_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED |
301 TOKEN_ASSIGN_PRIMARY | 302 TOKEN_ASSIGN_PRIMARY |
@@ -305,7 +306,8 @@ const (
305 TOKEN_QUERY_SOURCE | 306 TOKEN_QUERY_SOURCE |
306 TOKEN_ADJUST_PRIVILEGES | 307 TOKEN_ADJUST_PRIVILEGES |
307 TOKEN_ADJUST_GROUPS | 308 TOKEN_ADJUST_GROUPS |
308 TOKEN_ADJUST_DEFAULT 309 TOKEN_ADJUST_DEFAULT |
310 TOKEN_ADJUST_SESSIONID
309 TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY 311 TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY
310 TOKEN_WRITE = STANDARD_RIGHTS_WRITE | 312 TOKEN_WRITE = STANDARD_RIGHTS_WRITE |
311 TOKEN_ADJUST_PRIVILEGES | 313 TOKEN_ADJUST_PRIVILEGES |
diff --git a/vendor/golang.org/x/sys/windows/service.go b/vendor/golang.org/x/sys/windows/service.go
index a500dd7..62fc31b 100644
--- a/vendor/golang.org/x/sys/windows/service.go
+++ b/vendor/golang.org/x/sys/windows/service.go
@@ -43,6 +43,11 @@ const (
43 43
44 SC_STATUS_PROCESS_INFO = 0 44 SC_STATUS_PROCESS_INFO = 0
45 45
46 SC_ACTION_NONE = 0
47 SC_ACTION_RESTART = 1
48 SC_ACTION_REBOOT = 2
49 SC_ACTION_RUN_COMMAND = 3
50
46 SERVICE_STOPPED = 1 51 SERVICE_STOPPED = 1
47 SERVICE_START_PENDING = 2 52 SERVICE_START_PENDING = 2
48 SERVICE_STOP_PENDING = 3 53 SERVICE_STOP_PENDING = 3
@@ -148,6 +153,19 @@ type ENUM_SERVICE_STATUS_PROCESS struct {
148 ServiceStatusProcess SERVICE_STATUS_PROCESS 153 ServiceStatusProcess SERVICE_STATUS_PROCESS
149} 154}
150 155
156type SERVICE_FAILURE_ACTIONS struct {
157 ResetPeriod uint32
158 RebootMsg *uint16
159 Command *uint16
160 ActionsCount uint32
161 Actions *SC_ACTION
162}
163
164type SC_ACTION struct {
165 Type uint32
166 Delay uint32
167}
168
151//sys CloseServiceHandle(handle Handle) (err error) = advapi32.CloseServiceHandle 169//sys CloseServiceHandle(handle Handle) (err error) = advapi32.CloseServiceHandle
152//sys CreateService(mgr Handle, serviceName *uint16, displayName *uint16, access uint32, srvType uint32, startType uint32, errCtl uint32, pathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16) (handle Handle, err error) [failretval==0] = advapi32.CreateServiceW 170//sys CreateService(mgr Handle, serviceName *uint16, displayName *uint16, access uint32, srvType uint32, startType uint32, errCtl uint32, pathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16) (handle Handle, err error) [failretval==0] = advapi32.CreateServiceW
153//sys OpenService(mgr Handle, serviceName *uint16, access uint32) (handle Handle, err error) [failretval==0] = advapi32.OpenServiceW 171//sys OpenService(mgr Handle, serviceName *uint16, access uint32) (handle Handle, err error) [failretval==0] = advapi32.OpenServiceW
@@ -162,3 +180,4 @@ type ENUM_SERVICE_STATUS_PROCESS struct {
162//sys ChangeServiceConfig2(service Handle, infoLevel uint32, info *byte) (err error) = advapi32.ChangeServiceConfig2W 180//sys ChangeServiceConfig2(service Handle, infoLevel uint32, info *byte) (err error) = advapi32.ChangeServiceConfig2W
163//sys QueryServiceConfig2(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceConfig2W 181//sys QueryServiceConfig2(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceConfig2W
164//sys EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32, groupName *uint16) (err error) = advapi32.EnumServicesStatusExW 182//sys EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32, groupName *uint16) (err error) = advapi32.EnumServicesStatusExW
183//sys QueryServiceStatusEx(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceStatusEx
diff --git a/vendor/golang.org/x/sys/windows/syscall.go b/vendor/golang.org/x/sys/windows/syscall.go
index b07bc23..af828a9 100644
--- a/vendor/golang.org/x/sys/windows/syscall.go
+++ b/vendor/golang.org/x/sys/windows/syscall.go
@@ -11,11 +11,14 @@
11// system, set $GOOS and $GOARCH to the desired system. For example, if 11// system, set $GOOS and $GOARCH to the desired system. For example, if
12// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS 12// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
13// to freebsd and $GOARCH to arm. 13// to freebsd and $GOARCH to arm.
14//
14// The primary use of this package is inside other packages that provide a more 15// The primary use of this package is inside other packages that provide a more
15// portable interface to the system, such as "os", "time" and "net". Use 16// portable interface to the system, such as "os", "time" and "net". Use
16// those packages rather than this one if you can. 17// those packages rather than this one if you can.
18//
17// For details of the functions and data types in this package consult 19// For details of the functions and data types in this package consult
18// the manuals for the appropriate operating system. 20// the manuals for the appropriate operating system.
21//
19// These calls return err == nil to indicate success; otherwise 22// These calls return err == nil to indicate success; otherwise
20// err represents an operating system error describing the failure and 23// err represents an operating system error describing the failure and
21// holds a value of type syscall.Errno. 24// holds a value of type syscall.Errno.
diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go
index 1e9f4bb..8a00b71 100644
--- a/vendor/golang.org/x/sys/windows/syscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/syscall_windows.go
@@ -112,12 +112,14 @@ func Getpagesize() int { return 4096 }
112 112
113// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention. 113// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
114// This is useful when interoperating with Windows code requiring callbacks. 114// This is useful when interoperating with Windows code requiring callbacks.
115// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
115func NewCallback(fn interface{}) uintptr { 116func NewCallback(fn interface{}) uintptr {
116 return syscall.NewCallback(fn) 117 return syscall.NewCallback(fn)
117} 118}
118 119
119// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention. 120// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
120// This is useful when interoperating with Windows code requiring callbacks. 121// This is useful when interoperating with Windows code requiring callbacks.
122// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
121func NewCallbackCDecl(fn interface{}) uintptr { 123func NewCallbackCDecl(fn interface{}) uintptr {
122 return syscall.NewCallbackCDecl(fn) 124 return syscall.NewCallbackCDecl(fn)
123} 125}
@@ -653,7 +655,7 @@ type RawSockaddr struct {
653 655
654type RawSockaddrAny struct { 656type RawSockaddrAny struct {
655 Addr RawSockaddr 657 Addr RawSockaddr
656 Pad [96]int8 658 Pad [100]int8
657} 659}
658 660
659type Sockaddr interface { 661type Sockaddr interface {
@@ -702,19 +704,69 @@ func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, int32, error) {
702 return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil 704 return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil
703} 705}
704 706
707type RawSockaddrUnix struct {
708 Family uint16
709 Path [UNIX_PATH_MAX]int8
710}
711
705type SockaddrUnix struct { 712type SockaddrUnix struct {
706 Name string 713 Name string
714 raw RawSockaddrUnix
707} 715}
708 716
709func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, int32, error) { 717func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, int32, error) {
710 // TODO(brainman): implement SockaddrUnix.sockaddr() 718 name := sa.Name
711 return nil, 0, syscall.EWINDOWS 719 n := len(name)
720 if n > len(sa.raw.Path) {
721 return nil, 0, syscall.EINVAL
722 }
723 if n == len(sa.raw.Path) && name[0] != '@' {
724 return nil, 0, syscall.EINVAL
725 }
726 sa.raw.Family = AF_UNIX
727 for i := 0; i < n; i++ {
728 sa.raw.Path[i] = int8(name[i])
729 }
730 // length is family (uint16), name, NUL.
731 sl := int32(2)
732 if n > 0 {
733 sl += int32(n) + 1
734 }
735 if sa.raw.Path[0] == '@' {
736 sa.raw.Path[0] = 0
737 // Don't count trailing NUL for abstract address.
738 sl--
739 }
740
741 return unsafe.Pointer(&sa.raw), sl, nil
712} 742}
713 743
714func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, error) { 744func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, error) {
715 switch rsa.Addr.Family { 745 switch rsa.Addr.Family {
716 case AF_UNIX: 746 case AF_UNIX:
717 return nil, syscall.EWINDOWS 747 pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
748 sa := new(SockaddrUnix)
749 if pp.Path[0] == 0 {
750 // "Abstract" Unix domain socket.
751 // Rewrite leading NUL as @ for textual display.
752 // (This is the standard convention.)
753 // Not friendly to overwrite in place,
754 // but the callers below don't care.
755 pp.Path[0] = '@'
756 }
757
758 // Assume path ends at NUL.
759 // This is not technically the Linux semantics for
760 // abstract Unix domain sockets--they are supposed
761 // to be uninterpreted fixed-size binary blobs--but
762 // everyone uses this convention.
763 n := 0
764 for n < len(pp.Path) && pp.Path[n] != 0 {
765 n++
766 }
767 bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
768 sa.Name = string(bytes)
769 return sa, nil
718 770
719 case AF_INET: 771 case AF_INET:
720 pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) 772 pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go
index 52c2037..141ca81 100644
--- a/vendor/golang.org/x/sys/windows/types_windows.go
+++ b/vendor/golang.org/x/sys/windows/types_windows.go
@@ -94,16 +94,29 @@ const (
94 FILE_APPEND_DATA = 0x00000004 94 FILE_APPEND_DATA = 0x00000004
95 FILE_WRITE_ATTRIBUTES = 0x00000100 95 FILE_WRITE_ATTRIBUTES = 0x00000100
96 96
97 FILE_SHARE_READ = 0x00000001 97 FILE_SHARE_READ = 0x00000001
98 FILE_SHARE_WRITE = 0x00000002 98 FILE_SHARE_WRITE = 0x00000002
99 FILE_SHARE_DELETE = 0x00000004 99 FILE_SHARE_DELETE = 0x00000004
100 FILE_ATTRIBUTE_READONLY = 0x00000001 100
101 FILE_ATTRIBUTE_HIDDEN = 0x00000002 101 FILE_ATTRIBUTE_READONLY = 0x00000001
102 FILE_ATTRIBUTE_SYSTEM = 0x00000004 102 FILE_ATTRIBUTE_HIDDEN = 0x00000002
103 FILE_ATTRIBUTE_DIRECTORY = 0x00000010 103 FILE_ATTRIBUTE_SYSTEM = 0x00000004
104 FILE_ATTRIBUTE_ARCHIVE = 0x00000020 104 FILE_ATTRIBUTE_DIRECTORY = 0x00000010
105 FILE_ATTRIBUTE_NORMAL = 0x00000080 105 FILE_ATTRIBUTE_ARCHIVE = 0x00000020
106 FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400 106 FILE_ATTRIBUTE_DEVICE = 0x00000040
107 FILE_ATTRIBUTE_NORMAL = 0x00000080
108 FILE_ATTRIBUTE_TEMPORARY = 0x00000100
109 FILE_ATTRIBUTE_SPARSE_FILE = 0x00000200
110 FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400
111 FILE_ATTRIBUTE_COMPRESSED = 0x00000800
112 FILE_ATTRIBUTE_OFFLINE = 0x00001000
113 FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 0x00002000
114 FILE_ATTRIBUTE_ENCRYPTED = 0x00004000
115 FILE_ATTRIBUTE_INTEGRITY_STREAM = 0x00008000
116 FILE_ATTRIBUTE_VIRTUAL = 0x00010000
117 FILE_ATTRIBUTE_NO_SCRUB_DATA = 0x00020000
118 FILE_ATTRIBUTE_RECALL_ON_OPEN = 0x00040000
119 FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS = 0x00400000
107 120
108 INVALID_FILE_ATTRIBUTES = 0xffffffff 121 INVALID_FILE_ATTRIBUTES = 0xffffffff
109 122
@@ -257,15 +270,87 @@ const (
257 USAGE_MATCH_TYPE_AND = 0 270 USAGE_MATCH_TYPE_AND = 0
258 USAGE_MATCH_TYPE_OR = 1 271 USAGE_MATCH_TYPE_OR = 1
259 272
273 /* msgAndCertEncodingType values for CertOpenStore function */
260 X509_ASN_ENCODING = 0x00000001 274 X509_ASN_ENCODING = 0x00000001
261 PKCS_7_ASN_ENCODING = 0x00010000 275 PKCS_7_ASN_ENCODING = 0x00010000
262 276
263 CERT_STORE_PROV_MEMORY = 2 277 /* storeProvider values for CertOpenStore function */
264 278 CERT_STORE_PROV_MSG = 1
265 CERT_STORE_ADD_ALWAYS = 4 279 CERT_STORE_PROV_MEMORY = 2
266 280 CERT_STORE_PROV_FILE = 3
281 CERT_STORE_PROV_REG = 4
282 CERT_STORE_PROV_PKCS7 = 5
283 CERT_STORE_PROV_SERIALIZED = 6
284 CERT_STORE_PROV_FILENAME_A = 7
285 CERT_STORE_PROV_FILENAME_W = 8
286 CERT_STORE_PROV_FILENAME = CERT_STORE_PROV_FILENAME_W
287 CERT_STORE_PROV_SYSTEM_A = 9
288 CERT_STORE_PROV_SYSTEM_W = 10
289 CERT_STORE_PROV_SYSTEM = CERT_STORE_PROV_SYSTEM_W
290 CERT_STORE_PROV_COLLECTION = 11
291 CERT_STORE_PROV_SYSTEM_REGISTRY_A = 12
292 CERT_STORE_PROV_SYSTEM_REGISTRY_W = 13
293 CERT_STORE_PROV_SYSTEM_REGISTRY = CERT_STORE_PROV_SYSTEM_REGISTRY_W
294 CERT_STORE_PROV_PHYSICAL_W = 14
295 CERT_STORE_PROV_PHYSICAL = CERT_STORE_PROV_PHYSICAL_W
296 CERT_STORE_PROV_SMART_CARD_W = 15
297 CERT_STORE_PROV_SMART_CARD = CERT_STORE_PROV_SMART_CARD_W
298 CERT_STORE_PROV_LDAP_W = 16
299 CERT_STORE_PROV_LDAP = CERT_STORE_PROV_LDAP_W
300 CERT_STORE_PROV_PKCS12 = 17
301
302 /* store characteristics (low WORD of flag) for CertOpenStore function */
303 CERT_STORE_NO_CRYPT_RELEASE_FLAG = 0x00000001
304 CERT_STORE_SET_LOCALIZED_NAME_FLAG = 0x00000002
267 CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004 305 CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004
268 306 CERT_STORE_DELETE_FLAG = 0x00000010
307 CERT_STORE_UNSAFE_PHYSICAL_FLAG = 0x00000020
308 CERT_STORE_SHARE_STORE_FLAG = 0x00000040
309 CERT_STORE_SHARE_CONTEXT_FLAG = 0x00000080
310 CERT_STORE_MANIFOLD_FLAG = 0x00000100
311 CERT_STORE_ENUM_ARCHIVED_FLAG = 0x00000200
312 CERT_STORE_UPDATE_KEYID_FLAG = 0x00000400
313 CERT_STORE_BACKUP_RESTORE_FLAG = 0x00000800
314 CERT_STORE_MAXIMUM_ALLOWED_FLAG = 0x00001000
315 CERT_STORE_CREATE_NEW_FLAG = 0x00002000
316 CERT_STORE_OPEN_EXISTING_FLAG = 0x00004000
317 CERT_STORE_READONLY_FLAG = 0x00008000
318
319 /* store locations (high WORD of flag) for CertOpenStore function */
320 CERT_SYSTEM_STORE_CURRENT_USER = 0x00010000
321 CERT_SYSTEM_STORE_LOCAL_MACHINE = 0x00020000
322 CERT_SYSTEM_STORE_CURRENT_SERVICE = 0x00040000
323 CERT_SYSTEM_STORE_SERVICES = 0x00050000
324 CERT_SYSTEM_STORE_USERS = 0x00060000
325 CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY = 0x00070000
326 CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY = 0x00080000
327 CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE = 0x00090000
328 CERT_SYSTEM_STORE_UNPROTECTED_FLAG = 0x40000000
329 CERT_SYSTEM_STORE_RELOCATE_FLAG = 0x80000000
330
331 /* Miscellaneous high-WORD flags for CertOpenStore function */
332 CERT_REGISTRY_STORE_REMOTE_FLAG = 0x00010000
333 CERT_REGISTRY_STORE_SERIALIZED_FLAG = 0x00020000
334 CERT_REGISTRY_STORE_ROAMING_FLAG = 0x00040000
335 CERT_REGISTRY_STORE_MY_IE_DIRTY_FLAG = 0x00080000
336 CERT_REGISTRY_STORE_LM_GPT_FLAG = 0x01000000
337 CERT_REGISTRY_STORE_CLIENT_GPT_FLAG = 0x80000000
338 CERT_FILE_STORE_COMMIT_ENABLE_FLAG = 0x00010000
339 CERT_LDAP_STORE_SIGN_FLAG = 0x00010000
340 CERT_LDAP_STORE_AREC_EXCLUSIVE_FLAG = 0x00020000
341 CERT_LDAP_STORE_OPENED_FLAG = 0x00040000
342 CERT_LDAP_STORE_UNBIND_FLAG = 0x00080000
343
344 /* addDisposition values for CertAddCertificateContextToStore function */
345 CERT_STORE_ADD_NEW = 1
346 CERT_STORE_ADD_USE_EXISTING = 2
347 CERT_STORE_ADD_REPLACE_EXISTING = 3
348 CERT_STORE_ADD_ALWAYS = 4
349 CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES = 5
350 CERT_STORE_ADD_NEWER = 6
351 CERT_STORE_ADD_NEWER_INHERIT_PROPERTIES = 7
352
353 /* ErrorStatus values for CertTrustStatus struct */
269 CERT_TRUST_NO_ERROR = 0x00000000 354 CERT_TRUST_NO_ERROR = 0x00000000
270 CERT_TRUST_IS_NOT_TIME_VALID = 0x00000001 355 CERT_TRUST_IS_NOT_TIME_VALID = 0x00000001
271 CERT_TRUST_IS_REVOKED = 0x00000004 356 CERT_TRUST_IS_REVOKED = 0x00000004
@@ -282,11 +367,31 @@ const (
282 CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT = 0x00002000 367 CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT = 0x00002000
283 CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT = 0x00004000 368 CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT = 0x00004000
284 CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT = 0x00008000 369 CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT = 0x00008000
370 CERT_TRUST_IS_PARTIAL_CHAIN = 0x00010000
371 CERT_TRUST_CTL_IS_NOT_TIME_VALID = 0x00020000
372 CERT_TRUST_CTL_IS_NOT_SIGNATURE_VALID = 0x00040000
373 CERT_TRUST_CTL_IS_NOT_VALID_FOR_USAGE = 0x00080000
374 CERT_TRUST_HAS_WEAK_SIGNATURE = 0x00100000
285 CERT_TRUST_IS_OFFLINE_REVOCATION = 0x01000000 375 CERT_TRUST_IS_OFFLINE_REVOCATION = 0x01000000
286 CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY = 0x02000000 376 CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY = 0x02000000
287 CERT_TRUST_IS_EXPLICIT_DISTRUST = 0x04000000 377 CERT_TRUST_IS_EXPLICIT_DISTRUST = 0x04000000
288 CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT = 0x08000000 378 CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT = 0x08000000
289 379
380 /* InfoStatus values for CertTrustStatus struct */
381 CERT_TRUST_HAS_EXACT_MATCH_ISSUER = 0x00000001
382 CERT_TRUST_HAS_KEY_MATCH_ISSUER = 0x00000002
383 CERT_TRUST_HAS_NAME_MATCH_ISSUER = 0x00000004
384 CERT_TRUST_IS_SELF_SIGNED = 0x00000008
385 CERT_TRUST_HAS_PREFERRED_ISSUER = 0x00000100
386 CERT_TRUST_HAS_ISSUANCE_CHAIN_POLICY = 0x00000400
387 CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS = 0x00000400
388 CERT_TRUST_IS_PEER_TRUSTED = 0x00000800
389 CERT_TRUST_HAS_CRL_VALIDITY_EXTENDED = 0x00001000
390 CERT_TRUST_IS_FROM_EXCLUSIVE_TRUST_STORE = 0x00002000
391 CERT_TRUST_IS_CA_TRUSTED = 0x00004000
392 CERT_TRUST_IS_COMPLEX_CHAIN = 0x00010000
393
394 /* policyOID values for CertVerifyCertificateChainPolicy function */
290 CERT_CHAIN_POLICY_BASE = 1 395 CERT_CHAIN_POLICY_BASE = 1
291 CERT_CHAIN_POLICY_AUTHENTICODE = 2 396 CERT_CHAIN_POLICY_AUTHENTICODE = 2
292 CERT_CHAIN_POLICY_AUTHENTICODE_TS = 3 397 CERT_CHAIN_POLICY_AUTHENTICODE_TS = 3
@@ -295,6 +400,7 @@ const (
295 CERT_CHAIN_POLICY_NT_AUTH = 6 400 CERT_CHAIN_POLICY_NT_AUTH = 6
296 CERT_CHAIN_POLICY_MICROSOFT_ROOT = 7 401 CERT_CHAIN_POLICY_MICROSOFT_ROOT = 7
297 CERT_CHAIN_POLICY_EV = 8 402 CERT_CHAIN_POLICY_EV = 8
403 CERT_CHAIN_POLICY_SSL_F12 = 9
298 404
299 CERT_E_EXPIRED = 0x800B0101 405 CERT_E_EXPIRED = 0x800B0101
300 CERT_E_ROLE = 0x800B0103 406 CERT_E_ROLE = 0x800B0103
@@ -302,8 +408,16 @@ const (
302 CERT_E_UNTRUSTEDROOT = 0x800B0109 408 CERT_E_UNTRUSTEDROOT = 0x800B0109
303 CERT_E_CN_NO_MATCH = 0x800B010F 409 CERT_E_CN_NO_MATCH = 0x800B010F
304 410
411 /* AuthType values for SSLExtraCertChainPolicyPara struct */
305 AUTHTYPE_CLIENT = 1 412 AUTHTYPE_CLIENT = 1
306 AUTHTYPE_SERVER = 2 413 AUTHTYPE_SERVER = 2
414
415 /* Checks values for SSLExtraCertChainPolicyPara struct */
416 SECURITY_FLAG_IGNORE_REVOCATION = 0x00000080
417 SECURITY_FLAG_IGNORE_UNKNOWN_CA = 0x00000100
418 SECURITY_FLAG_IGNORE_WRONG_USAGE = 0x00000200
419 SECURITY_FLAG_IGNORE_CERT_CN_INVALID = 0x00001000
420 SECURITY_FLAG_IGNORE_CERT_DATE_INVALID = 0x00002000
307) 421)
308 422
309var ( 423var (
@@ -312,6 +426,14 @@ var (
312 OID_SGC_NETSCAPE = []byte("2.16.840.1.113730.4.1\x00") 426 OID_SGC_NETSCAPE = []byte("2.16.840.1.113730.4.1\x00")
313) 427)
314 428
429// Pointer represents a pointer to an arbitrary Windows type.
430//
431// Pointer-typed fields may point to one of many different types. It's
432// up to the caller to provide a pointer to the appropriate type, cast
433// to Pointer. The caller must obey the unsafe.Pointer rules while
434// doing so.
435type Pointer *struct{}
436
315// Invented values to support what package os expects. 437// Invented values to support what package os expects.
316type Timeval struct { 438type Timeval struct {
317 Sec int32 439 Sec int32
@@ -880,11 +1002,15 @@ type MibIfRow struct {
880 Descr [MAXLEN_IFDESCR]byte 1002 Descr [MAXLEN_IFDESCR]byte
881} 1003}
882 1004
1005type CertInfo struct {
1006 // Not implemented
1007}
1008
883type CertContext struct { 1009type CertContext struct {
884 EncodingType uint32 1010 EncodingType uint32
885 EncodedCert *byte 1011 EncodedCert *byte
886 Length uint32 1012 Length uint32
887 CertInfo uintptr 1013 CertInfo *CertInfo
888 Store Handle 1014 Store Handle
889} 1015}
890 1016
@@ -899,12 +1025,16 @@ type CertChainContext struct {
899 RevocationFreshnessTime uint32 1025 RevocationFreshnessTime uint32
900} 1026}
901 1027
1028type CertTrustListInfo struct {
1029 // Not implemented
1030}
1031
902type CertSimpleChain struct { 1032type CertSimpleChain struct {
903 Size uint32 1033 Size uint32
904 TrustStatus CertTrustStatus 1034 TrustStatus CertTrustStatus
905 NumElements uint32 1035 NumElements uint32
906 Elements **CertChainElement 1036 Elements **CertChainElement
907 TrustListInfo uintptr 1037 TrustListInfo *CertTrustListInfo
908 HasRevocationFreshnessTime uint32 1038 HasRevocationFreshnessTime uint32
909 RevocationFreshnessTime uint32 1039 RevocationFreshnessTime uint32
910} 1040}
@@ -919,14 +1049,18 @@ type CertChainElement struct {
919 ExtendedErrorInfo *uint16 1049 ExtendedErrorInfo *uint16
920} 1050}
921 1051
1052type CertRevocationCrlInfo struct {
1053 // Not implemented
1054}
1055
922type CertRevocationInfo struct { 1056type CertRevocationInfo struct {
923 Size uint32 1057 Size uint32
924 RevocationResult uint32 1058 RevocationResult uint32
925 RevocationOid *byte 1059 RevocationOid *byte
926 OidSpecificInfo uintptr 1060 OidSpecificInfo Pointer
927 HasFreshnessTime uint32 1061 HasFreshnessTime uint32
928 FreshnessTime uint32 1062 FreshnessTime uint32
929 CrlInfo uintptr // *CertRevocationCrlInfo 1063 CrlInfo *CertRevocationCrlInfo
930} 1064}
931 1065
932type CertTrustStatus struct { 1066type CertTrustStatus struct {
@@ -957,7 +1091,7 @@ type CertChainPara struct {
957type CertChainPolicyPara struct { 1091type CertChainPolicyPara struct {
958 Size uint32 1092 Size uint32
959 Flags uint32 1093 Flags uint32
960 ExtraPolicyPara uintptr 1094 ExtraPolicyPara Pointer
961} 1095}
962 1096
963type SSLExtraCertChainPolicyPara struct { 1097type SSLExtraCertChainPolicyPara struct {
@@ -972,7 +1106,7 @@ type CertChainPolicyStatus struct {
972 Error uint32 1106 Error uint32
973 ChainIndex uint32 1107 ChainIndex uint32
974 ElementIndex uint32 1108 ElementIndex uint32
975 ExtraPolicyStatus uintptr 1109 ExtraPolicyStatus Pointer
976} 1110}
977 1111
978const ( 1112const (
@@ -1319,7 +1453,7 @@ type SmallRect struct {
1319 Bottom int16 1453 Bottom int16
1320} 1454}
1321 1455
1322// Used with GetConsoleScreenBuffer to retreive information about a console 1456// Used with GetConsoleScreenBuffer to retrieve information about a console
1323// screen buffer. See 1457// screen buffer. See
1324// https://docs.microsoft.com/en-us/windows/console/console-screen-buffer-info-str 1458// https://docs.microsoft.com/en-us/windows/console/console-screen-buffer-info-str
1325// for details. 1459// for details.
@@ -1331,3 +1465,5 @@ type ConsoleScreenBufferInfo struct {
1331 Window SmallRect 1465 Window SmallRect
1332 MaximumWindowSize Coord 1466 MaximumWindowSize Coord
1333} 1467}
1468
1469const UNIX_PATH_MAX = 108 // defined in afunix.h
diff --git a/vendor/golang.org/x/sys/windows/types_windows_arm.go b/vendor/golang.org/x/sys/windows/types_windows_arm.go
new file mode 100644
index 0000000..74571e3
--- /dev/null
+++ b/vendor/golang.org/x/sys/windows/types_windows_arm.go
@@ -0,0 +1,22 @@
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
5package windows
6
7type WSAData struct {
8 Version uint16
9 HighVersion uint16
10 Description [WSADESCRIPTION_LEN + 1]byte
11 SystemStatus [WSASYS_STATUS_LEN + 1]byte
12 MaxSockets uint16
13 MaxUdpDg uint16
14 VendorInfo *byte
15}
16
17type Servent struct {
18 Name *byte
19 Aliases **byte
20 Port uint16
21 Proto *byte
22}
diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
index c7b3b15..fc56aec 100644
--- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go
+++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go
@@ -1,4 +1,4 @@
1// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT 1// Code generated by 'go generate'; DO NOT EDIT.
2 2
3package windows 3package windows
4 4
@@ -65,6 +65,7 @@ var (
65 procChangeServiceConfig2W = modadvapi32.NewProc("ChangeServiceConfig2W") 65 procChangeServiceConfig2W = modadvapi32.NewProc("ChangeServiceConfig2W")
66 procQueryServiceConfig2W = modadvapi32.NewProc("QueryServiceConfig2W") 66 procQueryServiceConfig2W = modadvapi32.NewProc("QueryServiceConfig2W")
67 procEnumServicesStatusExW = modadvapi32.NewProc("EnumServicesStatusExW") 67 procEnumServicesStatusExW = modadvapi32.NewProc("EnumServicesStatusExW")
68 procQueryServiceStatusEx = modadvapi32.NewProc("QueryServiceStatusEx")
68 procGetLastError = modkernel32.NewProc("GetLastError") 69 procGetLastError = modkernel32.NewProc("GetLastError")
69 procLoadLibraryW = modkernel32.NewProc("LoadLibraryW") 70 procLoadLibraryW = modkernel32.NewProc("LoadLibraryW")
70 procLoadLibraryExW = modkernel32.NewProc("LoadLibraryExW") 71 procLoadLibraryExW = modkernel32.NewProc("LoadLibraryExW")
@@ -472,6 +473,18 @@ func EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serv
472 return 473 return
473} 474}
474 475
476func QueryServiceStatusEx(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) {
477 r1, _, e1 := syscall.Syscall6(procQueryServiceStatusEx.Addr(), 5, uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(buff)), uintptr(buffSize), uintptr(unsafe.Pointer(bytesNeeded)), 0)
478 if r1 == 0 {
479 if e1 != 0 {
480 err = errnoErr(e1)
481 } else {
482 err = syscall.EINVAL
483 }
484 }
485 return
486}
487
475func GetLastError() (lasterr error) { 488func GetLastError() (lasterr error) {
476 r0, _, _ := syscall.Syscall(procGetLastError.Addr(), 0, 0, 0, 0) 489 r0, _, _ := syscall.Syscall(procGetLastError.Addr(), 0, 0, 0, 0)
477 if r0 != 0 { 490 if r0 != 0 {
diff --git a/vendor/vendor.json b/vendor/vendor.json
index c05d99e..9407cf6 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -35,12 +35,12 @@
35 "revisionTime": "2016-08-04T10:47:26Z" 35 "revisionTime": "2016-08-04T10:47:26Z"
36 }, 36 },
37 { 37 {
38 "checksumSHA1": "Lxoh+PBVbeSiTNlSvpUmP4yA8QI=", 38 "checksumSHA1": "1txgvJO9bgE703kK2EQ/NATy1Rg=",
39 "path": "github.com/coreos/go-systemd/dbus", 39 "path": "github.com/coreos/go-systemd/dbus",
40 "revision": "40e2722dffead74698ca12a750f64ef313ddce05", 40 "revision": "39ca1b05acc7ad1220e09f133283b8859a8b71ab",
41 "revisionTime": "2018-02-02T09:23:58Z", 41 "revisionTime": "2018-05-11T13:34:05Z",
42 "version": "v16", 42 "version": "v17",
43 "versionExact": "v16" 43 "versionExact": "v17"
44 }, 44 },
45 { 45 {
46 "checksumSHA1": "wPbKObbGzS/43nrskRaJVFVEW/A=", 46 "checksumSHA1": "wPbKObbGzS/43nrskRaJVFVEW/A=",
@@ -57,12 +57,20 @@
57 "versionExact": "v4.1.0" 57 "versionExact": "v4.1.0"
58 }, 58 },
59 { 59 {
60 "checksumSHA1": "WX1+2gktHcBmE9MGwFSGs7oqexU=", 60 "checksumSHA1": "mE9XW26JSpe4meBObM6J/Oeq0eg=",
61 "path": "github.com/golang/protobuf/proto", 61 "path": "github.com/golang/protobuf/proto",
62 "revision": "925541529c1fa6821df4e44ce2723319eb2be768", 62 "revision": "aa810b61a9c79d51363740d207bb46cf8e620ed5",
63 "revisionTime": "2018-01-25T21:43:03Z", 63 "revisionTime": "2018-08-14T21:14:27Z",
64 "version": "v1.0.0", 64 "version": "v1.2.0",
65 "versionExact": "v1.0.0" 65 "versionExact": "v1.2.0"
66 },
67 {
68 "checksumSHA1": "r6ZMyP/HsdeToXIxvgP3ntL6Bds=",
69 "path": "github.com/konsorten/go-windows-terminal-sequences",
70 "revision": "5c8c8bd35d3832f5d134ae1e1e375b69a4d25242",
71 "revisionTime": "2018-10-04T22:41:46Z",
72 "version": "v1.0.1",
73 "versionExact": "v1.0.1"
66 }, 74 },
67 { 75 {
68 "checksumSHA1": "IdBAvtVSv0sbi8sEsLovnZubims=", 76 "checksumSHA1": "IdBAvtVSv0sbi8sEsLovnZubims=",
@@ -85,22 +93,22 @@
85 "versionExact": "v1.0.0" 93 "versionExact": "v1.0.0"
86 }, 94 },
87 { 95 {
88 "checksumSHA1": "zLH8BV9kYzpqGB5PS4VDjADFvVM=", 96 "checksumSHA1": "mqiQh7IAod6wvRP14+5GcUyKNwo=",
89 "path": "github.com/mdlayher/genetlink", 97 "path": "github.com/mdlayher/genetlink",
90 "revision": "ca85b5a307448462b0aa7a07c67c0846bc12568f", 98 "revision": "7615bc153978352e5f20442221cf606b624e5890",
91 "revisionTime": "2018-07-28T17:03:40Z" 99 "revisionTime": "2018-09-17T17:14:08Z"
92 }, 100 },
93 { 101 {
94 "checksumSHA1": "ybkJbYD6wyjdoPp/KncnDpCyYiU=", 102 "checksumSHA1": "lB1YzfMg7EnumgpWRYSqmrH6S7Q=",
95 "path": "github.com/mdlayher/netlink", 103 "path": "github.com/mdlayher/netlink",
96 "revision": "80a6f93efd374ddee4e0ea862ca0085ef42eed65", 104 "revision": "794849f2d5bf05e15f14bbae6bca4dfc94e7595e",
97 "revisionTime": "2018-08-10T15:28:04Z" 105 "revisionTime": "2018-09-20T20:24:05Z"
98 }, 106 },
99 { 107 {
100 "checksumSHA1": "P7eEo2V7/kQEkt2ihW+26S39eEw=", 108 "checksumSHA1": "P7eEo2V7/kQEkt2ihW+26S39eEw=",
101 "path": "github.com/mdlayher/netlink/nlenc", 109 "path": "github.com/mdlayher/netlink/nlenc",
102 "revision": "80a6f93efd374ddee4e0ea862ca0085ef42eed65", 110 "revision": "794849f2d5bf05e15f14bbae6bca4dfc94e7595e",
103 "revisionTime": "2018-08-10T15:28:04Z" 111 "revisionTime": "2018-09-20T20:24:05Z"
104 }, 112 },
105 { 113 {
106 "checksumSHA1": "Y7cjrOeOvA/ic+B8WCp2JyLEuvs=", 114 "checksumSHA1": "Y7cjrOeOvA/ic+B8WCp2JyLEuvs=",
@@ -111,8 +119,8 @@
111 { 119 {
112 "checksumSHA1": "VzutdH69PUqRqhrDVv6F91ebQd4=", 120 "checksumSHA1": "VzutdH69PUqRqhrDVv6F91ebQd4=",
113 "path": "github.com/mdlayher/wifi/internal/nl80211", 121 "path": "github.com/mdlayher/wifi/internal/nl80211",
114 "revision": "17fb8383f38adbf6a7f12e6cbd1d461760aabf5c", 122 "revision": "efdf3f4195d9fc8b73013b3706fe626b7fb807d8",
115 "revisionTime": "2017-09-01T18:29:50Z" 123 "revisionTime": "2018-07-27T16:38:19Z"
116 }, 124 },
117 { 125 {
118 "checksumSHA1": "frS661rlSEZWE9CezHhnFioQK/I=", 126 "checksumSHA1": "frS661rlSEZWE9CezHhnFioQK/I=",
@@ -169,48 +177,48 @@
169 "revisionTime": "2018-03-26T16:04:09Z" 177 "revisionTime": "2018-03-26T16:04:09Z"
170 }, 178 },
171 { 179 {
172 "checksumSHA1": "qG0ClCTt2wuQnYLsFvtlQB8J5FQ=", 180 "checksumSHA1": "4zOdjJcskuocAzI+i6rcRzYjSlI=",
173 "path": "github.com/prometheus/procfs", 181 "path": "github.com/prometheus/procfs",
174 "revision": "add1f1c0b8971a8cdb88ab8bb152878e5074780b", 182 "revision": "185b4288413d2a0dd0806f78c90dde719829e5ae",
175 "revisionTime": "2018-05-31T12:13:16Z" 183 "revisionTime": "2018-10-05T14:02:18Z"
176 }, 184 },
177 { 185 {
178 "checksumSHA1": "O64FotgWPYIpl3m2gvTEPIem+xg=", 186 "checksumSHA1": "O64FotgWPYIpl3m2gvTEPIem+xg=",
179 "path": "github.com/prometheus/procfs/bcache", 187 "path": "github.com/prometheus/procfs/bcache",
180 "revision": "780932d4fbbe0e69b84c34c20f5c8d0981e109ea", 188 "revision": "185b4288413d2a0dd0806f78c90dde719829e5ae",
181 "revisionTime": "2018-03-21T23:08:12Z" 189 "revisionTime": "2018-10-05T14:02:18Z"
182 }, 190 },
183 { 191 {
184 "checksumSHA1": "lv9rIcjbVEGo8AT1UCUZXhXrfQc=", 192 "checksumSHA1": "8E1IbrgtLBee7J404VKPyoI+qsk=",
185 "path": "github.com/prometheus/procfs/internal/util", 193 "path": "github.com/prometheus/procfs/internal/util",
186 "revision": "780932d4fbbe0e69b84c34c20f5c8d0981e109ea", 194 "revision": "185b4288413d2a0dd0806f78c90dde719829e5ae",
187 "revisionTime": "2018-03-21T23:08:12Z" 195 "revisionTime": "2018-10-05T14:02:18Z"
188 }, 196 },
189 { 197 {
190 "checksumSHA1": "HSP5hVT0CNMRa8+Xtz4z2Ic5U0E=", 198 "checksumSHA1": "HSP5hVT0CNMRa8+Xtz4z2Ic5U0E=",
191 "path": "github.com/prometheus/procfs/nfs", 199 "path": "github.com/prometheus/procfs/nfs",
192 "revision": "780932d4fbbe0e69b84c34c20f5c8d0981e109ea", 200 "revision": "185b4288413d2a0dd0806f78c90dde719829e5ae",
193 "revisionTime": "2018-03-21T23:08:12Z" 201 "revisionTime": "2018-10-05T14:02:18Z"
194 }, 202 },
195 { 203 {
196 "checksumSHA1": "pqTCYsAj0qGsfJTkrAVQPUMN2qU=", 204 "checksumSHA1": "ORMPtgUo5XBWikhal+l0GE7+3ps=",
197 "path": "github.com/prometheus/procfs/sysfs", 205 "path": "github.com/prometheus/procfs/sysfs",
198 "revision": "780932d4fbbe0e69b84c34c20f5c8d0981e109ea", 206 "revision": "185b4288413d2a0dd0806f78c90dde719829e5ae",
199 "revisionTime": "2018-03-21T23:08:12Z" 207 "revisionTime": "2018-10-05T14:02:18Z"
200 }, 208 },
201 { 209 {
202 "checksumSHA1": "yItvTQLUVqm/ArLEbvEhqG0T5a0=", 210 "checksumSHA1": "yItvTQLUVqm/ArLEbvEhqG0T5a0=",
203 "path": "github.com/prometheus/procfs/xfs", 211 "path": "github.com/prometheus/procfs/xfs",
204 "revision": "780932d4fbbe0e69b84c34c20f5c8d0981e109ea", 212 "revision": "185b4288413d2a0dd0806f78c90dde719829e5ae",
205 "revisionTime": "2018-03-21T23:08:12Z" 213 "revisionTime": "2018-10-05T14:02:18Z"
206 }, 214 },
207 { 215 {
208 "checksumSHA1": "ySaT8G3I3y4MmnoXOYAAX0rC+p8=", 216 "checksumSHA1": "YjhDOmq6sEghGST0PAiyA+8EAT4=",
209 "path": "github.com/sirupsen/logrus", 217 "path": "github.com/sirupsen/logrus",
210 "revision": "d682213848ed68c0a260ca37d6dd5ace8423f5ba", 218 "revision": "ad15b42461921f1fb3529b058c6786c6a45d5162",
211 "revisionTime": "2017-12-05T20:32:29Z", 219 "revisionTime": "2018-10-08T20:30:39Z",
212 "version": "v1.0.4", 220 "version": "v1.1.1",
213 "versionExact": "v1.0.4" 221 "versionExact": "v1.1.1"
214 }, 222 },
215 { 223 {
216 "checksumSHA1": "uozMgPjB4AggpuuJkGq3FgAs4CA=", 224 "checksumSHA1": "uozMgPjB4AggpuuJkGq3FgAs4CA=",
@@ -219,58 +227,58 @@
219 "revisionTime": "2015-06-30T19:56:10Z" 227 "revisionTime": "2015-06-30T19:56:10Z"
220 }, 228 },
221 { 229 {
222 "checksumSHA1": "6U7dCaxxIMjf5V02iWgyAwppczw=", 230 "checksumSHA1": "BGm8lKZmvJbf/YOJLeL1rw2WVjA=",
223 "path": "golang.org/x/crypto/ssh/terminal", 231 "path": "golang.org/x/crypto/ssh/terminal",
224 "revision": "650f4a345ab4e5b245a3034b110ebc7299e68186", 232 "revision": "7c1a557ab941a71c619514f229f0b27ccb0c27cf",
225 "revisionTime": "2017-09-27T09:16:38Z" 233 "revisionTime": "2018-10-02T14:18:56Z"
226 }, 234 },
227 { 235 {
228 "checksumSHA1": "uX2McdP4VcQ6zkAF0Q4oyd0rFtU=", 236 "checksumSHA1": "NjyXtXsaf0ulRJn6HQSP1FqGL4A=",
229 "path": "golang.org/x/net/bpf", 237 "path": "golang.org/x/net/bpf",
230 "revision": "2e7f24ace30034db6c258ddb329e5236a68c27fa", 238 "revision": "146acd28ed5894421fb5aac80ca93bc1b1f46f87",
231 "revisionTime": "2018-02-15T13:39:58Z" 239 "revisionTime": "2018-10-04T22:16:49Z"
232 }, 240 },
233 { 241 {
234 "checksumSHA1": "5JWn/wMC+EWNDKI/AYE4JifQF54=", 242 "checksumSHA1": "8oJoT8rfokzpkJ19eNhRs2JgRxI=",
235 "path": "golang.org/x/net/internal/iana", 243 "path": "golang.org/x/net/internal/iana",
236 "revision": "2e7f24ace30034db6c258ddb329e5236a68c27fa", 244 "revision": "146acd28ed5894421fb5aac80ca93bc1b1f46f87",
237 "revisionTime": "2018-02-15T13:39:58Z" 245 "revisionTime": "2018-10-04T22:16:49Z"
238 }, 246 },
239 { 247 {
240 "checksumSHA1": "WnI4058Oj6W4YSvyXAnK3qCKqvo=", 248 "checksumSHA1": "YsXlbexuTtUXHyhSv927ILOkf6A=",
241 "path": "golang.org/x/net/internal/socket", 249 "path": "golang.org/x/net/internal/socket",
242 "revision": "2e7f24ace30034db6c258ddb329e5236a68c27fa", 250 "revision": "146acd28ed5894421fb5aac80ca93bc1b1f46f87",
243 "revisionTime": "2018-02-15T13:39:58Z" 251 "revisionTime": "2018-10-04T22:16:49Z"
244 }, 252 },
245 { 253 {
246 "checksumSHA1": "zPTKyZ1C55w1fk1W+/qGE15jaek=", 254 "checksumSHA1": "K4XNY0c60IPBpv5sO6aiCuB8o/0=",
247 "path": "golang.org/x/net/ipv4", 255 "path": "golang.org/x/net/ipv4",
248 "revision": "2e7f24ace30034db6c258ddb329e5236a68c27fa", 256 "revision": "146acd28ed5894421fb5aac80ca93bc1b1f46f87",
249 "revisionTime": "2018-02-15T13:39:58Z" 257 "revisionTime": "2018-10-04T22:16:49Z"
250 }, 258 },
251 { 259 {
252 "checksumSHA1": "CNHEeGnucEUlTHJrLS2kHtfNbws=", 260 "checksumSHA1": "ko2jS+S73n4qhQpABo/AnQaSQfo=",
253 "path": "golang.org/x/sys/unix", 261 "path": "golang.org/x/sys/unix",
254 "revision": "37707fdb30a5b38865cfb95e5aab41707daec7fd", 262 "revision": "4497e2df6f9e69048a54498c7affbbec3294ad47",
255 "revisionTime": "2018-02-02T13:35:31Z" 263 "revisionTime": "2018-10-05T07:04:52Z"
256 }, 264 },
257 { 265 {
258 "checksumSHA1": "eQq+ZoTWPjyizS9XalhZwfGjQao=", 266 "checksumSHA1": "Y7nctMxT58lRM78VtElPerhcnEs=",
259 "path": "golang.org/x/sys/windows", 267 "path": "golang.org/x/sys/windows",
260 "revision": "37707fdb30a5b38865cfb95e5aab41707daec7fd", 268 "revision": "4497e2df6f9e69048a54498c7affbbec3294ad47",
261 "revisionTime": "2018-02-02T13:35:31Z" 269 "revisionTime": "2018-10-05T07:04:52Z"
262 }, 270 },
263 { 271 {
264 "checksumSHA1": "ZdFZFaXmCgEEaEhVPkyXrnhKhsg=", 272 "checksumSHA1": "P9OIhD26uWlIST/me4TYnvseCoY=",
265 "path": "golang.org/x/sys/windows/registry", 273 "path": "golang.org/x/sys/windows/registry",
266 "revision": "37707fdb30a5b38865cfb95e5aab41707daec7fd", 274 "revision": "4497e2df6f9e69048a54498c7affbbec3294ad47",
267 "revisionTime": "2018-02-02T13:35:31Z" 275 "revisionTime": "2018-10-05T07:04:52Z"
268 }, 276 },
269 { 277 {
270 "checksumSHA1": "uVlUSSKplihZG7N+QJ6fzDZ4Kh8=", 278 "checksumSHA1": "uVlUSSKplihZG7N+QJ6fzDZ4Kh8=",
271 "path": "golang.org/x/sys/windows/svc/eventlog", 279 "path": "golang.org/x/sys/windows/svc/eventlog",
272 "revision": "37707fdb30a5b38865cfb95e5aab41707daec7fd", 280 "revision": "4497e2df6f9e69048a54498c7affbbec3294ad47",
273 "revisionTime": "2018-02-02T13:35:31Z" 281 "revisionTime": "2018-10-05T07:04:52Z"
274 }, 282 },
275 { 283 {
276 "checksumSHA1": "sToCp8GThnMnsBzsHv+L/tBYQrQ=", 284 "checksumSHA1": "sToCp8GThnMnsBzsHv+L/tBYQrQ=",