]> Cypherpunks repositories - gostls13.git/commitdiff
cmd: update vendored x/tools
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 20 Mar 2019 16:17:56 +0000 (16:17 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 20 Mar 2019 16:48:15 +0000 (16:48 +0000)
This lets us get rid of a handful of cmd/vet/whitelist/all.txt entries,
since the stdmethods pass is now happy with the encoding/xml package.

Change-Id: I9de2190984dd00342903967262790c7f6b1f0a75
Reviewed-on: https://go-review.googlesource.com/c/go/+/168458
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
69 files changed:
src/cmd/go.mod
src/cmd/go.sum
src/cmd/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
src/cmd/vendor/golang.org/x/sys/unix/mkall.sh
src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh
src/cmd/vendor/golang.org/x/sys/unix/mksyscall.go
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd.go
src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go
src/cmd/vendor/golang.org/x/sys/unix/types_openbsd.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
src/cmd/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
src/cmd/vendor/golang.org/x/sys/windows/dll_windows.go
src/cmd/vendor/golang.org/x/sys/windows/security_windows.go
src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go
src/cmd/vendor/modules.txt
src/cmd/vet/all/whitelist/all.txt

index dd5dccd826c5407b6d937ec9aed7719093c8ff8c..e0ac8cf6ebe1098f2456db46373377d7b4fff053 100644 (file)
@@ -6,7 +6,7 @@ require (
        github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57
        github.com/ianlancetaylor/demangle v0.0.0-20180524225900-fc6590592b44 // indirect
        golang.org/x/arch v0.0.0-20181203225421-5a4828bb7045
-       golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67
-       golang.org/x/sys v0.0.0-20190225065934-cc5685c2db12 // indirect
-       golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3
+       golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a
+       golang.org/x/sys v0.0.0-20190318195719-6c81ef8f67ca // indirect
+       golang.org/x/tools v0.0.0-20190320160634-b6b7807791df
 )
index 4492808399ba6ac9148c721fdbfa817027d96c47..57bb4fa0127591dab67c22e4b56030a93c4fa3f6 100644 (file)
@@ -4,10 +4,13 @@ github.com/ianlancetaylor/demangle v0.0.0-20180524225900-fc6590592b44 h1:pKqc8lA
 github.com/ianlancetaylor/demangle v0.0.0-20180524225900-fc6590592b44/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
 golang.org/x/arch v0.0.0-20181203225421-5a4828bb7045 h1:Pn8fQdvx+z1avAi7fdM2kRYWQNxGlavNDSyzrQg2SsU=
 golang.org/x/arch v0.0.0-20181203225421-5a4828bb7045/go.mod h1:cYlCBUl1MsqxdiKgmc4uh7TxZfWSFLOGSRR090WDxt8=
-golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67 h1:ng3VDlRp5/DHpSWl02R4rM9I+8M2rhmsuLwAMmkLQWE=
-golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/sys v0.0.0-20190225065934-cc5685c2db12 h1:Zw7eRv6INHGfu15LVRN1vrrwusJbnfJjAZn3D1VkQIE=
-golang.org/x/sys v0.0.0-20190225065934-cc5685c2db12/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3 h1:2oZsfYnKfYzL4I57uYiRFsUf0bqlLkiuw8nnj3+voUA=
-golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a h1:YX8ljsm6wXlHZO+aRz9Exqr0evNhKRNe5K/gi+zKh4U=
+golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190318195719-6c81ef8f67ca h1:o2TLx1bGN3W+Ei0EMU5fShLupLmTOU95KvJJmfYhAzM=
+golang.org/x/sys v0.0.0-20190318195719-6c81ef8f67ca/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/tools v0.0.0-20190320160634-b6b7807791df h1:taFQs++Xc5kswn4bzUZyWI+ShGK1r9pFxQAiVZaRfto=
+golang.org/x/tools v0.0.0-20190320160634-b6b7807791df/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
index 6cb8a95038c983c69d89c570f499d8bbacd18913..5cfdf8f3f0379fcf52223cb455268f6d95eb6d9e 100644 (file)
@@ -64,13 +64,15 @@ func Restore(fd int, state *State) error {
        return windows.SetConsoleMode(windows.Handle(fd), state.mode)
 }
 
-// GetSize returns the dimensions of the given terminal.
+// GetSize returns the visible dimensions of the given terminal.
+//
+// These dimensions don't include any scrollback buffer height.
 func GetSize(fd int) (width, height int, err error) {
        var info windows.ConsoleScreenBufferInfo
        if err := windows.GetConsoleScreenBufferInfo(windows.Handle(fd), &info); err != nil {
                return 0, 0, err
        }
-       return int(info.Size.X), int(info.Size.Y), nil
+       return int(info.Window.Right - info.Window.Left + 1), int(info.Window.Bottom - info.Window.Top + 1), nil
 }
 
 // ReadPassword reads a line of input from a terminal without local echo.  This
index 75152f99b20b4c8a4ea16752bba82834122fdcc1..1e5c59d0dd2ea32766ae526c644edc9d1a4d56b0 100644 (file)
@@ -207,8 +207,6 @@ esac
        esac
        if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
        if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
-       if [ -n "$mktypes" ]; then
-               echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go";
+       if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi
        if [ -n "$mkasm" ]; then echo "$mkasm $GOARCH"; fi
-       fi
 ) | $run
index 6a23484e5b5b6d650ea6a9db1777145f4a7cf8b1..cfb61ba049794460174087666d74d69063976527 100644 (file)
@@ -192,6 +192,7 @@ struct ltchars {
 #include <linux/if_packet.h>
 #include <linux/if_addr.h>
 #include <linux/falloc.h>
+#include <linux/fanotify.h>
 #include <linux/filter.h>
 #include <linux/fs.h>
 #include <linux/kexec.h>
@@ -501,6 +502,7 @@ ccflags="$@"
                $2 !~ "WMESGLEN" &&
                $2 ~ /^W[A-Z0-9]+$/ ||
                $2 ~/^PPPIOC/ ||
+               $2 ~ /^FAN_|FANOTIFY_/ ||
                $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
                $2 ~ /^__WCOREFLAG$/ {next}
                $2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
index e06e4253ea3c3a7f03f49eb0662806808cb4e4c5..bed93d4890749b165fa01f89e833732bef1cfeea 100644 (file)
@@ -228,7 +228,7 @@ func main() {
                                        } else {
                                                args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
                                        }
-                               } else if p.Type == "int64" && endianness != "" {
+                               } else if (p.Type == "int64" || p.Type == "uint64") && endianness != "" {
                                        if len(args)%2 == 1 && *arm {
                                                // arm abi specifies 64-bit argument uses
                                                // (even, odd) pair
index 5f9ae233a7a62af88a77d9d0142aa78f546394e2..26e8b36cfc14a8f1fde9ad98dce9ec1126730411 100644 (file)
@@ -25,8 +25,8 @@ func cmsgAlignOf(salen int) int {
                if SizeofPtr == 8 {
                        salign = 4
                }
-       case "openbsd":
-               // OpenBSD armv7 requires 64-bit alignment.
+       case "netbsd", "openbsd":
+               // NetBSD and OpenBSD armv7 require 64-bit alignment.
                if runtime.GOARCH == "arm" {
                        salign = 8
                }
index a76826f443616dfc008d50696dd14a98fbb113dd..fd83d87509f384cd0664ce958998a98c02b2867a 100644 (file)
@@ -545,3 +545,5 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
 //sys  gettimeofday(tv *Timeval, tzp *Timezone) (err error)
 //sysnb        Time(t *Time_t) (tt Time_t, err error)
 //sys  Utime(path string, buf *Utimbuf) (err error)
+
+//sys  Getsystemcfg(label int) (n uint64)
index 4bb86aa0fe5123ba07ae6ac239ad0c9db3b209b0..7e429ab2f9855943305a7f0003fa47c34f2937dc 100644 (file)
@@ -39,6 +39,20 @@ func Creat(path string, mode uint32) (fd int, err error) {
        return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
 }
 
+//sys  FanotifyInit(flags uint, event_f_flags uint) (fd int, err error)
+//sys  fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error)
+
+func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) (err error) {
+       if pathname == "" {
+               return fanotifyMark(fd, flags, mask, dirFd, nil)
+       }
+       p, err := BytePtrFromString(pathname)
+       if err != nil {
+               return err
+       }
+       return fanotifyMark(fd, flags, mask, dirFd, p)
+}
+
 //sys  fchmodat(dirfd int, path string, mode uint32) (err error)
 
 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
@@ -990,10 +1004,28 @@ func GetsockoptString(fd, level, opt int) (string, error) {
        return string(buf[:vallen-1]), nil
 }
 
+func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) {
+       var value TpacketStats
+       vallen := _Socklen(SizeofTpacketStats)
+       err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
+       return &value, err
+}
+
+func GetsockoptTpacketStatsV3(fd, level, opt int) (*TpacketStatsV3, error) {
+       var value TpacketStatsV3
+       vallen := _Socklen(SizeofTpacketStatsV3)
+       err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
+       return &value, err
+}
+
 func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
        return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
 }
 
+func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) error {
+       return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
+}
+
 // SetsockoptSockFprog attaches a classic BPF or an extended BPF program to a
 // socket to filter incoming packets.  See 'man 7 socket' for usage information.
 func SetsockoptSockFprog(fd, level, opt int, fprog *SockFprog) error {
@@ -1008,6 +1040,14 @@ func SetsockoptCanRawFilter(fd, level, opt int, filter []CanFilter) error {
        return setsockopt(fd, level, opt, p, uintptr(len(filter)*SizeofCanFilter))
 }
 
+func SetsockoptTpacketReq(fd, level, opt int, tp *TpacketReq) error {
+       return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
+}
+
+func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error {
+       return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
+}
+
 // Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
 
 // KeyctlInt calls keyctl commands in which each argument is an int.
index cda3559419c027b47a60037e510a9d3149b6a08c..3a3c37b4c8b6d8b1b4ac896c9d0b54e2bb59d84d 100644 (file)
@@ -19,12 +19,18 @@ func setTimeval(sec, usec int64) Timeval {
        return Timeval{Sec: int32(sec), Usec: int32(usec)}
 }
 
+//sysnb        pipe(p *[2]_C_int) (err error)
+
 func Pipe(p []int) (err error) {
        if len(p) != 2 {
                return EINVAL
        }
        var pp [2]_C_int
+       // Try pipe2 first for Android O, then try pipe for kernel 2.6.23.
        err = pipe2(&pp, 0)
+       if err == ENOSYS {
+               err = pipe(&pp)
+       }
        p[0] = int(pp[0])
        p[1] = int(pp[1])
        return
index 6d567224017fd302782887ab7f0a628b92c8702f..cb20b15d5d2bfb424881c6ef3b06ee191efe82ed 100644 (file)
@@ -208,3 +208,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
        }
        return ppoll(&fds[0], len(fds), ts, nil)
 }
+
+//sys  kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
+
+func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
+       cmdlineLen := len(cmdline)
+       if cmdlineLen > 0 {
+               // Account for the additional NULL byte added by
+               // BytePtrFromString in kexecFileLoad. The kexec_file_load
+               // syscall expects a NULL-terminated string.
+               cmdlineLen++
+       }
+       return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
+}
index f23ca451c7d22ff29f5c893b6a166e645d0014db..6230f64052003973785d3b622d28f0b105edb502 100644 (file)
@@ -211,3 +211,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
        return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0)
 }
+
+//sys  kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
+
+func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
+       cmdlineLen := len(cmdline)
+       if cmdlineLen > 0 {
+               // Account for the additional NULL byte added by
+               // BytePtrFromString in kexecFileLoad. The kexec_file_load
+               // syscall expects a NULL-terminated string.
+               cmdlineLen++
+       }
+       return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
+}
index 687999549c80048ce621bf1043a92cef8cdeac5d..c8648ec02678713de430345ed3f10552a42566a0 100644 (file)
@@ -43,6 +43,23 @@ func nametomib(name string) (mib []_C_int, err error) {
        return nil, EINVAL
 }
 
+func SysctlClockinfo(name string) (*Clockinfo, error) {
+       mib, err := sysctlmib(name)
+       if err != nil {
+               return nil, err
+       }
+
+       n := uintptr(SizeofClockinfo)
+       var ci Clockinfo
+       if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
+               return nil, err
+       }
+       if n != SizeofClockinfo {
+               return nil, EIO
+       }
+       return &ci, nil
+}
+
 func SysctlUvmexp(name string) (*Uvmexp, error) {
        mib, err := sysctlmib(name)
        if err != nil {
index 33583a22b67c42b478ed31295c8715285dfbf44e..ae59fba0c1e81651a5803fb6731415678d2dfd35 100644 (file)
@@ -28,6 +28,11 @@ var (
        errENOENT error = syscall.ENOENT
 )
 
+var (
+       signalNameMapOnce sync.Once
+       signalNameMap     map[string]syscall.Signal
+)
+
 // errnoErr returns common boxed Errno values, to prevent
 // allocations at runtime.
 func errnoErr(e syscall.Errno) error {
@@ -66,6 +71,19 @@ func SignalName(s syscall.Signal) string {
        return ""
 }
 
+// SignalNum returns the syscall.Signal for signal named s,
+// or 0 if a signal with such name is not found.
+// The signal name should start with "SIG".
+func SignalNum(s string) syscall.Signal {
+       signalNameMapOnce.Do(func() {
+               signalNameMap = make(map[string]syscall.Signal)
+               for _, signal := range signalList {
+                       signalNameMap[signal.name] = signal.num
+               }
+       })
+       return signalNameMap[s]
+}
+
 // clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
 func clen(n []byte) int {
        i := bytes.IndexByte(n, 0)
@@ -377,3 +395,22 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
 func Exec(argv0 string, argv []string, envv []string) error {
        return syscall.Exec(argv0, argv, envv)
 }
+
+// Lutimes sets the access and modification times tv on path. If path refers to
+// a symlink, it is not dereferenced and the timestamps are set on the symlink.
+// If tv is nil, the access and modification times are set to the current time.
+// Otherwise tv must contain exactly 2 elements, with access time as the first
+// element and modification time as the second element.
+func Lutimes(path string, tv []Timeval) error {
+       if tv == nil {
+               return UtimesNanoAt(AT_FDCWD, path, nil, AT_SYMLINK_NOFOLLOW)
+       }
+       if len(tv) != 2 {
+               return EINVAL
+       }
+       ts := []Timespec{
+               NsecToTimespec(TimevalToNsec(tv[0])),
+               NsecToTimespec(TimevalToNsec(tv[1])),
+       }
+       return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW)
+}
index 4e5e57f9a61a09dce8bd3ea7501038aefc870bab..8aafbe4469bfaf4e26df54c4550349490a70c342 100644 (file)
@@ -274,3 +274,9 @@ type Utsname C.struct_utsname
 const SizeofUvmexp = C.sizeof_struct_uvmexp
 
 type Uvmexp C.struct_uvmexp
+
+// Clockinfo
+
+const SizeofClockinfo = C.sizeof_struct_clockinfo
+
+type Clockinfo C.struct_clockinfo
index cb89df8f543ebd5d78d6181158f5fcf3d9af0093..9e99d67cb8a38034cd54cc9fb35adefc7e00f15c 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x80041270
        BLKBSZSET                            = 0x40041271
@@ -486,6 +487,50 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
@@ -493,6 +538,7 @@ const (
        FFDLY                                = 0x8000
        FLUSHO                               = 0x1000
        FP_XSTATE_MAGIC2                     = 0x46505845
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -514,7 +560,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1134,7 +1180,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1398,6 +1444,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2232,6 +2284,7 @@ const (
        TUNGETVNETBE                         = 0x800454df
        TUNGETVNETHDRSZ                      = 0x800454d7
        TUNGETVNETLE                         = 0x800454dd
+       TUNSETCARRIER                        = 0x400454e2
        TUNSETDEBUG                          = 0x400454c9
        TUNSETFILTEREBPF                     = 0x800454e1
        TUNSETGROUP                          = 0x400454ce
index 73c9b88ca78ee352d7f71cdbf0bda00e56ca4953..e3091f1e30b640b4d206cd2f91ac0aefe745a9d3 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x80081270
        BLKBSZSET                            = 0x40081271
@@ -486,6 +487,50 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
@@ -493,6 +538,7 @@ const (
        FFDLY                                = 0x8000
        FLUSHO                               = 0x1000
        FP_XSTATE_MAGIC2                     = 0x46505845
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -514,7 +560,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1134,7 +1180,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1398,6 +1444,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2233,6 +2285,7 @@ const (
        TUNGETVNETBE                         = 0x800454df
        TUNGETVNETHDRSZ                      = 0x800454d7
        TUNGETVNETLE                         = 0x800454dd
+       TUNSETCARRIER                        = 0x400454e2
        TUNSETDEBUG                          = 0x400454c9
        TUNSETFILTEREBPF                     = 0x800454e1
        TUNSETGROUP                          = 0x400454ce
index f1ef82f57edd79531261faa55e56a2951f73b58e..a75dfebcc48ccf49767b4a57d73d334e9166611c 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x80041270
        BLKBSZSET                            = 0x40041271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x8000
        FFDLY                                = 0x8000
        FLUSHO                               = 0x1000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1132,7 +1178,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1396,6 +1442,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2239,6 +2291,7 @@ const (
        TUNGETVNETBE                         = 0x800454df
        TUNGETVNETHDRSZ                      = 0x800454d7
        TUNGETVNETLE                         = 0x800454dd
+       TUNSETCARRIER                        = 0x400454e2
        TUNSETDEBUG                          = 0x400454c9
        TUNSETFILTEREBPF                     = 0x800454e1
        TUNSETGROUP                          = 0x400454ce
index cf17c99069440a25efc4726b92f7c2d733fb315e..393ad7c91b28f7a2ef0a3120b88ed5340aa5052b 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x80081270
        BLKBSZSET                            = 0x40081271
@@ -488,6 +489,50 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
@@ -495,6 +540,7 @@ const (
        FFDLY                                = 0x8000
        FLUSHO                               = 0x1000
        FPSIMD_MAGIC                         = 0x46508001
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -516,7 +562,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1135,7 +1181,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1399,6 +1445,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2224,6 +2276,7 @@ const (
        TUNGETVNETBE                         = 0x800454df
        TUNGETVNETHDRSZ                      = 0x800454d7
        TUNGETVNETLE                         = 0x800454dd
+       TUNSETCARRIER                        = 0x400454e2
        TUNSETDEBUG                          = 0x400454c9
        TUNSETFILTEREBPF                     = 0x800454e1
        TUNSETGROUP                          = 0x400454ce
index 380913c4fce1400ab0a81a1496c93bda132f2f84..ba1beb90935e0ac8cd2226408290181ad177ea75 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x40041270
        BLKBSZSET                            = 0x80041271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x8000
        FFDLY                                = 0x8000
        FLUSHO                               = 0x2000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1132,7 +1178,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1396,6 +1442,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2234,6 +2286,7 @@ const (
        TUNGETVNETBE                         = 0x400454df
        TUNGETVNETHDRSZ                      = 0x400454d7
        TUNGETVNETLE                         = 0x400454dd
+       TUNSETCARRIER                        = 0x800454e2
        TUNSETDEBUG                          = 0x800454c9
        TUNSETFILTEREBPF                     = 0x400454e1
        TUNSETGROUP                          = 0x800454ce
index fb82529ac93ca18d08a6cea1cc710fb809302311..efba3e5c9df07ab2b73c4ac8fef9c94dea4764cf 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x40081270
        BLKBSZSET                            = 0x80081271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x8000
        FFDLY                                = 0x8000
        FLUSHO                               = 0x2000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1132,7 +1178,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1396,6 +1442,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2234,6 +2286,7 @@ const (
        TUNGETVNETBE                         = 0x400454df
        TUNGETVNETHDRSZ                      = 0x400454d7
        TUNGETVNETLE                         = 0x400454dd
+       TUNSETCARRIER                        = 0x800454e2
        TUNSETDEBUG                          = 0x800454c9
        TUNSETFILTEREBPF                     = 0x400454e1
        TUNSETGROUP                          = 0x800454ce
index 677d9045624b0ac287d13b40c585cdb0b31022f6..d3f6e9065249914d3265d92f7eda8f7b56b5326e 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x40081270
        BLKBSZSET                            = 0x80081271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x8000
        FFDLY                                = 0x8000
        FLUSHO                               = 0x2000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1132,7 +1178,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1396,6 +1442,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2234,6 +2286,7 @@ const (
        TUNGETVNETBE                         = 0x400454df
        TUNGETVNETHDRSZ                      = 0x400454d7
        TUNGETVNETLE                         = 0x400454dd
+       TUNSETCARRIER                        = 0x800454e2
        TUNSETDEBUG                          = 0x800454c9
        TUNSETFILTEREBPF                     = 0x400454e1
        TUNSETGROUP                          = 0x800454ce
index 7ddd09d7824e904ce0f6c12e07be32dc43a80ea4..7275cd876b317fafe03612e2e2c0e11b2889f4a1 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x40041270
        BLKBSZSET                            = 0x80041271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x8000
        FFDLY                                = 0x8000
        FLUSHO                               = 0x2000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1132,7 +1178,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1396,6 +1442,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2234,6 +2286,7 @@ const (
        TUNGETVNETBE                         = 0x400454df
        TUNGETVNETHDRSZ                      = 0x400454d7
        TUNGETVNETLE                         = 0x400454dd
+       TUNSETCARRIER                        = 0x800454e2
        TUNSETDEBUG                          = 0x800454c9
        TUNSETFILTEREBPF                     = 0x400454e1
        TUNSETGROUP                          = 0x800454ce
index ebaca417b461308438f18904a1b6e08881ada125..7586a134ef754cbf99e3c62ed76d1f87663fdba1 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x40081270
        BLKBSZSET                            = 0x80081271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x4000
        FFDLY                                = 0x4000
        FLUSHO                               = 0x800000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1131,7 +1177,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1398,6 +1444,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2294,6 +2346,7 @@ const (
        TUNGETVNETBE                         = 0x400454df
        TUNGETVNETHDRSZ                      = 0x400454d7
        TUNGETVNETLE                         = 0x400454dd
+       TUNSETCARRIER                        = 0x800454e2
        TUNSETDEBUG                          = 0x800454c9
        TUNSETFILTEREBPF                     = 0x400454e1
        TUNSETGROUP                          = 0x800454ce
index 02938cb6ed45744f2ee4310d321c7b55795b8b7a..b861ec78347240a87e085ec5c6383bf944284b73 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x40081270
        BLKBSZSET                            = 0x80081271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x4000
        FFDLY                                = 0x4000
        FLUSHO                               = 0x800000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1131,7 +1177,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1398,6 +1444,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2294,6 +2346,7 @@ const (
        TUNGETVNETBE                         = 0x400454df
        TUNGETVNETHDRSZ                      = 0x400454d7
        TUNGETVNETLE                         = 0x400454dd
+       TUNSETCARRIER                        = 0x800454e2
        TUNSETDEBUG                          = 0x800454c9
        TUNSETFILTEREBPF                     = 0x400454e1
        TUNSETGROUP                          = 0x800454ce
index 5aea4b9093ade4e8ecd2cdbcf93929e664d0b560..a321ec23f466233328d25bd9e271137a1c9c642f 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x80081270
        BLKBSZSET                            = 0x40081271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x8000
        FFDLY                                = 0x8000
        FLUSHO                               = 0x1000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1132,7 +1178,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1396,6 +1442,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2220,6 +2272,7 @@ const (
        TUNGETVNETBE                         = 0x800454df
        TUNGETVNETHDRSZ                      = 0x800454d7
        TUNGETVNETLE                         = 0x800454dd
+       TUNSETCARRIER                        = 0x400454e2
        TUNSETDEBUG                          = 0x400454c9
        TUNSETFILTEREBPF                     = 0x800454e1
        TUNSETGROUP                          = 0x400454ce
index 7f7c2e3e2fe1b9a06a03ee567426a858c9f06017..f6c99164ffcca243b5c8009ca865e48f8650662a 100644 (file)
@@ -174,6 +174,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x80081270
        BLKBSZSET                            = 0x40081271
@@ -486,12 +487,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x8000
        FFDLY                                = 0x8000
        FLUSHO                               = 0x1000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -513,7 +559,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1132,7 +1178,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1396,6 +1442,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2293,6 +2345,7 @@ const (
        TUNGETVNETBE                         = 0x800454df
        TUNGETVNETHDRSZ                      = 0x800454d7
        TUNGETVNETLE                         = 0x800454dd
+       TUNSETCARRIER                        = 0x400454e2
        TUNSETDEBUG                          = 0x400454c9
        TUNSETFILTEREBPF                     = 0x800454e1
        TUNSETGROUP                          = 0x400454ce
index 968e21fd680b838f799e11d633ad38050b5db957..c1e95e29cbcafc1e1c53be395549f056348e30a9 100644 (file)
@@ -177,6 +177,7 @@ const (
        B9600                                = 0xd
        BALLOON_KVM_MAGIC                    = 0x13661366
        BDEVFS_MAGIC                         = 0x62646576
+       BINDERFS_SUPER_MAGIC                 = 0x6c6f6f70
        BINFMTFS_MAGIC                       = 0x42494e4d
        BLKBSZGET                            = 0x40081270
        BLKBSZSET                            = 0x80081271
@@ -490,12 +491,57 @@ const (
        FALLOC_FL_PUNCH_HOLE                 = 0x2
        FALLOC_FL_UNSHARE_RANGE              = 0x40
        FALLOC_FL_ZERO_RANGE                 = 0x10
+       FANOTIFY_METADATA_VERSION            = 0x3
+       FAN_ACCESS                           = 0x1
+       FAN_ACCESS_PERM                      = 0x20000
+       FAN_ALLOW                            = 0x1
+       FAN_ALL_CLASS_BITS                   = 0xc
+       FAN_ALL_EVENTS                       = 0x3b
+       FAN_ALL_INIT_FLAGS                   = 0x3f
+       FAN_ALL_MARK_FLAGS                   = 0xff
+       FAN_ALL_OUTGOING_EVENTS              = 0x3403b
+       FAN_ALL_PERM_EVENTS                  = 0x30000
+       FAN_AUDIT                            = 0x10
+       FAN_CLASS_CONTENT                    = 0x4
+       FAN_CLASS_NOTIF                      = 0x0
+       FAN_CLASS_PRE_CONTENT                = 0x8
+       FAN_CLOEXEC                          = 0x1
+       FAN_CLOSE                            = 0x18
+       FAN_CLOSE_NOWRITE                    = 0x10
+       FAN_CLOSE_WRITE                      = 0x8
+       FAN_DENY                             = 0x2
+       FAN_ENABLE_AUDIT                     = 0x40
+       FAN_EVENT_METADATA_LEN               = 0x18
+       FAN_EVENT_ON_CHILD                   = 0x8000000
+       FAN_MARK_ADD                         = 0x1
+       FAN_MARK_DONT_FOLLOW                 = 0x4
+       FAN_MARK_FILESYSTEM                  = 0x100
+       FAN_MARK_FLUSH                       = 0x80
+       FAN_MARK_IGNORED_MASK                = 0x20
+       FAN_MARK_IGNORED_SURV_MODIFY         = 0x40
+       FAN_MARK_INODE                       = 0x0
+       FAN_MARK_MOUNT                       = 0x10
+       FAN_MARK_ONLYDIR                     = 0x8
+       FAN_MARK_REMOVE                      = 0x2
+       FAN_MODIFY                           = 0x2
+       FAN_NOFD                             = -0x1
+       FAN_NONBLOCK                         = 0x2
+       FAN_ONDIR                            = 0x40000000
+       FAN_OPEN                             = 0x20
+       FAN_OPEN_EXEC                        = 0x1000
+       FAN_OPEN_EXEC_PERM                   = 0x40000
+       FAN_OPEN_PERM                        = 0x10000
+       FAN_Q_OVERFLOW                       = 0x4000
+       FAN_REPORT_TID                       = 0x100
+       FAN_UNLIMITED_MARKS                  = 0x20
+       FAN_UNLIMITED_QUEUE                  = 0x10
        FD_CLOEXEC                           = 0x1
        FD_SETSIZE                           = 0x400
        FF0                                  = 0x0
        FF1                                  = 0x8000
        FFDLY                                = 0x8000
        FLUSHO                               = 0x1000
+       FS_ENCRYPTION_MODE_ADIANTUM          = 0x9
        FS_ENCRYPTION_MODE_AES_128_CBC       = 0x5
        FS_ENCRYPTION_MODE_AES_128_CTS       = 0x6
        FS_ENCRYPTION_MODE_AES_256_CBC       = 0x3
@@ -517,7 +563,7 @@ const (
        FS_POLICY_FLAGS_PAD_4                = 0x0
        FS_POLICY_FLAGS_PAD_8                = 0x1
        FS_POLICY_FLAGS_PAD_MASK             = 0x3
-       FS_POLICY_FLAGS_VALID                = 0x3
+       FS_POLICY_FLAGS_VALID                = 0x7
        FUTEXFS_SUPER_MAGIC                  = 0xbad1dea
        F_ADD_SEALS                          = 0x409
        F_DUPFD                              = 0x0
@@ -1136,7 +1182,7 @@ const (
        NETLINK_UNUSED                       = 0x1
        NETLINK_USERSOCK                     = 0x2
        NETLINK_XFRM                         = 0x6
-       NETNSA_MAX                           = 0x3
+       NETNSA_MAX                           = 0x5
        NETNSA_NSID_NOT_ASSIGNED             = -0x1
        NFNETLINK_V0                         = 0x0
        NFNLGRP_ACCT_QUOTA                   = 0x8
@@ -1400,6 +1446,12 @@ const (
        PR_MCE_KILL_SET                      = 0x1
        PR_MPX_DISABLE_MANAGEMENT            = 0x2c
        PR_MPX_ENABLE_MANAGEMENT             = 0x2b
+       PR_PAC_APDAKEY                       = 0x4
+       PR_PAC_APDBKEY                       = 0x8
+       PR_PAC_APGAKEY                       = 0x10
+       PR_PAC_APIAKEY                       = 0x1
+       PR_PAC_APIBKEY                       = 0x2
+       PR_PAC_RESET_KEYS                    = 0x36
        PR_SET_CHILD_SUBREAPER               = 0x24
        PR_SET_DUMPABLE                      = 0x4
        PR_SET_ENDIAN                        = 0x14
@@ -2282,6 +2334,7 @@ const (
        TUNGETVNETBE                         = 0x400454df
        TUNGETVNETHDRSZ                      = 0x400454d7
        TUNGETVNETLE                         = 0x400454dd
+       TUNSETCARRIER                        = 0x800454e2
        TUNSETDEBUG                          = 0x800454c9
        TUNSETFILTEREBPF                     = 0x400454e1
        TUNSETGROUP                          = 0x800454ce
index e645a05cbeb462b796922db5716eb93646dc3880..52802bfc17a6cf391697a64f3961d3c4b462d767 100644 (file)
@@ -1367,6 +1367,14 @@ func Utime(path string, buf *Utimbuf) (err error) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func Getsystemcfg(label int) (n uint64) {
+       r0, _ := callgetsystemcfg(label)
+       n = uint64(r0)
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func Getrlimit(resource int, rlim *Rlimit) (err error) {
        _, e1 := callgetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
        if e1 != 0 {
index 0b8eb721022760acacab5337f09c65f7ef44e3f6..a2b24e4a430f123159cc857a6e3e2681b2d52bd5 100644 (file)
@@ -120,6 +120,7 @@ import (
 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o"
 //go:cgo_import_dynamic libc_time time "libc.a/shr_64.o"
 //go:cgo_import_dynamic libc_utime utime "libc.a/shr_64.o"
+//go:cgo_import_dynamic libc_getsystemcfg getsystemcfg "libc.a/shr_64.o"
 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.a/shr_64.o"
 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o"
 //go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o"
@@ -235,6 +236,7 @@ import (
 //go:linkname libc_gettimeofday libc_gettimeofday
 //go:linkname libc_time libc_time
 //go:linkname libc_utime libc_utime
+//go:linkname libc_getsystemcfg libc_getsystemcfg
 //go:linkname libc_getrlimit libc_getrlimit
 //go:linkname libc_setrlimit libc_setrlimit
 //go:linkname libc_lseek libc_lseek
@@ -353,6 +355,7 @@ var (
        libc_gettimeofday,
        libc_time,
        libc_utime,
+       libc_getsystemcfg,
        libc_getrlimit,
        libc_setrlimit,
        libc_lseek,
@@ -1135,6 +1138,13 @@ func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func callgetsystemcfg(label int) (r1 uintptr, e1 Errno) {
+       r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getsystemcfg)), 1, uintptr(label), 0, 0, 0, 0, 0)
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
        r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0)
        return
index e88a442787d31e283aaf2bde72cec2ab40cd796b..5491c89e96826726123593563c7f16fbf366aaa2 100644 (file)
@@ -118,6 +118,7 @@ int poll(uintptr_t, int, int);
 int gettimeofday(uintptr_t, uintptr_t);
 int time(uintptr_t);
 int utime(uintptr_t, uintptr_t);
+unsigned long long getsystemcfg(int);
 int getrlimit(int, uintptr_t);
 int setrlimit(int, uintptr_t);
 long long lseek(int, long long, int);
@@ -1011,6 +1012,14 @@ func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func callgetsystemcfg(label int) (r1 uintptr, e1 Errno) {
+       r1 = uintptr(C.getsystemcfg(C.int(label)))
+       e1 = syscall.GetErrno()
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
        r1 = uintptr(C.getrlimit(C.int(resource), C.uintptr_t(rlim)))
        e1 = syscall.GetErrno()
index c8b451000b09bdaf300b1a772e80f9aa033f07f5..9855afa76793870afcfc0c924c8b29b377e199df 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index 2aac3184bc0da9bb4f8e2eeca515b018ec4cf6e4..773e251185281ffaa586608db926a58018ab4eba 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index 13c06c2815808bb62093d7a78ed56c7cd5d2b628..ccea621d4881824e90e4d58b71ffa419b9e0fdcc 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
@@ -1658,6 +1679,16 @@ func faccessat(dirfd int, path string, mode uint32) (err error) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func pipe(p *[2]_C_int) (err error) {
+       _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func pipe2(p *[2]_C_int, flags int) (err error) {
        _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
        if e1 != 0 {
index 737fa8d1812acd5960fcec3750daf586a62696f5..712c7a3265be7f2568bafa0c6b968e32d609dc39 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
@@ -2206,3 +2227,18 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
        }
        return
 }
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
+       var _p0 *byte
+       _p0, err = BytePtrFromString(cmdline)
+       if err != nil {
+               return
+       }
+       _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
index 0a85f3f8db3331af60f9c1d3ad2ebcf12bc0dbe6..68b325100b4b6e868509d1d4909ee483297e666a 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask>>32), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index ec7007e781ded90bf4f8eec945e0fade21c30328..a8be4076cf6d42dd4632e2710a6eb181d63eb8bd 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index c5bb25d9643aeeece89a0b6cd73dc31da547aa7a..1351028adc22feb80af9ab236bfca3d42d73c1b2 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index 26ada0478f9600be5d7212be96a5c6217aaac545..327b4f97a84f03fe23d57b7bfffd180449c5a985 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index 2da9cb700a7f5289d6dd8026764bd78ac18c5dd1..c145bd3ceca236426828228d036a676da6daaa4c 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index 772733d83ffbc78c5c460b19179bf35906293f37..cd8179c7a5efed5e5f0d6549890c0ad53be34288 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index 996eba517ac3d9d904090ea86189d74c6781d29c..2e90cf0f27c7c1469b17ce8bd8d6c4d16562bad0 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
@@ -2186,3 +2207,18 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
        }
        return
 }
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
+       var _p0 *byte
+       _p0, err = BytePtrFromString(cmdline)
+       if err != nil {
+               return
+       }
+       _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
index cb9072a33a480390f9304ab4f3dd38dda83ff9f3..fe9c7e12b09fd80596c459f96ff2a7481cfcec37 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index 5e48a1001b9f0bc0668758c6228dba1c93c2d129..d4a2100b09f3d7c7039ee29f3cac707d5a483213 100644 (file)
@@ -14,6 +14,27 @@ var _ syscall.Errno
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
+func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
+       r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
+       fd = int(r0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
+func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
+       _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
+       if e1 != 0 {
+               err = errnoErr(e1)
+       }
+       return
+}
+
+// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
+
 func fchmodat(dirfd int, path string, mode uint32) (err error) {
        var _p0 *byte
        _p0, err = BytePtrFromString(path)
index 3206967896afd8c389adba90acb09d3f243fbc6d..b81d508a730facc48b8a8111a766dcf1f37706a4 100644 (file)
@@ -285,4 +285,5 @@ const (
        SYS_STATX                  = 291
        SYS_IO_PGETEVENTS          = 292
        SYS_RSEQ                   = 293
+       SYS_KEXEC_FILE_LOAD        = 294
 )
index 473c74613f64fed3a550a7a068ba2128ab90b8f9..2c8c46a2fc15b0f7eb17b81091fe4f62a00f5b30 100644 (file)
@@ -284,4 +284,5 @@ const (
        SYS_STATX                  = 291
        SYS_IO_PGETEVENTS          = 292
        SYS_RSEQ                   = 293
+       SYS_KEXEC_FILE_LOAD        = 294
 )
index 93480fcb168386765fc0d60e4331912d76f244be..6ed306370a5e5cd15add61219fbe6e69a6259f47 100644 (file)
@@ -253,6 +253,7 @@ const (
        SYS_TIMER_GETOVERRUN       = 264
        SYS_TIMER_DELETE           = 265
        SYS_TIMER_CREATE           = 266
+       SYS_VSERVER                = 267
        SYS_IO_SETUP               = 268
        SYS_IO_DESTROY             = 269
        SYS_IO_SUBMIT              = 270
index 18724670a881550599c370fc63e247afc529d187..6dfe56be769abf3283f8c8135aef3702f4c4322d 100644 (file)
@@ -973,7 +973,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1076,6 +1077,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1097,21 +1099,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1124,6 +1143,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1428,6 +1448,9 @@ const (
        SizeofTpacketHdr  = 0x18
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2043,3 +2066,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 6ddbf0665c13abf9419b909ae15d4a40d05cf89b..9f8cbf4cb33f015e78b3034ceb2045bdfb60b9ef 100644 (file)
@@ -984,7 +984,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1087,6 +1088,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1108,21 +1110,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1135,6 +1154,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1440,6 +1460,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2056,3 +2079,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index b8e3ec1384fd2ab9dac7bcd63f17e3cd7192fdc2..cbbf19a44713892a11da358411c0fe2ae1f53b54 100644 (file)
@@ -962,7 +962,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1065,6 +1066,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1086,21 +1088,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1113,6 +1132,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1418,6 +1438,9 @@ const (
        SizeofTpacketHdr  = 0x18
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2034,3 +2057,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 2f73f0086dea6242f310b3f045f0bf06d78a51f3..be21189dbd786169372d981884c2130f5ca33181 100644 (file)
@@ -963,7 +963,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1066,6 +1067,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1087,21 +1089,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1114,6 +1133,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1419,6 +1439,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2035,3 +2058,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 4a2a18bcb00b33f5e6cdd7c6cae3ddb4d27ec5c0..d599ca2759c39ae2e9b62c4352c69a60758f9041 100644 (file)
@@ -967,7 +967,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1070,6 +1071,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1091,21 +1093,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1118,6 +1137,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1424,6 +1444,9 @@ const (
        SizeofTpacketHdr  = 0x18
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2040,3 +2063,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 41e4513de1b266f1ad803a39e387b2498a212de4..011be86baef9a20d411237d68e2550289a8bfdd0 100644 (file)
@@ -965,7 +965,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1068,6 +1069,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1089,21 +1091,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1116,6 +1135,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1421,6 +1441,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2037,3 +2060,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 4a3d74b76e4ebd45efceae2d0bbc897efbcf379e..8163445163e8285b00aef6ad31e77040c8cb2351 100644 (file)
@@ -965,7 +965,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1068,6 +1069,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1089,21 +1091,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1116,6 +1135,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1421,6 +1441,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2037,3 +2060,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 8ae3ca4e4e4ac687a38db3654af501d23c44f059..4ecf7a8c77c81dbfda438bbcf9117ebbd9a9e4c1 100644 (file)
@@ -967,7 +967,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1070,6 +1071,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1091,21 +1093,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1118,6 +1137,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1424,6 +1444,9 @@ const (
        SizeofTpacketHdr  = 0x18
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2040,3 +2063,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 50294c94c029b3fca2bff6cc861507cc680db258..ea817bafbae022a992eed6360a5f2e33793a3508 100644 (file)
@@ -973,7 +973,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1076,6 +1077,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1097,21 +1099,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1124,6 +1143,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1429,6 +1449,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2045,3 +2068,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index d2acf3a73426fc1212f3d24c9fa26ca2e4ae104f..192ea3b105dd051185acd6a3212b00279cf679a0 100644 (file)
@@ -973,7 +973,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1076,6 +1077,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1097,21 +1099,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1124,6 +1143,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1429,6 +1449,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2045,3 +2068,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 675c596880fbc74b1d1107638ba080d70169fd64..673e5e7919c14d11a271f3ab8d72b2e248278eb8 100644 (file)
@@ -990,7 +990,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1093,6 +1094,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1114,21 +1116,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1141,6 +1160,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1446,6 +1466,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2062,3 +2085,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 9f2cf0dfd7793e32adc53c21e79f6532fa447755..faafcddfcc6b6278fa0ab93d773c9fbc1a704162 100644 (file)
@@ -986,7 +986,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1089,6 +1090,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1110,21 +1112,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1137,6 +1156,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1443,6 +1463,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2059,3 +2082,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 68643903c9a2e5b6b762252028239669cc043de5..392dd7375cc2a421c259009eb60bf2e7c966a9ff 100644 (file)
@@ -968,7 +968,8 @@ type PerfEventAttr struct {
        Clockid            int32
        Sample_regs_intr   uint64
        Aux_watermark      uint32
-       _                  uint32
+       Sample_max_stack   uint16
+       _                  uint16
 }
 
 type PerfEventMmapPage struct {
@@ -1071,6 +1072,7 @@ const (
        PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7
        PERF_COUNT_SW_EMULATION_FAULTS = 0x8
        PERF_COUNT_SW_DUMMY            = 0x9
+       PERF_COUNT_SW_BPF_OUTPUT       = 0xa
 
        PERF_SAMPLE_IP           = 0x1
        PERF_SAMPLE_TID          = 0x2
@@ -1092,21 +1094,38 @@ const (
        PERF_SAMPLE_BRANCH_ANY_CALL   = 0x10
        PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20
        PERF_SAMPLE_BRANCH_IND_CALL   = 0x40
+       PERF_SAMPLE_BRANCH_ABORT_TX   = 0x80
+       PERF_SAMPLE_BRANCH_IN_TX      = 0x100
+       PERF_SAMPLE_BRANCH_NO_TX      = 0x200
+       PERF_SAMPLE_BRANCH_COND       = 0x400
+       PERF_SAMPLE_BRANCH_CALL_STACK = 0x800
+       PERF_SAMPLE_BRANCH_IND_JUMP   = 0x1000
+       PERF_SAMPLE_BRANCH_CALL       = 0x2000
+       PERF_SAMPLE_BRANCH_NO_FLAGS   = 0x4000
+       PERF_SAMPLE_BRANCH_NO_CYCLES  = 0x8000
+       PERF_SAMPLE_BRANCH_TYPE_SAVE  = 0x10000
 
        PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1
        PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2
        PERF_FORMAT_ID                 = 0x4
        PERF_FORMAT_GROUP              = 0x8
 
-       PERF_RECORD_MMAP       = 0x1
-       PERF_RECORD_LOST       = 0x2
-       PERF_RECORD_COMM       = 0x3
-       PERF_RECORD_EXIT       = 0x4
-       PERF_RECORD_THROTTLE   = 0x5
-       PERF_RECORD_UNTHROTTLE = 0x6
-       PERF_RECORD_FORK       = 0x7
-       PERF_RECORD_READ       = 0x8
-       PERF_RECORD_SAMPLE     = 0x9
+       PERF_RECORD_MMAP            = 0x1
+       PERF_RECORD_LOST            = 0x2
+       PERF_RECORD_COMM            = 0x3
+       PERF_RECORD_EXIT            = 0x4
+       PERF_RECORD_THROTTLE        = 0x5
+       PERF_RECORD_UNTHROTTLE      = 0x6
+       PERF_RECORD_FORK            = 0x7
+       PERF_RECORD_READ            = 0x8
+       PERF_RECORD_SAMPLE          = 0x9
+       PERF_RECORD_MMAP2           = 0xa
+       PERF_RECORD_AUX             = 0xb
+       PERF_RECORD_ITRACE_START    = 0xc
+       PERF_RECORD_LOST_SAMPLES    = 0xd
+       PERF_RECORD_SWITCH          = 0xe
+       PERF_RECORD_SWITCH_CPU_WIDE = 0xf
+       PERF_RECORD_NAMESPACES      = 0x10
 
        PERF_CONTEXT_HV     = -0x20
        PERF_CONTEXT_KERNEL = -0x80
@@ -1119,6 +1138,7 @@ const (
        PERF_FLAG_FD_NO_GROUP = 0x1
        PERF_FLAG_FD_OUTPUT   = 0x2
        PERF_FLAG_PID_CGROUP  = 0x4
+       PERF_FLAG_FD_CLOEXEC  = 0x8
 )
 
 const (
@@ -1424,6 +1444,9 @@ const (
        SizeofTpacketHdr  = 0x20
        SizeofTpacket2Hdr = 0x20
        SizeofTpacket3Hdr = 0x30
+
+       SizeofTpacketStats   = 0x8
+       SizeofTpacketStatsV3 = 0xc
 )
 
 const (
@@ -2040,3 +2063,18 @@ type SockExtendedErr struct {
        Info   uint32
        Data   uint32
 }
+
+type FanotifyEventMetadata struct {
+       Event_len    uint32
+       Vers         uint8
+       Reserved     uint8
+       Metadata_len uint16
+       Mask         uint64
+       Fd           int32
+       Pid          int32
+}
+
+type FanotifyResponse struct {
+       Fd       int32
+       Response uint32
+}
index 8b37d83992b6fdd495a4556d413e9283be818d64..900fb44622f36050ff0acd7f6b9109ed01353b9a 100644 (file)
@@ -558,3 +558,13 @@ type Uvmexp struct {
        Fpswtch            int32
        Kmapent            int32
 }
+
+const SizeofClockinfo = 0x14
+
+type Clockinfo struct {
+       Hz      int32
+       Tick    int32
+       Tickadj int32
+       Stathz  int32
+       Profhz  int32
+}
index 6efea463559f8913967ff8a8ac1af81d2cacabd9..028fa78d74afc76101c31580a541dfa73918897d 100644 (file)
@@ -558,3 +558,13 @@ type Uvmexp struct {
        Fpswtch            int32
        Kmapent            int32
 }
+
+const SizeofClockinfo = 0x14
+
+type Clockinfo struct {
+       Hz      int32
+       Tick    int32
+       Tickadj int32
+       Stathz  int32
+       Profhz  int32
+}
index 510efc3eaac69f9ff4f45c6979fb684d99753b07..b45d5eedffe91c69b5127c2de2faca4a3b520499 100644 (file)
@@ -559,3 +559,13 @@ type Uvmexp struct {
        Fpswtch            int32
        Kmapent            int32
 }
+
+const SizeofClockinfo = 0x14
+
+type Clockinfo struct {
+       Hz      int32
+       Tick    int32
+       Tickadj int32
+       Stathz  int32
+       Profhz  int32
+}
index e92c05b213c8f63d960bd9c1ceedb20bb798e15b..ba67658db1d13909c4ab063bcc0fb7c1dff53be6 100644 (file)
@@ -359,11 +359,11 @@ func loadLibraryEx(name string, system bool) (*DLL, error) {
                        // trying to load "foo.dll" out of the system
                        // folder, but LoadLibraryEx doesn't support
                        // that yet on their system, so emulate it.
-                       windir, _ := Getenv("WINDIR") // old var; apparently works on XP
-                       if windir == "" {
-                               return nil, errString("%WINDIR% not defined")
+                       systemdir, err := GetSystemDirectory()
+                       if err != nil {
+                               return nil, err
                        }
-                       loadDLL = windir + "\\System32\\" + name
+                       loadDLL = systemdir + "\\" + name
                }
        }
        h, err := LoadLibraryEx(loadDLL, 0, flags)
index 9f946da6fe5e216f5efb0fd9b7eb36de3c1057e2..da06406c44e1efe2221a5612e86b4b343ab723e6 100644 (file)
@@ -169,6 +169,7 @@ const (
 //sys  GetLengthSid(sid *SID) (len uint32) = advapi32.GetLengthSid
 //sys  CopySid(destSidLen uint32, destSid *SID, srcSid *SID) (err error) = advapi32.CopySid
 //sys  AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, subAuth0 uint32, subAuth1 uint32, subAuth2 uint32, subAuth3 uint32, subAuth4 uint32, subAuth5 uint32, subAuth6 uint32, subAuth7 uint32, sid **SID) (err error) = advapi32.AllocateAndInitializeSid
+//sys  createWellKnownSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID, sid *SID, sizeSid *uint32) (err error) = advapi32.CreateWellKnownSid
 //sys  FreeSid(sid *SID) (err error) [failretval!=0] = advapi32.FreeSid
 //sys  EqualSid(sid1 *SID, sid2 *SID) (isEqual bool) = advapi32.EqualSid
 
@@ -286,6 +287,158 @@ func (sid *SID) LookupAccount(system string) (account, domain string, accType ui
        }
 }
 
+// Various types of pre-specified sids that can be synthesized at runtime.
+type WELL_KNOWN_SID_TYPE uint32
+
+const (
+       WinNullSid                                    = 0
+       WinWorldSid                                   = 1
+       WinLocalSid                                   = 2
+       WinCreatorOwnerSid                            = 3
+       WinCreatorGroupSid                            = 4
+       WinCreatorOwnerServerSid                      = 5
+       WinCreatorGroupServerSid                      = 6
+       WinNtAuthoritySid                             = 7
+       WinDialupSid                                  = 8
+       WinNetworkSid                                 = 9
+       WinBatchSid                                   = 10
+       WinInteractiveSid                             = 11
+       WinServiceSid                                 = 12
+       WinAnonymousSid                               = 13
+       WinProxySid                                   = 14
+       WinEnterpriseControllersSid                   = 15
+       WinSelfSid                                    = 16
+       WinAuthenticatedUserSid                       = 17
+       WinRestrictedCodeSid                          = 18
+       WinTerminalServerSid                          = 19
+       WinRemoteLogonIdSid                           = 20
+       WinLogonIdsSid                                = 21
+       WinLocalSystemSid                             = 22
+       WinLocalServiceSid                            = 23
+       WinNetworkServiceSid                          = 24
+       WinBuiltinDomainSid                           = 25
+       WinBuiltinAdministratorsSid                   = 26
+       WinBuiltinUsersSid                            = 27
+       WinBuiltinGuestsSid                           = 28
+       WinBuiltinPowerUsersSid                       = 29
+       WinBuiltinAccountOperatorsSid                 = 30
+       WinBuiltinSystemOperatorsSid                  = 31
+       WinBuiltinPrintOperatorsSid                   = 32
+       WinBuiltinBackupOperatorsSid                  = 33
+       WinBuiltinReplicatorSid                       = 34
+       WinBuiltinPreWindows2000CompatibleAccessSid   = 35
+       WinBuiltinRemoteDesktopUsersSid               = 36
+       WinBuiltinNetworkConfigurationOperatorsSid    = 37
+       WinAccountAdministratorSid                    = 38
+       WinAccountGuestSid                            = 39
+       WinAccountKrbtgtSid                           = 40
+       WinAccountDomainAdminsSid                     = 41
+       WinAccountDomainUsersSid                      = 42
+       WinAccountDomainGuestsSid                     = 43
+       WinAccountComputersSid                        = 44
+       WinAccountControllersSid                      = 45
+       WinAccountCertAdminsSid                       = 46
+       WinAccountSchemaAdminsSid                     = 47
+       WinAccountEnterpriseAdminsSid                 = 48
+       WinAccountPolicyAdminsSid                     = 49
+       WinAccountRasAndIasServersSid                 = 50
+       WinNTLMAuthenticationSid                      = 51
+       WinDigestAuthenticationSid                    = 52
+       WinSChannelAuthenticationSid                  = 53
+       WinThisOrganizationSid                        = 54
+       WinOtherOrganizationSid                       = 55
+       WinBuiltinIncomingForestTrustBuildersSid      = 56
+       WinBuiltinPerfMonitoringUsersSid              = 57
+       WinBuiltinPerfLoggingUsersSid                 = 58
+       WinBuiltinAuthorizationAccessSid              = 59
+       WinBuiltinTerminalServerLicenseServersSid     = 60
+       WinBuiltinDCOMUsersSid                        = 61
+       WinBuiltinIUsersSid                           = 62
+       WinIUserSid                                   = 63
+       WinBuiltinCryptoOperatorsSid                  = 64
+       WinUntrustedLabelSid                          = 65
+       WinLowLabelSid                                = 66
+       WinMediumLabelSid                             = 67
+       WinHighLabelSid                               = 68
+       WinSystemLabelSid                             = 69
+       WinWriteRestrictedCodeSid                     = 70
+       WinCreatorOwnerRightsSid                      = 71
+       WinCacheablePrincipalsGroupSid                = 72
+       WinNonCacheablePrincipalsGroupSid             = 73
+       WinEnterpriseReadonlyControllersSid           = 74
+       WinAccountReadonlyControllersSid              = 75
+       WinBuiltinEventLogReadersGroup                = 76
+       WinNewEnterpriseReadonlyControllersSid        = 77
+       WinBuiltinCertSvcDComAccessGroup              = 78
+       WinMediumPlusLabelSid                         = 79
+       WinLocalLogonSid                              = 80
+       WinConsoleLogonSid                            = 81
+       WinThisOrganizationCertificateSid             = 82
+       WinApplicationPackageAuthoritySid             = 83
+       WinBuiltinAnyPackageSid                       = 84
+       WinCapabilityInternetClientSid                = 85
+       WinCapabilityInternetClientServerSid          = 86
+       WinCapabilityPrivateNetworkClientServerSid    = 87
+       WinCapabilityPicturesLibrarySid               = 88
+       WinCapabilityVideosLibrarySid                 = 89
+       WinCapabilityMusicLibrarySid                  = 90
+       WinCapabilityDocumentsLibrarySid              = 91
+       WinCapabilitySharedUserCertificatesSid        = 92
+       WinCapabilityEnterpriseAuthenticationSid      = 93
+       WinCapabilityRemovableStorageSid              = 94
+       WinBuiltinRDSRemoteAccessServersSid           = 95
+       WinBuiltinRDSEndpointServersSid               = 96
+       WinBuiltinRDSManagementServersSid             = 97
+       WinUserModeDriversSid                         = 98
+       WinBuiltinHyperVAdminsSid                     = 99
+       WinAccountCloneableControllersSid             = 100
+       WinBuiltinAccessControlAssistanceOperatorsSid = 101
+       WinBuiltinRemoteManagementUsersSid            = 102
+       WinAuthenticationAuthorityAssertedSid         = 103
+       WinAuthenticationServiceAssertedSid           = 104
+       WinLocalAccountSid                            = 105
+       WinLocalAccountAndAdministratorSid            = 106
+       WinAccountProtectedUsersSid                   = 107
+       WinCapabilityAppointmentsSid                  = 108
+       WinCapabilityContactsSid                      = 109
+       WinAccountDefaultSystemManagedSid             = 110
+       WinBuiltinDefaultSystemManagedGroupSid        = 111
+       WinBuiltinStorageReplicaAdminsSid             = 112
+       WinAccountKeyAdminsSid                        = 113
+       WinAccountEnterpriseKeyAdminsSid              = 114
+       WinAuthenticationKeyTrustSid                  = 115
+       WinAuthenticationKeyPropertyMFASid            = 116
+       WinAuthenticationKeyPropertyAttestationSid    = 117
+       WinAuthenticationFreshKeyAuthSid              = 118
+       WinBuiltinDeviceOwnersSid                     = 119
+)
+
+// Creates a sid for a well-known predefined alias, generally using the constants of the form
+// Win*Sid, for the local machine.
+func CreateWellKnownSid(sidType WELL_KNOWN_SID_TYPE) (*SID, error) {
+       return CreateWellKnownDomainSid(sidType, nil)
+}
+
+// Creates a sid for a well-known predefined alias, generally using the constants of the form
+// Win*Sid, for the domain specified by the domainSid parameter.
+func CreateWellKnownDomainSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID) (*SID, error) {
+       n := uint32(50)
+       for {
+               b := make([]byte, n)
+               sid := (*SID)(unsafe.Pointer(&b[0]))
+               err := createWellKnownSid(sidType, domainSid, sid, &n)
+               if err == nil {
+                       return sid, nil
+               }
+               if err != ERROR_INSUFFICIENT_BUFFER {
+                       return nil, err
+               }
+               if n <= uint32(len(b)) {
+                       return nil, err
+               }
+       }
+}
+
 const (
        // do not reorder
        TOKEN_ASSIGN_PRIMARY = 1 << iota
@@ -372,6 +525,7 @@ type Tokengroups struct {
 //sys  OpenProcessToken(h Handle, access uint32, token *Token) (err error) = advapi32.OpenProcessToken
 //sys  GetTokenInformation(t Token, infoClass uint32, info *byte, infoLen uint32, returnedLen *uint32) (err error) = advapi32.GetTokenInformation
 //sys  GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) = userenv.GetUserProfileDirectoryW
+//sys  getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) = kernel32.GetSystemDirectoryW
 
 // An access token contains the security information for a logon session.
 // The system creates an access token when a user logs on, and every
@@ -468,6 +622,23 @@ func (t Token) GetUserProfileDirectory() (string, error) {
        }
 }
 
+// GetSystemDirectory retrieves path to current location of the system
+// directory, which is typically, though not always, C:\Windows\System32.
+func GetSystemDirectory() (string, error) {
+       n := uint32(MAX_PATH)
+       for {
+               b := make([]uint16, n)
+               l, e := getSystemDirectory(&b[0], n)
+               if e != nil {
+                       return "", e
+               }
+               if l <= n {
+                       return UTF16ToString(b[:l]), nil
+               }
+               n = l
+       }
+}
+
 // IsMember reports whether the access token t is a member of the provided SID.
 func (t Token) IsMember(sid *SID) (bool, error) {
        var b int32
index e4b54e2d92948904419bfcf1cef355d6fed1b9a7..75dcd275ca15e2479f1ff7fb96a88132cde1a050 100644 (file)
@@ -246,12 +246,14 @@ var (
        procGetLengthSid                       = modadvapi32.NewProc("GetLengthSid")
        procCopySid                            = modadvapi32.NewProc("CopySid")
        procAllocateAndInitializeSid           = modadvapi32.NewProc("AllocateAndInitializeSid")
+       procCreateWellKnownSid                 = modadvapi32.NewProc("CreateWellKnownSid")
        procFreeSid                            = modadvapi32.NewProc("FreeSid")
        procEqualSid                           = modadvapi32.NewProc("EqualSid")
        procCheckTokenMembership               = modadvapi32.NewProc("CheckTokenMembership")
        procOpenProcessToken                   = modadvapi32.NewProc("OpenProcessToken")
        procGetTokenInformation                = modadvapi32.NewProc("GetTokenInformation")
        procGetUserProfileDirectoryW           = moduserenv.NewProc("GetUserProfileDirectoryW")
+       procGetSystemDirectoryW                = modkernel32.NewProc("GetSystemDirectoryW")
 )
 
 func RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) {
@@ -2653,6 +2655,18 @@ func AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, s
        return
 }
 
+func createWellKnownSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID, sid *SID, sizeSid *uint32) (err error) {
+       r1, _, e1 := syscall.Syscall6(procCreateWellKnownSid.Addr(), 4, uintptr(sidType), uintptr(unsafe.Pointer(domainSid)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sizeSid)), 0, 0)
+       if r1 == 0 {
+               if e1 != 0 {
+                       err = errnoErr(e1)
+               } else {
+                       err = syscall.EINVAL
+               }
+       }
+       return
+}
+
 func FreeSid(sid *SID) (err error) {
        r1, _, e1 := syscall.Syscall(procFreeSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0)
        if r1 != 0 {
@@ -2718,3 +2732,16 @@ func GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) {
        }
        return
 }
+
+func getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
+       r0, _, e1 := syscall.Syscall(procGetSystemDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
+       len = uint32(r0)
+       if len == 0 {
+               if e1 != 0 {
+                       err = errnoErr(e1)
+               } else {
+                       err = syscall.EINVAL
+               }
+       }
+       return
+}
index 83495112243a441efbe64533650603d251450b77..72530a0eeb62a0174f1c8e46d564d194116f3d9a 100644 (file)
@@ -8,7 +8,6 @@ package stdmethods
 
 import (
        "go/ast"
-       "go/token"
        "go/types"
        "strings"
 
@@ -163,7 +162,7 @@ func matchParams(pass *analysis.Pass, expect []string, actual *types.Tuple, pref
                if i >= actual.Len() {
                        return false
                }
-               if !matchParamType(pass.Fset, pass.Pkg, x, actual.At(i).Type()) {
+               if !matchParamType(x, actual.At(i).Type()) {
                        return false
                }
        }
@@ -174,13 +173,8 @@ func matchParams(pass *analysis.Pass, expect []string, actual *types.Tuple, pref
 }
 
 // Does this one type match?
-func matchParamType(fset *token.FileSet, pkg *types.Package, expect string, actual types.Type) bool {
+func matchParamType(expect string, actual types.Type) bool {
        expect = strings.TrimPrefix(expect, "=")
-       // Strip package name if we're in that package.
-       if n := len(pkg.Name()); len(expect) > n && expect[:n] == pkg.Name() && expect[n] == '.' {
-               expect = expect[n+1:]
-       }
-
        // Overkill but easy.
        return typeString(actual) == expect
 }
index 916a8ca9b6a04e33951ef62d7db6c082df17daee..2b3dc6fe2f09f587565102ab2051f2a7b65268e6 100644 (file)
@@ -21,12 +21,12 @@ golang.org/x/arch/arm/armasm
 golang.org/x/arch/arm64/arm64asm
 golang.org/x/arch/ppc64/ppc64asm
 golang.org/x/arch/x86/x86asm
-# golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67
+# golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a
 golang.org/x/crypto/ssh/terminal
-# golang.org/x/sys v0.0.0-20190225065934-cc5685c2db12
+# golang.org/x/sys v0.0.0-20190318195719-6c81ef8f67ca
 golang.org/x/sys/unix
 golang.org/x/sys/windows
-# golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3
+# golang.org/x/tools v0.0.0-20190320160634-b6b7807791df
 golang.org/x/tools/go/analysis/passes/asmdecl
 golang.org/x/tools/go/analysis/passes/assign
 golang.org/x/tools/go/analysis/passes/atomic
index c73516392f6bf1f67f1de3b75242901dcf6f7a89..dd0718a389970c35f3e1e659358191f147e18608 100644 (file)
@@ -47,15 +47,9 @@ cmd/internal/bio/buf.go: method Seek(offset int64, whence int) int64 should have
 fmt/print.go: method WriteByte(c byte) should have signature WriteByte(byte) error
 runtime/pprof/pprof.go: method WriteTo(w io.Writer, debug int) error should have signature WriteTo(io.Writer) (int64, error)
 
-// These encoding/xml methods have the correct signature.
-// vet doesn't know it because they are *in* the encoding/xml package.
-// It's not worth teaching vet about the distinction, so whitelist them.
+// Also non-standard, but this method is on an unexported type, so it's
+// irrelevant.
 encoding/gob/encode.go: method WriteByte(c byte) should have signature WriteByte(byte) error
-encoding/xml/marshal.go: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error
-encoding/xml/marshal_test.go: method MarshalXML(e *xml.Encoder, start xml.StartElement) error should have signature MarshalXML(*xml.Encoder, xml.StartElement) error
-encoding/xml/read.go: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
-encoding/xml/read_test.go: method UnmarshalXML(d *xml.Decoder, start xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
-encoding/xml/xml_test.go: method UnmarshalXML(*xml.Decoder, xml.StartElement) error should have signature UnmarshalXML(*xml.Decoder, xml.StartElement) error
 
 // Long struct tags used to test reflect internals
 cmd/link/link_test.go: struct field tag "\n\tLondon. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln’s Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth, and it would not be wonderful to meet a Megalosaurus, forty feet long or so, waddling like an elephantine lizard up Holborn Hill. Smoke lowering down from chimney-pots, making a soft black drizzle, with flakes of soot in it as big as full-grown snowflakes—gone into mourning, one might imagine, for the death of the sun. Dogs, undistinguishable in mire. Horses, scarcely better; splashed to their very blinkers. Foot passengers, jostling one another’s umbrellas in a general infection of ill temper, and losing their foot-hold at street-corners, where tens of thousands of other foot passengers have been slipping and sliding since the day broke (if this day ever broke), adding new deposits to the crust upon crust of mud, sticking at those points tenaciously to the pavement, and accumulating at compound interest.\n\n\tFog everywhere. Fog up the river, where it flows among green aits and meadows; fog down the river, where it rolls defiled among the tiers of shipping and the waterside pollutions of a great (and dirty) city. Fog on the Essex marshes, fog on the Kentish heights. Fog creeping into the cabooses of collier-brigs; fog lying out on the yards and hovering in the rigging of great ships; fog drooping on the gunwales of barges and small boats. Fog in the eyes and throats of ancient Greenwich pensioners, wheezing by the firesides of their wards; fog in the stem and bowl of the afternoon pipe of the wrathful skipper, down in his close cabin; fog cruelly pinching the toes and fingers of his shivering little ‘prentice boy on deck. Chance people on the bridges peeping over the parapets into a nether sky of fog, with fog all round them, as if they were up in a balloon and hanging in the misty clouds.\n\n\tGas looming through the fog in divers places in the streets, much as the sun may, from the spongey fields, be seen to loom by husbandman and ploughboy. Most of the shops lighted two hours before their time—as the gas seems to know, for it has a haggard and unwilling look.\n\n\tThe raw afternoon is rawest, and the dense fog is densest, and the muddy streets are muddiest near that leaden-headed old obstruction, appropriate ornament for the threshold of a leaden-headed old corporation, Temple Bar. And hard by Temple Bar, in Lincoln’s Inn Hall, at the very heart of the fog, sits the Lord High Chancellor in his High Court of Chancery." not compatible with reflect.StructTag.Get: bad syntax for struct tag key