update vendor golang.org/x/sys to 6d18c012aee9febd81bbf9806760c8c4480e870d
full diff: c990c680b6...6d18c012ae
execute "docker run -it {image name} /bin/sh" no response on mip64el platform;
EpollEvent struct define lack a field named PadFd;
add the field "PadFd";
execute docker run -it {image} /bin/sh for test after rebuilded.
Signed-off-by: liuxiaodong <liuxiaodong@loongson.cn>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
3452f136aa
commit
ee5aa536d1
101 changed files with 40857 additions and 36571 deletions
|
@ -13,7 +13,7 @@ github.com/mattn/go-shellwords 36a9b3c57cb5caa559ff63fb7e9b
|
|||
github.com/sirupsen/logrus 839c75faf7f98a33d445d181f3018b5c3409a45e # v1.4.2
|
||||
github.com/tchap/go-patricia a7f0089c6f496e8e70402f61733606daa326cac5 # v2.3.0
|
||||
golang.org/x/net f3200d17e092c607f615320ecaad13d87ad9a2b3
|
||||
golang.org/x/sys c990c680b611ac1aeb7d8f2af94a825f98d69720
|
||||
golang.org/x/sys 6d18c012aee9febd81bbf9806760c8c4480e870d
|
||||
github.com/docker/go-units 519db1ee28dcc9fd2474ae59fca29a810482bfb1 # v0.4.0
|
||||
github.com/docker/go-connections 7395e3f8aa162843a74ed6d48e79627d9792ac55 # v0.4.0
|
||||
golang.org/x/text f21a4dfb5e38f5895301dc265a8def02365cc3d0 # v0.3.0
|
||||
|
|
9
vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go
generated
vendored
Normal file
9
vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build linux,!arm,!arm64,!ppc64,!ppc64le,!s390x
|
||||
|
||||
package cpu
|
||||
|
||||
func doinit() {}
|
2
vendor/golang.org/x/sys/cpu/cpu_mips64x.go
generated
vendored
2
vendor/golang.org/x/sys/cpu/cpu_mips64x.go
generated
vendored
|
@ -7,5 +7,3 @@
|
|||
package cpu
|
||||
|
||||
const cacheLineSize = 32
|
||||
|
||||
func doinit() {}
|
||||
|
|
2
vendor/golang.org/x/sys/cpu/cpu_mipsx.go
generated
vendored
2
vendor/golang.org/x/sys/cpu/cpu_mipsx.go
generated
vendored
|
@ -7,5 +7,3 @@
|
|||
package cpu
|
||||
|
||||
const cacheLineSize = 32
|
||||
|
||||
func doinit() {}
|
||||
|
|
2
vendor/golang.org/x/sys/cpu/cpu_other_arm64.go
generated
vendored
2
vendor/golang.org/x/sys/cpu/cpu_other_arm64.go
generated
vendored
|
@ -7,5 +7,3 @@
|
|||
package cpu
|
||||
|
||||
const cacheLineSize = 64
|
||||
|
||||
func doinit() {}
|
||||
|
|
9
vendor/golang.org/x/sys/cpu/cpu_riscv64.go
generated
vendored
Normal file
9
vendor/golang.org/x/sys/cpu/cpu_riscv64.go
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build riscv64
|
||||
|
||||
package cpu
|
||||
|
||||
const cacheLineSize = 32
|
2
vendor/golang.org/x/sys/cpu/cpu_wasm.go
generated
vendored
2
vendor/golang.org/x/sys/cpu/cpu_wasm.go
generated
vendored
|
@ -11,5 +11,3 @@ package cpu
|
|||
// rules are good enough.
|
||||
|
||||
const cacheLineSize = 0
|
||||
|
||||
func doinit() {}
|
||||
|
|
1
vendor/golang.org/x/sys/unix/bluetooth_linux.go
generated
vendored
1
vendor/golang.org/x/sys/unix/bluetooth_linux.go
generated
vendored
|
@ -23,6 +23,7 @@ const (
|
|||
HCI_CHANNEL_USER = 1
|
||||
HCI_CHANNEL_MONITOR = 2
|
||||
HCI_CHANNEL_CONTROL = 3
|
||||
HCI_CHANNEL_LOGGING = 4
|
||||
)
|
||||
|
||||
// Socketoption Level
|
||||
|
|
29
vendor/golang.org/x/sys/unix/fdset.go
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/fdset.go
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package unix
|
||||
|
||||
// Set adds fd to the set fds.
|
||||
func (fds *FdSet) Set(fd int) {
|
||||
fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS))
|
||||
}
|
||||
|
||||
// Clear removes fd from the set fds.
|
||||
func (fds *FdSet) Clear(fd int) {
|
||||
fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS))
|
||||
}
|
||||
|
||||
// IsSet returns whether fd is in the set fds.
|
||||
func (fds *FdSet) IsSet(fd int) bool {
|
||||
return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0
|
||||
}
|
||||
|
||||
// Zero clears the set fds.
|
||||
func (fds *FdSet) Zero() {
|
||||
for i := range fds.Bits {
|
||||
fds.Bits[i] = 0
|
||||
}
|
||||
}
|
16
vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go
generated
vendored
Normal file
16
vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package unix
|
||||
|
||||
// Round the length of a raw sockaddr up to align it properly.
|
||||
func cmsgAlignOf(salen int) int {
|
||||
salign := SizeofPtr
|
||||
if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) {
|
||||
// 64-bit Dragonfly before the September 2019 ABI changes still requires
|
||||
// 32-bit aligned access to network subsystem.
|
||||
salign = 4
|
||||
}
|
||||
return (salen + salign - 1) & ^(salign - 1)
|
||||
}
|
2
vendor/golang.org/x/sys/unix/sockcmsg_linux.go
generated
vendored
2
vendor/golang.org/x/sys/unix/sockcmsg_linux.go
generated
vendored
|
@ -17,7 +17,7 @@ func UnixCredentials(ucred *Ucred) []byte {
|
|||
h.Level = SOL_SOCKET
|
||||
h.Type = SCM_CREDENTIALS
|
||||
h.SetLen(CmsgLen(SizeofUcred))
|
||||
*((*Ucred)(cmsgData(h))) = *ucred
|
||||
*(*Ucred)(h.data(0)) = *ucred
|
||||
return b
|
||||
}
|
||||
|
||||
|
|
36
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
36
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
|
@ -9,35 +9,9 @@
|
|||
package unix
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// Round the length of a raw sockaddr up to align it properly.
|
||||
func cmsgAlignOf(salen int) int {
|
||||
salign := SizeofPtr
|
||||
|
||||
switch runtime.GOOS {
|
||||
case "aix":
|
||||
// There is no alignment on AIX.
|
||||
salign = 1
|
||||
case "darwin", "dragonfly", "solaris", "illumos":
|
||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD,
|
||||
// illumos, and Solaris kernels still require 32-bit
|
||||
// aligned access to network subsystem.
|
||||
if SizeofPtr == 8 {
|
||||
salign = 4
|
||||
}
|
||||
case "netbsd", "openbsd":
|
||||
// NetBSD and OpenBSD armv7 require 64-bit alignment.
|
||||
if runtime.GOARCH == "arm" {
|
||||
salign = 8
|
||||
}
|
||||
}
|
||||
|
||||
return (salen + salign - 1) & ^(salign - 1)
|
||||
}
|
||||
|
||||
// CmsgLen returns the value to store in the Len field of the Cmsghdr
|
||||
// structure, taking into account any necessary alignment.
|
||||
func CmsgLen(datalen int) int {
|
||||
|
@ -50,8 +24,8 @@ func CmsgSpace(datalen int) int {
|
|||
return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
|
||||
}
|
||||
|
||||
func cmsgData(h *Cmsghdr) unsafe.Pointer {
|
||||
return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr)))
|
||||
func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer {
|
||||
return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr)) + offset)
|
||||
}
|
||||
|
||||
// SocketControlMessage represents a socket control message.
|
||||
|
@ -94,10 +68,8 @@ func UnixRights(fds ...int) []byte {
|
|||
h.Level = SOL_SOCKET
|
||||
h.Type = SCM_RIGHTS
|
||||
h.SetLen(CmsgLen(datalen))
|
||||
data := cmsgData(h)
|
||||
for _, fd := range fds {
|
||||
*(*int32)(data) = int32(fd)
|
||||
data = unsafe.Pointer(uintptr(data) + 4)
|
||||
for i, fd := range fds {
|
||||
*(*int32)(h.data(4 * uintptr(i))) = int32(fd)
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
|
38
vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go
generated
vendored
Normal file
38
vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go
generated
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build aix darwin freebsd linux netbsd openbsd solaris
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
)
|
||||
|
||||
// Round the length of a raw sockaddr up to align it properly.
|
||||
func cmsgAlignOf(salen int) int {
|
||||
salign := SizeofPtr
|
||||
|
||||
// dragonfly needs to check ABI version at runtime, see cmsgAlignOf in
|
||||
// sockcmsg_dragonfly.go
|
||||
switch runtime.GOOS {
|
||||
case "aix":
|
||||
// There is no alignment on AIX.
|
||||
salign = 1
|
||||
case "darwin", "illumos", "solaris":
|
||||
// NOTE: It seems like 64-bit Darwin, Illumos and Solaris
|
||||
// kernels still require 32-bit aligned access to network
|
||||
// subsystem.
|
||||
if SizeofPtr == 8 {
|
||||
salign = 4
|
||||
}
|
||||
case "netbsd", "openbsd":
|
||||
// NetBSD and OpenBSD armv7 require 64-bit alignment.
|
||||
if runtime.GOARCH == "arm" {
|
||||
salign = 8
|
||||
}
|
||||
}
|
||||
|
||||
return (salen + salign - 1) & ^(salign - 1)
|
||||
}
|
2
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
|
@ -237,7 +237,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||
break
|
||||
}
|
||||
}
|
||||
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||
sa.Name = string(bytes)
|
||||
return sa, nil
|
||||
|
||||
|
|
29
vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build darwin,go1.12,!go1.13
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
// To implement this using libSystem we'd need syscall_syscallPtr for
|
||||
// fdopendir. However, syscallPtr was only added in Go 1.13, so we fall
|
||||
// back to raw syscalls for this func on Go 1.12.
|
||||
var p unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
p = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
p = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
return n, errnoErr(e1)
|
||||
}
|
||||
return n, nil
|
||||
}
|
101
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go
generated
vendored
Normal file
101
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go
generated
vendored
Normal file
|
@ -0,0 +1,101 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build darwin,go1.13
|
||||
|
||||
package unix
|
||||
|
||||
import "unsafe"
|
||||
|
||||
//sys closedir(dir uintptr) (err error)
|
||||
//sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
|
||||
|
||||
func fdopendir(fd int) (dir uintptr, err error) {
|
||||
r0, _, e1 := syscall_syscallPtr(funcPC(libc_fdopendir_trampoline), uintptr(fd), 0, 0)
|
||||
dir = uintptr(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_fdopendir_trampoline()
|
||||
|
||||
//go:linkname libc_fdopendir libc_fdopendir
|
||||
//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
// Simulate Getdirentries using fdopendir/readdir_r/closedir.
|
||||
// We store the number of entries to skip in the seek
|
||||
// offset of fd. See issue #31368.
|
||||
// It's not the full required semantics, but should handle the case
|
||||
// of calling Getdirentries or ReadDirent repeatedly.
|
||||
// It won't handle assigning the results of lseek to *basep, or handle
|
||||
// the directory being edited underfoot.
|
||||
skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
// We need to duplicate the incoming file descriptor
|
||||
// because the caller expects to retain control of it, but
|
||||
// fdopendir expects to take control of its argument.
|
||||
// Just Dup'ing the file descriptor is not enough, as the
|
||||
// result shares underlying state. Use Openat to make a really
|
||||
// new file descriptor referring to the same directory.
|
||||
fd2, err := Openat(fd, ".", O_RDONLY, 0)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
d, err := fdopendir(fd2)
|
||||
if err != nil {
|
||||
Close(fd2)
|
||||
return 0, err
|
||||
}
|
||||
defer closedir(d)
|
||||
|
||||
var cnt int64
|
||||
for {
|
||||
var entry Dirent
|
||||
var entryp *Dirent
|
||||
e := readdir_r(d, &entry, &entryp)
|
||||
if e != 0 {
|
||||
return n, errnoErr(e)
|
||||
}
|
||||
if entryp == nil {
|
||||
break
|
||||
}
|
||||
if skip > 0 {
|
||||
skip--
|
||||
cnt++
|
||||
continue
|
||||
}
|
||||
reclen := int(entry.Reclen)
|
||||
if reclen > len(buf) {
|
||||
// Not enough room. Return for now.
|
||||
// The counter will let us know where we should start up again.
|
||||
// Note: this strategy for suspending in the middle and
|
||||
// restarting is O(n^2) in the length of the directory. Oh well.
|
||||
break
|
||||
}
|
||||
// Copy entry into return buffer.
|
||||
s := struct {
|
||||
ptr unsafe.Pointer
|
||||
siz int
|
||||
cap int
|
||||
}{ptr: unsafe.Pointer(&entry), siz: reclen, cap: reclen}
|
||||
copy(buf, *(*[]byte)(unsafe.Pointer(&s)))
|
||||
buf = buf[reclen:]
|
||||
n += reclen
|
||||
cnt++
|
||||
}
|
||||
// Set the seek offset of the input fd to record
|
||||
// how many files we've already returned.
|
||||
_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
|
||||
if err != nil {
|
||||
return n, err
|
||||
}
|
||||
|
||||
return n, nil
|
||||
}
|
2
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
|
@ -339,6 +339,8 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
|||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL
|
||||
|
||||
func Uname(uname *Utsname) error {
|
||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||
n := unsafe.Sizeof(uname.Sysname)
|
||||
|
|
9
vendor/golang.org/x/sys/unix/syscall_darwin_386.1_11.go
generated
vendored
Normal file
9
vendor/golang.org/x/sys/unix/syscall_darwin_386.1_11.go
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build darwin,386,!go1.12
|
||||
|
||||
package unix
|
||||
|
||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
2
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
generated
vendored
|
@ -10,7 +10,6 @@ import (
|
|||
"syscall"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
|
@ -63,7 +62,6 @@ const SYS___SYSCTL = SYS_SYSCTL
|
|||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
||||
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||
|
|
9
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.1_11.go
generated
vendored
Normal file
9
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.1_11.go
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build darwin,amd64,!go1.12
|
||||
|
||||
package unix
|
||||
|
||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
2
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
|
@ -10,7 +10,6 @@ import (
|
|||
"syscall"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
|
@ -63,7 +62,6 @@ const SYS___SYSCTL = SYS_SYSCTL
|
|||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
||||
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||
|
|
11
vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go
generated
vendored
Normal file
11
vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build darwin,386,!go1.12
|
||||
|
||||
package unix
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
return 0, ENOSYS
|
||||
}
|
8
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
generated
vendored
|
@ -12,10 +12,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
|||
return ENOTSUP
|
||||
}
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error {
|
||||
return ENOTSUP
|
||||
}
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
||||
}
|
||||
|
@ -70,7 +66,3 @@ const SYS___SYSCTL = SYS_SYSCTL
|
|||
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||
//sys Stat(path string, stat *Stat_t) (err error)
|
||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
return 0, ENOSYS
|
||||
}
|
||||
|
|
11
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.1_11.go
generated
vendored
Normal file
11
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.1_11.go
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build darwin,arm64,!go1.12
|
||||
|
||||
package unix
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
return 0, ENOSYS
|
||||
}
|
8
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
|
@ -14,10 +14,6 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
|||
return ENOTSUP
|
||||
}
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error {
|
||||
return ENOTSUP
|
||||
}
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
}
|
||||
|
@ -72,7 +68,3 @@ const SYS___SYSCTL = SYS_SYSCTL
|
|||
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||
//sys Stat(path string, stat *Stat_t) (err error)
|
||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
return 0, ENOSYS
|
||||
}
|
||||
|
|
2
vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go
generated
vendored
|
@ -15,6 +15,7 @@ func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err
|
|||
func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) // 32-bit only
|
||||
func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||
func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||
func syscall_syscallPtr(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||
|
||||
//go:linkname syscall_syscall syscall.syscall
|
||||
//go:linkname syscall_syscall6 syscall.syscall6
|
||||
|
@ -22,6 +23,7 @@ func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, er
|
|||
//go:linkname syscall_syscall9 syscall.syscall9
|
||||
//go:linkname syscall_rawSyscall syscall.rawSyscall
|
||||
//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
|
||||
//go:linkname syscall_syscallPtr syscall.syscallPtr
|
||||
|
||||
// Find the entry point for f. See comments in runtime/proc.go for the
|
||||
// function of the same name.
|
||||
|
|
22
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
22
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
|
@ -12,9 +12,25 @@
|
|||
|
||||
package unix
|
||||
|
||||
import "unsafe"
|
||||
import (
|
||||
"sync"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
// See version list in https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/param.h
|
||||
var (
|
||||
osreldateOnce sync.Once
|
||||
osreldate uint32
|
||||
)
|
||||
|
||||
// First __DragonFly_version after September 2019 ABI changes
|
||||
// http://lists.dragonflybsd.org/pipermail/users/2019-September/358280.html
|
||||
const _dragonflyABIChangeVersion = 500705
|
||||
|
||||
func supportsABI(ver uint32) bool {
|
||||
osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") })
|
||||
return osreldate >= ver
|
||||
}
|
||||
|
||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||
type SockaddrDatalink struct {
|
||||
|
@ -152,6 +168,8 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error {
|
||||
err := sysctl(mib, old, oldlen, nil, 0)
|
||||
if err != nil {
|
||||
|
|
13
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
13
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
|
@ -36,8 +36,6 @@ var (
|
|||
// INO64_FIRST from /usr/src/lib/libc/sys/compat-ino64.h
|
||||
const _ino64First = 1200031
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
func supportsABI(ver uint32) bool {
|
||||
osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") })
|
||||
return osreldate >= ver
|
||||
|
@ -203,6 +201,8 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
func Uname(uname *Utsname) error {
|
||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||
n := unsafe.Sizeof(uname.Sysname)
|
||||
|
@ -462,8 +462,12 @@ func convertFromDirents11(buf []byte, old []byte) int {
|
|||
dstPos := 0
|
||||
srcPos := 0
|
||||
for dstPos+fixedSize < len(buf) && srcPos+oldFixedSize < len(old) {
|
||||
dstDirent := (*Dirent)(unsafe.Pointer(&buf[dstPos]))
|
||||
srcDirent := (*dirent_freebsd11)(unsafe.Pointer(&old[srcPos]))
|
||||
var dstDirent Dirent
|
||||
var srcDirent dirent_freebsd11
|
||||
|
||||
// If multiple direntries are written, sometimes when we reach the final one,
|
||||
// we may have cap of old less than size of dirent_freebsd11.
|
||||
copy((*[unsafe.Sizeof(srcDirent)]byte)(unsafe.Pointer(&srcDirent))[:], old[srcPos:])
|
||||
|
||||
reclen := roundup(fixedSize+int(srcDirent.Namlen)+1, 8)
|
||||
if dstPos+reclen > len(buf) {
|
||||
|
@ -479,6 +483,7 @@ func convertFromDirents11(buf []byte, old []byte) int {
|
|||
dstDirent.Pad1 = 0
|
||||
|
||||
copy(dstDirent.Name[:], srcDirent.Name[:srcDirent.Namlen])
|
||||
copy(buf[dstPos:], (*[unsafe.Sizeof(dstDirent)]byte)(unsafe.Pointer(&dstDirent))[:])
|
||||
padding := buf[dstPos+fixedSize+int(dstDirent.Namlen) : dstPos+reclen]
|
||||
for i := range padding {
|
||||
padding[i] = 0
|
||||
|
|
17
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
17
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
|
@ -884,7 +884,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||
for n < len(pp.Path) && pp.Path[n] != 0 {
|
||||
n++
|
||||
}
|
||||
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||
sa.Name = string(bytes)
|
||||
return sa, nil
|
||||
|
||||
|
@ -1493,8 +1493,12 @@ func PtraceSyscall(pid int, signal int) (err error) {
|
|||
|
||||
func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) }
|
||||
|
||||
func PtraceInterrupt(pid int) (err error) { return ptrace(PTRACE_INTERRUPT, pid, 0, 0) }
|
||||
|
||||
func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) }
|
||||
|
||||
func PtraceSeize(pid int) (err error) { return ptrace(PTRACE_SEIZE, pid, 0, 0) }
|
||||
|
||||
func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) }
|
||||
|
||||
//sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error)
|
||||
|
@ -1851,6 +1855,17 @@ func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err erro
|
|||
return openByHandleAt(mountFD, handle.fileHandle, flags)
|
||||
}
|
||||
|
||||
// Klogset wraps the sys_syslog system call; it sets console_loglevel to
|
||||
// the value specified by arg and passes a dummy pointer to bufp.
|
||||
func Klogset(typ int, arg int) (err error) {
|
||||
var p unsafe.Pointer
|
||||
_, _, errno := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(p), uintptr(arg))
|
||||
if errno != 0 {
|
||||
return errnoErr(errno)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
/*
|
||||
* Unimplemented
|
||||
*/
|
||||
|
|
4
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
|
@ -18,8 +18,6 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||
type SockaddrDatalink struct {
|
||||
Len uint8
|
||||
|
@ -189,6 +187,8 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
||||
var value Ptmget
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
|
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
|
@ -18,8 +18,6 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||
type SockaddrDatalink struct {
|
||||
Len uint8
|
||||
|
@ -180,6 +178,8 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
|||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
||||
|
||||
func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||
|
|
2
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
|
@ -391,7 +391,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||
for n < len(pp.Path) && pp.Path[n] != 0 {
|
||||
n++
|
||||
}
|
||||
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||
sa.Name = string(bytes)
|
||||
return sa, nil
|
||||
|
||||
|
|
12
vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
generated
vendored
|
@ -459,6 +459,15 @@ const (
|
|||
MAP_SHARED = 0x1
|
||||
MAP_TYPE = 0xf0
|
||||
MAP_VARIABLE = 0x0
|
||||
MCAST_BLOCK_SOURCE = 0x40
|
||||
MCAST_EXCLUDE = 0x2
|
||||
MCAST_INCLUDE = 0x1
|
||||
MCAST_JOIN_GROUP = 0x3e
|
||||
MCAST_JOIN_SOURCE_GROUP = 0x42
|
||||
MCAST_LEAVE_GROUP = 0x3f
|
||||
MCAST_LEAVE_SOURCE_GROUP = 0x43
|
||||
MCAST_SOURCE_FILTER = 0x49
|
||||
MCAST_UNBLOCK_SOURCE = 0x41
|
||||
MCL_CURRENT = 0x100
|
||||
MCL_FUTURE = 0x200
|
||||
MSG_ANY = 0x4
|
||||
|
@ -483,6 +492,7 @@ const (
|
|||
MS_INVALIDATE = 0x40
|
||||
MS_PER_SEC = 0x3e8
|
||||
MS_SYNC = 0x20
|
||||
NFDBITS = 0x20
|
||||
NL0 = 0x0
|
||||
NL1 = 0x4000
|
||||
NL2 = 0x8000
|
||||
|
@ -688,7 +698,7 @@ const (
|
|||
SIOCGHIWAT = 0x40047301
|
||||
SIOCGIFADDR = -0x3fd796df
|
||||
SIOCGIFADDRS = 0x2000698c
|
||||
SIOCGIFBAUDRATE = -0x3fd79693
|
||||
SIOCGIFBAUDRATE = -0x3fdf9669
|
||||
SIOCGIFBRDADDR = -0x3fd796dd
|
||||
SIOCGIFCONF = -0x3ff796bb
|
||||
SIOCGIFCONFGLOB = -0x3ff79670
|
||||
|
|
12
vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
generated
vendored
|
@ -459,6 +459,15 @@ const (
|
|||
MAP_SHARED = 0x1
|
||||
MAP_TYPE = 0xf0
|
||||
MAP_VARIABLE = 0x0
|
||||
MCAST_BLOCK_SOURCE = 0x40
|
||||
MCAST_EXCLUDE = 0x2
|
||||
MCAST_INCLUDE = 0x1
|
||||
MCAST_JOIN_GROUP = 0x3e
|
||||
MCAST_JOIN_SOURCE_GROUP = 0x42
|
||||
MCAST_LEAVE_GROUP = 0x3f
|
||||
MCAST_LEAVE_SOURCE_GROUP = 0x43
|
||||
MCAST_SOURCE_FILTER = 0x49
|
||||
MCAST_UNBLOCK_SOURCE = 0x41
|
||||
MCL_CURRENT = 0x100
|
||||
MCL_FUTURE = 0x200
|
||||
MSG_ANY = 0x4
|
||||
|
@ -483,6 +492,7 @@ const (
|
|||
MS_INVALIDATE = 0x40
|
||||
MS_PER_SEC = 0x3e8
|
||||
MS_SYNC = 0x20
|
||||
NFDBITS = 0x40
|
||||
NL0 = 0x0
|
||||
NL1 = 0x4000
|
||||
NL2 = 0x8000
|
||||
|
@ -688,7 +698,7 @@ const (
|
|||
SIOCGHIWAT = 0x40047301
|
||||
SIOCGIFADDR = -0x3fd796df
|
||||
SIOCGIFADDRS = 0x2000698c
|
||||
SIOCGIFBAUDRATE = -0x3fd79693
|
||||
SIOCGIFBAUDRATE = -0x3fdf9669
|
||||
SIOCGIFBRDADDR = -0x3fd796dd
|
||||
SIOCGIFCONF = -0x3fef96bb
|
||||
SIOCGIFCONFGLOB = -0x3fef9670
|
||||
|
|
5563
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
5563
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
File diff suppressed because it is too large
Load diff
5563
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
5563
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
File diff suppressed because it is too large
Load diff
5575
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
5575
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
File diff suppressed because it is too large
Load diff
5549
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
5549
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
File diff suppressed because it is too large
Load diff
5567
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
5567
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
File diff suppressed because it is too large
Load diff
5567
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
5567
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
File diff suppressed because it is too large
Load diff
5567
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
5567
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
File diff suppressed because it is too large
Load diff
5567
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
5567
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
File diff suppressed because it is too large
Load diff
5685
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
5685
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
File diff suppressed because it is too large
Load diff
5685
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
5685
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
File diff suppressed because it is too large
Load diff
5537
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
5537
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
File diff suppressed because it is too large
Load diff
5683
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
5683
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
File diff suppressed because it is too large
Load diff
5663
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
5663
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
File diff suppressed because it is too large
Load diff
14
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
14
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
|
@ -881,14 +881,15 @@ const (
|
|||
MADV_SPACEAVAIL = 0x5
|
||||
MADV_WILLNEED = 0x3
|
||||
MAP_ANON = 0x1000
|
||||
MAP_COPY = 0x4
|
||||
MAP_ANONYMOUS = 0x1000
|
||||
MAP_CONCEAL = 0x8000
|
||||
MAP_COPY = 0x2
|
||||
MAP_FILE = 0x0
|
||||
MAP_FIXED = 0x10
|
||||
MAP_FLAGMASK = 0x1ff7
|
||||
MAP_HASSEMAPHORE = 0x200
|
||||
MAP_INHERIT = 0x80
|
||||
MAP_FLAGMASK = 0xfff7
|
||||
MAP_HASSEMAPHORE = 0x0
|
||||
MAP_INHERIT = 0x0
|
||||
MAP_INHERIT_COPY = 0x1
|
||||
MAP_INHERIT_DONATE_COPY = 0x3
|
||||
MAP_INHERIT_NONE = 0x2
|
||||
MAP_INHERIT_SHARE = 0x0
|
||||
MAP_NOEXTEND = 0x100
|
||||
|
@ -896,7 +897,8 @@ const (
|
|||
MAP_PRIVATE = 0x2
|
||||
MAP_RENAME = 0x20
|
||||
MAP_SHARED = 0x1
|
||||
MAP_TRYFIXED = 0x400
|
||||
MAP_STACK = 0x4000
|
||||
MAP_TRYFIXED = 0x0
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MNT_ASYNC = 0x40
|
||||
|
|
3
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
3
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
|
@ -920,10 +920,11 @@ const (
|
|||
MADV_WILLNEED = 0x3
|
||||
MAP_ANON = 0x1000
|
||||
MAP_ANONYMOUS = 0x1000
|
||||
MAP_CONCEAL = 0x8000
|
||||
MAP_COPY = 0x2
|
||||
MAP_FILE = 0x0
|
||||
MAP_FIXED = 0x10
|
||||
MAP_FLAGMASK = 0x7ff7
|
||||
MAP_FLAGMASK = 0xfff7
|
||||
MAP_HASSEMAPHORE = 0x0
|
||||
MAP_INHERIT = 0x0
|
||||
MAP_INHERIT_COPY = 0x1
|
||||
|
|
8
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
8
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
// mkerrors.sh
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build arm,openbsd
|
||||
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- _const.go
|
||||
|
||||
// +build arm,openbsd
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
@ -881,10 +881,11 @@ const (
|
|||
MADV_WILLNEED = 0x3
|
||||
MAP_ANON = 0x1000
|
||||
MAP_ANONYMOUS = 0x1000
|
||||
MAP_CONCEAL = 0x8000
|
||||
MAP_COPY = 0x2
|
||||
MAP_FILE = 0x0
|
||||
MAP_FIXED = 0x10
|
||||
MAP_FLAGMASK = 0x3ff7
|
||||
MAP_FLAGMASK = 0xfff7
|
||||
MAP_HASSEMAPHORE = 0x0
|
||||
MAP_INHERIT = 0x0
|
||||
MAP_INHERIT_COPY = 0x1
|
||||
|
@ -896,6 +897,7 @@ const (
|
|||
MAP_PRIVATE = 0x2
|
||||
MAP_RENAME = 0x0
|
||||
MAP_SHARED = 0x1
|
||||
MAP_STACK = 0x4000
|
||||
MAP_TRYFIXED = 0x0
|
||||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
|
|
44
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
generated
vendored
44
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
// go run mksyscall.go -l32 -tags darwin,386,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go
|
||||
// go run mksyscall.go -l32 -tags darwin,386,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_386.1_11.go syscall_darwin_386.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,386,!go1.12
|
||||
|
@ -547,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
@ -1666,14 +1682,15 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
if len(buf) > 0 {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
|
@ -1739,23 +1756,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(buf), uintptr(size), uintptr(flags))
|
||||
n = int(r0)
|
||||
|
|
41
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.go
generated
vendored
Normal file
41
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.go
generated
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
// go run mksyscall.go -l32 -tags darwin,386,go1.13 syscall_darwin.1_13.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,386,go1.13
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ syscall.Errno
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func closedir(dir uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_closedir_trampoline()
|
||||
|
||||
//go:linkname libc_closedir libc_closedir
|
||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||
r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||
res = Errno(r0)
|
||||
return
|
||||
}
|
||||
|
||||
func libc_readdir_r_trampoline()
|
||||
|
||||
//go:linkname libc_readdir_r libc_readdir_r
|
||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
12
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s
generated
vendored
Normal file
12
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
// go run mkasm_darwin.go 386
|
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
// +build go1.13
|
||||
|
||||
#include "textflag.h"
|
||||
TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_fdopendir(SB)
|
||||
TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_closedir(SB)
|
||||
TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_readdir_r(SB)
|
64
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
64
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
|
@ -757,6 +757,27 @@ func libc_ioctl_trampoline()
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_sysctl_trampoline()
|
||||
|
||||
//go:linkname libc_sysctl libc_sysctl
|
||||
//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
||||
_, _, e1 := syscall_syscall9(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
@ -2321,27 +2342,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___sysctl_trampoline()
|
||||
|
||||
//go:linkname libc___sysctl libc___sysctl
|
||||
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
@ -2424,28 +2424,6 @@ func libc_fstatfs64_trampoline()
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := syscall_syscall6(funcPC(libc___getdirentries64_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___getdirentries64_trampoline()
|
||||
|
||||
//go:linkname libc___getdirentries64 libc___getdirentries64
|
||||
//go:cgo_import_dynamic libc___getdirentries64 __getdirentries64 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
|
||||
r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat64_trampoline), uintptr(buf), uintptr(size), uintptr(flags))
|
||||
n = int(r0)
|
||||
|
|
8
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
generated
vendored
8
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
generated
vendored
|
@ -88,6 +88,8 @@ TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_kill(SB)
|
||||
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_ioctl(SB)
|
||||
TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sysctl(SB)
|
||||
TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sendfile(SB)
|
||||
TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0
|
||||
|
@ -104,8 +106,6 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_chown(SB)
|
||||
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_chroot(SB)
|
||||
TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_clock_gettime(SB)
|
||||
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_close(SB)
|
||||
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
|
||||
|
@ -262,8 +262,6 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_mmap(SB)
|
||||
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_munmap(SB)
|
||||
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___sysctl(SB)
|
||||
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_ptrace(SB)
|
||||
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||
|
@ -274,8 +272,6 @@ TEXT ·libc_fstatat64_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_fstatat64(SB)
|
||||
TEXT ·libc_fstatfs64_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_fstatfs64(SB)
|
||||
TEXT ·libc___getdirentries64_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___getdirentries64(SB)
|
||||
TEXT ·libc_getfsstat64_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_getfsstat64(SB)
|
||||
TEXT ·libc_lstat64_trampoline(SB),NOSPLIT,$0-0
|
||||
|
|
44
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
generated
vendored
44
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
// go run mksyscall.go -tags darwin,amd64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
||||
// go run mksyscall.go -tags darwin,amd64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.1_11.go syscall_darwin_amd64.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,amd64,!go1.12
|
||||
|
@ -547,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
|
||||
if e1 != 0 {
|
||||
|
@ -1666,14 +1682,15 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
if len(buf) > 0 {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
|
@ -1739,23 +1756,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
|
||||
r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(buf), uintptr(size), uintptr(flags))
|
||||
n = int(r0)
|
||||
|
|
41
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go
generated
vendored
Normal file
41
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go
generated
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
// go run mksyscall.go -tags darwin,amd64,go1.13 syscall_darwin.1_13.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,amd64,go1.13
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ syscall.Errno
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func closedir(dir uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_closedir_trampoline()
|
||||
|
||||
//go:linkname libc_closedir libc_closedir
|
||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||
r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||
res = Errno(r0)
|
||||
return
|
||||
}
|
||||
|
||||
func libc_readdir_r_trampoline()
|
||||
|
||||
//go:linkname libc_readdir_r libc_readdir_r
|
||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
12
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s
generated
vendored
Normal file
12
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
// go run mkasm_darwin.go amd64
|
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
// +build go1.13
|
||||
|
||||
#include "textflag.h"
|
||||
TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_fdopendir(SB)
|
||||
TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_closedir(SB)
|
||||
TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_readdir_r(SB)
|
64
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
64
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
|
@ -757,6 +757,27 @@ func libc_ioctl_trampoline()
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_sysctl_trampoline()
|
||||
|
||||
//go:linkname libc_sysctl libc_sysctl
|
||||
//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
|
||||
if e1 != 0 {
|
||||
|
@ -2321,27 +2342,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___sysctl_trampoline()
|
||||
|
||||
//go:linkname libc___sysctl libc___sysctl
|
||||
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
@ -2424,28 +2424,6 @@ func libc_fstatfs64_trampoline()
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(buf) > 0 {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
r0, _, e1 := syscall_syscall6(funcPC(libc___getdirentries64_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___getdirentries64_trampoline()
|
||||
|
||||
//go:linkname libc___getdirentries64 libc___getdirentries64
|
||||
//go:cgo_import_dynamic libc___getdirentries64 __getdirentries64 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
|
||||
r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat64_trampoline), uintptr(buf), uintptr(size), uintptr(flags))
|
||||
n = int(r0)
|
||||
|
|
6
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
6
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
|
@ -88,6 +88,8 @@ TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_kill(SB)
|
||||
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_ioctl(SB)
|
||||
TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sysctl(SB)
|
||||
TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sendfile(SB)
|
||||
TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0
|
||||
|
@ -262,8 +264,6 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_mmap(SB)
|
||||
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_munmap(SB)
|
||||
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___sysctl(SB)
|
||||
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_ptrace(SB)
|
||||
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||
|
@ -274,8 +274,6 @@ TEXT ·libc_fstatat64_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_fstatat64(SB)
|
||||
TEXT ·libc_fstatfs64_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_fstatfs64(SB)
|
||||
TEXT ·libc___getdirentries64_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___getdirentries64(SB)
|
||||
TEXT ·libc_getfsstat64_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_getfsstat64(SB)
|
||||
TEXT ·libc_lstat64_trampoline(SB),NOSPLIT,$0-0
|
||||
|
|
18
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
generated
vendored
18
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
// go run mksyscall.go -l32 -tags darwin,arm,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go
|
||||
// go run mksyscall.go -l32 -tags darwin,arm,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm.1_11.go syscall_darwin_arm.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,arm,!go1.12
|
||||
|
@ -547,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
|
41
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.go
generated
vendored
Normal file
41
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.go
generated
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
// go run mksyscall.go -l32 -tags darwin,arm,go1.13 syscall_darwin.1_13.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,arm,go1.13
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ syscall.Errno
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func closedir(dir uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_closedir_trampoline()
|
||||
|
||||
//go:linkname libc_closedir libc_closedir
|
||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||
r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||
res = Errno(r0)
|
||||
return
|
||||
}
|
||||
|
||||
func libc_readdir_r_trampoline()
|
||||
|
||||
//go:linkname libc_readdir_r libc_readdir_r
|
||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
12
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s
generated
vendored
Normal file
12
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
// go run mkasm_darwin.go arm
|
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
// +build go1.13
|
||||
|
||||
#include "textflag.h"
|
||||
TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_fdopendir(SB)
|
||||
TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_closedir(SB)
|
||||
TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_readdir_r(SB)
|
21
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
21
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
|
@ -757,6 +757,27 @@ func libc_ioctl_trampoline()
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_sysctl_trampoline()
|
||||
|
||||
//go:linkname libc_sysctl libc_sysctl
|
||||
//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
||||
_, _, e1 := syscall_syscall9(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
|
4
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
generated
vendored
4
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
generated
vendored
|
@ -40,8 +40,6 @@ TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_sendmsg(SB)
|
||||
TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_kevent(SB)
|
||||
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___sysctl(SB)
|
||||
TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_utimes(SB)
|
||||
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
|
||||
|
@ -106,6 +104,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_chown(SB)
|
||||
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_chroot(SB)
|
||||
TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_clock_gettime(SB)
|
||||
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_close(SB)
|
||||
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
|
||||
|
|
18
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
generated
vendored
18
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
// go run mksyscall.go -tags darwin,arm64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
||||
// go run mksyscall.go -tags darwin,arm64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.1_11.go syscall_darwin_arm64.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,arm64,!go1.12
|
||||
|
@ -547,6 +547,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
|
||||
if e1 != 0 {
|
||||
|
|
41
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go
generated
vendored
Normal file
41
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go
generated
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
// go run mksyscall.go -tags darwin,arm64,go1.13 syscall_darwin.1_13.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build darwin,arm64,go1.13
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ syscall.Errno
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func closedir(dir uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_closedir_trampoline()
|
||||
|
||||
//go:linkname libc_closedir libc_closedir
|
||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||
r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||
res = Errno(r0)
|
||||
return
|
||||
}
|
||||
|
||||
func libc_readdir_r_trampoline()
|
||||
|
||||
//go:linkname libc_readdir_r libc_readdir_r
|
||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
12
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s
generated
vendored
Normal file
12
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
// go run mkasm_darwin.go arm64
|
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
// +build go1.13
|
||||
|
||||
#include "textflag.h"
|
||||
TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_fdopendir(SB)
|
||||
TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_closedir(SB)
|
||||
TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_readdir_r(SB)
|
21
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
21
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
|
@ -757,6 +757,27 @@ func libc_ioctl_trampoline()
|
|||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_sysctl_trampoline()
|
||||
|
||||
//go:linkname libc_sysctl libc_sysctl
|
||||
//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
|
||||
if e1 != 0 {
|
||||
|
|
4
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
4
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
|
@ -88,6 +88,8 @@ TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_kill(SB)
|
||||
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_ioctl(SB)
|
||||
TEXT ·libc_sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sysctl(SB)
|
||||
TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sendfile(SB)
|
||||
TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0
|
||||
|
@ -104,8 +106,6 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
|
|||
JMP libc_chown(SB)
|
||||
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_chroot(SB)
|
||||
TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_clock_gettime(SB)
|
||||
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_close(SB)
|
||||
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
|
||||
|
|
1
vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
generated
vendored
|
@ -415,4 +415,5 @@ const (
|
|||
SYS_FSMOUNT = 4432
|
||||
SYS_FSPICK = 4433
|
||||
SYS_PIDFD_OPEN = 4434
|
||||
SYS_CLONE3 = 4435
|
||||
)
|
||||
|
|
1
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
generated
vendored
|
@ -345,4 +345,5 @@ const (
|
|||
SYS_FSMOUNT = 5432
|
||||
SYS_FSPICK = 5433
|
||||
SYS_PIDFD_OPEN = 5434
|
||||
SYS_CLONE3 = 5435
|
||||
)
|
||||
|
|
1
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
generated
vendored
|
@ -345,4 +345,5 @@ const (
|
|||
SYS_FSMOUNT = 5432
|
||||
SYS_FSPICK = 5433
|
||||
SYS_PIDFD_OPEN = 5434
|
||||
SYS_CLONE3 = 5435
|
||||
)
|
||||
|
|
1
vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
generated
vendored
|
@ -415,4 +415,5 @@ const (
|
|||
SYS_FSMOUNT = 4432
|
||||
SYS_FSPICK = 4433
|
||||
SYS_PIDFD_OPEN = 4434
|
||||
SYS_CLONE3 = 4435
|
||||
)
|
||||
|
|
2
vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
generated
vendored
|
@ -397,7 +397,7 @@ type Reg struct {
|
|||
}
|
||||
|
||||
type FpReg struct {
|
||||
Fp_q [32]uint128
|
||||
Fp_q [512]uint8
|
||||
Fp_sr uint32
|
||||
Fp_cr uint32
|
||||
}
|
||||
|
|
250
vendor/golang.org/x/sys/unix/ztypes_linux_386.go
generated
vendored
250
vendor/golang.org/x/sys/unix/ztypes_linux_386.go
generated
vendored
|
@ -179,6 +179,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -256,7 +305,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -427,7 +476,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -599,22 +648,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2057,6 +2090,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2071,6 +2105,7 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2484,6 +2519,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2592,3 +2663,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
generated
vendored
|
@ -179,6 +179,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -256,7 +305,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -428,7 +477,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -600,22 +649,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2070,6 +2103,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2084,6 +2118,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2497,6 +2533,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2606,3 +2678,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
generated
vendored
|
@ -183,6 +183,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -260,7 +309,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -431,7 +480,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -603,22 +652,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2048,6 +2081,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2062,6 +2096,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2475,6 +2511,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2583,3 +2655,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
generated
vendored
|
@ -180,6 +180,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -257,7 +306,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -429,7 +478,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -601,22 +650,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2049,6 +2082,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2063,6 +2097,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2476,6 +2512,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2585,3 +2657,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
generated
vendored
|
@ -182,6 +182,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -259,7 +308,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -430,7 +479,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -602,22 +651,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2054,6 +2087,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2068,6 +2102,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2481,6 +2517,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2589,3 +2661,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
252
vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
generated
vendored
252
vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
generated
vendored
|
@ -180,6 +180,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -257,7 +306,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -429,7 +478,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -601,22 +650,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -799,6 +832,7 @@ type Ustat_t struct {
|
|||
|
||||
type EpollEvent struct {
|
||||
Events uint32
|
||||
_ int32
|
||||
Fd int32
|
||||
Pad int32
|
||||
}
|
||||
|
@ -2051,6 +2085,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2065,6 +2100,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2478,6 +2515,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2587,3 +2660,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
252
vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
generated
vendored
252
vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
generated
vendored
|
@ -180,6 +180,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -257,7 +306,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -429,7 +478,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -601,22 +650,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -799,6 +832,7 @@ type Ustat_t struct {
|
|||
|
||||
type EpollEvent struct {
|
||||
Events uint32
|
||||
_ int32
|
||||
Fd int32
|
||||
Pad int32
|
||||
}
|
||||
|
@ -2051,6 +2085,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2065,6 +2100,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2478,6 +2515,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2587,3 +2660,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
generated
vendored
|
@ -182,6 +182,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -259,7 +308,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -430,7 +479,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -602,22 +651,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2054,6 +2087,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2068,6 +2102,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2481,6 +2517,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2589,3 +2661,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
generated
vendored
|
@ -181,6 +181,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -258,7 +307,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -430,7 +479,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -602,22 +651,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2059,6 +2092,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2073,6 +2107,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2486,6 +2522,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2595,3 +2667,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
generated
vendored
|
@ -181,6 +181,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -258,7 +307,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -430,7 +479,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -602,22 +651,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2059,6 +2092,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2073,6 +2107,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2486,6 +2522,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2595,3 +2667,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
generated
vendored
|
@ -180,6 +180,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -257,7 +306,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -429,7 +478,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -601,22 +650,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2077,6 +2110,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2091,6 +2125,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2504,6 +2540,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2613,3 +2685,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
generated
vendored
|
@ -179,6 +179,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -256,7 +305,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -428,7 +477,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -600,22 +649,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2073,6 +2106,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2087,6 +2121,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2500,6 +2536,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2609,3 +2681,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
251
vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
generated
vendored
251
vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
generated
vendored
|
@ -183,6 +183,55 @@ type FscryptKey struct {
|
|||
Size uint32
|
||||
}
|
||||
|
||||
type FscryptPolicyV1 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
Master_key_descriptor [8]uint8
|
||||
}
|
||||
|
||||
type FscryptPolicyV2 struct {
|
||||
Version uint8
|
||||
Contents_encryption_mode uint8
|
||||
Filenames_encryption_mode uint8
|
||||
Flags uint8
|
||||
_ [4]uint8
|
||||
Master_key_identifier [16]uint8
|
||||
}
|
||||
|
||||
type FscryptGetPolicyExArg struct {
|
||||
Size uint64
|
||||
Policy [24]byte
|
||||
}
|
||||
|
||||
type FscryptKeySpecifier struct {
|
||||
Type uint32
|
||||
_ uint32
|
||||
U [32]byte
|
||||
}
|
||||
|
||||
type FscryptAddKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Raw_size uint32
|
||||
_ [9]uint32
|
||||
}
|
||||
|
||||
type FscryptRemoveKeyArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
Removal_status_flags uint32
|
||||
_ [5]uint32
|
||||
}
|
||||
|
||||
type FscryptGetKeyStatusArg struct {
|
||||
Key_spec FscryptKeySpecifier
|
||||
_ [6]uint32
|
||||
Status uint32
|
||||
Status_flags uint32
|
||||
User_count uint32
|
||||
_ [13]uint32
|
||||
}
|
||||
|
||||
type KeyctlDHParams struct {
|
||||
Private int32
|
||||
Prime int32
|
||||
|
@ -260,7 +309,7 @@ type RawSockaddrRFCOMM struct {
|
|||
type RawSockaddrCAN struct {
|
||||
Family uint16
|
||||
Ifindex int32
|
||||
Addr [8]byte
|
||||
Addr [16]byte
|
||||
}
|
||||
|
||||
type RawSockaddrALG struct {
|
||||
|
@ -432,7 +481,7 @@ const (
|
|||
SizeofSockaddrHCI = 0x6
|
||||
SizeofSockaddrL2 = 0xe
|
||||
SizeofSockaddrRFCOMM = 0xa
|
||||
SizeofSockaddrCAN = 0x10
|
||||
SizeofSockaddrCAN = 0x18
|
||||
SizeofSockaddrALG = 0x58
|
||||
SizeofSockaddrVM = 0x10
|
||||
SizeofSockaddrXDP = 0x10
|
||||
|
@ -604,22 +653,6 @@ const (
|
|||
RTN_THROW = 0x9
|
||||
RTN_NAT = 0xa
|
||||
RTN_XRESOLVE = 0xb
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
SizeofNlMsghdr = 0x10
|
||||
SizeofNlMsgerr = 0x14
|
||||
SizeofRtGenmsg = 0x1
|
||||
|
@ -2054,6 +2087,7 @@ type XDPRingOffset struct {
|
|||
Producer uint64
|
||||
Consumer uint64
|
||||
Desc uint64
|
||||
Flags uint64
|
||||
}
|
||||
|
||||
type XDPMmapOffsets struct {
|
||||
|
@ -2068,6 +2102,8 @@ type XDPUmemReg struct {
|
|||
Len uint64
|
||||
Size uint32
|
||||
Headroom uint32
|
||||
Flags uint32
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type XDPStatistics struct {
|
||||
|
@ -2481,6 +2517,42 @@ const (
|
|||
BPF_FD_TYPE_URETPROBE = 0x5
|
||||
)
|
||||
|
||||
const (
|
||||
RTNLGRP_NONE = 0x0
|
||||
RTNLGRP_LINK = 0x1
|
||||
RTNLGRP_NOTIFY = 0x2
|
||||
RTNLGRP_NEIGH = 0x3
|
||||
RTNLGRP_TC = 0x4
|
||||
RTNLGRP_IPV4_IFADDR = 0x5
|
||||
RTNLGRP_IPV4_MROUTE = 0x6
|
||||
RTNLGRP_IPV4_ROUTE = 0x7
|
||||
RTNLGRP_IPV4_RULE = 0x8
|
||||
RTNLGRP_IPV6_IFADDR = 0x9
|
||||
RTNLGRP_IPV6_MROUTE = 0xa
|
||||
RTNLGRP_IPV6_ROUTE = 0xb
|
||||
RTNLGRP_IPV6_IFINFO = 0xc
|
||||
RTNLGRP_DECnet_IFADDR = 0xd
|
||||
RTNLGRP_NOP2 = 0xe
|
||||
RTNLGRP_DECnet_ROUTE = 0xf
|
||||
RTNLGRP_DECnet_RULE = 0x10
|
||||
RTNLGRP_NOP4 = 0x11
|
||||
RTNLGRP_IPV6_PREFIX = 0x12
|
||||
RTNLGRP_IPV6_RULE = 0x13
|
||||
RTNLGRP_ND_USEROPT = 0x14
|
||||
RTNLGRP_PHONET_IFADDR = 0x15
|
||||
RTNLGRP_PHONET_ROUTE = 0x16
|
||||
RTNLGRP_DCB = 0x17
|
||||
RTNLGRP_IPV4_NETCONF = 0x18
|
||||
RTNLGRP_IPV6_NETCONF = 0x19
|
||||
RTNLGRP_MDB = 0x1a
|
||||
RTNLGRP_MPLS_ROUTE = 0x1b
|
||||
RTNLGRP_NSID = 0x1c
|
||||
RTNLGRP_MPLS_NETCONF = 0x1d
|
||||
RTNLGRP_IPV4_MROUTE_R = 0x1e
|
||||
RTNLGRP_IPV6_MROUTE_R = 0x1f
|
||||
RTNLGRP_NEXTHOP = 0x20
|
||||
)
|
||||
|
||||
type CapUserHeader struct {
|
||||
Version uint32
|
||||
Pid int32
|
||||
|
@ -2590,3 +2662,146 @@ const (
|
|||
TIPC_CLUSTER_SCOPE = 0x2
|
||||
TIPC_NODE_SCOPE = 0x3
|
||||
)
|
||||
|
||||
const (
|
||||
SYSLOG_ACTION_CLOSE = 0
|
||||
SYSLOG_ACTION_OPEN = 1
|
||||
SYSLOG_ACTION_READ = 2
|
||||
SYSLOG_ACTION_READ_ALL = 3
|
||||
SYSLOG_ACTION_READ_CLEAR = 4
|
||||
SYSLOG_ACTION_CLEAR = 5
|
||||
SYSLOG_ACTION_CONSOLE_OFF = 6
|
||||
SYSLOG_ACTION_CONSOLE_ON = 7
|
||||
SYSLOG_ACTION_CONSOLE_LEVEL = 8
|
||||
SYSLOG_ACTION_SIZE_UNREAD = 9
|
||||
SYSLOG_ACTION_SIZE_BUFFER = 10
|
||||
)
|
||||
|
||||
const (
|
||||
DEVLINK_CMD_UNSPEC = 0x0
|
||||
DEVLINK_CMD_GET = 0x1
|
||||
DEVLINK_CMD_SET = 0x2
|
||||
DEVLINK_CMD_NEW = 0x3
|
||||
DEVLINK_CMD_DEL = 0x4
|
||||
DEVLINK_CMD_PORT_GET = 0x5
|
||||
DEVLINK_CMD_PORT_SET = 0x6
|
||||
DEVLINK_CMD_PORT_NEW = 0x7
|
||||
DEVLINK_CMD_PORT_DEL = 0x8
|
||||
DEVLINK_CMD_PORT_SPLIT = 0x9
|
||||
DEVLINK_CMD_PORT_UNSPLIT = 0xa
|
||||
DEVLINK_CMD_SB_GET = 0xb
|
||||
DEVLINK_CMD_SB_SET = 0xc
|
||||
DEVLINK_CMD_SB_NEW = 0xd
|
||||
DEVLINK_CMD_SB_DEL = 0xe
|
||||
DEVLINK_CMD_SB_POOL_GET = 0xf
|
||||
DEVLINK_CMD_SB_POOL_SET = 0x10
|
||||
DEVLINK_CMD_SB_POOL_NEW = 0x11
|
||||
DEVLINK_CMD_SB_POOL_DEL = 0x12
|
||||
DEVLINK_CMD_SB_PORT_POOL_GET = 0x13
|
||||
DEVLINK_CMD_SB_PORT_POOL_SET = 0x14
|
||||
DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15
|
||||
DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19
|
||||
DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a
|
||||
DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b
|
||||
DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c
|
||||
DEVLINK_CMD_ESWITCH_GET = 0x1d
|
||||
DEVLINK_CMD_ESWITCH_SET = 0x1e
|
||||
DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f
|
||||
DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20
|
||||
DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21
|
||||
DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22
|
||||
DEVLINK_CMD_MAX = 0x44
|
||||
DEVLINK_PORT_TYPE_NOTSET = 0x0
|
||||
DEVLINK_PORT_TYPE_AUTO = 0x1
|
||||
DEVLINK_PORT_TYPE_ETH = 0x2
|
||||
DEVLINK_PORT_TYPE_IB = 0x3
|
||||
DEVLINK_SB_POOL_TYPE_INGRESS = 0x0
|
||||
DEVLINK_SB_POOL_TYPE_EGRESS = 0x1
|
||||
DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0
|
||||
DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1
|
||||
DEVLINK_ESWITCH_MODE_LEGACY = 0x0
|
||||
DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1
|
||||
DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2
|
||||
DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0
|
||||
DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1
|
||||
DEVLINK_ATTR_UNSPEC = 0x0
|
||||
DEVLINK_ATTR_BUS_NAME = 0x1
|
||||
DEVLINK_ATTR_DEV_NAME = 0x2
|
||||
DEVLINK_ATTR_PORT_INDEX = 0x3
|
||||
DEVLINK_ATTR_PORT_TYPE = 0x4
|
||||
DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5
|
||||
DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6
|
||||
DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7
|
||||
DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8
|
||||
DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9
|
||||
DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa
|
||||
DEVLINK_ATTR_SB_INDEX = 0xb
|
||||
DEVLINK_ATTR_SB_SIZE = 0xc
|
||||
DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd
|
||||
DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe
|
||||
DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf
|
||||
DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10
|
||||
DEVLINK_ATTR_SB_POOL_INDEX = 0x11
|
||||
DEVLINK_ATTR_SB_POOL_TYPE = 0x12
|
||||
DEVLINK_ATTR_SB_POOL_SIZE = 0x13
|
||||
DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14
|
||||
DEVLINK_ATTR_SB_THRESHOLD = 0x15
|
||||
DEVLINK_ATTR_SB_TC_INDEX = 0x16
|
||||
DEVLINK_ATTR_SB_OCC_CUR = 0x17
|
||||
DEVLINK_ATTR_SB_OCC_MAX = 0x18
|
||||
DEVLINK_ATTR_ESWITCH_MODE = 0x19
|
||||
DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a
|
||||
DEVLINK_ATTR_DPIPE_TABLES = 0x1b
|
||||
DEVLINK_ATTR_DPIPE_TABLE = 0x1c
|
||||
DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d
|
||||
DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e
|
||||
DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f
|
||||
DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20
|
||||
DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21
|
||||
DEVLINK_ATTR_DPIPE_ENTRIES = 0x22
|
||||
DEVLINK_ATTR_DPIPE_ENTRY = 0x23
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26
|
||||
DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27
|
||||
DEVLINK_ATTR_DPIPE_MATCH = 0x28
|
||||
DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29
|
||||
DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a
|
||||
DEVLINK_ATTR_DPIPE_ACTION = 0x2b
|
||||
DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c
|
||||
DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d
|
||||
DEVLINK_ATTR_DPIPE_VALUE = 0x2e
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f
|
||||
DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30
|
||||
DEVLINK_ATTR_DPIPE_HEADERS = 0x31
|
||||
DEVLINK_ATTR_DPIPE_HEADER = 0x32
|
||||
DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33
|
||||
DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34
|
||||
DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35
|
||||
DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36
|
||||
DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37
|
||||
DEVLINK_ATTR_DPIPE_FIELD = 0x38
|
||||
DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39
|
||||
DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a
|
||||
DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b
|
||||
DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c
|
||||
DEVLINK_ATTR_PAD = 0x3d
|
||||
DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e
|
||||
DEVLINK_ATTR_MAX = 0x89
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0
|
||||
DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1
|
||||
DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0
|
||||
DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0
|
||||
DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0
|
||||
DEVLINK_DPIPE_HEADER_ETHERNET = 0x0
|
||||
DEVLINK_DPIPE_HEADER_IPV4 = 0x1
|
||||
DEVLINK_DPIPE_HEADER_IPV6 = 0x2
|
||||
)
|
||||
|
|
13
vendor/golang.org/x/sys/windows/asm_windows_386.s
generated
vendored
13
vendor/golang.org/x/sys/windows/asm_windows_386.s
generated
vendored
|
@ -1,13 +0,0 @@
|
|||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//
|
||||
// System calls for 386, Windows are implemented in runtime/syscall_windows.goc
|
||||
//
|
||||
|
||||
TEXT ·getprocaddress(SB), 7, $0-16
|
||||
JMP syscall·getprocaddress(SB)
|
||||
|
||||
TEXT ·loadlibrary(SB), 7, $0-12
|
||||
JMP syscall·loadlibrary(SB)
|
13
vendor/golang.org/x/sys/windows/asm_windows_amd64.s
generated
vendored
13
vendor/golang.org/x/sys/windows/asm_windows_amd64.s
generated
vendored
|
@ -1,13 +0,0 @@
|
|||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//
|
||||
// System calls for amd64, Windows are implemented in runtime/syscall_windows.goc
|
||||
//
|
||||
|
||||
TEXT ·getprocaddress(SB), 7, $0-32
|
||||
JMP syscall·getprocaddress(SB)
|
||||
|
||||
TEXT ·loadlibrary(SB), 7, $0-24
|
||||
JMP syscall·loadlibrary(SB)
|
11
vendor/golang.org/x/sys/windows/asm_windows_arm.s
generated
vendored
11
vendor/golang.org/x/sys/windows/asm_windows_arm.s
generated
vendored
|
@ -1,11 +0,0 @@
|
|||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
#include "textflag.h"
|
||||
|
||||
TEXT ·getprocaddress(SB),NOSPLIT,$0
|
||||
B syscall·getprocaddress(SB)
|
||||
|
||||
TEXT ·loadlibrary(SB),NOSPLIT,$0
|
||||
B syscall·loadlibrary(SB)
|
22
vendor/golang.org/x/sys/windows/dll_windows.go
generated
vendored
22
vendor/golang.org/x/sys/windows/dll_windows.go
generated
vendored
|
@ -11,6 +11,18 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
// We need to use LoadLibrary and GetProcAddress from the Go runtime, because
|
||||
// the these symbols are loaded by the system linker and are required to
|
||||
// dynamically load additional symbols. Note that in the Go runtime, these
|
||||
// return syscall.Handle and syscall.Errno, but these are the same, in fact,
|
||||
// as windows.Handle and windows.Errno, and we intend to keep these the same.
|
||||
|
||||
//go:linkname syscall_loadlibrary syscall.loadlibrary
|
||||
func syscall_loadlibrary(filename *uint16) (handle Handle, err Errno)
|
||||
|
||||
//go:linkname syscall_getprocaddress syscall.getprocaddress
|
||||
func syscall_getprocaddress(handle Handle, procname *uint8) (proc uintptr, err Errno)
|
||||
|
||||
// DLLError describes reasons for DLL load failures.
|
||||
type DLLError struct {
|
||||
Err error
|
||||
|
@ -20,10 +32,6 @@ type DLLError struct {
|
|||
|
||||
func (e *DLLError) Error() string { return e.Msg }
|
||||
|
||||
// Implemented in runtime/syscall_windows.goc; we provide jumps to them in our assembly file.
|
||||
func loadlibrary(filename *uint16) (handle uintptr, err syscall.Errno)
|
||||
func getprocaddress(handle uintptr, procname *uint8) (proc uintptr, err syscall.Errno)
|
||||
|
||||
// A DLL implements access to a single DLL.
|
||||
type DLL struct {
|
||||
Name string
|
||||
|
@ -40,7 +48,7 @@ func LoadDLL(name string) (dll *DLL, err error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
h, e := loadlibrary(namep)
|
||||
h, e := syscall_loadlibrary(namep)
|
||||
if e != 0 {
|
||||
return nil, &DLLError{
|
||||
Err: e,
|
||||
|
@ -50,7 +58,7 @@ func LoadDLL(name string) (dll *DLL, err error) {
|
|||
}
|
||||
d := &DLL{
|
||||
Name: name,
|
||||
Handle: Handle(h),
|
||||
Handle: h,
|
||||
}
|
||||
return d, nil
|
||||
}
|
||||
|
@ -71,7 +79,7 @@ func (d *DLL) FindProc(name string) (proc *Proc, err error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
a, e := getprocaddress(uintptr(d.Handle), namep)
|
||||
a, e := syscall_getprocaddress(d.Handle, namep)
|
||||
if e != 0 {
|
||||
return nil, &DLLError{
|
||||
Err: e,
|
||||
|
|
8
vendor/golang.org/x/sys/windows/empty.s
generated
vendored
Normal file
8
vendor/golang.org/x/sys/windows/empty.s
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !go1.12
|
||||
|
||||
// This file is here to allow bodyless functions with go:linkname for Go 1.11
|
||||
// and earlier (see https://golang.org/issue/23311).
|
2
vendor/golang.org/x/sys/windows/mksyscall.go
generated
vendored
2
vendor/golang.org/x/sys/windows/mksyscall.go
generated
vendored
|
@ -6,4 +6,4 @@
|
|||
|
||||
package windows
|
||||
|
||||
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go
|
||||
//go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go
|
||||
|
|
2
vendor/golang.org/x/sys/windows/registry/mksyscall.go
generated
vendored
2
vendor/golang.org/x/sys/windows/registry/mksyscall.go
generated
vendored
|
@ -6,4 +6,4 @@
|
|||
|
||||
package registry
|
||||
|
||||
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go syscall.go
|
||||
//go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go syscall.go
|
||||
|
|
11
vendor/golang.org/x/sys/windows/registry/value.go
generated
vendored
11
vendor/golang.org/x/sys/windows/registry/value.go
generated
vendored
|
@ -108,7 +108,7 @@ func (k Key) GetStringValue(name string) (val string, valtype uint32, err error)
|
|||
if len(data) == 0 {
|
||||
return "", typ, nil
|
||||
}
|
||||
u := (*[1 << 29]uint16)(unsafe.Pointer(&data[0]))[:]
|
||||
u := (*[1 << 29]uint16)(unsafe.Pointer(&data[0]))[: len(data)/2 : len(data)/2]
|
||||
return syscall.UTF16ToString(u), typ, nil
|
||||
}
|
||||
|
||||
|
@ -185,8 +185,7 @@ func ExpandString(value string) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
if n <= uint32(len(r)) {
|
||||
u := (*[1 << 29]uint16)(unsafe.Pointer(&r[0]))[:]
|
||||
return syscall.UTF16ToString(u), nil
|
||||
return syscall.UTF16ToString(r[:n]), nil
|
||||
}
|
||||
r = make([]uint16, n)
|
||||
}
|
||||
|
@ -208,7 +207,7 @@ func (k Key) GetStringsValue(name string) (val []string, valtype uint32, err err
|
|||
if len(data) == 0 {
|
||||
return nil, typ, nil
|
||||
}
|
||||
p := (*[1 << 29]uint16)(unsafe.Pointer(&data[0]))[:len(data)/2]
|
||||
p := (*[1 << 29]uint16)(unsafe.Pointer(&data[0]))[: len(data)/2 : len(data)/2]
|
||||
if len(p) == 0 {
|
||||
return nil, typ, nil
|
||||
}
|
||||
|
@ -299,7 +298,7 @@ func (k Key) setStringValue(name string, valtype uint32, value string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
buf := (*[1 << 29]byte)(unsafe.Pointer(&v[0]))[:len(v)*2]
|
||||
buf := (*[1 << 29]byte)(unsafe.Pointer(&v[0]))[: len(v)*2 : len(v)*2]
|
||||
return k.setValue(name, valtype, buf)
|
||||
}
|
||||
|
||||
|
@ -329,7 +328,7 @@ func (k Key) SetStringsValue(name string, value []string) error {
|
|||
ss += s + "\x00"
|
||||
}
|
||||
v := utf16.Encode([]rune(ss + "\x00"))
|
||||
buf := (*[1 << 29]byte)(unsafe.Pointer(&v[0]))[:len(v)*2]
|
||||
buf := (*[1 << 29]byte)(unsafe.Pointer(&v[0]))[: len(v)*2 : len(v)*2]
|
||||
return k.setValue(name, MULTI_SZ, buf)
|
||||
}
|
||||
|
||||
|
|
2
vendor/golang.org/x/sys/windows/security_windows.go
generated
vendored
2
vendor/golang.org/x/sys/windows/security_windows.go
generated
vendored
|
@ -235,7 +235,7 @@ func (sid *SID) String() string {
|
|||
return ""
|
||||
}
|
||||
defer LocalFree((Handle)(unsafe.Pointer(s)))
|
||||
return UTF16ToString((*[(1 << 30) - 1]uint16)(unsafe.Pointer(s))[:])
|
||||
return UTF16ToString((*[256]uint16)(unsafe.Pointer(s))[:])
|
||||
}
|
||||
|
||||
// Len returns the length, in bytes, of a valid security identifier SID.
|
||||
|
|
6
vendor/golang.org/x/sys/windows/svc/mgr/mgr.go
generated
vendored
6
vendor/golang.org/x/sys/windows/svc/mgr/mgr.go
generated
vendored
|
@ -137,7 +137,7 @@ func (m *Mgr) CreateService(name, exepath string, c Config, args ...string) (*Se
|
|||
err = updateSidType(h, c.SidType)
|
||||
if err != nil {
|
||||
windows.DeleteService(h)
|
||||
windows.CloseHandle(h)
|
||||
windows.CloseServiceHandle(h)
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ func (m *Mgr) CreateService(name, exepath string, c Config, args ...string) (*Se
|
|||
err = updateDescription(h, c.Description)
|
||||
if err != nil {
|
||||
windows.DeleteService(h)
|
||||
windows.CloseHandle(h)
|
||||
windows.CloseServiceHandle(h)
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ func (m *Mgr) CreateService(name, exepath string, c Config, args ...string) (*Se
|
|||
err = updateStartUp(h, c.DelayedAutoStart)
|
||||
if err != nil {
|
||||
windows.DeleteService(h)
|
||||
windows.CloseHandle(h)
|
||||
windows.CloseServiceHandle(h)
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
|
99
vendor/golang.org/x/sys/windows/syscall_windows.go
generated
vendored
99
vendor/golang.org/x/sys/windows/syscall_windows.go
generated
vendored
|
@ -57,6 +57,10 @@ const (
|
|||
FILE_VOLUME_IS_COMPRESSED = 0x00008000
|
||||
FILE_VOLUME_QUOTAS = 0x00000020
|
||||
|
||||
// Flags for LockFileEx.
|
||||
LOCKFILE_FAIL_IMMEDIATELY = 0x00000001
|
||||
LOCKFILE_EXCLUSIVE_LOCK = 0x00000002
|
||||
|
||||
// Return values of SleepEx and other APC functions
|
||||
STATUS_USER_APC = 0x000000C0
|
||||
WAIT_IO_COMPLETION = STATUS_USER_APC
|
||||
|
@ -136,6 +140,8 @@ func NewCallbackCDecl(fn interface{}) uintptr {
|
|||
//sys LoadLibraryEx(libname string, zero Handle, flags uintptr) (handle Handle, err error) = LoadLibraryExW
|
||||
//sys FreeLibrary(handle Handle) (err error)
|
||||
//sys GetProcAddress(module Handle, procname string) (proc uintptr, err error)
|
||||
//sys GetModuleFileName(module Handle, filename *uint16, size uint32) (n uint32, err error) = kernel32.GetModuleFileNameW
|
||||
//sys GetModuleHandleEx(flags uint32, moduleName *uint16, module *Handle) (err error) = kernel32.GetModuleHandleExW
|
||||
//sys GetVersion() (ver uint32, err error)
|
||||
//sys FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) = FormatMessageW
|
||||
//sys ExitProcess(exitcode uint32)
|
||||
|
@ -160,6 +166,8 @@ func NewCallbackCDecl(fn interface{}) uintptr {
|
|||
//sys DeleteFile(path *uint16) (err error) = DeleteFileW
|
||||
//sys MoveFile(from *uint16, to *uint16) (err error) = MoveFileW
|
||||
//sys MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) = MoveFileExW
|
||||
//sys LockFileEx(file Handle, flags uint32, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *Overlapped) (err error)
|
||||
//sys UnlockFileEx(file Handle, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *Overlapped) (err error)
|
||||
//sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW
|
||||
//sys GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW
|
||||
//sys SetEndOfFile(handle Handle) (err error)
|
||||
|
@ -173,7 +181,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
|
|||
//sys CancelIoEx(s Handle, o *Overlapped) (err error)
|
||||
//sys CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = CreateProcessW
|
||||
//sys OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (handle Handle, err error)
|
||||
//sys ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) = shell32.ShellExecuteW
|
||||
//sys ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) [failretval<=32] = shell32.ShellExecuteW
|
||||
//sys shGetKnownFolderPath(id *KNOWNFOLDERID, flags uint32, token Token, path **uint16) (ret error) = shell32.SHGetKnownFolderPath
|
||||
//sys TerminateProcess(handle Handle, exitcode uint32) (err error)
|
||||
//sys GetExitCodeProcess(handle Handle, exitcode *uint32) (err error)
|
||||
|
@ -282,6 +290,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
|
|||
//sys FindNextVolumeMountPoint(findVolumeMountPoint Handle, volumeMountPoint *uint16, bufferLength uint32) (err error) = FindNextVolumeMountPointW
|
||||
//sys FindVolumeClose(findVolume Handle) (err error)
|
||||
//sys FindVolumeMountPointClose(findVolumeMountPoint Handle) (err error)
|
||||
//sys GetDiskFreeSpaceEx(directoryName *uint16, freeBytesAvailableToCaller *uint64, totalNumberOfBytes *uint64, totalNumberOfFreeBytes *uint64) (err error) = GetDiskFreeSpaceExW
|
||||
//sys GetDriveType(rootPathName *uint16) (driveType uint32) = GetDriveTypeW
|
||||
//sys GetLogicalDrives() (drivesBitMask uint32, err error) [failretval==0]
|
||||
//sys GetLogicalDriveStrings(bufferLength uint32, buffer *uint16) (n uint32, err error) [failretval==0] = GetLogicalDriveStringsW
|
||||
|
@ -304,6 +313,13 @@ func NewCallbackCDecl(fn interface{}) uintptr {
|
|||
//sys CoTaskMemFree(address unsafe.Pointer) = ole32.CoTaskMemFree
|
||||
//sys rtlGetVersion(info *OsVersionInfoEx) (ret error) = ntdll.RtlGetVersion
|
||||
//sys rtlGetNtVersionNumbers(majorVersion *uint32, minorVersion *uint32, buildNumber *uint32) = ntdll.RtlGetNtVersionNumbers
|
||||
//sys getProcessPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) = kernel32.GetProcessPreferredUILanguages
|
||||
//sys getThreadPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) = kernel32.GetThreadPreferredUILanguages
|
||||
//sys getUserPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) = kernel32.GetUserPreferredUILanguages
|
||||
//sys getSystemPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) = kernel32.GetSystemPreferredUILanguages
|
||||
|
||||
// Process Status API (PSAPI)
|
||||
//sys EnumProcesses(processIds []uint32, bytesReturned *uint32) (err error) = psapi.EnumProcesses
|
||||
|
||||
// syscall interface implementation for other packages
|
||||
|
||||
|
@ -401,7 +417,11 @@ func Open(path string, mode int, perm uint32) (fd Handle, err error) {
|
|||
default:
|
||||
createmode = OPEN_EXISTING
|
||||
}
|
||||
h, e := CreateFile(pathp, access, sharemode, sa, createmode, FILE_ATTRIBUTE_NORMAL, 0)
|
||||
var attrs uint32 = FILE_ATTRIBUTE_NORMAL
|
||||
if perm&S_IWRITE == 0 {
|
||||
attrs = FILE_ATTRIBUTE_READONLY
|
||||
}
|
||||
h, e := CreateFile(pathp, access, sharemode, sa, createmode, attrs, 0)
|
||||
return h, e
|
||||
}
|
||||
|
||||
|
@ -681,6 +701,8 @@ const socket_error = uintptr(^uint32(0))
|
|||
//sys WSACleanup() (err error) [failretval==socket_error] = ws2_32.WSACleanup
|
||||
//sys WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) [failretval==socket_error] = ws2_32.WSAIoctl
|
||||
//sys socket(af int32, typ int32, protocol int32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.socket
|
||||
//sys sendto(s Handle, buf []byte, flags int, to unsafe.Pointer, tolen int32) (err error) [failretval==socket_error] = ws2_32.sendto
|
||||
//sys recvfrom(s Handle, buf []byte, flags int, from *RawSockaddrAny, fromlen *int) (n int, err error) [failretval==-1] = ws2_32.recvfrom
|
||||
//sys Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) [failretval==socket_error] = ws2_32.setsockopt
|
||||
//sys Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) [failretval==socket_error] = ws2_32.getsockopt
|
||||
//sys bind(s Handle, name unsafe.Pointer, namelen int32) (err error) [failretval==socket_error] = ws2_32.bind
|
||||
|
@ -848,7 +870,7 @@ func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, error) {
|
|||
for n < len(pp.Path) && pp.Path[n] != 0 {
|
||||
n++
|
||||
}
|
||||
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||
sa.Name = string(bytes)
|
||||
return sa, nil
|
||||
|
||||
|
@ -1109,10 +1131,26 @@ func NsecToTimespec(nsec int64) (ts Timespec) {
|
|||
// TODO(brainman): fix all needed for net
|
||||
|
||||
func Accept(fd Handle) (nfd Handle, sa Sockaddr, err error) { return 0, nil, syscall.EWINDOWS }
|
||||
|
||||
func Recvfrom(fd Handle, p []byte, flags int) (n int, from Sockaddr, err error) {
|
||||
return 0, nil, syscall.EWINDOWS
|
||||
var rsa RawSockaddrAny
|
||||
l := int(unsafe.Sizeof(rsa))
|
||||
n, err = recvfrom(fd, p, flags, &rsa, &l)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
from, err = rsa.Sockaddr()
|
||||
return
|
||||
}
|
||||
func Sendto(fd Handle, p []byte, flags int, to Sockaddr) (err error) { return syscall.EWINDOWS }
|
||||
|
||||
func Sendto(fd Handle, p []byte, flags int, to Sockaddr) (err error) {
|
||||
ptr, l, err := to.sockaddr()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return sendto(fd, p, flags, ptr, l)
|
||||
}
|
||||
|
||||
func SetsockoptTimeval(fd Handle, level, opt int, tv *Timeval) (err error) { return syscall.EWINDOWS }
|
||||
|
||||
// The Linger struct is wrong but we only noticed after Go 1.
|
||||
|
@ -1362,3 +1400,54 @@ func RtlGetNtVersionNumbers() (majorVersion, minorVersion, buildNumber uint32) {
|
|||
buildNumber &= 0xffff
|
||||
return
|
||||
}
|
||||
|
||||
// GetProcessPreferredUILanguages retrieves the process preferred UI languages.
|
||||
func GetProcessPreferredUILanguages(flags uint32) ([]string, error) {
|
||||
return getUILanguages(flags, getProcessPreferredUILanguages)
|
||||
}
|
||||
|
||||
// GetThreadPreferredUILanguages retrieves the thread preferred UI languages for the current thread.
|
||||
func GetThreadPreferredUILanguages(flags uint32) ([]string, error) {
|
||||
return getUILanguages(flags, getThreadPreferredUILanguages)
|
||||
}
|
||||
|
||||
// GetUserPreferredUILanguages retrieves information about the user preferred UI languages.
|
||||
func GetUserPreferredUILanguages(flags uint32) ([]string, error) {
|
||||
return getUILanguages(flags, getUserPreferredUILanguages)
|
||||
}
|
||||
|
||||
// GetSystemPreferredUILanguages retrieves the system preferred UI languages.
|
||||
func GetSystemPreferredUILanguages(flags uint32) ([]string, error) {
|
||||
return getUILanguages(flags, getSystemPreferredUILanguages)
|
||||
}
|
||||
|
||||
func getUILanguages(flags uint32, f func(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) error) ([]string, error) {
|
||||
size := uint32(128)
|
||||
for {
|
||||
var numLanguages uint32
|
||||
buf := make([]uint16, size)
|
||||
err := f(flags, &numLanguages, &buf[0], &size)
|
||||
if err == ERROR_INSUFFICIENT_BUFFER {
|
||||
continue
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
buf = buf[:size]
|
||||
if numLanguages == 0 || len(buf) == 0 { // GetProcessPreferredUILanguages may return numLanguages==0 with "\0\0"
|
||||
return []string{}, nil
|
||||
}
|
||||
if buf[len(buf)-1] == 0 {
|
||||
buf = buf[:len(buf)-1] // remove terminating null
|
||||
}
|
||||
languages := make([]string, 0, numLanguages)
|
||||
from := 0
|
||||
for i, c := range buf {
|
||||
if c == 0 {
|
||||
languages = append(languages, string(utf16.Decode(buf[from:i])))
|
||||
from = i + 1
|
||||
}
|
||||
}
|
||||
return languages, nil
|
||||
}
|
||||
}
|
||||
|
|
40
vendor/golang.org/x/sys/windows/types_windows.go
generated
vendored
40
vendor/golang.org/x/sys/windows/types_windows.go
generated
vendored
|
@ -1735,3 +1735,43 @@ const (
|
|||
|
||||
SHUTDOWN_NORETRY = 0x1
|
||||
)
|
||||
|
||||
// Flags used for GetModuleHandleEx
|
||||
const (
|
||||
GET_MODULE_HANDLE_EX_FLAG_PIN = 1
|
||||
GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = 2
|
||||
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS = 4
|
||||
)
|
||||
|
||||
// MUI function flag values
|
||||
const (
|
||||
MUI_LANGUAGE_ID = 0x4
|
||||
MUI_LANGUAGE_NAME = 0x8
|
||||
MUI_MERGE_SYSTEM_FALLBACK = 0x10
|
||||
MUI_MERGE_USER_FALLBACK = 0x20
|
||||
MUI_UI_FALLBACK = MUI_MERGE_SYSTEM_FALLBACK | MUI_MERGE_USER_FALLBACK
|
||||
MUI_THREAD_LANGUAGES = 0x40
|
||||
MUI_CONSOLE_FILTER = 0x100
|
||||
MUI_COMPLEX_SCRIPT_FILTER = 0x200
|
||||
MUI_RESET_FILTERS = 0x001
|
||||
MUI_USER_PREFERRED_UI_LANGUAGES = 0x10
|
||||
MUI_USE_INSTALLED_LANGUAGES = 0x20
|
||||
MUI_USE_SEARCH_ALL_LANGUAGES = 0x40
|
||||
MUI_LANG_NEUTRAL_PE_FILE = 0x100
|
||||
MUI_NON_LANG_NEUTRAL_FILE = 0x200
|
||||
MUI_MACHINE_LANGUAGE_SETTINGS = 0x400
|
||||
MUI_FILETYPE_NOT_LANGUAGE_NEUTRAL = 0x001
|
||||
MUI_FILETYPE_LANGUAGE_NEUTRAL_MAIN = 0x002
|
||||
MUI_FILETYPE_LANGUAGE_NEUTRAL_MUI = 0x004
|
||||
MUI_QUERY_TYPE = 0x001
|
||||
MUI_QUERY_CHECKSUM = 0x002
|
||||
MUI_QUERY_LANGUAGE_NAME = 0x004
|
||||
MUI_QUERY_RESOURCE_TYPES = 0x008
|
||||
MUI_FILEINFO_VERSION = 0x001
|
||||
|
||||
MUI_FULL_LANGUAGE = 0x01
|
||||
MUI_PARTIAL_LANGUAGE = 0x02
|
||||
MUI_LIP_LANGUAGE = 0x04
|
||||
MUI_LANGUAGE_INSTALLED = 0x20
|
||||
MUI_LANGUAGE_LICENSED = 0x40
|
||||
)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue