mirror of
https://github.com/Luzifer/envrun.git
synced 2024-12-20 18:31:17 +00:00
Update dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7b474991d6
commit
f8cff48328
144 changed files with 10851 additions and 1969 deletions
34
Gopkg.lock
generated
34
Gopkg.lock
generated
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:28a69515688ce64861e59fdb60d925854f87cddf078e04881191c71b804c5b47"
|
digest = "1:d1eed0842775a598d79fa92fb7bae782d0077c27daa315845aaee8a823b83cbc"
|
||||||
name = "github.com/Luzifer/go-openssl"
|
name = "github.com/Luzifer/go-openssl"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "b3de9a97f19362b45eb2e2597960afcd58569cea"
|
revision = "2e082a23aef0698233d3520f1718276da3460361"
|
||||||
version = "v2.0.0"
|
version = "v3.0.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:6503b55a93848f2365ab2715ed64ec47ff245026668a0c5409807a347e0f6568"
|
digest = "1:6503b55a93848f2365ab2715ed64ec47ff245026668a0c5409807a347e0f6568"
|
||||||
|
@ -18,24 +18,32 @@
|
||||||
version = "v1.2.0"
|
version = "v1.2.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:b2339e83ce9b5c4f79405f949429a7f68a9a904fed903c672aac1e7ceb7f5f02"
|
digest = "1:4059c14e87a2de3a434430340521b5feece186c1469eff0834c29a63870de3ed"
|
||||||
|
name = "github.com/konsorten/go-windows-terminal-sequences"
|
||||||
|
packages = ["."]
|
||||||
|
pruneopts = "NUT"
|
||||||
|
revision = "5c8c8bd35d3832f5d134ae1e1e375b69a4d25242"
|
||||||
|
version = "v1.0.1"
|
||||||
|
|
||||||
|
[[projects]]
|
||||||
|
digest = "1:d848e2bdc690ea54c4b49894b67a05db318a97ee6561879b814c2c1f82f61406"
|
||||||
name = "github.com/sirupsen/logrus"
|
name = "github.com/sirupsen/logrus"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "3e01752db0189b9157070a0e1668a620f9a85da2"
|
revision = "bcd833dfe83d3cebad139e4a29ed79cb2318bf95"
|
||||||
version = "v1.0.6"
|
version = "v1.2.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:e3707aeaccd2adc89eba6c062fec72116fe1fc1ba71097da85b4d8ae1668a675"
|
digest = "1:9d8420bbf131d1618bde6530af37c3799340d3762cc47210c1d9532a4c3a2779"
|
||||||
name = "github.com/spf13/pflag"
|
name = "github.com/spf13/pflag"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "9a97c102cda95a86cec2345a6f09f55a939babf5"
|
revision = "298182f68c66c05229eb03ac171abe6e309ee79a"
|
||||||
version = "v1.0.2"
|
version = "v1.0.3"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:63694b74286e7b4589ca54b9a126a8bcd739ad062fa30013245d0c30fdb4c377"
|
digest = "1:18236c5bb3baa556d984c0dfed68dc9963bfb14991c6aaf815ae58ec37dd7b1f"
|
||||||
name = "golang.org/x/crypto"
|
name = "golang.org/x/crypto"
|
||||||
packages = [
|
packages = [
|
||||||
"cast5",
|
"cast5",
|
||||||
|
@ -48,18 +56,18 @@
|
||||||
"ssh/terminal",
|
"ssh/terminal",
|
||||||
]
|
]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "0e37d006457bf46f9e6692014ba72ef82c33022c"
|
revision = "4d3f4d9ffa16a13f451c3b2999e9c49e9750bf06"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:581828cee9f0d31195c1ae52ea8935dfaec395cee6c23adc02109b892b391c2e"
|
digest = "1:3bcf6eb3757db3e22c41d212f886b86d0f940f86e1af85b13cd31122ac341193"
|
||||||
name = "golang.org/x/sys"
|
name = "golang.org/x/sys"
|
||||||
packages = [
|
packages = [
|
||||||
"unix",
|
"unix",
|
||||||
"windows",
|
"windows",
|
||||||
]
|
]
|
||||||
pruneopts = "NUT"
|
pruneopts = "NUT"
|
||||||
revision = "d0be0721c37eeb5299f245a996a483160fc36940"
|
revision = "9b800f95dbbc54abff0acf7ee32d88ba4e328c89"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "v2"
|
branch = "v2"
|
||||||
|
|
150
vendor/github.com/Luzifer/go-openssl/openssl.go
generated
vendored
150
vendor/github.com/Luzifer/go-openssl/openssl.go
generated
vendored
|
@ -14,6 +14,10 @@ import (
|
||||||
"io"
|
"io"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// CurrentOpenSSLDigestFunc is an alias to the key derivation function used in OpenSSL
|
||||||
|
var CurrentOpenSSLDigestFunc = DigestSHA256Sum
|
||||||
|
|
||||||
|
// ErrInvalidSalt is returned when a salt with a length of != 8 byte is passed
|
||||||
var ErrInvalidSalt = errors.New("Salt needs to have exactly 8 byte")
|
var ErrInvalidSalt = errors.New("Salt needs to have exactly 8 byte")
|
||||||
|
|
||||||
// OpenSSL is a helper to generate OpenSSL compatible encryption
|
// OpenSSL is a helper to generate OpenSSL compatible encryption
|
||||||
|
@ -36,23 +40,37 @@ func New() *OpenSSL {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DecryptString decrypts a string that was encrypted using OpenSSL and AES-256-CBC
|
// DigestFunc are functions to create a key from the passphrase
|
||||||
func (o OpenSSL) DecryptString(passphrase, encryptedBase64String string) ([]byte, error) {
|
type DigestFunc func([]byte) []byte
|
||||||
return o.DecryptBytes(passphrase, []byte(encryptedBase64String))
|
|
||||||
|
// DigestMD5Sum uses the (deprecated) pre-OpenSSL 1.1.0c MD5 digest to create the key
|
||||||
|
func DigestMD5Sum(data []byte) []byte {
|
||||||
|
h := md5.New()
|
||||||
|
h.Write(data)
|
||||||
|
return h.Sum(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
var hashFuncList = []DigestFunc{DigestSHA256Sum, DigestMD5Sum, DigestSHA1Sum}
|
// DigestSHA1Sum uses SHA1 digest to create the key
|
||||||
|
func DigestSHA1Sum(data []byte) []byte {
|
||||||
|
h := sha1.New()
|
||||||
|
h.Write(data)
|
||||||
|
return h.Sum(nil)
|
||||||
|
}
|
||||||
|
|
||||||
func (o OpenSSL) decodeWithPassphrase(passphrase string, data []byte, salt []byte, hashFunc DigestFunc) ([]byte, error) {
|
// DigestSHA256Sum uses SHA256 digest to create the key which is the default behaviour since OpenSSL 1.1.0c
|
||||||
creds, err := o.extractOpenSSLCreds([]byte(passphrase), salt, hashFunc)
|
func DigestSHA256Sum(data []byte) []byte {
|
||||||
if err != nil {
|
h := sha256.New()
|
||||||
return nil, err
|
h.Write(data)
|
||||||
}
|
return h.Sum(nil)
|
||||||
return o.decrypt(creds.key, creds.iv, data)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DecryptBytes takes a slice of bytes with base64 encoded, encrypted data to decrypt
|
// DecryptBytes takes a slice of bytes with base64 encoded, encrypted data to decrypt
|
||||||
func (o OpenSSL) DecryptBytes(passphrase string, encryptedBase64Data []byte) ([]byte, error) {
|
// and a key-derivation function. The key-derivation function must match the function
|
||||||
|
// used to encrypt the data. (In OpenSSL the value of the `-md` parameter.)
|
||||||
|
//
|
||||||
|
// You should not just try to loop the digest functions as this will cause a race
|
||||||
|
// condition and you will not be able to decrypt your data properly.
|
||||||
|
func (o OpenSSL) DecryptBytes(passphrase string, encryptedBase64Data []byte, kdf DigestFunc) ([]byte, error) {
|
||||||
data := make([]byte, base64.StdEncoding.DecodedLen(len(encryptedBase64Data)))
|
data := make([]byte, base64.StdEncoding.DecodedLen(len(encryptedBase64Data)))
|
||||||
n, err := base64.StdEncoding.Decode(data, encryptedBase64Data)
|
n, err := base64.StdEncoding.Decode(data, encryptedBase64Data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -67,24 +85,20 @@ func (o OpenSSL) DecryptBytes(passphrase string, encryptedBase64Data []byte) ([]
|
||||||
}
|
}
|
||||||
saltHeader := data[:aes.BlockSize]
|
saltHeader := data[:aes.BlockSize]
|
||||||
if string(saltHeader[:8]) != o.openSSLSaltHeader {
|
if string(saltHeader[:8]) != o.openSSLSaltHeader {
|
||||||
return nil, fmt.Errorf("Does not appear to have been encrypted with OpenSSL, salt header missing.")
|
return nil, fmt.Errorf("Does not appear to have been encrypted with OpenSSL, salt header missing")
|
||||||
}
|
}
|
||||||
salt := saltHeader[8:]
|
salt := saltHeader[8:]
|
||||||
|
|
||||||
tmp := make([]byte, len(data))
|
creds, err := o.extractOpenSSLCreds([]byte(passphrase), salt, kdf)
|
||||||
for _, f := range hashFuncList {
|
if err != nil {
|
||||||
copy(tmp, data)
|
return nil, err
|
||||||
result, err := o.decodeWithPassphrase(passphrase, tmp, salt, f)
|
|
||||||
if err == nil {
|
|
||||||
return result, nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return nil, err
|
return o.decrypt(creds.key, creds.iv, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o OpenSSL) decrypt(key, iv, data []byte) ([]byte, error) {
|
func (o OpenSSL) decrypt(key, iv, data []byte) ([]byte, error) {
|
||||||
if len(data) == 0 || len(data)%aes.BlockSize != 0 {
|
if len(data) == 0 || len(data)%aes.BlockSize != 0 {
|
||||||
return nil, fmt.Errorf("bad blocksize(%v), aes.BlockSize = %v\n", len(data), aes.BlockSize)
|
return nil, fmt.Errorf("bad blocksize(%v), aes.BlockSize = %v", len(data), aes.BlockSize)
|
||||||
}
|
}
|
||||||
c, err := aes.NewCipher(key)
|
c, err := aes.NewCipher(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -99,58 +113,16 @@ func (o OpenSSL) decrypt(key, iv, data []byte) ([]byte, error) {
|
||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// EncryptString encrypts a slice of bytes in a manner compatible to OpenSSL encryption
|
// EncryptBytes encrypts a slice of bytes in a manner compatible to OpenSSL encryption
|
||||||
// functions using AES-256-CBC as encryption algorithm. This function generates
|
// functions using AES-256-CBC as encryption algorithm. This function generates
|
||||||
// a random salt on every execution.
|
// a random salt on every execution.
|
||||||
func (o OpenSSL) EncryptBytes(passphrase string, plainData []byte) ([]byte, error) {
|
func (o OpenSSL) EncryptBytes(passphrase string, plainData []byte, kdf DigestFunc) ([]byte, error) {
|
||||||
salt, err := o.GenerateSalt()
|
salt, err := o.GenerateSalt()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return o.EncryptBytesWithSaltAndDigestFunc(passphrase, salt, plainData, DigestSHA256Sum)
|
return o.EncryptBytesWithSaltAndDigestFunc(passphrase, salt, plainData, kdf)
|
||||||
}
|
|
||||||
|
|
||||||
// EncryptString encrypts a string in a manner compatible to OpenSSL encryption
|
|
||||||
// functions using AES-256-CBC as encryption algorithm. This function generates
|
|
||||||
// a random salt on every execution.
|
|
||||||
func (o OpenSSL) EncryptString(passphrase, plaintextString string) ([]byte, error) {
|
|
||||||
salt, err := o.GenerateSalt()
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return o.EncryptBytesWithSaltAndDigestFunc(passphrase, salt, []byte(plaintextString), DigestSHA256Sum)
|
|
||||||
}
|
|
||||||
|
|
||||||
// EncryptStringWithSalt encrypts a string in a manner compatible to OpenSSL
|
|
||||||
// encryption functions using AES-256-CBC as encryption algorithm. The salt
|
|
||||||
// needs to be passed in here which ensures the same result on every execution
|
|
||||||
// on cost of a much weaker encryption as with EncryptString.
|
|
||||||
//
|
|
||||||
// The salt passed into this function needs to have exactly 8 byte.
|
|
||||||
//
|
|
||||||
// If you don't have a good reason to use this, please don't! For more information
|
|
||||||
// see this: https://en.wikipedia.org/wiki/Salt_(cryptography)#Common_mistakes
|
|
||||||
//
|
|
||||||
// Deprecated: Use EncryptBytesWithSaltAndDigestFunc instead.
|
|
||||||
func (o OpenSSL) EncryptStringWithSalt(passphrase string, salt []byte, plaintextString string) ([]byte, error) {
|
|
||||||
return o.EncryptBytesWithSaltAndDigestFunc(passphrase, salt, []byte(plaintextString), DigestSHA256Sum)
|
|
||||||
}
|
|
||||||
|
|
||||||
// EncryptBytesWithSalt encrypts a slice of bytes in a manner compatible to OpenSSL
|
|
||||||
// encryption functions using AES-256-CBC as encryption algorithm. The salt
|
|
||||||
// needs to be passed in here which ensures the same result on every execution
|
|
||||||
// on cost of a much weaker encryption as with EncryptString.
|
|
||||||
//
|
|
||||||
// The salt passed into this function needs to have exactly 8 byte.
|
|
||||||
//
|
|
||||||
// If you don't have a good reason to use this, please don't! For more information
|
|
||||||
// see this: https://en.wikipedia.org/wiki/Salt_(cryptography)#Common_mistakes
|
|
||||||
//
|
|
||||||
// Deprecated: Use EncryptBytesWithSaltAndDigestFunc instead.
|
|
||||||
func (o OpenSSL) EncryptBytesWithSalt(passphrase string, salt, plainData []byte) ([]byte, error) {
|
|
||||||
return o.EncryptBytesWithSaltAndDigestFunc(passphrase, salt, plainData, DigestSHA256Sum)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// EncryptBytesWithSaltAndDigestFunc encrypts a slice of bytes in a manner compatible to OpenSSL
|
// EncryptBytesWithSaltAndDigestFunc encrypts a slice of bytes in a manner compatible to OpenSSL
|
||||||
|
@ -188,17 +160,6 @@ func (o OpenSSL) EncryptBytesWithSaltAndDigestFunc(passphrase string, salt, plai
|
||||||
return []byte(base64.StdEncoding.EncodeToString(enc)), nil
|
return []byte(base64.StdEncoding.EncodeToString(enc)), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GenerateSalt generates a random 8 byte salt
|
|
||||||
func (o OpenSSL) GenerateSalt() ([]byte, error) {
|
|
||||||
salt := make([]byte, 8) // Generate an 8 byte salt
|
|
||||||
_, err := io.ReadFull(rand.Reader, salt)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return salt, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (o OpenSSL) encrypt(key, iv, data []byte) ([]byte, error) {
|
func (o OpenSSL) encrypt(key, iv, data []byte) ([]byte, error) {
|
||||||
padded, err := o.pkcs7Pad(data, aes.BlockSize)
|
padded, err := o.pkcs7Pad(data, aes.BlockSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -237,28 +198,25 @@ func (o OpenSSL) hash(prev, password, salt []byte, hashFunc DigestFunc) []byte {
|
||||||
return hashFunc(a)
|
return hashFunc(a)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DigestFunc are functions to create a key from the passphrase
|
// GenerateSalt generates a random 8 byte salt
|
||||||
type DigestFunc func([]byte) []byte
|
func (o OpenSSL) GenerateSalt() ([]byte, error) {
|
||||||
|
salt := make([]byte, 8) // Generate an 8 byte salt
|
||||||
|
_, err := io.ReadFull(rand.Reader, salt)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
// DigestMD5Sum uses the (deprecated) pre-OpenSSL 1.1.0c MD5 digest to create the key
|
return salt, nil
|
||||||
func DigestMD5Sum(data []byte) []byte {
|
|
||||||
h := md5.New()
|
|
||||||
h.Write(data)
|
|
||||||
return h.Sum(nil)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DigestSHA1Sum uses SHA1 digest to create the key
|
// MustGenerateSalt is a wrapper around GenerateSalt which will panic on an error.
|
||||||
func DigestSHA1Sum(data []byte) []byte {
|
// This allows you to use this function as a parameter to EncryptBytesWithSaltAndDigestFunc
|
||||||
h := sha1.New()
|
func (o OpenSSL) MustGenerateSalt() []byte {
|
||||||
h.Write(data)
|
s, err := o.GenerateSalt()
|
||||||
return h.Sum(nil)
|
if err != nil {
|
||||||
}
|
panic(err)
|
||||||
|
}
|
||||||
// DigestSHA256Sum uses SHA256 digest to create the key which is the default behaviour since OpenSSL 1.1.0c
|
return s
|
||||||
func DigestSHA256Sum(data []byte) []byte {
|
|
||||||
h := sha256.New()
|
|
||||||
h.Write(data)
|
|
||||||
return h.Sum(nil)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// pkcs7Pad appends padding.
|
// pkcs7Pad appends padding.
|
||||||
|
|
9
vendor/github.com/konsorten/go-windows-terminal-sequences/LICENSE
generated
vendored
Normal file
9
vendor/github.com/konsorten/go-windows-terminal-sequences/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
(The MIT License)
|
||||||
|
|
||||||
|
Copyright (c) 2017 marvin + konsorten GmbH (open-source@konsorten.de)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
36
vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go
generated
vendored
Normal file
36
vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go
generated
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
// +build windows
|
||||||
|
|
||||||
|
package sequences
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
kernel32Dll *syscall.LazyDLL = syscall.NewLazyDLL("Kernel32.dll")
|
||||||
|
setConsoleMode *syscall.LazyProc = kernel32Dll.NewProc("SetConsoleMode")
|
||||||
|
)
|
||||||
|
|
||||||
|
func EnableVirtualTerminalProcessing(stream syscall.Handle, enable bool) error {
|
||||||
|
const ENABLE_VIRTUAL_TERMINAL_PROCESSING uint32 = 0x4
|
||||||
|
|
||||||
|
var mode uint32
|
||||||
|
err := syscall.GetConsoleMode(syscall.Stdout, &mode)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
if enable {
|
||||||
|
mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING
|
||||||
|
} else {
|
||||||
|
mode &^= ENABLE_VIRTUAL_TERMINAL_PROCESSING
|
||||||
|
}
|
||||||
|
|
||||||
|
ret, _, err := setConsoleMode.Call(uintptr(unsafe.Pointer(stream)), uintptr(mode))
|
||||||
|
if ret == 0 {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
174
vendor/github.com/sirupsen/logrus/entry.go
generated
vendored
174
vendor/github.com/sirupsen/logrus/entry.go
generated
vendored
|
@ -4,11 +4,30 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"reflect"
|
||||||
|
"runtime"
|
||||||
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var bufferPool *sync.Pool
|
var (
|
||||||
|
bufferPool *sync.Pool
|
||||||
|
|
||||||
|
// qualified package name, cached at first use
|
||||||
|
logrusPackage string
|
||||||
|
|
||||||
|
// Positions in the call stack when tracing to report the calling method
|
||||||
|
minimumCallerDepth int
|
||||||
|
|
||||||
|
// Used for caller information initialisation
|
||||||
|
callerInitOnce sync.Once
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
maximumCallerDepth int = 25
|
||||||
|
knownLogrusFrames int = 4
|
||||||
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
bufferPool = &sync.Pool{
|
bufferPool = &sync.Pool{
|
||||||
|
@ -16,15 +35,18 @@ func init() {
|
||||||
return new(bytes.Buffer)
|
return new(bytes.Buffer)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// start at the bottom of the stack before the package-name cache is primed
|
||||||
|
minimumCallerDepth = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defines the key when adding errors using WithError.
|
// Defines the key when adding errors using WithError.
|
||||||
var ErrorKey = "error"
|
var ErrorKey = "error"
|
||||||
|
|
||||||
// An entry is the final or intermediate Logrus logging entry. It contains all
|
// An entry is the final or intermediate Logrus logging entry. It contains all
|
||||||
// the fields passed with WithField{,s}. It's finally logged when Debug, Info,
|
// the fields passed with WithField{,s}. It's finally logged when Trace, Debug,
|
||||||
// Warn, Error, Fatal or Panic is called on it. These objects can be reused and
|
// Info, Warn, Error, Fatal or Panic is called on it. These objects can be
|
||||||
// passed around as much as you wish to avoid field duplication.
|
// reused and passed around as much as you wish to avoid field duplication.
|
||||||
type Entry struct {
|
type Entry struct {
|
||||||
Logger *Logger
|
Logger *Logger
|
||||||
|
|
||||||
|
@ -34,22 +56,28 @@ type Entry struct {
|
||||||
// Time at which the log entry was created
|
// Time at which the log entry was created
|
||||||
Time time.Time
|
Time time.Time
|
||||||
|
|
||||||
// Level the log entry was logged at: Debug, Info, Warn, Error, Fatal or Panic
|
// Level the log entry was logged at: Trace, Debug, Info, Warn, Error, Fatal or Panic
|
||||||
// This field will be set on entry firing and the value will be equal to the one in Logger struct field.
|
// This field will be set on entry firing and the value will be equal to the one in Logger struct field.
|
||||||
Level Level
|
Level Level
|
||||||
|
|
||||||
// Message passed to Debug, Info, Warn, Error, Fatal or Panic
|
// Calling method, with package name
|
||||||
|
Caller *runtime.Frame
|
||||||
|
|
||||||
|
// Message passed to Trace, Debug, Info, Warn, Error, Fatal or Panic
|
||||||
Message string
|
Message string
|
||||||
|
|
||||||
// When formatter is called in entry.log(), an Buffer may be set to entry
|
// When formatter is called in entry.log(), a Buffer may be set to entry
|
||||||
Buffer *bytes.Buffer
|
Buffer *bytes.Buffer
|
||||||
|
|
||||||
|
// err may contain a field formatting error
|
||||||
|
err string
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEntry(logger *Logger) *Entry {
|
func NewEntry(logger *Logger) *Entry {
|
||||||
return &Entry{
|
return &Entry{
|
||||||
Logger: logger,
|
Logger: logger,
|
||||||
// Default is five fields, give a little extra room
|
// Default is three fields, plus one optional. Give a little extra room.
|
||||||
Data: make(Fields, 5),
|
Data: make(Fields, 6),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,10 +108,18 @@ func (entry *Entry) WithFields(fields Fields) *Entry {
|
||||||
for k, v := range entry.Data {
|
for k, v := range entry.Data {
|
||||||
data[k] = v
|
data[k] = v
|
||||||
}
|
}
|
||||||
|
var field_err string
|
||||||
for k, v := range fields {
|
for k, v := range fields {
|
||||||
data[k] = v
|
if t := reflect.TypeOf(v); t != nil && t.Kind() == reflect.Func {
|
||||||
|
field_err = fmt.Sprintf("can not add field %q", k)
|
||||||
|
if entry.err != "" {
|
||||||
|
field_err = entry.err + ", " + field_err
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
data[k] = v
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return &Entry{Logger: entry.Logger, Data: data, Time: entry.Time}
|
return &Entry{Logger: entry.Logger, Data: data, Time: entry.Time, err: field_err}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Overrides the time of the Entry.
|
// Overrides the time of the Entry.
|
||||||
|
@ -91,6 +127,57 @@ func (entry *Entry) WithTime(t time.Time) *Entry {
|
||||||
return &Entry{Logger: entry.Logger, Data: entry.Data, Time: t}
|
return &Entry{Logger: entry.Logger, Data: entry.Data, Time: t}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// getPackageName reduces a fully qualified function name to the package name
|
||||||
|
// There really ought to be to be a better way...
|
||||||
|
func getPackageName(f string) string {
|
||||||
|
for {
|
||||||
|
lastPeriod := strings.LastIndex(f, ".")
|
||||||
|
lastSlash := strings.LastIndex(f, "/")
|
||||||
|
if lastPeriod > lastSlash {
|
||||||
|
f = f[:lastPeriod]
|
||||||
|
} else {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return f
|
||||||
|
}
|
||||||
|
|
||||||
|
// getCaller retrieves the name of the first non-logrus calling function
|
||||||
|
func getCaller() *runtime.Frame {
|
||||||
|
// Restrict the lookback frames to avoid runaway lookups
|
||||||
|
pcs := make([]uintptr, maximumCallerDepth)
|
||||||
|
depth := runtime.Callers(minimumCallerDepth, pcs)
|
||||||
|
frames := runtime.CallersFrames(pcs[:depth])
|
||||||
|
|
||||||
|
// cache this package's fully-qualified name
|
||||||
|
callerInitOnce.Do(func() {
|
||||||
|
logrusPackage = getPackageName(runtime.FuncForPC(pcs[0]).Name())
|
||||||
|
|
||||||
|
// now that we have the cache, we can skip a minimum count of known-logrus functions
|
||||||
|
// XXX this is dubious, the number of frames may vary store an entry in a logger interface
|
||||||
|
minimumCallerDepth = knownLogrusFrames
|
||||||
|
})
|
||||||
|
|
||||||
|
for f, again := frames.Next(); again; f, again = frames.Next() {
|
||||||
|
pkg := getPackageName(f.Function)
|
||||||
|
|
||||||
|
// If the caller isn't part of this package, we're done
|
||||||
|
if pkg != logrusPackage {
|
||||||
|
return &f
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// if we got here, we failed to find the caller's context
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entry Entry) HasCaller() (has bool) {
|
||||||
|
return entry.Logger != nil &&
|
||||||
|
entry.Logger.ReportCaller &&
|
||||||
|
entry.Caller != nil
|
||||||
|
}
|
||||||
|
|
||||||
// This function is not declared with a pointer value because otherwise
|
// This function is not declared with a pointer value because otherwise
|
||||||
// race conditions will occur when using multiple goroutines
|
// race conditions will occur when using multiple goroutines
|
||||||
func (entry Entry) log(level Level, msg string) {
|
func (entry Entry) log(level Level, msg string) {
|
||||||
|
@ -107,6 +194,9 @@ func (entry Entry) log(level Level, msg string) {
|
||||||
|
|
||||||
entry.Level = level
|
entry.Level = level
|
||||||
entry.Message = msg
|
entry.Message = msg
|
||||||
|
if entry.Logger.ReportCaller {
|
||||||
|
entry.Caller = getCaller()
|
||||||
|
}
|
||||||
|
|
||||||
entry.fireHooks()
|
entry.fireHooks()
|
||||||
|
|
||||||
|
@ -137,9 +227,9 @@ func (entry *Entry) fireHooks() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) write() {
|
func (entry *Entry) write() {
|
||||||
serialized, err := entry.Logger.Formatter.Format(entry)
|
|
||||||
entry.Logger.mu.Lock()
|
entry.Logger.mu.Lock()
|
||||||
defer entry.Logger.mu.Unlock()
|
defer entry.Logger.mu.Unlock()
|
||||||
|
serialized, err := entry.Logger.Formatter.Format(entry)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "Failed to obtain reader, %v\n", err)
|
fmt.Fprintf(os.Stderr, "Failed to obtain reader, %v\n", err)
|
||||||
} else {
|
} else {
|
||||||
|
@ -150,8 +240,14 @@ func (entry *Entry) write() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (entry *Entry) Trace(args ...interface{}) {
|
||||||
|
if entry.Logger.IsLevelEnabled(TraceLevel) {
|
||||||
|
entry.log(TraceLevel, fmt.Sprint(args...))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (entry *Entry) Debug(args ...interface{}) {
|
func (entry *Entry) Debug(args ...interface{}) {
|
||||||
if entry.Logger.level() >= DebugLevel {
|
if entry.Logger.IsLevelEnabled(DebugLevel) {
|
||||||
entry.log(DebugLevel, fmt.Sprint(args...))
|
entry.log(DebugLevel, fmt.Sprint(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -161,13 +257,13 @@ func (entry *Entry) Print(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Info(args ...interface{}) {
|
func (entry *Entry) Info(args ...interface{}) {
|
||||||
if entry.Logger.level() >= InfoLevel {
|
if entry.Logger.IsLevelEnabled(InfoLevel) {
|
||||||
entry.log(InfoLevel, fmt.Sprint(args...))
|
entry.log(InfoLevel, fmt.Sprint(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Warn(args ...interface{}) {
|
func (entry *Entry) Warn(args ...interface{}) {
|
||||||
if entry.Logger.level() >= WarnLevel {
|
if entry.Logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry.log(WarnLevel, fmt.Sprint(args...))
|
entry.log(WarnLevel, fmt.Sprint(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,20 +273,20 @@ func (entry *Entry) Warning(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Error(args ...interface{}) {
|
func (entry *Entry) Error(args ...interface{}) {
|
||||||
if entry.Logger.level() >= ErrorLevel {
|
if entry.Logger.IsLevelEnabled(ErrorLevel) {
|
||||||
entry.log(ErrorLevel, fmt.Sprint(args...))
|
entry.log(ErrorLevel, fmt.Sprint(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Fatal(args ...interface{}) {
|
func (entry *Entry) Fatal(args ...interface{}) {
|
||||||
if entry.Logger.level() >= FatalLevel {
|
if entry.Logger.IsLevelEnabled(FatalLevel) {
|
||||||
entry.log(FatalLevel, fmt.Sprint(args...))
|
entry.log(FatalLevel, fmt.Sprint(args...))
|
||||||
}
|
}
|
||||||
Exit(1)
|
entry.Logger.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Panic(args ...interface{}) {
|
func (entry *Entry) Panic(args ...interface{}) {
|
||||||
if entry.Logger.level() >= PanicLevel {
|
if entry.Logger.IsLevelEnabled(PanicLevel) {
|
||||||
entry.log(PanicLevel, fmt.Sprint(args...))
|
entry.log(PanicLevel, fmt.Sprint(args...))
|
||||||
}
|
}
|
||||||
panic(fmt.Sprint(args...))
|
panic(fmt.Sprint(args...))
|
||||||
|
@ -198,14 +294,20 @@ func (entry *Entry) Panic(args ...interface{}) {
|
||||||
|
|
||||||
// Entry Printf family functions
|
// Entry Printf family functions
|
||||||
|
|
||||||
|
func (entry *Entry) Tracef(format string, args ...interface{}) {
|
||||||
|
if entry.Logger.IsLevelEnabled(TraceLevel) {
|
||||||
|
entry.Trace(fmt.Sprintf(format, args...))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (entry *Entry) Debugf(format string, args ...interface{}) {
|
func (entry *Entry) Debugf(format string, args ...interface{}) {
|
||||||
if entry.Logger.level() >= DebugLevel {
|
if entry.Logger.IsLevelEnabled(DebugLevel) {
|
||||||
entry.Debug(fmt.Sprintf(format, args...))
|
entry.Debug(fmt.Sprintf(format, args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Infof(format string, args ...interface{}) {
|
func (entry *Entry) Infof(format string, args ...interface{}) {
|
||||||
if entry.Logger.level() >= InfoLevel {
|
if entry.Logger.IsLevelEnabled(InfoLevel) {
|
||||||
entry.Info(fmt.Sprintf(format, args...))
|
entry.Info(fmt.Sprintf(format, args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -215,7 +317,7 @@ func (entry *Entry) Printf(format string, args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Warnf(format string, args ...interface{}) {
|
func (entry *Entry) Warnf(format string, args ...interface{}) {
|
||||||
if entry.Logger.level() >= WarnLevel {
|
if entry.Logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry.Warn(fmt.Sprintf(format, args...))
|
entry.Warn(fmt.Sprintf(format, args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -225,34 +327,40 @@ func (entry *Entry) Warningf(format string, args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Errorf(format string, args ...interface{}) {
|
func (entry *Entry) Errorf(format string, args ...interface{}) {
|
||||||
if entry.Logger.level() >= ErrorLevel {
|
if entry.Logger.IsLevelEnabled(ErrorLevel) {
|
||||||
entry.Error(fmt.Sprintf(format, args...))
|
entry.Error(fmt.Sprintf(format, args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Fatalf(format string, args ...interface{}) {
|
func (entry *Entry) Fatalf(format string, args ...interface{}) {
|
||||||
if entry.Logger.level() >= FatalLevel {
|
if entry.Logger.IsLevelEnabled(FatalLevel) {
|
||||||
entry.Fatal(fmt.Sprintf(format, args...))
|
entry.Fatal(fmt.Sprintf(format, args...))
|
||||||
}
|
}
|
||||||
Exit(1)
|
entry.Logger.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Panicf(format string, args ...interface{}) {
|
func (entry *Entry) Panicf(format string, args ...interface{}) {
|
||||||
if entry.Logger.level() >= PanicLevel {
|
if entry.Logger.IsLevelEnabled(PanicLevel) {
|
||||||
entry.Panic(fmt.Sprintf(format, args...))
|
entry.Panic(fmt.Sprintf(format, args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entry Println family functions
|
// Entry Println family functions
|
||||||
|
|
||||||
|
func (entry *Entry) Traceln(args ...interface{}) {
|
||||||
|
if entry.Logger.IsLevelEnabled(TraceLevel) {
|
||||||
|
entry.Trace(entry.sprintlnn(args...))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (entry *Entry) Debugln(args ...interface{}) {
|
func (entry *Entry) Debugln(args ...interface{}) {
|
||||||
if entry.Logger.level() >= DebugLevel {
|
if entry.Logger.IsLevelEnabled(DebugLevel) {
|
||||||
entry.Debug(entry.sprintlnn(args...))
|
entry.Debug(entry.sprintlnn(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Infoln(args ...interface{}) {
|
func (entry *Entry) Infoln(args ...interface{}) {
|
||||||
if entry.Logger.level() >= InfoLevel {
|
if entry.Logger.IsLevelEnabled(InfoLevel) {
|
||||||
entry.Info(entry.sprintlnn(args...))
|
entry.Info(entry.sprintlnn(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -262,7 +370,7 @@ func (entry *Entry) Println(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Warnln(args ...interface{}) {
|
func (entry *Entry) Warnln(args ...interface{}) {
|
||||||
if entry.Logger.level() >= WarnLevel {
|
if entry.Logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry.Warn(entry.sprintlnn(args...))
|
entry.Warn(entry.sprintlnn(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -272,20 +380,20 @@ func (entry *Entry) Warningln(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Errorln(args ...interface{}) {
|
func (entry *Entry) Errorln(args ...interface{}) {
|
||||||
if entry.Logger.level() >= ErrorLevel {
|
if entry.Logger.IsLevelEnabled(ErrorLevel) {
|
||||||
entry.Error(entry.sprintlnn(args...))
|
entry.Error(entry.sprintlnn(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Fatalln(args ...interface{}) {
|
func (entry *Entry) Fatalln(args ...interface{}) {
|
||||||
if entry.Logger.level() >= FatalLevel {
|
if entry.Logger.IsLevelEnabled(FatalLevel) {
|
||||||
entry.Fatal(entry.sprintlnn(args...))
|
entry.Fatal(entry.sprintlnn(args...))
|
||||||
}
|
}
|
||||||
Exit(1)
|
entry.Logger.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (entry *Entry) Panicln(args ...interface{}) {
|
func (entry *Entry) Panicln(args ...interface{}) {
|
||||||
if entry.Logger.level() >= PanicLevel {
|
if entry.Logger.IsLevelEnabled(PanicLevel) {
|
||||||
entry.Panic(entry.sprintlnn(args...))
|
entry.Panic(entry.sprintlnn(args...))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
40
vendor/github.com/sirupsen/logrus/exported.go
generated
vendored
40
vendor/github.com/sirupsen/logrus/exported.go
generated
vendored
|
@ -21,30 +21,33 @@ func SetOutput(out io.Writer) {
|
||||||
|
|
||||||
// SetFormatter sets the standard logger formatter.
|
// SetFormatter sets the standard logger formatter.
|
||||||
func SetFormatter(formatter Formatter) {
|
func SetFormatter(formatter Formatter) {
|
||||||
std.mu.Lock()
|
std.SetFormatter(formatter)
|
||||||
defer std.mu.Unlock()
|
}
|
||||||
std.Formatter = formatter
|
|
||||||
|
// SetReportCaller sets whether the standard logger will include the calling
|
||||||
|
// method as a field.
|
||||||
|
func SetReportCaller(include bool) {
|
||||||
|
std.SetReportCaller(include)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetLevel sets the standard logger level.
|
// SetLevel sets the standard logger level.
|
||||||
func SetLevel(level Level) {
|
func SetLevel(level Level) {
|
||||||
std.mu.Lock()
|
|
||||||
defer std.mu.Unlock()
|
|
||||||
std.SetLevel(level)
|
std.SetLevel(level)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLevel returns the standard logger level.
|
// GetLevel returns the standard logger level.
|
||||||
func GetLevel() Level {
|
func GetLevel() Level {
|
||||||
std.mu.Lock()
|
return std.GetLevel()
|
||||||
defer std.mu.Unlock()
|
}
|
||||||
return std.level()
|
|
||||||
|
// IsLevelEnabled checks if the log level of the standard logger is greater than the level param
|
||||||
|
func IsLevelEnabled(level Level) bool {
|
||||||
|
return std.IsLevelEnabled(level)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddHook adds a hook to the standard logger hooks.
|
// AddHook adds a hook to the standard logger hooks.
|
||||||
func AddHook(hook Hook) {
|
func AddHook(hook Hook) {
|
||||||
std.mu.Lock()
|
std.AddHook(hook)
|
||||||
defer std.mu.Unlock()
|
|
||||||
std.Hooks.Add(hook)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
|
// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
|
||||||
|
@ -80,6 +83,11 @@ func WithTime(t time.Time) *Entry {
|
||||||
return std.WithTime(t)
|
return std.WithTime(t)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Trace logs a message at level Trace on the standard logger.
|
||||||
|
func Trace(args ...interface{}) {
|
||||||
|
std.Trace(args...)
|
||||||
|
}
|
||||||
|
|
||||||
// Debug logs a message at level Debug on the standard logger.
|
// Debug logs a message at level Debug on the standard logger.
|
||||||
func Debug(args ...interface{}) {
|
func Debug(args ...interface{}) {
|
||||||
std.Debug(args...)
|
std.Debug(args...)
|
||||||
|
@ -120,6 +128,11 @@ func Fatal(args ...interface{}) {
|
||||||
std.Fatal(args...)
|
std.Fatal(args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tracef logs a message at level Trace on the standard logger.
|
||||||
|
func Tracef(format string, args ...interface{}) {
|
||||||
|
std.Tracef(format, args...)
|
||||||
|
}
|
||||||
|
|
||||||
// Debugf logs a message at level Debug on the standard logger.
|
// Debugf logs a message at level Debug on the standard logger.
|
||||||
func Debugf(format string, args ...interface{}) {
|
func Debugf(format string, args ...interface{}) {
|
||||||
std.Debugf(format, args...)
|
std.Debugf(format, args...)
|
||||||
|
@ -160,6 +173,11 @@ func Fatalf(format string, args ...interface{}) {
|
||||||
std.Fatalf(format, args...)
|
std.Fatalf(format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Traceln logs a message at level Trace on the standard logger.
|
||||||
|
func Traceln(args ...interface{}) {
|
||||||
|
std.Traceln(args...)
|
||||||
|
}
|
||||||
|
|
||||||
// Debugln logs a message at level Debug on the standard logger.
|
// Debugln logs a message at level Debug on the standard logger.
|
||||||
func Debugln(args ...interface{}) {
|
func Debugln(args ...interface{}) {
|
||||||
std.Debugln(args...)
|
std.Debugln(args...)
|
||||||
|
|
33
vendor/github.com/sirupsen/logrus/formatter.go
generated
vendored
33
vendor/github.com/sirupsen/logrus/formatter.go
generated
vendored
|
@ -2,7 +2,16 @@ package logrus
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
const defaultTimestampFormat = time.RFC3339
|
// Default key names for the default fields
|
||||||
|
const (
|
||||||
|
defaultTimestampFormat = time.RFC3339
|
||||||
|
FieldKeyMsg = "msg"
|
||||||
|
FieldKeyLevel = "level"
|
||||||
|
FieldKeyTime = "time"
|
||||||
|
FieldKeyLogrusError = "logrus_error"
|
||||||
|
FieldKeyFunc = "func"
|
||||||
|
FieldKeyFile = "file"
|
||||||
|
)
|
||||||
|
|
||||||
// The Formatter interface is used to implement a custom Formatter. It takes an
|
// The Formatter interface is used to implement a custom Formatter. It takes an
|
||||||
// `Entry`. It exposes all the fields, including the default ones:
|
// `Entry`. It exposes all the fields, including the default ones:
|
||||||
|
@ -18,7 +27,7 @@ type Formatter interface {
|
||||||
Format(*Entry) ([]byte, error)
|
Format(*Entry) ([]byte, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is to not silently overwrite `time`, `msg` and `level` fields when
|
// This is to not silently overwrite `time`, `msg`, `func` and `level` fields when
|
||||||
// dumping it. If this code wasn't there doing:
|
// dumping it. If this code wasn't there doing:
|
||||||
//
|
//
|
||||||
// logrus.WithField("level", 1).Info("hello")
|
// logrus.WithField("level", 1).Info("hello")
|
||||||
|
@ -30,7 +39,7 @@ type Formatter interface {
|
||||||
//
|
//
|
||||||
// It's not exported because it's still using Data in an opinionated way. It's to
|
// It's not exported because it's still using Data in an opinionated way. It's to
|
||||||
// avoid code duplication between the two default formatters.
|
// avoid code duplication between the two default formatters.
|
||||||
func prefixFieldClashes(data Fields, fieldMap FieldMap) {
|
func prefixFieldClashes(data Fields, fieldMap FieldMap, reportCaller bool) {
|
||||||
timeKey := fieldMap.resolve(FieldKeyTime)
|
timeKey := fieldMap.resolve(FieldKeyTime)
|
||||||
if t, ok := data[timeKey]; ok {
|
if t, ok := data[timeKey]; ok {
|
||||||
data["fields."+timeKey] = t
|
data["fields."+timeKey] = t
|
||||||
|
@ -48,4 +57,22 @@ func prefixFieldClashes(data Fields, fieldMap FieldMap) {
|
||||||
data["fields."+levelKey] = l
|
data["fields."+levelKey] = l
|
||||||
delete(data, levelKey)
|
delete(data, levelKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logrusErrKey := fieldMap.resolve(FieldKeyLogrusError)
|
||||||
|
if l, ok := data[logrusErrKey]; ok {
|
||||||
|
data["fields."+logrusErrKey] = l
|
||||||
|
delete(data, logrusErrKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
// If reportCaller is not set, 'func' will not conflict.
|
||||||
|
if reportCaller {
|
||||||
|
funcKey := fieldMap.resolve(FieldKeyFunc)
|
||||||
|
if l, ok := data[funcKey]; ok {
|
||||||
|
data["fields."+funcKey] = l
|
||||||
|
}
|
||||||
|
fileKey := fieldMap.resolve(FieldKeyFile)
|
||||||
|
if l, ok := data[fileKey]; ok {
|
||||||
|
data["fields."+fileKey] = l
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
44
vendor/github.com/sirupsen/logrus/json_formatter.go
generated
vendored
44
vendor/github.com/sirupsen/logrus/json_formatter.go
generated
vendored
|
@ -1,6 +1,7 @@
|
||||||
package logrus
|
package logrus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
@ -10,13 +11,6 @@ type fieldKey string
|
||||||
// FieldMap allows customization of the key names for default fields.
|
// FieldMap allows customization of the key names for default fields.
|
||||||
type FieldMap map[fieldKey]string
|
type FieldMap map[fieldKey]string
|
||||||
|
|
||||||
// Default key names for the default fields
|
|
||||||
const (
|
|
||||||
FieldKeyMsg = "msg"
|
|
||||||
FieldKeyLevel = "level"
|
|
||||||
FieldKeyTime = "time"
|
|
||||||
)
|
|
||||||
|
|
||||||
func (f FieldMap) resolve(key fieldKey) string {
|
func (f FieldMap) resolve(key fieldKey) string {
|
||||||
if k, ok := f[key]; ok {
|
if k, ok := f[key]; ok {
|
||||||
return k
|
return k
|
||||||
|
@ -40,17 +34,21 @@ type JSONFormatter struct {
|
||||||
// As an example:
|
// As an example:
|
||||||
// formatter := &JSONFormatter{
|
// formatter := &JSONFormatter{
|
||||||
// FieldMap: FieldMap{
|
// FieldMap: FieldMap{
|
||||||
// FieldKeyTime: "@timestamp",
|
// FieldKeyTime: "@timestamp",
|
||||||
// FieldKeyLevel: "@level",
|
// FieldKeyLevel: "@level",
|
||||||
// FieldKeyMsg: "@message",
|
// FieldKeyMsg: "@message",
|
||||||
|
// FieldKeyFunc: "@caller",
|
||||||
// },
|
// },
|
||||||
// }
|
// }
|
||||||
FieldMap FieldMap
|
FieldMap FieldMap
|
||||||
|
|
||||||
|
// PrettyPrint will indent all json logs
|
||||||
|
PrettyPrint bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format renders a single log entry
|
// Format renders a single log entry
|
||||||
func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
|
func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
|
||||||
data := make(Fields, len(entry.Data)+3)
|
data := make(Fields, len(entry.Data)+4)
|
||||||
for k, v := range entry.Data {
|
for k, v := range entry.Data {
|
||||||
switch v := v.(type) {
|
switch v := v.(type) {
|
||||||
case error:
|
case error:
|
||||||
|
@ -68,22 +66,40 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
|
||||||
data = newData
|
data = newData
|
||||||
}
|
}
|
||||||
|
|
||||||
prefixFieldClashes(data, f.FieldMap)
|
prefixFieldClashes(data, f.FieldMap, entry.HasCaller())
|
||||||
|
|
||||||
timestampFormat := f.TimestampFormat
|
timestampFormat := f.TimestampFormat
|
||||||
if timestampFormat == "" {
|
if timestampFormat == "" {
|
||||||
timestampFormat = defaultTimestampFormat
|
timestampFormat = defaultTimestampFormat
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if entry.err != "" {
|
||||||
|
data[f.FieldMap.resolve(FieldKeyLogrusError)] = entry.err
|
||||||
|
}
|
||||||
if !f.DisableTimestamp {
|
if !f.DisableTimestamp {
|
||||||
data[f.FieldMap.resolve(FieldKeyTime)] = entry.Time.Format(timestampFormat)
|
data[f.FieldMap.resolve(FieldKeyTime)] = entry.Time.Format(timestampFormat)
|
||||||
}
|
}
|
||||||
data[f.FieldMap.resolve(FieldKeyMsg)] = entry.Message
|
data[f.FieldMap.resolve(FieldKeyMsg)] = entry.Message
|
||||||
data[f.FieldMap.resolve(FieldKeyLevel)] = entry.Level.String()
|
data[f.FieldMap.resolve(FieldKeyLevel)] = entry.Level.String()
|
||||||
|
if entry.HasCaller() {
|
||||||
|
data[f.FieldMap.resolve(FieldKeyFunc)] = entry.Caller.Function
|
||||||
|
data[f.FieldMap.resolve(FieldKeyFile)] = fmt.Sprintf("%s:%d", entry.Caller.File, entry.Caller.Line)
|
||||||
|
}
|
||||||
|
|
||||||
serialized, err := json.Marshal(data)
|
var b *bytes.Buffer
|
||||||
if err != nil {
|
if entry.Buffer != nil {
|
||||||
|
b = entry.Buffer
|
||||||
|
} else {
|
||||||
|
b = &bytes.Buffer{}
|
||||||
|
}
|
||||||
|
|
||||||
|
encoder := json.NewEncoder(b)
|
||||||
|
if f.PrettyPrint {
|
||||||
|
encoder.SetIndent("", " ")
|
||||||
|
}
|
||||||
|
if err := encoder.Encode(data); err != nil {
|
||||||
return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
|
return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err)
|
||||||
}
|
}
|
||||||
return append(serialized, '\n'), nil
|
|
||||||
|
return b.Bytes(), nil
|
||||||
}
|
}
|
||||||
|
|
144
vendor/github.com/sirupsen/logrus/logger.go
generated
vendored
144
vendor/github.com/sirupsen/logrus/logger.go
generated
vendored
|
@ -11,7 +11,7 @@ import (
|
||||||
type Logger struct {
|
type Logger struct {
|
||||||
// The logs are `io.Copy`'d to this in a mutex. It's common to set this to a
|
// The logs are `io.Copy`'d to this in a mutex. It's common to set this to a
|
||||||
// file, or leave it default which is `os.Stderr`. You can also set this to
|
// file, or leave it default which is `os.Stderr`. You can also set this to
|
||||||
// something more adventorous, such as logging to Kafka.
|
// something more adventurous, such as logging to Kafka.
|
||||||
Out io.Writer
|
Out io.Writer
|
||||||
// Hooks for the logger instance. These allow firing events based on logging
|
// Hooks for the logger instance. These allow firing events based on logging
|
||||||
// levels and log entries. For example, to send errors to an error tracking
|
// levels and log entries. For example, to send errors to an error tracking
|
||||||
|
@ -24,6 +24,10 @@ type Logger struct {
|
||||||
// own that implements the `Formatter` interface, see the `README` or included
|
// own that implements the `Formatter` interface, see the `README` or included
|
||||||
// formatters for examples.
|
// formatters for examples.
|
||||||
Formatter Formatter
|
Formatter Formatter
|
||||||
|
|
||||||
|
// Flag for whether to log caller info (off by default)
|
||||||
|
ReportCaller bool
|
||||||
|
|
||||||
// The logging level the logger should log at. This is typically (and defaults
|
// The logging level the logger should log at. This is typically (and defaults
|
||||||
// to) `logrus.Info`, which allows Info(), Warn(), Error() and Fatal() to be
|
// to) `logrus.Info`, which allows Info(), Warn(), Error() and Fatal() to be
|
||||||
// logged.
|
// logged.
|
||||||
|
@ -32,8 +36,12 @@ type Logger struct {
|
||||||
mu MutexWrap
|
mu MutexWrap
|
||||||
// Reusable empty entry
|
// Reusable empty entry
|
||||||
entryPool sync.Pool
|
entryPool sync.Pool
|
||||||
|
// Function to exit the application, defaults to `os.Exit()`
|
||||||
|
ExitFunc exitFunc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type exitFunc func(int)
|
||||||
|
|
||||||
type MutexWrap struct {
|
type MutexWrap struct {
|
||||||
lock sync.Mutex
|
lock sync.Mutex
|
||||||
disabled bool
|
disabled bool
|
||||||
|
@ -69,10 +77,12 @@ func (mw *MutexWrap) Disable() {
|
||||||
// It's recommended to make this a global instance called `log`.
|
// It's recommended to make this a global instance called `log`.
|
||||||
func New() *Logger {
|
func New() *Logger {
|
||||||
return &Logger{
|
return &Logger{
|
||||||
Out: os.Stderr,
|
Out: os.Stderr,
|
||||||
Formatter: new(TextFormatter),
|
Formatter: new(TextFormatter),
|
||||||
Hooks: make(LevelHooks),
|
Hooks: make(LevelHooks),
|
||||||
Level: InfoLevel,
|
Level: InfoLevel,
|
||||||
|
ExitFunc: os.Exit,
|
||||||
|
ReportCaller: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +95,7 @@ func (logger *Logger) newEntry() *Entry {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) releaseEntry(entry *Entry) {
|
func (logger *Logger) releaseEntry(entry *Entry) {
|
||||||
|
entry.Data = map[string]interface{}{}
|
||||||
logger.entryPool.Put(entry)
|
logger.entryPool.Put(entry)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,8 +131,16 @@ func (logger *Logger) WithTime(t time.Time) *Entry {
|
||||||
return entry.WithTime(t)
|
return entry.WithTime(t)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (logger *Logger) Tracef(format string, args ...interface{}) {
|
||||||
|
if logger.IsLevelEnabled(TraceLevel) {
|
||||||
|
entry := logger.newEntry()
|
||||||
|
entry.Tracef(format, args...)
|
||||||
|
logger.releaseEntry(entry)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (logger *Logger) Debugf(format string, args ...interface{}) {
|
func (logger *Logger) Debugf(format string, args ...interface{}) {
|
||||||
if logger.level() >= DebugLevel {
|
if logger.IsLevelEnabled(DebugLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Debugf(format, args...)
|
entry.Debugf(format, args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -129,7 +148,7 @@ func (logger *Logger) Debugf(format string, args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Infof(format string, args ...interface{}) {
|
func (logger *Logger) Infof(format string, args ...interface{}) {
|
||||||
if logger.level() >= InfoLevel {
|
if logger.IsLevelEnabled(InfoLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Infof(format, args...)
|
entry.Infof(format, args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -143,7 +162,7 @@ func (logger *Logger) Printf(format string, args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Warnf(format string, args ...interface{}) {
|
func (logger *Logger) Warnf(format string, args ...interface{}) {
|
||||||
if logger.level() >= WarnLevel {
|
if logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Warnf(format, args...)
|
entry.Warnf(format, args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -151,7 +170,7 @@ func (logger *Logger) Warnf(format string, args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Warningf(format string, args ...interface{}) {
|
func (logger *Logger) Warningf(format string, args ...interface{}) {
|
||||||
if logger.level() >= WarnLevel {
|
if logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Warnf(format, args...)
|
entry.Warnf(format, args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -159,7 +178,7 @@ func (logger *Logger) Warningf(format string, args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Errorf(format string, args ...interface{}) {
|
func (logger *Logger) Errorf(format string, args ...interface{}) {
|
||||||
if logger.level() >= ErrorLevel {
|
if logger.IsLevelEnabled(ErrorLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Errorf(format, args...)
|
entry.Errorf(format, args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -167,24 +186,32 @@ func (logger *Logger) Errorf(format string, args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Fatalf(format string, args ...interface{}) {
|
func (logger *Logger) Fatalf(format string, args ...interface{}) {
|
||||||
if logger.level() >= FatalLevel {
|
if logger.IsLevelEnabled(FatalLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Fatalf(format, args...)
|
entry.Fatalf(format, args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
}
|
}
|
||||||
Exit(1)
|
logger.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Panicf(format string, args ...interface{}) {
|
func (logger *Logger) Panicf(format string, args ...interface{}) {
|
||||||
if logger.level() >= PanicLevel {
|
if logger.IsLevelEnabled(PanicLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Panicf(format, args...)
|
entry.Panicf(format, args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (logger *Logger) Trace(args ...interface{}) {
|
||||||
|
if logger.IsLevelEnabled(TraceLevel) {
|
||||||
|
entry := logger.newEntry()
|
||||||
|
entry.Trace(args...)
|
||||||
|
logger.releaseEntry(entry)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (logger *Logger) Debug(args ...interface{}) {
|
func (logger *Logger) Debug(args ...interface{}) {
|
||||||
if logger.level() >= DebugLevel {
|
if logger.IsLevelEnabled(DebugLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Debug(args...)
|
entry.Debug(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -192,7 +219,7 @@ func (logger *Logger) Debug(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Info(args ...interface{}) {
|
func (logger *Logger) Info(args ...interface{}) {
|
||||||
if logger.level() >= InfoLevel {
|
if logger.IsLevelEnabled(InfoLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Info(args...)
|
entry.Info(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -206,7 +233,7 @@ func (logger *Logger) Print(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Warn(args ...interface{}) {
|
func (logger *Logger) Warn(args ...interface{}) {
|
||||||
if logger.level() >= WarnLevel {
|
if logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Warn(args...)
|
entry.Warn(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -214,7 +241,7 @@ func (logger *Logger) Warn(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Warning(args ...interface{}) {
|
func (logger *Logger) Warning(args ...interface{}) {
|
||||||
if logger.level() >= WarnLevel {
|
if logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Warn(args...)
|
entry.Warn(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -222,7 +249,7 @@ func (logger *Logger) Warning(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Error(args ...interface{}) {
|
func (logger *Logger) Error(args ...interface{}) {
|
||||||
if logger.level() >= ErrorLevel {
|
if logger.IsLevelEnabled(ErrorLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Error(args...)
|
entry.Error(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -230,24 +257,32 @@ func (logger *Logger) Error(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Fatal(args ...interface{}) {
|
func (logger *Logger) Fatal(args ...interface{}) {
|
||||||
if logger.level() >= FatalLevel {
|
if logger.IsLevelEnabled(FatalLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Fatal(args...)
|
entry.Fatal(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
}
|
}
|
||||||
Exit(1)
|
logger.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Panic(args ...interface{}) {
|
func (logger *Logger) Panic(args ...interface{}) {
|
||||||
if logger.level() >= PanicLevel {
|
if logger.IsLevelEnabled(PanicLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Panic(args...)
|
entry.Panic(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (logger *Logger) Traceln(args ...interface{}) {
|
||||||
|
if logger.IsLevelEnabled(TraceLevel) {
|
||||||
|
entry := logger.newEntry()
|
||||||
|
entry.Traceln(args...)
|
||||||
|
logger.releaseEntry(entry)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (logger *Logger) Debugln(args ...interface{}) {
|
func (logger *Logger) Debugln(args ...interface{}) {
|
||||||
if logger.level() >= DebugLevel {
|
if logger.IsLevelEnabled(DebugLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Debugln(args...)
|
entry.Debugln(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -255,7 +290,7 @@ func (logger *Logger) Debugln(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Infoln(args ...interface{}) {
|
func (logger *Logger) Infoln(args ...interface{}) {
|
||||||
if logger.level() >= InfoLevel {
|
if logger.IsLevelEnabled(InfoLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Infoln(args...)
|
entry.Infoln(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -269,7 +304,7 @@ func (logger *Logger) Println(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Warnln(args ...interface{}) {
|
func (logger *Logger) Warnln(args ...interface{}) {
|
||||||
if logger.level() >= WarnLevel {
|
if logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Warnln(args...)
|
entry.Warnln(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -277,7 +312,7 @@ func (logger *Logger) Warnln(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Warningln(args ...interface{}) {
|
func (logger *Logger) Warningln(args ...interface{}) {
|
||||||
if logger.level() >= WarnLevel {
|
if logger.IsLevelEnabled(WarnLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Warnln(args...)
|
entry.Warnln(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -285,7 +320,7 @@ func (logger *Logger) Warningln(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Errorln(args ...interface{}) {
|
func (logger *Logger) Errorln(args ...interface{}) {
|
||||||
if logger.level() >= ErrorLevel {
|
if logger.IsLevelEnabled(ErrorLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Errorln(args...)
|
entry.Errorln(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
|
@ -293,22 +328,30 @@ func (logger *Logger) Errorln(args ...interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Fatalln(args ...interface{}) {
|
func (logger *Logger) Fatalln(args ...interface{}) {
|
||||||
if logger.level() >= FatalLevel {
|
if logger.IsLevelEnabled(FatalLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Fatalln(args...)
|
entry.Fatalln(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
}
|
}
|
||||||
Exit(1)
|
logger.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Panicln(args ...interface{}) {
|
func (logger *Logger) Panicln(args ...interface{}) {
|
||||||
if logger.level() >= PanicLevel {
|
if logger.IsLevelEnabled(PanicLevel) {
|
||||||
entry := logger.newEntry()
|
entry := logger.newEntry()
|
||||||
entry.Panicln(args...)
|
entry.Panicln(args...)
|
||||||
logger.releaseEntry(entry)
|
logger.releaseEntry(entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (logger *Logger) Exit(code int) {
|
||||||
|
runHandlers()
|
||||||
|
if logger.ExitFunc == nil {
|
||||||
|
logger.ExitFunc = os.Exit
|
||||||
|
}
|
||||||
|
logger.ExitFunc(code)
|
||||||
|
}
|
||||||
|
|
||||||
//When file is opened with appending mode, it's safe to
|
//When file is opened with appending mode, it's safe to
|
||||||
//write concurrently to a file (within 4k message on Linux).
|
//write concurrently to a file (within 4k message on Linux).
|
||||||
//In these cases user can choose to disable the lock.
|
//In these cases user can choose to disable the lock.
|
||||||
|
@ -320,18 +363,53 @@ func (logger *Logger) level() Level {
|
||||||
return Level(atomic.LoadUint32((*uint32)(&logger.Level)))
|
return Level(atomic.LoadUint32((*uint32)(&logger.Level)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetLevel sets the logger level.
|
||||||
func (logger *Logger) SetLevel(level Level) {
|
func (logger *Logger) SetLevel(level Level) {
|
||||||
atomic.StoreUint32((*uint32)(&logger.Level), uint32(level))
|
atomic.StoreUint32((*uint32)(&logger.Level), uint32(level))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) SetOutput(out io.Writer) {
|
// GetLevel returns the logger level.
|
||||||
logger.mu.Lock()
|
func (logger *Logger) GetLevel() Level {
|
||||||
defer logger.mu.Unlock()
|
return logger.level()
|
||||||
logger.Out = out
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AddHook adds a hook to the logger hooks.
|
||||||
func (logger *Logger) AddHook(hook Hook) {
|
func (logger *Logger) AddHook(hook Hook) {
|
||||||
logger.mu.Lock()
|
logger.mu.Lock()
|
||||||
defer logger.mu.Unlock()
|
defer logger.mu.Unlock()
|
||||||
logger.Hooks.Add(hook)
|
logger.Hooks.Add(hook)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsLevelEnabled checks if the log level of the logger is greater than the level param
|
||||||
|
func (logger *Logger) IsLevelEnabled(level Level) bool {
|
||||||
|
return logger.level() >= level
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetFormatter sets the logger formatter.
|
||||||
|
func (logger *Logger) SetFormatter(formatter Formatter) {
|
||||||
|
logger.mu.Lock()
|
||||||
|
defer logger.mu.Unlock()
|
||||||
|
logger.Formatter = formatter
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetOutput sets the logger output.
|
||||||
|
func (logger *Logger) SetOutput(output io.Writer) {
|
||||||
|
logger.mu.Lock()
|
||||||
|
defer logger.mu.Unlock()
|
||||||
|
logger.Out = output
|
||||||
|
}
|
||||||
|
|
||||||
|
func (logger *Logger) SetReportCaller(reportCaller bool) {
|
||||||
|
logger.mu.Lock()
|
||||||
|
defer logger.mu.Unlock()
|
||||||
|
logger.ReportCaller = reportCaller
|
||||||
|
}
|
||||||
|
|
||||||
|
// ReplaceHooks replaces the logger hooks and returns the old ones
|
||||||
|
func (logger *Logger) ReplaceHooks(hooks LevelHooks) LevelHooks {
|
||||||
|
logger.mu.Lock()
|
||||||
|
oldHooks := logger.Hooks
|
||||||
|
logger.Hooks = hooks
|
||||||
|
logger.mu.Unlock()
|
||||||
|
return oldHooks
|
||||||
|
}
|
||||||
|
|
37
vendor/github.com/sirupsen/logrus/logrus.go
generated
vendored
37
vendor/github.com/sirupsen/logrus/logrus.go
generated
vendored
|
@ -15,6 +15,8 @@ type Level uint32
|
||||||
// Convert the Level to a string. E.g. PanicLevel becomes "panic".
|
// Convert the Level to a string. E.g. PanicLevel becomes "panic".
|
||||||
func (level Level) String() string {
|
func (level Level) String() string {
|
||||||
switch level {
|
switch level {
|
||||||
|
case TraceLevel:
|
||||||
|
return "trace"
|
||||||
case DebugLevel:
|
case DebugLevel:
|
||||||
return "debug"
|
return "debug"
|
||||||
case InfoLevel:
|
case InfoLevel:
|
||||||
|
@ -47,12 +49,26 @@ func ParseLevel(lvl string) (Level, error) {
|
||||||
return InfoLevel, nil
|
return InfoLevel, nil
|
||||||
case "debug":
|
case "debug":
|
||||||
return DebugLevel, nil
|
return DebugLevel, nil
|
||||||
|
case "trace":
|
||||||
|
return TraceLevel, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var l Level
|
var l Level
|
||||||
return l, fmt.Errorf("not a valid logrus Level: %q", lvl)
|
return l, fmt.Errorf("not a valid logrus Level: %q", lvl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||||
|
func (level *Level) UnmarshalText(text []byte) error {
|
||||||
|
l, err := ParseLevel(string(text))
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
*level = Level(l)
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// A constant exposing all logging levels
|
// A constant exposing all logging levels
|
||||||
var AllLevels = []Level{
|
var AllLevels = []Level{
|
||||||
PanicLevel,
|
PanicLevel,
|
||||||
|
@ -61,6 +77,7 @@ var AllLevels = []Level{
|
||||||
WarnLevel,
|
WarnLevel,
|
||||||
InfoLevel,
|
InfoLevel,
|
||||||
DebugLevel,
|
DebugLevel,
|
||||||
|
TraceLevel,
|
||||||
}
|
}
|
||||||
|
|
||||||
// These are the different logging levels. You can set the logging level to log
|
// These are the different logging levels. You can set the logging level to log
|
||||||
|
@ -69,7 +86,7 @@ const (
|
||||||
// PanicLevel level, highest level of severity. Logs and then calls panic with the
|
// PanicLevel level, highest level of severity. Logs and then calls panic with the
|
||||||
// message passed to Debug, Info, ...
|
// message passed to Debug, Info, ...
|
||||||
PanicLevel Level = iota
|
PanicLevel Level = iota
|
||||||
// FatalLevel level. Logs and then calls `os.Exit(1)`. It will exit even if the
|
// FatalLevel level. Logs and then calls `logger.Exit(1)`. It will exit even if the
|
||||||
// logging level is set to Panic.
|
// logging level is set to Panic.
|
||||||
FatalLevel
|
FatalLevel
|
||||||
// ErrorLevel level. Logs. Used for errors that should definitely be noted.
|
// ErrorLevel level. Logs. Used for errors that should definitely be noted.
|
||||||
|
@ -82,6 +99,8 @@ const (
|
||||||
InfoLevel
|
InfoLevel
|
||||||
// DebugLevel level. Usually only enabled when debugging. Very verbose logging.
|
// DebugLevel level. Usually only enabled when debugging. Very verbose logging.
|
||||||
DebugLevel
|
DebugLevel
|
||||||
|
// TraceLevel level. Designates finer-grained informational events than the Debug.
|
||||||
|
TraceLevel
|
||||||
)
|
)
|
||||||
|
|
||||||
// Won't compile if StdLogger can't be realized by a log.Logger
|
// Won't compile if StdLogger can't be realized by a log.Logger
|
||||||
|
@ -140,4 +159,20 @@ type FieldLogger interface {
|
||||||
Errorln(args ...interface{})
|
Errorln(args ...interface{})
|
||||||
Fatalln(args ...interface{})
|
Fatalln(args ...interface{})
|
||||||
Panicln(args ...interface{})
|
Panicln(args ...interface{})
|
||||||
|
|
||||||
|
// IsDebugEnabled() bool
|
||||||
|
// IsInfoEnabled() bool
|
||||||
|
// IsWarnEnabled() bool
|
||||||
|
// IsErrorEnabled() bool
|
||||||
|
// IsFatalEnabled() bool
|
||||||
|
// IsPanicEnabled() bool
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ext1FieldLogger (the first extension to FieldLogger) is superfluous, it is
|
||||||
|
// here for consistancy. Do not use. Use Logger or Entry instead.
|
||||||
|
type Ext1FieldLogger interface {
|
||||||
|
FieldLogger
|
||||||
|
Tracef(format string, args ...interface{})
|
||||||
|
Trace(args ...interface{})
|
||||||
|
Traceln(args ...interface{})
|
||||||
}
|
}
|
||||||
|
|
10
vendor/github.com/sirupsen/logrus/terminal_bsd.go
generated
vendored
10
vendor/github.com/sirupsen/logrus/terminal_bsd.go
generated
vendored
|
@ -1,10 +0,0 @@
|
||||||
// +build darwin freebsd openbsd netbsd dragonfly
|
|
||||||
// +build !appengine,!gopherjs
|
|
||||||
|
|
||||||
package logrus
|
|
||||||
|
|
||||||
import "golang.org/x/sys/unix"
|
|
||||||
|
|
||||||
const ioctlReadTermios = unix.TIOCGETA
|
|
||||||
|
|
||||||
type Termios unix.Termios
|
|
2
vendor/github.com/sirupsen/logrus/terminal_check_appengine.go
generated
vendored
2
vendor/github.com/sirupsen/logrus/terminal_check_appengine.go
generated
vendored
|
@ -1,4 +1,4 @@
|
||||||
// +build appengine gopherjs
|
// +build appengine
|
||||||
|
|
||||||
package logrus
|
package logrus
|
||||||
|
|
||||||
|
|
11
vendor/github.com/sirupsen/logrus/terminal_check_js.go
generated
vendored
Normal file
11
vendor/github.com/sirupsen/logrus/terminal_check_js.go
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
// +build js
|
||||||
|
|
||||||
|
package logrus
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
)
|
||||||
|
|
||||||
|
func checkIfTerminal(w io.Writer) bool {
|
||||||
|
return false
|
||||||
|
}
|
2
vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
generated
vendored
2
vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
generated
vendored
|
@ -1,4 +1,4 @@
|
||||||
// +build !appengine,!gopherjs
|
// +build !appengine,!js,!windows
|
||||||
|
|
||||||
package logrus
|
package logrus
|
||||||
|
|
||||||
|
|
20
vendor/github.com/sirupsen/logrus/terminal_check_windows.go
generated
vendored
Normal file
20
vendor/github.com/sirupsen/logrus/terminal_check_windows.go
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
// +build !appengine,!js,windows
|
||||||
|
|
||||||
|
package logrus
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
func checkIfTerminal(w io.Writer) bool {
|
||||||
|
switch v := w.(type) {
|
||||||
|
case *os.File:
|
||||||
|
var mode uint32
|
||||||
|
err := syscall.GetConsoleMode(syscall.Handle(v.Fd()), &mode)
|
||||||
|
return err == nil
|
||||||
|
default:
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
14
vendor/github.com/sirupsen/logrus/terminal_linux.go
generated
vendored
14
vendor/github.com/sirupsen/logrus/terminal_linux.go
generated
vendored
|
@ -1,14 +0,0 @@
|
||||||
// Based on ssh/terminal:
|
|
||||||
// Copyright 2013 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
// +build !appengine,!gopherjs
|
|
||||||
|
|
||||||
package logrus
|
|
||||||
|
|
||||||
import "golang.org/x/sys/unix"
|
|
||||||
|
|
||||||
const ioctlReadTermios = unix.TCGETS
|
|
||||||
|
|
||||||
type Termios unix.Termios
|
|
8
vendor/github.com/sirupsen/logrus/terminal_notwindows.go
generated
vendored
Normal file
8
vendor/github.com/sirupsen/logrus/terminal_notwindows.go
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// +build !windows
|
||||||
|
|
||||||
|
package logrus
|
||||||
|
|
||||||
|
import "io"
|
||||||
|
|
||||||
|
func initTerminal(w io.Writer) {
|
||||||
|
}
|
18
vendor/github.com/sirupsen/logrus/terminal_windows.go
generated
vendored
Normal file
18
vendor/github.com/sirupsen/logrus/terminal_windows.go
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// +build !appengine,!js,windows
|
||||||
|
|
||||||
|
package logrus
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
"syscall"
|
||||||
|
|
||||||
|
sequences "github.com/konsorten/go-windows-terminal-sequences"
|
||||||
|
)
|
||||||
|
|
||||||
|
func initTerminal(w io.Writer) {
|
||||||
|
switch v := w.(type) {
|
||||||
|
case *os.File:
|
||||||
|
sequences.EnableVirtualTerminalProcessing(syscall.Handle(v.Fd()), true)
|
||||||
|
}
|
||||||
|
}
|
114
vendor/github.com/sirupsen/logrus/text_formatter.go
generated
vendored
114
vendor/github.com/sirupsen/logrus/text_formatter.go
generated
vendored
|
@ -3,6 +3,7 @@ package logrus
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
@ -35,6 +36,9 @@ type TextFormatter struct {
|
||||||
// Force disabling colors.
|
// Force disabling colors.
|
||||||
DisableColors bool
|
DisableColors bool
|
||||||
|
|
||||||
|
// Override coloring based on CLICOLOR and CLICOLOR_FORCE. - https://bixense.com/clicolors/
|
||||||
|
EnvironmentOverrideColors bool
|
||||||
|
|
||||||
// Disable timestamp logging. useful when output is redirected to logging
|
// Disable timestamp logging. useful when output is redirected to logging
|
||||||
// system that already adds timestamps.
|
// system that already adds timestamps.
|
||||||
DisableTimestamp bool
|
DisableTimestamp bool
|
||||||
|
@ -51,6 +55,9 @@ type TextFormatter struct {
|
||||||
// be desired.
|
// be desired.
|
||||||
DisableSorting bool
|
DisableSorting bool
|
||||||
|
|
||||||
|
// The keys sorting function, when uninitialized it uses sort.Strings.
|
||||||
|
SortingFunc func([]string)
|
||||||
|
|
||||||
// Disables the truncation of the level text to 4 characters.
|
// Disables the truncation of the level text to 4 characters.
|
||||||
DisableLevelTruncation bool
|
DisableLevelTruncation bool
|
||||||
|
|
||||||
|
@ -69,26 +76,74 @@ type TextFormatter struct {
|
||||||
// FieldKeyMsg: "@message"}}
|
// FieldKeyMsg: "@message"}}
|
||||||
FieldMap FieldMap
|
FieldMap FieldMap
|
||||||
|
|
||||||
sync.Once
|
terminalInitOnce sync.Once
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *TextFormatter) init(entry *Entry) {
|
func (f *TextFormatter) init(entry *Entry) {
|
||||||
if entry.Logger != nil {
|
if entry.Logger != nil {
|
||||||
f.isTerminal = checkIfTerminal(entry.Logger.Out)
|
f.isTerminal = checkIfTerminal(entry.Logger.Out)
|
||||||
|
|
||||||
|
if f.isTerminal {
|
||||||
|
initTerminal(entry.Logger.Out)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (f *TextFormatter) isColored() bool {
|
||||||
|
isColored := f.ForceColors || f.isTerminal
|
||||||
|
|
||||||
|
if f.EnvironmentOverrideColors {
|
||||||
|
if force, ok := os.LookupEnv("CLICOLOR_FORCE"); ok && force != "0" {
|
||||||
|
isColored = true
|
||||||
|
} else if ok && force == "0" {
|
||||||
|
isColored = false
|
||||||
|
} else if os.Getenv("CLICOLOR") == "0" {
|
||||||
|
isColored = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return isColored && !f.DisableColors
|
||||||
|
}
|
||||||
|
|
||||||
// Format renders a single log entry
|
// Format renders a single log entry
|
||||||
func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
|
func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
|
||||||
prefixFieldClashes(entry.Data, f.FieldMap)
|
prefixFieldClashes(entry.Data, f.FieldMap, entry.HasCaller())
|
||||||
|
|
||||||
keys := make([]string, 0, len(entry.Data))
|
keys := make([]string, 0, len(entry.Data))
|
||||||
for k := range entry.Data {
|
for k := range entry.Data {
|
||||||
keys = append(keys, k)
|
keys = append(keys, k)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fixedKeys := make([]string, 0, 4+len(entry.Data))
|
||||||
|
if !f.DisableTimestamp {
|
||||||
|
fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyTime))
|
||||||
|
}
|
||||||
|
fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyLevel))
|
||||||
|
if entry.Message != "" {
|
||||||
|
fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyMsg))
|
||||||
|
}
|
||||||
|
if entry.err != "" {
|
||||||
|
fixedKeys = append(fixedKeys, f.FieldMap.resolve(FieldKeyLogrusError))
|
||||||
|
}
|
||||||
|
if entry.HasCaller() {
|
||||||
|
fixedKeys = append(fixedKeys,
|
||||||
|
f.FieldMap.resolve(FieldKeyFunc), f.FieldMap.resolve(FieldKeyFile))
|
||||||
|
}
|
||||||
|
|
||||||
if !f.DisableSorting {
|
if !f.DisableSorting {
|
||||||
sort.Strings(keys)
|
if f.SortingFunc == nil {
|
||||||
|
sort.Strings(keys)
|
||||||
|
fixedKeys = append(fixedKeys, keys...)
|
||||||
|
} else {
|
||||||
|
if !f.isColored() {
|
||||||
|
fixedKeys = append(fixedKeys, keys...)
|
||||||
|
f.SortingFunc(fixedKeys)
|
||||||
|
} else {
|
||||||
|
f.SortingFunc(keys)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fixedKeys = append(fixedKeys, keys...)
|
||||||
}
|
}
|
||||||
|
|
||||||
var b *bytes.Buffer
|
var b *bytes.Buffer
|
||||||
|
@ -98,26 +153,34 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
|
||||||
b = &bytes.Buffer{}
|
b = &bytes.Buffer{}
|
||||||
}
|
}
|
||||||
|
|
||||||
f.Do(func() { f.init(entry) })
|
f.terminalInitOnce.Do(func() { f.init(entry) })
|
||||||
|
|
||||||
isColored := (f.ForceColors || f.isTerminal) && !f.DisableColors
|
|
||||||
|
|
||||||
timestampFormat := f.TimestampFormat
|
timestampFormat := f.TimestampFormat
|
||||||
if timestampFormat == "" {
|
if timestampFormat == "" {
|
||||||
timestampFormat = defaultTimestampFormat
|
timestampFormat = defaultTimestampFormat
|
||||||
}
|
}
|
||||||
if isColored {
|
if f.isColored() {
|
||||||
f.printColored(b, entry, keys, timestampFormat)
|
f.printColored(b, entry, keys, timestampFormat)
|
||||||
} else {
|
} else {
|
||||||
if !f.DisableTimestamp {
|
for _, key := range fixedKeys {
|
||||||
f.appendKeyValue(b, f.FieldMap.resolve(FieldKeyTime), entry.Time.Format(timestampFormat))
|
var value interface{}
|
||||||
}
|
switch {
|
||||||
f.appendKeyValue(b, f.FieldMap.resolve(FieldKeyLevel), entry.Level.String())
|
case key == f.FieldMap.resolve(FieldKeyTime):
|
||||||
if entry.Message != "" {
|
value = entry.Time.Format(timestampFormat)
|
||||||
f.appendKeyValue(b, f.FieldMap.resolve(FieldKeyMsg), entry.Message)
|
case key == f.FieldMap.resolve(FieldKeyLevel):
|
||||||
}
|
value = entry.Level.String()
|
||||||
for _, key := range keys {
|
case key == f.FieldMap.resolve(FieldKeyMsg):
|
||||||
f.appendKeyValue(b, key, entry.Data[key])
|
value = entry.Message
|
||||||
|
case key == f.FieldMap.resolve(FieldKeyLogrusError):
|
||||||
|
value = entry.err
|
||||||
|
case key == f.FieldMap.resolve(FieldKeyFunc) && entry.HasCaller():
|
||||||
|
value = entry.Caller.Function
|
||||||
|
case key == f.FieldMap.resolve(FieldKeyFile) && entry.HasCaller():
|
||||||
|
value = fmt.Sprintf("%s:%d", entry.Caller.File, entry.Caller.Line)
|
||||||
|
default:
|
||||||
|
value = entry.Data[key]
|
||||||
|
}
|
||||||
|
f.appendKeyValue(b, key, value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +191,7 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
|
||||||
func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []string, timestampFormat string) {
|
func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []string, timestampFormat string) {
|
||||||
var levelColor int
|
var levelColor int
|
||||||
switch entry.Level {
|
switch entry.Level {
|
||||||
case DebugLevel:
|
case DebugLevel, TraceLevel:
|
||||||
levelColor = gray
|
levelColor = gray
|
||||||
case WarnLevel:
|
case WarnLevel:
|
||||||
levelColor = yellow
|
levelColor = yellow
|
||||||
|
@ -143,12 +206,23 @@ func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []strin
|
||||||
levelText = levelText[0:4]
|
levelText = levelText[0:4]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove a single newline if it already exists in the message to keep
|
||||||
|
// the behavior of logrus text_formatter the same as the stdlib log package
|
||||||
|
entry.Message = strings.TrimSuffix(entry.Message, "\n")
|
||||||
|
|
||||||
|
caller := ""
|
||||||
|
|
||||||
|
if entry.HasCaller() {
|
||||||
|
caller = fmt.Sprintf("%s:%d %s()",
|
||||||
|
entry.Caller.File, entry.Caller.Line, entry.Caller.Function)
|
||||||
|
}
|
||||||
|
|
||||||
if f.DisableTimestamp {
|
if f.DisableTimestamp {
|
||||||
fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m %-44s ", levelColor, levelText, entry.Message)
|
fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m%s %-44s ", levelColor, levelText, caller, entry.Message)
|
||||||
} else if !f.FullTimestamp {
|
} else if !f.FullTimestamp {
|
||||||
fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%04d] %-44s ", levelColor, levelText, int(entry.Time.Sub(baseTimestamp)/time.Second), entry.Message)
|
fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%04d]%s %-44s ", levelColor, levelText, int(entry.Time.Sub(baseTimestamp)/time.Second), caller, entry.Message)
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%s] %-44s ", levelColor, levelText, entry.Time.Format(timestampFormat), entry.Message)
|
fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%s]%s %-44s ", levelColor, levelText, entry.Time.Format(timestampFormat), caller, entry.Message)
|
||||||
}
|
}
|
||||||
for _, k := range keys {
|
for _, k := range keys {
|
||||||
v := entry.Data[k]
|
v := entry.Data[k]
|
||||||
|
|
2
vendor/github.com/sirupsen/logrus/writer.go
generated
vendored
2
vendor/github.com/sirupsen/logrus/writer.go
generated
vendored
|
@ -24,6 +24,8 @@ func (entry *Entry) WriterLevel(level Level) *io.PipeWriter {
|
||||||
var printFunc func(args ...interface{})
|
var printFunc func(args ...interface{})
|
||||||
|
|
||||||
switch level {
|
switch level {
|
||||||
|
case TraceLevel:
|
||||||
|
printFunc = entry.Trace
|
||||||
case DebugLevel:
|
case DebugLevel:
|
||||||
printFunc = entry.Debug
|
printFunc = entry.Debug
|
||||||
case InfoLevel:
|
case InfoLevel:
|
||||||
|
|
7
vendor/github.com/spf13/pflag/flag.go
generated
vendored
7
vendor/github.com/spf13/pflag/flag.go
generated
vendored
|
@ -925,13 +925,16 @@ func stripUnknownFlagValue(args []string) []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
first := args[0]
|
first := args[0]
|
||||||
if first[0] == '-' {
|
if len(first) > 0 && first[0] == '-' {
|
||||||
//--unknown --next-flag ...
|
//--unknown --next-flag ...
|
||||||
return args
|
return args
|
||||||
}
|
}
|
||||||
|
|
||||||
//--unknown arg ... (args will be arg ...)
|
//--unknown arg ... (args will be arg ...)
|
||||||
return args[1:]
|
if len(args) > 1 {
|
||||||
|
return args[1:]
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []string, err error) {
|
func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []string, err error) {
|
||||||
|
|
149
vendor/github.com/spf13/pflag/string_to_int.go
generated
vendored
Normal file
149
vendor/github.com/spf13/pflag/string_to_int.go
generated
vendored
Normal file
|
@ -0,0 +1,149 @@
|
||||||
|
package pflag
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
// -- stringToInt Value
|
||||||
|
type stringToIntValue struct {
|
||||||
|
value *map[string]int
|
||||||
|
changed bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func newStringToIntValue(val map[string]int, p *map[string]int) *stringToIntValue {
|
||||||
|
ssv := new(stringToIntValue)
|
||||||
|
ssv.value = p
|
||||||
|
*ssv.value = val
|
||||||
|
return ssv
|
||||||
|
}
|
||||||
|
|
||||||
|
// Format: a=1,b=2
|
||||||
|
func (s *stringToIntValue) Set(val string) error {
|
||||||
|
ss := strings.Split(val, ",")
|
||||||
|
out := make(map[string]int, len(ss))
|
||||||
|
for _, pair := range ss {
|
||||||
|
kv := strings.SplitN(pair, "=", 2)
|
||||||
|
if len(kv) != 2 {
|
||||||
|
return fmt.Errorf("%s must be formatted as key=value", pair)
|
||||||
|
}
|
||||||
|
var err error
|
||||||
|
out[kv[0]], err = strconv.Atoi(kv[1])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if !s.changed {
|
||||||
|
*s.value = out
|
||||||
|
} else {
|
||||||
|
for k, v := range out {
|
||||||
|
(*s.value)[k] = v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
s.changed = true
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *stringToIntValue) Type() string {
|
||||||
|
return "stringToInt"
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *stringToIntValue) String() string {
|
||||||
|
var buf bytes.Buffer
|
||||||
|
i := 0
|
||||||
|
for k, v := range *s.value {
|
||||||
|
if i > 0 {
|
||||||
|
buf.WriteRune(',')
|
||||||
|
}
|
||||||
|
buf.WriteString(k)
|
||||||
|
buf.WriteRune('=')
|
||||||
|
buf.WriteString(strconv.Itoa(v))
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
return "[" + buf.String() + "]"
|
||||||
|
}
|
||||||
|
|
||||||
|
func stringToIntConv(val string) (interface{}, error) {
|
||||||
|
val = strings.Trim(val, "[]")
|
||||||
|
// An empty string would cause an empty map
|
||||||
|
if len(val) == 0 {
|
||||||
|
return map[string]int{}, nil
|
||||||
|
}
|
||||||
|
ss := strings.Split(val, ",")
|
||||||
|
out := make(map[string]int, len(ss))
|
||||||
|
for _, pair := range ss {
|
||||||
|
kv := strings.SplitN(pair, "=", 2)
|
||||||
|
if len(kv) != 2 {
|
||||||
|
return nil, fmt.Errorf("%s must be formatted as key=value", pair)
|
||||||
|
}
|
||||||
|
var err error
|
||||||
|
out[kv[0]], err = strconv.Atoi(kv[1])
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetStringToInt return the map[string]int value of a flag with the given name
|
||||||
|
func (f *FlagSet) GetStringToInt(name string) (map[string]int, error) {
|
||||||
|
val, err := f.getFlagType(name, "stringToInt", stringToIntConv)
|
||||||
|
if err != nil {
|
||||||
|
return map[string]int{}, err
|
||||||
|
}
|
||||||
|
return val.(map[string]int), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToIntVar defines a string flag with specified name, default value, and usage string.
|
||||||
|
// The argument p points to a map[string]int variable in which to store the values of the multiple flags.
|
||||||
|
// The value of each argument will not try to be separated by comma
|
||||||
|
func (f *FlagSet) StringToIntVar(p *map[string]int, name string, value map[string]int, usage string) {
|
||||||
|
f.VarP(newStringToIntValue(value, p), name, "", usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash.
|
||||||
|
func (f *FlagSet) StringToIntVarP(p *map[string]int, name, shorthand string, value map[string]int, usage string) {
|
||||||
|
f.VarP(newStringToIntValue(value, p), name, shorthand, usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToIntVar defines a string flag with specified name, default value, and usage string.
|
||||||
|
// The argument p points to a map[string]int variable in which to store the value of the flag.
|
||||||
|
// The value of each argument will not try to be separated by comma
|
||||||
|
func StringToIntVar(p *map[string]int, name string, value map[string]int, usage string) {
|
||||||
|
CommandLine.VarP(newStringToIntValue(value, p), name, "", usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash.
|
||||||
|
func StringToIntVarP(p *map[string]int, name, shorthand string, value map[string]int, usage string) {
|
||||||
|
CommandLine.VarP(newStringToIntValue(value, p), name, shorthand, usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToInt defines a string flag with specified name, default value, and usage string.
|
||||||
|
// The return value is the address of a map[string]int variable that stores the value of the flag.
|
||||||
|
// The value of each argument will not try to be separated by comma
|
||||||
|
func (f *FlagSet) StringToInt(name string, value map[string]int, usage string) *map[string]int {
|
||||||
|
p := map[string]int{}
|
||||||
|
f.StringToIntVarP(&p, name, "", value, usage)
|
||||||
|
return &p
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToIntP is like StringToInt, but accepts a shorthand letter that can be used after a single dash.
|
||||||
|
func (f *FlagSet) StringToIntP(name, shorthand string, value map[string]int, usage string) *map[string]int {
|
||||||
|
p := map[string]int{}
|
||||||
|
f.StringToIntVarP(&p, name, shorthand, value, usage)
|
||||||
|
return &p
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToInt defines a string flag with specified name, default value, and usage string.
|
||||||
|
// The return value is the address of a map[string]int variable that stores the value of the flag.
|
||||||
|
// The value of each argument will not try to be separated by comma
|
||||||
|
func StringToInt(name string, value map[string]int, usage string) *map[string]int {
|
||||||
|
return CommandLine.StringToIntP(name, "", value, usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToIntP is like StringToInt, but accepts a shorthand letter that can be used after a single dash.
|
||||||
|
func StringToIntP(name, shorthand string, value map[string]int, usage string) *map[string]int {
|
||||||
|
return CommandLine.StringToIntP(name, shorthand, value, usage)
|
||||||
|
}
|
160
vendor/github.com/spf13/pflag/string_to_string.go
generated
vendored
Normal file
160
vendor/github.com/spf13/pflag/string_to_string.go
generated
vendored
Normal file
|
@ -0,0 +1,160 @@
|
||||||
|
package pflag
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"encoding/csv"
|
||||||
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
// -- stringToString Value
|
||||||
|
type stringToStringValue struct {
|
||||||
|
value *map[string]string
|
||||||
|
changed bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func newStringToStringValue(val map[string]string, p *map[string]string) *stringToStringValue {
|
||||||
|
ssv := new(stringToStringValue)
|
||||||
|
ssv.value = p
|
||||||
|
*ssv.value = val
|
||||||
|
return ssv
|
||||||
|
}
|
||||||
|
|
||||||
|
// Format: a=1,b=2
|
||||||
|
func (s *stringToStringValue) Set(val string) error {
|
||||||
|
var ss []string
|
||||||
|
n := strings.Count(val, "=")
|
||||||
|
switch n {
|
||||||
|
case 0:
|
||||||
|
return fmt.Errorf("%s must be formatted as key=value", val)
|
||||||
|
case 1:
|
||||||
|
ss = append(ss, strings.Trim(val, `"`))
|
||||||
|
default:
|
||||||
|
r := csv.NewReader(strings.NewReader(val))
|
||||||
|
var err error
|
||||||
|
ss, err = r.Read()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
out := make(map[string]string, len(ss))
|
||||||
|
for _, pair := range ss {
|
||||||
|
kv := strings.SplitN(pair, "=", 2)
|
||||||
|
if len(kv) != 2 {
|
||||||
|
return fmt.Errorf("%s must be formatted as key=value", pair)
|
||||||
|
}
|
||||||
|
out[kv[0]] = kv[1]
|
||||||
|
}
|
||||||
|
if !s.changed {
|
||||||
|
*s.value = out
|
||||||
|
} else {
|
||||||
|
for k, v := range out {
|
||||||
|
(*s.value)[k] = v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
s.changed = true
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *stringToStringValue) Type() string {
|
||||||
|
return "stringToString"
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *stringToStringValue) String() string {
|
||||||
|
records := make([]string, 0, len(*s.value)>>1)
|
||||||
|
for k, v := range *s.value {
|
||||||
|
records = append(records, k+"="+v)
|
||||||
|
}
|
||||||
|
|
||||||
|
var buf bytes.Buffer
|
||||||
|
w := csv.NewWriter(&buf)
|
||||||
|
if err := w.Write(records); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
w.Flush()
|
||||||
|
return "[" + strings.TrimSpace(buf.String()) + "]"
|
||||||
|
}
|
||||||
|
|
||||||
|
func stringToStringConv(val string) (interface{}, error) {
|
||||||
|
val = strings.Trim(val, "[]")
|
||||||
|
// An empty string would cause an empty map
|
||||||
|
if len(val) == 0 {
|
||||||
|
return map[string]string{}, nil
|
||||||
|
}
|
||||||
|
r := csv.NewReader(strings.NewReader(val))
|
||||||
|
ss, err := r.Read()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
out := make(map[string]string, len(ss))
|
||||||
|
for _, pair := range ss {
|
||||||
|
kv := strings.SplitN(pair, "=", 2)
|
||||||
|
if len(kv) != 2 {
|
||||||
|
return nil, fmt.Errorf("%s must be formatted as key=value", pair)
|
||||||
|
}
|
||||||
|
out[kv[0]] = kv[1]
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetStringToString return the map[string]string value of a flag with the given name
|
||||||
|
func (f *FlagSet) GetStringToString(name string) (map[string]string, error) {
|
||||||
|
val, err := f.getFlagType(name, "stringToString", stringToStringConv)
|
||||||
|
if err != nil {
|
||||||
|
return map[string]string{}, err
|
||||||
|
}
|
||||||
|
return val.(map[string]string), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToStringVar defines a string flag with specified name, default value, and usage string.
|
||||||
|
// The argument p points to a map[string]string variable in which to store the values of the multiple flags.
|
||||||
|
// The value of each argument will not try to be separated by comma
|
||||||
|
func (f *FlagSet) StringToStringVar(p *map[string]string, name string, value map[string]string, usage string) {
|
||||||
|
f.VarP(newStringToStringValue(value, p), name, "", usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToStringVarP is like StringToStringVar, but accepts a shorthand letter that can be used after a single dash.
|
||||||
|
func (f *FlagSet) StringToStringVarP(p *map[string]string, name, shorthand string, value map[string]string, usage string) {
|
||||||
|
f.VarP(newStringToStringValue(value, p), name, shorthand, usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToStringVar defines a string flag with specified name, default value, and usage string.
|
||||||
|
// The argument p points to a map[string]string variable in which to store the value of the flag.
|
||||||
|
// The value of each argument will not try to be separated by comma
|
||||||
|
func StringToStringVar(p *map[string]string, name string, value map[string]string, usage string) {
|
||||||
|
CommandLine.VarP(newStringToStringValue(value, p), name, "", usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToStringVarP is like StringToStringVar, but accepts a shorthand letter that can be used after a single dash.
|
||||||
|
func StringToStringVarP(p *map[string]string, name, shorthand string, value map[string]string, usage string) {
|
||||||
|
CommandLine.VarP(newStringToStringValue(value, p), name, shorthand, usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToString defines a string flag with specified name, default value, and usage string.
|
||||||
|
// The return value is the address of a map[string]string variable that stores the value of the flag.
|
||||||
|
// The value of each argument will not try to be separated by comma
|
||||||
|
func (f *FlagSet) StringToString(name string, value map[string]string, usage string) *map[string]string {
|
||||||
|
p := map[string]string{}
|
||||||
|
f.StringToStringVarP(&p, name, "", value, usage)
|
||||||
|
return &p
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToStringP is like StringToString, but accepts a shorthand letter that can be used after a single dash.
|
||||||
|
func (f *FlagSet) StringToStringP(name, shorthand string, value map[string]string, usage string) *map[string]string {
|
||||||
|
p := map[string]string{}
|
||||||
|
f.StringToStringVarP(&p, name, shorthand, value, usage)
|
||||||
|
return &p
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToString defines a string flag with specified name, default value, and usage string.
|
||||||
|
// The return value is the address of a map[string]string variable that stores the value of the flag.
|
||||||
|
// The value of each argument will not try to be separated by comma
|
||||||
|
func StringToString(name string, value map[string]string, usage string) *map[string]string {
|
||||||
|
return CommandLine.StringToStringP(name, "", value, usage)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StringToStringP is like StringToString, but accepts a shorthand letter that can be used after a single dash.
|
||||||
|
func StringToStringP(name, shorthand string, value map[string]string, usage string) *map[string]string {
|
||||||
|
return CommandLine.StringToStringP(name, shorthand, value, usage)
|
||||||
|
}
|
87
vendor/golang.org/x/crypto/openpgp/keys.go
generated
vendored
87
vendor/golang.org/x/crypto/openpgp/keys.go
generated
vendored
|
@ -345,36 +345,8 @@ EachPacket:
|
||||||
|
|
||||||
switch pkt := p.(type) {
|
switch pkt := p.(type) {
|
||||||
case *packet.UserId:
|
case *packet.UserId:
|
||||||
// Make a new Identity object, that we might wind up throwing away.
|
if err := addUserID(e, packets, pkt); err != nil {
|
||||||
// We'll only add it if we get a valid self-signature over this
|
return nil, err
|
||||||
// userID.
|
|
||||||
current := new(Identity)
|
|
||||||
current.Name = pkt.Id
|
|
||||||
current.UserId = pkt
|
|
||||||
|
|
||||||
for {
|
|
||||||
p, err = packets.Next()
|
|
||||||
if err == io.EOF {
|
|
||||||
break EachPacket
|
|
||||||
} else if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
sig, ok := p.(*packet.Signature)
|
|
||||||
if !ok {
|
|
||||||
packets.Unread(p)
|
|
||||||
continue EachPacket
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sig.SigType == packet.SigTypePositiveCert || sig.SigType == packet.SigTypeGenericCert) && sig.IssuerKeyId != nil && *sig.IssuerKeyId == e.PrimaryKey.KeyId {
|
|
||||||
if err = e.PrimaryKey.VerifyUserIdSignature(pkt.Id, e.PrimaryKey, sig); err != nil {
|
|
||||||
return nil, errors.StructuralError("user ID self-signature invalid: " + err.Error())
|
|
||||||
}
|
|
||||||
current.SelfSignature = sig
|
|
||||||
e.Identities[pkt.Id] = current
|
|
||||||
} else {
|
|
||||||
current.Signatures = append(current.Signatures, sig)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
case *packet.Signature:
|
case *packet.Signature:
|
||||||
if pkt.SigType == packet.SigTypeKeyRevocation {
|
if pkt.SigType == packet.SigTypeKeyRevocation {
|
||||||
|
@ -426,6 +398,42 @@ EachPacket:
|
||||||
return e, nil
|
return e, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func addUserID(e *Entity, packets *packet.Reader, pkt *packet.UserId) error {
|
||||||
|
// Make a new Identity object, that we might wind up throwing away.
|
||||||
|
// We'll only add it if we get a valid self-signature over this
|
||||||
|
// userID.
|
||||||
|
identity := new(Identity)
|
||||||
|
identity.Name = pkt.Id
|
||||||
|
identity.UserId = pkt
|
||||||
|
|
||||||
|
for {
|
||||||
|
p, err := packets.Next()
|
||||||
|
if err == io.EOF {
|
||||||
|
break
|
||||||
|
} else if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
sig, ok := p.(*packet.Signature)
|
||||||
|
if !ok {
|
||||||
|
packets.Unread(p)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sig.SigType == packet.SigTypePositiveCert || sig.SigType == packet.SigTypeGenericCert) && sig.IssuerKeyId != nil && *sig.IssuerKeyId == e.PrimaryKey.KeyId {
|
||||||
|
if err = e.PrimaryKey.VerifyUserIdSignature(pkt.Id, e.PrimaryKey, sig); err != nil {
|
||||||
|
return errors.StructuralError("user ID self-signature invalid: " + err.Error())
|
||||||
|
}
|
||||||
|
identity.SelfSignature = sig
|
||||||
|
e.Identities[pkt.Id] = identity
|
||||||
|
} else {
|
||||||
|
identity.Signatures = append(identity.Signatures, sig)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func addSubkey(e *Entity, packets *packet.Reader, pub *packet.PublicKey, priv *packet.PrivateKey) error {
|
func addSubkey(e *Entity, packets *packet.Reader, pub *packet.PublicKey, priv *packet.PrivateKey) error {
|
||||||
var subKey Subkey
|
var subKey Subkey
|
||||||
subKey.PublicKey = pub
|
subKey.PublicKey = pub
|
||||||
|
@ -457,7 +465,8 @@ func addSubkey(e *Entity, packets *packet.Reader, pub *packet.PublicKey, priv *p
|
||||||
case packet.SigTypeSubkeyRevocation:
|
case packet.SigTypeSubkeyRevocation:
|
||||||
subKey.Sig = sig
|
subKey.Sig = sig
|
||||||
case packet.SigTypeSubkeyBinding:
|
case packet.SigTypeSubkeyBinding:
|
||||||
if subKey.Sig == nil {
|
|
||||||
|
if shouldReplaceSubkeySig(subKey.Sig, sig) {
|
||||||
subKey.Sig = sig
|
subKey.Sig = sig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -472,6 +481,22 @@ func addSubkey(e *Entity, packets *packet.Reader, pub *packet.PublicKey, priv *p
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func shouldReplaceSubkeySig(existingSig, potentialNewSig *packet.Signature) bool {
|
||||||
|
if potentialNewSig == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
if existingSig == nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
if existingSig.SigType == packet.SigTypeSubkeyRevocation {
|
||||||
|
return false // never override a revocation signature
|
||||||
|
}
|
||||||
|
|
||||||
|
return potentialNewSig.CreationTime.After(existingSig.CreationTime)
|
||||||
|
}
|
||||||
|
|
||||||
const defaultRSAKeyBits = 2048
|
const defaultRSAKeyBits = 2048
|
||||||
|
|
||||||
// NewEntity returns an Entity that contains a fresh RSA/RSA keypair with a
|
// NewEntity returns an Entity that contains a fresh RSA/RSA keypair with a
|
||||||
|
|
12
vendor/golang.org/x/crypto/openpgp/packet/packet.go
generated
vendored
12
vendor/golang.org/x/crypto/openpgp/packet/packet.go
generated
vendored
|
@ -404,14 +404,16 @@ const (
|
||||||
type PublicKeyAlgorithm uint8
|
type PublicKeyAlgorithm uint8
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PubKeyAlgoRSA PublicKeyAlgorithm = 1
|
PubKeyAlgoRSA PublicKeyAlgorithm = 1
|
||||||
PubKeyAlgoRSAEncryptOnly PublicKeyAlgorithm = 2
|
PubKeyAlgoElGamal PublicKeyAlgorithm = 16
|
||||||
PubKeyAlgoRSASignOnly PublicKeyAlgorithm = 3
|
PubKeyAlgoDSA PublicKeyAlgorithm = 17
|
||||||
PubKeyAlgoElGamal PublicKeyAlgorithm = 16
|
|
||||||
PubKeyAlgoDSA PublicKeyAlgorithm = 17
|
|
||||||
// RFC 6637, Section 5.
|
// RFC 6637, Section 5.
|
||||||
PubKeyAlgoECDH PublicKeyAlgorithm = 18
|
PubKeyAlgoECDH PublicKeyAlgorithm = 18
|
||||||
PubKeyAlgoECDSA PublicKeyAlgorithm = 19
|
PubKeyAlgoECDSA PublicKeyAlgorithm = 19
|
||||||
|
|
||||||
|
// Deprecated in RFC 4880, Section 13.5. Use key flags instead.
|
||||||
|
PubKeyAlgoRSAEncryptOnly PublicKeyAlgorithm = 2
|
||||||
|
PubKeyAlgoRSASignOnly PublicKeyAlgorithm = 3
|
||||||
)
|
)
|
||||||
|
|
||||||
// CanEncrypt returns true if it's possible to encrypt a message to a public
|
// CanEncrypt returns true if it's possible to encrypt a message to a public
|
||||||
|
|
9
vendor/golang.org/x/crypto/openpgp/packet/private_key.go
generated
vendored
9
vendor/golang.org/x/crypto/openpgp/packet/private_key.go
generated
vendored
|
@ -64,14 +64,19 @@ func NewECDSAPrivateKey(currentTime time.Time, priv *ecdsa.PrivateKey) *PrivateK
|
||||||
return pk
|
return pk
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSignerPrivateKey creates a sign-only PrivateKey from a crypto.Signer that
|
// NewSignerPrivateKey creates a PrivateKey from a crypto.Signer that
|
||||||
// implements RSA or ECDSA.
|
// implements RSA or ECDSA.
|
||||||
func NewSignerPrivateKey(currentTime time.Time, signer crypto.Signer) *PrivateKey {
|
func NewSignerPrivateKey(currentTime time.Time, signer crypto.Signer) *PrivateKey {
|
||||||
pk := new(PrivateKey)
|
pk := new(PrivateKey)
|
||||||
|
// In general, the public Keys should be used as pointers. We still
|
||||||
|
// type-switch on the values, for backwards-compatibility.
|
||||||
switch pubkey := signer.Public().(type) {
|
switch pubkey := signer.Public().(type) {
|
||||||
|
case *rsa.PublicKey:
|
||||||
|
pk.PublicKey = *NewRSAPublicKey(currentTime, pubkey)
|
||||||
case rsa.PublicKey:
|
case rsa.PublicKey:
|
||||||
pk.PublicKey = *NewRSAPublicKey(currentTime, &pubkey)
|
pk.PublicKey = *NewRSAPublicKey(currentTime, &pubkey)
|
||||||
pk.PubKeyAlgo = PubKeyAlgoRSASignOnly
|
case *ecdsa.PublicKey:
|
||||||
|
pk.PublicKey = *NewECDSAPublicKey(currentTime, pubkey)
|
||||||
case ecdsa.PublicKey:
|
case ecdsa.PublicKey:
|
||||||
pk.PublicKey = *NewECDSAPublicKey(currentTime, &pubkey)
|
pk.PublicKey = *NewECDSAPublicKey(currentTime, &pubkey)
|
||||||
default:
|
default:
|
||||||
|
|
2
vendor/golang.org/x/crypto/openpgp/packet/signature.go
generated
vendored
2
vendor/golang.org/x/crypto/openpgp/packet/signature.go
generated
vendored
|
@ -542,7 +542,7 @@ func (sig *Signature) Sign(h hash.Hash, priv *PrivateKey, config *Config) (err e
|
||||||
r, s, err = ecdsa.Sign(config.Random(), pk, digest)
|
r, s, err = ecdsa.Sign(config.Random(), pk, digest)
|
||||||
} else {
|
} else {
|
||||||
var b []byte
|
var b []byte
|
||||||
b, err = priv.PrivateKey.(crypto.Signer).Sign(config.Random(), digest, nil)
|
b, err = priv.PrivateKey.(crypto.Signer).Sign(config.Random(), digest, sig.Hash)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
r, s, err = unwrapECDSASig(b)
|
r, s, err = unwrapECDSASig(b)
|
||||||
}
|
}
|
||||||
|
|
2
vendor/golang.org/x/crypto/openpgp/packet/userattribute.go
generated
vendored
2
vendor/golang.org/x/crypto/openpgp/packet/userattribute.go
generated
vendored
|
@ -80,7 +80,7 @@ func (uat *UserAttribute) Serialize(w io.Writer) (err error) {
|
||||||
|
|
||||||
// ImageData returns zero or more byte slices, each containing
|
// ImageData returns zero or more byte slices, each containing
|
||||||
// JPEG File Interchange Format (JFIF), for each photo in the
|
// JPEG File Interchange Format (JFIF), for each photo in the
|
||||||
// the user attribute packet.
|
// user attribute packet.
|
||||||
func (uat *UserAttribute) ImageData() (imageData [][]byte) {
|
func (uat *UserAttribute) ImageData() (imageData [][]byte) {
|
||||||
for _, sp := range uat.Contents {
|
for _, sp := range uat.Contents {
|
||||||
if sp.SubType == UserAttrImageSubpacket && len(sp.Contents) > 16 {
|
if sp.SubType == UserAttrImageSubpacket && len(sp.Contents) > 16 {
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/asm_aix_ppc64.s
generated
vendored
Normal file
17
vendor/golang.org/x/sys/unix/asm_aix_ppc64.s
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
// Copyright 2018 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System calls for ppc64, AIX are implemented in runtime/syscall_aix.go
|
||||||
|
//
|
||||||
|
|
||||||
|
TEXT ·syscall6(SB),NOSPLIT,$0-88
|
||||||
|
JMP syscall·syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·rawSyscall6(SB),NOSPLIT,$0-88
|
||||||
|
JMP syscall·rawSyscall6(SB)
|
12
vendor/golang.org/x/sys/unix/dev_aix_ppc.go
generated
vendored
12
vendor/golang.org/x/sys/unix/dev_aix_ppc.go
generated
vendored
|
@ -6,17 +6,7 @@
|
||||||
// +build ppc
|
// +build ppc
|
||||||
|
|
||||||
// Functions to access/create device major and minor numbers matching the
|
// Functions to access/create device major and minor numbers matching the
|
||||||
// encoding used by the Linux kernel and glibc.
|
// encoding used by AIX.
|
||||||
//
|
|
||||||
// The information below is extracted and adapted from bits/sysmacros.h in the
|
|
||||||
// glibc sources:
|
|
||||||
//
|
|
||||||
// dev_t in glibc is 64-bit, with 32-bit major and minor numbers. glibc's
|
|
||||||
// default encoding is MMMM Mmmm mmmM MMmm, where M is a hex digit of the major
|
|
||||||
// number and m is a hex digit of the minor number. This is backward compatible
|
|
||||||
// with legacy systems where dev_t is 16 bits wide, encoded as MMmm. It is also
|
|
||||||
// backward compatible with the Linux kernel, which for some architectures uses
|
|
||||||
// 32-bit dev_t, encoded as mmmM MMmm.
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|
12
vendor/golang.org/x/sys/unix/dev_aix_ppc64.go
generated
vendored
12
vendor/golang.org/x/sys/unix/dev_aix_ppc64.go
generated
vendored
|
@ -6,17 +6,7 @@
|
||||||
// +build ppc64
|
// +build ppc64
|
||||||
|
|
||||||
// Functions to access/create device major and minor numbers matching the
|
// Functions to access/create device major and minor numbers matching the
|
||||||
// encoding used by the Linux kernel and glibc.
|
// encoding used AIX.
|
||||||
//
|
|
||||||
// The information below is extracted and adapted from bits/sysmacros.h in the
|
|
||||||
// glibc sources:
|
|
||||||
//
|
|
||||||
// dev_t in glibc is 64-bit, with 32-bit major and minor numbers. glibc's
|
|
||||||
// default encoding is MMMM Mmmm mmmM MMmm, where M is a hex digit of the major
|
|
||||||
// number and m is a hex digit of the minor number. This is backward compatible
|
|
||||||
// with legacy systems where dev_t is 16 bits wide, encoded as MMmm. It is also
|
|
||||||
// backward compatible with the Linux kernel, which for some architectures uses
|
|
||||||
// 32-bit dev_t, encoded as mmmM MMmm.
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
2
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
|
@ -2,7 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|
99
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
99
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
|
@ -15,10 +15,6 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
_SYS_PLEDGE = 108
|
|
||||||
)
|
|
||||||
|
|
||||||
// Pledge implements the pledge syscall.
|
// Pledge implements the pledge syscall.
|
||||||
//
|
//
|
||||||
// The pledge syscall does not accept execpromises on OpenBSD releases
|
// The pledge syscall does not accept execpromises on OpenBSD releases
|
||||||
|
@ -34,15 +30,9 @@ func Pledge(promises, execpromises string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// If OpenBSD <= 5.9, pledge is not available.
|
err = pledgeAvailable(maj, min, execpromises)
|
||||||
if (maj == 5 && min != 9) || maj < 5 {
|
if err != nil {
|
||||||
return fmt.Errorf("pledge syscall is not available on OpenBSD %d.%d", maj, min)
|
return err
|
||||||
}
|
|
||||||
|
|
||||||
// If OpenBSD <= 6.2 and execpromises is not empty
|
|
||||||
// return an error - execpromises is not available before 6.3
|
|
||||||
if (maj < 6 || (maj == 6 && min <= 2)) && execpromises != "" {
|
|
||||||
return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pptr, err := syscall.BytePtrFromString(promises)
|
pptr, err := syscall.BytePtrFromString(promises)
|
||||||
|
@ -63,7 +53,71 @@ func Pledge(promises, execpromises string) error {
|
||||||
expr = unsafe.Pointer(exptr)
|
expr = unsafe.Pointer(exptr)
|
||||||
}
|
}
|
||||||
|
|
||||||
_, _, e := syscall.Syscall(_SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
|
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// PledgePromises implements the pledge syscall.
|
||||||
|
//
|
||||||
|
// This changes the promises and leaves the execpromises untouched.
|
||||||
|
//
|
||||||
|
// For more information see pledge(2).
|
||||||
|
func PledgePromises(promises string) error {
|
||||||
|
maj, min, err := majmin()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = pledgeAvailable(maj, min, "")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// This variable holds the execpromises and is always nil.
|
||||||
|
var expr unsafe.Pointer
|
||||||
|
|
||||||
|
pptr, err := syscall.BytePtrFromString(promises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// PledgeExecpromises implements the pledge syscall.
|
||||||
|
//
|
||||||
|
// This changes the execpromises and leaves the promises untouched.
|
||||||
|
//
|
||||||
|
// For more information see pledge(2).
|
||||||
|
func PledgeExecpromises(execpromises string) error {
|
||||||
|
maj, min, err := majmin()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = pledgeAvailable(maj, min, execpromises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// This variable holds the promises and is always nil.
|
||||||
|
var pptr unsafe.Pointer
|
||||||
|
|
||||||
|
exptr, err := syscall.BytePtrFromString(execpromises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(pptr), uintptr(unsafe.Pointer(exptr)), 0)
|
||||||
if e != 0 {
|
if e != 0 {
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
@ -93,3 +147,20 @@ func majmin() (major int, minor int, err error) {
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// pledgeAvailable checks for availability of the pledge(2) syscall
|
||||||
|
// based on the running OpenBSD version.
|
||||||
|
func pledgeAvailable(maj, min int, execpromises string) error {
|
||||||
|
// If OpenBSD <= 5.9, pledge is not available.
|
||||||
|
if (maj == 5 && min != 9) || maj < 5 {
|
||||||
|
return fmt.Errorf("pledge syscall is not available on OpenBSD %d.%d", maj, min)
|
||||||
|
}
|
||||||
|
|
||||||
|
// If OpenBSD <= 6.2 and execpromises is not empty,
|
||||||
|
// return an error - execpromises is not available before 6.3
|
||||||
|
if (maj < 6 || (maj == 6 && min <= 2)) && execpromises != "" {
|
||||||
|
return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
44
vendor/golang.org/x/sys/unix/openbsd_unveil.go
generated
vendored
Normal file
44
vendor/golang.org/x/sys/unix/openbsd_unveil.go
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
// Copyright 2018 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Unveil implements the unveil syscall.
|
||||||
|
// For more information see unveil(2).
|
||||||
|
// Note that the special case of blocking further
|
||||||
|
// unveil calls is handled by UnveilBlock.
|
||||||
|
func Unveil(path string, flags string) error {
|
||||||
|
pathPtr, err := syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
flagsPtr, err := syscall.BytePtrFromString(flags)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(unsafe.Pointer(pathPtr)), uintptr(unsafe.Pointer(flagsPtr)), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnveilBlock blocks future unveil calls.
|
||||||
|
// For more information see unveil(2).
|
||||||
|
func UnveilBlock() error {
|
||||||
|
// Both pointers must be nil.
|
||||||
|
var pathUnsafe, flagsUnsafe unsafe.Pointer
|
||||||
|
_, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(pathUnsafe), uintptr(flagsUnsafe), 0)
|
||||||
|
if e != 0 {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
2
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
2
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
|
@ -12,7 +12,7 @@ import "unsafe"
|
||||||
|
|
||||||
// Round the length of a raw sockaddr up to align it properly.
|
// Round the length of a raw sockaddr up to align it properly.
|
||||||
func cmsgAlignOf(salen int) int {
|
func cmsgAlignOf(salen int) int {
|
||||||
salign := sizeofPtr
|
salign := SizeofPtr
|
||||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
||||||
// Solaris kernels still require 32-bit aligned access to
|
// Solaris kernels still require 32-bit aligned access to
|
||||||
// network subsystem.
|
// network subsystem.
|
||||||
|
|
37
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
37
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
|
@ -305,11 +305,11 @@ func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int,
|
||||||
type WaitStatus uint32
|
type WaitStatus uint32
|
||||||
|
|
||||||
func (w WaitStatus) Stopped() bool { return w&0x40 != 0 }
|
func (w WaitStatus) Stopped() bool { return w&0x40 != 0 }
|
||||||
func (w WaitStatus) StopSignal() syscall.Signal {
|
func (w WaitStatus) StopSignal() Signal {
|
||||||
if !w.Stopped() {
|
if !w.Stopped() {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
return syscall.Signal(w>>8) & 0xFF
|
return Signal(w>>8) & 0xFF
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w WaitStatus) Exited() bool { return w&0xFF == 0 }
|
func (w WaitStatus) Exited() bool { return w&0xFF == 0 }
|
||||||
|
@ -321,11 +321,11 @@ func (w WaitStatus) ExitStatus() int {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w WaitStatus) Signaled() bool { return w&0x40 == 0 && w&0xFF != 0 }
|
func (w WaitStatus) Signaled() bool { return w&0x40 == 0 && w&0xFF != 0 }
|
||||||
func (w WaitStatus) Signal() syscall.Signal {
|
func (w WaitStatus) Signal() Signal {
|
||||||
if !w.Signaled() {
|
if !w.Signaled() {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
return syscall.Signal(w>>16) & 0xFF
|
return Signal(w>>16) & 0xFF
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 }
|
func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 }
|
||||||
|
@ -345,11 +345,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
return ioctl(fd, req, uintptr(value))
|
return ioctl(fd, req, uintptr(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -383,6 +383,8 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
|
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
|
||||||
//sys FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) = fcntl
|
//sys FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) = fcntl
|
||||||
|
|
||||||
|
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
return syscall.Flock(fd, how)
|
return syscall.Flock(fd, how)
|
||||||
}
|
}
|
||||||
|
@ -396,15 +398,12 @@ func Flock(fd int, how int) (err error) {
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys Dup(oldfd int) (fd int, err error)
|
//sys Dup(oldfd int) (fd int, err error)
|
||||||
//sys Dup3(oldfd int, newfd int, flags int) (err error)
|
|
||||||
//sys Exit(code int)
|
//sys Exit(code int)
|
||||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error)
|
|
||||||
//sys Fchdir(fd int) (err error)
|
//sys Fchdir(fd int) (err error)
|
||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
|
||||||
//sys Fdatasync(fd int) (err error)
|
//sys Fdatasync(fd int) (err error)
|
||||||
//sys Fsync(fd int) (err error)
|
//sys Fsync(fd int) (err error)
|
||||||
// readdir_r
|
// readdir_r
|
||||||
|
@ -417,17 +416,18 @@ func Flock(fd int, how int) (err error) {
|
||||||
//sys Getpriority(which int, who int) (prio int, err error)
|
//sys Getpriority(which int, who int) (prio int, err error)
|
||||||
//sysnb Getrusage(who int, rusage *Rusage) (err error)
|
//sysnb Getrusage(who int, rusage *Rusage) (err error)
|
||||||
//sysnb Getsid(pid int) (sid int, err error)
|
//sysnb Getsid(pid int) (sid int, err error)
|
||||||
//sysnb Kill(pid int, sig syscall.Signal) (err error)
|
//sysnb Kill(pid int, sig Signal) (err error)
|
||||||
//sys Klogctl(typ int, buf []byte) (n int, err error) = syslog
|
//sys Klogctl(typ int, buf []byte) (n int, err error) = syslog
|
||||||
|
//sys Mkdir(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error) = open64
|
//sys Open(path string, mode int, perm uint32) (fd int, err error) = open64
|
||||||
//sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)
|
//sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
//sys Removexattr(path string, attr string) (err error)
|
|
||||||
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Setdomainname(p []byte) (err error)
|
//sys Setdomainname(p []byte) (err error)
|
||||||
//sys Sethostname(p []byte) (err error)
|
//sys Sethostname(p []byte) (err error)
|
||||||
|
@ -441,7 +441,6 @@ func Flock(fd int, how int) (err error) {
|
||||||
//sys Setpriority(which int, who int, prio int) (err error)
|
//sys Setpriority(which int, who int, prio int) (err error)
|
||||||
//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error)
|
//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error)
|
||||||
//sys Sync()
|
//sys Sync()
|
||||||
//sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error)
|
|
||||||
//sysnb Times(tms *Tms) (ticks uintptr, err error)
|
//sysnb Times(tms *Tms) (ticks uintptr, err error)
|
||||||
//sysnb Umask(mask int) (oldmask int)
|
//sysnb Umask(mask int) (oldmask int)
|
||||||
//sysnb Uname(buf *Utsname) (err error)
|
//sysnb Uname(buf *Utsname) (err error)
|
||||||
|
@ -449,7 +448,6 @@ func Flock(fd int, how int) (err error) {
|
||||||
// //sys Unmount(target string, flags int) (err error) = umount
|
// //sys Unmount(target string, flags int) (err error) = umount
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unshare(flags int) (err error)
|
|
||||||
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys readlen(fd int, p *byte, np int) (n int, err error) = read
|
//sys readlen(fd int, p *byte, np int) (n int, err error) = read
|
||||||
|
@ -535,19 +533,6 @@ func Pipe(p []int) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
|
|
||||||
|
|
||||||
func Pipe2(p []int, flags int) (err error) {
|
|
||||||
if len(p) != 2 {
|
|
||||||
return EINVAL
|
|
||||||
}
|
|
||||||
var pp [2]_C_int
|
|
||||||
err = pipe2(&pp, flags)
|
|
||||||
p[0] = int(pp[0])
|
|
||||||
p[1] = int(pp[1])
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
|
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
|
||||||
|
|
||||||
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
|
|
8
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
|
@ -248,11 +248,13 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
//sys Exit(code int)
|
//sys Exit(code int)
|
||||||
|
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchdir(fd int) (err error)
|
//sys Fchdir(fd int) (err error)
|
||||||
//sys Fchflags(fd int, flags int) (err error)
|
//sys Fchflags(fd int, flags int) (err error)
|
||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
|
@ -280,13 +282,17 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(fd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
|
@ -312,11 +318,13 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Undelete(path string) (err error)
|
//sys Undelete(path string) (err error)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
|
|
310
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
310
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
|
@ -13,9 +13,34 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"sync"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
SYS_FSTAT_FREEBSD12 = 551 // { int fstat(int fd, _Out_ struct stat *sb); }
|
||||||
|
SYS_FSTATAT_FREEBSD12 = 552 // { int fstatat(int fd, _In_z_ char *path, \
|
||||||
|
SYS_GETDIRENTRIES_FREEBSD12 = 554 // { ssize_t getdirentries(int fd, \
|
||||||
|
SYS_STATFS_FREEBSD12 = 555 // { int statfs(_In_z_ char *path, \
|
||||||
|
SYS_FSTATFS_FREEBSD12 = 556 // { int fstatfs(int fd, \
|
||||||
|
SYS_GETFSSTAT_FREEBSD12 = 557 // { int getfsstat( \
|
||||||
|
SYS_MKNODAT_FREEBSD12 = 559 // { int mknodat(int fd, _In_z_ char *path, \
|
||||||
|
)
|
||||||
|
|
||||||
|
// See https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/versions.html.
|
||||||
|
var (
|
||||||
|
osreldateOnce sync.Once
|
||||||
|
osreldate uint32
|
||||||
|
)
|
||||||
|
|
||||||
|
// INO64_FIRST from /usr/src/lib/libc/sys/compat-ino64.h
|
||||||
|
const _ino64First = 1200031
|
||||||
|
|
||||||
|
func supportsABI(ver uint32) bool {
|
||||||
|
osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") })
|
||||||
|
return osreldate >= ver
|
||||||
|
}
|
||||||
|
|
||||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||||
type SockaddrDatalink struct {
|
type SockaddrDatalink struct {
|
||||||
Len uint8
|
Len uint8
|
||||||
|
@ -121,17 +146,39 @@ func Getwd() (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var (
|
||||||
var bufsize uintptr
|
_p0 unsafe.Pointer
|
||||||
|
bufsize uintptr
|
||||||
|
oldBuf []statfs_freebsd11_t
|
||||||
|
needsConvert bool
|
||||||
|
)
|
||||||
|
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
if supportsABI(_ino64First) {
|
||||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||||
|
} else {
|
||||||
|
n := len(buf)
|
||||||
|
oldBuf = make([]statfs_freebsd11_t, n)
|
||||||
|
_p0 = unsafe.Pointer(&oldBuf[0])
|
||||||
|
bufsize = unsafe.Sizeof(statfs_freebsd11_t{}) * uintptr(n)
|
||||||
|
needsConvert = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
|
var sysno uintptr = SYS_GETFSSTAT
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
sysno = SYS_GETFSSTAT_FREEBSD12
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(sysno, uintptr(_p0), bufsize, uintptr(flags))
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = e1
|
err = e1
|
||||||
}
|
}
|
||||||
|
if e1 == 0 && needsConvert {
|
||||||
|
for i := range oldBuf {
|
||||||
|
buf[i].convertFrom(&oldBuf[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,6 +272,234 @@ func Uname(uname *Utsname) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Stat(path string, st *Stat_t) (err error) {
|
||||||
|
var oldStat stat_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstatat_freebsd12(AT_FDCWD, path, st, 0)
|
||||||
|
}
|
||||||
|
err = stat(path, &oldStat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lstat(path string, st *Stat_t) (err error) {
|
||||||
|
var oldStat stat_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstatat_freebsd12(AT_FDCWD, path, st, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
err = lstat(path, &oldStat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstat(fd int, st *Stat_t) (err error) {
|
||||||
|
var oldStat stat_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstat_freebsd12(fd, st)
|
||||||
|
}
|
||||||
|
err = fstat(fd, &oldStat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatat(fd int, path string, st *Stat_t, flags int) (err error) {
|
||||||
|
var oldStat stat_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstatat_freebsd12(fd, path, st, flags)
|
||||||
|
}
|
||||||
|
err = fstatat(fd, path, &oldStat, flags)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Statfs(path string, st *Statfs_t) (err error) {
|
||||||
|
var oldStatfs statfs_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return statfs_freebsd12(path, st)
|
||||||
|
}
|
||||||
|
err = statfs(path, &oldStatfs)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStatfs)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatfs(fd int, st *Statfs_t) (err error) {
|
||||||
|
var oldStatfs statfs_freebsd11_t
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return fstatfs_freebsd12(fd, st)
|
||||||
|
}
|
||||||
|
err = fstatfs(fd, &oldStatfs)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
st.convertFrom(&oldStatfs)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
|
return Getdirentries(fd, buf, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return getdirentries_freebsd12(fd, buf, basep)
|
||||||
|
}
|
||||||
|
|
||||||
|
// The old syscall entries are smaller than the new. Use 1/4 of the original
|
||||||
|
// buffer size rounded up to DIRBLKSIZ (see /usr/src/lib/libc/sys/getdirentries.c).
|
||||||
|
oldBufLen := roundup(len(buf)/4, _dirblksiz)
|
||||||
|
oldBuf := make([]byte, oldBufLen)
|
||||||
|
n, err = getdirentries(fd, oldBuf, basep)
|
||||||
|
if err == nil && n > 0 {
|
||||||
|
n = convertFromDirents11(buf, oldBuf[:n])
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Mknod(path string, mode uint32, dev uint64) (err error) {
|
||||||
|
var oldDev int
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return mknodat_freebsd12(AT_FDCWD, path, mode, dev)
|
||||||
|
}
|
||||||
|
oldDev = int(dev)
|
||||||
|
return mknod(path, mode, oldDev)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) {
|
||||||
|
var oldDev int
|
||||||
|
if supportsABI(_ino64First) {
|
||||||
|
return mknodat_freebsd12(fd, path, mode, dev)
|
||||||
|
}
|
||||||
|
oldDev = int(dev)
|
||||||
|
return mknodat(fd, path, mode, oldDev)
|
||||||
|
}
|
||||||
|
|
||||||
|
// round x to the nearest multiple of y, larger or equal to x.
|
||||||
|
//
|
||||||
|
// from /usr/include/sys/param.h Macros for counting and rounding.
|
||||||
|
// #define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
|
||||||
|
func roundup(x, y int) int {
|
||||||
|
return ((x + y - 1) / y) * y
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Stat_t) convertFrom(old *stat_freebsd11_t) {
|
||||||
|
*s = Stat_t{
|
||||||
|
Dev: uint64(old.Dev),
|
||||||
|
Ino: uint64(old.Ino),
|
||||||
|
Nlink: uint64(old.Nlink),
|
||||||
|
Mode: old.Mode,
|
||||||
|
Uid: old.Uid,
|
||||||
|
Gid: old.Gid,
|
||||||
|
Rdev: uint64(old.Rdev),
|
||||||
|
Atim: old.Atim,
|
||||||
|
Mtim: old.Mtim,
|
||||||
|
Ctim: old.Ctim,
|
||||||
|
Birthtim: old.Birthtim,
|
||||||
|
Size: old.Size,
|
||||||
|
Blocks: old.Blocks,
|
||||||
|
Blksize: old.Blksize,
|
||||||
|
Flags: old.Flags,
|
||||||
|
Gen: uint64(old.Gen),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Statfs_t) convertFrom(old *statfs_freebsd11_t) {
|
||||||
|
*s = Statfs_t{
|
||||||
|
Version: _statfsVersion,
|
||||||
|
Type: old.Type,
|
||||||
|
Flags: old.Flags,
|
||||||
|
Bsize: old.Bsize,
|
||||||
|
Iosize: old.Iosize,
|
||||||
|
Blocks: old.Blocks,
|
||||||
|
Bfree: old.Bfree,
|
||||||
|
Bavail: old.Bavail,
|
||||||
|
Files: old.Files,
|
||||||
|
Ffree: old.Ffree,
|
||||||
|
Syncwrites: old.Syncwrites,
|
||||||
|
Asyncwrites: old.Asyncwrites,
|
||||||
|
Syncreads: old.Syncreads,
|
||||||
|
Asyncreads: old.Asyncreads,
|
||||||
|
// Spare
|
||||||
|
Namemax: old.Namemax,
|
||||||
|
Owner: old.Owner,
|
||||||
|
Fsid: old.Fsid,
|
||||||
|
// Charspare
|
||||||
|
// Fstypename
|
||||||
|
// Mntfromname
|
||||||
|
// Mntonname
|
||||||
|
}
|
||||||
|
|
||||||
|
sl := old.Fstypename[:]
|
||||||
|
n := clen(*(*[]byte)(unsafe.Pointer(&sl)))
|
||||||
|
copy(s.Fstypename[:], old.Fstypename[:n])
|
||||||
|
|
||||||
|
sl = old.Mntfromname[:]
|
||||||
|
n = clen(*(*[]byte)(unsafe.Pointer(&sl)))
|
||||||
|
copy(s.Mntfromname[:], old.Mntfromname[:n])
|
||||||
|
|
||||||
|
sl = old.Mntonname[:]
|
||||||
|
n = clen(*(*[]byte)(unsafe.Pointer(&sl)))
|
||||||
|
copy(s.Mntonname[:], old.Mntonname[:n])
|
||||||
|
}
|
||||||
|
|
||||||
|
func convertFromDirents11(buf []byte, old []byte) int {
|
||||||
|
const (
|
||||||
|
fixedSize = int(unsafe.Offsetof(Dirent{}.Name))
|
||||||
|
oldFixedSize = int(unsafe.Offsetof(dirent_freebsd11{}.Name))
|
||||||
|
)
|
||||||
|
|
||||||
|
dstPos := 0
|
||||||
|
srcPos := 0
|
||||||
|
for dstPos+fixedSize < len(buf) && srcPos+oldFixedSize < len(old) {
|
||||||
|
dstDirent := (*Dirent)(unsafe.Pointer(&buf[dstPos]))
|
||||||
|
srcDirent := (*dirent_freebsd11)(unsafe.Pointer(&old[srcPos]))
|
||||||
|
|
||||||
|
reclen := roundup(fixedSize+int(srcDirent.Namlen)+1, 8)
|
||||||
|
if dstPos+reclen > len(buf) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
dstDirent.Fileno = uint64(srcDirent.Fileno)
|
||||||
|
dstDirent.Off = 0
|
||||||
|
dstDirent.Reclen = uint16(reclen)
|
||||||
|
dstDirent.Type = srcDirent.Type
|
||||||
|
dstDirent.Pad0 = 0
|
||||||
|
dstDirent.Namlen = uint16(srcDirent.Namlen)
|
||||||
|
dstDirent.Pad1 = 0
|
||||||
|
|
||||||
|
copy(dstDirent.Name[:], srcDirent.Name[:srcDirent.Namlen])
|
||||||
|
padding := buf[dstPos+fixedSize+int(dstDirent.Namlen) : dstPos+reclen]
|
||||||
|
for i := range padding {
|
||||||
|
padding[i] = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
dstPos += int(dstDirent.Reclen)
|
||||||
|
srcPos += int(srcDirent.Reclen)
|
||||||
|
}
|
||||||
|
|
||||||
|
return dstPos
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
@ -264,13 +539,16 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys fstat(fd int, stat *stat_freebsd11_t) (err error)
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
//sys fstat_freebsd12(fd int, stat *Stat_t) (err error)
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
//sys fstatat(fd int, path string, stat *stat_freebsd11_t, flags int) (err error)
|
||||||
|
//sys fstatat_freebsd12(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||||
|
//sys fstatfs(fd int, stat *statfs_freebsd11_t) (err error)
|
||||||
|
//sys fstatfs_freebsd12(fd int, stat *Statfs_t) (err error)
|
||||||
//sys Fsync(fd int) (err error)
|
//sys Fsync(fd int) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
//sys Getdents(fd int, buf []byte) (n int, err error)
|
//sys getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
//sys getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error)
|
||||||
//sys Getdtablesize() (size int)
|
//sys Getdtablesize() (size int)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
//sysnb Geteuid() (uid int)
|
//sysnb Geteuid() (uid int)
|
||||||
|
@ -292,11 +570,13 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys lstat(path string, stat *stat_freebsd11_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys mknodat(fd int, path string, mode uint32, dev int) (err error)
|
||||||
|
//sys mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Openat(fdat int, path string, mode int, perm uint32) (fd int, err error)
|
//sys Openat(fdat int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
|
@ -326,8 +606,9 @@ func Uname(uname *Utsname) error {
|
||||||
//sysnb Setsid() (pid int, err error)
|
//sysnb Setsid() (pid int, err error)
|
||||||
//sysnb Settimeofday(tp *Timeval) (err error)
|
//sysnb Settimeofday(tp *Timeval) (err error)
|
||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys stat(path string, stat *stat_freebsd11_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys statfs(path string, stat *statfs_freebsd11_t) (err error)
|
||||||
|
//sys statfs_freebsd12(path string, stat *Statfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
|
@ -382,6 +663,7 @@ func Uname(uname *Utsname) error {
|
||||||
// Kqueue_portset
|
// Kqueue_portset
|
||||||
// Getattrlist
|
// Getattrlist
|
||||||
// Setattrlist
|
// Setattrlist
|
||||||
|
// Getdents
|
||||||
// Getdirentriesattr
|
// Getdirentriesattr
|
||||||
// Searchfs
|
// Searchfs
|
||||||
// Delete
|
// Delete
|
||||||
|
|
62
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
62
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
|
@ -692,6 +692,24 @@ func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SockaddrXDP struct {
|
||||||
|
Flags uint16
|
||||||
|
Ifindex uint32
|
||||||
|
QueueID uint32
|
||||||
|
SharedUmemFD uint32
|
||||||
|
raw RawSockaddrXDP
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrXDP) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
sa.raw.Family = AF_XDP
|
||||||
|
sa.raw.Flags = sa.Flags
|
||||||
|
sa.raw.Ifindex = sa.Ifindex
|
||||||
|
sa.raw.Queue_id = sa.QueueID
|
||||||
|
sa.raw.Shared_umem_fd = sa.SharedUmemFD
|
||||||
|
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrXDP, nil
|
||||||
|
}
|
||||||
|
|
||||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
switch rsa.Addr.Family {
|
switch rsa.Addr.Family {
|
||||||
case AF_NETLINK:
|
case AF_NETLINK:
|
||||||
|
@ -793,6 +811,15 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
}
|
}
|
||||||
return sa, nil
|
return sa, nil
|
||||||
}
|
}
|
||||||
|
case AF_XDP:
|
||||||
|
pp := (*RawSockaddrXDP)(unsafe.Pointer(rsa))
|
||||||
|
sa := &SockaddrXDP{
|
||||||
|
Flags: pp.Flags,
|
||||||
|
Ifindex: pp.Ifindex,
|
||||||
|
QueueID: pp.Queue_id,
|
||||||
|
SharedUmemFD: pp.Shared_umem_fd,
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
}
|
}
|
||||||
return nil, EAFNOSUPPORT
|
return nil, EAFNOSUPPORT
|
||||||
}
|
}
|
||||||
|
@ -1095,7 +1122,7 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
|
||||||
// The ptrace syscall differs from glibc's ptrace.
|
// The ptrace syscall differs from glibc's ptrace.
|
||||||
// Peeks returns the word in *data, not as the return value.
|
// Peeks returns the word in *data, not as the return value.
|
||||||
|
|
||||||
var buf [sizeofPtr]byte
|
var buf [SizeofPtr]byte
|
||||||
|
|
||||||
// Leading edge. PEEKTEXT/PEEKDATA don't require aligned
|
// Leading edge. PEEKTEXT/PEEKDATA don't require aligned
|
||||||
// access (PEEKUSER warns that it might), but if we don't
|
// access (PEEKUSER warns that it might), but if we don't
|
||||||
|
@ -1103,12 +1130,12 @@ func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err erro
|
||||||
// boundary and not get the bytes leading up to the page
|
// boundary and not get the bytes leading up to the page
|
||||||
// boundary.
|
// boundary.
|
||||||
n := 0
|
n := 0
|
||||||
if addr%sizeofPtr != 0 {
|
if addr%SizeofPtr != 0 {
|
||||||
err = ptrace(req, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
err = ptrace(req, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
n += copy(out, buf[addr%sizeofPtr:])
|
n += copy(out, buf[addr%SizeofPtr:])
|
||||||
out = out[n:]
|
out = out[n:]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1146,15 +1173,15 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
|
||||||
|
|
||||||
// Leading edge.
|
// Leading edge.
|
||||||
n := 0
|
n := 0
|
||||||
if addr%sizeofPtr != 0 {
|
if addr%SizeofPtr != 0 {
|
||||||
var buf [sizeofPtr]byte
|
var buf [SizeofPtr]byte
|
||||||
err = ptrace(peekReq, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
err = ptrace(peekReq, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
n += copy(buf[addr%sizeofPtr:], data)
|
n += copy(buf[addr%SizeofPtr:], data)
|
||||||
word := *((*uintptr)(unsafe.Pointer(&buf[0])))
|
word := *((*uintptr)(unsafe.Pointer(&buf[0])))
|
||||||
err = ptrace(pokeReq, pid, addr-addr%sizeofPtr, word)
|
err = ptrace(pokeReq, pid, addr-addr%SizeofPtr, word)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
@ -1162,19 +1189,19 @@ func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (c
|
||||||
}
|
}
|
||||||
|
|
||||||
// Interior.
|
// Interior.
|
||||||
for len(data) > sizeofPtr {
|
for len(data) > SizeofPtr {
|
||||||
word := *((*uintptr)(unsafe.Pointer(&data[0])))
|
word := *((*uintptr)(unsafe.Pointer(&data[0])))
|
||||||
err = ptrace(pokeReq, pid, addr+uintptr(n), word)
|
err = ptrace(pokeReq, pid, addr+uintptr(n), word)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
n += sizeofPtr
|
n += SizeofPtr
|
||||||
data = data[sizeofPtr:]
|
data = data[SizeofPtr:]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trailing edge.
|
// Trailing edge.
|
||||||
if len(data) > 0 {
|
if len(data) > 0 {
|
||||||
var buf [sizeofPtr]byte
|
var buf [SizeofPtr]byte
|
||||||
err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
|
err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return n, err
|
return n, err
|
||||||
|
@ -1273,9 +1300,11 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
||||||
//sys Adjtimex(buf *Timex) (state int, err error)
|
//sys Adjtimex(buf *Timex) (state int, err error)
|
||||||
//sys Chdir(path string) (err error)
|
//sys Chdir(path string) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGetres(clockid int32, res *Timespec) (err error)
|
||||||
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
|
//sys DeleteModule(name string, flags int) (err error)
|
||||||
//sys Dup(oldfd int) (fd int, err error)
|
//sys Dup(oldfd int) (fd int, err error)
|
||||||
//sys Dup3(oldfd int, newfd int, flags int) (err error)
|
//sys Dup3(oldfd int, newfd int, flags int) (err error)
|
||||||
//sysnb EpollCreate1(flag int) (fd int, err error)
|
//sysnb EpollCreate1(flag int) (fd int, err error)
|
||||||
|
@ -1289,6 +1318,7 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
||||||
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||||
//sys Fdatasync(fd int) (err error)
|
//sys Fdatasync(fd int) (err error)
|
||||||
//sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
|
//sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
|
||||||
|
//sys FinitModule(fd int, params string, flags int) (err error)
|
||||||
//sys Flistxattr(fd int, dest []byte) (sz int, err error)
|
//sys Flistxattr(fd int, dest []byte) (sz int, err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
//sys Fremovexattr(fd int, attr string) (err error)
|
//sys Fremovexattr(fd int, attr string) (err error)
|
||||||
|
@ -1310,6 +1340,7 @@ func Getpgrp() (pid int) {
|
||||||
//sysnb Getsid(pid int) (sid int, err error)
|
//sysnb Getsid(pid int) (sid int, err error)
|
||||||
//sysnb Gettid() (tid int)
|
//sysnb Gettid() (tid int)
|
||||||
//sys Getxattr(path string, attr string, dest []byte) (sz int, err error)
|
//sys Getxattr(path string, attr string, dest []byte) (sz int, err error)
|
||||||
|
//sys InitModule(moduleImage []byte, params string) (err error)
|
||||||
//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)
|
//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)
|
||||||
//sysnb InotifyInit1(flags int) (fd int, err error)
|
//sysnb InotifyInit1(flags int) (fd int, err error)
|
||||||
//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)
|
//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)
|
||||||
|
@ -1320,6 +1351,7 @@ func Getpgrp() (pid int) {
|
||||||
//sys Llistxattr(path string, dest []byte) (sz int, err error)
|
//sys Llistxattr(path string, dest []byte) (sz int, err error)
|
||||||
//sys Lremovexattr(path string, attr string) (err error)
|
//sys Lremovexattr(path string, attr string) (err error)
|
||||||
//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error)
|
//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error)
|
||||||
|
//sys MemfdCreate(name string, flags int) (fd int, err error)
|
||||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
|
@ -1495,12 +1527,9 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
// Brk
|
// Brk
|
||||||
// Capget
|
// Capget
|
||||||
// Capset
|
// Capset
|
||||||
// ClockGetres
|
|
||||||
// ClockNanosleep
|
// ClockNanosleep
|
||||||
// ClockSettime
|
// ClockSettime
|
||||||
// Clone
|
// Clone
|
||||||
// CreateModule
|
|
||||||
// DeleteModule
|
|
||||||
// EpollCtlOld
|
// EpollCtlOld
|
||||||
// EpollPwait
|
// EpollPwait
|
||||||
// EpollWaitOld
|
// EpollWaitOld
|
||||||
|
@ -1544,7 +1573,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
// Pselect6
|
// Pselect6
|
||||||
// Ptrace
|
// Ptrace
|
||||||
// Putpmsg
|
// Putpmsg
|
||||||
// QueryModule
|
|
||||||
// Quotactl
|
// Quotactl
|
||||||
// Readahead
|
// Readahead
|
||||||
// Readv
|
// Readv
|
||||||
|
|
13
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
13
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
|
@ -160,3 +160,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return poll(&fds[0], len(fds), timeout)
|
return poll(&fds[0], len(fds), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//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)
|
||||||
|
}
|
||||||
|
|
9
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
|
@ -191,12 +191,9 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||||
return Dup3(oldfd, newfd, 0)
|
return Dup3(oldfd, newfd, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Pause() (err error) {
|
func Pause() error {
|
||||||
_, _, e1 := Syscall6(SYS_PPOLL, 0, 0, 0, 0, 0, 0)
|
_, err := ppoll(nil, 0, nil, nil)
|
||||||
if e1 != 0 {
|
return err
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
|
|
13
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
13
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
|
@ -136,3 +136,16 @@ func SyncFileRange(fd int, off int64, n int64, flags int) error {
|
||||||
// order of their arguments.
|
// order of their arguments.
|
||||||
return syncFileRange2(fd, flags, off, n)
|
return syncFileRange2(fd, flags, off, n)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//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)
|
||||||
|
}
|
||||||
|
|
9
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
|
@ -191,12 +191,9 @@ func Dup2(oldfd int, newfd int) (err error) {
|
||||||
return Dup3(oldfd, newfd, 0)
|
return Dup3(oldfd, newfd, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Pause() (err error) {
|
func Pause() error {
|
||||||
_, _, e1 := Syscall6(SYS_PPOLL, 0, 0, 0, 0, 0, 0)
|
_, err := ppoll(nil, 0, nil, nil)
|
||||||
if e1 != 0 {
|
return err
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
|
|
13
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
13
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
|
@ -322,3 +322,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return poll(&fds[0], len(fds), timeout)
|
return poll(&fds[0], len(fds), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//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)
|
||||||
|
}
|
||||||
|
|
27
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
27
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
|
@ -93,6 +93,23 @@ func nametomib(name string) (mib []_C_int, err error) {
|
||||||
return mib, nil
|
return mib, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe() (fd1 int, fd2 int, err error)
|
//sysnb pipe() (fd1 int, fd2 int, err error)
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
if len(p) != 2 {
|
if len(p) != 2 {
|
||||||
|
@ -252,6 +269,7 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
|
@ -276,19 +294,26 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
|
//sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
|
//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
|
||||||
//sys Rename(from string, to string) (err error)
|
//sys Rename(from string, to string) (err error)
|
||||||
|
//sys Renameat(fromfd int, from string, tofd int, to string) (err error)
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
|
@ -306,10 +331,12 @@ func Uname(uname *Utsname) error {
|
||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
|
|
48
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
48
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
|
@ -43,6 +43,23 @@ func nametomib(name string) (mib []_C_int, err error) {
|
||||||
return nil, EINVAL
|
return nil, EINVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SysctlUvmexp(name string) (*Uvmexp, error) {
|
||||||
|
mib, err := sysctlmib(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
n := uintptr(SizeofUvmexp)
|
||||||
|
var u Uvmexp
|
||||||
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&u)), &n, nil, 0); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if n != SizeofUvmexp {
|
||||||
|
return nil, EIO
|
||||||
|
}
|
||||||
|
return &u, nil
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe(p *[2]_C_int) (err error)
|
//sysnb pipe(p *[2]_C_int) (err error)
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
if len(p) != 2 {
|
if len(p) != 2 {
|
||||||
|
@ -141,6 +158,15 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
||||||
|
|
||||||
|
func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||||
|
if len(fds) == 0 {
|
||||||
|
return ppoll(nil, 0, timeout, sigmask)
|
||||||
|
}
|
||||||
|
return ppoll(&fds[0], len(fds), timeout, sigmask)
|
||||||
|
}
|
||||||
|
|
||||||
func Uname(uname *Utsname) error {
|
func Uname(uname *Utsname) error {
|
||||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||||
n := unsafe.Sizeof(uname.Sysname)
|
n := unsafe.Sizeof(uname.Sysname)
|
||||||
|
@ -207,6 +233,7 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
|
@ -233,19 +260,26 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
|
//sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
|
//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
|
||||||
//sys Rename(from string, to string) (err error)
|
//sys Rename(from string, to string) (err error)
|
||||||
|
//sys Renameat(fromfd int, from string, tofd int, to string) (err error)
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
|
@ -268,10 +302,12 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
|
@ -294,15 +330,11 @@ func Uname(uname *Utsname) error {
|
||||||
// clock_settime
|
// clock_settime
|
||||||
// closefrom
|
// closefrom
|
||||||
// execve
|
// execve
|
||||||
// faccessat
|
|
||||||
// fchmodat
|
|
||||||
// fchownat
|
|
||||||
// fcntl
|
// fcntl
|
||||||
// fhopen
|
// fhopen
|
||||||
// fhstat
|
// fhstat
|
||||||
// fhstatfs
|
// fhstatfs
|
||||||
// fork
|
// fork
|
||||||
// fstatat
|
|
||||||
// futimens
|
// futimens
|
||||||
// getfh
|
// getfh
|
||||||
// getgid
|
// getgid
|
||||||
|
@ -316,12 +348,8 @@ func Uname(uname *Utsname) error {
|
||||||
// lfs_markv
|
// lfs_markv
|
||||||
// lfs_segclean
|
// lfs_segclean
|
||||||
// lfs_segwait
|
// lfs_segwait
|
||||||
// linkat
|
|
||||||
// mincore
|
// mincore
|
||||||
// minherit
|
// minherit
|
||||||
// mkdirat
|
|
||||||
// mkfifoat
|
|
||||||
// mknodat
|
|
||||||
// mount
|
// mount
|
||||||
// mquery
|
// mquery
|
||||||
// msgctl
|
// msgctl
|
||||||
|
@ -330,12 +358,10 @@ func Uname(uname *Utsname) error {
|
||||||
// msgsnd
|
// msgsnd
|
||||||
// nfssvc
|
// nfssvc
|
||||||
// nnpfspioctl
|
// nnpfspioctl
|
||||||
// openat
|
|
||||||
// preadv
|
// preadv
|
||||||
// profil
|
// profil
|
||||||
// pwritev
|
// pwritev
|
||||||
// quotactl
|
// quotactl
|
||||||
// readlinkat
|
|
||||||
// readv
|
// readv
|
||||||
// reboot
|
// reboot
|
||||||
// renameat
|
// renameat
|
||||||
|
@ -356,13 +382,11 @@ func Uname(uname *Utsname) error {
|
||||||
// sigprocmask
|
// sigprocmask
|
||||||
// sigreturn
|
// sigreturn
|
||||||
// sigsuspend
|
// sigsuspend
|
||||||
// symlinkat
|
|
||||||
// sysarch
|
// sysarch
|
||||||
// syscall
|
// syscall
|
||||||
// threxit
|
// threxit
|
||||||
// thrsigdivert
|
// thrsigdivert
|
||||||
// thrsleep
|
// thrsleep
|
||||||
// thrwakeup
|
// thrwakeup
|
||||||
// unlinkat
|
|
||||||
// vfork
|
// vfork
|
||||||
// writev
|
// writev
|
||||||
|
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_386.go
generated
vendored
|
@ -31,3 +31,7 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/386 the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go
generated
vendored
|
@ -31,3 +31,7 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/arm the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
8
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
|
@ -22,10 +22,10 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8
|
darwin64Bit = runtime.GOOS == "darwin" && SizeofPtr == 8
|
||||||
dragonfly64Bit = runtime.GOOS == "dragonfly" && sizeofPtr == 8
|
dragonfly64Bit = runtime.GOOS == "dragonfly" && SizeofPtr == 8
|
||||||
netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
|
netbsd32Bit = runtime.GOOS == "netbsd" && SizeofPtr == 4
|
||||||
solaris64Bit = runtime.GOOS == "solaris" && sizeofPtr == 8
|
solaris64Bit = runtime.GOOS == "solaris" && SizeofPtr == 8
|
||||||
)
|
)
|
||||||
|
|
||||||
// Do the interface allocations only once for common
|
// Do the interface allocations only once for common
|
||||||
|
|
21
vendor/golang.org/x/sys/unix/types_aix.go
generated
vendored
21
vendor/golang.org/x/sys/unix/types_aix.go
generated
vendored
|
@ -22,6 +22,11 @@ package unix
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
|
#include <sys/resource.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
#include <sys/termio.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
|
@ -33,7 +38,6 @@ package unix
|
||||||
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <gcrypt.h>
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
sizeofPtr = sizeof(void*),
|
sizeofPtr = sizeof(void*),
|
||||||
|
@ -55,14 +59,14 @@ struct sockaddr_any {
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
PathMax = C.PATH_MAX
|
PathMax = C.PATH_MAX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -224,6 +228,9 @@ type Flock_t C.struct_flock64
|
||||||
|
|
||||||
// Statfs
|
// Statfs
|
||||||
|
|
||||||
|
type Fsid_t C.struct_fsid_t
|
||||||
|
type Fsid64_t C.struct_fsid64_t
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
type Statfs_t C.struct_statfs
|
||||||
|
|
||||||
const RNDGETENTCNT = 0x80045200
|
const RNDGETENTCNT = 0x80045200
|
||||||
|
|
12
vendor/golang.org/x/sys/unix/types_darwin.go
generated
vendored
12
vendor/golang.org/x/sys/unix/types_darwin.go
generated
vendored
|
@ -70,14 +70,14 @@ struct sockaddr_any {
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
|
|
12
vendor/golang.org/x/sys/unix/types_dragonfly.go
generated
vendored
12
vendor/golang.org/x/sys/unix/types_dragonfly.go
generated
vendored
|
@ -65,14 +65,14 @@ struct sockaddr_any {
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
77
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
|
@ -14,7 +14,11 @@ Input to cgo -godefs. See README.md
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#define KERNEL
|
#define _WANT_FREEBSD11_STAT 1
|
||||||
|
#define _WANT_FREEBSD11_STATFS 1
|
||||||
|
#define _WANT_FREEBSD11_DIRENT 1
|
||||||
|
#define _WANT_FREEBSD11_KEVENT 1
|
||||||
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
@ -63,50 +67,6 @@ struct sockaddr_any {
|
||||||
char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
|
char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)];
|
||||||
};
|
};
|
||||||
|
|
||||||
// This structure is a duplicate of stat on FreeBSD 8-STABLE.
|
|
||||||
// See /usr/include/sys/stat.h.
|
|
||||||
struct stat8 {
|
|
||||||
#undef st_atimespec st_atim
|
|
||||||
#undef st_mtimespec st_mtim
|
|
||||||
#undef st_ctimespec st_ctim
|
|
||||||
#undef st_birthtimespec st_birthtim
|
|
||||||
__dev_t st_dev;
|
|
||||||
ino_t st_ino;
|
|
||||||
mode_t st_mode;
|
|
||||||
nlink_t st_nlink;
|
|
||||||
uid_t st_uid;
|
|
||||||
gid_t st_gid;
|
|
||||||
__dev_t st_rdev;
|
|
||||||
#if __BSD_VISIBLE
|
|
||||||
struct timespec st_atimespec;
|
|
||||||
struct timespec st_mtimespec;
|
|
||||||
struct timespec st_ctimespec;
|
|
||||||
#else
|
|
||||||
time_t st_atime;
|
|
||||||
long __st_atimensec;
|
|
||||||
time_t st_mtime;
|
|
||||||
long __st_mtimensec;
|
|
||||||
time_t st_ctime;
|
|
||||||
long __st_ctimensec;
|
|
||||||
#endif
|
|
||||||
off_t st_size;
|
|
||||||
blkcnt_t st_blocks;
|
|
||||||
blksize_t st_blksize;
|
|
||||||
fflags_t st_flags;
|
|
||||||
__uint32_t st_gen;
|
|
||||||
__int32_t st_lspare;
|
|
||||||
#if __BSD_VISIBLE
|
|
||||||
struct timespec st_birthtimespec;
|
|
||||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
|
||||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
|
||||||
#else
|
|
||||||
time_t st_birthtime;
|
|
||||||
long st_birthtimensec;
|
|
||||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec));
|
|
||||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec));
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
// This structure is a duplicate of if_data on FreeBSD 8-STABLE.
|
// This structure is a duplicate of if_data on FreeBSD 8-STABLE.
|
||||||
// See /usr/include/net/if.h.
|
// See /usr/include/net/if.h.
|
||||||
struct if_data8 {
|
struct if_data8 {
|
||||||
|
@ -154,14 +114,14 @@ struct if_msghdr8 {
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
|
@ -189,14 +149,25 @@ type _Gid_t C.gid_t
|
||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
type Stat_t C.struct_stat8
|
const (
|
||||||
|
_statfsVersion = C.STATFS_VERSION
|
||||||
|
_dirblksiz = C.DIRBLKSIZ
|
||||||
|
)
|
||||||
|
|
||||||
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
|
type stat_freebsd11_t C.struct_freebsd11_stat
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
type Statfs_t C.struct_statfs
|
||||||
|
|
||||||
|
type statfs_freebsd11_t C.struct_freebsd11_statfs
|
||||||
|
|
||||||
type Flock_t C.struct_flock
|
type Flock_t C.struct_flock
|
||||||
|
|
||||||
type Dirent C.struct_dirent
|
type Dirent C.struct_dirent
|
||||||
|
|
||||||
|
type dirent_freebsd11 C.struct_freebsd11_dirent
|
||||||
|
|
||||||
type Fsid C.struct_fsid
|
type Fsid C.struct_fsid
|
||||||
|
|
||||||
// File system limits
|
// File system limits
|
||||||
|
@ -279,7 +250,7 @@ const (
|
||||||
|
|
||||||
// Events (kqueue, kevent)
|
// Events (kqueue, kevent)
|
||||||
|
|
||||||
type Kevent_t C.struct_kevent
|
type Kevent_t C.struct_kevent_freebsd11
|
||||||
|
|
||||||
// Select
|
// Select
|
||||||
|
|
||||||
|
|
18
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
18
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
|
@ -67,14 +67,14 @@ struct sockaddr_any {
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
|
@ -279,3 +279,9 @@ type Sysctlnode C.struct_sysctlnode
|
||||||
// Uname
|
// Uname
|
||||||
|
|
||||||
type Utsname C.struct_utsname
|
type Utsname C.struct_utsname
|
||||||
|
|
||||||
|
// Clockinfo
|
||||||
|
|
||||||
|
const SizeofClockinfo = C.sizeof_struct_clockinfo
|
||||||
|
|
||||||
|
type Clockinfo C.struct_clockinfo
|
||||||
|
|
23
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
23
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
|
@ -38,6 +38,7 @@ package unix
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <uvm/uvmexp.h>
|
||||||
#include <net/bpf.h>
|
#include <net/bpf.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <net/if_dl.h>
|
#include <net/if_dl.h>
|
||||||
|
@ -66,14 +67,14 @@ struct sockaddr_any {
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
)
|
)
|
||||||
|
|
||||||
// Basic types
|
// Basic types
|
||||||
|
@ -260,6 +261,16 @@ const (
|
||||||
POLLWRNORM = C.POLLWRNORM
|
POLLWRNORM = C.POLLWRNORM
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Signal Sets
|
||||||
|
|
||||||
|
type Sigset_t C.sigset_t
|
||||||
|
|
||||||
// Uname
|
// Uname
|
||||||
|
|
||||||
type Utsname C.struct_utsname
|
type Utsname C.struct_utsname
|
||||||
|
|
||||||
|
// Uvmexp
|
||||||
|
|
||||||
|
const SizeofUvmexp = C.sizeof_struct_uvmexp
|
||||||
|
|
||||||
|
type Uvmexp C.struct_uvmexp
|
||||||
|
|
12
vendor/golang.org/x/sys/unix/types_solaris.go
generated
vendored
12
vendor/golang.org/x/sys/unix/types_solaris.go
generated
vendored
|
@ -75,14 +75,14 @@ struct sockaddr_any {
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Machine characteristics; for internal use.
|
// Machine characteristics
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofPtr = C.sizeofPtr
|
SizeofPtr = C.sizeofPtr
|
||||||
sizeofShort = C.sizeof_short
|
SizeofShort = C.sizeof_short
|
||||||
sizeofInt = C.sizeof_int
|
SizeofInt = C.sizeof_int
|
||||||
sizeofLong = C.sizeof_long
|
SizeofLong = C.sizeof_long
|
||||||
sizeofLongLong = C.sizeof_longlong
|
SizeofLongLong = C.sizeof_longlong
|
||||||
PathMax = C.PATH_MAX
|
PathMax = C.PATH_MAX
|
||||||
MaxHostNameLen = C.MAXHOSTNAMELEN
|
MaxHostNameLen = C.MAXHOSTNAMELEN
|
||||||
)
|
)
|
||||||
|
|
15
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
15
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
|
@ -81,7 +81,10 @@ func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
||||||
// flags are unused on FreeBSD
|
// flags are unused on FreeBSD
|
||||||
|
|
||||||
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
||||||
d := unsafe.Pointer(&data[0])
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
datasiz := len(data)
|
datasiz := len(data)
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
@ -94,7 +97,10 @@ func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
||||||
d := unsafe.Pointer(&data[0])
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
datasiz := len(data)
|
datasiz := len(data)
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
@ -107,7 +113,10 @@ func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
||||||
d := unsafe.Pointer(&data[0])
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
datasiz := len(data)
|
datasiz := len(data)
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
|
12
vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
generated
vendored
|
@ -867,6 +867,9 @@ const (
|
||||||
TAB2 = 0x800
|
TAB2 = 0x800
|
||||||
TAB3 = 0xc00
|
TAB3 = 0xc00
|
||||||
TABDLY = 0xc00
|
TABDLY = 0xc00
|
||||||
|
TCFLSH = 0x540c
|
||||||
|
TCGETA = 0x5405
|
||||||
|
TCGETS = 0x5401
|
||||||
TCIFLUSH = 0x0
|
TCIFLUSH = 0x0
|
||||||
TCIOFF = 0x2
|
TCIOFF = 0x2
|
||||||
TCIOFLUSH = 0x2
|
TCIOFLUSH = 0x2
|
||||||
|
@ -915,6 +918,15 @@ const (
|
||||||
TCP_TIMESTAMP_OPTLEN = 0xc
|
TCP_TIMESTAMP_OPTLEN = 0xc
|
||||||
TCP_UNSETPRIV = 0x28
|
TCP_UNSETPRIV = 0x28
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TCSBRK = 0x5409
|
||||||
|
TCSETA = 0x5406
|
||||||
|
TCSETAF = 0x5408
|
||||||
|
TCSETAW = 0x5407
|
||||||
|
TCSETS = 0x5402
|
||||||
|
TCSETSF = 0x5404
|
||||||
|
TCSETSW = 0x5403
|
||||||
|
TCXONC = 0x540b
|
||||||
|
TIOC = 0x5400
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
|
|
12
vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
generated
vendored
|
@ -867,6 +867,9 @@ const (
|
||||||
TAB2 = 0x800
|
TAB2 = 0x800
|
||||||
TAB3 = 0xc00
|
TAB3 = 0xc00
|
||||||
TABDLY = 0xc00
|
TABDLY = 0xc00
|
||||||
|
TCFLSH = 0x540c
|
||||||
|
TCGETA = 0x5405
|
||||||
|
TCGETS = 0x5401
|
||||||
TCIFLUSH = 0x0
|
TCIFLUSH = 0x0
|
||||||
TCIOFF = 0x2
|
TCIOFF = 0x2
|
||||||
TCIOFLUSH = 0x2
|
TCIOFLUSH = 0x2
|
||||||
|
@ -915,6 +918,15 @@ const (
|
||||||
TCP_TIMESTAMP_OPTLEN = 0xc
|
TCP_TIMESTAMP_OPTLEN = 0xc
|
||||||
TCP_UNSETPRIV = 0x28
|
TCP_UNSETPRIV = 0x28
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TCSBRK = 0x5409
|
||||||
|
TCSETA = 0x5406
|
||||||
|
TCSETAF = 0x5408
|
||||||
|
TCSETAW = 0x5407
|
||||||
|
TCSETS = 0x5402
|
||||||
|
TCSETSF = 0x5404
|
||||||
|
TCSETSW = 0x5403
|
||||||
|
TCXONC = 0x540b
|
||||||
|
TIOC = 0x5400
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
TIOCCONS = 0xffffffff80047462
|
TIOCCONS = 0xffffffff80047462
|
||||||
|
|
34
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
|
@ -880,6 +880,40 @@ const (
|
||||||
MAP_VPAGETABLE = 0x2000
|
MAP_VPAGETABLE = 0x2000
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_AUTOMOUNTED = 0x20
|
||||||
|
MNT_CMDFLAGS = 0xf0000
|
||||||
|
MNT_DEFEXPORTED = 0x200
|
||||||
|
MNT_DELEXPORT = 0x20000
|
||||||
|
MNT_EXKERB = 0x800
|
||||||
|
MNT_EXPORTANON = 0x400
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_EXPUBLIC = 0x20000000
|
||||||
|
MNT_EXRDONLY = 0x80
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_IGNORE = 0x800000
|
||||||
|
MNT_LAZY = 0x4
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_NOATIME = 0x10000000
|
||||||
|
MNT_NOCLUSTERR = 0x40000000
|
||||||
|
MNT_NOCLUSTERW = 0x80000000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOSYMFOLLOW = 0x400000
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SOFTDEP = 0x200000
|
||||||
|
MNT_SUIDDIR = 0x100000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_TRIM = 0x1000000
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_USER = 0x8000
|
||||||
|
MNT_VISFLAGMASK = 0xf1f0ffff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_CMSG_CLOEXEC = 0x1000
|
MSG_CMSG_CLOEXEC = 0x1000
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -878,6 +879,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -977,6 +998,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -985,6 +1023,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1548,6 +1588,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1568,6 +1609,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1582,11 +1624,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1601,8 +1644,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1651,6 +1694,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1796,6 +1840,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1854,6 +1899,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2278,6 +2324,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -878,6 +879,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -977,6 +998,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -985,6 +1023,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1549,6 +1589,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1569,6 +1610,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1583,11 +1625,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1602,8 +1645,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1652,6 +1695,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1797,6 +1841,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1855,6 +1900,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2278,6 +2324,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -975,6 +996,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -983,6 +1021,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1555,6 +1595,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1575,6 +1616,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1589,11 +1631,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1608,8 +1651,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1658,6 +1701,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1803,6 +1847,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1861,6 +1906,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2284,6 +2330,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -880,6 +881,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -978,6 +999,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -986,6 +1024,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1539,6 +1579,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1559,6 +1600,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1573,11 +1615,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1592,8 +1635,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1642,6 +1685,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1787,6 +1831,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1845,6 +1890,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2269,6 +2315,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -975,6 +996,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -983,6 +1021,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1548,6 +1588,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1568,6 +1609,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1582,11 +1624,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1601,8 +1644,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1651,6 +1694,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1796,6 +1840,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1855,6 +1900,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2280,6 +2326,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -975,6 +996,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -983,6 +1021,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1548,6 +1588,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1568,6 +1609,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1582,11 +1624,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1601,8 +1644,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1651,6 +1694,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1796,6 +1840,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1855,6 +1900,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2280,6 +2326,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -975,6 +996,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -983,6 +1021,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1548,6 +1588,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1568,6 +1609,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1582,11 +1624,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1601,8 +1644,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1651,6 +1694,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1796,6 +1840,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1855,6 +1900,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2280,6 +2326,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -975,6 +996,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -983,6 +1021,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1548,6 +1588,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1568,6 +1609,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1582,11 +1624,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1601,8 +1644,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1651,6 +1694,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1796,6 +1840,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1009
|
SO_ACCEPTCONN = 0x1009
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1855,6 +1900,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2280,6 +2326,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -974,6 +995,23 @@ const (
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
MCL_ONFAULT = 0x8000
|
MCL_ONFAULT = 0x8000
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -982,6 +1020,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1604,6 +1644,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1624,6 +1665,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1638,11 +1680,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1657,8 +1700,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1707,6 +1750,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1852,6 +1896,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1910,6 +1955,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2337,6 +2383,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4000
|
XCASE = 0x4000
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -974,6 +995,23 @@ const (
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
MCL_ONFAULT = 0x8000
|
MCL_ONFAULT = 0x8000
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -982,6 +1020,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1604,6 +1644,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1624,6 +1665,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1638,11 +1680,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1657,8 +1700,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1707,6 +1750,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1852,6 +1896,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1910,6 +1955,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2337,6 +2383,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4000
|
XCASE = 0x4000
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -975,6 +996,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -983,6 +1021,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1536,6 +1576,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1556,6 +1597,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1570,11 +1612,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1589,8 +1632,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1639,6 +1682,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1784,6 +1828,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1842,6 +1887,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2265,6 +2311,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
72
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
|
@ -64,6 +64,7 @@ const (
|
||||||
AF_VSOCK = 0x28
|
AF_VSOCK = 0x28
|
||||||
AF_WANPIPE = 0x19
|
AF_WANPIPE = 0x19
|
||||||
AF_X25 = 0x9
|
AF_X25 = 0x9
|
||||||
|
AF_XDP = 0x2c
|
||||||
ALG_OP_DECRYPT = 0x0
|
ALG_OP_DECRYPT = 0x0
|
||||||
ALG_OP_ENCRYPT = 0x1
|
ALG_OP_ENCRYPT = 0x1
|
||||||
ALG_SET_AEAD_ASSOCLEN = 0x4
|
ALG_SET_AEAD_ASSOCLEN = 0x4
|
||||||
|
@ -877,6 +878,26 @@ const (
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
JFFS2_SUPER_MAGIC = 0x72b6
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
|
KEXEC_ARCH_386 = 0x30000
|
||||||
|
KEXEC_ARCH_68K = 0x40000
|
||||||
|
KEXEC_ARCH_AARCH64 = 0xb70000
|
||||||
|
KEXEC_ARCH_ARM = 0x280000
|
||||||
|
KEXEC_ARCH_DEFAULT = 0x0
|
||||||
|
KEXEC_ARCH_IA_64 = 0x320000
|
||||||
|
KEXEC_ARCH_MASK = 0xffff0000
|
||||||
|
KEXEC_ARCH_MIPS = 0x80000
|
||||||
|
KEXEC_ARCH_MIPS_LE = 0xa0000
|
||||||
|
KEXEC_ARCH_PPC = 0x140000
|
||||||
|
KEXEC_ARCH_PPC64 = 0x150000
|
||||||
|
KEXEC_ARCH_S390 = 0x160000
|
||||||
|
KEXEC_ARCH_SH = 0x2a0000
|
||||||
|
KEXEC_ARCH_X86_64 = 0x3e0000
|
||||||
|
KEXEC_FILE_NO_INITRAMFS = 0x4
|
||||||
|
KEXEC_FILE_ON_CRASH = 0x2
|
||||||
|
KEXEC_FILE_UNLOAD = 0x1
|
||||||
|
KEXEC_ON_CRASH = 0x1
|
||||||
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -975,6 +996,23 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
|
MFD_ALLOW_SEALING = 0x2
|
||||||
|
MFD_CLOEXEC = 0x1
|
||||||
|
MFD_HUGETLB = 0x4
|
||||||
|
MFD_HUGE_16GB = -0x78000000
|
||||||
|
MFD_HUGE_16MB = 0x60000000
|
||||||
|
MFD_HUGE_1GB = 0x78000000
|
||||||
|
MFD_HUGE_1MB = 0x50000000
|
||||||
|
MFD_HUGE_256MB = 0x70000000
|
||||||
|
MFD_HUGE_2GB = 0x7c000000
|
||||||
|
MFD_HUGE_2MB = 0x54000000
|
||||||
|
MFD_HUGE_32MB = 0x64000000
|
||||||
|
MFD_HUGE_512KB = 0x4c000000
|
||||||
|
MFD_HUGE_512MB = 0x74000000
|
||||||
|
MFD_HUGE_64KB = 0x40000000
|
||||||
|
MFD_HUGE_8MB = 0x5c000000
|
||||||
|
MFD_HUGE_MASK = 0x3f
|
||||||
|
MFD_HUGE_SHIFT = 0x1a
|
||||||
MINIX2_SUPER_MAGIC = 0x2468
|
MINIX2_SUPER_MAGIC = 0x2468
|
||||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||||
|
@ -983,6 +1021,8 @@ const (
|
||||||
MNT_DETACH = 0x2
|
MNT_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MODULE_INIT_IGNORE_MODVERSIONS = 0x1
|
||||||
|
MODULE_INIT_IGNORE_VERMAGIC = 0x2
|
||||||
MSDOS_SUPER_MAGIC = 0x4d44
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
|
@ -1609,6 +1649,7 @@ const (
|
||||||
RTM_DELACTION = 0x31
|
RTM_DELACTION = 0x31
|
||||||
RTM_DELADDR = 0x15
|
RTM_DELADDR = 0x15
|
||||||
RTM_DELADDRLABEL = 0x49
|
RTM_DELADDRLABEL = 0x49
|
||||||
|
RTM_DELCHAIN = 0x65
|
||||||
RTM_DELLINK = 0x11
|
RTM_DELLINK = 0x11
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
|
@ -1629,6 +1670,7 @@ const (
|
||||||
RTM_GETADDR = 0x16
|
RTM_GETADDR = 0x16
|
||||||
RTM_GETADDRLABEL = 0x4a
|
RTM_GETADDRLABEL = 0x4a
|
||||||
RTM_GETANYCAST = 0x3e
|
RTM_GETANYCAST = 0x3e
|
||||||
|
RTM_GETCHAIN = 0x66
|
||||||
RTM_GETDCB = 0x4e
|
RTM_GETDCB = 0x4e
|
||||||
RTM_GETLINK = 0x12
|
RTM_GETLINK = 0x12
|
||||||
RTM_GETMDB = 0x56
|
RTM_GETMDB = 0x56
|
||||||
|
@ -1643,11 +1685,12 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x63
|
RTM_MAX = 0x67
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
RTM_NEWCACHEREPORT = 0x60
|
RTM_NEWCACHEREPORT = 0x60
|
||||||
|
RTM_NEWCHAIN = 0x64
|
||||||
RTM_NEWLINK = 0x10
|
RTM_NEWLINK = 0x10
|
||||||
RTM_NEWMDB = 0x54
|
RTM_NEWMDB = 0x54
|
||||||
RTM_NEWNDUSEROPT = 0x44
|
RTM_NEWNDUSEROPT = 0x44
|
||||||
|
@ -1662,8 +1705,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x15
|
RTM_NR_FAMILIES = 0x16
|
||||||
RTM_NR_MSGTYPES = 0x54
|
RTM_NR_MSGTYPES = 0x58
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1712,6 +1755,7 @@ const (
|
||||||
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
|
@ -1857,6 +1901,7 @@ const (
|
||||||
SOL_TIPC = 0x10f
|
SOL_TIPC = 0x10f
|
||||||
SOL_TLS = 0x11a
|
SOL_TLS = 0x11a
|
||||||
SOL_X25 = 0x106
|
SOL_X25 = 0x106
|
||||||
|
SOL_XDP = 0x11b
|
||||||
SOMAXCONN = 0x80
|
SOMAXCONN = 0x80
|
||||||
SO_ACCEPTCONN = 0x1e
|
SO_ACCEPTCONN = 0x1e
|
||||||
SO_ATTACH_BPF = 0x32
|
SO_ATTACH_BPF = 0x32
|
||||||
|
@ -1915,6 +1960,7 @@ const (
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
|
||||||
|
@ -2338,6 +2384,26 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XDP_COPY = 0x2
|
||||||
|
XDP_FLAGS_DRV_MODE = 0x4
|
||||||
|
XDP_FLAGS_HW_MODE = 0x8
|
||||||
|
XDP_FLAGS_MASK = 0xf
|
||||||
|
XDP_FLAGS_MODES = 0xe
|
||||||
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
XDP_RX_RING = 0x2
|
||||||
|
XDP_SHARED_UMEM = 0x1
|
||||||
|
XDP_STATISTICS = 0x7
|
||||||
|
XDP_TX_RING = 0x3
|
||||||
|
XDP_UMEM_COMPLETION_RING = 0x6
|
||||||
|
XDP_UMEM_FILL_RING = 0x5
|
||||||
|
XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
|
||||||
|
XDP_UMEM_PGOFF_FILL_RING = 0x100000000
|
||||||
|
XDP_UMEM_REG = 0x4
|
||||||
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
|
|
350
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
350
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
|
@ -1,10 +1,10 @@
|
||||||
// mkerrors.sh -m64
|
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build sparc64,linux
|
// +build sparc64,linux
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
@ -1969,174 +1969,182 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
36: "operation now in progress",
|
{31, "EMLINK", "too many links"},
|
||||||
37: "operation already in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
38: "socket operation on non-socket",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
39: "destination address required",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "cannot assign requested address",
|
{45, "ENOTSUP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "transport endpoint is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "transport endpoint is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "cannot send after transport endpoint shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: cannot splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "connection timed out",
|
{56, "EISCONN", "transport endpoint is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "connection timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disk quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "object is remote",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "device not a stream",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "timer expired",
|
{69, "EDQUOT", "disk quota exceeded"},
|
||||||
74: "out of streams resources",
|
{70, "ESTALE", "stale file handle"},
|
||||||
75: "no message of desired type",
|
{71, "EREMOTE", "object is remote"},
|
||||||
76: "bad message",
|
{72, "ENOSTR", "device not a stream"},
|
||||||
77: "identifier removed",
|
{73, "ETIME", "timer expired"},
|
||||||
78: "resource deadlock avoided",
|
{74, "ENOSR", "out of streams resources"},
|
||||||
79: "no locks available",
|
{75, "ENOMSG", "no message of desired type"},
|
||||||
80: "machine is not on the network",
|
{76, "EBADMSG", "bad message"},
|
||||||
81: "unknown error 81",
|
{77, "EIDRM", "identifier removed"},
|
||||||
82: "link has been severed",
|
{78, "EDEADLK", "resource deadlock avoided"},
|
||||||
83: "advertise error",
|
{79, "ENOLCK", "no locks available"},
|
||||||
84: "srmount error",
|
{80, "ENONET", "machine is not on the network"},
|
||||||
85: "communication error on send",
|
{81, "ERREMOTE", "unknown error 81"},
|
||||||
86: "protocol error",
|
{82, "ENOLINK", "link has been severed"},
|
||||||
87: "multihop attempted",
|
{83, "EADV", "advertise error"},
|
||||||
88: "RFS specific error",
|
{84, "ESRMNT", "srmount error"},
|
||||||
89: "remote address changed",
|
{85, "ECOMM", "communication error on send"},
|
||||||
90: "function not implemented",
|
{86, "EPROTO", "protocol error"},
|
||||||
91: "streams pipe error",
|
{87, "EMULTIHOP", "multihop attempted"},
|
||||||
92: "value too large for defined data type",
|
{88, "EDOTDOT", "RFS specific error"},
|
||||||
93: "file descriptor in bad state",
|
{89, "EREMCHG", "remote address changed"},
|
||||||
94: "channel number out of range",
|
{90, "ENOSYS", "function not implemented"},
|
||||||
95: "level 2 not synchronized",
|
{91, "ESTRPIPE", "streams pipe error"},
|
||||||
96: "level 3 halted",
|
{92, "EOVERFLOW", "value too large for defined data type"},
|
||||||
97: "level 3 reset",
|
{93, "EBADFD", "file descriptor in bad state"},
|
||||||
98: "link number out of range",
|
{94, "ECHRNG", "channel number out of range"},
|
||||||
99: "protocol driver not attached",
|
{95, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
100: "no CSI structure available",
|
{96, "EL3HLT", "level 3 halted"},
|
||||||
101: "level 2 halted",
|
{97, "EL3RST", "level 3 reset"},
|
||||||
102: "invalid exchange",
|
{98, "ELNRNG", "link number out of range"},
|
||||||
103: "invalid request descriptor",
|
{99, "EUNATCH", "protocol driver not attached"},
|
||||||
104: "exchange full",
|
{100, "ENOCSI", "no CSI structure available"},
|
||||||
105: "no anode",
|
{101, "EL2HLT", "level 2 halted"},
|
||||||
106: "invalid request code",
|
{102, "EBADE", "invalid exchange"},
|
||||||
107: "invalid slot",
|
{103, "EBADR", "invalid request descriptor"},
|
||||||
108: "file locking deadlock error",
|
{104, "EXFULL", "exchange full"},
|
||||||
109: "bad font file format",
|
{105, "ENOANO", "no anode"},
|
||||||
110: "cannot exec a shared library directly",
|
{106, "EBADRQC", "invalid request code"},
|
||||||
111: "no data available",
|
{107, "EBADSLT", "invalid slot"},
|
||||||
112: "accessing a corrupted shared library",
|
{108, "EDEADLOCK", "file locking deadlock error"},
|
||||||
113: "package not installed",
|
{109, "EBFONT", "bad font file format"},
|
||||||
114: "can not access a needed shared library",
|
{110, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
115: "name not unique on network",
|
{111, "ENODATA", "no data available"},
|
||||||
116: "interrupted system call should be restarted",
|
{112, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
117: "structure needs cleaning",
|
{113, "ENOPKG", "package not installed"},
|
||||||
118: "not a XENIX named type file",
|
{114, "ELIBACC", "can not access a needed shared library"},
|
||||||
119: "no XENIX semaphores available",
|
{115, "ENOTUNIQ", "name not unique on network"},
|
||||||
120: "is a named type file",
|
{116, "ERESTART", "interrupted system call should be restarted"},
|
||||||
121: "remote I/O error",
|
{117, "EUCLEAN", "structure needs cleaning"},
|
||||||
122: "invalid or incomplete multibyte or wide character",
|
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||||
123: "attempting to link in too many shared libraries",
|
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
124: ".lib section in a.out corrupted",
|
{120, "EISNAM", "is a named type file"},
|
||||||
125: "no medium found",
|
{121, "EREMOTEIO", "remote I/O error"},
|
||||||
126: "wrong medium type",
|
{122, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
127: "operation canceled",
|
{123, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
128: "required key not available",
|
{124, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
129: "key has expired",
|
{125, "ENOMEDIUM", "no medium found"},
|
||||||
130: "key has been revoked",
|
{126, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
131: "key was rejected by service",
|
{127, "ECANCELED", "operation canceled"},
|
||||||
132: "owner died",
|
{128, "ENOKEY", "required key not available"},
|
||||||
133: "state not recoverable",
|
{129, "EKEYEXPIRED", "key has expired"},
|
||||||
134: "operation not possible due to RF-kill",
|
{130, "EKEYREVOKED", "key has been revoked"},
|
||||||
135: "memory page has hardware error",
|
{131, "EKEYREJECTED", "key was rejected by service"},
|
||||||
|
{132, "EOWNERDEAD", "owner died"},
|
||||||
|
{133, "ENOTRECOVERABLE", "state not recoverable"},
|
||||||
|
{134, "ERFKILL", "operation not possible due to RF-kill"},
|
||||||
|
{135, "EHWPOISON", "memory page has hardware error"},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal table
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "stopped (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "stopped",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "stopped (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "stopped"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "CPU time limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "file size limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window changed",
|
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||||
29: "resource lost",
|
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{27, "SIGPROF", "profiling timer expired"},
|
||||||
|
{28, "SIGWINCH", "window changed"},
|
||||||
|
{29, "SIGLOST", "power failure"},
|
||||||
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
}
|
}
|
||||||
|
|
40
vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
generated
vendored
|
@ -1020,6 +1020,43 @@ const (
|
||||||
MAP_WIRED = 0x800
|
MAP_WIRED = 0x800
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_BASIC_FLAGS = 0xe782807f
|
||||||
|
MNT_DEFEXPORTED = 0x200
|
||||||
|
MNT_DISCARD = 0x800000
|
||||||
|
MNT_EXKERB = 0x800
|
||||||
|
MNT_EXNORESPORT = 0x8000000
|
||||||
|
MNT_EXPORTANON = 0x400
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_EXPUBLIC = 0x10000000
|
||||||
|
MNT_EXRDONLY = 0x80
|
||||||
|
MNT_EXTATTR = 0x1000000
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_GETARGS = 0x400000
|
||||||
|
MNT_IGNORE = 0x100000
|
||||||
|
MNT_LAZY = 0x3
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_LOG = 0x2000000
|
||||||
|
MNT_NOATIME = 0x4000000
|
||||||
|
MNT_NOCOREDUMP = 0x8000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NODEVMTIME = 0x40000000
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_OP_FLAGS = 0x4d0000
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELATIME = 0x20000
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SOFTDEP = 0x80000000
|
||||||
|
MNT_SYMPERM = 0x20000000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UNION = 0x20
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0xff90ffff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CONTROLMBUF = 0x2000000
|
MSG_CONTROLMBUF = 0x2000000
|
||||||
|
@ -1113,7 +1150,10 @@ const (
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
|
40
vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
generated
vendored
|
@ -1010,6 +1010,43 @@ const (
|
||||||
MAP_WIRED = 0x800
|
MAP_WIRED = 0x800
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_BASIC_FLAGS = 0xe782807f
|
||||||
|
MNT_DEFEXPORTED = 0x200
|
||||||
|
MNT_DISCARD = 0x800000
|
||||||
|
MNT_EXKERB = 0x800
|
||||||
|
MNT_EXNORESPORT = 0x8000000
|
||||||
|
MNT_EXPORTANON = 0x400
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_EXPUBLIC = 0x10000000
|
||||||
|
MNT_EXRDONLY = 0x80
|
||||||
|
MNT_EXTATTR = 0x1000000
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_GETARGS = 0x400000
|
||||||
|
MNT_IGNORE = 0x100000
|
||||||
|
MNT_LAZY = 0x3
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_LOG = 0x2000000
|
||||||
|
MNT_NOATIME = 0x4000000
|
||||||
|
MNT_NOCOREDUMP = 0x8000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NODEVMTIME = 0x40000000
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_OP_FLAGS = 0x4d0000
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELATIME = 0x20000
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SOFTDEP = 0x80000000
|
||||||
|
MNT_SYMPERM = 0x20000000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UNION = 0x20
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0xff90ffff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CONTROLMBUF = 0x2000000
|
MSG_CONTROLMBUF = 0x2000000
|
||||||
|
@ -1103,7 +1140,10 @@ const (
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
|
40
vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
generated
vendored
|
@ -1000,6 +1000,43 @@ const (
|
||||||
MAP_STACK = 0x2000
|
MAP_STACK = 0x2000
|
||||||
MAP_TRYFIXED = 0x400
|
MAP_TRYFIXED = 0x400
|
||||||
MAP_WIRED = 0x800
|
MAP_WIRED = 0x800
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_BASIC_FLAGS = 0xe782807f
|
||||||
|
MNT_DEFEXPORTED = 0x200
|
||||||
|
MNT_DISCARD = 0x800000
|
||||||
|
MNT_EXKERB = 0x800
|
||||||
|
MNT_EXNORESPORT = 0x8000000
|
||||||
|
MNT_EXPORTANON = 0x400
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_EXPUBLIC = 0x10000000
|
||||||
|
MNT_EXRDONLY = 0x80
|
||||||
|
MNT_EXTATTR = 0x1000000
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_GETARGS = 0x400000
|
||||||
|
MNT_IGNORE = 0x100000
|
||||||
|
MNT_LAZY = 0x3
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_LOG = 0x2000000
|
||||||
|
MNT_NOATIME = 0x4000000
|
||||||
|
MNT_NOCOREDUMP = 0x8000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NODEVMTIME = 0x40000000
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_OP_FLAGS = 0x4d0000
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELATIME = 0x20000
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SOFTDEP = 0x80000000
|
||||||
|
MNT_SYMPERM = 0x20000000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UNION = 0x20
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0xff90ffff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CONTROLMBUF = 0x2000000
|
MSG_CONTROLMBUF = 0x2000000
|
||||||
|
@ -1093,7 +1130,10 @@ const (
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
|
26
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
26
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
|
@ -899,6 +899,32 @@ const (
|
||||||
MAP_TRYFIXED = 0x400
|
MAP_TRYFIXED = 0x400
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_DEFEXPORTED = 0x200
|
||||||
|
MNT_DELEXPORT = 0x20000
|
||||||
|
MNT_DOOMED = 0x8000000
|
||||||
|
MNT_EXPORTANON = 0x400
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_EXRDONLY = 0x80
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_LAZY = 0x3
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_NOATIME = 0x8000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SOFTDEP = 0x4000000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
|
MNT_WANTRDWR = 0x2000000
|
||||||
|
MNT_WXALLOWED = 0x800
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
|
|
30
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
|
@ -939,6 +939,34 @@ const (
|
||||||
MAP_TRYFIXED = 0x0
|
MAP_TRYFIXED = 0x0
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_DEFEXPORTED = 0x200
|
||||||
|
MNT_DELEXPORT = 0x20000
|
||||||
|
MNT_DOOMED = 0x8000000
|
||||||
|
MNT_EXPORTANON = 0x400
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_EXRDONLY = 0x80
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_LAZY = 0x3
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_NOATIME = 0x8000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOPERM = 0x20
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SOFTDEP = 0x4000000
|
||||||
|
MNT_STALLED = 0x100000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
|
MNT_WANTRDWR = 0x2000000
|
||||||
|
MNT_WXALLOWED = 0x800
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
|
@ -1415,6 +1443,8 @@ const (
|
||||||
TIOCUCNTL_CBRK = 0x7a
|
TIOCUCNTL_CBRK = 0x7a
|
||||||
TIOCUCNTL_SBRK = 0x7b
|
TIOCUCNTL_SBRK = 0x7b
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x2
|
||||||
|
UTIME_OMIT = -0x1
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
|
|
26
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
26
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
|
@ -899,6 +899,32 @@ const (
|
||||||
MAP_TRYFIXED = 0x0
|
MAP_TRYFIXED = 0x0
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_DEFEXPORTED = 0x200
|
||||||
|
MNT_DELEXPORT = 0x20000
|
||||||
|
MNT_DOOMED = 0x8000000
|
||||||
|
MNT_EXPORTANON = 0x400
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_EXRDONLY = 0x80
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_LAZY = 0x3
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_NOATIME = 0x8000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SOFTDEP = 0x4000000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
|
MNT_WANTRDWR = 0x2000000
|
||||||
|
MNT_WXALLOWED = 0x800
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
|
|
121
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
generated
vendored
121
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
generated
vendored
|
@ -1,4 +1,4 @@
|
||||||
// mksyscall_aix.pl -aix -tags aix,ppc syscall_aix.go syscall_aix_ppc.go
|
// mksyscall_aix_ppc.pl -aix -tags aix,ppc syscall_aix.go syscall_aix_ppc.go
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build aix,ppc
|
// +build aix,ppc
|
||||||
|
@ -7,6 +7,7 @@ package unix
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
int utimes(uintptr_t, uintptr_t);
|
int utimes(uintptr_t, uintptr_t);
|
||||||
int utimensat(int, uintptr_t, uintptr_t, int);
|
int utimensat(int, uintptr_t, uintptr_t, int);
|
||||||
int getcwd(uintptr_t, size_t);
|
int getcwd(uintptr_t, size_t);
|
||||||
|
@ -20,10 +21,8 @@ int chdir(uintptr_t);
|
||||||
int chroot(uintptr_t);
|
int chroot(uintptr_t);
|
||||||
int close(int);
|
int close(int);
|
||||||
int dup(int);
|
int dup(int);
|
||||||
int dup3(int, int, int);
|
|
||||||
void exit(int);
|
void exit(int);
|
||||||
int faccessat(int, uintptr_t, unsigned int, int);
|
int faccessat(int, uintptr_t, unsigned int, int);
|
||||||
int fallocate(int, unsigned int, long long, long long);
|
|
||||||
int fchdir(int);
|
int fchdir(int);
|
||||||
int fchmod(int, unsigned int);
|
int fchmod(int, unsigned int);
|
||||||
int fchmodat(int, uintptr_t, unsigned int, int);
|
int fchmodat(int, uintptr_t, unsigned int, int);
|
||||||
|
@ -39,15 +38,16 @@ int getrusage(int, uintptr_t);
|
||||||
int getsid(int);
|
int getsid(int);
|
||||||
int kill(int, int);
|
int kill(int, int);
|
||||||
int syslog(int, uintptr_t, size_t);
|
int syslog(int, uintptr_t, size_t);
|
||||||
|
int mkdir(int, uintptr_t, unsigned int);
|
||||||
int mkdirat(int, uintptr_t, unsigned int);
|
int mkdirat(int, uintptr_t, unsigned int);
|
||||||
int mkfifo(uintptr_t, unsigned int);
|
int mkfifo(uintptr_t, unsigned int);
|
||||||
|
int mknod(uintptr_t, unsigned int, int);
|
||||||
int mknodat(int, uintptr_t, unsigned int, int);
|
int mknodat(int, uintptr_t, unsigned int, int);
|
||||||
int nanosleep(uintptr_t, uintptr_t);
|
int nanosleep(uintptr_t, uintptr_t);
|
||||||
int open64(uintptr_t, int, unsigned int);
|
int open64(uintptr_t, int, unsigned int);
|
||||||
int openat(int, uintptr_t, int, unsigned int);
|
int openat(int, uintptr_t, int, unsigned int);
|
||||||
int read(int, uintptr_t, size_t);
|
int read(int, uintptr_t, size_t);
|
||||||
int readlink(uintptr_t, uintptr_t, size_t);
|
int readlink(uintptr_t, uintptr_t, size_t);
|
||||||
int removexattr(uintptr_t, uintptr_t);
|
|
||||||
int renameat(int, uintptr_t, int, uintptr_t);
|
int renameat(int, uintptr_t, int, uintptr_t);
|
||||||
int setdomainname(uintptr_t, size_t);
|
int setdomainname(uintptr_t, size_t);
|
||||||
int sethostname(uintptr_t, size_t);
|
int sethostname(uintptr_t, size_t);
|
||||||
|
@ -59,13 +59,11 @@ int setgid(int);
|
||||||
int setpriority(int, int, int);
|
int setpriority(int, int, int);
|
||||||
int statx(int, uintptr_t, int, int, uintptr_t);
|
int statx(int, uintptr_t, int, int, uintptr_t);
|
||||||
int sync();
|
int sync();
|
||||||
long long tee(int, int, int, int);
|
|
||||||
uintptr_t times(uintptr_t);
|
uintptr_t times(uintptr_t);
|
||||||
int umask(int);
|
int umask(int);
|
||||||
int uname(uintptr_t);
|
int uname(uintptr_t);
|
||||||
int unlink(uintptr_t);
|
int unlink(uintptr_t);
|
||||||
int unlinkat(int, uintptr_t, int);
|
int unlinkat(int, uintptr_t, int);
|
||||||
int unshare(int);
|
|
||||||
int ustat(int, uintptr_t);
|
int ustat(int, uintptr_t);
|
||||||
int write(int, uintptr_t, size_t);
|
int write(int, uintptr_t, size_t);
|
||||||
int dup2(int, int);
|
int dup2(int, int);
|
||||||
|
@ -116,7 +114,6 @@ int msync(uintptr_t, size_t, int);
|
||||||
int munlock(uintptr_t, size_t);
|
int munlock(uintptr_t, size_t);
|
||||||
int munlockall();
|
int munlockall();
|
||||||
int pipe(uintptr_t);
|
int pipe(uintptr_t);
|
||||||
int pipe2(uintptr_t, int);
|
|
||||||
int poll(uintptr_t, int, int);
|
int poll(uintptr_t, int, int);
|
||||||
int gettimeofday(uintptr_t, uintptr_t);
|
int gettimeofday(uintptr_t, uintptr_t);
|
||||||
int time(uintptr_t);
|
int time(uintptr_t);
|
||||||
|
@ -129,7 +126,6 @@ uintptr_t mmap(uintptr_t, uintptr_t, int, int, int, long long);
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -243,6 +239,17 @@ func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fcntl(fd int, cmd int, arg int) (val int, err error) {
|
||||||
|
r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
|
||||||
|
val = int(r0)
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Acct(path string) (err error) {
|
func Acct(path string) (err error) {
|
||||||
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
||||||
r0, er := C.acct(C.uintptr_t(_p0))
|
r0, er := C.acct(C.uintptr_t(_p0))
|
||||||
|
@ -297,16 +304,6 @@ func Dup(oldfd int) (fd int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup3(oldfd int, newfd int, flags int) (err error) {
|
|
||||||
r0, er := C.dup3(C.int(oldfd), C.int(newfd), C.int(flags))
|
|
||||||
if r0 == -1 && er != nil {
|
|
||||||
err = er
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Exit(code int) {
|
func Exit(code int) {
|
||||||
C.exit(C.int(code))
|
C.exit(C.int(code))
|
||||||
return
|
return
|
||||||
|
@ -325,16 +322,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
|
||||||
r0, er := C.fallocate(C.int(fd), C.uint(mode), C.longlong(off), C.longlong(len))
|
|
||||||
if r0 == -1 && er != nil {
|
|
||||||
err = er
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Fchdir(fd int) (err error) {
|
func Fchdir(fd int) (err error) {
|
||||||
r0, er := C.fchdir(C.int(fd))
|
r0, er := C.fchdir(C.int(fd))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
|
@ -377,17 +364,6 @@ func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func fcntl(fd int, cmd int, arg int) (val int, err error) {
|
|
||||||
r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))
|
|
||||||
val = int(r0)
|
|
||||||
if r0 == -1 && er != nil {
|
|
||||||
err = er
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Fdatasync(fd int) (err error) {
|
func Fdatasync(fd int) (err error) {
|
||||||
r0, er := C.fdatasync(C.int(fd))
|
r0, er := C.fdatasync(C.int(fd))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
|
@ -475,7 +451,7 @@ func Getsid(pid int) (sid int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Kill(pid int, sig syscall.Signal) (err error) {
|
func Kill(pid int, sig Signal) (err error) {
|
||||||
r0, er := C.kill(C.int(pid), C.int(sig))
|
r0, er := C.kill(C.int(pid), C.int(sig))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
err = er
|
err = er
|
||||||
|
@ -502,6 +478,17 @@ func Klogctl(typ int, buf []byte) (n int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mkdir(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
||||||
|
r0, er := C.mkdir(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
||||||
r0, er := C.mkdirat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))
|
r0, er := C.mkdirat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))
|
||||||
|
@ -524,6 +511,17 @@ func Mkfifo(path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
|
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
||||||
|
r0, er := C.mknod(C.uintptr_t(_p0), C.uint(mode), C.int(dev))
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
||||||
r0, er := C.mknodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(dev))
|
r0, er := C.mknodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(dev))
|
||||||
|
@ -604,18 +602,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Removexattr(path string, attr string) (err error) {
|
|
||||||
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
|
||||||
_p1 := uintptr(unsafe.Pointer(C.CString(attr)))
|
|
||||||
r0, er := C.removexattr(C.uintptr_t(_p0), C.uintptr_t(_p1))
|
|
||||||
if r0 == -1 && er != nil {
|
|
||||||
err = er
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
|
func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
_p0 := uintptr(unsafe.Pointer(C.CString(oldpath)))
|
_p0 := uintptr(unsafe.Pointer(C.CString(oldpath)))
|
||||||
_p1 := uintptr(unsafe.Pointer(C.CString(newpath)))
|
_p1 := uintptr(unsafe.Pointer(C.CString(newpath)))
|
||||||
|
@ -739,17 +725,6 @@ func Sync() {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
|
|
||||||
r0, er := C.tee(C.int(rfd), C.int(wfd), C.int(len), C.int(flags))
|
|
||||||
n = int64(r0)
|
|
||||||
if r0 == -1 && er != nil {
|
|
||||||
err = er
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Times(tms *Tms) (ticks uintptr, err error) {
|
func Times(tms *Tms) (ticks uintptr, err error) {
|
||||||
r0, er := C.times(C.uintptr_t(uintptr(unsafe.Pointer(tms))))
|
r0, er := C.times(C.uintptr_t(uintptr(unsafe.Pointer(tms))))
|
||||||
ticks = uintptr(r0)
|
ticks = uintptr(r0)
|
||||||
|
@ -801,16 +776,6 @@ func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unshare(flags int) (err error) {
|
|
||||||
r0, er := C.unshare(C.int(flags))
|
|
||||||
if r0 == -1 && er != nil {
|
|
||||||
err = er
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||||
r0, er := C.ustat(C.int(dev), C.uintptr_t(uintptr(unsafe.Pointer(ubuf))))
|
r0, er := C.ustat(C.int(dev), C.uintptr_t(uintptr(unsafe.Pointer(ubuf))))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
|
@ -1401,16 +1366,6 @@ func pipe(p *[2]_C_int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe2(p *[2]_C_int, flags int) (err error) {
|
|
||||||
r0, er := C.pipe2(C.uintptr_t(uintptr(unsafe.Pointer(p))), C.int(flags))
|
|
||||||
if r0 == -1 && er != nil {
|
|
||||||
err = er
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
||||||
r0, er := C.poll(C.uintptr_t(uintptr(unsafe.Pointer(fds))), C.int(nfds), C.int(timeout))
|
r0, er := C.poll(C.uintptr_t(uintptr(unsafe.Pointer(fds))), C.int(nfds), C.int(timeout))
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
|
|
1219
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
generated
vendored
1219
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
generated
vendored
File diff suppressed because it is too large
Load diff
1162
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
generated
vendored
Normal file
1162
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1042
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
generated
vendored
Normal file
1042
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
131
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
131
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
|
@ -588,6 +588,21 @@ func Exit(code int) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fchdir(fd int) (err error) {
|
func Fchdir(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -643,6 +658,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -927,6 +957,26 @@ func Link(path string, link string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -967,6 +1017,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -997,6 +1062,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mknodat(fd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1023,6 +1103,22 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 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 Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1345,6 +1441,26 @@ func Symlink(path string, link string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1408,6 +1524,21 @@ func Unlink(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
102
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
102
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
|
@ -912,7 +912,7 @@ func Fpathconf(fd int, name int) (val int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstat(fd int, stat *Stat_t) (err error) {
|
func fstat(fd int, stat *stat_freebsd11_t) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -922,7 +922,17 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
func fstat_freebsd12(fd int, stat *Stat_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatat(fd int, path string, stat *stat_freebsd11_t, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -937,7 +947,22 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
func fstatat_freebsd12(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FSTATAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatfs(fd int, stat *statfs_freebsd11_t) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -947,6 +972,16 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatfs_freebsd12(fd int, stat *Statfs_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTATFS_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fsync(fd int) (err error) {
|
func Fsync(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -967,14 +1002,14 @@ func Ftruncate(fd int, length int64) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getdents(fd int, buf []byte) (n int, err error) {
|
func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
|
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -984,14 +1019,14 @@ func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES_FREEBSD12, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -1222,7 +1257,7 @@ func Listen(s int, backlog int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Lstat(path string, stat *Stat_t) (err error) {
|
func lstat(path string, stat *stat_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1282,7 +1317,7 @@ func Mkfifo(path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1297,6 +1332,36 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mknodat(fd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1687,7 +1752,7 @@ func Setuid(uid int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Stat(path string, stat *Stat_t) (err error) {
|
func stat(path string, stat *stat_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1702,7 +1767,7 @@ func Stat(path string, stat *Stat_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Statfs(path string, stat *Statfs_t) (err error) {
|
func statfs(path string, stat *statfs_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1717,6 +1782,21 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func statfs_freebsd12(path string, stat *Statfs_t) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_STATFS_FREEBSD12, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Symlink(path string, link string) (err error) {
|
func Symlink(path string, link string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
102
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
102
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
|
@ -912,7 +912,7 @@ func Fpathconf(fd int, name int) (val int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstat(fd int, stat *Stat_t) (err error) {
|
func fstat(fd int, stat *stat_freebsd11_t) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -922,7 +922,17 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
func fstat_freebsd12(fd int, stat *Stat_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatat(fd int, path string, stat *stat_freebsd11_t, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -937,7 +947,22 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
func fstatat_freebsd12(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FSTATAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatfs(fd int, stat *statfs_freebsd11_t) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -947,6 +972,16 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatfs_freebsd12(fd int, stat *Statfs_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTATFS_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fsync(fd int) (err error) {
|
func Fsync(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -967,14 +1002,14 @@ func Ftruncate(fd int, length int64) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getdents(fd int, buf []byte) (n int, err error) {
|
func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
|
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -984,14 +1019,14 @@ func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES_FREEBSD12, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -1222,7 +1257,7 @@ func Listen(s int, backlog int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Lstat(path string, stat *Stat_t) (err error) {
|
func lstat(path string, stat *stat_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1282,7 +1317,7 @@ func Mkfifo(path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1297,6 +1332,36 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mknodat(fd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1687,7 +1752,7 @@ func Setuid(uid int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Stat(path string, stat *Stat_t) (err error) {
|
func stat(path string, stat *stat_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1702,7 +1767,7 @@ func Stat(path string, stat *Stat_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Statfs(path string, stat *Statfs_t) (err error) {
|
func statfs(path string, stat *statfs_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1717,6 +1782,21 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func statfs_freebsd12(path string, stat *Statfs_t) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_STATFS_FREEBSD12, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Symlink(path string, link string) (err error) {
|
func Symlink(path string, link string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
102
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
102
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
|
@ -912,7 +912,7 @@ func Fpathconf(fd int, name int) (val int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstat(fd int, stat *Stat_t) (err error) {
|
func fstat(fd int, stat *stat_freebsd11_t) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -922,7 +922,17 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
func fstat_freebsd12(fd int, stat *Stat_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatat(fd int, path string, stat *stat_freebsd11_t, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -937,7 +947,22 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
func fstatat_freebsd12(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FSTATAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatfs(fd int, stat *statfs_freebsd11_t) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -947,6 +972,16 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fstatfs_freebsd12(fd int, stat *Statfs_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTATFS_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fsync(fd int) (err error) {
|
func Fsync(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -967,14 +1002,14 @@ func Ftruncate(fd int, length int64) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getdents(fd int, buf []byte) (n int, err error) {
|
func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
|
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -984,14 +1019,14 @@ func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES_FREEBSD12, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -1222,7 +1257,7 @@ func Listen(s int, backlog int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Lstat(path string, stat *Stat_t) (err error) {
|
func lstat(path string, stat *stat_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1282,7 +1317,7 @@ func Mkfifo(path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1297,6 +1332,36 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mknodat(fd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1687,7 +1752,7 @@ func Setuid(uid int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Stat(path string, stat *Stat_t) (err error) {
|
func stat(path string, stat *stat_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1702,7 +1767,7 @@ func Stat(path string, stat *Stat_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Statfs(path string, stat *Statfs_t) (err error) {
|
func statfs(path string, stat *statfs_freebsd11_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1717,6 +1782,21 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func statfs_freebsd12(path string, stat *Statfs_t) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_STATFS_FREEBSD12, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Symlink(path string, link string) (err error) {
|
func Symlink(path string, link string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
generated
vendored
77
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
92
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
generated
vendored
92
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -2270,3 +2347,18 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
generated
vendored
77
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
generated
vendored
77
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
77
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
generated
vendored
77
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
generated
vendored
77
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
77
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
92
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
generated
vendored
92
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -2317,3 +2394,18 @@ func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
|
||||||
}
|
}
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
|
92
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
generated
vendored
92
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -2317,3 +2394,18 @@ func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
|
||||||
}
|
}
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
|
77
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
generated
vendored
77
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
92
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
generated
vendored
92
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
generated
vendored
|
@ -417,6 +417,16 @@ func Chroot(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ClockGetres(clockid int32, res *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -448,6 +458,21 @@ func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags in
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func DeleteModule(name string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Dup(oldfd int) (fd int, err error) {
|
func Dup(oldfd int) (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
@ -596,6 +621,21 @@ func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func FinitModule(fd int, params string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(dest) > 0 {
|
if len(dest) > 0 {
|
||||||
|
@ -797,6 +837,27 @@ func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InitModule(moduleImage []byte, params string) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(moduleImage) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&moduleImage[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(params)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
@ -979,6 +1040,22 @@ func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func MemfdCreate(name string, flags int) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -2087,3 +2164,18 @@ func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
|
173
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
173
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
|
@ -865,6 +865,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1114,6 +1129,26 @@ func Link(path string, link string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1154,6 +1189,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1169,6 +1219,21 @@ func Mkfifo(path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1184,6 +1249,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1210,6 +1290,22 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 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 Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1299,6 +1395,28 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Rename(from string, to string) (err error) {
|
func Rename(from string, to string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(from)
|
_p0, err = BytePtrFromString(from)
|
||||||
|
@ -1319,6 +1437,26 @@ func Rename(from string, to string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(from)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(to)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Revoke(path string) (err error) {
|
func Revoke(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1516,6 +1654,26 @@ func Symlink(path string, link string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1564,6 +1722,21 @@ func Unlink(path string) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue