Update vendored library golang.org/x/sys

This commit is contained in:
Alexander Neumann 2018-03-30 12:48:49 +02:00
parent 2bdeb645b9
commit d8dd79eb0b
99 changed files with 4058 additions and 2170 deletions

2
Gopkg.lock generated
View file

@ -203,7 +203,7 @@
branch = "master" branch = "master"
name = "golang.org/x/sys" name = "golang.org/x/sys"
packages = ["unix","windows"] packages = ["unix","windows"]
revision = "af50095a40f9041b3b38960738837185c26e9419" revision = "378d26f46672a356c46195c28f61bdb4c0a781dd"
[[projects]] [[projects]]
branch = "master" branch = "master"

View file

@ -4,7 +4,6 @@ Go is an open source project.
It is the work of hundreds of contributors. We appreciate your help! It is the work of hundreds of contributors. We appreciate your help!
## Filing issues ## Filing issues
When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions: When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions:
@ -23,9 +22,5 @@ The gophers there will answer or ask you to file an issue if you've tripped over
Please read the [Contribution Guidelines](https://golang.org/doc/contribute.html) Please read the [Contribution Guidelines](https://golang.org/doc/contribute.html)
before sending patches. before sending patches.
**We do not accept GitHub pull requests**
(we use [Gerrit](https://code.google.com/p/gerrit/) instead for code review).
Unless otherwise noted, the Go source files are distributed under Unless otherwise noted, the Go source files are distributed under
the BSD-style license found in the LICENSE file. the BSD-style license found in the LICENSE file.

25
vendor/golang.org/x/sys/plan9/asm_plan9_arm.s generated vendored Normal file
View file

@ -0,0 +1,25 @@
// 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.
#include "textflag.h"
// System call support for plan9 on arm
// Just jump to package syscall's implementation for all these functions.
// The runtime may know about them.
TEXT ·Syscall(SB),NOSPLIT,$0-32
JMP syscall·Syscall(SB)
TEXT ·Syscall6(SB),NOSPLIT,$0-44
JMP syscall·Syscall6(SB)
TEXT ·RawSyscall(SB),NOSPLIT,$0-28
JMP syscall·RawSyscall(SB)
TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
JMP syscall·RawSyscall6(SB)
TEXT ·seek(SB),NOSPLIT,$0-36
JMP syscall·exit(SB)

View file

@ -11,11 +11,14 @@
// system, set $GOOS and $GOARCH to the desired system. For example, if // system, set $GOOS and $GOARCH to the desired system. For example, if
// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS // you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
// to freebsd and $GOARCH to arm. // to freebsd and $GOARCH to arm.
//
// The primary use of this package is inside other packages that provide a more // The primary use of this package is inside other packages that provide a more
// portable interface to the system, such as "os", "time" and "net". Use // portable interface to the system, such as "os", "time" and "net". Use
// those packages rather than this one if you can. // those packages rather than this one if you can.
//
// For details of the functions and data types in this package consult // For details of the functions and data types in this package consult
// the manuals for the appropriate operating system. // the manuals for the appropriate operating system.
//
// These calls return err == nil to indicate success; otherwise // These calls return err == nil to indicate success; otherwise
// err represents an operating system error describing the failure and // err represents an operating system error describing the failure and
// holds a value of type syscall.ErrorString. // holds a value of type syscall.ErrorString.

View file

@ -12,6 +12,7 @@
package plan9 package plan9
import ( import (
"bytes"
"syscall" "syscall"
"unsafe" "unsafe"
) )
@ -50,12 +51,11 @@ func atoi(b []byte) (n uint) {
} }
func cstring(s []byte) string { func cstring(s []byte) string {
for i := range s { i := bytes.IndexByte(s, 0)
if s[i] == 0 { if i == -1 {
return string(s[0:i]) i = len(s)
} }
} return string(s[:i])
return string(s)
} }
func errstr() string { func errstr() string {

284
vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go generated vendored Normal file
View file

@ -0,0 +1,284 @@
// mksyscall.pl -l32 -plan9 -tags plan9,arm syscall_plan9.go
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// +build plan9,arm
package plan9
import "unsafe"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func fd2path(fd int, buf []byte) (err error) {
var _p0 unsafe.Pointer
if len(buf) > 0 {
_p0 = unsafe.Pointer(&buf[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := Syscall(SYS_FD2PATH, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func pipe(p *[2]int32) (err error) {
r0, _, e1 := Syscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func await(s []byte) (n int, err error) {
var _p0 unsafe.Pointer
if len(s) > 0 {
_p0 = unsafe.Pointer(&s[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := Syscall(SYS_AWAIT, uintptr(_p0), uintptr(len(s)), 0)
n = int(r0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func open(path string, mode int) (fd int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
fd = int(r0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func create(path string, mode int, perm uint32) (fd int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
r0, _, e1 := Syscall(SYS_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
fd = int(r0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func remove(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
r0, _, e1 := Syscall(SYS_REMOVE, uintptr(unsafe.Pointer(_p0)), 0, 0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func stat(path string, edir []byte) (n int, err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 unsafe.Pointer
if len(edir) > 0 {
_p1 = unsafe.Pointer(&edir[0])
} else {
_p1 = unsafe.Pointer(&_zero)
}
r0, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(edir)))
n = int(r0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func bind(name string, old string, flag int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(name)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(old)
if err != nil {
return
}
r0, _, e1 := Syscall(SYS_BIND, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flag))
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func mount(fd int, afd int, old string, flag int, aname string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(old)
if err != nil {
return
}
var _p1 *byte
_p1, err = BytePtrFromString(aname)
if err != nil {
return
}
r0, _, e1 := Syscall6(SYS_MOUNT, uintptr(fd), uintptr(afd), uintptr(unsafe.Pointer(_p0)), uintptr(flag), uintptr(unsafe.Pointer(_p1)), 0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func wstat(path string, edir []byte) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
var _p1 unsafe.Pointer
if len(edir) > 0 {
_p1 = unsafe.Pointer(&edir[0])
} else {
_p1 = unsafe.Pointer(&_zero)
}
r0, _, e1 := Syscall(SYS_WSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(edir)))
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func chdir(path string) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
r0, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Dup(oldfd int, newfd int) (fd int, err error) {
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), uintptr(newfd), 0)
fd = int(r0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Pread(fd int, p []byte, offset int64) (n int, err error) {
var _p0 unsafe.Pointer
if len(p) > 0 {
_p0 = unsafe.Pointer(&p[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
n = int(r0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
var _p0 unsafe.Pointer
if len(p) > 0 {
_p0 = unsafe.Pointer(&p[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0)
n = int(r0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Close(fd int) (err error) {
r0, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstat(fd int, edir []byte) (n int, err error) {
var _p0 unsafe.Pointer
if len(edir) > 0 {
_p0 = unsafe.Pointer(&edir[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(_p0), uintptr(len(edir)))
n = int(r0)
if int32(r0) == -1 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fwstat(fd int, edir []byte) (err error) {
var _p0 unsafe.Pointer
if len(edir) > 0 {
_p0 = unsafe.Pointer(&edir[0])
} else {
_p0 = unsafe.Pointer(&_zero)
}
r0, _, e1 := Syscall(SYS_FWSTAT, uintptr(fd), uintptr(_p0), uintptr(len(edir)))
if int32(r0) == -1 {
err = e1
}
return
}

View file

@ -16,7 +16,7 @@ const cpuSetSize = _CPU_SETSIZE / _NCPUBITS
type CPUSet [cpuSetSize]cpuMask type CPUSet [cpuSetSize]cpuMask
func schedAffinity(trap uintptr, pid int, set *CPUSet) error { func schedAffinity(trap uintptr, pid int, set *CPUSet) error {
_, _, e := RawSyscall(trap, uintptr(pid), uintptr(unsafe.Sizeof(set)), uintptr(unsafe.Pointer(set))) _, _, e := RawSyscall(trap, uintptr(pid), uintptr(unsafe.Sizeof(*set)), uintptr(unsafe.Pointer(set)))
if e != 0 { if e != 0 {
return errnoErr(e) return errnoErr(e)
} }

19
vendor/golang.org/x/sys/unix/example_test.go generated vendored Normal file
View file

@ -0,0 +1,19 @@
// 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.
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package unix_test
import (
"log"
"os"
"golang.org/x/sys/unix"
)
func ExampleExec() {
err := unix.Exec("/bin/ls", []string{"ls", "-al"}, os.Environ())
log.Fatal(err)
}

View file

@ -1,7 +1,4 @@
FROM ubuntu:16.04 FROM ubuntu:17.10
# Use the most recent ubuntu sources
RUN echo 'deb http://en.archive.ubuntu.com/ubuntu/ artful main universe' >> /etc/apt/sources.list
# Dependencies to get the git sources and go binaries # Dependencies to get the git sources and go binaries
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
@ -12,15 +9,15 @@ RUN apt-get update && apt-get install -y \
# Get the git sources. If not cached, this takes O(5 minutes). # Get the git sources. If not cached, this takes O(5 minutes).
WORKDIR /git WORKDIR /git
RUN git config --global advice.detachedHead false RUN git config --global advice.detachedHead false
# Linux Kernel: Released 03 Sep 2017 # Linux Kernel: Released 28 Jan 2018
RUN git clone --branch v4.13 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux RUN git clone --branch v4.15 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
# GNU C library: Released 02 Aug 2017 (we should try to get a secure way to clone this) # GNU C library: Released 01 Feb 2018 (we should try to get a secure way to clone this)
RUN git clone --branch glibc-2.26 --depth 1 git://sourceware.org/git/glibc.git RUN git clone --branch glibc-2.27 --depth 1 git://sourceware.org/git/glibc.git
# Get Go 1.9.2 # Get Go 1.10
ENV GOLANG_VERSION 1.9.2 ENV GOLANG_VERSION 1.10
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA256 de874549d9a8d8d8062be05808509c09a88a248e77ec14eb77453530829ac02b ENV GOLANG_DOWNLOAD_SHA256 b5a64335f1490277b585832d1f6c7f8c6c11206cba5cd3f771dcb87b98ad1a33
RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \ RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
&& echo "$GOLANG_DOWNLOAD_SHA256 golang.tar.gz" | sha256sum -c - \ && echo "$GOLANG_DOWNLOAD_SHA256 golang.tar.gz" | sha256sum -c - \
@ -31,7 +28,7 @@ ENV PATH /usr/local/go/bin:$PATH
# Linux and Glibc build dependencies # Linux and Glibc build dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
gawk make python \ bison gawk make python \
gcc gcc-multilib \ gcc gcc-multilib \
gettext texinfo \ gettext texinfo \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View file

@ -162,7 +162,21 @@ struct sockaddr_hci {
sa_family_t hci_family; sa_family_t hci_family;
unsigned short hci_dev; unsigned short hci_dev;
unsigned short hci_channel; unsigned short hci_channel;
};; };
// copied from /usr/include/bluetooth/bluetooth.h
#define BDADDR_BREDR 0x00
#define BDADDR_LE_PUBLIC 0x01
#define BDADDR_LE_RANDOM 0x02
// copied from /usr/include/bluetooth/l2cap.h
struct sockaddr_l2 {
sa_family_t l2_family;
unsigned short l2_psm;
uint8_t l2_bdaddr[6];
unsigned short l2_cid;
uint8_t l2_bdaddr_type;
};
// copied from /usr/include/linux/un.h // copied from /usr/include/linux/un.h
struct my_sockaddr_un { struct my_sockaddr_un {
@ -310,6 +324,8 @@ type RawSockaddrNetlink C.struct_sockaddr_nl
type RawSockaddrHCI C.struct_sockaddr_hci type RawSockaddrHCI C.struct_sockaddr_hci
type RawSockaddrL2 C.struct_sockaddr_l2
type RawSockaddrCAN C.struct_sockaddr_can type RawSockaddrCAN C.struct_sockaddr_can
type RawSockaddrALG C.struct_sockaddr_alg type RawSockaddrALG C.struct_sockaddr_alg
@ -358,6 +374,7 @@ const (
SizeofSockaddrLinklayer = C.sizeof_struct_sockaddr_ll SizeofSockaddrLinklayer = C.sizeof_struct_sockaddr_ll
SizeofSockaddrNetlink = C.sizeof_struct_sockaddr_nl SizeofSockaddrNetlink = C.sizeof_struct_sockaddr_nl
SizeofSockaddrHCI = C.sizeof_struct_sockaddr_hci SizeofSockaddrHCI = C.sizeof_struct_sockaddr_hci
SizeofSockaddrL2 = C.sizeof_struct_sockaddr_l2
SizeofSockaddrCAN = C.sizeof_struct_sockaddr_can SizeofSockaddrCAN = C.sizeof_struct_sockaddr_can
SizeofSockaddrALG = C.sizeof_struct_sockaddr_alg SizeofSockaddrALG = C.sizeof_struct_sockaddr_alg
SizeofSockaddrVM = C.sizeof_struct_sockaddr_vm SizeofSockaddrVM = C.sizeof_struct_sockaddr_vm
@ -409,6 +426,32 @@ const (
IFLA_LINKINFO = C.IFLA_LINKINFO IFLA_LINKINFO = C.IFLA_LINKINFO
IFLA_NET_NS_PID = C.IFLA_NET_NS_PID IFLA_NET_NS_PID = C.IFLA_NET_NS_PID
IFLA_IFALIAS = C.IFLA_IFALIAS IFLA_IFALIAS = C.IFLA_IFALIAS
IFLA_NUM_VF = C.IFLA_NUM_VF
IFLA_VFINFO_LIST = C.IFLA_VFINFO_LIST
IFLA_STATS64 = C.IFLA_STATS64
IFLA_VF_PORTS = C.IFLA_VF_PORTS
IFLA_PORT_SELF = C.IFLA_PORT_SELF
IFLA_AF_SPEC = C.IFLA_AF_SPEC
IFLA_GROUP = C.IFLA_GROUP
IFLA_NET_NS_FD = C.IFLA_NET_NS_FD
IFLA_EXT_MASK = C.IFLA_EXT_MASK
IFLA_PROMISCUITY = C.IFLA_PROMISCUITY
IFLA_NUM_TX_QUEUES = C.IFLA_NUM_TX_QUEUES
IFLA_NUM_RX_QUEUES = C.IFLA_NUM_RX_QUEUES
IFLA_CARRIER = C.IFLA_CARRIER
IFLA_PHYS_PORT_ID = C.IFLA_PHYS_PORT_ID
IFLA_CARRIER_CHANGES = C.IFLA_CARRIER_CHANGES
IFLA_PHYS_SWITCH_ID = C.IFLA_PHYS_SWITCH_ID
IFLA_LINK_NETNSID = C.IFLA_LINK_NETNSID
IFLA_PHYS_PORT_NAME = C.IFLA_PHYS_PORT_NAME
IFLA_PROTO_DOWN = C.IFLA_PROTO_DOWN
IFLA_GSO_MAX_SEGS = C.IFLA_GSO_MAX_SEGS
IFLA_GSO_MAX_SIZE = C.IFLA_GSO_MAX_SIZE
IFLA_PAD = C.IFLA_PAD
IFLA_XDP = C.IFLA_XDP
IFLA_EVENT = C.IFLA_EVENT
IFLA_NEW_NETNSID = C.IFLA_NEW_NETNSID
IFLA_IF_NETNSID = C.IFLA_IF_NETNSID
IFLA_MAX = C.IFLA_MAX IFLA_MAX = C.IFLA_MAX
RT_SCOPE_UNIVERSE = C.RT_SCOPE_UNIVERSE RT_SCOPE_UNIVERSE = C.RT_SCOPE_UNIVERSE
RT_SCOPE_SITE = C.RT_SCOPE_SITE RT_SCOPE_SITE = C.RT_SCOPE_SITE
@ -643,3 +686,11 @@ const (
_CPU_SETSIZE = C.__CPU_SETSIZE _CPU_SETSIZE = C.__CPU_SETSIZE
_NCPUBITS = C.__NCPUBITS _NCPUBITS = C.__NCPUBITS
) )
// Bluetooth
const (
BDADDR_BREDR = C.BDADDR_BREDR
BDADDR_LE_PUBLIC = C.BDADDR_LE_PUBLIC
BDADDR_LE_RANDOM = C.BDADDR_LE_RANDOM
)

View file

@ -364,6 +364,7 @@ ccflags="$@"
$2 ~ /^IGN/ || $2 ~ /^IGN/ ||
$2 ~ /^IX(ON|ANY|OFF)$/ || $2 ~ /^IX(ON|ANY|OFF)$/ ||
$2 ~ /^IN(LCR|PCK)$/ || $2 ~ /^IN(LCR|PCK)$/ ||
$2 !~ "X86_CR3_PCID_NOFLUSH" &&
$2 ~ /(^FLU?SH)|(FLU?SH$)/ || $2 ~ /(^FLU?SH)|(FLU?SH$)/ ||
$2 ~ /^C(LOCAL|READ|MSPAR|RTSCTS)$/ || $2 ~ /^C(LOCAL|READ|MSPAR|RTSCTS)$/ ||
$2 == "BRKINT" || $2 == "BRKINT" ||

View file

@ -65,12 +65,12 @@ func main() {
spareFieldsRegex := regexp.MustCompile(`X__spare\S*`) spareFieldsRegex := regexp.MustCompile(`X__spare\S*`)
b = spareFieldsRegex.ReplaceAll(b, []byte("_")) b = spareFieldsRegex.ReplaceAll(b, []byte("_"))
// Remove cgo padding fields
removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_"))
// We refuse to export private fields on s390x // We refuse to export private fields on s390x
if goarch == "s390x" && goos == "linux" { if goarch == "s390x" && goos == "linux" {
// Remove cgo padding fields
removeFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
// Remove padding, hidden, or unused fields // Remove padding, hidden, or unused fields
removeFieldsRegex = regexp.MustCompile(`\bX_\S+`) removeFieldsRegex = regexp.MustCompile(`\bX_\S+`)
b = removeFieldsRegex.ReplaceAll(b, []byte("_")) b = removeFieldsRegex.ReplaceAll(b, []byte("_"))

View file

@ -210,13 +210,13 @@ while(<>) {
# Determine which form to use; pad args with zeros. # Determine which form to use; pad args with zeros.
my $asm = "Syscall"; my $asm = "Syscall";
if ($nonblock) { if ($nonblock) {
if ($errvar ne "") { if ($errvar eq "" && $ENV{'GOOS'} eq "linux") {
$asm = "RawSyscall";
} else {
$asm = "RawSyscallNoError"; $asm = "RawSyscallNoError";
} else {
$asm = "RawSyscall";
} }
} else { } else {
if ($errvar eq "") { if ($errvar eq "" && $ENV{'GOOS'} eq "linux") {
$asm = "SyscallNoError"; $asm = "SyscallNoError";
} }
} }
@ -292,10 +292,11 @@ while(<>) {
if ($ret[0] eq "_" && $ret[1] eq "_" && $ret[2] eq "_") { if ($ret[0] eq "_" && $ret[1] eq "_" && $ret[2] eq "_") {
$text .= "\t$call\n"; $text .= "\t$call\n";
} else { } else {
if ($errvar ne "") { if ($errvar eq "" && $ENV{'GOOS'} eq "linux") {
$text .= "\t$ret[0], $ret[1], $ret[2] := $call\n"; # raw syscall without error on Linux, see golang.org/issue/22924
} else {
$text .= "\t$ret[0], $ret[1] := $call\n"; $text .= "\t$ret[0], $ret[1] := $call\n";
} else {
$text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
} }
} }
$text .= $body; $text .= $body;

View file

@ -11,25 +11,28 @@
// system, set $GOOS and $GOARCH to the desired system. For example, if // system, set $GOOS and $GOARCH to the desired system. For example, if
// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS // you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
// to freebsd and $GOARCH to arm. // to freebsd and $GOARCH to arm.
//
// The primary use of this package is inside other packages that provide a more // The primary use of this package is inside other packages that provide a more
// portable interface to the system, such as "os", "time" and "net". Use // portable interface to the system, such as "os", "time" and "net". Use
// those packages rather than this one if you can. // those packages rather than this one if you can.
//
// For details of the functions and data types in this package consult // For details of the functions and data types in this package consult
// the manuals for the appropriate operating system. // the manuals for the appropriate operating system.
//
// These calls return err == nil to indicate success; otherwise // These calls return err == nil to indicate success; otherwise
// err represents an operating system error describing the failure and // err represents an operating system error describing the failure and
// holds a value of type syscall.Errno. // holds a value of type syscall.Errno.
package unix // import "golang.org/x/sys/unix" package unix // import "golang.org/x/sys/unix"
import "strings"
// ByteSliceFromString returns a NUL-terminated slice of bytes // ByteSliceFromString returns a NUL-terminated slice of bytes
// containing the text of s. If s contains a NUL byte at any // containing the text of s. If s contains a NUL byte at any
// location, it returns (nil, EINVAL). // location, it returns (nil, EINVAL).
func ByteSliceFromString(s string) ([]byte, error) { func ByteSliceFromString(s string) ([]byte, error) {
for i := 0; i < len(s); i++ { if strings.IndexByte(s, 0) != -1 {
if s[i] == 0 {
return nil, EINVAL return nil, EINVAL
} }
}
a := make([]byte, len(s)+1) a := make([]byte, len(s)+1)
copy(a, s) copy(a, s)
return a, nil return a, nil

View file

@ -36,6 +36,7 @@ func Getwd() (string, error) {
return "", ENOTSUP return "", ENOTSUP
} }
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
type SockaddrDatalink struct { type SockaddrDatalink struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -329,6 +330,7 @@ func Uname(uname *Utsname) error {
//sys Flock(fd int, how int) (err error) //sys Flock(fd int, how int) (err error)
//sys Fpathconf(fd int, name int) (val int, err error) //sys Fpathconf(fd int, name int) (val int, err error)
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 //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 Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
//sys Fsync(fd int) (err error) //sys Fsync(fd int) (err error)
//sys Ftruncate(fd int, length int64) (err error) //sys Ftruncate(fd int, length int64) (err error)

View file

@ -14,6 +14,7 @@ package unix
import "unsafe" import "unsafe"
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
type SockaddrDatalink struct { type SockaddrDatalink struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -250,10 +251,12 @@ func Uname(uname *Utsname) error {
//sys Fchdir(fd int) (err error) //sys Fchdir(fd int) (err error)
//sys Fchflags(fd int, flags int) (err error) //sys Fchflags(fd int, flags int) (err error)
//sys Fchmod(fd int, mode uint32) (err error) //sys Fchmod(fd int, mode uint32) (err error)
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Flock(fd int, how int) (err error) //sys Flock(fd int, how int) (err error)
//sys Fpathconf(fd int, name int) (val int, err error) //sys Fpathconf(fd int, name int) (val int, err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
//sys Fstatfs(fd int, stat *Statfs_t) (err error) //sys Fstatfs(fd int, stat *Statfs_t) (err error)
//sys Fsync(fd int) (err error) //sys Fsync(fd int) (err error)
//sys Ftruncate(fd int, length int64) (err error) //sys Ftruncate(fd int, length int64) (err error)

View file

@ -12,8 +12,12 @@
package unix package unix
import "unsafe" import (
"strings"
"unsafe"
)
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
type SockaddrDatalink struct { type SockaddrDatalink struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -133,14 +137,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
// Derive extattr namespace and attribute name // Derive extattr namespace and attribute name
func xattrnamespace(fullattr string) (ns int, attr string, err error) { func xattrnamespace(fullattr string) (ns int, attr string, err error) {
s := -1 s := strings.IndexByte(fullattr, '.')
for idx, val := range fullattr {
if val == '.' {
s = idx
break
}
}
if s == -1 { if s == -1 {
return -1, "", ENOATTR return -1, "", ENOATTR
} }
@ -481,6 +478,7 @@ func Uname(uname *Utsname) error {
//sys Flock(fd int, how int) (err error) //sys Flock(fd int, how int) (err error)
//sys Fpathconf(fd int, name int) (val int, err error) //sys Fpathconf(fd int, name int) (val int, err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
//sys Fstatfs(fd int, stat *Statfs_t) (err error) //sys Fstatfs(fd int, stat *Statfs_t) (err error)
//sys Fsync(fd int) (err error) //sys Fsync(fd int) (err error)
//sys Ftruncate(fd int, length int64) (err error) //sys Ftruncate(fd int, length int64) (err error)

View file

@ -16,13 +16,6 @@ import (
"unsafe" "unsafe"
) )
// SyscallNoError may be used instead of Syscall for syscalls that don't fail.
func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
// RawSyscallNoError may be used instead of RawSyscall for syscalls that don't
// fail.
func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
/* /*
* Wrapped * Wrapped
*/ */
@ -420,6 +413,7 @@ func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) {
return unsafe.Pointer(&sa.raw), sl, nil return unsafe.Pointer(&sa.raw), sl, nil
} }
// SockaddrLinklayer implements the Sockaddr interface for AF_PACKET type sockets.
type SockaddrLinklayer struct { type SockaddrLinklayer struct {
Protocol uint16 Protocol uint16
Ifindex int Ifindex int
@ -446,6 +440,7 @@ func (sa *SockaddrLinklayer) sockaddr() (unsafe.Pointer, _Socklen, error) {
return unsafe.Pointer(&sa.raw), SizeofSockaddrLinklayer, nil return unsafe.Pointer(&sa.raw), SizeofSockaddrLinklayer, nil
} }
// SockaddrNetlink implements the Sockaddr interface for AF_NETLINK type sockets.
type SockaddrNetlink struct { type SockaddrNetlink struct {
Family uint16 Family uint16
Pad uint16 Pad uint16
@ -462,6 +457,8 @@ func (sa *SockaddrNetlink) sockaddr() (unsafe.Pointer, _Socklen, error) {
return unsafe.Pointer(&sa.raw), SizeofSockaddrNetlink, nil return unsafe.Pointer(&sa.raw), SizeofSockaddrNetlink, nil
} }
// SockaddrHCI implements the Sockaddr interface for AF_BLUETOOTH type sockets
// using the HCI protocol.
type SockaddrHCI struct { type SockaddrHCI struct {
Dev uint16 Dev uint16
Channel uint16 Channel uint16
@ -475,6 +472,31 @@ func (sa *SockaddrHCI) sockaddr() (unsafe.Pointer, _Socklen, error) {
return unsafe.Pointer(&sa.raw), SizeofSockaddrHCI, nil return unsafe.Pointer(&sa.raw), SizeofSockaddrHCI, nil
} }
// SockaddrL2 implements the Sockaddr interface for AF_BLUETOOTH type sockets
// using the L2CAP protocol.
type SockaddrL2 struct {
PSM uint16
CID uint16
Addr [6]uint8
AddrType uint8
raw RawSockaddrL2
}
func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) {
sa.raw.Family = AF_BLUETOOTH
psm := (*[2]byte)(unsafe.Pointer(&sa.raw.Psm))
psm[0] = byte(sa.PSM)
psm[1] = byte(sa.PSM >> 8)
for i := 0; i < len(sa.Addr); i++ {
sa.raw.Bdaddr[i] = sa.Addr[len(sa.Addr)-1-i]
}
cid := (*[2]byte)(unsafe.Pointer(&sa.raw.Cid))
cid[0] = byte(sa.CID)
cid[1] = byte(sa.CID >> 8)
sa.raw.Bdaddr_type = sa.AddrType
return unsafe.Pointer(&sa.raw), SizeofSockaddrL2, nil
}
// SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets. // SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets.
// The RxID and TxID fields are used for transport protocol addressing in // The RxID and TxID fields are used for transport protocol addressing in
// (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with // (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with

View file

@ -7,6 +7,7 @@
package unix package unix
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) //sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
@ -23,8 +24,11 @@ package unix
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK //sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
ts := Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} var ts *Timespec
return Pselect(nfd, r, w, e, &ts, nil) if timeout != nil {
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
}
return Pselect(nfd, r, w, e, ts, nil)
} }
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

14
vendor/golang.org/x/sys/unix/syscall_linux_gc.go generated vendored Normal file
View file

@ -0,0 +1,14 @@
// 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.
// +build linux,!gccgo
package unix
// SyscallNoError may be used instead of Syscall for syscalls that don't fail.
func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
// RawSyscallNoError may be used instead of RawSyscall for syscalls that don't
// fail.
func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)

21
vendor/golang.org/x/sys/unix/syscall_linux_gccgo.go generated vendored Normal file
View file

@ -0,0 +1,21 @@
// 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.
// +build linux
// +build gccgo
// +build 386 arm
package unix
import (
"syscall"
"unsafe"
)
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) {
offsetLow := uint32(offset & 0xffffffff)
offsetHigh := uint32((offset >> 32) & 0xffffffff)
_, _, err = Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
return newoffset, err
}

View file

@ -9,6 +9,7 @@ package unix
//sys Dup2(oldfd int, newfd int) (err error) //sys Dup2(oldfd int, newfd int) (err error)
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT //sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT
//sys Fstatfs(fd int, buf *Statfs_t) (err error) //sys Fstatfs(fd int, buf *Statfs_t) (err error)
@ -26,8 +27,11 @@ package unix
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK //sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
ts := Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} var ts *Timespec
return Pselect(nfd, r, w, e, &ts, nil) if timeout != nil {
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
}
return Pselect(nfd, r, w, e, ts, nil)
} }
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) //sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

View file

@ -15,6 +15,7 @@ import (
func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
//sys Dup2(oldfd int, newfd int) (err error) //sys Dup2(oldfd int, newfd int) (err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 //sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64
//sysnb Getegid() (egid int) //sysnb Getegid() (egid int)

View file

@ -9,6 +9,7 @@ package unix
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Dup2(oldfd int, newfd int) (err error) //sys Dup2(oldfd int, newfd int) (err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT //sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT

View file

@ -7,6 +7,7 @@
package unix package unix
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
//sys Dup2(oldfd int, newfd int) (err error) //sys Dup2(oldfd int, newfd int) (err error)
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)

View file

@ -7,44 +7,15 @@
package unix_test package unix_test
import ( import (
"io/ioutil"
"os" "os"
"runtime" "runtime"
"runtime/debug"
"testing" "testing"
"time" "time"
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
) )
func TestFchmodat(t *testing.T) {
defer chtmpdir(t)()
touch(t, "file1")
err := os.Symlink("file1", "symlink1")
if err != nil {
t.Fatal(err)
}
err = unix.Fchmodat(unix.AT_FDCWD, "symlink1", 0444, 0)
if err != nil {
t.Fatalf("Fchmodat: unexpected error: %v", err)
}
fi, err := os.Stat("file1")
if err != nil {
t.Fatal(err)
}
if fi.Mode() != 0444 {
t.Errorf("Fchmodat: failed to change mode: expected %v, got %v", 0444, fi.Mode())
}
err = unix.Fchmodat(unix.AT_FDCWD, "symlink1", 0444, unix.AT_SYMLINK_NOFOLLOW)
if err != unix.EOPNOTSUPP {
t.Fatalf("Fchmodat: unexpected error: %v, expected EOPNOTSUPP", err)
}
}
func TestIoctlGetInt(t *testing.T) { func TestIoctlGetInt(t *testing.T) {
f, err := os.Open("/dev/random") f, err := os.Open("/dev/random")
if err != nil { if err != nil {
@ -173,12 +144,46 @@ func TestUtimesNanoAt(t *testing.T) {
} }
} }
func TestGetrlimit(t *testing.T) { func TestRlimitAs(t *testing.T) {
// disable GC during to avoid flaky test
defer debug.SetGCPercent(debug.SetGCPercent(-1))
var rlim unix.Rlimit var rlim unix.Rlimit
err := unix.Getrlimit(unix.RLIMIT_AS, &rlim) err := unix.Getrlimit(unix.RLIMIT_AS, &rlim)
if err != nil { if err != nil {
t.Fatalf("Getrlimit: %v", err) t.Fatalf("Getrlimit: %v", err)
} }
var zero unix.Rlimit
if zero == rlim {
t.Fatalf("Getrlimit: got zero value %#v", rlim)
}
set := rlim
set.Cur = uint64(unix.Getpagesize())
err = unix.Setrlimit(unix.RLIMIT_AS, &set)
if err != nil {
t.Fatalf("Setrlimit: set failed: %#v %v", set, err)
}
// RLIMIT_AS was set to the page size, so mmap()'ing twice the page size
// should fail. See 'man 2 getrlimit'.
_, err = unix.Mmap(-1, 0, 2*unix.Getpagesize(), unix.PROT_NONE, unix.MAP_ANON|unix.MAP_PRIVATE)
if err == nil {
t.Fatal("Mmap: unexpectedly suceeded after setting RLIMIT_AS")
}
err = unix.Setrlimit(unix.RLIMIT_AS, &rlim)
if err != nil {
t.Fatalf("Setrlimit: restore failed: %#v %v", rlim, err)
}
b, err := unix.Mmap(-1, 0, 2*unix.Getpagesize(), unix.PROT_NONE, unix.MAP_ANON|unix.MAP_PRIVATE)
if err != nil {
t.Fatalf("Mmap: %v", err)
}
err = unix.Munmap(b)
if err != nil {
t.Fatalf("Munmap: %v", err)
}
} }
func TestSelect(t *testing.T) { func TestSelect(t *testing.T) {
@ -221,47 +226,6 @@ func TestPselect(t *testing.T) {
} }
} }
func TestFstatat(t *testing.T) {
defer chtmpdir(t)()
touch(t, "file1")
var st1 unix.Stat_t
err := unix.Stat("file1", &st1)
if err != nil {
t.Fatalf("Stat: %v", err)
}
var st2 unix.Stat_t
err = unix.Fstatat(unix.AT_FDCWD, "file1", &st2, 0)
if err != nil {
t.Fatalf("Fstatat: %v", err)
}
if st1 != st2 {
t.Errorf("Fstatat: returned stat does not match Stat")
}
err = os.Symlink("file1", "symlink1")
if err != nil {
t.Fatal(err)
}
err = unix.Lstat("symlink1", &st1)
if err != nil {
t.Fatalf("Lstat: %v", err)
}
err = unix.Fstatat(unix.AT_FDCWD, "symlink1", &st2, unix.AT_SYMLINK_NOFOLLOW)
if err != nil {
t.Fatalf("Fstatat: %v", err)
}
if st1 != st2 {
t.Errorf("Fstatat: returned stat does not match Lstat")
}
}
func TestSchedSetaffinity(t *testing.T) { func TestSchedSetaffinity(t *testing.T) {
runtime.LockOSThread() runtime.LockOSThread()
defer runtime.UnlockOSThread() defer runtime.UnlockOSThread()
@ -292,6 +256,10 @@ func TestSchedSetaffinity(t *testing.T) {
t.Errorf("CpuClr: didn't clear CPU %d in set: %v", cpu, newMask) t.Errorf("CpuClr: didn't clear CPU %d in set: %v", cpu, newMask)
} }
if runtime.NumCPU() < 2 {
t.Skip("skipping setaffinity tests on single CPU system")
}
err = unix.SchedSetaffinity(0, &newMask) err = unix.SchedSetaffinity(0, &newMask)
if err != nil { if err != nil {
t.Fatalf("SchedSetaffinity: %v", err) t.Fatalf("SchedSetaffinity: %v", err)
@ -403,37 +371,3 @@ func TestStatx(t *testing.T) {
t.Errorf("Statx: returned stat mtime does not match Lstat") t.Errorf("Statx: returned stat mtime does not match Lstat")
} }
} }
// utilities taken from os/os_test.go
func touch(t *testing.T, name string) {
f, err := os.Create(name)
if err != nil {
t.Fatal(err)
}
if err := f.Close(); err != nil {
t.Fatal(err)
}
}
// chtmpdir changes the working directory to a new temporary directory and
// provides a cleanup function. Used when PWD is read-only.
func chtmpdir(t *testing.T) func() {
oldwd, err := os.Getwd()
if err != nil {
t.Fatalf("chtmpdir: %v", err)
}
d, err := ioutil.TempDir("", "test")
if err != nil {
t.Fatalf("chtmpdir: %v", err)
}
if err := os.Chdir(d); err != nil {
t.Fatalf("chtmpdir: %v", err)
}
return func() {
if err := os.Chdir(oldwd); err != nil {
t.Fatalf("chtmpdir: %v", err)
}
os.RemoveAll(d)
}
}

View file

@ -17,6 +17,7 @@ import (
"unsafe" "unsafe"
) )
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
type SockaddrDatalink struct { type SockaddrDatalink struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -232,13 +233,16 @@ func Uname(uname *Utsname) error {
//sys Dup(fd int) (nfd int, err error) //sys Dup(fd int) (nfd int, err error)
//sys Dup2(from int, to int) (err error) //sys Dup2(from int, to int) (err error)
//sys Exit(code int) //sys Exit(code int)
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
//sys Fchdir(fd int) (err error) //sys Fchdir(fd int) (err error)
//sys Fchflags(fd int, flags int) (err error) //sys Fchflags(fd int, flags int) (err error)
//sys Fchmod(fd int, mode uint32) (err error) //sys Fchmod(fd int, mode uint32) (err error)
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Flock(fd int, how int) (err error) //sys Flock(fd int, how int) (err error)
//sys Fpathconf(fd int, name int) (val int, err error) //sys Fpathconf(fd int, name int) (val int, err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
//sys Fsync(fd int) (err error) //sys Fsync(fd int) (err error)
//sys Ftruncate(fd int, length int64) (err error) //sys Ftruncate(fd int, length int64) (err error)
//sysnb Getegid() (egid int) //sysnb Getegid() (egid int)
@ -319,7 +323,6 @@ func Uname(uname *Utsname) error {
// __msync13 // __msync13
// __ntp_gettime30 // __ntp_gettime30
// __posix_chown // __posix_chown
// __posix_fadvise50
// __posix_fchown // __posix_fchown
// __posix_lchown // __posix_lchown
// __posix_rename // __posix_rename

View file

@ -18,6 +18,7 @@ import (
"unsafe" "unsafe"
) )
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
type SockaddrDatalink struct { type SockaddrDatalink struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -203,10 +204,12 @@ func Uname(uname *Utsname) error {
//sys Fchdir(fd int) (err error) //sys Fchdir(fd int) (err error)
//sys Fchflags(fd int, flags int) (err error) //sys Fchflags(fd int, flags int) (err error)
//sys Fchmod(fd int, mode uint32) (err error) //sys Fchmod(fd int, mode uint32) (err error)
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
//sys Fchown(fd int, uid int, gid int) (err error) //sys Fchown(fd int, uid int, gid int) (err error)
//sys Flock(fd int, how int) (err error) //sys Flock(fd int, how int) (err error)
//sys Fpathconf(fd int, name int) (val int, err error) //sys Fpathconf(fd int, name int) (val int, err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
//sys Fstatfs(fd int, stat *Statfs_t) (err error) //sys Fstatfs(fd int, stat *Statfs_t) (err error)
//sys Fsync(fd int) (err error) //sys Fsync(fd int) (err error)
//sys Ftruncate(fd int, length int64) (err error) //sys Ftruncate(fd int, length int64) (err error)

View file

@ -23,6 +23,7 @@ type syscallFunc uintptr
func rawSysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) func rawSysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
func sysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) func sysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
type SockaddrDatalink struct { type SockaddrDatalink struct {
Family uint16 Family uint16
Index uint16 Index uint16
@ -597,6 +598,7 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
//sys Flock(fd int, how int) (err error) //sys Flock(fd int, how int) (err error)
//sys Fpathconf(fd int, name int) (val int, err error) //sys Fpathconf(fd int, name int) (val int, err error)
//sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstat(fd int, stat *Stat_t) (err error)
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) //sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error)
//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) //sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error)
//sysnb Getgid() (gid int) //sysnb Getgid() (gid int)
@ -674,6 +676,7 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_connect //sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_connect
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
//sys munmap(addr uintptr, length uintptr) (err error) //sys munmap(addr uintptr, length uintptr) (err error)
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = libsendfile.sendfile
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_sendto //sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_sendto
//sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.__xnet_socket //sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.__xnet_socket
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair //sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair

View file

@ -21,8 +21,3 @@ func (iov *Iovec) SetLen(length int) {
func (cmsg *Cmsghdr) SetLen(length int) { func (cmsg *Cmsghdr) SetLen(length int) {
cmsg.Len = uint32(length) cmsg.Len = uint32(length)
} }
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
// TODO(aram): implement this, see issue 5847.
panic("unimplemented")
}

View file

@ -7,6 +7,7 @@
package unix package unix
import ( import (
"bytes"
"runtime" "runtime"
"sync" "sync"
"syscall" "syscall"
@ -50,15 +51,13 @@ func errnoErr(e syscall.Errno) error {
return e return e
} }
// clen returns the index of the first NULL byte in n or len(n) if n contains no // clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
// NULL byte or len(n) if n contains no NULL byte
func clen(n []byte) int { func clen(n []byte) int {
for i := 0; i < len(n); i++ { i := bytes.IndexByte(n, 0)
if n[i] == 0 { if i == -1 {
i = len(n)
}
return i return i
}
}
return len(n)
} }
// Mmap manager, for use by operating system-specific implementations. // Mmap manager, for use by operating system-specific implementations.
@ -149,16 +148,19 @@ func Write(fd int, p []byte) (n int, err error) {
// creation of IPv6 sockets to return EAFNOSUPPORT. // creation of IPv6 sockets to return EAFNOSUPPORT.
var SocketDisableIPv6 bool var SocketDisableIPv6 bool
// Sockaddr represents a socket address.
type Sockaddr interface { type Sockaddr interface {
sockaddr() (ptr unsafe.Pointer, len _Socklen, err error) // lowercase; only we can define Sockaddrs sockaddr() (ptr unsafe.Pointer, len _Socklen, err error) // lowercase; only we can define Sockaddrs
} }
// SockaddrInet4 implements the Sockaddr interface for AF_INET type sockets.
type SockaddrInet4 struct { type SockaddrInet4 struct {
Port int Port int
Addr [4]byte Addr [4]byte
raw RawSockaddrInet4 raw RawSockaddrInet4
} }
// SockaddrInet6 implements the Sockaddr interface for AF_INET6 type sockets.
type SockaddrInet6 struct { type SockaddrInet6 struct {
Port int Port int
ZoneId uint32 ZoneId uint32
@ -166,6 +168,7 @@ type SockaddrInet6 struct {
raw RawSockaddrInet6 raw RawSockaddrInet6
} }
// SockaddrUnix implements the Sockaddr interface for AF_UNIX type sockets.
type SockaddrUnix struct { type SockaddrUnix struct {
Name string Name string
raw RawSockaddrUnix raw RawSockaddrUnix
@ -203,6 +206,20 @@ func GetsockoptInt(fd, level, opt int) (value int, err error) {
return int(n), err return int(n), err
} }
func GetsockoptLinger(fd, level, opt int) (*Linger, error) {
var linger Linger
vallen := _Socklen(SizeofLinger)
err := getsockopt(fd, level, opt, unsafe.Pointer(&linger), &vallen)
return &linger, err
}
func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) {
var tv Timeval
vallen := _Socklen(unsafe.Sizeof(tv))
err := getsockopt(fd, level, opt, unsafe.Pointer(&tv), &vallen)
return &tv, err
}
func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) { func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
var rsa RawSockaddrAny var rsa RawSockaddrAny
var len _Socklen = SizeofSockaddrAny var len _Socklen = SizeofSockaddrAny
@ -302,3 +319,12 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
_, err = fcntl(fd, F_SETFL, flag) _, err = fcntl(fd, F_SETFL, flag)
return err return err
} }
// Exec calls execve(2), which replaces the calling executable in the process
// tree. argv0 should be the full path to an executable ("/bin/ls") and the
// executable name should also be the first argument in argv (["ls", "-l"]).
// envv are the environment variables that should be passed to the new
// process (["USER=go", "PWD=/tmp"]).
func Exec(argv0 string, argv []string, envv []string) error {
return syscall.Exec(argv0, argv, envv)
}

View file

@ -426,6 +426,101 @@ func TestGetwd(t *testing.T) {
} }
} }
func TestFstatat(t *testing.T) {
defer chtmpdir(t)()
touch(t, "file1")
var st1 unix.Stat_t
err := unix.Stat("file1", &st1)
if err != nil {
t.Fatalf("Stat: %v", err)
}
var st2 unix.Stat_t
err = unix.Fstatat(unix.AT_FDCWD, "file1", &st2, 0)
if err != nil {
t.Fatalf("Fstatat: %v", err)
}
if st1 != st2 {
t.Errorf("Fstatat: returned stat does not match Stat")
}
err = os.Symlink("file1", "symlink1")
if err != nil {
t.Fatal(err)
}
err = unix.Lstat("symlink1", &st1)
if err != nil {
t.Fatalf("Lstat: %v", err)
}
err = unix.Fstatat(unix.AT_FDCWD, "symlink1", &st2, unix.AT_SYMLINK_NOFOLLOW)
if err != nil {
t.Fatalf("Fstatat: %v", err)
}
if st1 != st2 {
t.Errorf("Fstatat: returned stat does not match Lstat")
}
}
func TestFchmodat(t *testing.T) {
defer chtmpdir(t)()
touch(t, "file1")
err := os.Symlink("file1", "symlink1")
if err != nil {
t.Fatal(err)
}
mode := os.FileMode(0444)
err = unix.Fchmodat(unix.AT_FDCWD, "symlink1", uint32(mode), 0)
if err != nil {
t.Fatalf("Fchmodat: unexpected error: %v", err)
}
fi, err := os.Stat("file1")
if err != nil {
t.Fatal(err)
}
if fi.Mode() != mode {
t.Errorf("Fchmodat: failed to change file mode: expected %v, got %v", mode, fi.Mode())
}
mode = os.FileMode(0644)
didChmodSymlink := true
err = unix.Fchmodat(unix.AT_FDCWD, "symlink1", uint32(mode), unix.AT_SYMLINK_NOFOLLOW)
if err != nil {
if (runtime.GOOS == "linux" || runtime.GOOS == "solaris") && err == unix.EOPNOTSUPP {
// Linux and Illumos don't support flags != 0
didChmodSymlink = false
} else {
t.Fatalf("Fchmodat: unexpected error: %v", err)
}
}
if !didChmodSymlink {
// Didn't change mode of the symlink. On Linux, the permissions
// of a symbolic link are always 0777 according to symlink(7)
mode = os.FileMode(0777)
}
var st unix.Stat_t
err = unix.Lstat("symlink1", &st)
if err != nil {
t.Fatal(err)
}
got := os.FileMode(st.Mode & 0777)
if got != mode {
t.Errorf("Fchmodat: failed to change symlink mode: expected %v, got %v", mode, got)
}
}
// mktmpfifo creates a temporary FIFO and provides a cleanup function. // mktmpfifo creates a temporary FIFO and provides a cleanup function.
func mktmpfifo(t *testing.T) (*os.File, func()) { func mktmpfifo(t *testing.T) (*os.File, func()) {
err := unix.Mkfifo("fifo", 0666) err := unix.Mkfifo("fifo", 0666)
@ -444,3 +539,37 @@ func mktmpfifo(t *testing.T) (*os.File, func()) {
os.Remove("fifo") os.Remove("fifo")
} }
} }
// utilities taken from os/os_test.go
func touch(t *testing.T, name string) {
f, err := os.Create(name)
if err != nil {
t.Fatal(err)
}
if err := f.Close(); err != nil {
t.Fatal(err)
}
}
// chtmpdir changes the working directory to a new temporary directory and
// provides a cleanup function. Used when PWD is read-only.
func chtmpdir(t *testing.T) func() {
oldwd, err := os.Getwd()
if err != nil {
t.Fatalf("chtmpdir: %v", err)
}
d, err := ioutil.TempDir("", "test")
if err != nil {
t.Fatalf("chtmpdir: %v", err)
}
if err := os.Chdir(d); err != nil {
t.Fatalf("chtmpdir: %v", err)
}
return func() {
if err := os.Chdir(oldwd); err != nil {
t.Fatalf("chtmpdir: %v", err)
}
os.RemoveAll(d)
}
}

View file

@ -118,6 +118,17 @@ const (
PathMax = C.PATH_MAX PathMax = C.PATH_MAX
) )
// Advice to Fadvise
const (
FADV_NORMAL = C.POSIX_FADV_NORMAL
FADV_RANDOM = C.POSIX_FADV_RANDOM
FADV_SEQUENTIAL = C.POSIX_FADV_SEQUENTIAL
FADV_WILLNEED = C.POSIX_FADV_WILLNEED
FADV_DONTNEED = C.POSIX_FADV_DONTNEED
FADV_NOREUSE = C.POSIX_FADV_NOREUSE
)
// Sockets // Sockets
type RawSockaddrInet4 C.struct_sockaddr_in type RawSockaddrInet4 C.struct_sockaddr_in

View file

@ -980,7 +980,10 @@ const (
RLIMIT_CPU = 0x0 RLIMIT_CPU = 0x0
RLIMIT_DATA = 0x2 RLIMIT_DATA = 0x2
RLIMIT_FSIZE = 0x1 RLIMIT_FSIZE = 0x1
RLIMIT_MEMLOCK = 0x6
RLIMIT_NOFILE = 0x8 RLIMIT_NOFILE = 0x8
RLIMIT_NPROC = 0x7
RLIMIT_RSS = 0x5
RLIMIT_STACK = 0x3 RLIMIT_STACK = 0x3
RLIM_INFINITY = 0x7fffffffffffffff RLIM_INFINITY = 0x7fffffffffffffff
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_32BIT = 0x40 MAP_32BIT = 0x40
MAP_ANON = 0x20 MAP_ANON = 0x20
MAP_ANONYMOUS = 0x20 MAP_ANONYMOUS = 0x20
@ -899,6 +918,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -998,6 +1018,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1196,6 +1217,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1282,6 +1308,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1292,7 +1319,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1566,6 +1593,7 @@ const (
SOL_SOCKET = 0x1 SOL_SOCKET = 0x1
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1e SO_ACCEPTCONN = 0x1e
@ -1634,6 +1662,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1730,6 +1759,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1750,6 +1781,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x2 TCSAFLUSH = 0x2

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_32BIT = 0x40 MAP_32BIT = 0x40
MAP_ANON = 0x20 MAP_ANON = 0x20
MAP_ANONYMOUS = 0x20 MAP_ANONYMOUS = 0x20
@ -899,6 +918,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -998,6 +1018,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1196,6 +1217,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1283,6 +1309,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1293,7 +1320,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1567,6 +1594,7 @@ const (
SOL_SOCKET = 0x1 SOL_SOCKET = 0x1
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1e SO_ACCEPTCONN = 0x1e
@ -1635,6 +1663,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1731,6 +1760,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1751,6 +1782,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x2 TCSAFLUSH = 0x2

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x20 MAP_ANON = 0x20
MAP_ANONYMOUS = 0x20 MAP_ANONYMOUS = 0x20
MAP_DENYWRITE = 0x800 MAP_DENYWRITE = 0x800
@ -898,6 +917,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -997,6 +1017,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1195,6 +1216,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1216,6 +1242,9 @@ const (
PTRACE_EVENT_VFORK_DONE = 0x5 PTRACE_EVENT_VFORK_DONE = 0x5
PTRACE_GETCRUNCHREGS = 0x19 PTRACE_GETCRUNCHREGS = 0x19
PTRACE_GETEVENTMSG = 0x4201 PTRACE_GETEVENTMSG = 0x4201
PTRACE_GETFDPIC = 0x1f
PTRACE_GETFDPIC_EXEC = 0x0
PTRACE_GETFDPIC_INTERP = 0x1
PTRACE_GETFPREGS = 0xe PTRACE_GETFPREGS = 0xe
PTRACE_GETHBPREGS = 0x1d PTRACE_GETHBPREGS = 0x1d
PTRACE_GETREGS = 0xc PTRACE_GETREGS = 0xc
@ -1287,6 +1316,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1297,7 +1327,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1571,6 +1601,7 @@ const (
SOL_SOCKET = 0x1 SOL_SOCKET = 0x1
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1e SO_ACCEPTCONN = 0x1e
@ -1639,6 +1670,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1735,6 +1767,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1755,6 +1789,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x2 TCSAFLUSH = 0x2

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -391,6 +392,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -399,6 +401,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -409,11 +412,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -478,6 +483,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -490,6 +496,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -497,6 +506,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -508,6 +521,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -563,6 +578,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -847,6 +864,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -855,6 +873,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x20 MAP_ANON = 0x20
MAP_ANONYMOUS = 0x20 MAP_ANONYMOUS = 0x20
MAP_DENYWRITE = 0x800 MAP_DENYWRITE = 0x800
@ -900,6 +919,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -999,6 +1019,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1197,6 +1218,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1273,6 +1299,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1283,7 +1310,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1557,6 +1584,7 @@ const (
SOL_SOCKET = 0x1 SOL_SOCKET = 0x1
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1e SO_ACCEPTCONN = 0x1e
@ -1625,6 +1653,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1721,6 +1750,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1741,6 +1772,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x2 TCSAFLUSH = 0x2

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x800 MAP_ANON = 0x800
MAP_ANONYMOUS = 0x800 MAP_ANONYMOUS = 0x800
MAP_DENYWRITE = 0x2000 MAP_DENYWRITE = 0x2000
@ -899,6 +918,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -998,6 +1018,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1196,6 +1217,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1284,6 +1310,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1294,7 +1321,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1568,6 +1595,7 @@ const (
SOL_SOCKET = 0xffff SOL_SOCKET = 0xffff
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1009 SO_ACCEPTCONN = 0x1009
@ -1637,6 +1665,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1732,6 +1761,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1752,6 +1783,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x5410 TCSAFLUSH = 0x5410

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x800 MAP_ANON = 0x800
MAP_ANONYMOUS = 0x800 MAP_ANONYMOUS = 0x800
MAP_DENYWRITE = 0x2000 MAP_DENYWRITE = 0x2000
@ -899,6 +918,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -998,6 +1018,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1196,6 +1217,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1284,6 +1310,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1294,7 +1321,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1568,6 +1595,7 @@ const (
SOL_SOCKET = 0xffff SOL_SOCKET = 0xffff
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1009 SO_ACCEPTCONN = 0x1009
@ -1637,6 +1665,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1732,6 +1761,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1752,6 +1783,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x5410 TCSAFLUSH = 0x5410

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x800 MAP_ANON = 0x800
MAP_ANONYMOUS = 0x800 MAP_ANONYMOUS = 0x800
MAP_DENYWRITE = 0x2000 MAP_DENYWRITE = 0x2000
@ -899,6 +918,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -998,6 +1018,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1196,6 +1217,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1284,6 +1310,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1294,7 +1321,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1568,6 +1595,7 @@ const (
SOL_SOCKET = 0xffff SOL_SOCKET = 0xffff
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1009 SO_ACCEPTCONN = 0x1009
@ -1637,6 +1665,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1732,6 +1761,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1752,6 +1783,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x5410 TCSAFLUSH = 0x5410

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x800 MAP_ANON = 0x800
MAP_ANONYMOUS = 0x800 MAP_ANONYMOUS = 0x800
MAP_DENYWRITE = 0x2000 MAP_DENYWRITE = 0x2000
@ -899,6 +918,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -998,6 +1018,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1196,6 +1217,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1284,6 +1310,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1294,7 +1321,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1568,6 +1595,7 @@ const (
SOL_SOCKET = 0xffff SOL_SOCKET = 0xffff
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1009 SO_ACCEPTCONN = 0x1009
@ -1637,6 +1665,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1732,6 +1761,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1752,6 +1783,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x5410 TCSAFLUSH = 0x5410

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x20 MAP_ANON = 0x20
MAP_ANONYMOUS = 0x20 MAP_ANONYMOUS = 0x20
MAP_DENYWRITE = 0x800 MAP_DENYWRITE = 0x800
@ -898,6 +917,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -999,6 +1019,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1198,6 +1219,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1340,6 +1366,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1350,7 +1377,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1624,6 +1651,7 @@ const (
SOL_SOCKET = 0x1 SOL_SOCKET = 0x1
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1e SO_ACCEPTCONN = 0x1e
@ -1692,6 +1720,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1786,6 +1815,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1806,6 +1837,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x2 TCSAFLUSH = 0x2

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x20 MAP_ANON = 0x20
MAP_ANONYMOUS = 0x20 MAP_ANONYMOUS = 0x20
MAP_DENYWRITE = 0x800 MAP_DENYWRITE = 0x800
@ -898,6 +917,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -999,6 +1019,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1198,6 +1219,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1340,6 +1366,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1350,7 +1377,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1624,6 +1651,7 @@ const (
SOL_SOCKET = 0x1 SOL_SOCKET = 0x1
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1e SO_ACCEPTCONN = 0x1e
@ -1692,6 +1720,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1786,6 +1815,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1806,6 +1837,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x2 TCSAFLUSH = 0x2

View file

@ -121,6 +121,7 @@ const (
ARPHRD_PPP = 0x200 ARPHRD_PPP = 0x200
ARPHRD_PRONET = 0x4 ARPHRD_PRONET = 0x4
ARPHRD_RAWHDLC = 0x206 ARPHRD_RAWHDLC = 0x206
ARPHRD_RAWIP = 0x207
ARPHRD_ROSE = 0x10e ARPHRD_ROSE = 0x10e
ARPHRD_RSRVD = 0x104 ARPHRD_RSRVD = 0x104
ARPHRD_SIT = 0x308 ARPHRD_SIT = 0x308
@ -390,6 +391,7 @@ const (
ETH_P_DSA = 0x1b ETH_P_DSA = 0x1b
ETH_P_ECONET = 0x18 ETH_P_ECONET = 0x18
ETH_P_EDSA = 0xdada ETH_P_EDSA = 0xdada
ETH_P_ERSPAN = 0x88be
ETH_P_FCOE = 0x8906 ETH_P_FCOE = 0x8906
ETH_P_FIP = 0x8914 ETH_P_FIP = 0x8914
ETH_P_HDLC = 0x19 ETH_P_HDLC = 0x19
@ -398,6 +400,7 @@ const (
ETH_P_IEEE802154 = 0xf6 ETH_P_IEEE802154 = 0xf6
ETH_P_IEEEPUP = 0xa00 ETH_P_IEEEPUP = 0xa00
ETH_P_IEEEPUPAT = 0xa01 ETH_P_IEEEPUPAT = 0xa01
ETH_P_IFE = 0xed3e
ETH_P_IP = 0x800 ETH_P_IP = 0x800
ETH_P_IPV6 = 0x86dd ETH_P_IPV6 = 0x86dd
ETH_P_IPX = 0x8137 ETH_P_IPX = 0x8137
@ -408,11 +411,13 @@ const (
ETH_P_LOOP = 0x60 ETH_P_LOOP = 0x60
ETH_P_LOOPBACK = 0x9000 ETH_P_LOOPBACK = 0x9000
ETH_P_MACSEC = 0x88e5 ETH_P_MACSEC = 0x88e5
ETH_P_MAP = 0xf9
ETH_P_MOBITEX = 0x15 ETH_P_MOBITEX = 0x15
ETH_P_MPLS_MC = 0x8848 ETH_P_MPLS_MC = 0x8848
ETH_P_MPLS_UC = 0x8847 ETH_P_MPLS_UC = 0x8847
ETH_P_MVRP = 0x88f5 ETH_P_MVRP = 0x88f5
ETH_P_NCSI = 0x88f8 ETH_P_NCSI = 0x88f8
ETH_P_NSH = 0x894f
ETH_P_PAE = 0x888e ETH_P_PAE = 0x888e
ETH_P_PAUSE = 0x8808 ETH_P_PAUSE = 0x8808
ETH_P_PHONET = 0xf5 ETH_P_PHONET = 0xf5
@ -476,6 +481,7 @@ const (
FS_POLICY_FLAGS_PAD_8 = 0x1 FS_POLICY_FLAGS_PAD_8 = 0x1
FS_POLICY_FLAGS_PAD_MASK = 0x3 FS_POLICY_FLAGS_PAD_MASK = 0x3
FS_POLICY_FLAGS_VALID = 0x3 FS_POLICY_FLAGS_VALID = 0x3
F_ADD_SEALS = 0x409
F_DUPFD = 0x0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0x406 F_DUPFD_CLOEXEC = 0x406
F_EXLCK = 0x4 F_EXLCK = 0x4
@ -488,6 +494,9 @@ const (
F_GETOWN_EX = 0x10 F_GETOWN_EX = 0x10
F_GETPIPE_SZ = 0x408 F_GETPIPE_SZ = 0x408
F_GETSIG = 0xb F_GETSIG = 0xb
F_GET_FILE_RW_HINT = 0x40d
F_GET_RW_HINT = 0x40b
F_GET_SEALS = 0x40a
F_LOCK = 0x1 F_LOCK = 0x1
F_NOTIFY = 0x402 F_NOTIFY = 0x402
F_OFD_GETLK = 0x24 F_OFD_GETLK = 0x24
@ -495,6 +504,10 @@ const (
F_OFD_SETLKW = 0x26 F_OFD_SETLKW = 0x26
F_OK = 0x0 F_OK = 0x0
F_RDLCK = 0x0 F_RDLCK = 0x0
F_SEAL_GROW = 0x4
F_SEAL_SEAL = 0x1
F_SEAL_SHRINK = 0x2
F_SEAL_WRITE = 0x8
F_SETFD = 0x2 F_SETFD = 0x2
F_SETFL = 0x4 F_SETFL = 0x4
F_SETLEASE = 0x400 F_SETLEASE = 0x400
@ -506,6 +519,8 @@ const (
F_SETOWN_EX = 0xf F_SETOWN_EX = 0xf
F_SETPIPE_SZ = 0x407 F_SETPIPE_SZ = 0x407
F_SETSIG = 0xa F_SETSIG = 0xa
F_SET_FILE_RW_HINT = 0x40e
F_SET_RW_HINT = 0x40c
F_SHLCK = 0x8 F_SHLCK = 0x8
F_TEST = 0x3 F_TEST = 0x3
F_TLOCK = 0x2 F_TLOCK = 0x2
@ -561,6 +576,8 @@ const (
IFF_MASTER = 0x400 IFF_MASTER = 0x400
IFF_MULTICAST = 0x1000 IFF_MULTICAST = 0x1000
IFF_MULTI_QUEUE = 0x100 IFF_MULTI_QUEUE = 0x100
IFF_NAPI = 0x10
IFF_NAPI_FRAGS = 0x20
IFF_NOARP = 0x80 IFF_NOARP = 0x80
IFF_NOFILTER = 0x1000 IFF_NOFILTER = 0x1000
IFF_NOTRAILERS = 0x20 IFF_NOTRAILERS = 0x20
@ -845,6 +862,7 @@ const (
MADV_FREE = 0x8 MADV_FREE = 0x8
MADV_HUGEPAGE = 0xe MADV_HUGEPAGE = 0xe
MADV_HWPOISON = 0x64 MADV_HWPOISON = 0x64
MADV_KEEPONFORK = 0x13
MADV_MERGEABLE = 0xc MADV_MERGEABLE = 0xc
MADV_NOHUGEPAGE = 0xf MADV_NOHUGEPAGE = 0xf
MADV_NORMAL = 0x0 MADV_NORMAL = 0x0
@ -853,6 +871,7 @@ const (
MADV_SEQUENTIAL = 0x2 MADV_SEQUENTIAL = 0x2
MADV_UNMERGEABLE = 0xd MADV_UNMERGEABLE = 0xd
MADV_WILLNEED = 0x3 MADV_WILLNEED = 0x3
MADV_WIPEONFORK = 0x12
MAP_ANON = 0x20 MAP_ANON = 0x20
MAP_ANONYMOUS = 0x20 MAP_ANONYMOUS = 0x20
MAP_DENYWRITE = 0x800 MAP_DENYWRITE = 0x800
@ -898,6 +917,7 @@ const (
MSG_TRYHARD = 0x4 MSG_TRYHARD = 0x4
MSG_WAITALL = 0x100 MSG_WAITALL = 0x100
MSG_WAITFORONE = 0x10000 MSG_WAITFORONE = 0x10000
MSG_ZEROCOPY = 0x4000000
MS_ACTIVE = 0x40000000 MS_ACTIVE = 0x40000000
MS_ASYNC = 0x1 MS_ASYNC = 0x1
MS_BIND = 0x1000 MS_BIND = 0x1000
@ -997,6 +1017,7 @@ const (
NLM_F_EXCL = 0x200 NLM_F_EXCL = 0x200
NLM_F_MATCH = 0x200 NLM_F_MATCH = 0x200
NLM_F_MULTI = 0x2 NLM_F_MULTI = 0x2
NLM_F_NONREC = 0x100
NLM_F_REPLACE = 0x100 NLM_F_REPLACE = 0x100
NLM_F_REQUEST = 0x1 NLM_F_REQUEST = 0x1
NLM_F_ROOT = 0x100 NLM_F_ROOT = 0x100
@ -1195,6 +1216,11 @@ const (
PR_SET_TIMING = 0xe PR_SET_TIMING = 0xe
PR_SET_TSC = 0x1a PR_SET_TSC = 0x1a
PR_SET_UNALIGN = 0x6 PR_SET_UNALIGN = 0x6
PR_SVE_GET_VL = 0x33
PR_SVE_SET_VL = 0x32
PR_SVE_SET_VL_ONEXEC = 0x40000
PR_SVE_VL_INHERIT = 0x20000
PR_SVE_VL_LEN_MASK = 0xffff
PR_TASK_PERF_EVENTS_DISABLE = 0x1f PR_TASK_PERF_EVENTS_DISABLE = 0x1f
PR_TASK_PERF_EVENTS_ENABLE = 0x20 PR_TASK_PERF_EVENTS_ENABLE = 0x20
PR_TIMING_STATISTICAL = 0x0 PR_TIMING_STATISTICAL = 0x0
@ -1344,6 +1370,7 @@ const (
RTAX_ADVMSS = 0x8 RTAX_ADVMSS = 0x8
RTAX_CC_ALGO = 0x10 RTAX_CC_ALGO = 0x10
RTAX_CWND = 0x7 RTAX_CWND = 0x7
RTAX_FASTOPEN_NO_COOKIE = 0x11
RTAX_FEATURES = 0xc RTAX_FEATURES = 0xc
RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ALLFRAG = 0x8
RTAX_FEATURE_ECN = 0x1 RTAX_FEATURE_ECN = 0x1
@ -1354,7 +1381,7 @@ const (
RTAX_INITCWND = 0xb RTAX_INITCWND = 0xb
RTAX_INITRWND = 0xe RTAX_INITRWND = 0xe
RTAX_LOCK = 0x1 RTAX_LOCK = 0x1
RTAX_MAX = 0x10 RTAX_MAX = 0x11
RTAX_MTU = 0x2 RTAX_MTU = 0x2
RTAX_QUICKACK = 0xf RTAX_QUICKACK = 0xf
RTAX_REORDERING = 0x9 RTAX_REORDERING = 0x9
@ -1628,6 +1655,7 @@ const (
SOL_SOCKET = 0x1 SOL_SOCKET = 0x1
SOL_TCP = 0x6 SOL_TCP = 0x6
SOL_TIPC = 0x10f SOL_TIPC = 0x10f
SOL_TLS = 0x11a
SOL_X25 = 0x106 SOL_X25 = 0x106
SOMAXCONN = 0x80 SOMAXCONN = 0x80
SO_ACCEPTCONN = 0x1e SO_ACCEPTCONN = 0x1e
@ -1696,6 +1724,7 @@ const (
SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
SO_VM_SOCKETS_TRUSTED = 0x5 SO_VM_SOCKETS_TRUSTED = 0x5
SO_WIFI_STATUS = 0x29 SO_WIFI_STATUS = 0x29
SO_ZEROCOPY = 0x3c
SPLICE_F_GIFT = 0x8 SPLICE_F_GIFT = 0x8
SPLICE_F_MORE = 0x4 SPLICE_F_MORE = 0x4
SPLICE_F_MOVE = 0x1 SPLICE_F_MOVE = 0x1
@ -1792,6 +1821,8 @@ const (
TCP_MAXWIN = 0xffff TCP_MAXWIN = 0xffff
TCP_MAX_WINSHIFT = 0xe TCP_MAX_WINSHIFT = 0xe
TCP_MD5SIG = 0xe TCP_MD5SIG = 0xe
TCP_MD5SIG_EXT = 0x20
TCP_MD5SIG_FLAG_PREFIX = 0x1
TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MD5SIG_MAXKEYLEN = 0x50
TCP_MSS = 0x200 TCP_MSS = 0x200
TCP_MSS_DEFAULT = 0x218 TCP_MSS_DEFAULT = 0x218
@ -1812,6 +1843,7 @@ const (
TCP_THIN_DUPACK = 0x11 TCP_THIN_DUPACK = 0x11
TCP_THIN_LINEAR_TIMEOUTS = 0x10 TCP_THIN_LINEAR_TIMEOUTS = 0x10
TCP_TIMESTAMP = 0x18 TCP_TIMESTAMP = 0x18
TCP_ULP = 0x1f
TCP_USER_TIMEOUT = 0x12 TCP_USER_TIMEOUT = 0x12
TCP_WINDOW_CLAMP = 0xa TCP_WINDOW_CLAMP = 0xa
TCSAFLUSH = 0x2 TCSAFLUSH = 0x2

View file

@ -159,6 +159,7 @@ const (
CLONE_VFORK = 0x4000 CLONE_VFORK = 0x4000
CLONE_VM = 0x100 CLONE_VM = 0x100
CREAD = 0x800 CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0 CS5 = 0x0
CS6 = 0x100 CS6 = 0x100
CS7 = 0x200 CS7 = 0x200

View file

@ -159,6 +159,7 @@ const (
CLONE_VFORK = 0x4000 CLONE_VFORK = 0x4000
CLONE_VM = 0x100 CLONE_VM = 0x100
CREAD = 0x800 CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0 CS5 = 0x0
CS6 = 0x100 CS6 = 0x100
CS7 = 0x200 CS7 = 0x200

View file

@ -151,6 +151,7 @@ const (
CFLUSH = 0xf CFLUSH = 0xf
CLOCAL = 0x8000 CLOCAL = 0x8000
CREAD = 0x800 CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0 CS5 = 0x0
CS6 = 0x100 CS6 = 0x100
CS7 = 0x200 CS7 = 0x200

View file

@ -147,6 +147,7 @@ const (
CFLUSH = 0xf CFLUSH = 0xf
CLOCAL = 0x8000 CLOCAL = 0x8000
CREAD = 0x800 CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0 CS5 = 0x0
CS6 = 0x100 CS6 = 0x100
CS7 = 0x200 CS7 = 0x200

View file

@ -147,6 +147,7 @@ const (
CFLUSH = 0xf CFLUSH = 0xf
CLOCAL = 0x8000 CLOCAL = 0x8000
CREAD = 0x800 CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0 CS5 = 0x0
CS6 = 0x100 CS6 = 0x100
CS7 = 0x200 CS7 = 0x200

View file

@ -147,6 +147,7 @@ const (
CFLUSH = 0xf CFLUSH = 0xf
CLOCAL = 0x8000 CLOCAL = 0x8000
CREAD = 0x800 CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0 CS5 = 0x0
CS6 = 0x100 CS6 = 0x100
CS7 = 0x200 CS7 = 0x200

View file

@ -693,6 +693,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -693,6 +693,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -693,6 +693,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -693,6 +693,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -618,6 +618,21 @@ func Fchmod(fd int, mode uint32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {
@ -659,6 +674,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -924,6 +924,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -924,6 +924,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -924,6 +924,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -1541,6 +1541,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {

View file

@ -1534,6 +1534,16 @@ func Dup2(oldfd int, newfd int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length), uintptr(advice), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {

View file

@ -1551,6 +1551,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {

View file

@ -1551,6 +1551,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {

View file

@ -1534,6 +1534,16 @@ func Dup2(oldfd int, newfd int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {

View file

@ -1551,6 +1551,16 @@ func Dup2(oldfd int, newfd int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {

View file

@ -1551,6 +1551,16 @@ func Dup2(oldfd int, newfd int) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {

View file

@ -1222,6 +1222,16 @@ func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Dup2(oldfd int, newfd int) (err error) { func Dup2(oldfd int, newfd int) (err error) {
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -571,6 +571,16 @@ func Exit(code int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchdir(fd int) (err error) { func Fchdir(fd int) (err error) {
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
if e1 != 0 { if e1 != 0 {
@ -601,6 +611,21 @@ func Fchmod(fd int, mode uint32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {
@ -642,6 +667,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fsync(fd int) (err error) { func Fsync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
if e1 != 0 { if e1 != 0 {

View file

@ -571,6 +571,16 @@ func Exit(code int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), 0, uintptr(length), uintptr(advice))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchdir(fd int) (err error) { func Fchdir(fd int) (err error) {
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
if e1 != 0 { if e1 != 0 {
@ -601,6 +611,21 @@ func Fchmod(fd int, mode uint32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {
@ -642,6 +667,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fsync(fd int) (err error) { func Fsync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
if e1 != 0 { if e1 != 0 {

View file

@ -571,6 +571,16 @@ func Exit(code int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
_, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchdir(fd int) (err error) { func Fchdir(fd int) (err error) {
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
if e1 != 0 { if e1 != 0 {
@ -601,6 +611,21 @@ func Fchmod(fd int, mode uint32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {
@ -642,6 +667,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fsync(fd int) (err error) { func Fsync(fd int) (err error) {
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
if e1 != 0 { if e1 != 0 {

View file

@ -599,6 +599,21 @@ func Fchmod(fd int, mode uint32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {
@ -640,6 +655,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -599,6 +599,21 @@ func Fchmod(fd int, mode uint32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {
@ -640,6 +655,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -599,6 +599,21 @@ func Fchmod(fd int, mode uint32) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fchown(fd int, uid int, gid int) (err error) { func Fchown(fd int, uid int, gid int) (err error) {
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
if e1 != 0 { if e1 != 0 {
@ -640,6 +655,21 @@ func Fstat(fd int, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Fstatfs(fd int, stat *Statfs_t) (err error) { func Fstatfs(fd int, stat *Statfs_t) (err error) {
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
if e1 != 0 { if e1 != 0 {

View file

@ -50,6 +50,7 @@ import (
//go:cgo_import_dynamic libc_flock flock "libc.so" //go:cgo_import_dynamic libc_flock flock "libc.so"
//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
//go:cgo_import_dynamic libc_fstat fstat "libc.so" //go:cgo_import_dynamic libc_fstat fstat "libc.so"
//go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
//go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so" //go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so"
//go:cgo_import_dynamic libc_getdents getdents "libc.so" //go:cgo_import_dynamic libc_getdents getdents "libc.so"
//go:cgo_import_dynamic libc_getgid getgid "libc.so" //go:cgo_import_dynamic libc_getgid getgid "libc.so"
@ -127,6 +128,7 @@ import (
//go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so" //go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so"
//go:cgo_import_dynamic libc_mmap mmap "libc.so" //go:cgo_import_dynamic libc_mmap mmap "libc.so"
//go:cgo_import_dynamic libc_munmap munmap "libc.so" //go:cgo_import_dynamic libc_munmap munmap "libc.so"
//go:cgo_import_dynamic libc_sendfile sendfile "libsendfile.so"
//go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so" //go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so"
//go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so" //go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so"
//go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so" //go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so"
@ -176,6 +178,7 @@ import (
//go:linkname procFlock libc_flock //go:linkname procFlock libc_flock
//go:linkname procFpathconf libc_fpathconf //go:linkname procFpathconf libc_fpathconf
//go:linkname procFstat libc_fstat //go:linkname procFstat libc_fstat
//go:linkname procFstatat libc_fstatat
//go:linkname procFstatvfs libc_fstatvfs //go:linkname procFstatvfs libc_fstatvfs
//go:linkname procGetdents libc_getdents //go:linkname procGetdents libc_getdents
//go:linkname procGetgid libc_getgid //go:linkname procGetgid libc_getgid
@ -253,6 +256,7 @@ import (
//go:linkname proc__xnet_connect libc___xnet_connect //go:linkname proc__xnet_connect libc___xnet_connect
//go:linkname procmmap libc_mmap //go:linkname procmmap libc_mmap
//go:linkname procmunmap libc_munmap //go:linkname procmunmap libc_munmap
//go:linkname procsendfile libc_sendfile
//go:linkname proc__xnet_sendto libc___xnet_sendto //go:linkname proc__xnet_sendto libc___xnet_sendto
//go:linkname proc__xnet_socket libc___xnet_socket //go:linkname proc__xnet_socket libc___xnet_socket
//go:linkname proc__xnet_socketpair libc___xnet_socketpair //go:linkname proc__xnet_socketpair libc___xnet_socketpair
@ -303,6 +307,7 @@ var (
procFlock, procFlock,
procFpathconf, procFpathconf,
procFstat, procFstat,
procFstatat,
procFstatvfs, procFstatvfs,
procGetdents, procGetdents,
procGetgid, procGetgid,
@ -380,6 +385,7 @@ var (
proc__xnet_connect, proc__xnet_connect,
procmmap, procmmap,
procmunmap, procmunmap,
procsendfile,
proc__xnet_sendto, proc__xnet_sendto,
proc__xnet_socket, proc__xnet_socket,
proc__xnet_socketpair, proc__xnet_socketpair,
@ -772,6 +778,19 @@ func Fstat(fd int, stat *Stat_t) (err error) {
return return
} }
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(path)
if err != nil {
return
}
_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
if e1 != 0 {
err = e1
}
return
}
func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) { func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) {
_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0) _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0)
if e1 != 0 { if e1 != 0 {
@ -1573,6 +1592,15 @@ func munmap(addr uintptr, length uintptr) (err error) {
return return
} }
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendfile)), 4, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
written = int(r0)
if e1 != 0 {
err = e1
}
return
}
func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
var _p0 *byte var _p0 *byte
if len(buf) > 0 { if len(buf) > 0 {

View file

@ -308,6 +308,7 @@ const (
SYS_PWRITEV2 = 377 SYS_PWRITEV2 = 377
SYS_S390_GUARDED_STORAGE = 378 SYS_S390_GUARDED_STORAGE = 378
SYS_STATX = 379 SYS_STATX = 379
SYS_S390_STHYI = 380
SYS_SELECT = 142 SYS_SELECT = 142
SYS_GETRLIMIT = 191 SYS_GETRLIMIT = 191
SYS_LCHOWN = 198 SYS_LCHOWN = 198

View file

@ -142,7 +142,7 @@ type Dirent struct {
Namlen uint16 Namlen uint16
Type uint8 Type uint8
Name [1024]int8 Name [1024]int8
Pad_cgo_0 [3]byte _ [3]byte
} }
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
@ -301,7 +301,7 @@ type IfMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Data IfData Data IfData
} }
@ -344,7 +344,7 @@ type IfaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Metric int32 Metric int32
} }
@ -355,7 +355,7 @@ type IfmaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type IfmaMsghdr2 struct { type IfmaMsghdr2 struct {
@ -365,7 +365,7 @@ type IfmaMsghdr2 struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Refcount int32 Refcount int32
} }
@ -374,7 +374,7 @@ type RtMsghdr struct {
Version uint8 Version uint8
Type uint8 Type uint8
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Flags int32 Flags int32
Addrs int32 Addrs int32
Pid int32 Pid int32
@ -434,7 +434,7 @@ type BpfHdr struct {
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type Termios struct { type Termios struct {

View file

@ -28,7 +28,7 @@ type Timespec struct {
type Timeval struct { type Timeval struct {
Sec int64 Sec int64
Usec int32 Usec int32
Pad_cgo_0 [4]byte _ [4]byte
} }
type Timeval32 struct { type Timeval32 struct {
@ -70,7 +70,7 @@ type Stat_t struct {
Uid uint32 Uid uint32
Gid uint32 Gid uint32
Rdev int32 Rdev int32
Pad_cgo_0 [4]byte _ [4]byte
Atimespec Timespec Atimespec Timespec
Mtimespec Timespec Mtimespec Timespec
Ctimespec Timespec Ctimespec Timespec
@ -122,7 +122,7 @@ type Fstore_t struct {
type Radvisory_t struct { type Radvisory_t struct {
Offset int64 Offset int64
Count int32 Count int32
Pad_cgo_0 [4]byte _ [4]byte
} }
type Fbootstraptransfer_t struct { type Fbootstraptransfer_t struct {
@ -133,8 +133,8 @@ type Fbootstraptransfer_t struct {
type Log2phys_t struct { type Log2phys_t struct {
Flags uint32 Flags uint32
Pad_cgo_0 [8]byte _ [8]byte
Pad_cgo_1 [8]byte _ [8]byte
} }
type Fsid struct { type Fsid struct {
@ -148,7 +148,7 @@ type Dirent struct {
Namlen uint16 Namlen uint16
Type uint8 Type uint8
Name [1024]int8 Name [1024]int8
Pad_cgo_0 [3]byte _ [3]byte
} }
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
@ -221,10 +221,10 @@ type IPv6Mreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen int32 Iovlen int32
Pad_cgo_1 [4]byte _ [4]byte
Control *byte Control *byte
Controllen uint32 Controllen uint32
Flags int32 Flags int32
@ -309,7 +309,7 @@ type IfMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Data IfData Data IfData
} }
@ -352,7 +352,7 @@ type IfaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Metric int32 Metric int32
} }
@ -363,7 +363,7 @@ type IfmaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type IfmaMsghdr2 struct { type IfmaMsghdr2 struct {
@ -373,7 +373,7 @@ type IfmaMsghdr2 struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Refcount int32 Refcount int32
} }
@ -382,7 +382,7 @@ type RtMsghdr struct {
Version uint8 Version uint8
Type uint8 Type uint8
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Flags int32 Flags int32
Addrs int32 Addrs int32
Pid int32 Pid int32
@ -427,7 +427,7 @@ type BpfStat struct {
type BpfProgram struct { type BpfProgram struct {
Len uint32 Len uint32
Pad_cgo_0 [4]byte _ [4]byte
Insns *BpfInsn Insns *BpfInsn
} }
@ -443,7 +443,7 @@ type BpfHdr struct {
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type Termios struct { type Termios struct {
@ -452,7 +452,7 @@ type Termios struct {
Cflag uint64 Cflag uint64
Lflag uint64 Lflag uint64
Cc [20]uint8 Cc [20]uint8
Pad_cgo_0 [4]byte _ [4]byte
Ispeed uint64 Ispeed uint64
Ospeed uint64 Ospeed uint64
} }

View file

@ -143,7 +143,7 @@ type Dirent struct {
Namlen uint16 Namlen uint16
Type uint8 Type uint8
Name [1024]int8 Name [1024]int8
Pad_cgo_0 [3]byte _ [3]byte
} }
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
@ -302,7 +302,7 @@ type IfMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Data IfData Data IfData
} }
@ -345,7 +345,7 @@ type IfaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Metric int32 Metric int32
} }
@ -356,7 +356,7 @@ type IfmaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type IfmaMsghdr2 struct { type IfmaMsghdr2 struct {
@ -366,7 +366,7 @@ type IfmaMsghdr2 struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Refcount int32 Refcount int32
} }
@ -375,7 +375,7 @@ type RtMsghdr struct {
Version uint8 Version uint8
Type uint8 Type uint8
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Flags int32 Flags int32
Addrs int32 Addrs int32
Pid int32 Pid int32
@ -435,7 +435,7 @@ type BpfHdr struct {
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type Termios struct { type Termios struct {

View file

@ -28,7 +28,7 @@ type Timespec struct {
type Timeval struct { type Timeval struct {
Sec int64 Sec int64
Usec int32 Usec int32
Pad_cgo_0 [4]byte _ [4]byte
} }
type Timeval32 struct { type Timeval32 struct {
@ -70,7 +70,7 @@ type Stat_t struct {
Uid uint32 Uid uint32
Gid uint32 Gid uint32
Rdev int32 Rdev int32
Pad_cgo_0 [4]byte _ [4]byte
Atimespec Timespec Atimespec Timespec
Mtimespec Timespec Mtimespec Timespec
Ctimespec Timespec Ctimespec Timespec
@ -122,7 +122,7 @@ type Fstore_t struct {
type Radvisory_t struct { type Radvisory_t struct {
Offset int64 Offset int64
Count int32 Count int32
Pad_cgo_0 [4]byte _ [4]byte
} }
type Fbootstraptransfer_t struct { type Fbootstraptransfer_t struct {
@ -133,8 +133,8 @@ type Fbootstraptransfer_t struct {
type Log2phys_t struct { type Log2phys_t struct {
Flags uint32 Flags uint32
Pad_cgo_0 [8]byte _ [8]byte
Pad_cgo_1 [8]byte _ [8]byte
} }
type Fsid struct { type Fsid struct {
@ -148,7 +148,7 @@ type Dirent struct {
Namlen uint16 Namlen uint16
Type uint8 Type uint8
Name [1024]int8 Name [1024]int8
Pad_cgo_0 [3]byte _ [3]byte
} }
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
@ -221,10 +221,10 @@ type IPv6Mreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen int32 Iovlen int32
Pad_cgo_1 [4]byte _ [4]byte
Control *byte Control *byte
Controllen uint32 Controllen uint32
Flags int32 Flags int32
@ -309,7 +309,7 @@ type IfMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Data IfData Data IfData
} }
@ -352,7 +352,7 @@ type IfaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Metric int32 Metric int32
} }
@ -363,7 +363,7 @@ type IfmaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type IfmaMsghdr2 struct { type IfmaMsghdr2 struct {
@ -373,7 +373,7 @@ type IfmaMsghdr2 struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Refcount int32 Refcount int32
} }
@ -382,7 +382,7 @@ type RtMsghdr struct {
Version uint8 Version uint8
Type uint8 Type uint8
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Flags int32 Flags int32
Addrs int32 Addrs int32
Pid int32 Pid int32
@ -427,7 +427,7 @@ type BpfStat struct {
type BpfProgram struct { type BpfProgram struct {
Len uint32 Len uint32
Pad_cgo_0 [4]byte _ [4]byte
Insns *BpfInsn Insns *BpfInsn
} }
@ -443,7 +443,7 @@ type BpfHdr struct {
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type Termios struct { type Termios struct {
@ -452,7 +452,7 @@ type Termios struct {
Cflag uint64 Cflag uint64
Lflag uint64 Lflag uint64
Cc [20]uint8 Cc [20]uint8
Pad_cgo_0 [4]byte _ [4]byte
Ispeed uint64 Ispeed uint64
Ospeed uint64 Ospeed uint64
} }

View file

@ -108,7 +108,7 @@ type Statfs_t struct {
Owner uint32 Owner uint32
Type int32 Type int32
Flags int32 Flags int32
Pad_cgo_0 [4]byte _ [4]byte
Syncwrites int64 Syncwrites int64
Asyncwrites int64 Asyncwrites int64
Fstypename [16]int8 Fstypename [16]int8
@ -118,7 +118,7 @@ type Statfs_t struct {
Spares1 int16 Spares1 int16
Mntfromname [80]int8 Mntfromname [80]int8
Spares2 int16 Spares2 int16
Pad_cgo_1 [4]byte _ [4]byte
Spare [2]int64 Spare [2]int64
} }
@ -219,10 +219,10 @@ type IPv6Mreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen int32 Iovlen int32
Pad_cgo_1 [4]byte _ [4]byte
Control *byte Control *byte
Controllen uint32 Controllen uint32
Flags int32 Flags int32
@ -300,7 +300,7 @@ type IfMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Data IfData Data IfData
} }
@ -311,7 +311,7 @@ type IfData struct {
Hdrlen uint8 Hdrlen uint8
Recvquota uint8 Recvquota uint8
Xmitquota uint8 Xmitquota uint8
Pad_cgo_0 [2]byte _ [2]byte
Mtu uint64 Mtu uint64
Metric uint64 Metric uint64
Link_state uint64 Link_state uint64
@ -339,7 +339,7 @@ type IfaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Metric int32 Metric int32
} }
@ -350,7 +350,7 @@ type IfmaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type IfAnnounceMsghdr struct { type IfAnnounceMsghdr struct {
@ -367,7 +367,7 @@ type RtMsghdr struct {
Version uint8 Version uint8
Type uint8 Type uint8
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Flags int32 Flags int32
Addrs int32 Addrs int32
Pid int32 Pid int32
@ -391,7 +391,7 @@ type RtMetrics struct {
Hopcount uint64 Hopcount uint64
Mssopt uint16 Mssopt uint16
Pad uint16 Pad uint16
Pad_cgo_0 [4]byte _ [4]byte
Msl uint64 Msl uint64
Iwmaxsegs uint64 Iwmaxsegs uint64
Iwcapsegs uint64 Iwcapsegs uint64
@ -417,7 +417,7 @@ type BpfStat struct {
type BpfProgram struct { type BpfProgram struct {
Len uint32 Len uint32
Pad_cgo_0 [4]byte _ [4]byte
Insns *BpfInsn Insns *BpfInsn
} }
@ -433,7 +433,7 @@ type BpfHdr struct {
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_cgo_0 [6]byte _ [6]byte
} }
type Termios struct { type Termios struct {

View file

@ -52,7 +52,7 @@ type Timex struct {
Errcnt int32 Errcnt int32
Stbcnt int32 Stbcnt int32
Tai int32 Tai int32
Pad_cgo_0 [44]byte _ [44]byte
} }
type Time_t int32 type Time_t int32
@ -98,7 +98,7 @@ type _Gid_t uint32
type Stat_t struct { type Stat_t struct {
Dev uint64 Dev uint64
X__pad1 uint16 X__pad1 uint16
Pad_cgo_0 [2]byte _ [2]byte
X__st_ino uint32 X__st_ino uint32
Mode uint32 Mode uint32
Nlink uint32 Nlink uint32
@ -106,7 +106,7 @@ type Stat_t struct {
Gid uint32 Gid uint32
Rdev uint64 Rdev uint64
X__pad2 uint16 X__pad2 uint16
Pad_cgo_1 [2]byte _ [2]byte
Size int64 Size int64
Blksize int32 Blksize int32
Blocks int64 Blocks int64
@ -167,7 +167,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]int8 Name [256]int8
Pad_cgo_0 [1]byte _ [1]byte
} }
type Fsid struct { type Fsid struct {
@ -254,9 +254,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -371,7 +380,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -406,6 +415,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -455,7 +465,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -596,7 +632,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [2]byte _ [2]byte
Filter *SockFilter Filter *SockFilter
} }
@ -730,11 +766,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -746,13 +782,13 @@ type Taskstats struct {
Ac_comm [32]int8 Ac_comm [32]int8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -853,3 +889,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x20 _NCPUBITS = 0x20
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -33,13 +33,13 @@ type Timeval struct {
type Timex struct { type Timex struct {
Modes uint32 Modes uint32
Pad_cgo_0 [4]byte _ [4]byte
Offset int64 Offset int64
Freq int64 Freq int64
Maxerror int64 Maxerror int64
Esterror int64 Esterror int64
Status int32 Status int32
Pad_cgo_1 [4]byte _ [4]byte
Constant int64 Constant int64
Precision int64 Precision int64
Tolerance int64 Tolerance int64
@ -48,14 +48,14 @@ type Timex struct {
Ppsfreq int64 Ppsfreq int64
Jitter int64 Jitter int64
Shift int32 Shift int32
Pad_cgo_2 [4]byte _ [4]byte
Stabil int64 Stabil int64
Jitcnt int64 Jitcnt int64
Calcnt int64 Calcnt int64
Errcnt int64 Errcnt int64
Stbcnt int64 Stbcnt int64
Tai int32 Tai int32
Pad_cgo_3 [44]byte _ [44]byte
} }
type Time_t int64 type Time_t int64
@ -167,7 +167,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]int8 Name [256]int8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -177,11 +177,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -256,9 +256,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -327,13 +336,13 @@ type PacketMreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen uint64 Iovlen uint64
Control *byte Control *byte
Controllen uint64 Controllen uint64
Flags int32 Flags int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -375,7 +384,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -410,6 +419,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -459,7 +469,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -600,7 +636,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [6]byte _ [6]byte
Filter *SockFilter Filter *SockFilter
} }
@ -658,12 +694,12 @@ type Sysinfo_t struct {
Freeswap uint64 Freeswap uint64
Procs uint16 Procs uint16
Pad uint16 Pad uint16
Pad_cgo_0 [4]byte _ [4]byte
Totalhigh uint64 Totalhigh uint64
Freehigh uint64 Freehigh uint64
Unit uint32 Unit uint32
X_f [0]int8 X_f [0]int8
Pad_cgo_1 [4]byte _ [4]byte
} }
type Utsname struct { type Utsname struct {
@ -677,11 +713,11 @@ type Utsname struct {
type Ustat_t struct { type Ustat_t struct {
Tfree int32 Tfree int32
Pad_cgo_0 [4]byte _ [4]byte
Tinode uint64 Tinode uint64
Fname [6]int8 Fname [6]int8
Fpack [6]int8 Fpack [6]int8
Pad_cgo_1 [4]byte _ [4]byte
} }
type EpollEvent struct { type EpollEvent struct {
@ -748,11 +784,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -764,13 +800,13 @@ type Taskstats struct {
Ac_comm [32]int8 Ac_comm [32]int8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -871,3 +907,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x40 _NCPUBITS = 0x40
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -52,7 +52,7 @@ type Timex struct {
Errcnt int32 Errcnt int32
Stbcnt int32 Stbcnt int32
Tai int32 Tai int32
Pad_cgo_0 [44]byte _ [44]byte
} }
type Time_t int32 type Time_t int32
@ -98,7 +98,7 @@ type _Gid_t uint32
type Stat_t struct { type Stat_t struct {
Dev uint64 Dev uint64
X__pad1 uint16 X__pad1 uint16
Pad_cgo_0 [2]byte _ [2]byte
X__st_ino uint32 X__st_ino uint32
Mode uint32 Mode uint32
Nlink uint32 Nlink uint32
@ -106,10 +106,10 @@ type Stat_t struct {
Gid uint32 Gid uint32
Rdev uint64 Rdev uint64
X__pad2 uint16 X__pad2 uint16
Pad_cgo_1 [6]byte _ [6]byte
Size int64 Size int64
Blksize int32 Blksize int32
Pad_cgo_2 [4]byte _ [4]byte
Blocks int64 Blocks int64
Atim Timespec Atim Timespec
Mtim Timespec Mtim Timespec
@ -130,7 +130,7 @@ type Statfs_t struct {
Frsize int32 Frsize int32
Flags int32 Flags int32
Spare [4]int32 Spare [4]int32
Pad_cgo_0 [4]byte _ [4]byte
} }
type StatxTimestamp struct { type StatxTimestamp struct {
@ -169,7 +169,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]uint8 Name [256]uint8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -179,11 +179,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -258,9 +258,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -375,7 +384,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -410,6 +419,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -459,7 +469,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -600,7 +636,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [2]byte _ [2]byte
Filter *SockFilter Filter *SockFilter
} }
@ -719,11 +755,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -735,13 +771,13 @@ type Taskstats struct {
Ac_comm [32]uint8 Ac_comm [32]uint8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -842,3 +878,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x20 _NCPUBITS = 0x20
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -33,13 +33,13 @@ type Timeval struct {
type Timex struct { type Timex struct {
Modes uint32 Modes uint32
Pad_cgo_0 [4]byte _ [4]byte
Offset int64 Offset int64
Freq int64 Freq int64
Maxerror int64 Maxerror int64
Esterror int64 Esterror int64
Status int32 Status int32
Pad_cgo_1 [4]byte _ [4]byte
Constant int64 Constant int64
Precision int64 Precision int64
Tolerance int64 Tolerance int64
@ -48,14 +48,14 @@ type Timex struct {
Ppsfreq int64 Ppsfreq int64
Jitter int64 Jitter int64
Shift int32 Shift int32
Pad_cgo_2 [4]byte _ [4]byte
Stabil int64 Stabil int64
Jitcnt int64 Jitcnt int64
Calcnt int64 Calcnt int64
Errcnt int64 Errcnt int64
Stbcnt int64 Stbcnt int64
Tai int32 Tai int32
Pad_cgo_3 [44]byte _ [44]byte
} }
type Time_t int64 type Time_t int64
@ -168,7 +168,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]int8 Name [256]int8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -178,11 +178,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -257,9 +257,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -328,13 +337,13 @@ type PacketMreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen uint64 Iovlen uint64
Control *byte Control *byte
Controllen uint64 Controllen uint64
Flags int32 Flags int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -376,7 +385,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -411,6 +420,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -460,7 +470,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -601,7 +637,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [6]byte _ [6]byte
Filter *SockFilter Filter *SockFilter
} }
@ -636,12 +672,12 @@ type Sysinfo_t struct {
Freeswap uint64 Freeswap uint64
Procs uint16 Procs uint16
Pad uint16 Pad uint16
Pad_cgo_0 [4]byte _ [4]byte
Totalhigh uint64 Totalhigh uint64
Freehigh uint64 Freehigh uint64
Unit uint32 Unit uint32
X_f [0]int8 X_f [0]int8
Pad_cgo_1 [4]byte _ [4]byte
} }
type Utsname struct { type Utsname struct {
@ -655,11 +691,11 @@ type Utsname struct {
type Ustat_t struct { type Ustat_t struct {
Tfree int32 Tfree int32
Pad_cgo_0 [4]byte _ [4]byte
Tinode uint64 Tinode uint64
Fname [6]int8 Fname [6]int8
Fpack [6]int8 Fpack [6]int8
Pad_cgo_1 [4]byte _ [4]byte
} }
type EpollEvent struct { type EpollEvent struct {
@ -727,11 +763,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -743,13 +779,13 @@ type Taskstats struct {
Ac_comm [32]int8 Ac_comm [32]int8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -850,3 +886,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x40 _NCPUBITS = 0x40
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -52,7 +52,7 @@ type Timex struct {
Errcnt int32 Errcnt int32
Stbcnt int32 Stbcnt int32
Tai int32 Tai int32
Pad_cgo_0 [44]byte _ [44]byte
} }
type Time_t int32 type Time_t int32
@ -119,7 +119,7 @@ type Statfs_t struct {
Type int32 Type int32
Bsize int32 Bsize int32
Frsize int32 Frsize int32
Pad_cgo_0 [4]byte _ [4]byte
Blocks uint64 Blocks uint64
Bfree uint64 Bfree uint64
Files uint64 Files uint64
@ -129,7 +129,7 @@ type Statfs_t struct {
Namelen int32 Namelen int32
Flags int32 Flags int32
Spare [5]int32 Spare [5]int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type StatxTimestamp struct { type StatxTimestamp struct {
@ -168,7 +168,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]int8 Name [256]int8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -178,11 +178,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -257,9 +257,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -374,7 +383,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -409,6 +418,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -458,7 +468,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -599,7 +635,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [2]byte _ [2]byte
Filter *SockFilter Filter *SockFilter
} }
@ -724,11 +760,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -740,13 +776,13 @@ type Taskstats struct {
Ac_comm [32]int8 Ac_comm [32]int8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -847,3 +883,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x20 _NCPUBITS = 0x20
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -33,13 +33,13 @@ type Timeval struct {
type Timex struct { type Timex struct {
Modes uint32 Modes uint32
Pad_cgo_0 [4]byte _ [4]byte
Offset int64 Offset int64
Freq int64 Freq int64
Maxerror int64 Maxerror int64
Esterror int64 Esterror int64
Status int32 Status int32
Pad_cgo_1 [4]byte _ [4]byte
Constant int64 Constant int64
Precision int64 Precision int64
Tolerance int64 Tolerance int64
@ -48,14 +48,14 @@ type Timex struct {
Ppsfreq int64 Ppsfreq int64
Jitter int64 Jitter int64
Shift int32 Shift int32
Pad_cgo_2 [4]byte _ [4]byte
Stabil int64 Stabil int64
Jitcnt int64 Jitcnt int64
Calcnt int64 Calcnt int64
Errcnt int64 Errcnt int64
Stbcnt int64 Stbcnt int64
Tai int32 Tai int32
Pad_cgo_3 [44]byte _ [44]byte
} }
type Time_t int64 type Time_t int64
@ -168,7 +168,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]int8 Name [256]int8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -178,11 +178,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -257,9 +257,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -328,13 +337,13 @@ type PacketMreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen uint64 Iovlen uint64
Control *byte Control *byte
Controllen uint64 Controllen uint64
Flags int32 Flags int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -376,7 +385,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -411,6 +420,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -460,7 +470,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -601,7 +637,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [6]byte _ [6]byte
Filter *SockFilter Filter *SockFilter
} }
@ -639,12 +675,12 @@ type Sysinfo_t struct {
Freeswap uint64 Freeswap uint64
Procs uint16 Procs uint16
Pad uint16 Pad uint16
Pad_cgo_0 [4]byte _ [4]byte
Totalhigh uint64 Totalhigh uint64
Freehigh uint64 Freehigh uint64
Unit uint32 Unit uint32
X_f [0]int8 X_f [0]int8
Pad_cgo_1 [4]byte _ [4]byte
} }
type Utsname struct { type Utsname struct {
@ -658,11 +694,11 @@ type Utsname struct {
type Ustat_t struct { type Ustat_t struct {
Tfree int32 Tfree int32
Pad_cgo_0 [4]byte _ [4]byte
Tinode uint64 Tinode uint64
Fname [6]int8 Fname [6]int8
Fpack [6]int8 Fpack [6]int8
Pad_cgo_1 [4]byte _ [4]byte
} }
type EpollEvent struct { type EpollEvent struct {
@ -729,11 +765,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -745,13 +781,13 @@ type Taskstats struct {
Ac_comm [32]int8 Ac_comm [32]int8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -852,3 +888,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x40 _NCPUBITS = 0x40
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -33,13 +33,13 @@ type Timeval struct {
type Timex struct { type Timex struct {
Modes uint32 Modes uint32
Pad_cgo_0 [4]byte _ [4]byte
Offset int64 Offset int64
Freq int64 Freq int64
Maxerror int64 Maxerror int64
Esterror int64 Esterror int64
Status int32 Status int32
Pad_cgo_1 [4]byte _ [4]byte
Constant int64 Constant int64
Precision int64 Precision int64
Tolerance int64 Tolerance int64
@ -48,14 +48,14 @@ type Timex struct {
Ppsfreq int64 Ppsfreq int64
Jitter int64 Jitter int64
Shift int32 Shift int32
Pad_cgo_2 [4]byte _ [4]byte
Stabil int64 Stabil int64
Jitcnt int64 Jitcnt int64
Calcnt int64 Calcnt int64
Errcnt int64 Errcnt int64
Stbcnt int64 Stbcnt int64
Tai int32 Tai int32
Pad_cgo_3 [44]byte _ [44]byte
} }
type Time_t int64 type Time_t int64
@ -168,7 +168,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]int8 Name [256]int8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -178,11 +178,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -257,9 +257,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -328,13 +337,13 @@ type PacketMreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen uint64 Iovlen uint64
Control *byte Control *byte
Controllen uint64 Controllen uint64
Flags int32 Flags int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -376,7 +385,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -411,6 +420,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -460,7 +470,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -601,7 +637,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [6]byte _ [6]byte
Filter *SockFilter Filter *SockFilter
} }
@ -639,12 +675,12 @@ type Sysinfo_t struct {
Freeswap uint64 Freeswap uint64
Procs uint16 Procs uint16
Pad uint16 Pad uint16
Pad_cgo_0 [4]byte _ [4]byte
Totalhigh uint64 Totalhigh uint64
Freehigh uint64 Freehigh uint64
Unit uint32 Unit uint32
X_f [0]int8 X_f [0]int8
Pad_cgo_1 [4]byte _ [4]byte
} }
type Utsname struct { type Utsname struct {
@ -658,11 +694,11 @@ type Utsname struct {
type Ustat_t struct { type Ustat_t struct {
Tfree int32 Tfree int32
Pad_cgo_0 [4]byte _ [4]byte
Tinode uint64 Tinode uint64
Fname [6]int8 Fname [6]int8
Fpack [6]int8 Fpack [6]int8
Pad_cgo_1 [4]byte _ [4]byte
} }
type EpollEvent struct { type EpollEvent struct {
@ -729,11 +765,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -745,13 +781,13 @@ type Taskstats struct {
Ac_comm [32]int8 Ac_comm [32]int8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -852,3 +888,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x40 _NCPUBITS = 0x40
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -52,7 +52,7 @@ type Timex struct {
Errcnt int32 Errcnt int32
Stbcnt int32 Stbcnt int32
Tai int32 Tai int32
Pad_cgo_0 [44]byte _ [44]byte
} }
type Time_t int32 type Time_t int32
@ -119,7 +119,7 @@ type Statfs_t struct {
Type int32 Type int32
Bsize int32 Bsize int32
Frsize int32 Frsize int32
Pad_cgo_0 [4]byte _ [4]byte
Blocks uint64 Blocks uint64
Bfree uint64 Bfree uint64
Files uint64 Files uint64
@ -129,7 +129,7 @@ type Statfs_t struct {
Namelen int32 Namelen int32
Flags int32 Flags int32
Spare [5]int32 Spare [5]int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type StatxTimestamp struct { type StatxTimestamp struct {
@ -168,7 +168,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]int8 Name [256]int8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -178,11 +178,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -257,9 +257,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -374,7 +383,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -409,6 +418,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -458,7 +468,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -599,7 +635,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [2]byte _ [2]byte
Filter *SockFilter Filter *SockFilter
} }
@ -724,11 +760,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -740,13 +776,13 @@ type Taskstats struct {
Ac_comm [32]int8 Ac_comm [32]int8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -847,3 +883,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x20 _NCPUBITS = 0x20
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -33,13 +33,13 @@ type Timeval struct {
type Timex struct { type Timex struct {
Modes uint32 Modes uint32
Pad_cgo_0 [4]byte _ [4]byte
Offset int64 Offset int64
Freq int64 Freq int64
Maxerror int64 Maxerror int64
Esterror int64 Esterror int64
Status int32 Status int32
Pad_cgo_1 [4]byte _ [4]byte
Constant int64 Constant int64
Precision int64 Precision int64
Tolerance int64 Tolerance int64
@ -48,14 +48,14 @@ type Timex struct {
Ppsfreq int64 Ppsfreq int64
Jitter int64 Jitter int64
Shift int32 Shift int32
Pad_cgo_2 [4]byte _ [4]byte
Stabil int64 Stabil int64
Jitcnt int64 Jitcnt int64
Calcnt int64 Calcnt int64
Errcnt int64 Errcnt int64
Stbcnt int64 Stbcnt int64
Tai int32 Tai int32
Pad_cgo_3 [44]byte _ [44]byte
} }
type Time_t int64 type Time_t int64
@ -169,7 +169,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]uint8 Name [256]uint8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -179,11 +179,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -258,9 +258,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -329,13 +338,13 @@ type PacketMreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen uint64 Iovlen uint64
Control *byte Control *byte
Controllen uint64 Controllen uint64
Flags int32 Flags int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -377,7 +386,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -412,6 +421,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -461,7 +471,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -602,7 +638,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [6]byte _ [6]byte
Filter *SockFilter Filter *SockFilter
} }
@ -646,12 +682,12 @@ type Sysinfo_t struct {
Freeswap uint64 Freeswap uint64
Procs uint16 Procs uint16
Pad uint16 Pad uint16
Pad_cgo_0 [4]byte _ [4]byte
Totalhigh uint64 Totalhigh uint64
Freehigh uint64 Freehigh uint64
Unit uint32 Unit uint32
X_f [0]uint8 X_f [0]uint8
Pad_cgo_1 [4]byte _ [4]byte
} }
type Utsname struct { type Utsname struct {
@ -665,11 +701,11 @@ type Utsname struct {
type Ustat_t struct { type Ustat_t struct {
Tfree int32 Tfree int32
Pad_cgo_0 [4]byte _ [4]byte
Tinode uint64 Tinode uint64
Fname [6]uint8 Fname [6]uint8
Fpack [6]uint8 Fpack [6]uint8
Pad_cgo_1 [4]byte _ [4]byte
} }
type EpollEvent struct { type EpollEvent struct {
@ -737,11 +773,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -753,13 +789,13 @@ type Taskstats struct {
Ac_comm [32]uint8 Ac_comm [32]uint8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -860,3 +896,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x40 _NCPUBITS = 0x40
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -33,13 +33,13 @@ type Timeval struct {
type Timex struct { type Timex struct {
Modes uint32 Modes uint32
Pad_cgo_0 [4]byte _ [4]byte
Offset int64 Offset int64
Freq int64 Freq int64
Maxerror int64 Maxerror int64
Esterror int64 Esterror int64
Status int32 Status int32
Pad_cgo_1 [4]byte _ [4]byte
Constant int64 Constant int64
Precision int64 Precision int64
Tolerance int64 Tolerance int64
@ -48,14 +48,14 @@ type Timex struct {
Ppsfreq int64 Ppsfreq int64
Jitter int64 Jitter int64
Shift int32 Shift int32
Pad_cgo_2 [4]byte _ [4]byte
Stabil int64 Stabil int64
Jitcnt int64 Jitcnt int64
Calcnt int64 Calcnt int64
Errcnt int64 Errcnt int64
Stbcnt int64 Stbcnt int64
Tai int32 Tai int32
Pad_cgo_3 [44]byte _ [44]byte
} }
type Time_t int64 type Time_t int64
@ -169,7 +169,7 @@ type Dirent struct {
Reclen uint16 Reclen uint16
Type uint8 Type uint8
Name [256]uint8 Name [256]uint8
Pad_cgo_0 [5]byte _ [5]byte
} }
type Fsid struct { type Fsid struct {
@ -179,11 +179,11 @@ type Fsid struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type FscryptPolicy struct { type FscryptPolicy struct {
@ -258,9 +258,18 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte _ [2]byte
Ifindex int32 Ifindex int32
Addr [8]byte Addr [8]byte
} }
@ -329,13 +338,13 @@ type PacketMreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen uint64 Iovlen uint64
Control *byte Control *byte
Controllen uint64 Controllen uint64
Flags int32 Flags int32
Pad_cgo_1 [4]byte _ [4]byte
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -377,7 +386,7 @@ type TCPInfo struct {
Probes uint8 Probes uint8
Backoff uint8 Backoff uint8
Options uint8 Options uint8
Pad_cgo_0 [2]byte _ [2]byte
Rto uint32 Rto uint32
Ato uint32 Ato uint32
Snd_mss uint32 Snd_mss uint32
@ -412,6 +421,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -461,7 +471,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -602,7 +638,7 @@ type SockFilter struct {
type SockFprog struct { type SockFprog struct {
Len uint16 Len uint16
Pad_cgo_0 [6]byte _ [6]byte
Filter *SockFilter Filter *SockFilter
} }
@ -646,12 +682,12 @@ type Sysinfo_t struct {
Freeswap uint64 Freeswap uint64
Procs uint16 Procs uint16
Pad uint16 Pad uint16
Pad_cgo_0 [4]byte _ [4]byte
Totalhigh uint64 Totalhigh uint64
Freehigh uint64 Freehigh uint64
Unit uint32 Unit uint32
X_f [0]uint8 X_f [0]uint8
Pad_cgo_1 [4]byte _ [4]byte
} }
type Utsname struct { type Utsname struct {
@ -665,11 +701,11 @@ type Utsname struct {
type Ustat_t struct { type Ustat_t struct {
Tfree int32 Tfree int32
Pad_cgo_0 [4]byte _ [4]byte
Tinode uint64 Tinode uint64
Fname [6]uint8 Fname [6]uint8
Fpack [6]uint8 Fpack [6]uint8
Pad_cgo_1 [4]byte _ [4]byte
} }
type EpollEvent struct { type EpollEvent struct {
@ -737,11 +773,11 @@ type Winsize struct {
type Taskstats struct { type Taskstats struct {
Version uint16 Version uint16
Pad_cgo_0 [2]byte _ [2]byte
Ac_exitcode uint32 Ac_exitcode uint32
Ac_flag uint8 Ac_flag uint8
Ac_nice uint8 Ac_nice uint8
Pad_cgo_1 [6]byte _ [6]byte
Cpu_count uint64 Cpu_count uint64
Cpu_delay_total uint64 Cpu_delay_total uint64
Blkio_count uint64 Blkio_count uint64
@ -753,13 +789,13 @@ type Taskstats struct {
Ac_comm [32]uint8 Ac_comm [32]uint8
Ac_sched uint8 Ac_sched uint8
Ac_pad [3]uint8 Ac_pad [3]uint8
Pad_cgo_2 [4]byte _ [4]byte
Ac_uid uint32 Ac_uid uint32
Ac_gid uint32 Ac_gid uint32
Ac_pid uint32 Ac_pid uint32
Ac_ppid uint32 Ac_ppid uint32
Ac_btime uint32 Ac_btime uint32
Pad_cgo_3 [4]byte _ [4]byte
Ac_etime uint64 Ac_etime uint64
Ac_utime uint64 Ac_utime uint64
Ac_stime uint64 Ac_stime uint64
@ -860,3 +896,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x40 _NCPUBITS = 0x40
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -257,6 +257,15 @@ type RawSockaddrHCI struct {
Channel uint16 Channel uint16
} }
type RawSockaddrL2 struct {
Family uint16
Psm uint16
Bdaddr [6]uint8
Cid uint16
Bdaddr_type uint8
_ [1]byte
}
type RawSockaddrCAN struct { type RawSockaddrCAN struct {
Family uint16 Family uint16
_ [2]byte _ [2]byte
@ -411,6 +420,7 @@ const (
SizeofSockaddrLinklayer = 0x14 SizeofSockaddrLinklayer = 0x14
SizeofSockaddrNetlink = 0xc SizeofSockaddrNetlink = 0xc
SizeofSockaddrHCI = 0x6 SizeofSockaddrHCI = 0x6
SizeofSockaddrL2 = 0xe
SizeofSockaddrCAN = 0x10 SizeofSockaddrCAN = 0x10
SizeofSockaddrALG = 0x58 SizeofSockaddrALG = 0x58
SizeofSockaddrVM = 0x10 SizeofSockaddrVM = 0x10
@ -460,7 +470,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2c IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd
@ -877,3 +913,9 @@ const (
_CPU_SETSIZE = 0x400 _CPU_SETSIZE = 0x400
_NCPUBITS = 0x40 _NCPUBITS = 0x40
) )
const (
BDADDR_BREDR = 0x0
BDADDR_LE_PUBLIC = 0x1
BDADDR_LE_RANDOM = 0x2
)

View file

@ -405,7 +405,33 @@ const (
IFLA_LINKINFO = 0x12 IFLA_LINKINFO = 0x12
IFLA_NET_NS_PID = 0x13 IFLA_NET_NS_PID = 0x13
IFLA_IFALIAS = 0x14 IFLA_IFALIAS = 0x14
IFLA_MAX = 0x2a IFLA_NUM_VF = 0x15
IFLA_VFINFO_LIST = 0x16
IFLA_STATS64 = 0x17
IFLA_VF_PORTS = 0x18
IFLA_PORT_SELF = 0x19
IFLA_AF_SPEC = 0x1a
IFLA_GROUP = 0x1b
IFLA_NET_NS_FD = 0x1c
IFLA_EXT_MASK = 0x1d
IFLA_PROMISCUITY = 0x1e
IFLA_NUM_TX_QUEUES = 0x1f
IFLA_NUM_RX_QUEUES = 0x20
IFLA_CARRIER = 0x21
IFLA_PHYS_PORT_ID = 0x22
IFLA_CARRIER_CHANGES = 0x23
IFLA_PHYS_SWITCH_ID = 0x24
IFLA_LINK_NETNSID = 0x25
IFLA_PHYS_PORT_NAME = 0x26
IFLA_PROTO_DOWN = 0x27
IFLA_GSO_MAX_SEGS = 0x28
IFLA_GSO_MAX_SIZE = 0x29
IFLA_PAD = 0x2a
IFLA_XDP = 0x2b
IFLA_EVENT = 0x2c
IFLA_NEW_NETNSID = 0x2d
IFLA_IF_NETNSID = 0x2e
IFLA_MAX = 0x2e
RT_SCOPE_UNIVERSE = 0x0 RT_SCOPE_UNIVERSE = 0x0
RT_SCOPE_SITE = 0xc8 RT_SCOPE_SITE = 0xc8
RT_SCOPE_LINK = 0xfd RT_SCOPE_LINK = 0xfd

View file

@ -103,6 +103,15 @@ const (
PathMax = 0x400 PathMax = 0x400
) )
const (
FADV_NORMAL = 0x0
FADV_RANDOM = 0x1
FADV_SEQUENTIAL = 0x2
FADV_WILLNEED = 0x3
FADV_DONTNEED = 0x4
FADV_NOREUSE = 0x5
)
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
Len uint8 Len uint8
Family uint8 Family uint8

View file

@ -107,6 +107,15 @@ const (
PathMax = 0x400 PathMax = 0x400
) )
const (
FADV_NORMAL = 0x0
FADV_RANDOM = 0x1
FADV_SEQUENTIAL = 0x2
FADV_WILLNEED = 0x3
FADV_DONTNEED = 0x4
FADV_NOREUSE = 0x5
)
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
Len uint8 Len uint8
Family uint8 Family uint8

View file

@ -108,6 +108,15 @@ const (
PathMax = 0x400 PathMax = 0x400
) )
const (
FADV_NORMAL = 0x0
FADV_RANDOM = 0x1
FADV_SEQUENTIAL = 0x2
FADV_WILLNEED = 0x3
FADV_DONTNEED = 0x4
FADV_NOREUSE = 0x5
)
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
Len uint8 Len uint8
Family uint8 Family uint8

View file

@ -105,7 +105,7 @@ type Stat_t struct {
Mtim Timespec Mtim Timespec
Ctim Timespec Ctim Timespec
Blksize int32 Blksize int32
Pad_cgo_0 [4]byte _ [4]byte
Blocks int64 Blocks int64
Fstype [16]int8 Fstype [16]int8
} }
@ -113,7 +113,7 @@ type Stat_t struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Sysid int32 Sysid int32
@ -126,7 +126,7 @@ type Dirent struct {
Off int64 Off int64
Reclen uint16 Reclen uint16
Name [1]int8 Name [1]int8
Pad_cgo_0 [5]byte _ [5]byte
} }
type _Fsblkcnt_t uint64 type _Fsblkcnt_t uint64
@ -213,13 +213,13 @@ type IPv6Mreq struct {
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_cgo_0 [4]byte _ [4]byte
Iov *Iovec Iov *Iovec
Iovlen int32 Iovlen int32
Pad_cgo_1 [4]byte _ [4]byte
Accrights *int8 Accrights *int8
Accrightslen int32 Accrightslen int32
Pad_cgo_2 [4]byte _ [4]byte
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -275,7 +275,7 @@ type Ustat_t struct {
Tinode uint64 Tinode uint64
Fname [6]int8 Fname [6]int8
Fpack [6]int8 Fpack [6]int8
Pad_cgo_0 [4]byte _ [4]byte
} }
const ( const (
@ -301,7 +301,7 @@ type IfMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Data IfData Data IfData
} }
@ -309,7 +309,7 @@ type IfData struct {
Type uint8 Type uint8
Addrlen uint8 Addrlen uint8
Hdrlen uint8 Hdrlen uint8
Pad_cgo_0 [1]byte _ [1]byte
Mtu uint32 Mtu uint32
Metric uint32 Metric uint32
Baudrate uint32 Baudrate uint32
@ -334,7 +334,7 @@ type IfaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Metric int32 Metric int32
} }
@ -343,7 +343,7 @@ type RtMsghdr struct {
Version uint8 Version uint8
Type uint8 Type uint8
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
Flags int32 Flags int32
Addrs int32 Addrs int32
Pid int32 Pid int32
@ -389,7 +389,7 @@ type BpfStat struct {
type BpfProgram struct { type BpfProgram struct {
Len uint32 Len uint32
Pad_cgo_0 [4]byte _ [4]byte
Insns *BpfInsn Insns *BpfInsn
} }
@ -410,7 +410,7 @@ type BpfHdr struct {
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type Termios struct { type Termios struct {
@ -419,7 +419,7 @@ type Termios struct {
Cflag uint32 Cflag uint32
Lflag uint32 Lflag uint32
Cc [19]uint8 Cc [19]uint8
Pad_cgo_0 [1]byte _ [1]byte
} }
type Termio struct { type Termio struct {
@ -429,7 +429,7 @@ type Termio struct {
Lflag uint16 Lflag uint16
Line int8 Line int8
Cc [8]uint8 Cc [8]uint8
Pad_cgo_0 [1]byte _ [1]byte
} }
type Winsize struct { type Winsize struct {

View file

@ -113,12 +113,10 @@ func OpenRemoteKey(pcname string, k Key) (Key, error) {
// The parameter n controls the number of returned names, // The parameter n controls the number of returned names,
// analogous to the way os.File.Readdirnames works. // analogous to the way os.File.Readdirnames works.
func (k Key) ReadSubKeyNames(n int) ([]string, error) { func (k Key) ReadSubKeyNames(n int) ([]string, error) {
ki, err := k.Stat() names := make([]string, 0)
if err != nil { // Registry key size limit is 255 bytes and described there:
return nil, err // https://msdn.microsoft.com/library/windows/desktop/ms724872.aspx
} buf := make([]uint16, 256) //plus extra room for terminating zero byte
names := make([]string, 0, ki.SubKeyCount)
buf := make([]uint16, ki.MaxSubKeyLen+1) // extra room for terminating zero byte
loopItems: loopItems:
for i := uint32(0); ; i++ { for i := uint32(0); ; i++ {
if n > 0 { if n > 0 {

View file

@ -29,7 +29,7 @@ func randKeyName(prefix string) string {
} }
func TestReadSubKeyNames(t *testing.T) { func TestReadSubKeyNames(t *testing.T) {
k, err := registry.OpenKey(registry.CLASSES_ROOT, "TypeLib", registry.ENUMERATE_SUB_KEYS|registry.QUERY_VALUE) k, err := registry.OpenKey(registry.CLASSES_ROOT, "TypeLib", registry.ENUMERATE_SUB_KEYS)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }

View file

@ -11,11 +11,14 @@
// system, set $GOOS and $GOARCH to the desired system. For example, if // system, set $GOOS and $GOARCH to the desired system. For example, if
// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS // you want to view documentation for freebsd/arm on linux/amd64, set $GOOS
// to freebsd and $GOARCH to arm. // to freebsd and $GOARCH to arm.
//
// The primary use of this package is inside other packages that provide a more // The primary use of this package is inside other packages that provide a more
// portable interface to the system, such as "os", "time" and "net". Use // portable interface to the system, such as "os", "time" and "net". Use
// those packages rather than this one if you can. // those packages rather than this one if you can.
//
// For details of the functions and data types in this package consult // For details of the functions and data types in this package consult
// the manuals for the appropriate operating system. // the manuals for the appropriate operating system.
//
// These calls return err == nil to indicate success; otherwise // These calls return err == nil to indicate success; otherwise
// err represents an operating system error describing the failure and // err represents an operating system error describing the failure and
// holds a value of type syscall.Errno. // holds a value of type syscall.Errno.