Added methods to generate keys
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
31155b5f0b
commit
3d60be9eef
37
cmd/key.go
Normal file
37
cmd/key.go
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
// Sofaraum client is the client software which collects statistics about
|
||||||
|
// wifi devices nearby and then sends them to the Sofaraum Server.
|
||||||
|
// Copyright (c) 2019.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
package cmd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"git.kolaente.de/sofaraum/client/pkg/key"
|
||||||
|
"github.com/spf13/cobra"
|
||||||
|
)
|
||||||
|
|
||||||
|
var keyCmd = &cobra.Command{
|
||||||
|
Use: "keygen",
|
||||||
|
Short: "Generates an ed25519 public and private key pair used to sign the communication with the server.",
|
||||||
|
Long: `Generates an ed25519 public and private key pair used to sign the communication with the server and saves it in the current directory.
|
||||||
|
The public key needs to be saved on the server seperatly.`,
|
||||||
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
key.GenKey()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
rootCmd.AddCommand(keyCmd)
|
||||||
|
}
|
6
go.mod
6
go.mod
|
@ -10,7 +10,11 @@ require (
|
||||||
github.com/prometheus/client_golang v0.9.2
|
github.com/prometheus/client_golang v0.9.2
|
||||||
github.com/spf13/cobra v0.0.3
|
github.com/spf13/cobra v0.0.3
|
||||||
github.com/spf13/viper v1.3.1
|
github.com/spf13/viper v1.3.1
|
||||||
|
golang.org/x/crypto v0.0.0-20190506204251-e1dfcc566284
|
||||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3
|
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3
|
||||||
golang.org/x/tools v0.0.0-20181128225727-c5b00d9557fd // indirect
|
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c // indirect
|
||||||
|
golang.org/x/sys v0.0.0-20190507053917-2953c62de483 // indirect
|
||||||
|
golang.org/x/text v0.3.2 // indirect
|
||||||
|
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c // indirect
|
||||||
src.techknowlogick.com/xgo v0.0.0-20190415010919-1502273fab15
|
src.techknowlogick.com/xgo v0.0.0-20190415010919-1502273fab15
|
||||||
)
|
)
|
||||||
|
|
16
go.sum
16
go.sum
|
@ -59,17 +59,33 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
|
||||||
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
|
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
|
||||||
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
|
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
|
||||||
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
golang.org/x/crypto v0.0.0-20190506204251-e1dfcc566284 h1:rlLehGeYg6jfoyz/eDqDU1iRXLKfR42nnNh57ytKEWo=
|
||||||
|
golang.org/x/crypto v0.0.0-20190506204251-e1dfcc566284/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 h1:x/bBzNauLQAlE3fLku/xy92Y8QwKX5HZymrMz2IiKFc=
|
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 h1:x/bBzNauLQAlE3fLku/xy92Y8QwKX5HZymrMz2IiKFc=
|
||||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||||
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
|
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
|
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
|
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTmV7VDcZyvRZ+QQXkXTZQ=
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTmV7VDcZyvRZ+QQXkXTZQ=
|
||||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a h1:1n5lsVfiQW3yfsRGu98756EH1YthsFqr/5mxHduZW2A=
|
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a h1:1n5lsVfiQW3yfsRGu98756EH1YthsFqr/5mxHduZW2A=
|
||||||
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190507053917-2953c62de483 h1:0pONs62zZ8ED8kUnSCsv4RWjmwM6ideAalXGTybpo2s=
|
||||||
|
golang.org/x/sys v0.0.0-20190507053917-2953c62de483/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
|
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
|
||||||
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||||
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20181128225727-c5b00d9557fd h1:iGtqU5YFAjHfcmM6XLsTOpIm8HrEmDpt+XiZaxrJhyE=
|
golang.org/x/tools v0.0.0-20181128225727-c5b00d9557fd h1:iGtqU5YFAjHfcmM6XLsTOpIm8HrEmDpt+XiZaxrJhyE=
|
||||||
golang.org/x/tools v0.0.0-20181128225727-c5b00d9557fd/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20181128225727-c5b00d9557fd/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
|
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c h1:97SnQk1GYRXJgvwZ8fadnxDOWfKvkNQHH3CtZntPSrM=
|
||||||
|
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
||||||
|
|
43
pkg/key/gen.go
Normal file
43
pkg/key/gen.go
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
// Sofaraum client is the client software which collects statistics about
|
||||||
|
// wifi devices nearby and then sends them to the Sofaraum Server.
|
||||||
|
// Copyright (c) 2019.
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
package key
|
||||||
|
|
||||||
|
import (
|
||||||
|
"golang.org/x/crypto/ed25519"
|
||||||
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
|
)
|
||||||
|
|
||||||
|
func GenKey() {
|
||||||
|
pk, sk, err := ed25519.GenerateKey(nil)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("Could not generate key: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ioutil.WriteFile("sofa-pub.key", pk, 0600)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("Could not write public key: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ioutil.WriteFile("sofa-secret.key", sk, 0600)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("Could not write secret key: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
log.Println("Keys were generated successfully.")
|
||||||
|
}
|
3
vendor/golang.org/x/crypto/AUTHORS
generated
vendored
Normal file
3
vendor/golang.org/x/crypto/AUTHORS
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# This source code refers to The Go Authors for copyright purposes.
|
||||||
|
# The master list of authors is in the main Go distribution,
|
||||||
|
# visible at https://tip.golang.org/AUTHORS.
|
3
vendor/golang.org/x/crypto/CONTRIBUTORS
generated
vendored
Normal file
3
vendor/golang.org/x/crypto/CONTRIBUTORS
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# This source code was written by the Go contributors.
|
||||||
|
# The master list of contributors is in the main Go distribution,
|
||||||
|
# visible at https://tip.golang.org/CONTRIBUTORS.
|
27
vendor/golang.org/x/crypto/LICENSE
generated
vendored
Normal file
27
vendor/golang.org/x/crypto/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
Copyright (c) 2009 The Go Authors. All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following disclaimer
|
||||||
|
in the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
* Neither the name of Google Inc. nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
22
vendor/golang.org/x/crypto/PATENTS
generated
vendored
Normal file
22
vendor/golang.org/x/crypto/PATENTS
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
Additional IP Rights Grant (Patents)
|
||||||
|
|
||||||
|
"This implementation" means the copyrightable works distributed by
|
||||||
|
Google as part of the Go project.
|
||||||
|
|
||||||
|
Google hereby grants to You a perpetual, worldwide, non-exclusive,
|
||||||
|
no-charge, royalty-free, irrevocable (except as stated in this section)
|
||||||
|
patent license to make, have made, use, offer to sell, sell, import,
|
||||||
|
transfer and otherwise run, modify and propagate the contents of this
|
||||||
|
implementation of Go, where such license applies only to those patent
|
||||||
|
claims, both currently owned or controlled by Google and acquired in
|
||||||
|
the future, licensable by Google that are necessarily infringed by this
|
||||||
|
implementation of Go. This grant does not include claims that would be
|
||||||
|
infringed only as a consequence of further modification of this
|
||||||
|
implementation. If you or your agent or exclusive licensee institute or
|
||||||
|
order or agree to the institution of patent litigation against any
|
||||||
|
entity (including a cross-claim or counterclaim in a lawsuit) alleging
|
||||||
|
that this implementation of Go or any code incorporated within this
|
||||||
|
implementation of Go constitutes direct or contributory patent
|
||||||
|
infringement, or inducement of patent infringement, then any patent
|
||||||
|
rights granted to you under this License for this implementation of Go
|
||||||
|
shall terminate as of the date such litigation is filed.
|
217
vendor/golang.org/x/crypto/ed25519/ed25519.go
generated
vendored
Normal file
217
vendor/golang.org/x/crypto/ed25519/ed25519.go
generated
vendored
Normal file
|
@ -0,0 +1,217 @@
|
||||||
|
// Copyright 2016 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Package ed25519 implements the Ed25519 signature algorithm. See
|
||||||
|
// https://ed25519.cr.yp.to/.
|
||||||
|
//
|
||||||
|
// These functions are also compatible with the “Ed25519” function defined in
|
||||||
|
// RFC 8032. However, unlike RFC 8032's formulation, this package's private key
|
||||||
|
// representation includes a public key suffix to make multiple signing
|
||||||
|
// operations with the same key more efficient. This package refers to the RFC
|
||||||
|
// 8032 private key as the “seed”.
|
||||||
|
package ed25519
|
||||||
|
|
||||||
|
// This code is a port of the public domain, “ref10” implementation of ed25519
|
||||||
|
// from SUPERCOP.
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"crypto"
|
||||||
|
cryptorand "crypto/rand"
|
||||||
|
"crypto/sha512"
|
||||||
|
"errors"
|
||||||
|
"io"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
|
"golang.org/x/crypto/ed25519/internal/edwards25519"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// PublicKeySize is the size, in bytes, of public keys as used in this package.
|
||||||
|
PublicKeySize = 32
|
||||||
|
// PrivateKeySize is the size, in bytes, of private keys as used in this package.
|
||||||
|
PrivateKeySize = 64
|
||||||
|
// SignatureSize is the size, in bytes, of signatures generated and verified by this package.
|
||||||
|
SignatureSize = 64
|
||||||
|
// SeedSize is the size, in bytes, of private key seeds. These are the private key representations used by RFC 8032.
|
||||||
|
SeedSize = 32
|
||||||
|
)
|
||||||
|
|
||||||
|
// PublicKey is the type of Ed25519 public keys.
|
||||||
|
type PublicKey []byte
|
||||||
|
|
||||||
|
// PrivateKey is the type of Ed25519 private keys. It implements crypto.Signer.
|
||||||
|
type PrivateKey []byte
|
||||||
|
|
||||||
|
// Public returns the PublicKey corresponding to priv.
|
||||||
|
func (priv PrivateKey) Public() crypto.PublicKey {
|
||||||
|
publicKey := make([]byte, PublicKeySize)
|
||||||
|
copy(publicKey, priv[32:])
|
||||||
|
return PublicKey(publicKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Seed returns the private key seed corresponding to priv. It is provided for
|
||||||
|
// interoperability with RFC 8032. RFC 8032's private keys correspond to seeds
|
||||||
|
// in this package.
|
||||||
|
func (priv PrivateKey) Seed() []byte {
|
||||||
|
seed := make([]byte, SeedSize)
|
||||||
|
copy(seed, priv[:32])
|
||||||
|
return seed
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sign signs the given message with priv.
|
||||||
|
// Ed25519 performs two passes over messages to be signed and therefore cannot
|
||||||
|
// handle pre-hashed messages. Thus opts.HashFunc() must return zero to
|
||||||
|
// indicate the message hasn't been hashed. This can be achieved by passing
|
||||||
|
// crypto.Hash(0) as the value for opts.
|
||||||
|
func (priv PrivateKey) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) (signature []byte, err error) {
|
||||||
|
if opts.HashFunc() != crypto.Hash(0) {
|
||||||
|
return nil, errors.New("ed25519: cannot sign hashed message")
|
||||||
|
}
|
||||||
|
|
||||||
|
return Sign(priv, message), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// GenerateKey generates a public/private key pair using entropy from rand.
|
||||||
|
// If rand is nil, crypto/rand.Reader will be used.
|
||||||
|
func GenerateKey(rand io.Reader) (PublicKey, PrivateKey, error) {
|
||||||
|
if rand == nil {
|
||||||
|
rand = cryptorand.Reader
|
||||||
|
}
|
||||||
|
|
||||||
|
seed := make([]byte, SeedSize)
|
||||||
|
if _, err := io.ReadFull(rand, seed); err != nil {
|
||||||
|
return nil, nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
privateKey := NewKeyFromSeed(seed)
|
||||||
|
publicKey := make([]byte, PublicKeySize)
|
||||||
|
copy(publicKey, privateKey[32:])
|
||||||
|
|
||||||
|
return publicKey, privateKey, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewKeyFromSeed calculates a private key from a seed. It will panic if
|
||||||
|
// len(seed) is not SeedSize. This function is provided for interoperability
|
||||||
|
// with RFC 8032. RFC 8032's private keys correspond to seeds in this
|
||||||
|
// package.
|
||||||
|
func NewKeyFromSeed(seed []byte) PrivateKey {
|
||||||
|
if l := len(seed); l != SeedSize {
|
||||||
|
panic("ed25519: bad seed length: " + strconv.Itoa(l))
|
||||||
|
}
|
||||||
|
|
||||||
|
digest := sha512.Sum512(seed)
|
||||||
|
digest[0] &= 248
|
||||||
|
digest[31] &= 127
|
||||||
|
digest[31] |= 64
|
||||||
|
|
||||||
|
var A edwards25519.ExtendedGroupElement
|
||||||
|
var hBytes [32]byte
|
||||||
|
copy(hBytes[:], digest[:])
|
||||||
|
edwards25519.GeScalarMultBase(&A, &hBytes)
|
||||||
|
var publicKeyBytes [32]byte
|
||||||
|
A.ToBytes(&publicKeyBytes)
|
||||||
|
|
||||||
|
privateKey := make([]byte, PrivateKeySize)
|
||||||
|
copy(privateKey, seed)
|
||||||
|
copy(privateKey[32:], publicKeyBytes[:])
|
||||||
|
|
||||||
|
return privateKey
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sign signs the message with privateKey and returns a signature. It will
|
||||||
|
// panic if len(privateKey) is not PrivateKeySize.
|
||||||
|
func Sign(privateKey PrivateKey, message []byte) []byte {
|
||||||
|
if l := len(privateKey); l != PrivateKeySize {
|
||||||
|
panic("ed25519: bad private key length: " + strconv.Itoa(l))
|
||||||
|
}
|
||||||
|
|
||||||
|
h := sha512.New()
|
||||||
|
h.Write(privateKey[:32])
|
||||||
|
|
||||||
|
var digest1, messageDigest, hramDigest [64]byte
|
||||||
|
var expandedSecretKey [32]byte
|
||||||
|
h.Sum(digest1[:0])
|
||||||
|
copy(expandedSecretKey[:], digest1[:])
|
||||||
|
expandedSecretKey[0] &= 248
|
||||||
|
expandedSecretKey[31] &= 63
|
||||||
|
expandedSecretKey[31] |= 64
|
||||||
|
|
||||||
|
h.Reset()
|
||||||
|
h.Write(digest1[32:])
|
||||||
|
h.Write(message)
|
||||||
|
h.Sum(messageDigest[:0])
|
||||||
|
|
||||||
|
var messageDigestReduced [32]byte
|
||||||
|
edwards25519.ScReduce(&messageDigestReduced, &messageDigest)
|
||||||
|
var R edwards25519.ExtendedGroupElement
|
||||||
|
edwards25519.GeScalarMultBase(&R, &messageDigestReduced)
|
||||||
|
|
||||||
|
var encodedR [32]byte
|
||||||
|
R.ToBytes(&encodedR)
|
||||||
|
|
||||||
|
h.Reset()
|
||||||
|
h.Write(encodedR[:])
|
||||||
|
h.Write(privateKey[32:])
|
||||||
|
h.Write(message)
|
||||||
|
h.Sum(hramDigest[:0])
|
||||||
|
var hramDigestReduced [32]byte
|
||||||
|
edwards25519.ScReduce(&hramDigestReduced, &hramDigest)
|
||||||
|
|
||||||
|
var s [32]byte
|
||||||
|
edwards25519.ScMulAdd(&s, &hramDigestReduced, &expandedSecretKey, &messageDigestReduced)
|
||||||
|
|
||||||
|
signature := make([]byte, SignatureSize)
|
||||||
|
copy(signature[:], encodedR[:])
|
||||||
|
copy(signature[32:], s[:])
|
||||||
|
|
||||||
|
return signature
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verify reports whether sig is a valid signature of message by publicKey. It
|
||||||
|
// will panic if len(publicKey) is not PublicKeySize.
|
||||||
|
func Verify(publicKey PublicKey, message, sig []byte) bool {
|
||||||
|
if l := len(publicKey); l != PublicKeySize {
|
||||||
|
panic("ed25519: bad public key length: " + strconv.Itoa(l))
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(sig) != SignatureSize || sig[63]&224 != 0 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
var A edwards25519.ExtendedGroupElement
|
||||||
|
var publicKeyBytes [32]byte
|
||||||
|
copy(publicKeyBytes[:], publicKey)
|
||||||
|
if !A.FromBytes(&publicKeyBytes) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
edwards25519.FeNeg(&A.X, &A.X)
|
||||||
|
edwards25519.FeNeg(&A.T, &A.T)
|
||||||
|
|
||||||
|
h := sha512.New()
|
||||||
|
h.Write(sig[:32])
|
||||||
|
h.Write(publicKey[:])
|
||||||
|
h.Write(message)
|
||||||
|
var digest [64]byte
|
||||||
|
h.Sum(digest[:0])
|
||||||
|
|
||||||
|
var hReduced [32]byte
|
||||||
|
edwards25519.ScReduce(&hReduced, &digest)
|
||||||
|
|
||||||
|
var R edwards25519.ProjectiveGroupElement
|
||||||
|
var s [32]byte
|
||||||
|
copy(s[:], sig[32:])
|
||||||
|
|
||||||
|
// https://tools.ietf.org/html/rfc8032#section-5.1.7 requires that s be in
|
||||||
|
// the range [0, order) in order to prevent signature malleability.
|
||||||
|
if !edwards25519.ScMinimal(&s) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
edwards25519.GeDoubleScalarMultVartime(&R, &hReduced, &A, &s)
|
||||||
|
|
||||||
|
var checkR [32]byte
|
||||||
|
R.ToBytes(&checkR)
|
||||||
|
return bytes.Equal(sig[:32], checkR[:])
|
||||||
|
}
|
1422
vendor/golang.org/x/crypto/ed25519/internal/edwards25519/const.go
generated
vendored
Normal file
1422
vendor/golang.org/x/crypto/ed25519/internal/edwards25519/const.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1793
vendor/golang.org/x/crypto/ed25519/internal/edwards25519/edwards25519.go
generated
vendored
Normal file
1793
vendor/golang.org/x/crypto/ed25519/internal/edwards25519/edwards25519.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
20
vendor/golang.org/x/sys/unix/README.md
generated
vendored
20
vendor/golang.org/x/sys/unix/README.md
generated
vendored
|
@ -14,7 +14,7 @@ migrating the build system to use containers so the builds are reproducible.
|
||||||
This is being done on an OS-by-OS basis. Please update this documentation as
|
This is being done on an OS-by-OS basis. Please update this documentation as
|
||||||
components of the build system change.
|
components of the build system change.
|
||||||
|
|
||||||
### Old Build System (currently for `GOOS != "Linux" || GOARCH == "sparc64"`)
|
### Old Build System (currently for `GOOS != "linux"`)
|
||||||
|
|
||||||
The old build system generates the Go files based on the C header files
|
The old build system generates the Go files based on the C header files
|
||||||
present on your system. This means that files
|
present on your system. This means that files
|
||||||
|
@ -32,9 +32,9 @@ To build the files for your current OS and architecture, make sure GOOS and
|
||||||
GOARCH are set correctly and run `mkall.sh`. This will generate the files for
|
GOARCH are set correctly and run `mkall.sh`. This will generate the files for
|
||||||
your specific system. Running `mkall.sh -n` shows the commands that will be run.
|
your specific system. Running `mkall.sh -n` shows the commands that will be run.
|
||||||
|
|
||||||
Requirements: bash, perl, go
|
Requirements: bash, go
|
||||||
|
|
||||||
### New Build System (currently for `GOOS == "Linux" && GOARCH != "sparc64"`)
|
### New Build System (currently for `GOOS == "linux"`)
|
||||||
|
|
||||||
The new build system uses a Docker container to generate the go files directly
|
The new build system uses a Docker container to generate the go files directly
|
||||||
from source checkouts of the kernel and various system libraries. This means
|
from source checkouts of the kernel and various system libraries. This means
|
||||||
|
@ -52,14 +52,14 @@ system and have your GOOS and GOARCH set accordingly. Running `mkall.sh` will
|
||||||
then generate all of the files for all of the GOOS/GOARCH pairs in the new build
|
then generate all of the files for all of the GOOS/GOARCH pairs in the new build
|
||||||
system. Running `mkall.sh -n` shows the commands that will be run.
|
system. Running `mkall.sh -n` shows the commands that will be run.
|
||||||
|
|
||||||
Requirements: bash, perl, go, docker
|
Requirements: bash, go, docker
|
||||||
|
|
||||||
## Component files
|
## Component files
|
||||||
|
|
||||||
This section describes the various files used in the code generation process.
|
This section describes the various files used in the code generation process.
|
||||||
It also contains instructions on how to modify these files to add a new
|
It also contains instructions on how to modify these files to add a new
|
||||||
architecture/OS or to add additional syscalls, types, or constants. Note that
|
architecture/OS or to add additional syscalls, types, or constants. Note that
|
||||||
if you are using the new build system, the scripts cannot be called normally.
|
if you are using the new build system, the scripts/programs cannot be called normally.
|
||||||
They must be called from within the docker container.
|
They must be called from within the docker container.
|
||||||
|
|
||||||
### asm files
|
### asm files
|
||||||
|
@ -81,8 +81,8 @@ each GOOS/GOARCH pair.
|
||||||
|
|
||||||
### mksysnum
|
### mksysnum
|
||||||
|
|
||||||
Mksysnum is a script located at `${GOOS}/mksysnum.pl` (or `mksysnum_${GOOS}.pl`
|
Mksysnum is a Go program located at `${GOOS}/mksysnum.go` (or `mksysnum_${GOOS}.go`
|
||||||
for the old system). This script takes in a list of header files containing the
|
for the old system). This program takes in a list of header files containing the
|
||||||
syscall number declarations and parses them to produce the corresponding list of
|
syscall number declarations and parses them to produce the corresponding list of
|
||||||
Go numeric constants. See `zsysnum_${GOOS}_${GOARCH}.go` for the generated
|
Go numeric constants. See `zsysnum_${GOOS}_${GOARCH}.go` for the generated
|
||||||
constants.
|
constants.
|
||||||
|
@ -92,14 +92,14 @@ new installation of the target OS (or updating the source checkouts for the
|
||||||
new build system). However, depending on the OS, you make need to update the
|
new build system). However, depending on the OS, you make need to update the
|
||||||
parsing in mksysnum.
|
parsing in mksysnum.
|
||||||
|
|
||||||
### mksyscall.pl
|
### mksyscall.go
|
||||||
|
|
||||||
The `syscall.go`, `syscall_${GOOS}.go`, `syscall_${GOOS}_${GOARCH}.go` are
|
The `syscall.go`, `syscall_${GOOS}.go`, `syscall_${GOOS}_${GOARCH}.go` are
|
||||||
hand-written Go files which implement system calls (for unix, the specific OS,
|
hand-written Go files which implement system calls (for unix, the specific OS,
|
||||||
or the specific OS/Architecture pair respectively) that need special handling
|
or the specific OS/Architecture pair respectively) that need special handling
|
||||||
and list `//sys` comments giving prototypes for ones that can be generated.
|
and list `//sys` comments giving prototypes for ones that can be generated.
|
||||||
|
|
||||||
The mksyscall.pl script takes the `//sys` and `//sysnb` comments and converts
|
The mksyscall.go program takes the `//sys` and `//sysnb` comments and converts
|
||||||
them into syscalls. This requires the name of the prototype in the comment to
|
them into syscalls. This requires the name of the prototype in the comment to
|
||||||
match a syscall number in the `zsysnum_${GOOS}_${GOARCH}.go` file. The function
|
match a syscall number in the `zsysnum_${GOOS}_${GOARCH}.go` file. The function
|
||||||
prototype can be exported (capitalized) or not.
|
prototype can be exported (capitalized) or not.
|
||||||
|
@ -160,7 +160,7 @@ signal numbers, and constants. Generated by `mkerrors.sh` (see above).
|
||||||
### `zsyscall_${GOOS}_${GOARCH}.go`
|
### `zsyscall_${GOOS}_${GOARCH}.go`
|
||||||
|
|
||||||
A file containing all the generated syscalls for a specific GOOS and GOARCH.
|
A file containing all the generated syscalls for a specific GOOS and GOARCH.
|
||||||
Generated by `mksyscall.pl` (see above).
|
Generated by `mksyscall.go` (see above).
|
||||||
|
|
||||||
### `zsysnum_${GOOS}_${GOARCH}.go`
|
### `zsysnum_${GOOS}_${GOARCH}.go`
|
||||||
|
|
||||||
|
|
29
vendor/golang.org/x/sys/unix/asm_freebsd_arm64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_freebsd_arm64.s
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
// 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 call support for ARM64, FreeBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
29
vendor/golang.org/x/sys/unix/asm_netbsd_arm64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_netbsd_arm64.s
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for ARM64, NetBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
B syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
B syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
B syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
B syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
B syscall·RawSyscall6(SB)
|
29
vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for arm64, OpenBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
2
vendor/golang.org/x/sys/unix/fcntl.go
generated
vendored
2
vendor/golang.org/x/sys/unix/fcntl.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
|
// +build dragonfly freebsd linux netbsd openbsd
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|
18
vendor/golang.org/x/sys/unix/fcntl_darwin.go
generated
vendored
Normal file
18
vendor/golang.org/x/sys/unix/fcntl_darwin.go
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
|
||||||
|
func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
|
||||||
|
return fcntl(int(fd), cmd, arg)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
|
||||||
|
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
|
||||||
|
_, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk))))
|
||||||
|
return err
|
||||||
|
}
|
81
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
81
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
|
@ -17,6 +17,7 @@ mksysctl=""
|
||||||
zsysctl="zsysctl_$GOOSARCH.go"
|
zsysctl="zsysctl_$GOOSARCH.go"
|
||||||
mksysnum=
|
mksysnum=
|
||||||
mktypes=
|
mktypes=
|
||||||
|
mkasm=
|
||||||
run="sh"
|
run="sh"
|
||||||
cmd=""
|
cmd=""
|
||||||
|
|
||||||
|
@ -45,8 +46,8 @@ case "$#" in
|
||||||
exit 2
|
exit 2
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$GOOS" = "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then
|
if [[ "$GOOS" = "linux" ]]; then
|
||||||
# Use then new build system
|
# Use the Docker-based build system
|
||||||
# Files generated through docker (use $cmd so you can Ctl-C the build or run)
|
# Files generated through docker (use $cmd so you can Ctl-C the build or run)
|
||||||
$cmd docker build --tag generate:$GOOS $GOOS
|
$cmd docker build --tag generate:$GOOS $GOOS
|
||||||
$cmd docker run --interactive --tty --volume $(dirname "$(readlink -f "$0")"):/build generate:$GOOS
|
$cmd docker run --interactive --tty --volume $(dirname "$(readlink -f "$0")"):/build generate:$GOOS
|
||||||
|
@ -61,112 +62,130 @@ _* | *_ | _)
|
||||||
;;
|
;;
|
||||||
aix_ppc)
|
aix_ppc)
|
||||||
mkerrors="$mkerrors -maix32"
|
mkerrors="$mkerrors -maix32"
|
||||||
mksyscall="./mksyscall_aix_ppc.pl -aix"
|
mksyscall="go run mksyscall_aix_ppc.go -aix"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
aix_ppc64)
|
aix_ppc64)
|
||||||
mkerrors="$mkerrors -maix64"
|
mkerrors="$mkerrors -maix64"
|
||||||
mksyscall="./mksyscall_aix_ppc64.pl -aix"
|
mksyscall="go run mksyscall_aix_ppc64.go -aix"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
darwin_386)
|
darwin_386)
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="go run mksyscall.go -l32"
|
mksyscall="go run mksyscall.go -l32"
|
||||||
mksysnum="./mksysnum_darwin.pl $(xcrun --show-sdk-path --sdk macosx)/usr/include/sys/syscall.h"
|
mksysnum="go run mksysnum.go $(xcrun --show-sdk-path --sdk macosx)/usr/include/sys/syscall.h"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
|
mkasm="go run mkasm_darwin.go"
|
||||||
;;
|
;;
|
||||||
darwin_amd64)
|
darwin_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="./mksysnum_darwin.pl $(xcrun --show-sdk-path --sdk macosx)/usr/include/sys/syscall.h"
|
mksysnum="go run mksysnum.go $(xcrun --show-sdk-path --sdk macosx)/usr/include/sys/syscall.h"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
|
mkasm="go run mkasm_darwin.go"
|
||||||
;;
|
;;
|
||||||
darwin_arm)
|
darwin_arm)
|
||||||
mkerrors="$mkerrors"
|
mkerrors="$mkerrors"
|
||||||
mksysnum="./mksysnum_darwin.pl $(xcrun --show-sdk-path --sdk iphoneos)/usr/include/sys/syscall.h"
|
mksyscall="go run mksyscall.go -l32"
|
||||||
|
mksysnum="go run mksysnum.go $(xcrun --show-sdk-path --sdk iphoneos)/usr/include/sys/syscall.h"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
|
mkasm="go run mkasm_darwin.go"
|
||||||
;;
|
;;
|
||||||
darwin_arm64)
|
darwin_arm64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="./mksysnum_darwin.pl $(xcrun --show-sdk-path --sdk iphoneos)/usr/include/sys/syscall.h"
|
mksysnum="go run mksysnum.go $(xcrun --show-sdk-path --sdk iphoneos)/usr/include/sys/syscall.h"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
|
mkasm="go run mkasm_darwin.go"
|
||||||
;;
|
;;
|
||||||
dragonfly_amd64)
|
dragonfly_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksyscall="go run mksyscall.go -dragonfly"
|
mksyscall="go run mksyscall.go -dragonfly"
|
||||||
mksysnum="curl -s 'http://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master' | ./mksysnum_dragonfly.pl"
|
mksysnum="go run mksysnum.go 'https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
freebsd_386)
|
freebsd_386)
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="go run mksyscall.go -l32"
|
mksyscall="go run mksyscall.go -l32"
|
||||||
mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
|
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
freebsd_amd64)
|
freebsd_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
|
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
freebsd_arm)
|
freebsd_arm)
|
||||||
mkerrors="$mkerrors"
|
mkerrors="$mkerrors"
|
||||||
mksyscall="go run mksyscall.go -l32 -arm"
|
mksyscall="go run mksyscall.go -l32 -arm"
|
||||||
mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl"
|
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'"
|
||||||
# Let the type of C char be signed for making the bare syscall
|
# Let the type of C char be signed for making the bare syscall
|
||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
linux_sparc64)
|
freebsd_arm64)
|
||||||
GOOSARCH_in=syscall_linux_sparc64.go
|
|
||||||
unistd_h=/usr/include/sparc64-linux-gnu/asm/unistd.h
|
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="./mksysnum_linux.pl $unistd_h"
|
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
netbsd_386)
|
netbsd_386)
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="go run mksyscall.go -l32 -netbsd"
|
mksyscall="go run mksyscall.go -l32 -netbsd"
|
||||||
mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl"
|
mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
netbsd_amd64)
|
netbsd_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksyscall="go run mksyscall.go -netbsd"
|
mksyscall="go run mksyscall.go -netbsd"
|
||||||
mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl"
|
mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
netbsd_arm)
|
netbsd_arm)
|
||||||
mkerrors="$mkerrors"
|
mkerrors="$mkerrors"
|
||||||
mksyscall="go run mksyscall.go -l32 -netbsd -arm"
|
mksyscall="go run mksyscall.go -l32 -netbsd -arm"
|
||||||
mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl"
|
mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
# Let the type of C char be signed for making the bare syscall
|
# Let the type of C char be signed for making the bare syscall
|
||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
|
netbsd_arm64)
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
mksyscall="go run mksyscall.go -netbsd"
|
||||||
|
mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
|
;;
|
||||||
openbsd_386)
|
openbsd_386)
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="go run mksyscall.go -l32 -openbsd"
|
mksyscall="go run mksyscall.go -l32 -openbsd"
|
||||||
mksysctl="./mksysctl_openbsd.pl"
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
openbsd_amd64)
|
openbsd_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksyscall="go run mksyscall.go -openbsd"
|
mksyscall="go run mksyscall.go -openbsd"
|
||||||
mksysctl="./mksysctl_openbsd.pl"
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
openbsd_arm)
|
openbsd_arm)
|
||||||
mkerrors="$mkerrors"
|
mkerrors="$mkerrors"
|
||||||
mksyscall="go run mksyscall.go -l32 -openbsd -arm"
|
mksyscall="go run mksyscall.go -l32 -openbsd -arm"
|
||||||
mksysctl="./mksysctl_openbsd.pl"
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
|
# Let the type of C char be signed for making the bare syscall
|
||||||
|
# API consistent across platforms.
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
|
;;
|
||||||
|
openbsd_arm64)
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
mksyscall="go run mksyscall.go -openbsd"
|
||||||
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
# Let the type of C char be signed for making the bare syscall
|
# Let the type of C char be signed for making the bare syscall
|
||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
solaris_amd64)
|
solaris_amd64)
|
||||||
mksyscall="./mksyscall_solaris.pl"
|
mksyscall="go run mksyscall_solaris.go"
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum=
|
mksysnum=
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
|
@ -191,6 +210,11 @@ esac
|
||||||
if [ "$GOOSARCH" == "aix_ppc64" ]; then
|
if [ "$GOOSARCH" == "aix_ppc64" ]; then
|
||||||
# aix/ppc64 script generates files instead of writing to stdin.
|
# aix/ppc64 script generates files instead of writing to stdin.
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
||||||
|
elif [ "$GOOS" == "darwin" ]; then
|
||||||
|
# pre-1.12, direct syscalls
|
||||||
|
echo "$mksyscall -tags $GOOS,$GOARCH,!go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.1_11.go";
|
||||||
|
# 1.12 and later, syscalls via libSystem
|
||||||
|
echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
||||||
else
|
else
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
||||||
fi
|
fi
|
||||||
|
@ -198,7 +222,6 @@ esac
|
||||||
esac
|
esac
|
||||||
if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
|
if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi
|
||||||
if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
|
if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
|
||||||
if [ -n "$mktypes" ]; then
|
if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi
|
||||||
echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go";
|
if [ -n "$mkasm" ]; then echo "$mkasm $GOARCH"; fi
|
||||||
fi
|
|
||||||
) | $run
|
) | $run
|
||||||
|
|
61
vendor/golang.org/x/sys/unix/mkasm_darwin.go
generated
vendored
Normal file
61
vendor/golang.org/x/sys/unix/mkasm_darwin.go
generated
vendored
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
// 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 ignore
|
||||||
|
|
||||||
|
// mkasm_darwin.go generates assembly trampolines to call libSystem routines from Go.
|
||||||
|
//This program must be run after mksyscall.go.
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
in1, err := ioutil.ReadFile("syscall_darwin.go")
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("can't open syscall_darwin.go: %s", err)
|
||||||
|
}
|
||||||
|
arch := os.Args[1]
|
||||||
|
in2, err := ioutil.ReadFile(fmt.Sprintf("syscall_darwin_%s.go", arch))
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("can't open syscall_darwin_%s.go: %s", arch, err)
|
||||||
|
}
|
||||||
|
in3, err := ioutil.ReadFile(fmt.Sprintf("zsyscall_darwin_%s.go", arch))
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("can't open zsyscall_darwin_%s.go: %s", arch, err)
|
||||||
|
}
|
||||||
|
in := string(in1) + string(in2) + string(in3)
|
||||||
|
|
||||||
|
trampolines := map[string]bool{}
|
||||||
|
|
||||||
|
var out bytes.Buffer
|
||||||
|
|
||||||
|
fmt.Fprintf(&out, "// go run mkasm_darwin.go %s\n", strings.Join(os.Args[1:], " "))
|
||||||
|
fmt.Fprintf(&out, "// Code generated by the command above; DO NOT EDIT.\n")
|
||||||
|
fmt.Fprintf(&out, "\n")
|
||||||
|
fmt.Fprintf(&out, "// +build go1.12\n")
|
||||||
|
fmt.Fprintf(&out, "\n")
|
||||||
|
fmt.Fprintf(&out, "#include \"textflag.h\"\n")
|
||||||
|
for _, line := range strings.Split(in, "\n") {
|
||||||
|
if !strings.HasPrefix(line, "func ") || !strings.HasSuffix(line, "_trampoline()") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
fn := line[5 : len(line)-13]
|
||||||
|
if !trampolines[fn] {
|
||||||
|
trampolines[fn] = true
|
||||||
|
fmt.Fprintf(&out, "TEXT ·%s_trampoline(SB),NOSPLIT,$0-0\n", fn)
|
||||||
|
fmt.Fprintf(&out, "\tJMP\t%s(SB)\n", fn)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err = ioutil.WriteFile(fmt.Sprintf("zsyscall_darwin_%s.s", arch), out.Bytes(), 0644)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("can't write zsyscall_darwin_%s.s: %s", arch, err)
|
||||||
|
}
|
||||||
|
}
|
35
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
35
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
|
@ -17,13 +17,11 @@ if test -z "$GOARCH" -o -z "$GOOS"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check that we are using the new build system if we should
|
# Check that we are using the new build system if we should
|
||||||
if [[ "$GOOS" = "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then
|
if [[ "$GOOS" = "linux" ]] && [[ "$GOLANG_SYS_BUILD" != "docker" ]]; then
|
||||||
if [[ "$GOLANG_SYS_BUILD" != "docker" ]]; then
|
echo 1>&2 "In the Docker based build system, mkerrors should not be called directly."
|
||||||
echo 1>&2 "In the new build system, mkerrors should not be called directly."
|
|
||||||
echo 1>&2 "See README.md"
|
echo 1>&2 "See README.md"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$GOOS" = "aix" ]]; then
|
if [[ "$GOOS" = "aix" ]]; then
|
||||||
CC=${CC:-gcc}
|
CC=${CC:-gcc}
|
||||||
|
@ -181,8 +179,10 @@ struct ltchars {
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <sys/signalfd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/xattr.h>
|
#include <sys/xattr.h>
|
||||||
|
#include <linux/errqueue.h>
|
||||||
#include <linux/if.h>
|
#include <linux/if.h>
|
||||||
#include <linux/if_alg.h>
|
#include <linux/if_alg.h>
|
||||||
#include <linux/if_arp.h>
|
#include <linux/if_arp.h>
|
||||||
|
@ -192,6 +192,7 @@ struct ltchars {
|
||||||
#include <linux/if_packet.h>
|
#include <linux/if_packet.h>
|
||||||
#include <linux/if_addr.h>
|
#include <linux/if_addr.h>
|
||||||
#include <linux/falloc.h>
|
#include <linux/falloc.h>
|
||||||
|
#include <linux/fanotify.h>
|
||||||
#include <linux/filter.h>
|
#include <linux/filter.h>
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <linux/kexec.h>
|
#include <linux/kexec.h>
|
||||||
|
@ -221,9 +222,18 @@ struct ltchars {
|
||||||
#include <linux/hdreg.h>
|
#include <linux/hdreg.h>
|
||||||
#include <linux/rtc.h>
|
#include <linux/rtc.h>
|
||||||
#include <linux/if_xdp.h>
|
#include <linux/if_xdp.h>
|
||||||
|
#include <linux/cryptouser.h>
|
||||||
#include <mtd/ubi-user.h>
|
#include <mtd/ubi-user.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
|
|
||||||
|
#if defined(__sparc__)
|
||||||
|
// On sparc{,64}, the kernel defines struct termios2 itself which clashes with the
|
||||||
|
// definition in glibc. As only the error constants are needed here, include the
|
||||||
|
// generic termibits.h (which is included by termbits.h on sparc).
|
||||||
|
#include <asm-generic/termbits.h>
|
||||||
|
#else
|
||||||
#include <asm/termbits.h>
|
#include <asm/termbits.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef MSG_FASTOPEN
|
#ifndef MSG_FASTOPEN
|
||||||
#define MSG_FASTOPEN 0x20000000
|
#define MSG_FASTOPEN 0x20000000
|
||||||
|
@ -251,16 +261,6 @@ struct ltchars {
|
||||||
#define FS_KEY_DESC_PREFIX "fscrypt:"
|
#define FS_KEY_DESC_PREFIX "fscrypt:"
|
||||||
#define FS_KEY_DESC_PREFIX_SIZE 8
|
#define FS_KEY_DESC_PREFIX_SIZE 8
|
||||||
#define FS_MAX_KEY_SIZE 64
|
#define FS_MAX_KEY_SIZE 64
|
||||||
|
|
||||||
// XDP socket constants do not appear to be picked up otherwise.
|
|
||||||
// Copied from samples/bpf/xdpsock_user.c.
|
|
||||||
#ifndef SOL_XDP
|
|
||||||
#define SOL_XDP 283
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef AF_XDP
|
|
||||||
#define AF_XDP 44
|
|
||||||
#endif
|
|
||||||
'
|
'
|
||||||
|
|
||||||
includes_NetBSD='
|
includes_NetBSD='
|
||||||
|
@ -447,7 +447,7 @@ ccflags="$@"
|
||||||
$2 !~ "MNT_BITS" &&
|
$2 !~ "MNT_BITS" &&
|
||||||
$2 ~ /^(MS|MNT|UMOUNT)_/ ||
|
$2 ~ /^(MS|MNT|UMOUNT)_/ ||
|
||||||
$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
|
$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
|
||||||
$2 ~ /^(O|F|E?FD|NAME|S|PTRACE|PT)_/ ||
|
$2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ ||
|
||||||
$2 ~ /^KEXEC_/ ||
|
$2 ~ /^KEXEC_/ ||
|
||||||
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
||||||
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
||||||
|
@ -468,12 +468,13 @@ ccflags="$@"
|
||||||
$2 ~ /^CLONE_[A-Z_]+/ ||
|
$2 ~ /^CLONE_[A-Z_]+/ ||
|
||||||
$2 !~ /^(BPF_TIMEVAL)$/ &&
|
$2 !~ /^(BPF_TIMEVAL)$/ &&
|
||||||
$2 ~ /^(BPF|DLT)_/ ||
|
$2 ~ /^(BPF|DLT)_/ ||
|
||||||
$2 ~ /^CLOCK_/ ||
|
$2 ~ /^(CLOCK|TIMER)_/ ||
|
||||||
$2 ~ /^CAN_/ ||
|
$2 ~ /^CAN_/ ||
|
||||||
$2 ~ /^CAP_/ ||
|
$2 ~ /^CAP_/ ||
|
||||||
$2 ~ /^ALG_/ ||
|
$2 ~ /^ALG_/ ||
|
||||||
$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ ||
|
$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ ||
|
||||||
$2 ~ /^GRND_/ ||
|
$2 ~ /^GRND_/ ||
|
||||||
|
$2 ~ /^RND/ ||
|
||||||
$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
|
$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
|
||||||
$2 ~ /^KEYCTL_/ ||
|
$2 ~ /^KEYCTL_/ ||
|
||||||
$2 ~ /^PERF_EVENT_IOC_/ ||
|
$2 ~ /^PERF_EVENT_IOC_/ ||
|
||||||
|
@ -499,9 +500,11 @@ ccflags="$@"
|
||||||
$2 ~ /^NFN/ ||
|
$2 ~ /^NFN/ ||
|
||||||
$2 ~ /^XDP_/ ||
|
$2 ~ /^XDP_/ ||
|
||||||
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
||||||
|
$2 ~ /^CRYPTO_/ ||
|
||||||
$2 !~ "WMESGLEN" &&
|
$2 !~ "WMESGLEN" &&
|
||||||
$2 ~ /^W[A-Z0-9]+$/ ||
|
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||||
$2 ~/^PPPIOC/ ||
|
$2 ~/^PPPIOC/ ||
|
||||||
|
$2 ~ /^FAN_|FANOTIFY_/ ||
|
||||||
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
||||||
$2 ~ /^__WCOREFLAG$/ {next}
|
$2 ~ /^__WCOREFLAG$/ {next}
|
||||||
$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
|
$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
|
||||||
|
|
6
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
6
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
|
@ -28,10 +28,10 @@ func main() {
|
||||||
if goarch == "" {
|
if goarch == "" {
|
||||||
goarch = os.Getenv("GOARCH")
|
goarch = os.Getenv("GOARCH")
|
||||||
}
|
}
|
||||||
// Check that we are using the new build system if we should be.
|
// Check that we are using the Docker-based build system if we should be.
|
||||||
if goos == "linux" && goarch != "sparc64" {
|
if goos == "linux" {
|
||||||
if os.Getenv("GOLANG_SYS_BUILD") != "docker" {
|
if os.Getenv("GOLANG_SYS_BUILD") != "docker" {
|
||||||
os.Stderr.WriteString("In the new build system, mkpost should not be called directly.\n")
|
os.Stderr.WriteString("In the Docker-based build system, mkpost should not be called directly.\n")
|
||||||
os.Stderr.WriteString("See README.md\n")
|
os.Stderr.WriteString("See README.md\n")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
48
vendor/golang.org/x/sys/unix/mksyscall.go
generated
vendored
48
vendor/golang.org/x/sys/unix/mksyscall.go
generated
vendored
|
@ -88,15 +88,19 @@ func parseParam(p string) Param {
|
||||||
func main() {
|
func main() {
|
||||||
// Get the OS and architecture (using GOARCH_TARGET if it exists)
|
// Get the OS and architecture (using GOARCH_TARGET if it exists)
|
||||||
goos := os.Getenv("GOOS")
|
goos := os.Getenv("GOOS")
|
||||||
|
if goos == "" {
|
||||||
|
fmt.Fprintln(os.Stderr, "GOOS not defined in environment")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
goarch := os.Getenv("GOARCH_TARGET")
|
goarch := os.Getenv("GOARCH_TARGET")
|
||||||
if goarch == "" {
|
if goarch == "" {
|
||||||
goarch = os.Getenv("GOARCH")
|
goarch = os.Getenv("GOARCH")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that we are using the new build system if we should
|
// Check that we are using the Docker-based build system if we should
|
||||||
if goos == "linux" && goarch != "sparc64" {
|
if goos == "linux" {
|
||||||
if os.Getenv("GOLANG_SYS_BUILD") != "docker" {
|
if os.Getenv("GOLANG_SYS_BUILD") != "docker" {
|
||||||
fmt.Fprintf(os.Stderr, "In the new build system, mksyscall should not be called directly.\n")
|
fmt.Fprintf(os.Stderr, "In the Docker-based build system, mksyscall should not be called directly.\n")
|
||||||
fmt.Fprintf(os.Stderr, "See README.md\n")
|
fmt.Fprintf(os.Stderr, "See README.md\n")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
@ -116,6 +120,12 @@ func main() {
|
||||||
endianness = "little-endian"
|
endianness = "little-endian"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
libc := false
|
||||||
|
if goos == "darwin" && strings.Contains(buildTags(), ",go1.12") {
|
||||||
|
libc = true
|
||||||
|
}
|
||||||
|
trampolines := map[string]bool{}
|
||||||
|
|
||||||
text := ""
|
text := ""
|
||||||
for _, path := range flag.Args() {
|
for _, path := range flag.Args() {
|
||||||
file, err := os.Open(path)
|
file, err := os.Open(path)
|
||||||
|
@ -143,6 +153,11 @@ func main() {
|
||||||
}
|
}
|
||||||
funct, inps, outps, sysname := f[2], f[3], f[4], f[5]
|
funct, inps, outps, sysname := f[2], f[3], f[4], f[5]
|
||||||
|
|
||||||
|
// ClockGettime doesn't have a syscall number on Darwin, only generate libc wrappers.
|
||||||
|
if goos == "darwin" && !libc && funct == "ClockGettime" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Split argument lists on comma.
|
// Split argument lists on comma.
|
||||||
in := parseParamList(inps)
|
in := parseParamList(inps)
|
||||||
out := parseParamList(outps)
|
out := parseParamList(outps)
|
||||||
|
@ -218,7 +233,7 @@ func main() {
|
||||||
} else {
|
} else {
|
||||||
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
}
|
}
|
||||||
} else if p.Type == "int64" && endianness != "" {
|
} else if (p.Type == "int64" || p.Type == "uint64") && endianness != "" {
|
||||||
if len(args)%2 == 1 && *arm {
|
if len(args)%2 == 1 && *arm {
|
||||||
// arm abi specifies 64-bit argument uses
|
// arm abi specifies 64-bit argument uses
|
||||||
// (even, odd) pair
|
// (even, odd) pair
|
||||||
|
@ -272,6 +287,20 @@ func main() {
|
||||||
sysname = strings.ToUpper(sysname)
|
sysname = strings.ToUpper(sysname)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var libcFn string
|
||||||
|
if libc {
|
||||||
|
asm = "syscall_" + strings.ToLower(asm[:1]) + asm[1:] // internal syscall call
|
||||||
|
sysname = strings.TrimPrefix(sysname, "SYS_") // remove SYS_
|
||||||
|
sysname = strings.ToLower(sysname) // lowercase
|
||||||
|
if sysname == "getdirentries64" {
|
||||||
|
// Special case - libSystem name and
|
||||||
|
// raw syscall name don't match.
|
||||||
|
sysname = "__getdirentries64"
|
||||||
|
}
|
||||||
|
libcFn = sysname
|
||||||
|
sysname = "funcPC(libc_" + sysname + "_trampoline)"
|
||||||
|
}
|
||||||
|
|
||||||
// Actual call.
|
// Actual call.
|
||||||
arglist := strings.Join(args, ", ")
|
arglist := strings.Join(args, ", ")
|
||||||
call := fmt.Sprintf("%s(%s, %s)", asm, sysname, arglist)
|
call := fmt.Sprintf("%s(%s, %s)", asm, sysname, arglist)
|
||||||
|
@ -339,6 +368,17 @@ func main() {
|
||||||
text += "\treturn\n"
|
text += "\treturn\n"
|
||||||
text += "}\n\n"
|
text += "}\n\n"
|
||||||
|
|
||||||
|
if libc && !trampolines[libcFn] {
|
||||||
|
// some system calls share a trampoline, like read and readlen.
|
||||||
|
trampolines[libcFn] = true
|
||||||
|
// Declare assembly trampoline.
|
||||||
|
text += fmt.Sprintf("func libc_%s_trampoline()\n", libcFn)
|
||||||
|
// Assembly trampoline calls the libc_* function, which this magic
|
||||||
|
// redirects to use the function from libSystem.
|
||||||
|
text += fmt.Sprintf("//go:linkname libc_%s libc_%s\n", libcFn, libcFn)
|
||||||
|
text += fmt.Sprintf("//go:cgo_import_dynamic libc_%s %s \"/usr/lib/libSystem.B.dylib\"\n", libcFn, libcFn)
|
||||||
|
text += "\n"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if err := s.Err(); err != nil {
|
if err := s.Err(); err != nil {
|
||||||
fmt.Fprintf(os.Stderr, err.Error())
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
|
415
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.go
generated
vendored
Normal file
415
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.go
generated
vendored
Normal file
|
@ -0,0 +1,415 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
/*
|
||||||
|
This program reads a file containing function prototypes
|
||||||
|
(like syscall_aix.go) and generates system call bodies.
|
||||||
|
The prototypes are marked by lines beginning with "//sys"
|
||||||
|
and read like func declarations if //sys is replaced by func, but:
|
||||||
|
* The parameter lists must give a name for each argument.
|
||||||
|
This includes return parameters.
|
||||||
|
* The parameter lists must give a type for each argument:
|
||||||
|
the (x, y, z int) shorthand is not allowed.
|
||||||
|
* If the return parameter is an error number, it must be named err.
|
||||||
|
* If go func name needs to be different than its libc name,
|
||||||
|
* or the function is not in libc, name could be specified
|
||||||
|
* at the end, after "=" sign, like
|
||||||
|
//sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
||||||
|
*/
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
b32 = flag.Bool("b32", false, "32bit big-endian")
|
||||||
|
l32 = flag.Bool("l32", false, "32bit little-endian")
|
||||||
|
aix = flag.Bool("aix", false, "aix")
|
||||||
|
tags = flag.String("tags", "", "build tags")
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksyscall_aix_ppc.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return *tags
|
||||||
|
}
|
||||||
|
|
||||||
|
// Param is function parameter
|
||||||
|
type Param struct {
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
|
||||||
|
// usage prints the program usage
|
||||||
|
func usage() {
|
||||||
|
fmt.Fprintf(os.Stderr, "usage: go run mksyscall_aix_ppc.go [-b32 | -l32] [-tags x,y] [file ...]\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParamList parses parameter list and returns a slice of parameters
|
||||||
|
func parseParamList(list string) []string {
|
||||||
|
list = strings.TrimSpace(list)
|
||||||
|
if list == "" {
|
||||||
|
return []string{}
|
||||||
|
}
|
||||||
|
return regexp.MustCompile(`\s*,\s*`).Split(list, -1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParam splits a parameter into name and type
|
||||||
|
func parseParam(p string) Param {
|
||||||
|
ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p)
|
||||||
|
if ps == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
return Param{ps[1], ps[2]}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
flag.Usage = usage
|
||||||
|
flag.Parse()
|
||||||
|
if len(flag.Args()) <= 0 {
|
||||||
|
fmt.Fprintf(os.Stderr, "no files to parse provided\n")
|
||||||
|
usage()
|
||||||
|
}
|
||||||
|
|
||||||
|
endianness := ""
|
||||||
|
if *b32 {
|
||||||
|
endianness = "big-endian"
|
||||||
|
} else if *l32 {
|
||||||
|
endianness = "little-endian"
|
||||||
|
}
|
||||||
|
|
||||||
|
pack := ""
|
||||||
|
text := ""
|
||||||
|
cExtern := "/*\n#include <stdint.h>\n#include <stddef.h>\n"
|
||||||
|
for _, path := range flag.Args() {
|
||||||
|
file, err := os.Open(path)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
t := s.Text()
|
||||||
|
t = strings.TrimSpace(t)
|
||||||
|
t = regexp.MustCompile(`\s+`).ReplaceAllString(t, ` `)
|
||||||
|
if p := regexp.MustCompile(`^package (\S+)$`).FindStringSubmatch(t); p != nil && pack == "" {
|
||||||
|
pack = p[1]
|
||||||
|
}
|
||||||
|
nonblock := regexp.MustCompile(`^\/\/sysnb `).FindStringSubmatch(t)
|
||||||
|
if regexp.MustCompile(`^\/\/sys `).FindStringSubmatch(t) == nil && nonblock == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Line must be of the form
|
||||||
|
// func Open(path string, mode int, perm int) (fd int, err error)
|
||||||
|
// Split into name, in params, out params.
|
||||||
|
f := regexp.MustCompile(`^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$`).FindStringSubmatch(t)
|
||||||
|
if f == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
funct, inps, outps, modname, sysname := f[2], f[3], f[4], f[5], f[6]
|
||||||
|
|
||||||
|
// Split argument lists on comma.
|
||||||
|
in := parseParamList(inps)
|
||||||
|
out := parseParamList(outps)
|
||||||
|
|
||||||
|
inps = strings.Join(in, ", ")
|
||||||
|
outps = strings.Join(out, ", ")
|
||||||
|
|
||||||
|
// Try in vain to keep people from editing this file.
|
||||||
|
// The theory is that they jump into the middle of the file
|
||||||
|
// without reading the header.
|
||||||
|
text += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
|
||||||
|
// Check if value return, err return available
|
||||||
|
errvar := ""
|
||||||
|
retvar := ""
|
||||||
|
rettype := ""
|
||||||
|
for _, param := range out {
|
||||||
|
p := parseParam(param)
|
||||||
|
if p.Type == "error" {
|
||||||
|
errvar = p.Name
|
||||||
|
} else {
|
||||||
|
retvar = p.Name
|
||||||
|
rettype = p.Type
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// System call name.
|
||||||
|
if sysname == "" {
|
||||||
|
sysname = funct
|
||||||
|
}
|
||||||
|
sysname = regexp.MustCompile(`([a-z])([A-Z])`).ReplaceAllString(sysname, `${1}_$2`)
|
||||||
|
sysname = strings.ToLower(sysname) // All libc functions are lowercase.
|
||||||
|
|
||||||
|
cRettype := ""
|
||||||
|
if rettype == "unsafe.Pointer" {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if rettype == "uintptr" {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(rettype) != nil {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if rettype == "int" {
|
||||||
|
cRettype = "int"
|
||||||
|
} else if rettype == "int32" {
|
||||||
|
cRettype = "int"
|
||||||
|
} else if rettype == "int64" {
|
||||||
|
cRettype = "long long"
|
||||||
|
} else if rettype == "uint32" {
|
||||||
|
cRettype = "unsigned int"
|
||||||
|
} else if rettype == "uint64" {
|
||||||
|
cRettype = "unsigned long long"
|
||||||
|
} else {
|
||||||
|
cRettype = "int"
|
||||||
|
}
|
||||||
|
if sysname == "exit" {
|
||||||
|
cRettype = "void"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Change p.Types to c
|
||||||
|
var cIn []string
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t", "size_t")
|
||||||
|
} else if p.Type == "unsafe.Pointer" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "uintptr" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "int" {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
} else if p.Type == "int32" {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
} else if p.Type == "int64" {
|
||||||
|
cIn = append(cIn, "long long")
|
||||||
|
} else if p.Type == "uint32" {
|
||||||
|
cIn = append(cIn, "unsigned int")
|
||||||
|
} else if p.Type == "uint64" {
|
||||||
|
cIn = append(cIn, "unsigned long long")
|
||||||
|
} else {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if funct != "fcntl" && funct != "FcntlInt" && funct != "readlen" && funct != "writelen" {
|
||||||
|
if sysname == "select" {
|
||||||
|
// select is a keyword of Go. Its name is
|
||||||
|
// changed to c_select.
|
||||||
|
cExtern += "#define c_select select\n"
|
||||||
|
}
|
||||||
|
// Imports of system calls from libc
|
||||||
|
cExtern += fmt.Sprintf("%s %s", cRettype, sysname)
|
||||||
|
cIn := strings.Join(cIn, ", ")
|
||||||
|
cExtern += fmt.Sprintf("(%s);\n", cIn)
|
||||||
|
}
|
||||||
|
|
||||||
|
// So file name.
|
||||||
|
if *aix {
|
||||||
|
if modname == "" {
|
||||||
|
modname = "libc.a/shr_64.o"
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: only syscall using libc are available\n", funct)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
strconvfunc := "C.CString"
|
||||||
|
|
||||||
|
// Go function header.
|
||||||
|
if outps != "" {
|
||||||
|
outps = fmt.Sprintf(" (%s)", outps)
|
||||||
|
}
|
||||||
|
if text != "" {
|
||||||
|
text += "\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
text += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outps)
|
||||||
|
|
||||||
|
// Prepare arguments to Syscall.
|
||||||
|
var args []string
|
||||||
|
n := 0
|
||||||
|
argN := 0
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
args = append(args, "C.uintptr_t(uintptr(unsafe.Pointer("+p.Name+")))")
|
||||||
|
} else if p.Type == "string" && errvar != "" {
|
||||||
|
text += fmt.Sprintf("\t_p%d := uintptr(unsafe.Pointer(%s(%s)))\n", n, strconvfunc, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n")
|
||||||
|
text += fmt.Sprintf("\t_p%d := uintptr(unsafe.Pointer(%s(%s)))\n", n, strconvfunc, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if m := regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type); m != nil {
|
||||||
|
// Convert slice into pointer, length.
|
||||||
|
// Have to be careful not to take address of &a[0] if len == 0:
|
||||||
|
// pass nil in that case.
|
||||||
|
text += fmt.Sprintf("\tvar _p%d *%s\n", n, m[1])
|
||||||
|
text += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = &%s[0]\n\t}\n", p.Name, n, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(uintptr(unsafe.Pointer(_p%d)))", n))
|
||||||
|
n++
|
||||||
|
text += fmt.Sprintf("\tvar _p%d int\n", n)
|
||||||
|
text += fmt.Sprintf("\t_p%d = len(%s)\n", n, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("C.size_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "int64" && endianness != "" {
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s>>32)", p.Name), fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name), fmt.Sprintf("uintptr(%s>>32)", p.Name))
|
||||||
|
}
|
||||||
|
n++
|
||||||
|
} else if p.Type == "bool" {
|
||||||
|
text += fmt.Sprintf("\tvar _p%d uint32\n", n)
|
||||||
|
text += fmt.Sprintf("\tif %s {\n\t\t_p%d = 1\n\t} else {\n\t\t_p%d = 0\n\t}\n", p.Name, n, n)
|
||||||
|
args = append(args, fmt.Sprintf("_p%d", n))
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(uintptr(%s))", p.Name))
|
||||||
|
} else if p.Type == "unsafe.Pointer" {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(uintptr(%s))", p.Name))
|
||||||
|
} else if p.Type == "int" {
|
||||||
|
if (argN == 2) && ((funct == "readlen") || (funct == "writelen")) {
|
||||||
|
args = append(args, fmt.Sprintf("C.size_t(%s)", p.Name))
|
||||||
|
} else if argN == 0 && funct == "fcntl" {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else if (argN == 2) && ((funct == "fcntl") || (funct == "FcntlInt")) {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
}
|
||||||
|
} else if p.Type == "int32" {
|
||||||
|
args = append(args, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
} else if p.Type == "int64" {
|
||||||
|
args = append(args, fmt.Sprintf("C.longlong(%s)", p.Name))
|
||||||
|
} else if p.Type == "uint32" {
|
||||||
|
args = append(args, fmt.Sprintf("C.uint(%s)", p.Name))
|
||||||
|
} else if p.Type == "uint64" {
|
||||||
|
args = append(args, fmt.Sprintf("C.ulonglong(%s)", p.Name))
|
||||||
|
} else if p.Type == "uintptr" {
|
||||||
|
args = append(args, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
}
|
||||||
|
argN++
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actual call.
|
||||||
|
arglist := strings.Join(args, ", ")
|
||||||
|
call := ""
|
||||||
|
if sysname == "exit" {
|
||||||
|
if errvar != "" {
|
||||||
|
call += "er :="
|
||||||
|
} else {
|
||||||
|
call += ""
|
||||||
|
}
|
||||||
|
} else if errvar != "" {
|
||||||
|
call += "r0,er :="
|
||||||
|
} else if retvar != "" {
|
||||||
|
call += "r0,_ :="
|
||||||
|
} else {
|
||||||
|
call += ""
|
||||||
|
}
|
||||||
|
if sysname == "select" {
|
||||||
|
// select is a keyword of Go. Its name is
|
||||||
|
// changed to c_select.
|
||||||
|
call += fmt.Sprintf("C.c_%s(%s)", sysname, arglist)
|
||||||
|
} else {
|
||||||
|
call += fmt.Sprintf("C.%s(%s)", sysname, arglist)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Assign return values.
|
||||||
|
body := ""
|
||||||
|
for i := 0; i < len(out); i++ {
|
||||||
|
p := parseParam(out[i])
|
||||||
|
reg := ""
|
||||||
|
if p.Name == "err" {
|
||||||
|
reg = "e1"
|
||||||
|
} else {
|
||||||
|
reg = "r0"
|
||||||
|
}
|
||||||
|
if reg != "e1" {
|
||||||
|
body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// verify return
|
||||||
|
if sysname != "exit" && errvar != "" {
|
||||||
|
if regexp.MustCompile(`^uintptr`).FindStringSubmatch(cRettype) != nil {
|
||||||
|
body += "\tif (uintptr(r0) ==^uintptr(0) && er != nil) {\n"
|
||||||
|
body += fmt.Sprintf("\t\t%s = er\n", errvar)
|
||||||
|
body += "\t}\n"
|
||||||
|
} else {
|
||||||
|
body += "\tif (r0 ==-1 && er != nil) {\n"
|
||||||
|
body += fmt.Sprintf("\t\t%s = er\n", errvar)
|
||||||
|
body += "\t}\n"
|
||||||
|
}
|
||||||
|
} else if errvar != "" {
|
||||||
|
body += "\tif (er != nil) {\n"
|
||||||
|
body += fmt.Sprintf("\t\t%s = er\n", errvar)
|
||||||
|
body += "\t}\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
text += fmt.Sprintf("\t%s\n", call)
|
||||||
|
text += body
|
||||||
|
|
||||||
|
text += "\treturn\n"
|
||||||
|
text += "}\n"
|
||||||
|
}
|
||||||
|
if err := s.Err(); err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
imp := ""
|
||||||
|
if pack != "unix" {
|
||||||
|
imp = "import \"golang.org/x/sys/unix\"\n"
|
||||||
|
|
||||||
|
}
|
||||||
|
fmt.Printf(srcTemplate, cmdLine(), buildTags(), pack, cExtern, imp, text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
|
||||||
|
%s
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
%s
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
384
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.pl
generated
vendored
384
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.pl
generated
vendored
|
@ -1,384 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# This program reads a file containing function prototypes
|
|
||||||
# (like syscall_aix.go) and generates system call bodies.
|
|
||||||
# The prototypes are marked by lines beginning with "//sys"
|
|
||||||
# and read like func declarations if //sys is replaced by func, but:
|
|
||||||
# * The parameter lists must give a name for each argument.
|
|
||||||
# This includes return parameters.
|
|
||||||
# * The parameter lists must give a type for each argument:
|
|
||||||
# the (x, y, z int) shorthand is not allowed.
|
|
||||||
# * If the return parameter is an error number, it must be named err.
|
|
||||||
# * If go func name needs to be different than its libc name,
|
|
||||||
# * or the function is not in libc, name could be specified
|
|
||||||
# * at the end, after "=" sign, like
|
|
||||||
# //sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
my $cmdline = "mksyscall_aix_ppc.pl " . join(' ', @ARGV);
|
|
||||||
my $errors = 0;
|
|
||||||
my $_32bit = "";
|
|
||||||
my $tags = ""; # build tags
|
|
||||||
my $aix = 0;
|
|
||||||
my $solaris = 0;
|
|
||||||
|
|
||||||
binmode STDOUT;
|
|
||||||
|
|
||||||
if($ARGV[0] eq "-b32") {
|
|
||||||
$_32bit = "big-endian";
|
|
||||||
shift;
|
|
||||||
} elsif($ARGV[0] eq "-l32") {
|
|
||||||
$_32bit = "little-endian";
|
|
||||||
shift;
|
|
||||||
}
|
|
||||||
if($ARGV[0] eq "-aix") {
|
|
||||||
$aix = 1;
|
|
||||||
shift;
|
|
||||||
}
|
|
||||||
if($ARGV[0] eq "-tags") {
|
|
||||||
shift;
|
|
||||||
$tags = $ARGV[0];
|
|
||||||
shift;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($ARGV[0] =~ /^-/) {
|
|
||||||
print STDERR "usage: mksyscall_aix.pl [-b32 | -l32] [-tags x,y] [file ...]\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub parseparamlist($) {
|
|
||||||
my ($list) = @_;
|
|
||||||
$list =~ s/^\s*//;
|
|
||||||
$list =~ s/\s*$//;
|
|
||||||
if($list eq "") {
|
|
||||||
return ();
|
|
||||||
}
|
|
||||||
return split(/\s*,\s*/, $list);
|
|
||||||
}
|
|
||||||
|
|
||||||
sub parseparam($) {
|
|
||||||
my ($p) = @_;
|
|
||||||
if($p !~ /^(\S*) (\S*)$/) {
|
|
||||||
print STDERR "$ARGV:$.: malformed parameter: $p\n";
|
|
||||||
$errors = 1;
|
|
||||||
return ("xx", "int");
|
|
||||||
}
|
|
||||||
return ($1, $2);
|
|
||||||
}
|
|
||||||
|
|
||||||
my $package = "";
|
|
||||||
my $text = "";
|
|
||||||
my $c_extern = "/*\n#include <stdint.h>\n#include <stddef.h>\n";
|
|
||||||
my @vars = ();
|
|
||||||
while(<>) {
|
|
||||||
chomp;
|
|
||||||
s/\s+/ /g;
|
|
||||||
s/^\s+//;
|
|
||||||
s/\s+$//;
|
|
||||||
$package = $1 if !$package && /^package (\S+)$/;
|
|
||||||
my $nonblock = /^\/\/sysnb /;
|
|
||||||
next if !/^\/\/sys / && !$nonblock;
|
|
||||||
|
|
||||||
# Line must be of the form
|
|
||||||
# func Open(path string, mode int, perm int) (fd int, err error)
|
|
||||||
# Split into name, in params, out params.
|
|
||||||
if(!/^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$/) {
|
|
||||||
print STDERR "$ARGV:$.: malformed //sys declaration\n";
|
|
||||||
$errors = 1;
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
my ($nb, $func, $in, $out, $modname, $sysname) = ($1, $2, $3, $4, $5, $6);
|
|
||||||
|
|
||||||
# Split argument lists on comma.
|
|
||||||
my @in = parseparamlist($in);
|
|
||||||
my @out = parseparamlist($out);
|
|
||||||
|
|
||||||
$in = join(', ', @in);
|
|
||||||
$out = join(', ', @out);
|
|
||||||
|
|
||||||
# Try in vain to keep people from editing this file.
|
|
||||||
# The theory is that they jump into the middle of the file
|
|
||||||
# without reading the header.
|
|
||||||
$text .= "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n";
|
|
||||||
|
|
||||||
# Check if value return, err return available
|
|
||||||
my $errvar = "";
|
|
||||||
my $retvar = "";
|
|
||||||
my $rettype = "";
|
|
||||||
foreach my $p (@out) {
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
if($type eq "error") {
|
|
||||||
$errvar = $name;
|
|
||||||
} else {
|
|
||||||
$retvar = $name;
|
|
||||||
$rettype = $type;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# System call name.
|
|
||||||
#if($func ne "fcntl") {
|
|
||||||
|
|
||||||
if($sysname eq "") {
|
|
||||||
$sysname = "$func";
|
|
||||||
}
|
|
||||||
|
|
||||||
$sysname =~ s/([a-z])([A-Z])/${1}_$2/g;
|
|
||||||
$sysname =~ y/A-Z/a-z/; # All libc functions are lowercase.
|
|
||||||
|
|
||||||
my $C_rettype = "";
|
|
||||||
if($rettype eq "unsafe.Pointer") {
|
|
||||||
$C_rettype = "uintptr_t";
|
|
||||||
} elsif($rettype eq "uintptr") {
|
|
||||||
$C_rettype = "uintptr_t";
|
|
||||||
} elsif($rettype =~ /^_/) {
|
|
||||||
$C_rettype = "uintptr_t";
|
|
||||||
} elsif($rettype eq "int") {
|
|
||||||
$C_rettype = "int";
|
|
||||||
} elsif($rettype eq "int32") {
|
|
||||||
$C_rettype = "int";
|
|
||||||
} elsif($rettype eq "int64") {
|
|
||||||
$C_rettype = "long long";
|
|
||||||
} elsif($rettype eq "uint32") {
|
|
||||||
$C_rettype = "unsigned int";
|
|
||||||
} elsif($rettype eq "uint64") {
|
|
||||||
$C_rettype = "unsigned long long";
|
|
||||||
} else {
|
|
||||||
$C_rettype = "int";
|
|
||||||
}
|
|
||||||
if($sysname eq "exit") {
|
|
||||||
$C_rettype = "void";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Change types to c
|
|
||||||
my @c_in = ();
|
|
||||||
foreach my $p (@in) {
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
if($type =~ /^\*/) {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type eq "string") {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type =~ /^\[\](.*)/) {
|
|
||||||
push @c_in, "uintptr_t", "size_t";
|
|
||||||
} elsif($type eq "unsafe.Pointer") {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type eq "uintptr") {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type =~ /^_/) {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type eq "int") {
|
|
||||||
push @c_in, "int";
|
|
||||||
} elsif($type eq "int32") {
|
|
||||||
push @c_in, "int";
|
|
||||||
} elsif($type eq "int64") {
|
|
||||||
push @c_in, "long long";
|
|
||||||
} elsif($type eq "uint32") {
|
|
||||||
push @c_in, "unsigned int";
|
|
||||||
} elsif($type eq "uint64") {
|
|
||||||
push @c_in, "unsigned long long";
|
|
||||||
} else {
|
|
||||||
push @c_in, "int";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($func ne "fcntl" && $func ne "FcntlInt" && $func ne "readlen" && $func ne "writelen") {
|
|
||||||
# Imports of system calls from libc
|
|
||||||
$c_extern .= "$C_rettype $sysname";
|
|
||||||
my $c_in = join(', ', @c_in);
|
|
||||||
$c_extern .= "($c_in);\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
# So file name.
|
|
||||||
if($aix) {
|
|
||||||
if($modname eq "") {
|
|
||||||
$modname = "libc.a/shr_64.o";
|
|
||||||
} else {
|
|
||||||
print STDERR "$func: only syscall using libc are available\n";
|
|
||||||
$errors = 1;
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
my $strconvfunc = "C.CString";
|
|
||||||
my $strconvtype = "*byte";
|
|
||||||
|
|
||||||
# Go function header.
|
|
||||||
if($out ne "") {
|
|
||||||
$out = " ($out)";
|
|
||||||
}
|
|
||||||
if($text ne "") {
|
|
||||||
$text .= "\n"
|
|
||||||
}
|
|
||||||
|
|
||||||
$text .= sprintf "func %s(%s)%s {\n", $func, join(', ', @in), $out ;
|
|
||||||
|
|
||||||
# Prepare arguments to call.
|
|
||||||
my @args = ();
|
|
||||||
my $n = 0;
|
|
||||||
my $arg_n = 0;
|
|
||||||
foreach my $p (@in) {
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
if($type =~ /^\*/) {
|
|
||||||
push @args, "C.uintptr_t(uintptr(unsafe.Pointer($name)))";
|
|
||||||
} elsif($type eq "string" && $errvar ne "") {
|
|
||||||
$text .= "\t_p$n := uintptr(unsafe.Pointer($strconvfunc($name)))\n";
|
|
||||||
push @args, "C.uintptr_t(_p$n)";
|
|
||||||
$n++;
|
|
||||||
} elsif($type eq "string") {
|
|
||||||
print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
|
|
||||||
$text .= "\t_p$n := uintptr(unsafe.Pointer($strconvfunc($name)))\n";
|
|
||||||
push @args, "C.uintptr_t(_p$n)";
|
|
||||||
$n++;
|
|
||||||
} elsif($type =~ /^\[\](.*)/) {
|
|
||||||
# Convert slice into pointer, length.
|
|
||||||
# Have to be careful not to take address of &a[0] if len == 0:
|
|
||||||
# pass nil in that case.
|
|
||||||
$text .= "\tvar _p$n *$1\n";
|
|
||||||
$text .= "\tif len($name) > 0 {\n\t\t_p$n = \&$name\[0]\n\t}\n";
|
|
||||||
push @args, "C.uintptr_t(uintptr(unsafe.Pointer(_p$n)))";
|
|
||||||
$n++;
|
|
||||||
$text .= "\tvar _p$n int\n";
|
|
||||||
$text .= "\t_p$n = len($name)\n";
|
|
||||||
push @args, "C.size_t(_p$n)";
|
|
||||||
$n++;
|
|
||||||
} elsif($type eq "int64" && $_32bit ne "") {
|
|
||||||
if($_32bit eq "big-endian") {
|
|
||||||
push @args, "uintptr($name >> 32)", "uintptr($name)";
|
|
||||||
} else {
|
|
||||||
push @args, "uintptr($name)", "uintptr($name >> 32)";
|
|
||||||
}
|
|
||||||
$n++;
|
|
||||||
} elsif($type eq "bool") {
|
|
||||||
$text .= "\tvar _p$n uint32\n";
|
|
||||||
$text .= "\tif $name {\n\t\t_p$n = 1\n\t} else {\n\t\t_p$n = 0\n\t}\n";
|
|
||||||
push @args, "_p$n";
|
|
||||||
$n++;
|
|
||||||
} elsif($type =~ /^_/) {
|
|
||||||
push @args, "C.uintptr_t(uintptr($name))";
|
|
||||||
} elsif($type eq "unsafe.Pointer") {
|
|
||||||
push @args, "C.uintptr_t(uintptr($name))";
|
|
||||||
} elsif($type eq "int") {
|
|
||||||
if (($arg_n == 2) && (($func eq "readlen") || ($func eq "writelen"))) {
|
|
||||||
push @args, "C.size_t($name)";
|
|
||||||
} elsif ($arg_n == 0 && $func eq "fcntl") {
|
|
||||||
push @args, "C.uintptr_t($name)";
|
|
||||||
} elsif (($arg_n == 2) && (($func eq "fcntl") || ($func eq "FcntlInt"))) {
|
|
||||||
push @args, "C.uintptr_t($name)";
|
|
||||||
} else {
|
|
||||||
push @args, "C.int($name)";
|
|
||||||
}
|
|
||||||
} elsif($type eq "int32") {
|
|
||||||
push @args, "C.int($name)";
|
|
||||||
} elsif($type eq "int64") {
|
|
||||||
push @args, "C.longlong($name)";
|
|
||||||
} elsif($type eq "uint32") {
|
|
||||||
push @args, "C.uint($name)";
|
|
||||||
} elsif($type eq "uint64") {
|
|
||||||
push @args, "C.ulonglong($name)";
|
|
||||||
} elsif($type eq "uintptr") {
|
|
||||||
push @args, "C.uintptr_t($name)";
|
|
||||||
} else {
|
|
||||||
push @args, "C.int($name)";
|
|
||||||
}
|
|
||||||
$arg_n++;
|
|
||||||
}
|
|
||||||
my $nargs = @args;
|
|
||||||
|
|
||||||
|
|
||||||
# Determine which form to use; pad args with zeros.
|
|
||||||
if ($nonblock) {
|
|
||||||
}
|
|
||||||
|
|
||||||
my $args = join(', ', @args);
|
|
||||||
my $call = "";
|
|
||||||
if ($sysname eq "exit") {
|
|
||||||
if ($errvar ne "") {
|
|
||||||
$call .= "er :=";
|
|
||||||
} else {
|
|
||||||
$call .= "";
|
|
||||||
}
|
|
||||||
} elsif ($errvar ne "") {
|
|
||||||
$call .= "r0,er :=";
|
|
||||||
} elsif ($retvar ne "") {
|
|
||||||
$call .= "r0,_ :=";
|
|
||||||
} else {
|
|
||||||
$call .= ""
|
|
||||||
}
|
|
||||||
$call .= "C.$sysname($args)";
|
|
||||||
|
|
||||||
# Assign return values.
|
|
||||||
my $body = "";
|
|
||||||
my $failexpr = "";
|
|
||||||
|
|
||||||
for(my $i=0; $i<@out; $i++) {
|
|
||||||
my $p = $out[$i];
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
my $reg = "";
|
|
||||||
if($name eq "err") {
|
|
||||||
$reg = "e1";
|
|
||||||
} else {
|
|
||||||
$reg = "r0";
|
|
||||||
}
|
|
||||||
if($reg ne "e1" ) {
|
|
||||||
$body .= "\t$name = $type($reg)\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# verify return
|
|
||||||
if ($sysname ne "exit" && $errvar ne "") {
|
|
||||||
if ($C_rettype =~ /^uintptr/) {
|
|
||||||
$body .= "\tif \(uintptr\(r0\) ==\^uintptr\(0\) && er != nil\) {\n";
|
|
||||||
$body .= "\t\t$errvar = er\n";
|
|
||||||
$body .= "\t}\n";
|
|
||||||
} else {
|
|
||||||
$body .= "\tif \(r0 ==-1 && er != nil\) {\n";
|
|
||||||
$body .= "\t\t$errvar = er\n";
|
|
||||||
$body .= "\t}\n";
|
|
||||||
}
|
|
||||||
} elsif ($errvar ne "") {
|
|
||||||
$body .= "\tif \(er != nil\) {\n";
|
|
||||||
$body .= "\t\t$errvar = er\n";
|
|
||||||
$body .= "\t}\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
$text .= "\t$call\n";
|
|
||||||
$text .= $body;
|
|
||||||
|
|
||||||
$text .= "\treturn\n";
|
|
||||||
$text .= "}\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
if($errors) {
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// $cmdline
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $tags
|
|
||||||
|
|
||||||
package $package
|
|
||||||
|
|
||||||
|
|
||||||
$c_extern
|
|
||||||
*/
|
|
||||||
import "C"
|
|
||||||
import (
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
print "import \"golang.org/x/sys/unix\"\n" if $package ne "unix";
|
|
||||||
|
|
||||||
chomp($_=<<EOF);
|
|
||||||
|
|
||||||
$text
|
|
||||||
EOF
|
|
||||||
print $_;
|
|
||||||
exit 0;
|
|
614
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.go
generated
vendored
Normal file
614
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.go
generated
vendored
Normal file
|
@ -0,0 +1,614 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
/*
|
||||||
|
This program reads a file containing function prototypes
|
||||||
|
(like syscall_aix.go) and generates system call bodies.
|
||||||
|
The prototypes are marked by lines beginning with "//sys"
|
||||||
|
and read like func declarations if //sys is replaced by func, but:
|
||||||
|
* The parameter lists must give a name for each argument.
|
||||||
|
This includes return parameters.
|
||||||
|
* The parameter lists must give a type for each argument:
|
||||||
|
the (x, y, z int) shorthand is not allowed.
|
||||||
|
* If the return parameter is an error number, it must be named err.
|
||||||
|
* If go func name needs to be different than its libc name,
|
||||||
|
* or the function is not in libc, name could be specified
|
||||||
|
* at the end, after "=" sign, like
|
||||||
|
//sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
||||||
|
|
||||||
|
|
||||||
|
This program will generate three files and handle both gc and gccgo implementation:
|
||||||
|
- zsyscall_aix_ppc64.go: the common part of each implementation (error handler, pointer creation)
|
||||||
|
- zsyscall_aix_ppc64_gc.go: gc part with //go_cgo_import_dynamic and a call to syscall6
|
||||||
|
- zsyscall_aix_ppc64_gccgo.go: gccgo part with C function and conversion to C type.
|
||||||
|
|
||||||
|
The generated code looks like this
|
||||||
|
|
||||||
|
zsyscall_aix_ppc64.go
|
||||||
|
func asyscall(...) (n int, err error) {
|
||||||
|
// Pointer Creation
|
||||||
|
r1, e1 := callasyscall(...)
|
||||||
|
// Type Conversion
|
||||||
|
// Error Handler
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
zsyscall_aix_ppc64_gc.go
|
||||||
|
//go:cgo_import_dynamic libc_asyscall asyscall "libc.a/shr_64.o"
|
||||||
|
//go:linkname libc_asyscall libc_asyscall
|
||||||
|
var asyscall syscallFunc
|
||||||
|
|
||||||
|
func callasyscall(...) (r1 uintptr, e1 Errno) {
|
||||||
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_asyscall)), "nb_args", ... )
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
zsyscall_aix_ppc64_ggcgo.go
|
||||||
|
|
||||||
|
// int asyscall(...)
|
||||||
|
|
||||||
|
import "C"
|
||||||
|
|
||||||
|
func callasyscall(...) (r1 uintptr, e1 Errno) {
|
||||||
|
r1 = uintptr(C.asyscall(...))
|
||||||
|
e1 = syscall.GetErrno()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
b32 = flag.Bool("b32", false, "32bit big-endian")
|
||||||
|
l32 = flag.Bool("l32", false, "32bit little-endian")
|
||||||
|
aix = flag.Bool("aix", false, "aix")
|
||||||
|
tags = flag.String("tags", "", "build tags")
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksyscall_aix_ppc64.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return *tags
|
||||||
|
}
|
||||||
|
|
||||||
|
// Param is function parameter
|
||||||
|
type Param struct {
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
|
||||||
|
// usage prints the program usage
|
||||||
|
func usage() {
|
||||||
|
fmt.Fprintf(os.Stderr, "usage: go run mksyscall_aix_ppc64.go [-b32 | -l32] [-tags x,y] [file ...]\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParamList parses parameter list and returns a slice of parameters
|
||||||
|
func parseParamList(list string) []string {
|
||||||
|
list = strings.TrimSpace(list)
|
||||||
|
if list == "" {
|
||||||
|
return []string{}
|
||||||
|
}
|
||||||
|
return regexp.MustCompile(`\s*,\s*`).Split(list, -1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParam splits a parameter into name and type
|
||||||
|
func parseParam(p string) Param {
|
||||||
|
ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p)
|
||||||
|
if ps == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
return Param{ps[1], ps[2]}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
flag.Usage = usage
|
||||||
|
flag.Parse()
|
||||||
|
if len(flag.Args()) <= 0 {
|
||||||
|
fmt.Fprintf(os.Stderr, "no files to parse provided\n")
|
||||||
|
usage()
|
||||||
|
}
|
||||||
|
|
||||||
|
endianness := ""
|
||||||
|
if *b32 {
|
||||||
|
endianness = "big-endian"
|
||||||
|
} else if *l32 {
|
||||||
|
endianness = "little-endian"
|
||||||
|
}
|
||||||
|
|
||||||
|
pack := ""
|
||||||
|
// GCCGO
|
||||||
|
textgccgo := ""
|
||||||
|
cExtern := "/*\n#include <stdint.h>\n"
|
||||||
|
// GC
|
||||||
|
textgc := ""
|
||||||
|
dynimports := ""
|
||||||
|
linknames := ""
|
||||||
|
var vars []string
|
||||||
|
// COMMON
|
||||||
|
textcommon := ""
|
||||||
|
for _, path := range flag.Args() {
|
||||||
|
file, err := os.Open(path)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
t := s.Text()
|
||||||
|
t = strings.TrimSpace(t)
|
||||||
|
t = regexp.MustCompile(`\s+`).ReplaceAllString(t, ` `)
|
||||||
|
if p := regexp.MustCompile(`^package (\S+)$`).FindStringSubmatch(t); p != nil && pack == "" {
|
||||||
|
pack = p[1]
|
||||||
|
}
|
||||||
|
nonblock := regexp.MustCompile(`^\/\/sysnb `).FindStringSubmatch(t)
|
||||||
|
if regexp.MustCompile(`^\/\/sys `).FindStringSubmatch(t) == nil && nonblock == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Line must be of the form
|
||||||
|
// func Open(path string, mode int, perm int) (fd int, err error)
|
||||||
|
// Split into name, in params, out params.
|
||||||
|
f := regexp.MustCompile(`^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$`).FindStringSubmatch(t)
|
||||||
|
if f == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
funct, inps, outps, modname, sysname := f[2], f[3], f[4], f[5], f[6]
|
||||||
|
|
||||||
|
// Split argument lists on comma.
|
||||||
|
in := parseParamList(inps)
|
||||||
|
out := parseParamList(outps)
|
||||||
|
|
||||||
|
inps = strings.Join(in, ", ")
|
||||||
|
outps = strings.Join(out, ", ")
|
||||||
|
|
||||||
|
if sysname == "" {
|
||||||
|
sysname = funct
|
||||||
|
}
|
||||||
|
|
||||||
|
onlyCommon := false
|
||||||
|
if funct == "readlen" || funct == "writelen" || funct == "FcntlInt" || funct == "FcntlFlock" {
|
||||||
|
// This function call another syscall which is already implemented.
|
||||||
|
// Therefore, the gc and gccgo part must not be generated.
|
||||||
|
onlyCommon = true
|
||||||
|
}
|
||||||
|
|
||||||
|
// Try in vain to keep people from editing this file.
|
||||||
|
// The theory is that they jump into the middle of the file
|
||||||
|
// without reading the header.
|
||||||
|
|
||||||
|
textcommon += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
if !onlyCommon {
|
||||||
|
textgccgo += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
textgc += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if value return, err return available
|
||||||
|
errvar := ""
|
||||||
|
rettype := ""
|
||||||
|
for _, param := range out {
|
||||||
|
p := parseParam(param)
|
||||||
|
if p.Type == "error" {
|
||||||
|
errvar = p.Name
|
||||||
|
} else {
|
||||||
|
rettype = p.Type
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sysname = regexp.MustCompile(`([a-z])([A-Z])`).ReplaceAllString(sysname, `${1}_$2`)
|
||||||
|
sysname = strings.ToLower(sysname) // All libc functions are lowercase.
|
||||||
|
|
||||||
|
// GCCGO Prototype return type
|
||||||
|
cRettype := ""
|
||||||
|
if rettype == "unsafe.Pointer" {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if rettype == "uintptr" {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(rettype) != nil {
|
||||||
|
cRettype = "uintptr_t"
|
||||||
|
} else if rettype == "int" {
|
||||||
|
cRettype = "int"
|
||||||
|
} else if rettype == "int32" {
|
||||||
|
cRettype = "int"
|
||||||
|
} else if rettype == "int64" {
|
||||||
|
cRettype = "long long"
|
||||||
|
} else if rettype == "uint32" {
|
||||||
|
cRettype = "unsigned int"
|
||||||
|
} else if rettype == "uint64" {
|
||||||
|
cRettype = "unsigned long long"
|
||||||
|
} else {
|
||||||
|
cRettype = "int"
|
||||||
|
}
|
||||||
|
if sysname == "exit" {
|
||||||
|
cRettype = "void"
|
||||||
|
}
|
||||||
|
|
||||||
|
// GCCGO Prototype arguments type
|
||||||
|
var cIn []string
|
||||||
|
for i, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t", "size_t")
|
||||||
|
} else if p.Type == "unsafe.Pointer" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "uintptr" {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else if p.Type == "int" {
|
||||||
|
if (i == 0 || i == 2) && funct == "fcntl" {
|
||||||
|
// These fcntl arguments needs to be uintptr to be able to call FcntlInt and FcntlFlock
|
||||||
|
cIn = append(cIn, "uintptr_t")
|
||||||
|
} else {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if p.Type == "int32" {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
} else if p.Type == "int64" {
|
||||||
|
cIn = append(cIn, "long long")
|
||||||
|
} else if p.Type == "uint32" {
|
||||||
|
cIn = append(cIn, "unsigned int")
|
||||||
|
} else if p.Type == "uint64" {
|
||||||
|
cIn = append(cIn, "unsigned long long")
|
||||||
|
} else {
|
||||||
|
cIn = append(cIn, "int")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if !onlyCommon {
|
||||||
|
// GCCGO Prototype Generation
|
||||||
|
// Imports of system calls from libc
|
||||||
|
if sysname == "select" {
|
||||||
|
// select is a keyword of Go. Its name is
|
||||||
|
// changed to c_select.
|
||||||
|
cExtern += "#define c_select select\n"
|
||||||
|
}
|
||||||
|
cExtern += fmt.Sprintf("%s %s", cRettype, sysname)
|
||||||
|
cIn := strings.Join(cIn, ", ")
|
||||||
|
cExtern += fmt.Sprintf("(%s);\n", cIn)
|
||||||
|
}
|
||||||
|
// GC Library name
|
||||||
|
if modname == "" {
|
||||||
|
modname = "libc.a/shr_64.o"
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: only syscall using libc are available\n", funct)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
sysvarname := fmt.Sprintf("libc_%s", sysname)
|
||||||
|
|
||||||
|
if !onlyCommon {
|
||||||
|
// GC Runtime import of function to allow cross-platform builds.
|
||||||
|
dynimports += fmt.Sprintf("//go:cgo_import_dynamic %s %s \"%s\"\n", sysvarname, sysname, modname)
|
||||||
|
// GC Link symbol to proc address variable.
|
||||||
|
linknames += fmt.Sprintf("//go:linkname %s %s\n", sysvarname, sysvarname)
|
||||||
|
// GC Library proc address variable.
|
||||||
|
vars = append(vars, sysvarname)
|
||||||
|
}
|
||||||
|
|
||||||
|
strconvfunc := "BytePtrFromString"
|
||||||
|
strconvtype := "*byte"
|
||||||
|
|
||||||
|
// Go function header.
|
||||||
|
if outps != "" {
|
||||||
|
outps = fmt.Sprintf(" (%s)", outps)
|
||||||
|
}
|
||||||
|
if textcommon != "" {
|
||||||
|
textcommon += "\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
textcommon += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outps)
|
||||||
|
|
||||||
|
// Prepare arguments tocall.
|
||||||
|
var argscommon []string // Arguments in the common part
|
||||||
|
var argscall []string // Arguments for call prototype
|
||||||
|
var argsgc []string // Arguments for gc call (with syscall6)
|
||||||
|
var argsgccgo []string // Arguments for gccgo call (with C.name_of_syscall)
|
||||||
|
n := 0
|
||||||
|
argN := 0
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(%s))", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name))
|
||||||
|
argsgc = append(argsgc, p.Name)
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else if p.Type == "string" && errvar != "" {
|
||||||
|
textcommon += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
|
||||||
|
textcommon += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name)
|
||||||
|
textcommon += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar)
|
||||||
|
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("_p%d uintptr ", n))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("_p%d", n))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n")
|
||||||
|
textcommon += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
|
||||||
|
textcommon += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name)
|
||||||
|
textcommon += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar)
|
||||||
|
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("_p%d uintptr", n))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("_p%d", n))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else if m := regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type); m != nil {
|
||||||
|
// Convert slice into pointer, length.
|
||||||
|
// Have to be careful not to take address of &a[0] if len == 0:
|
||||||
|
// pass nil in that case.
|
||||||
|
textcommon += fmt.Sprintf("\tvar _p%d *%s\n", n, m[1])
|
||||||
|
textcommon += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = &%s[0]\n\t}\n", p.Name, n, p.Name)
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n), fmt.Sprintf("len(%s)", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("_p%d uintptr", n), fmt.Sprintf("_lenp%d int", n))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("_p%d", n), fmt.Sprintf("uintptr(_lenp%d)", n))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(_p%d)", n), fmt.Sprintf("C.size_t(_lenp%d)", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "int64" && endianness != "" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses int64 with 32 bits mode. Case not yet implemented\n")
|
||||||
|
} else if p.Type == "bool" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses bool. Case not yet implemented\n")
|
||||||
|
} else if regexp.MustCompile(`^_`).FindStringSubmatch(p.Type) != nil || p.Type == "unsafe.Pointer" {
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name))
|
||||||
|
argsgc = append(argsgc, p.Name)
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else if p.Type == "int" {
|
||||||
|
if (argN == 0 || argN == 2) && ((funct == "fcntl") || (funct == "FcntlInt") || (funct == "FcntlFlock")) {
|
||||||
|
// These fcntl arguments need to be uintptr to be able to call FcntlInt and FcntlFlock
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name))
|
||||||
|
argsgc = append(argsgc, p.Name)
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
|
||||||
|
} else {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s int", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
}
|
||||||
|
} else if p.Type == "int32" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s int32", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
} else if p.Type == "int64" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s int64", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.longlong(%s)", p.Name))
|
||||||
|
} else if p.Type == "uint32" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uint32", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uint(%s)", p.Name))
|
||||||
|
} else if p.Type == "uint64" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uint64", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.ulonglong(%s)", p.Name))
|
||||||
|
} else if p.Type == "uintptr" {
|
||||||
|
argscommon = append(argscommon, p.Name)
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s uintptr", p.Name))
|
||||||
|
argsgc = append(argsgc, p.Name)
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.uintptr_t(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
argscommon = append(argscommon, fmt.Sprintf("int(%s)", p.Name))
|
||||||
|
argscall = append(argscall, fmt.Sprintf("%s int", p.Name))
|
||||||
|
argsgc = append(argsgc, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
argsgccgo = append(argsgccgo, fmt.Sprintf("C.int(%s)", p.Name))
|
||||||
|
}
|
||||||
|
argN++
|
||||||
|
}
|
||||||
|
nargs := len(argsgc)
|
||||||
|
|
||||||
|
// COMMON function generation
|
||||||
|
argscommonlist := strings.Join(argscommon, ", ")
|
||||||
|
callcommon := fmt.Sprintf("call%s(%s)", sysname, argscommonlist)
|
||||||
|
ret := []string{"_", "_"}
|
||||||
|
body := ""
|
||||||
|
doErrno := false
|
||||||
|
for i := 0; i < len(out); i++ {
|
||||||
|
p := parseParam(out[i])
|
||||||
|
reg := ""
|
||||||
|
if p.Name == "err" {
|
||||||
|
reg = "e1"
|
||||||
|
ret[1] = reg
|
||||||
|
doErrno = true
|
||||||
|
} else {
|
||||||
|
reg = "r0"
|
||||||
|
ret[0] = reg
|
||||||
|
}
|
||||||
|
if p.Type == "bool" {
|
||||||
|
reg = fmt.Sprintf("%s != 0", reg)
|
||||||
|
}
|
||||||
|
if reg != "e1" {
|
||||||
|
body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ret[0] == "_" && ret[1] == "_" {
|
||||||
|
textcommon += fmt.Sprintf("\t%s\n", callcommon)
|
||||||
|
} else {
|
||||||
|
textcommon += fmt.Sprintf("\t%s, %s := %s\n", ret[0], ret[1], callcommon)
|
||||||
|
}
|
||||||
|
textcommon += body
|
||||||
|
|
||||||
|
if doErrno {
|
||||||
|
textcommon += "\tif e1 != 0 {\n"
|
||||||
|
textcommon += "\t\terr = errnoErr(e1)\n"
|
||||||
|
textcommon += "\t}\n"
|
||||||
|
}
|
||||||
|
textcommon += "\treturn\n"
|
||||||
|
textcommon += "}\n"
|
||||||
|
|
||||||
|
if onlyCommon {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// CALL Prototype
|
||||||
|
callProto := fmt.Sprintf("func call%s(%s) (r1 uintptr, e1 Errno) {\n", sysname, strings.Join(argscall, ", "))
|
||||||
|
|
||||||
|
// GC function generation
|
||||||
|
asm := "syscall6"
|
||||||
|
if nonblock != nil {
|
||||||
|
asm = "rawSyscall6"
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(argsgc) <= 6 {
|
||||||
|
for len(argsgc) < 6 {
|
||||||
|
argsgc = append(argsgc, "0")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: too many arguments to system call", funct)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
argsgclist := strings.Join(argsgc, ", ")
|
||||||
|
callgc := fmt.Sprintf("%s(uintptr(unsafe.Pointer(&%s)), %d, %s)", asm, sysvarname, nargs, argsgclist)
|
||||||
|
|
||||||
|
textgc += callProto
|
||||||
|
textgc += fmt.Sprintf("\tr1, _, e1 = %s\n", callgc)
|
||||||
|
textgc += "\treturn\n}\n"
|
||||||
|
|
||||||
|
// GCCGO function generation
|
||||||
|
argsgccgolist := strings.Join(argsgccgo, ", ")
|
||||||
|
var callgccgo string
|
||||||
|
if sysname == "select" {
|
||||||
|
// select is a keyword of Go. Its name is
|
||||||
|
// changed to c_select.
|
||||||
|
callgccgo = fmt.Sprintf("C.c_%s(%s)", sysname, argsgccgolist)
|
||||||
|
} else {
|
||||||
|
callgccgo = fmt.Sprintf("C.%s(%s)", sysname, argsgccgolist)
|
||||||
|
}
|
||||||
|
textgccgo += callProto
|
||||||
|
textgccgo += fmt.Sprintf("\tr1 = uintptr(%s)\n", callgccgo)
|
||||||
|
textgccgo += "\te1 = syscall.GetErrno()\n"
|
||||||
|
textgccgo += "\treturn\n}\n"
|
||||||
|
}
|
||||||
|
if err := s.Err(); err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
imp := ""
|
||||||
|
if pack != "unix" {
|
||||||
|
imp = "import \"golang.org/x/sys/unix\"\n"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print zsyscall_aix_ppc64.go
|
||||||
|
err := ioutil.WriteFile("zsyscall_aix_ppc64.go",
|
||||||
|
[]byte(fmt.Sprintf(srcTemplate1, cmdLine(), buildTags(), pack, imp, textcommon)),
|
||||||
|
0644)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print zsyscall_aix_ppc64_gc.go
|
||||||
|
vardecls := "\t" + strings.Join(vars, ",\n\t")
|
||||||
|
vardecls += " syscallFunc"
|
||||||
|
err = ioutil.WriteFile("zsyscall_aix_ppc64_gc.go",
|
||||||
|
[]byte(fmt.Sprintf(srcTemplate2, cmdLine(), buildTags(), pack, imp, dynimports, linknames, vardecls, textgc)),
|
||||||
|
0644)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print zsyscall_aix_ppc64_gccgo.go
|
||||||
|
err = ioutil.WriteFile("zsyscall_aix_ppc64_gccgo.go",
|
||||||
|
[]byte(fmt.Sprintf(srcTemplate3, cmdLine(), buildTags(), pack, cExtern, imp, textgccgo)),
|
||||||
|
0644)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate1 = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
%s
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
||||||
|
const srcTemplate2 = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
%s
|
||||||
|
%s
|
||||||
|
%s
|
||||||
|
type syscallFunc uintptr
|
||||||
|
|
||||||
|
var (
|
||||||
|
%s
|
||||||
|
)
|
||||||
|
|
||||||
|
// Implemented in runtime/syscall_aix.go.
|
||||||
|
func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
||||||
|
const srcTemplate3 = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
// +build gccgo
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
%s
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
%s
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
579
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.pl
generated
vendored
579
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.pl
generated
vendored
|
@ -1,579 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# This program reads a file containing function prototypes
|
|
||||||
# (like syscall_aix.go) and generates system call bodies.
|
|
||||||
# The prototypes are marked by lines beginning with "//sys"
|
|
||||||
# and read like func declarations if //sys is replaced by func, but:
|
|
||||||
# * The parameter lists must give a name for each argument.
|
|
||||||
# This includes return parameters.
|
|
||||||
# * The parameter lists must give a type for each argument:
|
|
||||||
# the (x, y, z int) shorthand is not allowed.
|
|
||||||
# * If the return parameter is an error number, it must be named err.
|
|
||||||
# * If go func name needs to be different than its libc name,
|
|
||||||
# * or the function is not in libc, name could be specified
|
|
||||||
# * at the end, after "=" sign, like
|
|
||||||
# //sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
|
||||||
|
|
||||||
# This program will generate three files and handle both gc and gccgo implementation:
|
|
||||||
# - zsyscall_aix_ppc64.go: the common part of each implementation (error handler, pointer creation)
|
|
||||||
# - zsyscall_aix_ppc64_gc.go: gc part with //go_cgo_import_dynamic and a call to syscall6
|
|
||||||
# - zsyscall_aix_ppc64_gccgo.go: gccgo part with C function and conversion to C type.
|
|
||||||
|
|
||||||
# The generated code looks like this
|
|
||||||
#
|
|
||||||
# zsyscall_aix_ppc64.go
|
|
||||||
# func asyscall(...) (n int, err error) {
|
|
||||||
# // Pointer Creation
|
|
||||||
# r1, e1 := callasyscall(...)
|
|
||||||
# // Type Conversion
|
|
||||||
# // Error Handler
|
|
||||||
# return
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# zsyscall_aix_ppc64_gc.go
|
|
||||||
# //go:cgo_import_dynamic libc_asyscall asyscall "libc.a/shr_64.o"
|
|
||||||
# //go:linkname libc_asyscall libc_asyscall
|
|
||||||
# var asyscall syscallFunc
|
|
||||||
#
|
|
||||||
# func callasyscall(...) (r1 uintptr, e1 Errno) {
|
|
||||||
# r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_asyscall)), "nb_args", ... )
|
|
||||||
# return
|
|
||||||
# }
|
|
||||||
#
|
|
||||||
# zsyscall_aix_ppc64_ggcgo.go
|
|
||||||
# /*
|
|
||||||
# int asyscall(...)
|
|
||||||
#
|
|
||||||
# */
|
|
||||||
# import "C"
|
|
||||||
#
|
|
||||||
# func callasyscall(...) (r1 uintptr, e1 Errno) {
|
|
||||||
# r1 = uintptr(C.asyscall(...))
|
|
||||||
# e1 = syscall.GetErrno()
|
|
||||||
# return
|
|
||||||
# }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
my $cmdline = "mksyscall_aix_ppc64.pl " . join(' ', @ARGV);
|
|
||||||
my $errors = 0;
|
|
||||||
my $_32bit = "";
|
|
||||||
my $tags = ""; # build tags
|
|
||||||
my $aix = 0;
|
|
||||||
my $solaris = 0;
|
|
||||||
|
|
||||||
binmode STDOUT;
|
|
||||||
|
|
||||||
if($ARGV[0] eq "-b32") {
|
|
||||||
$_32bit = "big-endian";
|
|
||||||
shift;
|
|
||||||
} elsif($ARGV[0] eq "-l32") {
|
|
||||||
$_32bit = "little-endian";
|
|
||||||
shift;
|
|
||||||
}
|
|
||||||
if($ARGV[0] eq "-aix") {
|
|
||||||
$aix = 1;
|
|
||||||
shift;
|
|
||||||
}
|
|
||||||
if($ARGV[0] eq "-tags") {
|
|
||||||
shift;
|
|
||||||
$tags = $ARGV[0];
|
|
||||||
shift;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($ARGV[0] =~ /^-/) {
|
|
||||||
print STDERR "usage: mksyscall_aix.pl [-b32 | -l32] [-tags x,y] [file ...]\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub parseparamlist($) {
|
|
||||||
my ($list) = @_;
|
|
||||||
$list =~ s/^\s*//;
|
|
||||||
$list =~ s/\s*$//;
|
|
||||||
if($list eq "") {
|
|
||||||
return ();
|
|
||||||
}
|
|
||||||
return split(/\s*,\s*/, $list);
|
|
||||||
}
|
|
||||||
|
|
||||||
sub parseparam($) {
|
|
||||||
my ($p) = @_;
|
|
||||||
if($p !~ /^(\S*) (\S*)$/) {
|
|
||||||
print STDERR "$ARGV:$.: malformed parameter: $p\n";
|
|
||||||
$errors = 1;
|
|
||||||
return ("xx", "int");
|
|
||||||
}
|
|
||||||
return ($1, $2);
|
|
||||||
}
|
|
||||||
|
|
||||||
my $package = "";
|
|
||||||
# GCCGO
|
|
||||||
my $textgccgo = "";
|
|
||||||
my $c_extern = "/*\n#include <stdint.h>\n";
|
|
||||||
# GC
|
|
||||||
my $textgc = "";
|
|
||||||
my $dynimports = "";
|
|
||||||
my $linknames = "";
|
|
||||||
my @vars = ();
|
|
||||||
# COMMUN
|
|
||||||
my $textcommon = "";
|
|
||||||
|
|
||||||
while(<>) {
|
|
||||||
chomp;
|
|
||||||
s/\s+/ /g;
|
|
||||||
s/^\s+//;
|
|
||||||
s/\s+$//;
|
|
||||||
$package = $1 if !$package && /^package (\S+)$/;
|
|
||||||
my $nonblock = /^\/\/sysnb /;
|
|
||||||
next if !/^\/\/sys / && !$nonblock;
|
|
||||||
|
|
||||||
# Line must be of the form
|
|
||||||
# func Open(path string, mode int, perm int) (fd int, err error)
|
|
||||||
# Split into name, in params, out params.
|
|
||||||
if(!/^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$/) {
|
|
||||||
print STDERR "$ARGV:$.: malformed //sys declaration\n";
|
|
||||||
$errors = 1;
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
my ($nb, $func, $in, $out, $modname, $sysname) = ($1, $2, $3, $4, $5, $6);
|
|
||||||
|
|
||||||
# Split argument lists on comma.
|
|
||||||
my @in = parseparamlist($in);
|
|
||||||
my @out = parseparamlist($out);
|
|
||||||
|
|
||||||
$in = join(', ', @in);
|
|
||||||
$out = join(', ', @out);
|
|
||||||
|
|
||||||
if($sysname eq "") {
|
|
||||||
$sysname = "$func";
|
|
||||||
}
|
|
||||||
|
|
||||||
my $onlyCommon = 0;
|
|
||||||
if ($func eq "readlen" || $func eq "writelen" || $func eq "FcntlInt" || $func eq "FcntlFlock") {
|
|
||||||
# This function call another syscall which is already implemented.
|
|
||||||
# Therefore, the gc and gccgo part must not be generated.
|
|
||||||
$onlyCommon = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Try in vain to keep people from editing this file.
|
|
||||||
# The theory is that they jump into the middle of the file
|
|
||||||
# without reading the header.
|
|
||||||
|
|
||||||
$textcommon .= "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n";
|
|
||||||
if (!$onlyCommon) {
|
|
||||||
$textgccgo .= "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n";
|
|
||||||
$textgc .= "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Check if value return, err return available
|
|
||||||
my $errvar = "";
|
|
||||||
my $retvar = "";
|
|
||||||
my $rettype = "";
|
|
||||||
foreach my $p (@out) {
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
if($type eq "error") {
|
|
||||||
$errvar = $name;
|
|
||||||
} else {
|
|
||||||
$retvar = $name;
|
|
||||||
$rettype = $type;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$sysname =~ s/([a-z])([A-Z])/${1}_$2/g;
|
|
||||||
$sysname =~ y/A-Z/a-z/; # All libc functions are lowercase.
|
|
||||||
|
|
||||||
# GCCGO Prototype return type
|
|
||||||
my $C_rettype = "";
|
|
||||||
if($rettype eq "unsafe.Pointer") {
|
|
||||||
$C_rettype = "uintptr_t";
|
|
||||||
} elsif($rettype eq "uintptr") {
|
|
||||||
$C_rettype = "uintptr_t";
|
|
||||||
} elsif($rettype =~ /^_/) {
|
|
||||||
$C_rettype = "uintptr_t";
|
|
||||||
} elsif($rettype eq "int") {
|
|
||||||
$C_rettype = "int";
|
|
||||||
} elsif($rettype eq "int32") {
|
|
||||||
$C_rettype = "int";
|
|
||||||
} elsif($rettype eq "int64") {
|
|
||||||
$C_rettype = "long long";
|
|
||||||
} elsif($rettype eq "uint32") {
|
|
||||||
$C_rettype = "unsigned int";
|
|
||||||
} elsif($rettype eq "uint64") {
|
|
||||||
$C_rettype = "unsigned long long";
|
|
||||||
} else {
|
|
||||||
$C_rettype = "int";
|
|
||||||
}
|
|
||||||
if($sysname eq "exit") {
|
|
||||||
$C_rettype = "void";
|
|
||||||
}
|
|
||||||
|
|
||||||
# GCCGO Prototype arguments type
|
|
||||||
my @c_in = ();
|
|
||||||
foreach my $i (0 .. $#in) {
|
|
||||||
my ($name, $type) = parseparam($in[$i]);
|
|
||||||
if($type =~ /^\*/) {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type eq "string") {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type =~ /^\[\](.*)/) {
|
|
||||||
push @c_in, "uintptr_t", "size_t";
|
|
||||||
} elsif($type eq "unsafe.Pointer") {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type eq "uintptr") {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type =~ /^_/) {
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} elsif($type eq "int") {
|
|
||||||
if (($i == 0 || $i == 2) && $func eq "fcntl"){
|
|
||||||
# These fcntl arguments needs to be uintptr to be able to call FcntlInt and FcntlFlock
|
|
||||||
push @c_in, "uintptr_t";
|
|
||||||
} else {
|
|
||||||
push @c_in, "int";
|
|
||||||
}
|
|
||||||
} elsif($type eq "int32") {
|
|
||||||
push @c_in, "int";
|
|
||||||
} elsif($type eq "int64") {
|
|
||||||
push @c_in, "long long";
|
|
||||||
} elsif($type eq "uint32") {
|
|
||||||
push @c_in, "unsigned int";
|
|
||||||
} elsif($type eq "uint64") {
|
|
||||||
push @c_in, "unsigned long long";
|
|
||||||
} else {
|
|
||||||
push @c_in, "int";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$onlyCommon){
|
|
||||||
# GCCGO Prototype Generation
|
|
||||||
# Imports of system calls from libc
|
|
||||||
$c_extern .= "$C_rettype $sysname";
|
|
||||||
my $c_in = join(', ', @c_in);
|
|
||||||
$c_extern .= "($c_in);\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
# GC Library name
|
|
||||||
if($modname eq "") {
|
|
||||||
$modname = "libc.a/shr_64.o";
|
|
||||||
} else {
|
|
||||||
print STDERR "$func: only syscall using libc are available\n";
|
|
||||||
$errors = 1;
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
my $sysvarname = "libc_${sysname}";
|
|
||||||
|
|
||||||
if (!$onlyCommon){
|
|
||||||
# GC Runtime import of function to allow cross-platform builds.
|
|
||||||
$dynimports .= "//go:cgo_import_dynamic ${sysvarname} ${sysname} \"$modname\"\n";
|
|
||||||
# GC Link symbol to proc address variable.
|
|
||||||
$linknames .= "//go:linkname ${sysvarname} ${sysvarname}\n";
|
|
||||||
# GC Library proc address variable.
|
|
||||||
push @vars, $sysvarname;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $strconvfunc ="BytePtrFromString";
|
|
||||||
my $strconvtype = "*byte";
|
|
||||||
|
|
||||||
# Go function header.
|
|
||||||
if($out ne "") {
|
|
||||||
$out = " ($out)";
|
|
||||||
}
|
|
||||||
if($textcommon ne "") {
|
|
||||||
$textcommon .= "\n"
|
|
||||||
}
|
|
||||||
|
|
||||||
$textcommon .= sprintf "func %s(%s)%s {\n", $func, join(', ', @in), $out ;
|
|
||||||
|
|
||||||
# Prepare arguments to call.
|
|
||||||
my @argscommun = (); # Arguments in the commun part
|
|
||||||
my @argscall = (); # Arguments for call prototype
|
|
||||||
my @argsgc = (); # Arguments for gc call (with syscall6)
|
|
||||||
my @argsgccgo = (); # Arguments for gccgo call (with C.name_of_syscall)
|
|
||||||
my $n = 0;
|
|
||||||
my $arg_n = 0;
|
|
||||||
foreach my $p (@in) {
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
if($type =~ /^\*/) {
|
|
||||||
push @argscommun, "uintptr(unsafe.Pointer($name))";
|
|
||||||
push @argscall, "$name uintptr";
|
|
||||||
push @argsgc, "$name";
|
|
||||||
push @argsgccgo, "C.uintptr_t($name)";
|
|
||||||
} elsif($type eq "string" && $errvar ne "") {
|
|
||||||
$textcommon .= "\tvar _p$n $strconvtype\n";
|
|
||||||
$textcommon .= "\t_p$n, $errvar = $strconvfunc($name)\n";
|
|
||||||
$textcommon .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
|
|
||||||
|
|
||||||
push @argscommun, "uintptr(unsafe.Pointer(_p$n))";
|
|
||||||
push @argscall, "_p$n uintptr ";
|
|
||||||
push @argsgc, "_p$n";
|
|
||||||
push @argsgccgo, "C.uintptr_t(_p$n)";
|
|
||||||
$n++;
|
|
||||||
} elsif($type eq "string") {
|
|
||||||
print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
|
|
||||||
$textcommon .= "\tvar _p$n $strconvtype\n";
|
|
||||||
$textcommon .= "\t_p$n, $errvar = $strconvfunc($name)\n";
|
|
||||||
$textcommon .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
|
|
||||||
|
|
||||||
push @argscommun, "uintptr(unsafe.Pointer(_p$n))";
|
|
||||||
push @argscall, "_p$n uintptr";
|
|
||||||
push @argsgc, "_p$n";
|
|
||||||
push @argsgccgo, "C.uintptr_t(_p$n)";
|
|
||||||
$n++;
|
|
||||||
} elsif($type =~ /^\[\](.*)/) {
|
|
||||||
# Convert slice into pointer, length.
|
|
||||||
# Have to be careful not to take address of &a[0] if len == 0:
|
|
||||||
# pass nil in that case.
|
|
||||||
$textcommon .= "\tvar _p$n *$1\n";
|
|
||||||
$textcommon .= "\tif len($name) > 0 {\n\t\t_p$n = \&$name\[0]\n\t}\n";
|
|
||||||
push @argscommun, "uintptr(unsafe.Pointer(_p$n))", "len($name)";
|
|
||||||
push @argscall, "_p$n uintptr", "_lenp$n int";
|
|
||||||
push @argsgc, "_p$n", "uintptr(_lenp$n)";
|
|
||||||
push @argsgccgo, "C.uintptr_t(_p$n)", "C.size_t(_lenp$n)";
|
|
||||||
$n++;
|
|
||||||
} elsif($type eq "int64" && $_32bit ne "") {
|
|
||||||
print STDERR "$ARGV:$.: $func uses int64 with 32 bits mode. Case not yet implemented\n";
|
|
||||||
# if($_32bit eq "big-endian") {
|
|
||||||
# push @args, "uintptr($name >> 32)", "uintptr($name)";
|
|
||||||
# } else {
|
|
||||||
# push @args, "uintptr($name)", "uintptr($name >> 32)";
|
|
||||||
# }
|
|
||||||
# $n++;
|
|
||||||
} elsif($type eq "bool") {
|
|
||||||
print STDERR "$ARGV:$.: $func uses bool. Case not yet implemented\n";
|
|
||||||
# $text .= "\tvar _p$n uint32\n";
|
|
||||||
# $text .= "\tif $name {\n\t\t_p$n = 1\n\t} else {\n\t\t_p$n = 0\n\t}\n";
|
|
||||||
# push @args, "_p$n";
|
|
||||||
# $n++;
|
|
||||||
} elsif($type =~ /^_/ ||$type eq "unsafe.Pointer") {
|
|
||||||
push @argscommun, "uintptr($name)";
|
|
||||||
push @argscall, "$name uintptr";
|
|
||||||
push @argsgc, "$name";
|
|
||||||
push @argsgccgo, "C.uintptr_t($name)";
|
|
||||||
} elsif($type eq "int") {
|
|
||||||
if (($arg_n == 0 || $arg_n == 2) && ($func eq "fcntl" || $func eq "FcntlInt" || $func eq "FcntlFlock")) {
|
|
||||||
# These fcntl arguments need to be uintptr to be able to call FcntlInt and FcntlFlock
|
|
||||||
push @argscommun, "uintptr($name)";
|
|
||||||
push @argscall, "$name uintptr";
|
|
||||||
push @argsgc, "$name";
|
|
||||||
push @argsgccgo, "C.uintptr_t($name)";
|
|
||||||
} else {
|
|
||||||
push @argscommun, "$name";
|
|
||||||
push @argscall, "$name int";
|
|
||||||
push @argsgc, "uintptr($name)";
|
|
||||||
push @argsgccgo, "C.int($name)";
|
|
||||||
}
|
|
||||||
} elsif($type eq "int32") {
|
|
||||||
push @argscommun, "$name";
|
|
||||||
push @argscall, "$name int32";
|
|
||||||
push @argsgc, "uintptr($name)";
|
|
||||||
push @argsgccgo, "C.int($name)";
|
|
||||||
} elsif($type eq "int64") {
|
|
||||||
push @argscommun, "$name";
|
|
||||||
push @argscall, "$name int64";
|
|
||||||
push @argsgc, "uintptr($name)";
|
|
||||||
push @argsgccgo, "C.longlong($name)";
|
|
||||||
} elsif($type eq "uint32") {
|
|
||||||
push @argscommun, "$name";
|
|
||||||
push @argscall, "$name uint32";
|
|
||||||
push @argsgc, "uintptr($name)";
|
|
||||||
push @argsgccgo, "C.uint($name)";
|
|
||||||
} elsif($type eq "uint64") {
|
|
||||||
push @argscommun, "$name";
|
|
||||||
push @argscall, "$name uint64";
|
|
||||||
push @argsgc, "uintptr($name)";
|
|
||||||
push @argsgccgo, "C.ulonglong($name)";
|
|
||||||
} elsif($type eq "uintptr") {
|
|
||||||
push @argscommun, "$name";
|
|
||||||
push @argscall, "$name uintptr";
|
|
||||||
push @argsgc, "$name";
|
|
||||||
push @argsgccgo, "C.uintptr_t($name)";
|
|
||||||
} else {
|
|
||||||
push @argscommun, "int($name)";
|
|
||||||
push @argscall, "$name int";
|
|
||||||
push @argsgc, "uintptr($name)";
|
|
||||||
push @argsgccgo, "C.int($name)";
|
|
||||||
}
|
|
||||||
$arg_n++;
|
|
||||||
}
|
|
||||||
my $nargs = @argsgc;
|
|
||||||
|
|
||||||
# COMMUN function generation
|
|
||||||
my $argscommun = join(', ', @argscommun);
|
|
||||||
my $callcommun = "call$sysname($argscommun)";
|
|
||||||
my @ret = ("_", "_");
|
|
||||||
my $body = "";
|
|
||||||
my $do_errno = 0;
|
|
||||||
for(my $i=0; $i<@out; $i++) {
|
|
||||||
my $p = $out[$i];
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
my $reg = "";
|
|
||||||
if($name eq "err") {
|
|
||||||
$reg = "e1";
|
|
||||||
$ret[1] = $reg;
|
|
||||||
$do_errno = 1;
|
|
||||||
} else {
|
|
||||||
$reg = "r0";
|
|
||||||
$ret[0] = $reg;
|
|
||||||
}
|
|
||||||
if($type eq "bool") {
|
|
||||||
$reg = "$reg != 0";
|
|
||||||
}
|
|
||||||
if($reg ne "e1") {
|
|
||||||
$body .= "\t$name = $type($reg)\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($ret[0] eq "_" && $ret[1] eq "_") {
|
|
||||||
$textcommon .= "\t$callcommun\n";
|
|
||||||
} else {
|
|
||||||
$textcommon .= "\t$ret[0], $ret[1] := $callcommun\n";
|
|
||||||
}
|
|
||||||
$textcommon .= $body;
|
|
||||||
|
|
||||||
if ($do_errno) {
|
|
||||||
$textcommon .= "\tif e1 != 0 {\n";
|
|
||||||
$textcommon .= "\t\terr = errnoErr(e1)\n";
|
|
||||||
$textcommon .= "\t}\n";
|
|
||||||
}
|
|
||||||
$textcommon .= "\treturn\n";
|
|
||||||
$textcommon .= "}\n";
|
|
||||||
|
|
||||||
if ($onlyCommon){
|
|
||||||
next
|
|
||||||
}
|
|
||||||
# CALL Prototype
|
|
||||||
my $callProto = sprintf "func call%s(%s) (r1 uintptr, e1 Errno) {\n", $sysname, join(', ', @argscall);
|
|
||||||
|
|
||||||
# GC function generation
|
|
||||||
my $asm = "syscall6";
|
|
||||||
if ($nonblock) {
|
|
||||||
$asm = "rawSyscall6";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(@argsgc <= 6) {
|
|
||||||
while(@argsgc < 6) {
|
|
||||||
push @argsgc, "0";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
print STDERR "$ARGV:$.: too many arguments to system call\n";
|
|
||||||
}
|
|
||||||
my $argsgc = join(', ', @argsgc);
|
|
||||||
my $callgc = "$asm(uintptr(unsafe.Pointer(&$sysvarname)), $nargs, $argsgc)";
|
|
||||||
|
|
||||||
$textgc .= $callProto;
|
|
||||||
$textgc .= "\tr1, _, e1 = $callgc\n";
|
|
||||||
$textgc .= "\treturn\n}\n";
|
|
||||||
|
|
||||||
# GCCGO function generation
|
|
||||||
my $argsgccgo = join(', ', @argsgccgo);
|
|
||||||
my $callgccgo = "C.$sysname($argsgccgo)";
|
|
||||||
$textgccgo .= $callProto;
|
|
||||||
$textgccgo .= "\tr1 = uintptr($callgccgo)\n";
|
|
||||||
$textgccgo .= "\te1 = syscall.GetErrno()\n";
|
|
||||||
$textgccgo .= "\treturn\n}\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
if($errors) {
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Print zsyscall_aix_ppc64.go
|
|
||||||
open(my $fcommun, '>', 'zsyscall_aix_ppc64.go');
|
|
||||||
my $tofcommun = <<EOF;
|
|
||||||
// $cmdline
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $tags
|
|
||||||
|
|
||||||
package $package
|
|
||||||
|
|
||||||
import (
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
$tofcommun .= "import \"golang.org/x/sys/unix\"\n" if $package ne "unix";
|
|
||||||
|
|
||||||
$tofcommun .=<<EOF;
|
|
||||||
|
|
||||||
$textcommon
|
|
||||||
EOF
|
|
||||||
print $fcommun $tofcommun;
|
|
||||||
|
|
||||||
|
|
||||||
# Print zsyscall_aix_ppc64_gc.go
|
|
||||||
open(my $fgc, '>', 'zsyscall_aix_ppc64_gc.go');
|
|
||||||
my $tofgc = <<EOF;
|
|
||||||
// $cmdline
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $tags
|
|
||||||
// +build !gccgo
|
|
||||||
|
|
||||||
package $package
|
|
||||||
|
|
||||||
import (
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
$tofgc .= "import \"golang.org/x/sys/unix\"\n" if $package ne "unix";
|
|
||||||
|
|
||||||
my $vardecls = "\t" . join(",\n\t", @vars);
|
|
||||||
$vardecls .= " syscallFunc";
|
|
||||||
|
|
||||||
$tofgc .=<<EOF;
|
|
||||||
$dynimports
|
|
||||||
$linknames
|
|
||||||
type syscallFunc uintptr
|
|
||||||
|
|
||||||
var (
|
|
||||||
$vardecls
|
|
||||||
)
|
|
||||||
|
|
||||||
// Implemented in runtime/syscall_aix.go.
|
|
||||||
func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
|
||||||
func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
|
||||||
|
|
||||||
$textgc
|
|
||||||
EOF
|
|
||||||
print $fgc $tofgc;
|
|
||||||
|
|
||||||
# Print zsyscall_aix_ppc64_gc.go
|
|
||||||
open(my $fgccgo, '>', 'zsyscall_aix_ppc64_gccgo.go');
|
|
||||||
my $tofgccgo = <<EOF;
|
|
||||||
// $cmdline
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $tags
|
|
||||||
// +build gccgo
|
|
||||||
|
|
||||||
package $package
|
|
||||||
|
|
||||||
|
|
||||||
$c_extern
|
|
||||||
*/
|
|
||||||
import "C"
|
|
||||||
import (
|
|
||||||
"syscall"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
$tofgccgo .= "import \"golang.org/x/sys/unix\"\n" if $package ne "unix";
|
|
||||||
|
|
||||||
$tofgccgo .=<<EOF;
|
|
||||||
|
|
||||||
$textgccgo
|
|
||||||
EOF
|
|
||||||
print $fgccgo $tofgccgo;
|
|
||||||
exit 0;
|
|
335
vendor/golang.org/x/sys/unix/mksyscall_solaris.go
generated
vendored
Normal file
335
vendor/golang.org/x/sys/unix/mksyscall_solaris.go
generated
vendored
Normal file
|
@ -0,0 +1,335 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
/*
|
||||||
|
This program reads a file containing function prototypes
|
||||||
|
(like syscall_solaris.go) and generates system call bodies.
|
||||||
|
The prototypes are marked by lines beginning with "//sys"
|
||||||
|
and read like func declarations if //sys is replaced by func, but:
|
||||||
|
* The parameter lists must give a name for each argument.
|
||||||
|
This includes return parameters.
|
||||||
|
* The parameter lists must give a type for each argument:
|
||||||
|
the (x, y, z int) shorthand is not allowed.
|
||||||
|
* If the return parameter is an error number, it must be named err.
|
||||||
|
* If go func name needs to be different than its libc name,
|
||||||
|
* or the function is not in libc, name could be specified
|
||||||
|
* at the end, after "=" sign, like
|
||||||
|
//sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
||||||
|
*/
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
b32 = flag.Bool("b32", false, "32bit big-endian")
|
||||||
|
l32 = flag.Bool("l32", false, "32bit little-endian")
|
||||||
|
tags = flag.String("tags", "", "build tags")
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksyscall_solaris.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return *tags
|
||||||
|
}
|
||||||
|
|
||||||
|
// Param is function parameter
|
||||||
|
type Param struct {
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
|
||||||
|
// usage prints the program usage
|
||||||
|
func usage() {
|
||||||
|
fmt.Fprintf(os.Stderr, "usage: go run mksyscall_solaris.go [-b32 | -l32] [-tags x,y] [file ...]\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParamList parses parameter list and returns a slice of parameters
|
||||||
|
func parseParamList(list string) []string {
|
||||||
|
list = strings.TrimSpace(list)
|
||||||
|
if list == "" {
|
||||||
|
return []string{}
|
||||||
|
}
|
||||||
|
return regexp.MustCompile(`\s*,\s*`).Split(list, -1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseParam splits a parameter into name and type
|
||||||
|
func parseParam(p string) Param {
|
||||||
|
ps := regexp.MustCompile(`^(\S*) (\S*)$`).FindStringSubmatch(p)
|
||||||
|
if ps == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "malformed parameter: %s\n", p)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
return Param{ps[1], ps[2]}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
flag.Usage = usage
|
||||||
|
flag.Parse()
|
||||||
|
if len(flag.Args()) <= 0 {
|
||||||
|
fmt.Fprintf(os.Stderr, "no files to parse provided\n")
|
||||||
|
usage()
|
||||||
|
}
|
||||||
|
|
||||||
|
endianness := ""
|
||||||
|
if *b32 {
|
||||||
|
endianness = "big-endian"
|
||||||
|
} else if *l32 {
|
||||||
|
endianness = "little-endian"
|
||||||
|
}
|
||||||
|
|
||||||
|
pack := ""
|
||||||
|
text := ""
|
||||||
|
dynimports := ""
|
||||||
|
linknames := ""
|
||||||
|
var vars []string
|
||||||
|
for _, path := range flag.Args() {
|
||||||
|
file, err := os.Open(path)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
t := s.Text()
|
||||||
|
t = strings.TrimSpace(t)
|
||||||
|
t = regexp.MustCompile(`\s+`).ReplaceAllString(t, ` `)
|
||||||
|
if p := regexp.MustCompile(`^package (\S+)$`).FindStringSubmatch(t); p != nil && pack == "" {
|
||||||
|
pack = p[1]
|
||||||
|
}
|
||||||
|
nonblock := regexp.MustCompile(`^\/\/sysnb `).FindStringSubmatch(t)
|
||||||
|
if regexp.MustCompile(`^\/\/sys `).FindStringSubmatch(t) == nil && nonblock == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Line must be of the form
|
||||||
|
// func Open(path string, mode int, perm int) (fd int, err error)
|
||||||
|
// Split into name, in params, out params.
|
||||||
|
f := regexp.MustCompile(`^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$`).FindStringSubmatch(t)
|
||||||
|
if f == nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s:%s\nmalformed //sys declaration\n", path, t)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
funct, inps, outps, modname, sysname := f[2], f[3], f[4], f[5], f[6]
|
||||||
|
|
||||||
|
// Split argument lists on comma.
|
||||||
|
in := parseParamList(inps)
|
||||||
|
out := parseParamList(outps)
|
||||||
|
|
||||||
|
inps = strings.Join(in, ", ")
|
||||||
|
outps = strings.Join(out, ", ")
|
||||||
|
|
||||||
|
// Try in vain to keep people from editing this file.
|
||||||
|
// The theory is that they jump into the middle of the file
|
||||||
|
// without reading the header.
|
||||||
|
text += "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n"
|
||||||
|
|
||||||
|
// So file name.
|
||||||
|
if modname == "" {
|
||||||
|
modname = "libc"
|
||||||
|
}
|
||||||
|
|
||||||
|
// System call name.
|
||||||
|
if sysname == "" {
|
||||||
|
sysname = funct
|
||||||
|
}
|
||||||
|
|
||||||
|
// System call pointer variable name.
|
||||||
|
sysvarname := fmt.Sprintf("proc%s", sysname)
|
||||||
|
|
||||||
|
strconvfunc := "BytePtrFromString"
|
||||||
|
strconvtype := "*byte"
|
||||||
|
|
||||||
|
sysname = strings.ToLower(sysname) // All libc functions are lowercase.
|
||||||
|
|
||||||
|
// Runtime import of function to allow cross-platform builds.
|
||||||
|
dynimports += fmt.Sprintf("//go:cgo_import_dynamic libc_%s %s \"%s.so\"\n", sysname, sysname, modname)
|
||||||
|
// Link symbol to proc address variable.
|
||||||
|
linknames += fmt.Sprintf("//go:linkname %s libc_%s\n", sysvarname, sysname)
|
||||||
|
// Library proc address variable.
|
||||||
|
vars = append(vars, sysvarname)
|
||||||
|
|
||||||
|
// Go function header.
|
||||||
|
outlist := strings.Join(out, ", ")
|
||||||
|
if outlist != "" {
|
||||||
|
outlist = fmt.Sprintf(" (%s)", outlist)
|
||||||
|
}
|
||||||
|
if text != "" {
|
||||||
|
text += "\n"
|
||||||
|
}
|
||||||
|
text += fmt.Sprintf("func %s(%s)%s {\n", funct, strings.Join(in, ", "), outlist)
|
||||||
|
|
||||||
|
// Check if err return available
|
||||||
|
errvar := ""
|
||||||
|
for _, param := range out {
|
||||||
|
p := parseParam(param)
|
||||||
|
if p.Type == "error" {
|
||||||
|
errvar = p.Name
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prepare arguments to Syscall.
|
||||||
|
var args []string
|
||||||
|
n := 0
|
||||||
|
for _, param := range in {
|
||||||
|
p := parseParam(param)
|
||||||
|
if regexp.MustCompile(`^\*`).FindStringSubmatch(p.Type) != nil {
|
||||||
|
args = append(args, "uintptr(unsafe.Pointer("+p.Name+"))")
|
||||||
|
} else if p.Type == "string" && errvar != "" {
|
||||||
|
text += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
|
||||||
|
text += fmt.Sprintf("\t_p%d, %s = %s(%s)\n", n, errvar, strconvfunc, p.Name)
|
||||||
|
text += fmt.Sprintf("\tif %s != nil {\n\t\treturn\n\t}\n", errvar)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "string" {
|
||||||
|
fmt.Fprintf(os.Stderr, path+":"+funct+" uses string arguments, but has no error return\n")
|
||||||
|
text += fmt.Sprintf("\tvar _p%d %s\n", n, strconvtype)
|
||||||
|
text += fmt.Sprintf("\t_p%d, _ = %s(%s)\n", n, strconvfunc, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n))
|
||||||
|
n++
|
||||||
|
} else if s := regexp.MustCompile(`^\[\](.*)`).FindStringSubmatch(p.Type); s != nil {
|
||||||
|
// Convert slice into pointer, length.
|
||||||
|
// Have to be careful not to take address of &a[0] if len == 0:
|
||||||
|
// pass nil in that case.
|
||||||
|
text += fmt.Sprintf("\tvar _p%d *%s\n", n, s[1])
|
||||||
|
text += fmt.Sprintf("\tif len(%s) > 0 {\n\t\t_p%d = &%s[0]\n\t}\n", p.Name, n, p.Name)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(unsafe.Pointer(_p%d))", n), fmt.Sprintf("uintptr(len(%s))", p.Name))
|
||||||
|
n++
|
||||||
|
} else if p.Type == "int64" && endianness != "" {
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s>>32)", p.Name), fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name), fmt.Sprintf("uintptr(%s>>32)", p.Name))
|
||||||
|
}
|
||||||
|
} else if p.Type == "bool" {
|
||||||
|
text += fmt.Sprintf("\tvar _p%d uint32\n", n)
|
||||||
|
text += fmt.Sprintf("\tif %s {\n\t\t_p%d = 1\n\t} else {\n\t\t_p%d = 0\n\t}\n", p.Name, n, n)
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(_p%d)", n))
|
||||||
|
n++
|
||||||
|
} else {
|
||||||
|
args = append(args, fmt.Sprintf("uintptr(%s)", p.Name))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
nargs := len(args)
|
||||||
|
|
||||||
|
// Determine which form to use; pad args with zeros.
|
||||||
|
asm := "sysvicall6"
|
||||||
|
if nonblock != nil {
|
||||||
|
asm = "rawSysvicall6"
|
||||||
|
}
|
||||||
|
if len(args) <= 6 {
|
||||||
|
for len(args) < 6 {
|
||||||
|
args = append(args, "0")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: too many arguments to system call\n", path)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Actual call.
|
||||||
|
arglist := strings.Join(args, ", ")
|
||||||
|
call := fmt.Sprintf("%s(uintptr(unsafe.Pointer(&%s)), %d, %s)", asm, sysvarname, nargs, arglist)
|
||||||
|
|
||||||
|
// Assign return values.
|
||||||
|
body := ""
|
||||||
|
ret := []string{"_", "_", "_"}
|
||||||
|
doErrno := false
|
||||||
|
for i := 0; i < len(out); i++ {
|
||||||
|
p := parseParam(out[i])
|
||||||
|
reg := ""
|
||||||
|
if p.Name == "err" {
|
||||||
|
reg = "e1"
|
||||||
|
ret[2] = reg
|
||||||
|
doErrno = true
|
||||||
|
} else {
|
||||||
|
reg = fmt.Sprintf("r%d", i)
|
||||||
|
ret[i] = reg
|
||||||
|
}
|
||||||
|
if p.Type == "bool" {
|
||||||
|
reg = fmt.Sprintf("%d != 0", reg)
|
||||||
|
}
|
||||||
|
if p.Type == "int64" && endianness != "" {
|
||||||
|
// 64-bit number in r1:r0 or r0:r1.
|
||||||
|
if i+2 > len(out) {
|
||||||
|
fmt.Fprintf(os.Stderr, "%s: not enough registers for int64 return\n", path)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
if endianness == "big-endian" {
|
||||||
|
reg = fmt.Sprintf("int64(r%d)<<32 | int64(r%d)", i, i+1)
|
||||||
|
} else {
|
||||||
|
reg = fmt.Sprintf("int64(r%d)<<32 | int64(r%d)", i+1, i)
|
||||||
|
}
|
||||||
|
ret[i] = fmt.Sprintf("r%d", i)
|
||||||
|
ret[i+1] = fmt.Sprintf("r%d", i+1)
|
||||||
|
}
|
||||||
|
if reg != "e1" {
|
||||||
|
body += fmt.Sprintf("\t%s = %s(%s)\n", p.Name, p.Type, reg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ret[0] == "_" && ret[1] == "_" && ret[2] == "_" {
|
||||||
|
text += fmt.Sprintf("\t%s\n", call)
|
||||||
|
} else {
|
||||||
|
text += fmt.Sprintf("\t%s, %s, %s := %s\n", ret[0], ret[1], ret[2], call)
|
||||||
|
}
|
||||||
|
text += body
|
||||||
|
|
||||||
|
if doErrno {
|
||||||
|
text += "\tif e1 != 0 {\n"
|
||||||
|
text += "\t\terr = e1\n"
|
||||||
|
text += "\t}\n"
|
||||||
|
}
|
||||||
|
text += "\treturn\n"
|
||||||
|
text += "}\n"
|
||||||
|
}
|
||||||
|
if err := s.Err(); err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, err.Error())
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
imp := ""
|
||||||
|
if pack != "unix" {
|
||||||
|
imp = "import \"golang.org/x/sys/unix\"\n"
|
||||||
|
|
||||||
|
}
|
||||||
|
vardecls := "\t" + strings.Join(vars, ",\n\t")
|
||||||
|
vardecls += " syscallFunc"
|
||||||
|
fmt.Printf(srcTemplate, cmdLine(), buildTags(), pack, imp, dynimports, linknames, vardecls, text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package %s
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
%s
|
||||||
|
%s
|
||||||
|
%s
|
||||||
|
var (
|
||||||
|
%s
|
||||||
|
)
|
||||||
|
|
||||||
|
%s
|
||||||
|
`
|
294
vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
generated
vendored
294
vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
generated
vendored
|
@ -1,294 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
# Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
# This program reads a file containing function prototypes
|
|
||||||
# (like syscall_solaris.go) and generates system call bodies.
|
|
||||||
# The prototypes are marked by lines beginning with "//sys"
|
|
||||||
# and read like func declarations if //sys is replaced by func, but:
|
|
||||||
# * The parameter lists must give a name for each argument.
|
|
||||||
# This includes return parameters.
|
|
||||||
# * The parameter lists must give a type for each argument:
|
|
||||||
# the (x, y, z int) shorthand is not allowed.
|
|
||||||
# * If the return parameter is an error number, it must be named err.
|
|
||||||
# * If go func name needs to be different than its libc name,
|
|
||||||
# * or the function is not in libc, name could be specified
|
|
||||||
# * at the end, after "=" sign, like
|
|
||||||
# //sys getsockopt(s int, level int, name int, val uintptr, vallen *_Socklen) (err error) = libsocket.getsockopt
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
my $cmdline = "mksyscall_solaris.pl " . join(' ', @ARGV);
|
|
||||||
my $errors = 0;
|
|
||||||
my $_32bit = "";
|
|
||||||
my $tags = ""; # build tags
|
|
||||||
|
|
||||||
binmode STDOUT;
|
|
||||||
|
|
||||||
if($ARGV[0] eq "-b32") {
|
|
||||||
$_32bit = "big-endian";
|
|
||||||
shift;
|
|
||||||
} elsif($ARGV[0] eq "-l32") {
|
|
||||||
$_32bit = "little-endian";
|
|
||||||
shift;
|
|
||||||
}
|
|
||||||
if($ARGV[0] eq "-tags") {
|
|
||||||
shift;
|
|
||||||
$tags = $ARGV[0];
|
|
||||||
shift;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($ARGV[0] =~ /^-/) {
|
|
||||||
print STDERR "usage: mksyscall_solaris.pl [-b32 | -l32] [-tags x,y] [file ...]\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub parseparamlist($) {
|
|
||||||
my ($list) = @_;
|
|
||||||
$list =~ s/^\s*//;
|
|
||||||
$list =~ s/\s*$//;
|
|
||||||
if($list eq "") {
|
|
||||||
return ();
|
|
||||||
}
|
|
||||||
return split(/\s*,\s*/, $list);
|
|
||||||
}
|
|
||||||
|
|
||||||
sub parseparam($) {
|
|
||||||
my ($p) = @_;
|
|
||||||
if($p !~ /^(\S*) (\S*)$/) {
|
|
||||||
print STDERR "$ARGV:$.: malformed parameter: $p\n";
|
|
||||||
$errors = 1;
|
|
||||||
return ("xx", "int");
|
|
||||||
}
|
|
||||||
return ($1, $2);
|
|
||||||
}
|
|
||||||
|
|
||||||
my $package = "";
|
|
||||||
my $text = "";
|
|
||||||
my $dynimports = "";
|
|
||||||
my $linknames = "";
|
|
||||||
my @vars = ();
|
|
||||||
while(<>) {
|
|
||||||
chomp;
|
|
||||||
s/\s+/ /g;
|
|
||||||
s/^\s+//;
|
|
||||||
s/\s+$//;
|
|
||||||
$package = $1 if !$package && /^package (\S+)$/;
|
|
||||||
my $nonblock = /^\/\/sysnb /;
|
|
||||||
next if !/^\/\/sys / && !$nonblock;
|
|
||||||
|
|
||||||
# Line must be of the form
|
|
||||||
# func Open(path string, mode int, perm int) (fd int, err error)
|
|
||||||
# Split into name, in params, out params.
|
|
||||||
if(!/^\/\/sys(nb)? (\w+)\(([^()]*)\)\s*(?:\(([^()]+)\))?\s*(?:=\s*(?:(\w*)\.)?(\w*))?$/) {
|
|
||||||
print STDERR "$ARGV:$.: malformed //sys declaration\n";
|
|
||||||
$errors = 1;
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
my ($nb, $func, $in, $out, $modname, $sysname) = ($1, $2, $3, $4, $5, $6);
|
|
||||||
|
|
||||||
# Split argument lists on comma.
|
|
||||||
my @in = parseparamlist($in);
|
|
||||||
my @out = parseparamlist($out);
|
|
||||||
|
|
||||||
# Try in vain to keep people from editing this file.
|
|
||||||
# The theory is that they jump into the middle of the file
|
|
||||||
# without reading the header.
|
|
||||||
$text .= "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT\n\n";
|
|
||||||
|
|
||||||
# So file name.
|
|
||||||
if($modname eq "") {
|
|
||||||
$modname = "libc";
|
|
||||||
}
|
|
||||||
|
|
||||||
# System call name.
|
|
||||||
if($sysname eq "") {
|
|
||||||
$sysname = "$func";
|
|
||||||
}
|
|
||||||
|
|
||||||
# System call pointer variable name.
|
|
||||||
my $sysvarname = "proc$sysname";
|
|
||||||
|
|
||||||
my $strconvfunc = "BytePtrFromString";
|
|
||||||
my $strconvtype = "*byte";
|
|
||||||
|
|
||||||
$sysname =~ y/A-Z/a-z/; # All libc functions are lowercase.
|
|
||||||
|
|
||||||
# Runtime import of function to allow cross-platform builds.
|
|
||||||
$dynimports .= "//go:cgo_import_dynamic libc_${sysname} ${sysname} \"$modname.so\"\n";
|
|
||||||
# Link symbol to proc address variable.
|
|
||||||
$linknames .= "//go:linkname ${sysvarname} libc_${sysname}\n";
|
|
||||||
# Library proc address variable.
|
|
||||||
push @vars, $sysvarname;
|
|
||||||
|
|
||||||
# Go function header.
|
|
||||||
$out = join(', ', @out);
|
|
||||||
if($out ne "") {
|
|
||||||
$out = " ($out)";
|
|
||||||
}
|
|
||||||
if($text ne "") {
|
|
||||||
$text .= "\n"
|
|
||||||
}
|
|
||||||
$text .= sprintf "func %s(%s)%s {\n", $func, join(', ', @in), $out;
|
|
||||||
|
|
||||||
# Check if err return available
|
|
||||||
my $errvar = "";
|
|
||||||
foreach my $p (@out) {
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
if($type eq "error") {
|
|
||||||
$errvar = $name;
|
|
||||||
last;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Prepare arguments to Syscall.
|
|
||||||
my @args = ();
|
|
||||||
my $n = 0;
|
|
||||||
foreach my $p (@in) {
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
if($type =~ /^\*/) {
|
|
||||||
push @args, "uintptr(unsafe.Pointer($name))";
|
|
||||||
} elsif($type eq "string" && $errvar ne "") {
|
|
||||||
$text .= "\tvar _p$n $strconvtype\n";
|
|
||||||
$text .= "\t_p$n, $errvar = $strconvfunc($name)\n";
|
|
||||||
$text .= "\tif $errvar != nil {\n\t\treturn\n\t}\n";
|
|
||||||
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
|
||||||
$n++;
|
|
||||||
} elsif($type eq "string") {
|
|
||||||
print STDERR "$ARGV:$.: $func uses string arguments, but has no error return\n";
|
|
||||||
$text .= "\tvar _p$n $strconvtype\n";
|
|
||||||
$text .= "\t_p$n, _ = $strconvfunc($name)\n";
|
|
||||||
push @args, "uintptr(unsafe.Pointer(_p$n))";
|
|
||||||
$n++;
|
|
||||||
} elsif($type =~ /^\[\](.*)/) {
|
|
||||||
# Convert slice into pointer, length.
|
|
||||||
# Have to be careful not to take address of &a[0] if len == 0:
|
|
||||||
# pass nil in that case.
|
|
||||||
$text .= "\tvar _p$n *$1\n";
|
|
||||||
$text .= "\tif len($name) > 0 {\n\t\t_p$n = \&$name\[0]\n\t}\n";
|
|
||||||
push @args, "uintptr(unsafe.Pointer(_p$n))", "uintptr(len($name))";
|
|
||||||
$n++;
|
|
||||||
} elsif($type eq "int64" && $_32bit ne "") {
|
|
||||||
if($_32bit eq "big-endian") {
|
|
||||||
push @args, "uintptr($name >> 32)", "uintptr($name)";
|
|
||||||
} else {
|
|
||||||
push @args, "uintptr($name)", "uintptr($name >> 32)";
|
|
||||||
}
|
|
||||||
} elsif($type eq "bool") {
|
|
||||||
$text .= "\tvar _p$n uint32\n";
|
|
||||||
$text .= "\tif $name {\n\t\t_p$n = 1\n\t} else {\n\t\t_p$n = 0\n\t}\n";
|
|
||||||
push @args, "uintptr(_p$n)";
|
|
||||||
$n++;
|
|
||||||
} else {
|
|
||||||
push @args, "uintptr($name)";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
my $nargs = @args;
|
|
||||||
|
|
||||||
# Determine which form to use; pad args with zeros.
|
|
||||||
my $asm = "sysvicall6";
|
|
||||||
if ($nonblock) {
|
|
||||||
$asm = "rawSysvicall6";
|
|
||||||
}
|
|
||||||
if(@args <= 6) {
|
|
||||||
while(@args < 6) {
|
|
||||||
push @args, "0";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
print STDERR "$ARGV:$.: too many arguments to system call\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Actual call.
|
|
||||||
my $args = join(', ', @args);
|
|
||||||
my $call = "$asm(uintptr(unsafe.Pointer(&$sysvarname)), $nargs, $args)";
|
|
||||||
|
|
||||||
# Assign return values.
|
|
||||||
my $body = "";
|
|
||||||
my $failexpr = "";
|
|
||||||
my @ret = ("_", "_", "_");
|
|
||||||
my @pout= ();
|
|
||||||
my $do_errno = 0;
|
|
||||||
for(my $i=0; $i<@out; $i++) {
|
|
||||||
my $p = $out[$i];
|
|
||||||
my ($name, $type) = parseparam($p);
|
|
||||||
my $reg = "";
|
|
||||||
if($name eq "err") {
|
|
||||||
$reg = "e1";
|
|
||||||
$ret[2] = $reg;
|
|
||||||
$do_errno = 1;
|
|
||||||
} else {
|
|
||||||
$reg = sprintf("r%d", $i);
|
|
||||||
$ret[$i] = $reg;
|
|
||||||
}
|
|
||||||
if($type eq "bool") {
|
|
||||||
$reg = "$reg != 0";
|
|
||||||
}
|
|
||||||
if($type eq "int64" && $_32bit ne "") {
|
|
||||||
# 64-bit number in r1:r0 or r0:r1.
|
|
||||||
if($i+2 > @out) {
|
|
||||||
print STDERR "$ARGV:$.: not enough registers for int64 return\n";
|
|
||||||
}
|
|
||||||
if($_32bit eq "big-endian") {
|
|
||||||
$reg = sprintf("int64(r%d)<<32 | int64(r%d)", $i, $i+1);
|
|
||||||
} else {
|
|
||||||
$reg = sprintf("int64(r%d)<<32 | int64(r%d)", $i+1, $i);
|
|
||||||
}
|
|
||||||
$ret[$i] = sprintf("r%d", $i);
|
|
||||||
$ret[$i+1] = sprintf("r%d", $i+1);
|
|
||||||
}
|
|
||||||
if($reg ne "e1") {
|
|
||||||
$body .= "\t$name = $type($reg)\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($ret[0] eq "_" && $ret[1] eq "_" && $ret[2] eq "_") {
|
|
||||||
$text .= "\t$call\n";
|
|
||||||
} else {
|
|
||||||
$text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
|
|
||||||
}
|
|
||||||
$text .= $body;
|
|
||||||
|
|
||||||
if ($do_errno) {
|
|
||||||
$text .= "\tif e1 != 0 {\n";
|
|
||||||
$text .= "\t\terr = e1\n";
|
|
||||||
$text .= "\t}\n";
|
|
||||||
}
|
|
||||||
$text .= "\treturn\n";
|
|
||||||
$text .= "}\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
if($errors) {
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// $cmdline
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $tags
|
|
||||||
|
|
||||||
package $package
|
|
||||||
|
|
||||||
import (
|
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
EOF
|
|
||||||
|
|
||||||
print "import \"golang.org/x/sys/unix\"\n" if $package ne "unix";
|
|
||||||
|
|
||||||
my $vardecls = "\t" . join(",\n\t", @vars);
|
|
||||||
$vardecls .= " syscallFunc";
|
|
||||||
|
|
||||||
chomp($_=<<EOF);
|
|
||||||
|
|
||||||
$dynimports
|
|
||||||
$linknames
|
|
||||||
var (
|
|
||||||
$vardecls
|
|
||||||
)
|
|
||||||
|
|
||||||
$text
|
|
||||||
EOF
|
|
||||||
print $_;
|
|
||||||
exit 0;
|
|
355
vendor/golang.org/x/sys/unix/mksysctl_openbsd.go
generated
vendored
Normal file
355
vendor/golang.org/x/sys/unix/mksysctl_openbsd.go
generated
vendored
Normal file
|
@ -0,0 +1,355 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
// Parse the header files for OpenBSD and generate a Go usable sysctl MIB.
|
||||||
|
//
|
||||||
|
// Build a MIB with each entry being an array containing the level, type and
|
||||||
|
// a hash that will contain additional entries if the current entry is a node.
|
||||||
|
// We then walk this MIB and create a flattened sysctl name to OID hash.
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"regexp"
|
||||||
|
"sort"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
goos, goarch string
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments.
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksysctl_openbsd.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags.
|
||||||
|
func buildTags() string {
|
||||||
|
return fmt.Sprintf("%s,%s", goarch, goos)
|
||||||
|
}
|
||||||
|
|
||||||
|
// reMatch performs regular expression match and stores the substring slice to value pointed by m.
|
||||||
|
func reMatch(re *regexp.Regexp, str string, m *[]string) bool {
|
||||||
|
*m = re.FindStringSubmatch(str)
|
||||||
|
if *m != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type nodeElement struct {
|
||||||
|
n int
|
||||||
|
t string
|
||||||
|
pE *map[string]nodeElement
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
debugEnabled bool
|
||||||
|
mib map[string]nodeElement
|
||||||
|
node *map[string]nodeElement
|
||||||
|
nodeMap map[string]string
|
||||||
|
sysCtl []string
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
ctlNames1RE = regexp.MustCompile(`^#define\s+(CTL_NAMES)\s+{`)
|
||||||
|
ctlNames2RE = regexp.MustCompile(`^#define\s+(CTL_(.*)_NAMES)\s+{`)
|
||||||
|
ctlNames3RE = regexp.MustCompile(`^#define\s+((.*)CTL_NAMES)\s+{`)
|
||||||
|
netInetRE = regexp.MustCompile(`^netinet/`)
|
||||||
|
netInet6RE = regexp.MustCompile(`^netinet6/`)
|
||||||
|
netRE = regexp.MustCompile(`^net/`)
|
||||||
|
bracesRE = regexp.MustCompile(`{.*}`)
|
||||||
|
ctlTypeRE = regexp.MustCompile(`{\s+"(\w+)",\s+(CTLTYPE_[A-Z]+)\s+}`)
|
||||||
|
fsNetKernRE = regexp.MustCompile(`^(fs|net|kern)_`)
|
||||||
|
)
|
||||||
|
|
||||||
|
func debug(s string) {
|
||||||
|
if debugEnabled {
|
||||||
|
fmt.Fprintln(os.Stderr, s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Walk the MIB and build a sysctl name to OID mapping.
|
||||||
|
func buildSysctl(pNode *map[string]nodeElement, name string, oid []int) {
|
||||||
|
lNode := pNode // local copy of pointer to node
|
||||||
|
var keys []string
|
||||||
|
for k := range *lNode {
|
||||||
|
keys = append(keys, k)
|
||||||
|
}
|
||||||
|
sort.Strings(keys)
|
||||||
|
|
||||||
|
for _, key := range keys {
|
||||||
|
nodename := name
|
||||||
|
if name != "" {
|
||||||
|
nodename += "."
|
||||||
|
}
|
||||||
|
nodename += key
|
||||||
|
|
||||||
|
nodeoid := append(oid, (*pNode)[key].n)
|
||||||
|
|
||||||
|
if (*pNode)[key].t == `CTLTYPE_NODE` {
|
||||||
|
if _, ok := nodeMap[nodename]; ok {
|
||||||
|
lNode = &mib
|
||||||
|
ctlName := nodeMap[nodename]
|
||||||
|
for _, part := range strings.Split(ctlName, ".") {
|
||||||
|
lNode = ((*lNode)[part]).pE
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
lNode = (*pNode)[key].pE
|
||||||
|
}
|
||||||
|
buildSysctl(lNode, nodename, nodeoid)
|
||||||
|
} else if (*pNode)[key].t != "" {
|
||||||
|
oidStr := []string{}
|
||||||
|
for j := range nodeoid {
|
||||||
|
oidStr = append(oidStr, fmt.Sprintf("%d", nodeoid[j]))
|
||||||
|
}
|
||||||
|
text := "\t{ \"" + nodename + "\", []_C_int{ " + strings.Join(oidStr, ", ") + " } }, \n"
|
||||||
|
sysCtl = append(sysCtl, text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
// Get the OS (using GOOS_TARGET if it exist)
|
||||||
|
goos = os.Getenv("GOOS_TARGET")
|
||||||
|
if goos == "" {
|
||||||
|
goos = os.Getenv("GOOS")
|
||||||
|
}
|
||||||
|
// Get the architecture (using GOARCH_TARGET if it exists)
|
||||||
|
goarch = os.Getenv("GOARCH_TARGET")
|
||||||
|
if goarch == "" {
|
||||||
|
goarch = os.Getenv("GOARCH")
|
||||||
|
}
|
||||||
|
// Check if GOOS and GOARCH environment variables are defined
|
||||||
|
if goarch == "" || goos == "" {
|
||||||
|
fmt.Fprintf(os.Stderr, "GOARCH or GOOS not defined in environment\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
mib = make(map[string]nodeElement)
|
||||||
|
headers := [...]string{
|
||||||
|
`sys/sysctl.h`,
|
||||||
|
`sys/socket.h`,
|
||||||
|
`sys/tty.h`,
|
||||||
|
`sys/malloc.h`,
|
||||||
|
`sys/mount.h`,
|
||||||
|
`sys/namei.h`,
|
||||||
|
`sys/sem.h`,
|
||||||
|
`sys/shm.h`,
|
||||||
|
`sys/vmmeter.h`,
|
||||||
|
`uvm/uvmexp.h`,
|
||||||
|
`uvm/uvm_param.h`,
|
||||||
|
`uvm/uvm_swap_encrypt.h`,
|
||||||
|
`ddb/db_var.h`,
|
||||||
|
`net/if.h`,
|
||||||
|
`net/if_pfsync.h`,
|
||||||
|
`net/pipex.h`,
|
||||||
|
`netinet/in.h`,
|
||||||
|
`netinet/icmp_var.h`,
|
||||||
|
`netinet/igmp_var.h`,
|
||||||
|
`netinet/ip_ah.h`,
|
||||||
|
`netinet/ip_carp.h`,
|
||||||
|
`netinet/ip_divert.h`,
|
||||||
|
`netinet/ip_esp.h`,
|
||||||
|
`netinet/ip_ether.h`,
|
||||||
|
`netinet/ip_gre.h`,
|
||||||
|
`netinet/ip_ipcomp.h`,
|
||||||
|
`netinet/ip_ipip.h`,
|
||||||
|
`netinet/pim_var.h`,
|
||||||
|
`netinet/tcp_var.h`,
|
||||||
|
`netinet/udp_var.h`,
|
||||||
|
`netinet6/in6.h`,
|
||||||
|
`netinet6/ip6_divert.h`,
|
||||||
|
`netinet6/pim6_var.h`,
|
||||||
|
`netinet/icmp6.h`,
|
||||||
|
`netmpls/mpls.h`,
|
||||||
|
}
|
||||||
|
|
||||||
|
ctls := [...]string{
|
||||||
|
`kern`,
|
||||||
|
`vm`,
|
||||||
|
`fs`,
|
||||||
|
`net`,
|
||||||
|
//debug /* Special handling required */
|
||||||
|
`hw`,
|
||||||
|
//machdep /* Arch specific */
|
||||||
|
`user`,
|
||||||
|
`ddb`,
|
||||||
|
//vfs /* Special handling required */
|
||||||
|
`fs.posix`,
|
||||||
|
`kern.forkstat`,
|
||||||
|
`kern.intrcnt`,
|
||||||
|
`kern.malloc`,
|
||||||
|
`kern.nchstats`,
|
||||||
|
`kern.seminfo`,
|
||||||
|
`kern.shminfo`,
|
||||||
|
`kern.timecounter`,
|
||||||
|
`kern.tty`,
|
||||||
|
`kern.watchdog`,
|
||||||
|
`net.bpf`,
|
||||||
|
`net.ifq`,
|
||||||
|
`net.inet`,
|
||||||
|
`net.inet.ah`,
|
||||||
|
`net.inet.carp`,
|
||||||
|
`net.inet.divert`,
|
||||||
|
`net.inet.esp`,
|
||||||
|
`net.inet.etherip`,
|
||||||
|
`net.inet.gre`,
|
||||||
|
`net.inet.icmp`,
|
||||||
|
`net.inet.igmp`,
|
||||||
|
`net.inet.ip`,
|
||||||
|
`net.inet.ip.ifq`,
|
||||||
|
`net.inet.ipcomp`,
|
||||||
|
`net.inet.ipip`,
|
||||||
|
`net.inet.mobileip`,
|
||||||
|
`net.inet.pfsync`,
|
||||||
|
`net.inet.pim`,
|
||||||
|
`net.inet.tcp`,
|
||||||
|
`net.inet.udp`,
|
||||||
|
`net.inet6`,
|
||||||
|
`net.inet6.divert`,
|
||||||
|
`net.inet6.ip6`,
|
||||||
|
`net.inet6.icmp6`,
|
||||||
|
`net.inet6.pim6`,
|
||||||
|
`net.inet6.tcp6`,
|
||||||
|
`net.inet6.udp6`,
|
||||||
|
`net.mpls`,
|
||||||
|
`net.mpls.ifq`,
|
||||||
|
`net.key`,
|
||||||
|
`net.pflow`,
|
||||||
|
`net.pfsync`,
|
||||||
|
`net.pipex`,
|
||||||
|
`net.rt`,
|
||||||
|
`vm.swapencrypt`,
|
||||||
|
//vfsgenctl /* Special handling required */
|
||||||
|
}
|
||||||
|
|
||||||
|
// Node name "fixups"
|
||||||
|
ctlMap := map[string]string{
|
||||||
|
"ipproto": "net.inet",
|
||||||
|
"net.inet.ipproto": "net.inet",
|
||||||
|
"net.inet6.ipv6proto": "net.inet6",
|
||||||
|
"net.inet6.ipv6": "net.inet6.ip6",
|
||||||
|
"net.inet.icmpv6": "net.inet6.icmp6",
|
||||||
|
"net.inet6.divert6": "net.inet6.divert",
|
||||||
|
"net.inet6.tcp6": "net.inet.tcp",
|
||||||
|
"net.inet6.udp6": "net.inet.udp",
|
||||||
|
"mpls": "net.mpls",
|
||||||
|
"swpenc": "vm.swapencrypt",
|
||||||
|
}
|
||||||
|
|
||||||
|
// Node mappings
|
||||||
|
nodeMap = map[string]string{
|
||||||
|
"net.inet.ip.ifq": "net.ifq",
|
||||||
|
"net.inet.pfsync": "net.pfsync",
|
||||||
|
"net.mpls.ifq": "net.ifq",
|
||||||
|
}
|
||||||
|
|
||||||
|
mCtls := make(map[string]bool)
|
||||||
|
for _, ctl := range ctls {
|
||||||
|
mCtls[ctl] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, header := range headers {
|
||||||
|
debug("Processing " + header)
|
||||||
|
file, err := os.Open(filepath.Join("/usr/include", header))
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
var sub []string
|
||||||
|
if reMatch(ctlNames1RE, s.Text(), &sub) ||
|
||||||
|
reMatch(ctlNames2RE, s.Text(), &sub) ||
|
||||||
|
reMatch(ctlNames3RE, s.Text(), &sub) {
|
||||||
|
if sub[1] == `CTL_NAMES` {
|
||||||
|
// Top level.
|
||||||
|
node = &mib
|
||||||
|
} else {
|
||||||
|
// Node.
|
||||||
|
nodename := strings.ToLower(sub[2])
|
||||||
|
ctlName := ""
|
||||||
|
if reMatch(netInetRE, header, &sub) {
|
||||||
|
ctlName = "net.inet." + nodename
|
||||||
|
} else if reMatch(netInet6RE, header, &sub) {
|
||||||
|
ctlName = "net.inet6." + nodename
|
||||||
|
} else if reMatch(netRE, header, &sub) {
|
||||||
|
ctlName = "net." + nodename
|
||||||
|
} else {
|
||||||
|
ctlName = nodename
|
||||||
|
ctlName = fsNetKernRE.ReplaceAllString(ctlName, `$1.`)
|
||||||
|
}
|
||||||
|
|
||||||
|
if val, ok := ctlMap[ctlName]; ok {
|
||||||
|
ctlName = val
|
||||||
|
}
|
||||||
|
if _, ok := mCtls[ctlName]; !ok {
|
||||||
|
debug("Ignoring " + ctlName + "...")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Walk down from the top of the MIB.
|
||||||
|
node = &mib
|
||||||
|
for _, part := range strings.Split(ctlName, ".") {
|
||||||
|
if _, ok := (*node)[part]; !ok {
|
||||||
|
debug("Missing node " + part)
|
||||||
|
(*node)[part] = nodeElement{n: 0, t: "", pE: &map[string]nodeElement{}}
|
||||||
|
}
|
||||||
|
node = (*node)[part].pE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Populate current node with entries.
|
||||||
|
i := -1
|
||||||
|
for !strings.HasPrefix(s.Text(), "}") {
|
||||||
|
s.Scan()
|
||||||
|
if reMatch(bracesRE, s.Text(), &sub) {
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
if !reMatch(ctlTypeRE, s.Text(), &sub) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
(*node)[sub[1]] = nodeElement{n: i, t: sub[2], pE: &map[string]nodeElement{}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err = s.Err()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
buildSysctl(&mib, "", []int{})
|
||||||
|
|
||||||
|
sort.Strings(sysCtl)
|
||||||
|
text := strings.Join(sysCtl, "")
|
||||||
|
|
||||||
|
fmt.Printf(srcTemplate, cmdLine(), buildTags(), text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate = `// %s
|
||||||
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
type mibentry struct {
|
||||||
|
ctlname string
|
||||||
|
ctloid []_C_int
|
||||||
|
}
|
||||||
|
|
||||||
|
var sysctlMib = []mibentry {
|
||||||
|
%s
|
||||||
|
}
|
||||||
|
`
|
265
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
265
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
|
@ -1,265 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
# Copyright 2011 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.
|
|
||||||
|
|
||||||
#
|
|
||||||
# Parse the header files for OpenBSD and generate a Go usable sysctl MIB.
|
|
||||||
#
|
|
||||||
# Build a MIB with each entry being an array containing the level, type and
|
|
||||||
# a hash that will contain additional entries if the current entry is a node.
|
|
||||||
# We then walk this MIB and create a flattened sysctl name to OID hash.
|
|
||||||
#
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $debug = 0;
|
|
||||||
my %ctls = ();
|
|
||||||
|
|
||||||
my @headers = qw (
|
|
||||||
sys/sysctl.h
|
|
||||||
sys/socket.h
|
|
||||||
sys/tty.h
|
|
||||||
sys/malloc.h
|
|
||||||
sys/mount.h
|
|
||||||
sys/namei.h
|
|
||||||
sys/sem.h
|
|
||||||
sys/shm.h
|
|
||||||
sys/vmmeter.h
|
|
||||||
uvm/uvmexp.h
|
|
||||||
uvm/uvm_param.h
|
|
||||||
uvm/uvm_swap_encrypt.h
|
|
||||||
ddb/db_var.h
|
|
||||||
net/if.h
|
|
||||||
net/if_pfsync.h
|
|
||||||
net/pipex.h
|
|
||||||
netinet/in.h
|
|
||||||
netinet/icmp_var.h
|
|
||||||
netinet/igmp_var.h
|
|
||||||
netinet/ip_ah.h
|
|
||||||
netinet/ip_carp.h
|
|
||||||
netinet/ip_divert.h
|
|
||||||
netinet/ip_esp.h
|
|
||||||
netinet/ip_ether.h
|
|
||||||
netinet/ip_gre.h
|
|
||||||
netinet/ip_ipcomp.h
|
|
||||||
netinet/ip_ipip.h
|
|
||||||
netinet/pim_var.h
|
|
||||||
netinet/tcp_var.h
|
|
||||||
netinet/udp_var.h
|
|
||||||
netinet6/in6.h
|
|
||||||
netinet6/ip6_divert.h
|
|
||||||
netinet6/pim6_var.h
|
|
||||||
netinet/icmp6.h
|
|
||||||
netmpls/mpls.h
|
|
||||||
);
|
|
||||||
|
|
||||||
my @ctls = qw (
|
|
||||||
kern
|
|
||||||
vm
|
|
||||||
fs
|
|
||||||
net
|
|
||||||
#debug # Special handling required
|
|
||||||
hw
|
|
||||||
#machdep # Arch specific
|
|
||||||
user
|
|
||||||
ddb
|
|
||||||
#vfs # Special handling required
|
|
||||||
fs.posix
|
|
||||||
kern.forkstat
|
|
||||||
kern.intrcnt
|
|
||||||
kern.malloc
|
|
||||||
kern.nchstats
|
|
||||||
kern.seminfo
|
|
||||||
kern.shminfo
|
|
||||||
kern.timecounter
|
|
||||||
kern.tty
|
|
||||||
kern.watchdog
|
|
||||||
net.bpf
|
|
||||||
net.ifq
|
|
||||||
net.inet
|
|
||||||
net.inet.ah
|
|
||||||
net.inet.carp
|
|
||||||
net.inet.divert
|
|
||||||
net.inet.esp
|
|
||||||
net.inet.etherip
|
|
||||||
net.inet.gre
|
|
||||||
net.inet.icmp
|
|
||||||
net.inet.igmp
|
|
||||||
net.inet.ip
|
|
||||||
net.inet.ip.ifq
|
|
||||||
net.inet.ipcomp
|
|
||||||
net.inet.ipip
|
|
||||||
net.inet.mobileip
|
|
||||||
net.inet.pfsync
|
|
||||||
net.inet.pim
|
|
||||||
net.inet.tcp
|
|
||||||
net.inet.udp
|
|
||||||
net.inet6
|
|
||||||
net.inet6.divert
|
|
||||||
net.inet6.ip6
|
|
||||||
net.inet6.icmp6
|
|
||||||
net.inet6.pim6
|
|
||||||
net.inet6.tcp6
|
|
||||||
net.inet6.udp6
|
|
||||||
net.mpls
|
|
||||||
net.mpls.ifq
|
|
||||||
net.key
|
|
||||||
net.pflow
|
|
||||||
net.pfsync
|
|
||||||
net.pipex
|
|
||||||
net.rt
|
|
||||||
vm.swapencrypt
|
|
||||||
#vfsgenctl # Special handling required
|
|
||||||
);
|
|
||||||
|
|
||||||
# Node name "fixups"
|
|
||||||
my %ctl_map = (
|
|
||||||
"ipproto" => "net.inet",
|
|
||||||
"net.inet.ipproto" => "net.inet",
|
|
||||||
"net.inet6.ipv6proto" => "net.inet6",
|
|
||||||
"net.inet6.ipv6" => "net.inet6.ip6",
|
|
||||||
"net.inet.icmpv6" => "net.inet6.icmp6",
|
|
||||||
"net.inet6.divert6" => "net.inet6.divert",
|
|
||||||
"net.inet6.tcp6" => "net.inet.tcp",
|
|
||||||
"net.inet6.udp6" => "net.inet.udp",
|
|
||||||
"mpls" => "net.mpls",
|
|
||||||
"swpenc" => "vm.swapencrypt"
|
|
||||||
);
|
|
||||||
|
|
||||||
# Node mappings
|
|
||||||
my %node_map = (
|
|
||||||
"net.inet.ip.ifq" => "net.ifq",
|
|
||||||
"net.inet.pfsync" => "net.pfsync",
|
|
||||||
"net.mpls.ifq" => "net.ifq"
|
|
||||||
);
|
|
||||||
|
|
||||||
my $ctlname;
|
|
||||||
my %mib = ();
|
|
||||||
my %sysctl = ();
|
|
||||||
my $node;
|
|
||||||
|
|
||||||
sub debug() {
|
|
||||||
print STDERR "$_[0]\n" if $debug;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Walk the MIB and build a sysctl name to OID mapping.
|
|
||||||
sub build_sysctl() {
|
|
||||||
my ($node, $name, $oid) = @_;
|
|
||||||
my %node = %{$node};
|
|
||||||
my @oid = @{$oid};
|
|
||||||
|
|
||||||
foreach my $key (sort keys %node) {
|
|
||||||
my @node = @{$node{$key}};
|
|
||||||
my $nodename = $name.($name ne '' ? '.' : '').$key;
|
|
||||||
my @nodeoid = (@oid, $node[0]);
|
|
||||||
if ($node[1] eq 'CTLTYPE_NODE') {
|
|
||||||
if (exists $node_map{$nodename}) {
|
|
||||||
$node = \%mib;
|
|
||||||
$ctlname = $node_map{$nodename};
|
|
||||||
foreach my $part (split /\./, $ctlname) {
|
|
||||||
$node = \%{@{$$node{$part}}[2]};
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$node = $node[2];
|
|
||||||
}
|
|
||||||
&build_sysctl($node, $nodename, \@nodeoid);
|
|
||||||
} elsif ($node[1] ne '') {
|
|
||||||
$sysctl{$nodename} = \@nodeoid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach my $ctl (@ctls) {
|
|
||||||
$ctls{$ctl} = $ctl;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Build MIB
|
|
||||||
foreach my $header (@headers) {
|
|
||||||
&debug("Processing $header...");
|
|
||||||
open HEADER, "/usr/include/$header" ||
|
|
||||||
print STDERR "Failed to open $header\n";
|
|
||||||
while (<HEADER>) {
|
|
||||||
if ($_ =~ /^#define\s+(CTL_NAMES)\s+{/ ||
|
|
||||||
$_ =~ /^#define\s+(CTL_(.*)_NAMES)\s+{/ ||
|
|
||||||
$_ =~ /^#define\s+((.*)CTL_NAMES)\s+{/) {
|
|
||||||
if ($1 eq 'CTL_NAMES') {
|
|
||||||
# Top level.
|
|
||||||
$node = \%mib;
|
|
||||||
} else {
|
|
||||||
# Node.
|
|
||||||
my $nodename = lc($2);
|
|
||||||
if ($header =~ /^netinet\//) {
|
|
||||||
$ctlname = "net.inet.$nodename";
|
|
||||||
} elsif ($header =~ /^netinet6\//) {
|
|
||||||
$ctlname = "net.inet6.$nodename";
|
|
||||||
} elsif ($header =~ /^net\//) {
|
|
||||||
$ctlname = "net.$nodename";
|
|
||||||
} else {
|
|
||||||
$ctlname = "$nodename";
|
|
||||||
$ctlname =~ s/^(fs|net|kern)_/$1\./;
|
|
||||||
}
|
|
||||||
if (exists $ctl_map{$ctlname}) {
|
|
||||||
$ctlname = $ctl_map{$ctlname};
|
|
||||||
}
|
|
||||||
if (not exists $ctls{$ctlname}) {
|
|
||||||
&debug("Ignoring $ctlname...");
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Walk down from the top of the MIB.
|
|
||||||
$node = \%mib;
|
|
||||||
foreach my $part (split /\./, $ctlname) {
|
|
||||||
if (not exists $$node{$part}) {
|
|
||||||
&debug("Missing node $part");
|
|
||||||
$$node{$part} = [ 0, '', {} ];
|
|
||||||
}
|
|
||||||
$node = \%{@{$$node{$part}}[2]};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Populate current node with entries.
|
|
||||||
my $i = -1;
|
|
||||||
while (defined($_) && $_ !~ /^}/) {
|
|
||||||
$_ = <HEADER>;
|
|
||||||
$i++ if $_ =~ /{.*}/;
|
|
||||||
next if $_ !~ /{\s+"(\w+)",\s+(CTLTYPE_[A-Z]+)\s+}/;
|
|
||||||
$$node{$1} = [ $i, $2, {} ];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
close HEADER;
|
|
||||||
}
|
|
||||||
|
|
||||||
&build_sysctl(\%mib, "", []);
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// mksysctl_openbsd.pl
|
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
|
||||||
|
|
||||||
package unix;
|
|
||||||
|
|
||||||
type mibentry struct {
|
|
||||||
ctlname string
|
|
||||||
ctloid []_C_int
|
|
||||||
}
|
|
||||||
|
|
||||||
var sysctlMib = []mibentry {
|
|
||||||
EOF
|
|
||||||
|
|
||||||
foreach my $name (sort keys %sysctl) {
|
|
||||||
my @oid = @{$sysctl{$name}};
|
|
||||||
print "\t{ \"$name\", []_C_int{ ", join(', ', @oid), " } }, \n";
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
}
|
|
||||||
EOF
|
|
190
vendor/golang.org/x/sys/unix/mksysnum.go
generated
vendored
Normal file
190
vendor/golang.org/x/sys/unix/mksysnum.go
generated
vendored
Normal file
|
@ -0,0 +1,190 @@
|
||||||
|
// 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 ignore
|
||||||
|
|
||||||
|
// Generate system call table for DragonFly, NetBSD,
|
||||||
|
// FreeBSD, OpenBSD or Darwin from master list
|
||||||
|
// (for example, /usr/src/sys/kern/syscalls.master or
|
||||||
|
// sys/syscall.h).
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
goos, goarch string
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksysnum.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags
|
||||||
|
func buildTags() string {
|
||||||
|
return fmt.Sprintf("%s,%s", goarch, goos)
|
||||||
|
}
|
||||||
|
|
||||||
|
func checkErr(err error) {
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// source string and substring slice for regexp
|
||||||
|
type re struct {
|
||||||
|
str string // source string
|
||||||
|
sub []string // matched sub-string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Match performs regular expression match
|
||||||
|
func (r *re) Match(exp string) bool {
|
||||||
|
r.sub = regexp.MustCompile(exp).FindStringSubmatch(r.str)
|
||||||
|
if r.sub != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// fetchFile fetches a text file from URL
|
||||||
|
func fetchFile(URL string) io.Reader {
|
||||||
|
resp, err := http.Get(URL)
|
||||||
|
checkErr(err)
|
||||||
|
defer resp.Body.Close()
|
||||||
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
|
checkErr(err)
|
||||||
|
return strings.NewReader(string(body))
|
||||||
|
}
|
||||||
|
|
||||||
|
// readFile reads a text file from path
|
||||||
|
func readFile(path string) io.Reader {
|
||||||
|
file, err := os.Open(os.Args[1])
|
||||||
|
checkErr(err)
|
||||||
|
return file
|
||||||
|
}
|
||||||
|
|
||||||
|
func format(name, num, proto string) string {
|
||||||
|
name = strings.ToUpper(name)
|
||||||
|
// There are multiple entries for enosys and nosys, so comment them out.
|
||||||
|
nm := re{str: name}
|
||||||
|
if nm.Match(`^SYS_E?NOSYS$`) {
|
||||||
|
name = fmt.Sprintf("// %s", name)
|
||||||
|
}
|
||||||
|
if name == `SYS_SYS_EXIT` {
|
||||||
|
name = `SYS_EXIT`
|
||||||
|
}
|
||||||
|
return fmt.Sprintf(" %s = %s; // %s\n", name, num, proto)
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
// Get the OS (using GOOS_TARGET if it exist)
|
||||||
|
goos = os.Getenv("GOOS_TARGET")
|
||||||
|
if goos == "" {
|
||||||
|
goos = os.Getenv("GOOS")
|
||||||
|
}
|
||||||
|
// Get the architecture (using GOARCH_TARGET if it exists)
|
||||||
|
goarch = os.Getenv("GOARCH_TARGET")
|
||||||
|
if goarch == "" {
|
||||||
|
goarch = os.Getenv("GOARCH")
|
||||||
|
}
|
||||||
|
// Check if GOOS and GOARCH environment variables are defined
|
||||||
|
if goarch == "" || goos == "" {
|
||||||
|
fmt.Fprintf(os.Stderr, "GOARCH or GOOS not defined in environment\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
file := strings.TrimSpace(os.Args[1])
|
||||||
|
var syscalls io.Reader
|
||||||
|
if strings.HasPrefix(file, "https://") || strings.HasPrefix(file, "http://") {
|
||||||
|
// Download syscalls.master file
|
||||||
|
syscalls = fetchFile(file)
|
||||||
|
} else {
|
||||||
|
syscalls = readFile(file)
|
||||||
|
}
|
||||||
|
|
||||||
|
var text, line string
|
||||||
|
s := bufio.NewScanner(syscalls)
|
||||||
|
for s.Scan() {
|
||||||
|
t := re{str: line}
|
||||||
|
if t.Match(`^(.*)\\$`) {
|
||||||
|
// Handle continuation
|
||||||
|
line = t.sub[1]
|
||||||
|
line += strings.TrimLeft(s.Text(), " \t")
|
||||||
|
} else {
|
||||||
|
// New line
|
||||||
|
line = s.Text()
|
||||||
|
}
|
||||||
|
t = re{str: line}
|
||||||
|
if t.Match(`\\$`) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
t = re{str: line}
|
||||||
|
|
||||||
|
switch goos {
|
||||||
|
case "dragonfly":
|
||||||
|
if t.Match(`^([0-9]+)\s+STD\s+({ \S+\s+(\w+).*)$`) {
|
||||||
|
num, proto := t.sub[1], t.sub[2]
|
||||||
|
name := fmt.Sprintf("SYS_%s", t.sub[3])
|
||||||
|
text += format(name, num, proto)
|
||||||
|
}
|
||||||
|
case "freebsd":
|
||||||
|
if t.Match(`^([0-9]+)\s+\S+\s+(?:NO)?STD\s+({ \S+\s+(\w+).*)$`) {
|
||||||
|
num, proto := t.sub[1], t.sub[2]
|
||||||
|
name := fmt.Sprintf("SYS_%s", t.sub[3])
|
||||||
|
text += format(name, num, proto)
|
||||||
|
}
|
||||||
|
case "openbsd":
|
||||||
|
if t.Match(`^([0-9]+)\s+STD\s+(NOLOCK\s+)?({ \S+\s+\*?(\w+).*)$`) {
|
||||||
|
num, proto, name := t.sub[1], t.sub[3], t.sub[4]
|
||||||
|
text += format(name, num, proto)
|
||||||
|
}
|
||||||
|
case "netbsd":
|
||||||
|
if t.Match(`^([0-9]+)\s+((STD)|(NOERR))\s+(RUMP\s+)?({\s+\S+\s*\*?\s*\|(\S+)\|(\S*)\|(\w+).*\s+})(\s+(\S+))?$`) {
|
||||||
|
num, proto, compat := t.sub[1], t.sub[6], t.sub[8]
|
||||||
|
name := t.sub[7] + "_" + t.sub[9]
|
||||||
|
if t.sub[11] != "" {
|
||||||
|
name = t.sub[7] + "_" + t.sub[11]
|
||||||
|
}
|
||||||
|
name = strings.ToUpper(name)
|
||||||
|
if compat == "" || compat == "13" || compat == "30" || compat == "50" {
|
||||||
|
text += fmt.Sprintf(" %s = %s; // %s\n", name, num, proto)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case "darwin":
|
||||||
|
if t.Match(`^#define\s+SYS_(\w+)\s+([0-9]+)`) {
|
||||||
|
name, num := t.sub[1], t.sub[2]
|
||||||
|
name = strings.ToUpper(name)
|
||||||
|
text += fmt.Sprintf(" SYS_%s = %s;\n", name, num)
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
fmt.Fprintf(os.Stderr, "unrecognized GOOS=%s\n", goos)
|
||||||
|
os.Exit(1)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err := s.Err()
|
||||||
|
checkErr(err)
|
||||||
|
|
||||||
|
fmt.Printf(template, cmdLine(), buildTags(), text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const template = `// %s
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const(
|
||||||
|
%s)`
|
39
vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
generated
vendored
39
vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
generated
vendored
|
@ -1,39 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
# Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
#
|
|
||||||
# Generate system call table for Darwin from sys/syscall.h
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $command = "mksysnum_darwin.pl " . join(' ', @ARGV);
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// $command
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
EOF
|
|
||||||
|
|
||||||
while(<>){
|
|
||||||
if(/^#define\s+SYS_(\w+)\s+([0-9]+)/){
|
|
||||||
my $name = $1;
|
|
||||||
my $num = $2;
|
|
||||||
$name =~ y/a-z/A-Z/;
|
|
||||||
print " SYS_$name = $num;"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
)
|
|
||||||
EOF
|
|
50
vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
generated
vendored
50
vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
generated
vendored
|
@ -1,50 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
# Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
#
|
|
||||||
# Generate system call table for DragonFly from master list
|
|
||||||
# (for example, /usr/src/sys/kern/syscalls.master).
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $command = "mksysnum_dragonfly.pl " . join(' ', @ARGV);
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// $command
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
EOF
|
|
||||||
|
|
||||||
while(<>){
|
|
||||||
if(/^([0-9]+)\s+STD\s+({ \S+\s+(\w+).*)$/){
|
|
||||||
my $num = $1;
|
|
||||||
my $proto = $2;
|
|
||||||
my $name = "SYS_$3";
|
|
||||||
$name =~ y/a-z/A-Z/;
|
|
||||||
|
|
||||||
# There are multiple entries for enosys and nosys, so comment them out.
|
|
||||||
if($name =~ /^SYS_E?NOSYS$/){
|
|
||||||
$name = "// $name";
|
|
||||||
}
|
|
||||||
if($name eq 'SYS_SYS_EXIT'){
|
|
||||||
$name = 'SYS_EXIT';
|
|
||||||
}
|
|
||||||
|
|
||||||
print " $name = $num; // $proto\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
)
|
|
||||||
EOF
|
|
50
vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
generated
vendored
50
vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
generated
vendored
|
@ -1,50 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
# Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
#
|
|
||||||
# Generate system call table for FreeBSD from master list
|
|
||||||
# (for example, /usr/src/sys/kern/syscalls.master).
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $command = "mksysnum_freebsd.pl " . join(' ', @ARGV);
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// $command
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
EOF
|
|
||||||
|
|
||||||
while(<>){
|
|
||||||
if(/^([0-9]+)\s+\S+\s+(?:NO)?STD\s+({ \S+\s+(\w+).*)$/){
|
|
||||||
my $num = $1;
|
|
||||||
my $proto = $2;
|
|
||||||
my $name = "SYS_$3";
|
|
||||||
$name =~ y/a-z/A-Z/;
|
|
||||||
|
|
||||||
# There are multiple entries for enosys and nosys, so comment them out.
|
|
||||||
if($name =~ /^SYS_E?NOSYS$/){
|
|
||||||
$name = "// $name";
|
|
||||||
}
|
|
||||||
if($name eq 'SYS_SYS_EXIT'){
|
|
||||||
$name = 'SYS_EXIT';
|
|
||||||
}
|
|
||||||
|
|
||||||
print " $name = $num; // $proto\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
)
|
|
||||||
EOF
|
|
58
vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
generated
vendored
58
vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
generated
vendored
|
@ -1,58 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
# Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
#
|
|
||||||
# Generate system call table for OpenBSD from master list
|
|
||||||
# (for example, /usr/src/sys/kern/syscalls.master).
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $command = "mksysnum_netbsd.pl " . join(' ', @ARGV);
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// $command
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
EOF
|
|
||||||
|
|
||||||
my $line = '';
|
|
||||||
while(<>){
|
|
||||||
if($line =~ /^(.*)\\$/) {
|
|
||||||
# Handle continuation
|
|
||||||
$line = $1;
|
|
||||||
$_ =~ s/^\s+//;
|
|
||||||
$line .= $_;
|
|
||||||
} else {
|
|
||||||
# New line
|
|
||||||
$line = $_;
|
|
||||||
}
|
|
||||||
next if $line =~ /\\$/;
|
|
||||||
if($line =~ /^([0-9]+)\s+((STD)|(NOERR))\s+(RUMP\s+)?({\s+\S+\s*\*?\s*\|(\S+)\|(\S*)\|(\w+).*\s+})(\s+(\S+))?$/) {
|
|
||||||
my $num = $1;
|
|
||||||
my $proto = $6;
|
|
||||||
my $compat = $8;
|
|
||||||
my $name = "$7_$9";
|
|
||||||
|
|
||||||
$name = "$7_$11" if $11 ne '';
|
|
||||||
$name =~ y/a-z/A-Z/;
|
|
||||||
|
|
||||||
if($compat eq '' || $compat eq '13' || $compat eq '30' || $compat eq '50') {
|
|
||||||
print " $name = $num; // $proto\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
)
|
|
||||||
EOF
|
|
50
vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
generated
vendored
50
vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
generated
vendored
|
@ -1,50 +0,0 @@
|
||||||
#!/usr/bin/env perl
|
|
||||||
# Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
#
|
|
||||||
# Generate system call table for OpenBSD from master list
|
|
||||||
# (for example, /usr/src/sys/kern/syscalls.master).
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $command = "mksysnum_openbsd.pl " . join(' ', @ARGV);
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// $command
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
EOF
|
|
||||||
|
|
||||||
while(<>){
|
|
||||||
if(/^([0-9]+)\s+STD\s+(NOLOCK\s+)?({ \S+\s+\*?(\w+).*)$/){
|
|
||||||
my $num = $1;
|
|
||||||
my $proto = $3;
|
|
||||||
my $name = $4;
|
|
||||||
$name =~ y/a-z/A-Z/;
|
|
||||||
|
|
||||||
# There are multiple entries for enosys and nosys, so comment them out.
|
|
||||||
if($name =~ /^SYS_E?NOSYS$/){
|
|
||||||
$name = "// $name";
|
|
||||||
}
|
|
||||||
if($name eq 'SYS_SYS_EXIT'){
|
|
||||||
$name = 'SYS_EXIT';
|
|
||||||
}
|
|
||||||
|
|
||||||
print " $name = $num; // $proto\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
)
|
|
||||||
EOF
|
|
|
@ -2,9 +2,6 @@
|
||||||
// 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 openbsd
|
|
||||||
// +build 386 amd64 arm
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
26
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
26
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
|
@ -8,17 +8,33 @@
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "unsafe"
|
import (
|
||||||
|
"runtime"
|
||||||
|
"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
|
|
||||||
// Solaris kernels still require 32-bit aligned access to
|
switch runtime.GOOS {
|
||||||
// network subsystem.
|
case "aix":
|
||||||
if darwin64Bit || dragonfly64Bit || solaris64Bit {
|
// There is no alignment on AIX.
|
||||||
|
salign = 1
|
||||||
|
case "darwin", "dragonfly", "solaris", "illumos":
|
||||||
|
// NOTE: It seems like 64-bit Darwin, DragonFly BSD,
|
||||||
|
// illumos, and Solaris kernels still require 32-bit
|
||||||
|
// aligned access to network subsystem.
|
||||||
|
if SizeofPtr == 8 {
|
||||||
salign = 4
|
salign = 4
|
||||||
}
|
}
|
||||||
|
case "netbsd", "openbsd":
|
||||||
|
// NetBSD and OpenBSD armv7 require 64-bit alignment.
|
||||||
|
if runtime.GOARCH == "arm" {
|
||||||
|
salign = 8
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (salen + salign - 1) & ^(salign - 1)
|
return (salen + salign - 1) & ^(salign - 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
|
@ -50,5 +50,4 @@ func BytePtrFromString(s string) (*byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
||||||
// See mkunix.pl.
|
|
||||||
var _zero uintptr
|
var _zero uintptr
|
||||||
|
|
40
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
40
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
|
@ -13,10 +13,7 @@
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import "unsafe"
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wrapped
|
* Wrapped
|
||||||
|
@ -230,7 +227,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
|
|
||||||
// Some versions of AIX have a bug in getsockname (see IV78655).
|
// Some versions of AIX have a bug in getsockname (see IV78655).
|
||||||
// We can't rely on sa.Len being set correctly.
|
// We can't rely on sa.Len being set correctly.
|
||||||
n := SizeofSockaddrUnix - 3 // substract leading Family, Len, terminating NUL.
|
n := SizeofSockaddrUnix - 3 // subtract leading Family, Len, terminating NUL.
|
||||||
for i := 0; i < n; i++ {
|
for i := 0; i < n; i++ {
|
||||||
if pp.Path[i] == 0 {
|
if pp.Path[i] == 0 {
|
||||||
n = i
|
n = i
|
||||||
|
@ -271,6 +268,13 @@ func Gettimeofday(tv *Timeval) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
return -1, ENOSYS
|
return -1, ENOSYS
|
||||||
|
@ -385,10 +389,6 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
|
|
||||||
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
|
||||||
return syscall.Flock(fd, how)
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Direct access
|
* Direct access
|
||||||
*/
|
*/
|
||||||
|
@ -444,8 +444,6 @@ func Flock(fd int, how int) (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)
|
||||||
//TODO 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 Ustat(dev int, ubuf *Ustat_t) (err error)
|
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||||
|
@ -470,8 +468,7 @@ func Flock(fd int, how int) (err error) {
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = pread64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = pread64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = pwrite64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = pwrite64
|
||||||
//TODO Select
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
// //sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
|
||||||
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
//sysnb Setregid(rgid int, egid int) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
|
@ -493,8 +490,10 @@ func Flock(fd int, how int) (err error) {
|
||||||
//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
|
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
|
||||||
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
|
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
|
||||||
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
// In order to use msghdr structure with Control, Controllen, nrecvmsg and nsendmsg must be used.
|
||||||
|
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = nrecvmsg
|
||||||
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = nsendmsg
|
||||||
|
|
||||||
//sys munmap(addr uintptr, length uintptr) (err error)
|
//sys munmap(addr uintptr, length uintptr) (err error)
|
||||||
|
|
||||||
|
@ -545,3 +544,14 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
//sys gettimeofday(tv *Timeval, tzp *Timezone) (err error)
|
//sys gettimeofday(tv *Timeval, tzp *Timezone) (err error)
|
||||||
//sysnb Time(t *Time_t) (tt Time_t, err error)
|
//sysnb Time(t *Time_t) (tt Time_t, err error)
|
||||||
//sys Utime(path string, buf *Utimbuf) (err error)
|
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||||
|
|
||||||
|
//sys Getsystemcfg(label int) (n uint64)
|
||||||
|
|
||||||
|
//sys umount(target string) (err error)
|
||||||
|
func Unmount(target string, flags int) (err error) {
|
||||||
|
if flags != 0 {
|
||||||
|
// AIX doesn't have any flags for umount.
|
||||||
|
return ENOSYS
|
||||||
|
}
|
||||||
|
return umount(target)
|
||||||
|
}
|
||||||
|
|
80
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
80
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
|
@ -108,17 +108,8 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
_, _, e1 := Syscall6(
|
if err := getattrlist(_p0, unsafe.Pointer(&attrList), unsafe.Pointer(&attrBuf[0]), uintptr(len(attrBuf)), int(options)); err != nil {
|
||||||
SYS_GETATTRLIST,
|
return nil, err
|
||||||
uintptr(unsafe.Pointer(_p0)),
|
|
||||||
uintptr(unsafe.Pointer(&attrList)),
|
|
||||||
uintptr(unsafe.Pointer(&attrBuf[0])),
|
|
||||||
uintptr(len(attrBuf)),
|
|
||||||
uintptr(options),
|
|
||||||
0,
|
|
||||||
)
|
|
||||||
if e1 != 0 {
|
|
||||||
return nil, e1
|
|
||||||
}
|
}
|
||||||
size := *(*uint32)(unsafe.Pointer(&attrBuf[0]))
|
size := *(*uint32)(unsafe.Pointer(&attrBuf[0]))
|
||||||
|
|
||||||
|
@ -151,6 +142,25 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error)
|
||||||
|
|
||||||
|
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() (r int, w int, err error)
|
//sysnb pipe() (r int, w int, err error)
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
|
@ -168,12 +178,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags))
|
return getfsstat(_p0, bufsize, flags)
|
||||||
n = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func xattrPointer(dest []byte) *byte {
|
func xattrPointer(dest []byte) *byte {
|
||||||
|
@ -298,21 +303,16 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||||
if flags&AT_SYMLINK_NOFOLLOW != 0 {
|
if flags&AT_SYMLINK_NOFOLLOW != 0 {
|
||||||
options |= FSOPT_NOFOLLOW
|
options |= FSOPT_NOFOLLOW
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(
|
return setattrlist(
|
||||||
SYS_SETATTRLIST,
|
_p0,
|
||||||
uintptr(unsafe.Pointer(_p0)),
|
unsafe.Pointer(&attrList),
|
||||||
uintptr(unsafe.Pointer(&attrList)),
|
unsafe.Pointer(&attributes),
|
||||||
uintptr(unsafe.Pointer(&attributes)),
|
unsafe.Sizeof(attributes),
|
||||||
uintptr(unsafe.Sizeof(attributes)),
|
options)
|
||||||
uintptr(options),
|
|
||||||
0,
|
|
||||||
)
|
|
||||||
if e1 != 0 {
|
|
||||||
return e1
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error)
|
||||||
|
|
||||||
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error {
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error {
|
||||||
// Darwin doesn't support SYS_UTIMENSAT
|
// Darwin doesn't support SYS_UTIMENSAT
|
||||||
return ENOSYS
|
return ENOSYS
|
||||||
|
@ -411,6 +411,18 @@ func Uname(uname *Utsname) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
var length = int64(count)
|
||||||
|
err = sendfile(infd, outfd, *offset, &length, nil, 0)
|
||||||
|
written = int(length)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
@ -421,6 +433,7 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
//sys Chown(path string, uid int, gid int) (err error)
|
//sys Chown(path string, uid int, gid int) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err 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)
|
||||||
|
@ -435,12 +448,8 @@ 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_FSTAT64
|
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
|
||||||
//sys 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 Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
|
||||||
//sys Getdtablesize() (size int)
|
//sys Getdtablesize() (size int)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
//sysnb Geteuid() (uid int)
|
//sysnb Geteuid() (uid int)
|
||||||
|
@ -460,7 +469,6 @@ 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_LSTAT64
|
|
||||||
//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)
|
||||||
|
@ -492,8 +500,6 @@ 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_STAT64
|
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
|
||||||
//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)
|
||||||
|
|
23
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
generated
vendored
23
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
generated
vendored
|
@ -8,7 +8,6 @@ package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
@ -48,21 +47,17 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
var length = uint64(count)
|
|
||||||
|
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offset>>32), uintptr(unsafe.Pointer(&length)), 0, 0, 0, 0)
|
|
||||||
|
|
||||||
written = int(length)
|
|
||||||
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
// of darwin/386 the syscall is called sysctl instead of __sysctl.
|
// of darwin/386 the syscall is called sysctl instead of __sysctl.
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
||||||
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||||
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||||
|
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
||||||
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
||||||
|
|
23
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
23
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
|
@ -8,7 +8,6 @@ package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
@ -48,21 +47,17 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
var length = uint64(count)
|
|
||||||
|
|
||||||
_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0)
|
|
||||||
|
|
||||||
written = int(length)
|
|
||||||
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
// of darwin/amd64 the syscall is called sysctl instead of __sysctl.
|
// of darwin/amd64 the syscall is called sysctl instead of __sysctl.
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
||||||
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||||
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||||
|
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
||||||
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
||||||
|
|
26
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
generated
vendored
26
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
generated
vendored
|
@ -6,7 +6,6 @@ package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
@ -46,21 +45,20 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
var length = uint64(count)
|
|
||||||
|
|
||||||
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offset>>32), uintptr(unsafe.Pointer(&length)), 0, 0, 0, 0)
|
|
||||||
|
|
||||||
written = int(length)
|
|
||||||
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
// of darwin/arm the syscall is called sysctl instead of __sysctl.
|
// of darwin/arm the syscall is called sysctl instead of __sysctl.
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
||||||
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||||
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||||
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
return 0, ENOSYS
|
||||||
|
}
|
||||||
|
|
26
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
26
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
|
@ -8,7 +8,6 @@ package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
@ -48,21 +47,20 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
var length = uint64(count)
|
|
||||||
|
|
||||||
_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0)
|
|
||||||
|
|
||||||
written = int(length)
|
|
||||||
|
|
||||||
if e1 != 0 {
|
|
||||||
err = e1
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
// of darwin/arm64 the syscall is called sysctl instead of __sysctl.
|
// of darwin/arm64 the syscall is called sysctl instead of __sysctl.
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
||||||
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||||
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||||
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
return 0, ENOSYS
|
||||||
|
}
|
||||||
|
|
31
vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go
generated
vendored
Normal file
31
vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
// Copyright 2018 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin,go1.12
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
// Implemented in the runtime package (runtime/sys_darwin.go)
|
||||||
|
func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) // 32-bit only
|
||||||
|
func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
|
||||||
|
//go:linkname syscall_syscall syscall.syscall
|
||||||
|
//go:linkname syscall_syscall6 syscall.syscall6
|
||||||
|
//go:linkname syscall_syscall6X syscall.syscall6X
|
||||||
|
//go:linkname syscall_syscall9 syscall.syscall9
|
||||||
|
//go:linkname syscall_rawSyscall syscall.rawSyscall
|
||||||
|
//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
|
||||||
|
|
||||||
|
// Find the entry point for f. See comments in runtime/proc.go for the
|
||||||
|
// function of the same name.
|
||||||
|
//go:nosplit
|
||||||
|
func funcPC(f func()) uintptr {
|
||||||
|
return **(**uintptr)(unsafe.Pointer(&f))
|
||||||
|
}
|
8
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
|
@ -234,6 +234,13 @@ func Uname(uname *Utsname) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
@ -297,6 +304,7 @@ func Uname(uname *Utsname) 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 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
|
||||||
|
|
7
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
|
@ -500,6 +500,13 @@ func convertFromDirents11(buf []byte, old []byte) int {
|
||||||
return dstPos
|
return dstPos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
|
52
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
Normal file
52
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
// 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 arm64,freebsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
var writtenOut uint64 = 0
|
||||||
|
_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
|
||||||
|
|
||||||
|
written = int(writtenOut)
|
||||||
|
|
||||||
|
if e1 != 0 {
|
||||||
|
err = e1
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
169
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
169
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
|
@ -14,6 +14,7 @@ package unix
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"net"
|
"net"
|
||||||
|
"runtime"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
@ -38,6 +39,20 @@ func Creat(path string, mode uint32) (fd int, err error) {
|
||||||
return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
|
return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys FanotifyInit(flags uint, event_f_flags uint) (fd int, err error)
|
||||||
|
//sys fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error)
|
||||||
|
|
||||||
|
func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) (err error) {
|
||||||
|
if pathname == "" {
|
||||||
|
return fanotifyMark(fd, flags, mask, dirFd, nil)
|
||||||
|
}
|
||||||
|
p, err := BytePtrFromString(pathname)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return fanotifyMark(fd, flags, mask, dirFd, p)
|
||||||
|
}
|
||||||
|
|
||||||
//sys fchmodat(dirfd int, path string, mode uint32) (err error)
|
//sys fchmodat(dirfd int, path string, mode uint32) (err error)
|
||||||
|
|
||||||
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
@ -80,6 +95,12 @@ 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)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlSetRTCTime(fd int, value *RTCTime) error {
|
||||||
|
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
// from fd, using the specified request number.
|
// from fd, using the specified request number.
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
|
@ -100,6 +121,12 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlGetRTCTime(fd int) (*RTCTime, error) {
|
||||||
|
var value RTCTime
|
||||||
|
err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
|
//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
|
||||||
|
|
||||||
func Link(oldpath string, newpath string) (err error) {
|
func Link(oldpath string, newpath string) (err error) {
|
||||||
|
@ -977,10 +1004,50 @@ func GetsockoptString(fd, level, opt int) (string, error) {
|
||||||
return string(buf[:vallen-1]), nil
|
return string(buf[:vallen-1]), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) {
|
||||||
|
var value TpacketStats
|
||||||
|
vallen := _Socklen(SizeofTpacketStats)
|
||||||
|
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetsockoptTpacketStatsV3(fd, level, opt int) (*TpacketStatsV3, error) {
|
||||||
|
var value TpacketStatsV3
|
||||||
|
vallen := _Socklen(SizeofTpacketStatsV3)
|
||||||
|
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
|
func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {
|
||||||
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetsockoptSockFprog attaches a classic BPF or an extended BPF program to a
|
||||||
|
// socket to filter incoming packets. See 'man 7 socket' for usage information.
|
||||||
|
func SetsockoptSockFprog(fd, level, opt int, fprog *SockFprog) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(fprog), unsafe.Sizeof(*fprog))
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetsockoptCanRawFilter(fd, level, opt int, filter []CanFilter) error {
|
||||||
|
var p unsafe.Pointer
|
||||||
|
if len(filter) > 0 {
|
||||||
|
p = unsafe.Pointer(&filter[0])
|
||||||
|
}
|
||||||
|
return setsockopt(fd, level, opt, p, uintptr(len(filter)*SizeofCanFilter))
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetsockoptTpacketReq(fd, level, opt int, tp *TpacketReq) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
|
||||||
|
}
|
||||||
|
|
||||||
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
|
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
|
||||||
|
|
||||||
// KeyctlInt calls keyctl commands in which each argument is an int.
|
// KeyctlInt calls keyctl commands in which each argument is an int.
|
||||||
|
@ -1360,6 +1427,13 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
||||||
return mount(source, target, fstype, flags, datap)
|
return mount(source, target, fstype, flags, datap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
// Sendto
|
// Sendto
|
||||||
// Recvfrom
|
// Recvfrom
|
||||||
// Socketpair
|
// Socketpair
|
||||||
|
@ -1374,6 +1448,7 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
//sys ClockGetres(clockid int32, res *Timespec) (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 ClockNanosleep(clockid int32, flags int, request *Timespec, remain *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 DeleteModule(name string, flags int) (err error)
|
||||||
|
@ -1434,7 +1509,6 @@ func Getpgrp() (pid int) {
|
||||||
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6
|
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Removexattr(path string, attr string) (err error)
|
//sys Removexattr(path string, attr string) (err error)
|
||||||
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
|
||||||
//sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error)
|
//sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error)
|
||||||
//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error)
|
//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error)
|
||||||
//sys Setdomainname(p []byte) (err error)
|
//sys Setdomainname(p []byte) (err error)
|
||||||
|
@ -1459,6 +1533,7 @@ func Setgid(uid int) (err error) {
|
||||||
|
|
||||||
//sys Setpriority(which int, who int, prio int) (err error)
|
//sys Setpriority(which int, who int, prio int) (err error)
|
||||||
//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
|
//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
|
||||||
|
//sys Signalfd(fd int, mask *Sigset_t, flags int) = SYS_SIGNALFD4
|
||||||
//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 Syncfs(fd int) (err error)
|
//sys Syncfs(fd int) (err error)
|
||||||
|
@ -1503,15 +1578,12 @@ func Munmap(b []byte) (err error) {
|
||||||
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
||||||
// using the specified flags.
|
// using the specified flags.
|
||||||
func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
||||||
n, _, errno := Syscall6(
|
var p unsafe.Pointer
|
||||||
SYS_VMSPLICE,
|
if len(iovs) > 0 {
|
||||||
uintptr(fd),
|
p = unsafe.Pointer(&iovs[0])
|
||||||
uintptr(unsafe.Pointer(&iovs[0])),
|
}
|
||||||
uintptr(len(iovs)),
|
|
||||||
uintptr(flags),
|
n, _, errno := Syscall6(SYS_VMSPLICE, uintptr(fd), uintptr(p), uintptr(len(iovs)), uintptr(flags), 0, 0)
|
||||||
0,
|
|
||||||
0,
|
|
||||||
)
|
|
||||||
if errno != 0 {
|
if errno != 0 {
|
||||||
return 0, syscall.Errno(errno)
|
return 0, syscall.Errno(errno)
|
||||||
}
|
}
|
||||||
|
@ -1590,6 +1662,82 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
return EACCES
|
return EACCES
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) = SYS_NAME_TO_HANDLE_AT
|
||||||
|
//sys openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) = SYS_OPEN_BY_HANDLE_AT
|
||||||
|
|
||||||
|
// fileHandle is the argument to nameToHandleAt and openByHandleAt. We
|
||||||
|
// originally tried to generate it via unix/linux/types.go with "type
|
||||||
|
// fileHandle C.struct_file_handle" but that generated empty structs
|
||||||
|
// for mips64 and mips64le. Instead, hard code it for now (it's the
|
||||||
|
// same everywhere else) until the mips64 generator issue is fixed.
|
||||||
|
type fileHandle struct {
|
||||||
|
Bytes uint32
|
||||||
|
Type int32
|
||||||
|
}
|
||||||
|
|
||||||
|
// FileHandle represents the C struct file_handle used by
|
||||||
|
// name_to_handle_at (see NameToHandleAt) and open_by_handle_at (see
|
||||||
|
// OpenByHandleAt).
|
||||||
|
type FileHandle struct {
|
||||||
|
*fileHandle
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewFileHandle constructs a FileHandle.
|
||||||
|
func NewFileHandle(handleType int32, handle []byte) FileHandle {
|
||||||
|
const hdrSize = unsafe.Sizeof(fileHandle{})
|
||||||
|
buf := make([]byte, hdrSize+uintptr(len(handle)))
|
||||||
|
copy(buf[hdrSize:], handle)
|
||||||
|
fh := (*fileHandle)(unsafe.Pointer(&buf[0]))
|
||||||
|
fh.Type = handleType
|
||||||
|
fh.Bytes = uint32(len(handle))
|
||||||
|
return FileHandle{fh}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fh *FileHandle) Size() int { return int(fh.fileHandle.Bytes) }
|
||||||
|
func (fh *FileHandle) Type() int32 { return fh.fileHandle.Type }
|
||||||
|
func (fh *FileHandle) Bytes() []byte {
|
||||||
|
n := fh.Size()
|
||||||
|
if n == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return (*[1 << 30]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type)) + 4))[:n:n]
|
||||||
|
}
|
||||||
|
|
||||||
|
// NameToHandleAt wraps the name_to_handle_at system call; it obtains
|
||||||
|
// a handle for a path name.
|
||||||
|
func NameToHandleAt(dirfd int, path string, flags int) (handle FileHandle, mountID int, err error) {
|
||||||
|
var mid _C_int
|
||||||
|
// Try first with a small buffer, assuming the handle will
|
||||||
|
// only be 32 bytes.
|
||||||
|
size := uint32(32 + unsafe.Sizeof(fileHandle{}))
|
||||||
|
didResize := false
|
||||||
|
for {
|
||||||
|
buf := make([]byte, size)
|
||||||
|
fh := (*fileHandle)(unsafe.Pointer(&buf[0]))
|
||||||
|
fh.Bytes = size - uint32(unsafe.Sizeof(fileHandle{}))
|
||||||
|
err = nameToHandleAt(dirfd, path, fh, &mid, flags)
|
||||||
|
if err == EOVERFLOW {
|
||||||
|
if didResize {
|
||||||
|
// We shouldn't need to resize more than once
|
||||||
|
return
|
||||||
|
}
|
||||||
|
didResize = true
|
||||||
|
size = fh.Bytes + uint32(unsafe.Sizeof(fileHandle{}))
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
return FileHandle{fh}, int(mid), nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OpenByHandleAt wraps the open_by_handle_at system call; it opens a
|
||||||
|
// file via a handle as previously returned by NameToHandleAt.
|
||||||
|
func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err error) {
|
||||||
|
return openByHandleAt(mountFD, handle.fileHandle, flags)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
|
@ -1678,7 +1826,6 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
// Shmdt
|
// Shmdt
|
||||||
// Shmget
|
// Shmget
|
||||||
// Sigaltstack
|
// Sigaltstack
|
||||||
// Signalfd
|
|
||||||
// Swapoff
|
// Swapoff
|
||||||
// Swapon
|
// Swapon
|
||||||
// Sysfs
|
// Sysfs
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
|
@ -68,6 +68,7 @@ func Pipe2(p []int, flags int) (err error) {
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
||||||
//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
|
//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32
|
||||||
|
|
19
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
19
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
|
@ -20,15 +20,30 @@ package unix
|
||||||
//sysnb Getgid() (gid int)
|
//sysnb Getgid() (gid int)
|
||||||
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Getrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Getuid() (uid int)
|
//sysnb Getuid() (uid int)
|
||||||
//sysnb InotifyInit() (fd int, err error)
|
//sysnb inotifyInit() (fd int, err error)
|
||||||
|
|
||||||
|
func InotifyInit() (fd int, err error) {
|
||||||
|
// First try inotify_init1, because Android's seccomp policy blocks the latter.
|
||||||
|
fd, err = InotifyInit1(0)
|
||||||
|
if err == ENOSYS {
|
||||||
|
fd, err = inotifyInit()
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
//sys Ioperm(from int, num int, on int) (err error)
|
//sys Ioperm(from int, num int, on int) (err error)
|
||||||
//sys Iopl(level int) (err error)
|
//sys Iopl(level int) (err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
|
||||||
|
func Lstat(path string, stat *Stat_t) (err error) {
|
||||||
|
return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
|
|
||||||
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||||
|
|
15
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
15
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
|
@ -19,12 +19,18 @@ func setTimeval(sec, usec int64) Timeval {
|
||||||
return Timeval{Sec: int32(sec), Usec: int32(usec)}
|
return Timeval{Sec: int32(sec), Usec: int32(usec)}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//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 {
|
||||||
return EINVAL
|
return EINVAL
|
||||||
}
|
}
|
||||||
var pp [2]_C_int
|
var pp [2]_C_int
|
||||||
|
// Try pipe2 first for Android O, then try pipe for kernel 2.6.23.
|
||||||
err = pipe2(&pp, 0)
|
err = pipe2(&pp, 0)
|
||||||
|
if err == ENOSYS {
|
||||||
|
err = pipe(&pp)
|
||||||
|
}
|
||||||
p[0] = int(pp[0])
|
p[0] = int(pp[0])
|
||||||
p[1] = int(pp[1])
|
p[1] = int(pp[1])
|
||||||
return
|
return
|
||||||
|
@ -89,6 +95,7 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32
|
||||||
|
@ -257,3 +264,11 @@ 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 armSyncFileRange(fd int, flags int, off int64, n int64) (err error) = SYS_ARM_SYNC_FILE_RANGE
|
||||||
|
|
||||||
|
func SyncFileRange(fd int, off int64, n int64, flags int) error {
|
||||||
|
// The sync_file_range and arm_sync_file_range syscalls differ only in the
|
||||||
|
// order of their arguments.
|
||||||
|
return armSyncFileRange(fd, flags, off, n)
|
||||||
|
}
|
||||||
|
|
14
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
14
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
|
@ -30,6 +30,7 @@ func EpollCreate(size int) (fd int, err error) {
|
||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
|
|
||||||
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||||
|
@ -207,3 +208,16 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return ppoll(&fds[0], len(fds), ts, nil)
|
return ppoll(&fds[0], len(fds), ts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
|
|
10
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
10
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
|
@ -12,7 +12,6 @@ package unix
|
||||||
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
|
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT
|
|
||||||
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
|
@ -25,6 +24,7 @@ package unix
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
|
|
||||||
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||||
|
@ -148,6 +148,7 @@ type stat_t struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys fstat(fd int, st *stat_t) (err error)
|
//sys fstat(fd int, st *stat_t) (err error)
|
||||||
|
//sys fstatat(dirfd int, path string, st *stat_t, flags int) (err error) = SYS_NEWFSTATAT
|
||||||
//sys lstat(path string, st *stat_t) (err error)
|
//sys lstat(path string, st *stat_t) (err error)
|
||||||
//sys stat(path string, st *stat_t) (err error)
|
//sys stat(path string, st *stat_t) (err error)
|
||||||
|
|
||||||
|
@ -158,6 +159,13 @@ func Fstat(fd int, s *Stat_t) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Fstatat(dirfd int, path string, s *Stat_t, flags int) (err error) {
|
||||||
|
st := &stat_t{}
|
||||||
|
err = fstatat(dirfd, path, st, flags)
|
||||||
|
fillStat_t(s, st)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func Lstat(path string, s *Stat_t) (err error) {
|
func Lstat(path string, s *Stat_t) (err error) {
|
||||||
st := &stat_t{}
|
st := &stat_t{}
|
||||||
err = lstat(path, st)
|
err = lstat(path, st)
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
|
@ -28,6 +28,7 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys Setfsgid(gid int) (err error)
|
//sys Setfsgid(gid int) (err error)
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
|
@ -30,6 +30,7 @@ package unix
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
17
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
|
@ -207,3 +207,20 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return ppoll(&fds[0], len(fds), ts, nil)
|
return ppoll(&fds[0], len(fds), ts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
|
@ -30,6 +30,7 @@ import (
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
|
@ -26,6 +26,7 @@ package unix
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
|
|
7
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
|
@ -244,6 +244,13 @@ func Uname(uname *Utsname) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
|
33
vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go
generated
vendored
Normal file
33
vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build arm64,netbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: int32(usec)}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = uint32(mode)
|
||||||
|
k.Flags = uint32(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
24
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
24
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 SysctlClockinfo(name string) (*Clockinfo, error) {
|
||||||
|
mib, err := sysctlmib(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
n := uintptr(SizeofClockinfo)
|
||||||
|
var ci Clockinfo
|
||||||
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if n != SizeofClockinfo {
|
||||||
|
return nil, EIO
|
||||||
|
}
|
||||||
|
return &ci, nil
|
||||||
|
}
|
||||||
|
|
||||||
func SysctlUvmexp(name string) (*Uvmexp, error) {
|
func SysctlUvmexp(name string) (*Uvmexp, error) {
|
||||||
mib, err := sysctlmib(name)
|
mib, err := sysctlmib(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -94,6 +111,13 @@ func Getwd() (string, error) {
|
||||||
return string(buf[:n]), nil
|
return string(buf[:n]), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
return -1, ENOSYS
|
return -1, ENOSYS
|
||||||
|
|
37
vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
generated
vendored
Normal file
37
vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
generated
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build arm64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/amd64 the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
7
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
|
@ -585,6 +585,13 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
return poll(&fds[0], len(fds), timeout)
|
return poll(&fds[0], len(fds), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
if raceenabled {
|
||||||
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
|
}
|
||||||
|
return sendfile(outfd, infd, offset, count)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
|
69
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
69
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
|
@ -8,7 +8,6 @@ package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"runtime"
|
|
||||||
"sort"
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
@ -21,13 +20,6 @@ var (
|
||||||
Stderr = 2
|
Stderr = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
darwin64Bit = runtime.GOOS == "darwin" && SizeofPtr == 8
|
|
||||||
dragonfly64Bit = runtime.GOOS == "dragonfly" && SizeofPtr == 8
|
|
||||||
netbsd32Bit = runtime.GOOS == "netbsd" && SizeofPtr == 4
|
|
||||||
solaris64Bit = runtime.GOOS == "solaris" && SizeofPtr == 8
|
|
||||||
)
|
|
||||||
|
|
||||||
// Do the interface allocations only once for common
|
// Do the interface allocations only once for common
|
||||||
// Errno values.
|
// Errno values.
|
||||||
var (
|
var (
|
||||||
|
@ -36,6 +28,11 @@ var (
|
||||||
errENOENT error = syscall.ENOENT
|
errENOENT error = syscall.ENOENT
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
signalNameMapOnce sync.Once
|
||||||
|
signalNameMap map[string]syscall.Signal
|
||||||
|
)
|
||||||
|
|
||||||
// errnoErr returns common boxed Errno values, to prevent
|
// errnoErr returns common boxed Errno values, to prevent
|
||||||
// allocations at runtime.
|
// allocations at runtime.
|
||||||
func errnoErr(e syscall.Errno) error {
|
func errnoErr(e syscall.Errno) error {
|
||||||
|
@ -74,6 +71,19 @@ func SignalName(s syscall.Signal) string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignalNum returns the syscall.Signal for signal named s,
|
||||||
|
// or 0 if a signal with such name is not found.
|
||||||
|
// The signal name should start with "SIG".
|
||||||
|
func SignalNum(s string) syscall.Signal {
|
||||||
|
signalNameMapOnce.Do(func() {
|
||||||
|
signalNameMap = make(map[string]syscall.Signal)
|
||||||
|
for _, signal := range signalList {
|
||||||
|
signalNameMap[signal.name] = signal.num
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return signalNameMap[s]
|
||||||
|
}
|
||||||
|
|
||||||
// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
|
// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
|
||||||
func clen(n []byte) int {
|
func clen(n []byte) int {
|
||||||
i := bytes.IndexByte(n, 0)
|
i := bytes.IndexByte(n, 0)
|
||||||
|
@ -284,6 +294,13 @@ func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) {
|
||||||
return &tv, err
|
return &tv, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetsockoptUint64(fd, level, opt int) (value uint64, err error) {
|
||||||
|
var n uint64
|
||||||
|
vallen := _Socklen(8)
|
||||||
|
err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
|
func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
|
||||||
var rsa RawSockaddrAny
|
var rsa RawSockaddrAny
|
||||||
var len _Socklen = SizeofSockaddrAny
|
var len _Socklen = SizeofSockaddrAny
|
||||||
|
@ -334,13 +351,21 @@ func SetsockoptLinger(fd, level, opt int, l *Linger) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetsockoptString(fd, level, opt int, s string) (err error) {
|
func SetsockoptString(fd, level, opt int, s string) (err error) {
|
||||||
return setsockopt(fd, level, opt, unsafe.Pointer(&[]byte(s)[0]), uintptr(len(s)))
|
var p unsafe.Pointer
|
||||||
|
if len(s) > 0 {
|
||||||
|
p = unsafe.Pointer(&[]byte(s)[0])
|
||||||
|
}
|
||||||
|
return setsockopt(fd, level, opt, p, uintptr(len(s)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) {
|
func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) {
|
||||||
return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv))
|
return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SetsockoptUint64(fd, level, opt int, value uint64) (err error) {
|
||||||
|
return setsockopt(fd, level, opt, unsafe.Pointer(&value), 8)
|
||||||
|
}
|
||||||
|
|
||||||
func Socket(domain, typ, proto int) (fd int, err error) {
|
func Socket(domain, typ, proto int) (fd int, err error) {
|
||||||
if domain == AF_INET6 && SocketDisableIPv6 {
|
if domain == AF_INET6 && SocketDisableIPv6 {
|
||||||
return -1, EAFNOSUPPORT
|
return -1, EAFNOSUPPORT
|
||||||
|
@ -359,13 +384,6 @@ func Socketpair(domain, typ, proto int) (fd [2]int, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
|
||||||
if raceenabled {
|
|
||||||
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
|
||||||
}
|
|
||||||
return sendfile(outfd, infd, offset, count)
|
|
||||||
}
|
|
||||||
|
|
||||||
var ioSync int64
|
var ioSync int64
|
||||||
|
|
||||||
func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) }
|
func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) }
|
||||||
|
@ -392,3 +410,22 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
|
||||||
func Exec(argv0 string, argv []string, envv []string) error {
|
func Exec(argv0 string, argv []string, envv []string) error {
|
||||||
return syscall.Exec(argv0, argv, envv)
|
return syscall.Exec(argv0, argv, envv)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Lutimes sets the access and modification times tv on path. If path refers to
|
||||||
|
// a symlink, it is not dereferenced and the timestamps are set on the symlink.
|
||||||
|
// If tv is nil, the access and modification times are set to the current time.
|
||||||
|
// Otherwise tv must contain exactly 2 elements, with access time as the first
|
||||||
|
// element and modification time as the second element.
|
||||||
|
func Lutimes(path string, tv []Timeval) error {
|
||||||
|
if tv == nil {
|
||||||
|
return UtimesNanoAt(AT_FDCWD, path, nil, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
if len(tv) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
ts := []Timespec{
|
||||||
|
NsecToTimespec(TimevalToNsec(tv[0])),
|
||||||
|
NsecToTimespec(TimevalToNsec(tv[1])),
|
||||||
|
}
|
||||||
|
return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW)
|
||||||
|
}
|
||||||
|
|
6
vendor/golang.org/x/sys/unix/types_darwin.go
generated
vendored
6
vendor/golang.org/x/sys/unix/types_darwin.go
generated
vendored
|
@ -275,3 +275,9 @@ const (
|
||||||
// uname
|
// uname
|
||||||
|
|
||||||
type Utsname C.struct_utsname
|
type Utsname C.struct_utsname
|
||||||
|
|
||||||
|
// Clockinfo
|
||||||
|
|
||||||
|
const SizeofClockinfo = C.sizeof_struct_clockinfo
|
||||||
|
|
||||||
|
type Clockinfo C.struct_clockinfo
|
||||||
|
|
6
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
6
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
|
@ -274,3 +274,9 @@ type Utsname C.struct_utsname
|
||||||
const SizeofUvmexp = C.sizeof_struct_uvmexp
|
const SizeofUvmexp = C.sizeof_struct_uvmexp
|
||||||
|
|
||||||
type Uvmexp C.struct_uvmexp
|
type Uvmexp C.struct_uvmexp
|
||||||
|
|
||||||
|
// Clockinfo
|
||||||
|
|
||||||
|
const SizeofClockinfo = C.sizeof_struct_clockinfo
|
||||||
|
|
||||||
|
type Clockinfo C.struct_clockinfo
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
// 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 openbsd
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
2
vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
generated
vendored
|
@ -926,6 +926,8 @@ const (
|
||||||
TCSETSF = 0x5404
|
TCSETSF = 0x5404
|
||||||
TCSETSW = 0x5403
|
TCSETSW = 0x5403
|
||||||
TCXONC = 0x540b
|
TCXONC = 0x540b
|
||||||
|
TIMER_ABSTIME = 0x3e7
|
||||||
|
TIMER_MAX = 0x20
|
||||||
TIOC = 0x5400
|
TIOC = 0x5400
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
|
|
4
vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
generated
vendored
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build ppc64,aix
|
// +build ppc64,aix
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -maix64 _const.go
|
// cgo -godefs -- -maix64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -926,6 +926,8 @@ const (
|
||||||
TCSETSF = 0x5404
|
TCSETSF = 0x5404
|
||||||
TCSETSW = 0x5403
|
TCSETSW = 0x5403
|
||||||
TCXONC = 0x540b
|
TCXONC = 0x540b
|
||||||
|
TIMER_ABSTIME = 0x3e7
|
||||||
|
TIMER_MAX = 0x20
|
||||||
TIOC = 0x5400
|
TIOC = 0x5400
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
|
|
1794
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go
generated
vendored
Normal file
1794
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
135
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80041270
|
BLKBSZGET = 0x80041270
|
||||||
BLKBSZSET = 0x40041271
|
BLKBSZSET = 0x40041271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,6 +491,60 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
|
@ -493,6 +552,7 @@ const (
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
FP_XSTATE_MAGIC2 = 0x46505845
|
FP_XSTATE_MAGIC2 = 0x46505845
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -514,7 +574,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -639,7 +699,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -707,6 +767,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -778,6 +839,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -913,6 +975,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -922,6 +989,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1101,6 +1172,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1122,7 +1194,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1244,6 +1316,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1385,6 +1458,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1422,8 +1501,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1525,6 +1606,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1732,6 +1820,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1882,6 +1972,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1893,6 +1984,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1919,6 +2021,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1930,9 +2034,17 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2012,7 +2124,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
|
@ -2026,6 +2138,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2040,6 +2153,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2059,6 +2173,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2073,6 +2190,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
|
@ -2089,6 +2207,7 @@ const (
|
||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
|
@ -2096,6 +2215,7 @@ const (
|
||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
|
@ -2149,6 +2269,7 @@ const (
|
||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
|
@ -2189,6 +2310,7 @@ const (
|
||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
|
@ -2216,8 +2338,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
|
@ -2379,6 +2503,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,6 +491,60 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
|
@ -493,6 +552,7 @@ const (
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
FP_XSTATE_MAGIC2 = 0x46505845
|
FP_XSTATE_MAGIC2 = 0x46505845
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -514,7 +574,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -639,7 +699,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -707,6 +767,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -778,6 +839,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -913,6 +975,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -922,6 +989,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1101,6 +1172,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1122,7 +1194,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1244,6 +1316,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1385,6 +1458,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1422,8 +1501,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1526,6 +1607,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1733,6 +1821,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1883,6 +1973,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1894,6 +1985,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1920,6 +2022,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1931,9 +2035,17 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2013,7 +2125,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
|
@ -2027,6 +2139,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2041,6 +2154,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2060,6 +2174,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2074,6 +2191,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
|
@ -2090,6 +2208,7 @@ const (
|
||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
|
@ -2097,6 +2216,7 @@ const (
|
||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
|
@ -2150,6 +2270,7 @@ const (
|
||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
|
@ -2190,6 +2311,7 @@ const (
|
||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
|
@ -2217,8 +2339,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
|
@ -2379,6 +2503,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80041270
|
BLKBSZGET = 0x80041270
|
||||||
BLKBSZSET = 0x40041271
|
BLKBSZSET = 0x40041271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1099,6 +1170,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1120,7 +1192,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1242,6 +1314,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1383,6 +1456,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1420,8 +1499,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1532,6 +1613,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1739,6 +1827,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1889,6 +1979,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1900,6 +1991,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1926,6 +2028,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1937,9 +2041,17 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2019,7 +2131,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
|
@ -2033,6 +2145,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2047,6 +2160,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2066,6 +2180,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2080,6 +2197,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
|
@ -2096,6 +2214,7 @@ const (
|
||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
|
@ -2103,6 +2222,7 @@ const (
|
||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
|
@ -2156,6 +2276,7 @@ const (
|
||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
|
@ -2196,6 +2317,7 @@ const (
|
||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
|
@ -2223,8 +2345,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
|
@ -2385,6 +2509,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -488,6 +493,60 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
|
@ -495,6 +554,7 @@ const (
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
FPSIMD_MAGIC = 0x46508001
|
FPSIMD_MAGIC = 0x46508001
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -516,7 +576,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -641,7 +701,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -709,6 +769,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -780,6 +841,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -915,6 +977,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -924,6 +991,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1102,6 +1173,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1123,7 +1195,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1245,6 +1317,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1386,6 +1459,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1423,8 +1502,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1516,6 +1597,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1723,6 +1811,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1873,6 +1963,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1884,6 +1975,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1910,6 +2012,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1921,9 +2025,17 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2004,7 +2116,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
|
@ -2018,6 +2130,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2032,6 +2145,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2051,6 +2165,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2065,6 +2182,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
|
@ -2081,6 +2199,7 @@ const (
|
||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
|
@ -2088,6 +2207,7 @@ const (
|
||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
|
@ -2141,6 +2261,7 @@ const (
|
||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
|
@ -2181,6 +2302,7 @@ const (
|
||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
|
@ -2208,8 +2330,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
|
@ -2370,6 +2494,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1099,6 +1170,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1120,7 +1192,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1242,6 +1314,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1383,6 +1456,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1420,8 +1499,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1525,6 +1606,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1732,6 +1820,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x80
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1882,6 +1972,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1893,6 +1984,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1919,6 +2021,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1930,10 +2034,18 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2013,7 +2125,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
|
@ -2026,6 +2138,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2040,6 +2153,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2059,6 +2173,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2073,6 +2190,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
TCSBRKP = 0x5486
|
TCSBRKP = 0x5486
|
||||||
|
@ -2086,6 +2204,7 @@ const (
|
||||||
TCSETSW = 0x540f
|
TCSETSW = 0x540f
|
||||||
TCSETSW2 = 0x8030542c
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
TIOCEXCL = 0x740d
|
TIOCEXCL = 0x740d
|
||||||
|
@ -2094,6 +2213,7 @@ const (
|
||||||
TIOCGETP = 0x7408
|
TIOCGETP = 0x7408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x5492
|
TIOCGICOUNT = 0x5492
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x548b
|
TIOCGLCKTRMIOS = 0x548b
|
||||||
TIOCGLTC = 0x7474
|
TIOCGLTC = 0x7474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
|
@ -2150,6 +2270,7 @@ const (
|
||||||
TIOCSETN = 0x740a
|
TIOCSETN = 0x740a
|
||||||
TIOCSETP = 0x7409
|
TIOCSETP = 0x7409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x548c
|
TIOCSLCKTRMIOS = 0x548c
|
||||||
TIOCSLTC = 0x7475
|
TIOCSLTC = 0x7475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
|
@ -2191,6 +2312,7 @@ const (
|
||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
|
@ -2218,8 +2340,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
|
@ -2381,6 +2505,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1099,6 +1170,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1120,7 +1192,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1242,6 +1314,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1383,6 +1456,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1420,8 +1499,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1525,6 +1606,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1732,6 +1820,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x80
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1882,6 +1972,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1893,6 +1984,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1919,6 +2021,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1930,10 +2034,18 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2013,7 +2125,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
|
@ -2026,6 +2138,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2040,6 +2153,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2059,6 +2173,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2073,6 +2190,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
TCSBRKP = 0x5486
|
TCSBRKP = 0x5486
|
||||||
|
@ -2086,6 +2204,7 @@ const (
|
||||||
TCSETSW = 0x540f
|
TCSETSW = 0x540f
|
||||||
TCSETSW2 = 0x8030542c
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
TIOCEXCL = 0x740d
|
TIOCEXCL = 0x740d
|
||||||
|
@ -2094,6 +2213,7 @@ const (
|
||||||
TIOCGETP = 0x7408
|
TIOCGETP = 0x7408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x5492
|
TIOCGICOUNT = 0x5492
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x548b
|
TIOCGLCKTRMIOS = 0x548b
|
||||||
TIOCGLTC = 0x7474
|
TIOCGLTC = 0x7474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
|
@ -2150,6 +2270,7 @@ const (
|
||||||
TIOCSETN = 0x740a
|
TIOCSETN = 0x740a
|
||||||
TIOCSETP = 0x7409
|
TIOCSETP = 0x7409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x548c
|
TIOCSLCKTRMIOS = 0x548c
|
||||||
TIOCSLTC = 0x7475
|
TIOCSLTC = 0x7475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
|
@ -2191,6 +2312,7 @@ const (
|
||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
|
@ -2218,8 +2340,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
|
@ -2381,6 +2505,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1099,6 +1170,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1120,7 +1192,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1242,6 +1314,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1383,6 +1456,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1420,8 +1499,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1525,6 +1606,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1732,6 +1820,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x80
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1882,6 +1972,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1893,6 +1984,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1919,6 +2021,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1930,10 +2034,18 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2013,7 +2125,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
|
@ -2026,6 +2138,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2040,6 +2153,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2059,6 +2173,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2073,6 +2190,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
TCSBRKP = 0x5486
|
TCSBRKP = 0x5486
|
||||||
|
@ -2086,6 +2204,7 @@ const (
|
||||||
TCSETSW = 0x540f
|
TCSETSW = 0x540f
|
||||||
TCSETSW2 = 0x8030542c
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
TIOCEXCL = 0x740d
|
TIOCEXCL = 0x740d
|
||||||
|
@ -2094,6 +2213,7 @@ const (
|
||||||
TIOCGETP = 0x7408
|
TIOCGETP = 0x7408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x5492
|
TIOCGICOUNT = 0x5492
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x548b
|
TIOCGLCKTRMIOS = 0x548b
|
||||||
TIOCGLTC = 0x7474
|
TIOCGLTC = 0x7474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
|
@ -2150,6 +2270,7 @@ const (
|
||||||
TIOCSETN = 0x740a
|
TIOCSETN = 0x740a
|
||||||
TIOCSETP = 0x7409
|
TIOCSETP = 0x7409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x548c
|
TIOCSLCKTRMIOS = 0x548c
|
||||||
TIOCSLTC = 0x7475
|
TIOCSLTC = 0x7475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
|
@ -2191,6 +2312,7 @@ const (
|
||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
|
@ -2218,8 +2340,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
|
@ -2381,6 +2505,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x2000
|
FLUSHO = 0x2000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1099,6 +1170,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1120,7 +1192,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1242,6 +1314,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1383,6 +1456,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1420,8 +1499,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1525,6 +1606,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1732,6 +1820,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x80
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1882,6 +1972,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1893,6 +1984,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1919,6 +2021,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1930,10 +2034,18 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2013,7 +2125,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x5407
|
TCFLSH = 0x5407
|
||||||
TCGETA = 0x5401
|
TCGETA = 0x5401
|
||||||
TCGETS = 0x540d
|
TCGETS = 0x540d
|
||||||
|
@ -2026,6 +2138,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2040,6 +2153,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2059,6 +2173,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2073,6 +2190,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x5410
|
TCSAFLUSH = 0x5410
|
||||||
TCSBRK = 0x5405
|
TCSBRK = 0x5405
|
||||||
TCSBRKP = 0x5486
|
TCSBRKP = 0x5486
|
||||||
|
@ -2086,6 +2204,7 @@ const (
|
||||||
TCSETSW = 0x540f
|
TCSETSW = 0x540f
|
||||||
TCSETSW2 = 0x8030542c
|
TCSETSW2 = 0x8030542c
|
||||||
TCXONC = 0x5406
|
TCXONC = 0x5406
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x80047478
|
TIOCCONS = 0x80047478
|
||||||
TIOCEXCL = 0x740d
|
TIOCEXCL = 0x740d
|
||||||
|
@ -2094,6 +2213,7 @@ const (
|
||||||
TIOCGETP = 0x7408
|
TIOCGETP = 0x7408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x5492
|
TIOCGICOUNT = 0x5492
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x548b
|
TIOCGLCKTRMIOS = 0x548b
|
||||||
TIOCGLTC = 0x7474
|
TIOCGLTC = 0x7474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
|
@ -2150,6 +2270,7 @@ const (
|
||||||
TIOCSETN = 0x740a
|
TIOCSETN = 0x740a
|
||||||
TIOCSETP = 0x7409
|
TIOCSETP = 0x7409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x548c
|
TIOCSLCKTRMIOS = 0x548c
|
||||||
TIOCSLTC = 0x7475
|
TIOCSLTC = 0x7475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
|
@ -2191,6 +2312,7 @@ const (
|
||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
|
@ -2218,8 +2340,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
|
@ -2381,6 +2505,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
137
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
137
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x3000
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x4000
|
FF1 = 0x4000
|
||||||
FFDLY = 0x4000
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1098,6 +1169,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1119,7 +1191,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1243,6 +1315,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1385,6 +1458,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1422,8 +1501,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1502,6 +1583,8 @@ const (
|
||||||
PTRACE_SINGLEBLOCK = 0x100
|
PTRACE_SINGLEBLOCK = 0x100
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSEMU = 0x1d
|
||||||
|
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
PT_CCR = 0x26
|
PT_CCR = 0x26
|
||||||
PT_CTR = 0x23
|
PT_CTR = 0x23
|
||||||
|
@ -1581,6 +1664,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1788,6 +1878,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1938,6 +2030,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1949,6 +2042,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1975,6 +2079,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x10
|
SO_RCVLOWAT = 0x10
|
||||||
SO_RCVTIMEO = 0x12
|
SO_RCVTIMEO = 0x12
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x12
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1986,9 +2092,17 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x11
|
SO_SNDLOWAT = 0x11
|
||||||
SO_SNDTIMEO = 0x13
|
SO_SNDTIMEO = 0x13
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x13
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2068,7 +2182,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x2000741f
|
TCFLSH = 0x2000741f
|
||||||
TCGETA = 0x40147417
|
TCGETA = 0x40147417
|
||||||
TCGETS = 0x402c7413
|
TCGETS = 0x402c7413
|
||||||
|
@ -2080,6 +2194,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2094,6 +2209,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2113,6 +2229,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2127,6 +2246,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x2000741d
|
TCSBRK = 0x2000741d
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
|
@ -2137,6 +2257,7 @@ const (
|
||||||
TCSETSF = 0x802c7416
|
TCSETSF = 0x802c7416
|
||||||
TCSETSW = 0x802c7415
|
TCSETSW = 0x802c7415
|
||||||
TCXONC = 0x2000741e
|
TCXONC = 0x2000741e
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
|
@ -2146,6 +2267,7 @@ const (
|
||||||
TIOCGETP = 0x40067408
|
TIOCGETP = 0x40067408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGLTC = 0x40067474
|
TIOCGLTC = 0x40067474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
|
@ -2206,6 +2328,7 @@ const (
|
||||||
TIOCSETN = 0x8006740a
|
TIOCSETN = 0x8006740a
|
||||||
TIOCSETP = 0x80067409
|
TIOCSETP = 0x80067409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSLTC = 0x80067475
|
TIOCSLTC = 0x80067475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
|
@ -2249,6 +2372,7 @@ const (
|
||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
|
@ -2276,8 +2400,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
|
@ -2438,6 +2564,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
137
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
137
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x3000
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x4000
|
FF1 = 0x4000
|
||||||
FFDLY = 0x4000
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1098,6 +1169,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1119,7 +1191,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1243,6 +1315,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1385,6 +1458,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1422,8 +1501,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1502,6 +1583,8 @@ const (
|
||||||
PTRACE_SINGLEBLOCK = 0x100
|
PTRACE_SINGLEBLOCK = 0x100
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSEMU = 0x1d
|
||||||
|
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
PT_CCR = 0x26
|
PT_CCR = 0x26
|
||||||
PT_CTR = 0x23
|
PT_CTR = 0x23
|
||||||
|
@ -1581,6 +1664,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1788,6 +1878,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1938,6 +2030,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1949,6 +2042,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1975,6 +2079,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x10
|
SO_RCVLOWAT = 0x10
|
||||||
SO_RCVTIMEO = 0x12
|
SO_RCVTIMEO = 0x12
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x12
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1986,9 +2092,17 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x11
|
SO_SNDLOWAT = 0x11
|
||||||
SO_SNDTIMEO = 0x13
|
SO_SNDTIMEO = 0x13
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x13
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2068,7 +2182,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x2000741f
|
TCFLSH = 0x2000741f
|
||||||
TCGETA = 0x40147417
|
TCGETA = 0x40147417
|
||||||
TCGETS = 0x402c7413
|
TCGETS = 0x402c7413
|
||||||
|
@ -2080,6 +2194,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2094,6 +2209,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2113,6 +2229,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2127,6 +2246,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x2000741d
|
TCSBRK = 0x2000741d
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
|
@ -2137,6 +2257,7 @@ const (
|
||||||
TCSETSF = 0x802c7416
|
TCSETSF = 0x802c7416
|
||||||
TCSETSW = 0x802c7415
|
TCSETSW = 0x802c7415
|
||||||
TCXONC = 0x2000741e
|
TCXONC = 0x2000741e
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
|
@ -2146,6 +2267,7 @@ const (
|
||||||
TIOCGETP = 0x40067408
|
TIOCGETP = 0x40067408
|
||||||
TIOCGEXCL = 0x40045440
|
TIOCGEXCL = 0x40045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGLTC = 0x40067474
|
TIOCGLTC = 0x40067474
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
|
@ -2206,6 +2328,7 @@ const (
|
||||||
TIOCSETN = 0x8006740a
|
TIOCSETN = 0x8006740a
|
||||||
TIOCSETP = 0x80067409
|
TIOCSETP = 0x80067409
|
||||||
TIOCSIG = 0x80045436
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSLTC = 0x80067475
|
TIOCSLTC = 0x80067475
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
|
@ -2249,6 +2372,7 @@ const (
|
||||||
TUNGETVNETBE = 0x400454df
|
TUNGETVNETBE = 0x400454df
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
TUNSETFILTEREBPF = 0x400454e1
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
|
@ -2276,8 +2400,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
|
@ -2438,6 +2564,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1099,6 +1170,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1120,7 +1192,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1242,6 +1314,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1383,6 +1456,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1420,8 +1499,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1513,6 +1594,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1720,6 +1808,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1870,6 +1960,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1881,6 +1972,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1907,6 +2009,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1918,9 +2022,17 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2000,7 +2112,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
|
@ -2014,6 +2126,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2028,6 +2141,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2047,6 +2161,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2061,6 +2178,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
|
@ -2077,6 +2195,7 @@ const (
|
||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
|
@ -2084,6 +2203,7 @@ const (
|
||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
|
@ -2137,6 +2257,7 @@ const (
|
||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
|
@ -2177,6 +2298,7 @@ const (
|
||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
|
@ -2204,8 +2326,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
|
@ -2366,6 +2490,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
135
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
135
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
|
@ -41,7 +41,7 @@ const (
|
||||||
AF_KEY = 0xf
|
AF_KEY = 0xf
|
||||||
AF_LLC = 0x1a
|
AF_LLC = 0x1a
|
||||||
AF_LOCAL = 0x1
|
AF_LOCAL = 0x1
|
||||||
AF_MAX = 0x2c
|
AF_MAX = 0x2d
|
||||||
AF_MPLS = 0x1c
|
AF_MPLS = 0x1c
|
||||||
AF_NETBEUI = 0xd
|
AF_NETBEUI = 0xd
|
||||||
AF_NETLINK = 0x10
|
AF_NETLINK = 0x10
|
||||||
|
@ -174,6 +174,7 @@ const (
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
BALLOON_KVM_MAGIC = 0x13661366
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
BDEVFS_MAGIC = 0x62646576
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINDERFS_SUPER_MAGIC = 0x6c6f6f70
|
||||||
BINFMTFS_MAGIC = 0x42494e4d
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
@ -319,6 +320,10 @@ const (
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
|
@ -486,12 +491,67 @@ const (
|
||||||
FALLOC_FL_PUNCH_HOLE = 0x2
|
FALLOC_FL_PUNCH_HOLE = 0x2
|
||||||
FALLOC_FL_UNSHARE_RANGE = 0x40
|
FALLOC_FL_UNSHARE_RANGE = 0x40
|
||||||
FALLOC_FL_ZERO_RANGE = 0x10
|
FALLOC_FL_ZERO_RANGE = 0x10
|
||||||
|
FANOTIFY_METADATA_VERSION = 0x3
|
||||||
|
FAN_ACCESS = 0x1
|
||||||
|
FAN_ACCESS_PERM = 0x20000
|
||||||
|
FAN_ALLOW = 0x1
|
||||||
|
FAN_ALL_CLASS_BITS = 0xc
|
||||||
|
FAN_ALL_EVENTS = 0x3b
|
||||||
|
FAN_ALL_INIT_FLAGS = 0x3f
|
||||||
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
|
FAN_AUDIT = 0x10
|
||||||
|
FAN_CLASS_CONTENT = 0x4
|
||||||
|
FAN_CLASS_NOTIF = 0x0
|
||||||
|
FAN_CLASS_PRE_CONTENT = 0x8
|
||||||
|
FAN_CLOEXEC = 0x1
|
||||||
|
FAN_CLOSE = 0x18
|
||||||
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
|
FAN_DENY = 0x2
|
||||||
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
|
FAN_MARK_ADD = 0x1
|
||||||
|
FAN_MARK_DONT_FOLLOW = 0x4
|
||||||
|
FAN_MARK_FILESYSTEM = 0x100
|
||||||
|
FAN_MARK_FLUSH = 0x80
|
||||||
|
FAN_MARK_IGNORED_MASK = 0x20
|
||||||
|
FAN_MARK_IGNORED_SURV_MODIFY = 0x40
|
||||||
|
FAN_MARK_INODE = 0x0
|
||||||
|
FAN_MARK_MOUNT = 0x10
|
||||||
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
|
FAN_MARK_REMOVE = 0x2
|
||||||
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
|
FAN_NOFD = -0x1
|
||||||
|
FAN_NONBLOCK = 0x2
|
||||||
|
FAN_ONDIR = 0x40000000
|
||||||
|
FAN_OPEN = 0x20
|
||||||
|
FAN_OPEN_EXEC = 0x1000
|
||||||
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
|
FAN_OPEN_PERM = 0x10000
|
||||||
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
|
FAN_REPORT_TID = 0x100
|
||||||
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
FF0 = 0x0
|
FF0 = 0x0
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FS_ENCRYPTION_MODE_ADIANTUM = 0x9
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -513,7 +573,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x7
|
||||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
|
@ -638,7 +698,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x9
|
IFA_MAX = 0xa
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -706,6 +766,7 @@ const (
|
||||||
IN_ISDIR = 0x40000000
|
IN_ISDIR = 0x40000000
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
IN_MASK_ADD = 0x20000000
|
IN_MASK_ADD = 0x20000000
|
||||||
|
IN_MASK_CREATE = 0x10000000
|
||||||
IN_MODIFY = 0x2
|
IN_MODIFY = 0x2
|
||||||
IN_MOVE = 0xc0
|
IN_MOVE = 0xc0
|
||||||
IN_MOVED_FROM = 0x40
|
IN_MOVED_FROM = 0x40
|
||||||
|
@ -777,6 +838,7 @@ const (
|
||||||
IPV6_MINHOPCOUNT = 0x49
|
IPV6_MINHOPCOUNT = 0x49
|
||||||
IPV6_MTU = 0x18
|
IPV6_MTU = 0x18
|
||||||
IPV6_MTU_DISCOVER = 0x17
|
IPV6_MTU_DISCOVER = 0x17
|
||||||
|
IPV6_MULTICAST_ALL = 0x1d
|
||||||
IPV6_MULTICAST_HOPS = 0x12
|
IPV6_MULTICAST_HOPS = 0x12
|
||||||
IPV6_MULTICAST_IF = 0x11
|
IPV6_MULTICAST_IF = 0x11
|
||||||
IPV6_MULTICAST_LOOP = 0x13
|
IPV6_MULTICAST_LOOP = 0x13
|
||||||
|
@ -912,6 +974,11 @@ const (
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
KEYCTL_PKEY_QUERY = 0x18
|
||||||
|
KEYCTL_PKEY_SIGN = 0x1b
|
||||||
|
KEYCTL_PKEY_VERIFY = 0x1c
|
||||||
KEYCTL_READ = 0xb
|
KEYCTL_READ = 0xb
|
||||||
KEYCTL_REJECT = 0x13
|
KEYCTL_REJECT = 0x13
|
||||||
KEYCTL_RESTRICT_KEYRING = 0x1d
|
KEYCTL_RESTRICT_KEYRING = 0x1d
|
||||||
|
@ -921,6 +988,10 @@ const (
|
||||||
KEYCTL_SETPERM = 0x5
|
KEYCTL_SETPERM = 0x5
|
||||||
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
KEYCTL_SET_REQKEY_KEYRING = 0xe
|
||||||
KEYCTL_SET_TIMEOUT = 0xf
|
KEYCTL_SET_TIMEOUT = 0xf
|
||||||
|
KEYCTL_SUPPORTS_DECRYPT = 0x2
|
||||||
|
KEYCTL_SUPPORTS_ENCRYPT = 0x1
|
||||||
|
KEYCTL_SUPPORTS_SIGN = 0x4
|
||||||
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
|
@ -1099,6 +1170,7 @@ const (
|
||||||
NETLINK_FIB_LOOKUP = 0xa
|
NETLINK_FIB_LOOKUP = 0xa
|
||||||
NETLINK_FIREWALL = 0x3
|
NETLINK_FIREWALL = 0x3
|
||||||
NETLINK_GENERIC = 0x10
|
NETLINK_GENERIC = 0x10
|
||||||
|
NETLINK_GET_STRICT_CHK = 0xc
|
||||||
NETLINK_INET_DIAG = 0x4
|
NETLINK_INET_DIAG = 0x4
|
||||||
NETLINK_IP6_FW = 0xd
|
NETLINK_IP6_FW = 0xd
|
||||||
NETLINK_ISCSI = 0x8
|
NETLINK_ISCSI = 0x8
|
||||||
|
@ -1120,7 +1192,7 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x3
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
|
@ -1242,6 +1314,7 @@ const (
|
||||||
PACKET_FASTROUTE = 0x6
|
PACKET_FASTROUTE = 0x6
|
||||||
PACKET_HDRLEN = 0xb
|
PACKET_HDRLEN = 0xb
|
||||||
PACKET_HOST = 0x0
|
PACKET_HOST = 0x0
|
||||||
|
PACKET_IGNORE_OUTGOING = 0x17
|
||||||
PACKET_KERNEL = 0x7
|
PACKET_KERNEL = 0x7
|
||||||
PACKET_LOOPBACK = 0x5
|
PACKET_LOOPBACK = 0x5
|
||||||
PACKET_LOSS = 0xe
|
PACKET_LOSS = 0xe
|
||||||
|
@ -1383,6 +1456,12 @@ const (
|
||||||
PR_MCE_KILL_SET = 0x1
|
PR_MCE_KILL_SET = 0x1
|
||||||
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
PR_MPX_DISABLE_MANAGEMENT = 0x2c
|
||||||
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
PR_MPX_ENABLE_MANAGEMENT = 0x2b
|
||||||
|
PR_PAC_APDAKEY = 0x4
|
||||||
|
PR_PAC_APDBKEY = 0x8
|
||||||
|
PR_PAC_APGAKEY = 0x10
|
||||||
|
PR_PAC_APIAKEY = 0x1
|
||||||
|
PR_PAC_APIBKEY = 0x2
|
||||||
|
PR_PAC_RESET_KEYS = 0x36
|
||||||
PR_SET_CHILD_SUBREAPER = 0x24
|
PR_SET_CHILD_SUBREAPER = 0x24
|
||||||
PR_SET_DUMPABLE = 0x4
|
PR_SET_DUMPABLE = 0x4
|
||||||
PR_SET_ENDIAN = 0x14
|
PR_SET_ENDIAN = 0x14
|
||||||
|
@ -1420,8 +1499,10 @@ const (
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
PR_SPEC_NOT_AFFECTED = 0x0
|
PR_SPEC_NOT_AFFECTED = 0x0
|
||||||
PR_SPEC_PRCTL = 0x1
|
PR_SPEC_PRCTL = 0x1
|
||||||
PR_SPEC_STORE_BYPASS = 0x0
|
PR_SPEC_STORE_BYPASS = 0x0
|
||||||
|
@ -1586,6 +1667,13 @@ const (
|
||||||
RLIMIT_SIGPENDING = 0xb
|
RLIMIT_SIGPENDING = 0xb
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0xffffffffffffffff
|
RLIM_INFINITY = 0xffffffffffffffff
|
||||||
|
RNDADDENTROPY = 0x40085203
|
||||||
|
RNDADDTOENTCNT = 0x40045201
|
||||||
|
RNDCLEARPOOL = 0x5206
|
||||||
|
RNDGETENTCNT = 0x80045200
|
||||||
|
RNDGETPOOL = 0x80085202
|
||||||
|
RNDRESEEDCRNG = 0x5207
|
||||||
|
RNDZAPENTCNT = 0x5204
|
||||||
RTAX_ADVMSS = 0x8
|
RTAX_ADVMSS = 0x8
|
||||||
RTAX_CC_ALGO = 0x10
|
RTAX_CC_ALGO = 0x10
|
||||||
RTAX_CWND = 0x7
|
RTAX_CWND = 0x7
|
||||||
|
@ -1793,6 +1881,8 @@ const (
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
SECURITYFS_MAGIC = 0x73636673
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
SELINUX_MAGIC = 0xf97cff8c
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1943,6 +2033,7 @@ const (
|
||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
|
@ -1954,6 +2045,17 @@ const (
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
SO_EE_CODE_TXTIME_MISSED = 0x2
|
||||||
|
SO_EE_CODE_ZEROCOPY_COPIED = 0x1
|
||||||
|
SO_EE_ORIGIN_ICMP = 0x2
|
||||||
|
SO_EE_ORIGIN_ICMP6 = 0x3
|
||||||
|
SO_EE_ORIGIN_LOCAL = 0x1
|
||||||
|
SO_EE_ORIGIN_NONE = 0x0
|
||||||
|
SO_EE_ORIGIN_TIMESTAMPING = 0x4
|
||||||
|
SO_EE_ORIGIN_TXSTATUS = 0x4
|
||||||
|
SO_EE_ORIGIN_TXTIME = 0x6
|
||||||
|
SO_EE_ORIGIN_ZEROCOPY = 0x5
|
||||||
SO_ERROR = 0x4
|
SO_ERROR = 0x4
|
||||||
SO_GET_FILTER = 0x1a
|
SO_GET_FILTER = 0x1a
|
||||||
SO_INCOMING_CPU = 0x31
|
SO_INCOMING_CPU = 0x31
|
||||||
|
@ -1980,6 +2082,8 @@ const (
|
||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
|
@ -1991,9 +2095,17 @@ const (
|
||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
|
@ -2073,7 +2185,7 @@ const (
|
||||||
TASKSTATS_GENL_NAME = "TASKSTATS"
|
TASKSTATS_GENL_NAME = "TASKSTATS"
|
||||||
TASKSTATS_GENL_VERSION = 0x1
|
TASKSTATS_GENL_VERSION = 0x1
|
||||||
TASKSTATS_TYPE_MAX = 0x6
|
TASKSTATS_TYPE_MAX = 0x6
|
||||||
TASKSTATS_VERSION = 0x8
|
TASKSTATS_VERSION = 0x9
|
||||||
TCFLSH = 0x540b
|
TCFLSH = 0x540b
|
||||||
TCGETA = 0x5405
|
TCGETA = 0x5405
|
||||||
TCGETS = 0x5401
|
TCGETS = 0x5401
|
||||||
|
@ -2087,6 +2199,7 @@ const (
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
TCP_COOKIE_IN_ALWAYS = 0x1
|
TCP_COOKIE_IN_ALWAYS = 0x1
|
||||||
TCP_COOKIE_MAX = 0x10
|
TCP_COOKIE_MAX = 0x10
|
||||||
|
@ -2101,6 +2214,7 @@ const (
|
||||||
TCP_FASTOPEN_KEY = 0x21
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
TCP_FASTOPEN_NO_COOKIE = 0x22
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
|
TCP_INQ = 0x24
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
TCP_KEEPINTVL = 0x5
|
TCP_KEEPINTVL = 0x5
|
||||||
|
@ -2120,6 +2234,9 @@ const (
|
||||||
TCP_QUEUE_SEQ = 0x15
|
TCP_QUEUE_SEQ = 0x15
|
||||||
TCP_QUICKACK = 0xc
|
TCP_QUICKACK = 0xc
|
||||||
TCP_REPAIR = 0x13
|
TCP_REPAIR = 0x13
|
||||||
|
TCP_REPAIR_OFF = 0x0
|
||||||
|
TCP_REPAIR_OFF_NO_WP = -0x1
|
||||||
|
TCP_REPAIR_ON = 0x1
|
||||||
TCP_REPAIR_OPTIONS = 0x16
|
TCP_REPAIR_OPTIONS = 0x16
|
||||||
TCP_REPAIR_QUEUE = 0x14
|
TCP_REPAIR_QUEUE = 0x14
|
||||||
TCP_REPAIR_WINDOW = 0x1d
|
TCP_REPAIR_WINDOW = 0x1d
|
||||||
|
@ -2134,6 +2251,7 @@ const (
|
||||||
TCP_ULP = 0x1f
|
TCP_ULP = 0x1f
|
||||||
TCP_USER_TIMEOUT = 0x12
|
TCP_USER_TIMEOUT = 0x12
|
||||||
TCP_WINDOW_CLAMP = 0xa
|
TCP_WINDOW_CLAMP = 0xa
|
||||||
|
TCP_ZEROCOPY_RECEIVE = 0x23
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TCSBRK = 0x5409
|
TCSBRK = 0x5409
|
||||||
TCSBRKP = 0x5425
|
TCSBRKP = 0x5425
|
||||||
|
@ -2150,6 +2268,7 @@ const (
|
||||||
TCSETXF = 0x5434
|
TCSETXF = 0x5434
|
||||||
TCSETXW = 0x5435
|
TCSETXW = 0x5435
|
||||||
TCXONC = 0x540a
|
TCXONC = 0x540a
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
TIOCCBRK = 0x5428
|
TIOCCBRK = 0x5428
|
||||||
TIOCCONS = 0x541d
|
TIOCCONS = 0x541d
|
||||||
TIOCEXCL = 0x540c
|
TIOCEXCL = 0x540c
|
||||||
|
@ -2157,6 +2276,7 @@ const (
|
||||||
TIOCGETD = 0x5424
|
TIOCGETD = 0x5424
|
||||||
TIOCGEXCL = 0x80045440
|
TIOCGEXCL = 0x80045440
|
||||||
TIOCGICOUNT = 0x545d
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x80285442
|
||||||
TIOCGLCKTRMIOS = 0x5456
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
TIOCGPGRP = 0x540f
|
TIOCGPGRP = 0x540f
|
||||||
TIOCGPKT = 0x80045438
|
TIOCGPKT = 0x80045438
|
||||||
|
@ -2210,6 +2330,7 @@ const (
|
||||||
TIOCSER_TEMT = 0x1
|
TIOCSER_TEMT = 0x1
|
||||||
TIOCSETD = 0x5423
|
TIOCSETD = 0x5423
|
||||||
TIOCSIG = 0x40045436
|
TIOCSIG = 0x40045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
TIOCSLCKTRMIOS = 0x5457
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
TIOCSPGRP = 0x5410
|
TIOCSPGRP = 0x5410
|
||||||
TIOCSPTLCK = 0x40045431
|
TIOCSPTLCK = 0x40045431
|
||||||
|
@ -2250,6 +2371,7 @@ const (
|
||||||
TUNGETVNETBE = 0x800454df
|
TUNGETVNETBE = 0x800454df
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
|
TUNSETCARRIER = 0x400454e2
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
TUNSETFILTEREBPF = 0x800454e1
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
|
@ -2277,8 +2399,10 @@ const (
|
||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
|
@ -2439,6 +2563,7 @@ const (
|
||||||
XDP_UMEM_REG = 0x4
|
XDP_UMEM_REG = 0x4
|
||||||
XDP_ZEROCOPY = 0x4
|
XDP_ZEROCOPY = 0x4
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
861
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
861
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
File diff suppressed because it is too large
Load Diff
1762
vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go
generated
vendored
Normal file
1762
vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1789
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
generated
vendored
Normal file
1789
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
44
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
generated
vendored
44
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
generated
vendored
|
@ -1,4 +1,4 @@
|
||||||
// mksyscall_aix_ppc.pl -aix -tags aix,ppc syscall_aix.go syscall_aix_ppc.go
|
// go run mksyscall_aix_ppc.go -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
|
||||||
|
@ -83,6 +83,8 @@ int lstat(uintptr_t, uintptr_t);
|
||||||
int pause();
|
int pause();
|
||||||
int pread64(int, uintptr_t, size_t, long long);
|
int pread64(int, uintptr_t, size_t, long long);
|
||||||
int pwrite64(int, uintptr_t, size_t, long long);
|
int pwrite64(int, uintptr_t, size_t, long long);
|
||||||
|
#define c_select select
|
||||||
|
int select(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||||
int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||||
int setregid(int, int);
|
int setregid(int, int);
|
||||||
int setreuid(int, int);
|
int setreuid(int, int);
|
||||||
|
@ -103,8 +105,8 @@ int getpeername(int, uintptr_t, uintptr_t);
|
||||||
int getsockname(int, uintptr_t, uintptr_t);
|
int getsockname(int, uintptr_t, uintptr_t);
|
||||||
int recvfrom(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
|
int recvfrom(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
|
||||||
int sendto(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
|
int sendto(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
|
||||||
int recvmsg(int, uintptr_t, int);
|
int nrecvmsg(int, uintptr_t, int);
|
||||||
int sendmsg(int, uintptr_t, int);
|
int nsendmsg(int, uintptr_t, int);
|
||||||
int munmap(uintptr_t, uintptr_t);
|
int munmap(uintptr_t, uintptr_t);
|
||||||
int madvise(uintptr_t, size_t, int);
|
int madvise(uintptr_t, size_t, int);
|
||||||
int mprotect(uintptr_t, size_t, int);
|
int mprotect(uintptr_t, size_t, int);
|
||||||
|
@ -118,6 +120,8 @@ 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);
|
||||||
int utime(uintptr_t, uintptr_t);
|
int utime(uintptr_t, uintptr_t);
|
||||||
|
unsigned long long getsystemcfg(int);
|
||||||
|
int umount(uintptr_t);
|
||||||
int getrlimit64(int, uintptr_t);
|
int getrlimit64(int, uintptr_t);
|
||||||
int setrlimit64(int, uintptr_t);
|
int setrlimit64(int, uintptr_t);
|
||||||
long long lseek64(int, long long, int);
|
long long lseek64(int, long long, int);
|
||||||
|
@ -1004,6 +1008,17 @@ func Pwrite(fd int, p []byte, offset int64) (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 Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||||
|
r0, er := C.c_select(C.int(nfd), C.uintptr_t(uintptr(unsafe.Pointer(r))), C.uintptr_t(uintptr(unsafe.Pointer(w))), C.uintptr_t(uintptr(unsafe.Pointer(e))), C.uintptr_t(uintptr(unsafe.Pointer(timeout))))
|
||||||
|
n = int(r0)
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||||
r0, er := C.pselect(C.int(nfd), C.uintptr_t(uintptr(unsafe.Pointer(r))), C.uintptr_t(uintptr(unsafe.Pointer(w))), C.uintptr_t(uintptr(unsafe.Pointer(e))), C.uintptr_t(uintptr(unsafe.Pointer(timeout))), C.uintptr_t(uintptr(unsafe.Pointer(sigmask))))
|
r0, er := C.pselect(C.int(nfd), C.uintptr_t(uintptr(unsafe.Pointer(r))), C.uintptr_t(uintptr(unsafe.Pointer(w))), C.uintptr_t(uintptr(unsafe.Pointer(e))), C.uintptr_t(uintptr(unsafe.Pointer(timeout))), C.uintptr_t(uintptr(unsafe.Pointer(sigmask))))
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
|
@ -1225,7 +1240,7 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
|
||||||
// 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 recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||||
r0, er := C.recvmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags))
|
r0, er := C.nrecvmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags))
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
err = er
|
err = er
|
||||||
|
@ -1236,7 +1251,7 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||||
r0, er := C.sendmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags))
|
r0, er := C.nsendmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags))
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
err = er
|
err = er
|
||||||
|
@ -1409,6 +1424,25 @@ func Utime(path string, buf *Utimbuf) (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 Getsystemcfg(label int) (n uint64) {
|
||||||
|
r0, _ := C.getsystemcfg(C.int(label))
|
||||||
|
n = uint64(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func umount(target string) (err error) {
|
||||||
|
_p0 := uintptr(unsafe.Pointer(C.CString(target)))
|
||||||
|
r0, er := C.umount(C.uintptr_t(_p0))
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
||||||
r0, er := C.getrlimit64(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim))))
|
r0, er := C.getrlimit64(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim))))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
|
|
40
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
generated
vendored
40
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
generated
vendored
|
@ -1,4 +1,4 @@
|
||||||
// mksyscall_aix_ppc64.pl -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go
|
// go run mksyscall_aix_ppc64.go -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.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,ppc64
|
// +build aix,ppc64
|
||||||
|
@ -960,6 +960,17 @@ func Pwrite(fd int, p []byte, offset int64) (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 Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||||
|
r0, e1 := callselect(nfd, uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)))
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||||
r0, e1 := callpselect(nfd, uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
|
r0, e1 := callpselect(nfd, uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
|
@ -1189,7 +1200,7 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
|
||||||
// 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 recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||||
r0, e1 := callrecvmsg(s, uintptr(unsafe.Pointer(msg)), flags)
|
r0, e1 := callnrecvmsg(s, uintptr(unsafe.Pointer(msg)), flags)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -1200,7 +1211,7 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||||
r0, e1 := callsendmsg(s, uintptr(unsafe.Pointer(msg)), flags)
|
r0, e1 := callnsendmsg(s, uintptr(unsafe.Pointer(msg)), flags)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
@ -1367,6 +1378,29 @@ func Utime(path string, buf *Utimbuf) (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 Getsystemcfg(label int) (n uint64) {
|
||||||
|
r0, _ := callgetsystemcfg(label)
|
||||||
|
n = uint64(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func umount(target string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(target)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, e1 := callumount(uintptr(unsafe.Pointer(_p0)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
||||||
_, e1 := callgetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
|
_, e1 := callgetrlimit(resource, uintptr(unsafe.Pointer(rlim)))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
52
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
generated
vendored
52
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
generated
vendored
|
@ -1,4 +1,4 @@
|
||||||
// mksyscall_aix_ppc64.pl -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go
|
// go run mksyscall_aix_ppc64.go -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.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,ppc64
|
// +build aix,ppc64
|
||||||
|
@ -85,6 +85,7 @@ import (
|
||||||
//go:cgo_import_dynamic libc_pause pause "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_pause pause "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_pread64 pread64 "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_pread64 pread64 "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_pwrite64 pwrite64 "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_pwrite64 pwrite64 "libc.a/shr_64.o"
|
||||||
|
//go:cgo_import_dynamic libc_select select "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_pselect pselect "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_pselect pselect "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_setregid setregid "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_setregid setregid "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_setreuid setreuid "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_setreuid setreuid "libc.a/shr_64.o"
|
||||||
|
@ -105,8 +106,8 @@ import (
|
||||||
//go:cgo_import_dynamic libc_getsockname getsockname "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_getsockname getsockname "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_sendto sendto "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_sendto sendto "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_nrecvmsg nrecvmsg "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_nsendmsg nsendmsg "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_munmap munmap "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_munmap munmap "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_madvise madvise "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_madvise madvise "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_mprotect mprotect "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_mprotect mprotect "libc.a/shr_64.o"
|
||||||
|
@ -120,6 +121,8 @@ import (
|
||||||
//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_time time "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_time time "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_utime utime "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_utime utime "libc.a/shr_64.o"
|
||||||
|
//go:cgo_import_dynamic libc_getsystemcfg getsystemcfg "libc.a/shr_64.o"
|
||||||
|
//go:cgo_import_dynamic libc_umount umount "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o"
|
||||||
//go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o"
|
//go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o"
|
||||||
|
@ -200,6 +203,7 @@ import (
|
||||||
//go:linkname libc_pause libc_pause
|
//go:linkname libc_pause libc_pause
|
||||||
//go:linkname libc_pread64 libc_pread64
|
//go:linkname libc_pread64 libc_pread64
|
||||||
//go:linkname libc_pwrite64 libc_pwrite64
|
//go:linkname libc_pwrite64 libc_pwrite64
|
||||||
|
//go:linkname libc_select libc_select
|
||||||
//go:linkname libc_pselect libc_pselect
|
//go:linkname libc_pselect libc_pselect
|
||||||
//go:linkname libc_setregid libc_setregid
|
//go:linkname libc_setregid libc_setregid
|
||||||
//go:linkname libc_setreuid libc_setreuid
|
//go:linkname libc_setreuid libc_setreuid
|
||||||
|
@ -220,8 +224,8 @@ import (
|
||||||
//go:linkname libc_getsockname libc_getsockname
|
//go:linkname libc_getsockname libc_getsockname
|
||||||
//go:linkname libc_recvfrom libc_recvfrom
|
//go:linkname libc_recvfrom libc_recvfrom
|
||||||
//go:linkname libc_sendto libc_sendto
|
//go:linkname libc_sendto libc_sendto
|
||||||
//go:linkname libc_recvmsg libc_recvmsg
|
//go:linkname libc_nrecvmsg libc_nrecvmsg
|
||||||
//go:linkname libc_sendmsg libc_sendmsg
|
//go:linkname libc_nsendmsg libc_nsendmsg
|
||||||
//go:linkname libc_munmap libc_munmap
|
//go:linkname libc_munmap libc_munmap
|
||||||
//go:linkname libc_madvise libc_madvise
|
//go:linkname libc_madvise libc_madvise
|
||||||
//go:linkname libc_mprotect libc_mprotect
|
//go:linkname libc_mprotect libc_mprotect
|
||||||
|
@ -235,6 +239,8 @@ import (
|
||||||
//go:linkname libc_gettimeofday libc_gettimeofday
|
//go:linkname libc_gettimeofday libc_gettimeofday
|
||||||
//go:linkname libc_time libc_time
|
//go:linkname libc_time libc_time
|
||||||
//go:linkname libc_utime libc_utime
|
//go:linkname libc_utime libc_utime
|
||||||
|
//go:linkname libc_getsystemcfg libc_getsystemcfg
|
||||||
|
//go:linkname libc_umount libc_umount
|
||||||
//go:linkname libc_getrlimit libc_getrlimit
|
//go:linkname libc_getrlimit libc_getrlimit
|
||||||
//go:linkname libc_setrlimit libc_setrlimit
|
//go:linkname libc_setrlimit libc_setrlimit
|
||||||
//go:linkname libc_lseek libc_lseek
|
//go:linkname libc_lseek libc_lseek
|
||||||
|
@ -318,6 +324,7 @@ var (
|
||||||
libc_pause,
|
libc_pause,
|
||||||
libc_pread64,
|
libc_pread64,
|
||||||
libc_pwrite64,
|
libc_pwrite64,
|
||||||
|
libc_select,
|
||||||
libc_pselect,
|
libc_pselect,
|
||||||
libc_setregid,
|
libc_setregid,
|
||||||
libc_setreuid,
|
libc_setreuid,
|
||||||
|
@ -338,8 +345,8 @@ var (
|
||||||
libc_getsockname,
|
libc_getsockname,
|
||||||
libc_recvfrom,
|
libc_recvfrom,
|
||||||
libc_sendto,
|
libc_sendto,
|
||||||
libc_recvmsg,
|
libc_nrecvmsg,
|
||||||
libc_sendmsg,
|
libc_nsendmsg,
|
||||||
libc_munmap,
|
libc_munmap,
|
||||||
libc_madvise,
|
libc_madvise,
|
||||||
libc_mprotect,
|
libc_mprotect,
|
||||||
|
@ -353,6 +360,8 @@ var (
|
||||||
libc_gettimeofday,
|
libc_gettimeofday,
|
||||||
libc_time,
|
libc_time,
|
||||||
libc_utime,
|
libc_utime,
|
||||||
|
libc_getsystemcfg,
|
||||||
|
libc_umount,
|
||||||
libc_getrlimit,
|
libc_getrlimit,
|
||||||
libc_setrlimit,
|
libc_setrlimit,
|
||||||
libc_lseek,
|
libc_lseek,
|
||||||
|
@ -890,6 +899,13 @@ func callpwrite64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1
|
||||||
|
|
||||||
// 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 callselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr) (r1 uintptr, e1 Errno) {
|
||||||
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_select)), 5, uintptr(nfd), r, w, e, timeout, 0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callpselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr, sigmask uintptr) (r1 uintptr, e1 Errno) {
|
func callpselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr, sigmask uintptr) (r1 uintptr, e1 Errno) {
|
||||||
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pselect)), 6, uintptr(nfd), r, w, e, timeout, sigmask)
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pselect)), 6, uintptr(nfd), r, w, e, timeout, sigmask)
|
||||||
return
|
return
|
||||||
|
@ -1030,15 +1046,15 @@ func callsendto(s int, _p0 uintptr, _lenp0 int, flags int, to uintptr, addrlen u
|
||||||
|
|
||||||
// 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 callrecvmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
|
func callnrecvmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
|
||||||
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_recvmsg)), 3, uintptr(s), msg, uintptr(flags), 0, 0, 0)
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_nrecvmsg)), 3, uintptr(s), msg, uintptr(flags), 0, 0, 0)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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 callsendmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
|
func callnsendmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
|
||||||
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_sendmsg)), 3, uintptr(s), msg, uintptr(flags), 0, 0, 0)
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_nsendmsg)), 3, uintptr(s), msg, uintptr(flags), 0, 0, 0)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1135,6 +1151,20 @@ func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
|
||||||
|
|
||||||
// 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 callgetsystemcfg(label int) (r1 uintptr, e1 Errno) {
|
||||||
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getsystemcfg)), 1, uintptr(label), 0, 0, 0, 0, 0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func callumount(_p0 uintptr) (r1 uintptr, e1 Errno) {
|
||||||
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_umount)), 1, _p0, 0, 0, 0, 0, 0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
|
func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
|
||||||
r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0)
|
r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0)
|
||||||
return
|
return
|
||||||
|
|
42
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
generated
vendored
42
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
generated
vendored
|
@ -1,4 +1,4 @@
|
||||||
// mksyscall_aix_ppc64.pl -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go
|
// go run mksyscall_aix_ppc64.go -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.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,ppc64
|
// +build aix,ppc64
|
||||||
|
@ -83,6 +83,8 @@ int lstat(uintptr_t, uintptr_t);
|
||||||
int pause();
|
int pause();
|
||||||
int pread64(int, uintptr_t, size_t, long long);
|
int pread64(int, uintptr_t, size_t, long long);
|
||||||
int pwrite64(int, uintptr_t, size_t, long long);
|
int pwrite64(int, uintptr_t, size_t, long long);
|
||||||
|
#define c_select select
|
||||||
|
int select(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||||
int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
|
||||||
int setregid(int, int);
|
int setregid(int, int);
|
||||||
int setreuid(int, int);
|
int setreuid(int, int);
|
||||||
|
@ -103,8 +105,8 @@ int getpeername(int, uintptr_t, uintptr_t);
|
||||||
int getsockname(int, uintptr_t, uintptr_t);
|
int getsockname(int, uintptr_t, uintptr_t);
|
||||||
int recvfrom(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
|
int recvfrom(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
|
||||||
int sendto(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
|
int sendto(int, uintptr_t, size_t, int, uintptr_t, uintptr_t);
|
||||||
int recvmsg(int, uintptr_t, int);
|
int nrecvmsg(int, uintptr_t, int);
|
||||||
int sendmsg(int, uintptr_t, int);
|
int nsendmsg(int, uintptr_t, int);
|
||||||
int munmap(uintptr_t, uintptr_t);
|
int munmap(uintptr_t, uintptr_t);
|
||||||
int madvise(uintptr_t, size_t, int);
|
int madvise(uintptr_t, size_t, int);
|
||||||
int mprotect(uintptr_t, size_t, int);
|
int mprotect(uintptr_t, size_t, int);
|
||||||
|
@ -118,6 +120,8 @@ 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);
|
||||||
int utime(uintptr_t, uintptr_t);
|
int utime(uintptr_t, uintptr_t);
|
||||||
|
unsigned long long getsystemcfg(int);
|
||||||
|
int umount(uintptr_t);
|
||||||
int getrlimit(int, uintptr_t);
|
int getrlimit(int, uintptr_t);
|
||||||
int setrlimit(int, uintptr_t);
|
int setrlimit(int, uintptr_t);
|
||||||
long long lseek(int, long long, int);
|
long long lseek(int, long long, int);
|
||||||
|
@ -731,6 +735,14 @@ func callpwrite64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1
|
||||||
|
|
||||||
// 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 callselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr) (r1 uintptr, e1 Errno) {
|
||||||
|
r1 = uintptr(C.c_select(C.int(nfd), C.uintptr_t(r), C.uintptr_t(w), C.uintptr_t(e), C.uintptr_t(timeout)))
|
||||||
|
e1 = syscall.GetErrno()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callpselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr, sigmask uintptr) (r1 uintptr, e1 Errno) {
|
func callpselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr, sigmask uintptr) (r1 uintptr, e1 Errno) {
|
||||||
r1 = uintptr(C.pselect(C.int(nfd), C.uintptr_t(r), C.uintptr_t(w), C.uintptr_t(e), C.uintptr_t(timeout), C.uintptr_t(sigmask)))
|
r1 = uintptr(C.pselect(C.int(nfd), C.uintptr_t(r), C.uintptr_t(w), C.uintptr_t(e), C.uintptr_t(timeout), C.uintptr_t(sigmask)))
|
||||||
e1 = syscall.GetErrno()
|
e1 = syscall.GetErrno()
|
||||||
|
@ -891,16 +903,16 @@ func callsendto(s int, _p0 uintptr, _lenp0 int, flags int, to uintptr, addrlen u
|
||||||
|
|
||||||
// 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 callrecvmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
|
func callnrecvmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
|
||||||
r1 = uintptr(C.recvmsg(C.int(s), C.uintptr_t(msg), C.int(flags)))
|
r1 = uintptr(C.nrecvmsg(C.int(s), C.uintptr_t(msg), C.int(flags)))
|
||||||
e1 = syscall.GetErrno()
|
e1 = syscall.GetErrno()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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 callsendmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
|
func callnsendmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) {
|
||||||
r1 = uintptr(C.sendmsg(C.int(s), C.uintptr_t(msg), C.int(flags)))
|
r1 = uintptr(C.nsendmsg(C.int(s), C.uintptr_t(msg), C.int(flags)))
|
||||||
e1 = syscall.GetErrno()
|
e1 = syscall.GetErrno()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -1011,6 +1023,22 @@ func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) {
|
||||||
|
|
||||||
// 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 callgetsystemcfg(label int) (r1 uintptr, e1 Errno) {
|
||||||
|
r1 = uintptr(C.getsystemcfg(C.int(label)))
|
||||||
|
e1 = syscall.GetErrno()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func callumount(_p0 uintptr) (r1 uintptr, e1 Errno) {
|
||||||
|
r1 = uintptr(C.umount(C.uintptr_t(_p0)))
|
||||||
|
e1 = syscall.GetErrno()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
|
func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) {
|
||||||
r1 = uintptr(C.getrlimit(C.int(resource), C.uintptr_t(rlim)))
|
r1 = uintptr(C.getrlimit(C.int(resource), C.uintptr_t(rlim)))
|
||||||
e1 = syscall.GetErrno()
|
e1 = syscall.GetErrno()
|
||||||
|
|
1810
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
generated
vendored
Normal file
1810
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1180
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
1180
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
File diff suppressed because it is too large
Load Diff
284
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
generated
vendored
Normal file
284
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
generated
vendored
Normal file
|
@ -0,0 +1,284 @@
|
||||||
|
// go run mkasm_darwin.go 386
|
||||||
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build go1.12
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
TEXT ·libc_getgroups_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getgroups(SB)
|
||||||
|
TEXT ·libc_setgroups_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setgroups(SB)
|
||||||
|
TEXT ·libc_wait4_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_wait4(SB)
|
||||||
|
TEXT ·libc_accept_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_accept(SB)
|
||||||
|
TEXT ·libc_bind_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_bind(SB)
|
||||||
|
TEXT ·libc_connect_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_connect(SB)
|
||||||
|
TEXT ·libc_socket_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_socket(SB)
|
||||||
|
TEXT ·libc_getsockopt_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsockopt(SB)
|
||||||
|
TEXT ·libc_setsockopt_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setsockopt(SB)
|
||||||
|
TEXT ·libc_getpeername_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpeername(SB)
|
||||||
|
TEXT ·libc_getsockname_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsockname(SB)
|
||||||
|
TEXT ·libc_shutdown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_shutdown(SB)
|
||||||
|
TEXT ·libc_socketpair_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_socketpair(SB)
|
||||||
|
TEXT ·libc_recvfrom_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_recvfrom(SB)
|
||||||
|
TEXT ·libc_sendto_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendto(SB)
|
||||||
|
TEXT ·libc_recvmsg_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_recvmsg(SB)
|
||||||
|
TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendmsg(SB)
|
||||||
|
TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kevent(SB)
|
||||||
|
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc___sysctl(SB)
|
||||||
|
TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_utimes(SB)
|
||||||
|
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_futimes(SB)
|
||||||
|
TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fcntl(SB)
|
||||||
|
TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_poll(SB)
|
||||||
|
TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_madvise(SB)
|
||||||
|
TEXT ·libc_mlock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mlock(SB)
|
||||||
|
TEXT ·libc_mlockall_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mlockall(SB)
|
||||||
|
TEXT ·libc_mprotect_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mprotect(SB)
|
||||||
|
TEXT ·libc_msync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_msync(SB)
|
||||||
|
TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munlock(SB)
|
||||||
|
TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munlockall(SB)
|
||||||
|
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ptrace(SB)
|
||||||
|
TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getattrlist(SB)
|
||||||
|
TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pipe(SB)
|
||||||
|
TEXT ·libc_getxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getxattr(SB)
|
||||||
|
TEXT ·libc_fgetxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fgetxattr(SB)
|
||||||
|
TEXT ·libc_setxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setxattr(SB)
|
||||||
|
TEXT ·libc_fsetxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fsetxattr(SB)
|
||||||
|
TEXT ·libc_removexattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_removexattr(SB)
|
||||||
|
TEXT ·libc_fremovexattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fremovexattr(SB)
|
||||||
|
TEXT ·libc_listxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_listxattr(SB)
|
||||||
|
TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_flistxattr(SB)
|
||||||
|
TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setattrlist(SB)
|
||||||
|
TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kill(SB)
|
||||||
|
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ioctl(SB)
|
||||||
|
TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendfile(SB)
|
||||||
|
TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_access(SB)
|
||||||
|
TEXT ·libc_adjtime_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_adjtime(SB)
|
||||||
|
TEXT ·libc_chdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chdir(SB)
|
||||||
|
TEXT ·libc_chflags_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chflags(SB)
|
||||||
|
TEXT ·libc_chmod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chmod(SB)
|
||||||
|
TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chown(SB)
|
||||||
|
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chroot(SB)
|
||||||
|
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_close(SB)
|
||||||
|
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_dup(SB)
|
||||||
|
TEXT ·libc_dup2_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_dup2(SB)
|
||||||
|
TEXT ·libc_exchangedata_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_exchangedata(SB)
|
||||||
|
TEXT ·libc_exit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_exit(SB)
|
||||||
|
TEXT ·libc_faccessat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_faccessat(SB)
|
||||||
|
TEXT ·libc_fchdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchdir(SB)
|
||||||
|
TEXT ·libc_fchflags_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchflags(SB)
|
||||||
|
TEXT ·libc_fchmod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchmod(SB)
|
||||||
|
TEXT ·libc_fchmodat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchmodat(SB)
|
||||||
|
TEXT ·libc_fchown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchown(SB)
|
||||||
|
TEXT ·libc_fchownat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchownat(SB)
|
||||||
|
TEXT ·libc_flock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_flock(SB)
|
||||||
|
TEXT ·libc_fpathconf_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fpathconf(SB)
|
||||||
|
TEXT ·libc_fsync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fsync(SB)
|
||||||
|
TEXT ·libc_ftruncate_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ftruncate(SB)
|
||||||
|
TEXT ·libc_getdtablesize_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getdtablesize(SB)
|
||||||
|
TEXT ·libc_getegid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getegid(SB)
|
||||||
|
TEXT ·libc_geteuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_geteuid(SB)
|
||||||
|
TEXT ·libc_getgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getgid(SB)
|
||||||
|
TEXT ·libc_getpgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpgid(SB)
|
||||||
|
TEXT ·libc_getpgrp_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpgrp(SB)
|
||||||
|
TEXT ·libc_getpid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpid(SB)
|
||||||
|
TEXT ·libc_getppid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getppid(SB)
|
||||||
|
TEXT ·libc_getpriority_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpriority(SB)
|
||||||
|
TEXT ·libc_getrlimit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getrlimit(SB)
|
||||||
|
TEXT ·libc_getrusage_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getrusage(SB)
|
||||||
|
TEXT ·libc_getsid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsid(SB)
|
||||||
|
TEXT ·libc_getuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getuid(SB)
|
||||||
|
TEXT ·libc_issetugid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_issetugid(SB)
|
||||||
|
TEXT ·libc_kqueue_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kqueue(SB)
|
||||||
|
TEXT ·libc_lchown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lchown(SB)
|
||||||
|
TEXT ·libc_link_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_link(SB)
|
||||||
|
TEXT ·libc_linkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_linkat(SB)
|
||||||
|
TEXT ·libc_listen_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_listen(SB)
|
||||||
|
TEXT ·libc_mkdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkdir(SB)
|
||||||
|
TEXT ·libc_mkdirat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkdirat(SB)
|
||||||
|
TEXT ·libc_mkfifo_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkfifo(SB)
|
||||||
|
TEXT ·libc_mknod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mknod(SB)
|
||||||
|
TEXT ·libc_open_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_open(SB)
|
||||||
|
TEXT ·libc_openat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_openat(SB)
|
||||||
|
TEXT ·libc_pathconf_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pathconf(SB)
|
||||||
|
TEXT ·libc_pread_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pread(SB)
|
||||||
|
TEXT ·libc_pwrite_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pwrite(SB)
|
||||||
|
TEXT ·libc_read_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_read(SB)
|
||||||
|
TEXT ·libc_readlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readlink(SB)
|
||||||
|
TEXT ·libc_readlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readlinkat(SB)
|
||||||
|
TEXT ·libc_rename_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_rename(SB)
|
||||||
|
TEXT ·libc_renameat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_renameat(SB)
|
||||||
|
TEXT ·libc_revoke_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_revoke(SB)
|
||||||
|
TEXT ·libc_rmdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_rmdir(SB)
|
||||||
|
TEXT ·libc_lseek_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lseek(SB)
|
||||||
|
TEXT ·libc_select_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_select(SB)
|
||||||
|
TEXT ·libc_setegid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setegid(SB)
|
||||||
|
TEXT ·libc_seteuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_seteuid(SB)
|
||||||
|
TEXT ·libc_setgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setgid(SB)
|
||||||
|
TEXT ·libc_setlogin_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setlogin(SB)
|
||||||
|
TEXT ·libc_setpgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setpgid(SB)
|
||||||
|
TEXT ·libc_setpriority_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setpriority(SB)
|
||||||
|
TEXT ·libc_setprivexec_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setprivexec(SB)
|
||||||
|
TEXT ·libc_setregid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setregid(SB)
|
||||||
|
TEXT ·libc_setreuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setreuid(SB)
|
||||||
|
TEXT ·libc_setrlimit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setrlimit(SB)
|
||||||
|
TEXT ·libc_setsid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setsid(SB)
|
||||||
|
TEXT ·libc_settimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_settimeofday(SB)
|
||||||
|
TEXT ·libc_setuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setuid(SB)
|
||||||
|
TEXT ·libc_symlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_symlink(SB)
|
||||||
|
TEXT ·libc_symlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_symlinkat(SB)
|
||||||
|
TEXT ·libc_sync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sync(SB)
|
||||||
|
TEXT ·libc_truncate_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_truncate(SB)
|
||||||
|
TEXT ·libc_umask_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_umask(SB)
|
||||||
|
TEXT ·libc_undelete_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_undelete(SB)
|
||||||
|
TEXT ·libc_unlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unlink(SB)
|
||||||
|
TEXT ·libc_unlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unlinkat(SB)
|
||||||
|
TEXT ·libc_unmount_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unmount(SB)
|
||||||
|
TEXT ·libc_write_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_write(SB)
|
||||||
|
TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mmap(SB)
|
||||||
|
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munmap(SB)
|
||||||
|
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_gettimeofday(SB)
|
||||||
|
TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstat64(SB)
|
||||||
|
TEXT ·libc_fstatat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstatat64(SB)
|
||||||
|
TEXT ·libc_fstatfs64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstatfs64(SB)
|
||||||
|
TEXT ·libc___getdirentries64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc___getdirentries64(SB)
|
||||||
|
TEXT ·libc_getfsstat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getfsstat64(SB)
|
||||||
|
TEXT ·libc_lstat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lstat64(SB)
|
||||||
|
TEXT ·libc_stat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_stat64(SB)
|
||||||
|
TEXT ·libc_statfs64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_statfs64(SB)
|
1810
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
generated
vendored
Normal file
1810
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1195
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
1195
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
File diff suppressed because it is too large
Load Diff
286
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
Normal file
286
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
Normal file
|
@ -0,0 +1,286 @@
|
||||||
|
// go run mkasm_darwin.go amd64
|
||||||
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build go1.12
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
TEXT ·libc_getgroups_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getgroups(SB)
|
||||||
|
TEXT ·libc_setgroups_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setgroups(SB)
|
||||||
|
TEXT ·libc_wait4_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_wait4(SB)
|
||||||
|
TEXT ·libc_accept_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_accept(SB)
|
||||||
|
TEXT ·libc_bind_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_bind(SB)
|
||||||
|
TEXT ·libc_connect_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_connect(SB)
|
||||||
|
TEXT ·libc_socket_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_socket(SB)
|
||||||
|
TEXT ·libc_getsockopt_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsockopt(SB)
|
||||||
|
TEXT ·libc_setsockopt_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setsockopt(SB)
|
||||||
|
TEXT ·libc_getpeername_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpeername(SB)
|
||||||
|
TEXT ·libc_getsockname_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsockname(SB)
|
||||||
|
TEXT ·libc_shutdown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_shutdown(SB)
|
||||||
|
TEXT ·libc_socketpair_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_socketpair(SB)
|
||||||
|
TEXT ·libc_recvfrom_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_recvfrom(SB)
|
||||||
|
TEXT ·libc_sendto_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendto(SB)
|
||||||
|
TEXT ·libc_recvmsg_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_recvmsg(SB)
|
||||||
|
TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendmsg(SB)
|
||||||
|
TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kevent(SB)
|
||||||
|
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc___sysctl(SB)
|
||||||
|
TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_utimes(SB)
|
||||||
|
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_futimes(SB)
|
||||||
|
TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fcntl(SB)
|
||||||
|
TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_poll(SB)
|
||||||
|
TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_madvise(SB)
|
||||||
|
TEXT ·libc_mlock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mlock(SB)
|
||||||
|
TEXT ·libc_mlockall_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mlockall(SB)
|
||||||
|
TEXT ·libc_mprotect_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mprotect(SB)
|
||||||
|
TEXT ·libc_msync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_msync(SB)
|
||||||
|
TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munlock(SB)
|
||||||
|
TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munlockall(SB)
|
||||||
|
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ptrace(SB)
|
||||||
|
TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getattrlist(SB)
|
||||||
|
TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pipe(SB)
|
||||||
|
TEXT ·libc_getxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getxattr(SB)
|
||||||
|
TEXT ·libc_fgetxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fgetxattr(SB)
|
||||||
|
TEXT ·libc_setxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setxattr(SB)
|
||||||
|
TEXT ·libc_fsetxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fsetxattr(SB)
|
||||||
|
TEXT ·libc_removexattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_removexattr(SB)
|
||||||
|
TEXT ·libc_fremovexattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fremovexattr(SB)
|
||||||
|
TEXT ·libc_listxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_listxattr(SB)
|
||||||
|
TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_flistxattr(SB)
|
||||||
|
TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setattrlist(SB)
|
||||||
|
TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kill(SB)
|
||||||
|
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ioctl(SB)
|
||||||
|
TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendfile(SB)
|
||||||
|
TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_access(SB)
|
||||||
|
TEXT ·libc_adjtime_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_adjtime(SB)
|
||||||
|
TEXT ·libc_chdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chdir(SB)
|
||||||
|
TEXT ·libc_chflags_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chflags(SB)
|
||||||
|
TEXT ·libc_chmod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chmod(SB)
|
||||||
|
TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chown(SB)
|
||||||
|
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chroot(SB)
|
||||||
|
TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_clock_gettime(SB)
|
||||||
|
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_close(SB)
|
||||||
|
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_dup(SB)
|
||||||
|
TEXT ·libc_dup2_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_dup2(SB)
|
||||||
|
TEXT ·libc_exchangedata_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_exchangedata(SB)
|
||||||
|
TEXT ·libc_exit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_exit(SB)
|
||||||
|
TEXT ·libc_faccessat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_faccessat(SB)
|
||||||
|
TEXT ·libc_fchdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchdir(SB)
|
||||||
|
TEXT ·libc_fchflags_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchflags(SB)
|
||||||
|
TEXT ·libc_fchmod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchmod(SB)
|
||||||
|
TEXT ·libc_fchmodat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchmodat(SB)
|
||||||
|
TEXT ·libc_fchown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchown(SB)
|
||||||
|
TEXT ·libc_fchownat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchownat(SB)
|
||||||
|
TEXT ·libc_flock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_flock(SB)
|
||||||
|
TEXT ·libc_fpathconf_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fpathconf(SB)
|
||||||
|
TEXT ·libc_fsync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fsync(SB)
|
||||||
|
TEXT ·libc_ftruncate_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ftruncate(SB)
|
||||||
|
TEXT ·libc_getdtablesize_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getdtablesize(SB)
|
||||||
|
TEXT ·libc_getegid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getegid(SB)
|
||||||
|
TEXT ·libc_geteuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_geteuid(SB)
|
||||||
|
TEXT ·libc_getgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getgid(SB)
|
||||||
|
TEXT ·libc_getpgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpgid(SB)
|
||||||
|
TEXT ·libc_getpgrp_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpgrp(SB)
|
||||||
|
TEXT ·libc_getpid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpid(SB)
|
||||||
|
TEXT ·libc_getppid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getppid(SB)
|
||||||
|
TEXT ·libc_getpriority_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpriority(SB)
|
||||||
|
TEXT ·libc_getrlimit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getrlimit(SB)
|
||||||
|
TEXT ·libc_getrusage_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getrusage(SB)
|
||||||
|
TEXT ·libc_getsid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsid(SB)
|
||||||
|
TEXT ·libc_getuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getuid(SB)
|
||||||
|
TEXT ·libc_issetugid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_issetugid(SB)
|
||||||
|
TEXT ·libc_kqueue_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kqueue(SB)
|
||||||
|
TEXT ·libc_lchown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lchown(SB)
|
||||||
|
TEXT ·libc_link_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_link(SB)
|
||||||
|
TEXT ·libc_linkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_linkat(SB)
|
||||||
|
TEXT ·libc_listen_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_listen(SB)
|
||||||
|
TEXT ·libc_mkdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkdir(SB)
|
||||||
|
TEXT ·libc_mkdirat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkdirat(SB)
|
||||||
|
TEXT ·libc_mkfifo_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkfifo(SB)
|
||||||
|
TEXT ·libc_mknod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mknod(SB)
|
||||||
|
TEXT ·libc_open_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_open(SB)
|
||||||
|
TEXT ·libc_openat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_openat(SB)
|
||||||
|
TEXT ·libc_pathconf_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pathconf(SB)
|
||||||
|
TEXT ·libc_pread_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pread(SB)
|
||||||
|
TEXT ·libc_pwrite_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pwrite(SB)
|
||||||
|
TEXT ·libc_read_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_read(SB)
|
||||||
|
TEXT ·libc_readlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readlink(SB)
|
||||||
|
TEXT ·libc_readlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readlinkat(SB)
|
||||||
|
TEXT ·libc_rename_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_rename(SB)
|
||||||
|
TEXT ·libc_renameat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_renameat(SB)
|
||||||
|
TEXT ·libc_revoke_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_revoke(SB)
|
||||||
|
TEXT ·libc_rmdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_rmdir(SB)
|
||||||
|
TEXT ·libc_lseek_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lseek(SB)
|
||||||
|
TEXT ·libc_select_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_select(SB)
|
||||||
|
TEXT ·libc_setegid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setegid(SB)
|
||||||
|
TEXT ·libc_seteuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_seteuid(SB)
|
||||||
|
TEXT ·libc_setgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setgid(SB)
|
||||||
|
TEXT ·libc_setlogin_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setlogin(SB)
|
||||||
|
TEXT ·libc_setpgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setpgid(SB)
|
||||||
|
TEXT ·libc_setpriority_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setpriority(SB)
|
||||||
|
TEXT ·libc_setprivexec_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setprivexec(SB)
|
||||||
|
TEXT ·libc_setregid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setregid(SB)
|
||||||
|
TEXT ·libc_setreuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setreuid(SB)
|
||||||
|
TEXT ·libc_setrlimit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setrlimit(SB)
|
||||||
|
TEXT ·libc_setsid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setsid(SB)
|
||||||
|
TEXT ·libc_settimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_settimeofday(SB)
|
||||||
|
TEXT ·libc_setuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setuid(SB)
|
||||||
|
TEXT ·libc_symlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_symlink(SB)
|
||||||
|
TEXT ·libc_symlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_symlinkat(SB)
|
||||||
|
TEXT ·libc_sync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sync(SB)
|
||||||
|
TEXT ·libc_truncate_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_truncate(SB)
|
||||||
|
TEXT ·libc_umask_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_umask(SB)
|
||||||
|
TEXT ·libc_undelete_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_undelete(SB)
|
||||||
|
TEXT ·libc_unlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unlink(SB)
|
||||||
|
TEXT ·libc_unlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unlinkat(SB)
|
||||||
|
TEXT ·libc_unmount_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unmount(SB)
|
||||||
|
TEXT ·libc_write_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_write(SB)
|
||||||
|
TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mmap(SB)
|
||||||
|
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munmap(SB)
|
||||||
|
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_gettimeofday(SB)
|
||||||
|
TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstat64(SB)
|
||||||
|
TEXT ·libc_fstatat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstatat64(SB)
|
||||||
|
TEXT ·libc_fstatfs64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstatfs64(SB)
|
||||||
|
TEXT ·libc___getdirentries64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc___getdirentries64(SB)
|
||||||
|
TEXT ·libc_getfsstat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getfsstat64(SB)
|
||||||
|
TEXT ·libc_lstat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lstat64(SB)
|
||||||
|
TEXT ·libc_stat64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_stat64(SB)
|
||||||
|
TEXT ·libc_statfs64_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_statfs64(SB)
|
1793
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
generated
vendored
Normal file
1793
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1158
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
1158
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
File diff suppressed because it is too large
Load Diff
282
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
generated
vendored
Normal file
282
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
generated
vendored
Normal file
|
@ -0,0 +1,282 @@
|
||||||
|
// go run mkasm_darwin.go arm
|
||||||
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build go1.12
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
TEXT ·libc_getgroups_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getgroups(SB)
|
||||||
|
TEXT ·libc_setgroups_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setgroups(SB)
|
||||||
|
TEXT ·libc_wait4_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_wait4(SB)
|
||||||
|
TEXT ·libc_accept_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_accept(SB)
|
||||||
|
TEXT ·libc_bind_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_bind(SB)
|
||||||
|
TEXT ·libc_connect_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_connect(SB)
|
||||||
|
TEXT ·libc_socket_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_socket(SB)
|
||||||
|
TEXT ·libc_getsockopt_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsockopt(SB)
|
||||||
|
TEXT ·libc_setsockopt_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setsockopt(SB)
|
||||||
|
TEXT ·libc_getpeername_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpeername(SB)
|
||||||
|
TEXT ·libc_getsockname_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsockname(SB)
|
||||||
|
TEXT ·libc_shutdown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_shutdown(SB)
|
||||||
|
TEXT ·libc_socketpair_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_socketpair(SB)
|
||||||
|
TEXT ·libc_recvfrom_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_recvfrom(SB)
|
||||||
|
TEXT ·libc_sendto_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendto(SB)
|
||||||
|
TEXT ·libc_recvmsg_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_recvmsg(SB)
|
||||||
|
TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendmsg(SB)
|
||||||
|
TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kevent(SB)
|
||||||
|
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc___sysctl(SB)
|
||||||
|
TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_utimes(SB)
|
||||||
|
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_futimes(SB)
|
||||||
|
TEXT ·libc_fcntl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fcntl(SB)
|
||||||
|
TEXT ·libc_poll_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_poll(SB)
|
||||||
|
TEXT ·libc_madvise_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_madvise(SB)
|
||||||
|
TEXT ·libc_mlock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mlock(SB)
|
||||||
|
TEXT ·libc_mlockall_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mlockall(SB)
|
||||||
|
TEXT ·libc_mprotect_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mprotect(SB)
|
||||||
|
TEXT ·libc_msync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_msync(SB)
|
||||||
|
TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munlock(SB)
|
||||||
|
TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munlockall(SB)
|
||||||
|
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ptrace(SB)
|
||||||
|
TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getattrlist(SB)
|
||||||
|
TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pipe(SB)
|
||||||
|
TEXT ·libc_getxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getxattr(SB)
|
||||||
|
TEXT ·libc_fgetxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fgetxattr(SB)
|
||||||
|
TEXT ·libc_setxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setxattr(SB)
|
||||||
|
TEXT ·libc_fsetxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fsetxattr(SB)
|
||||||
|
TEXT ·libc_removexattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_removexattr(SB)
|
||||||
|
TEXT ·libc_fremovexattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fremovexattr(SB)
|
||||||
|
TEXT ·libc_listxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_listxattr(SB)
|
||||||
|
TEXT ·libc_flistxattr_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_flistxattr(SB)
|
||||||
|
TEXT ·libc_setattrlist_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setattrlist(SB)
|
||||||
|
TEXT ·libc_kill_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kill(SB)
|
||||||
|
TEXT ·libc_ioctl_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ioctl(SB)
|
||||||
|
TEXT ·libc_sendfile_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sendfile(SB)
|
||||||
|
TEXT ·libc_access_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_access(SB)
|
||||||
|
TEXT ·libc_adjtime_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_adjtime(SB)
|
||||||
|
TEXT ·libc_chdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chdir(SB)
|
||||||
|
TEXT ·libc_chflags_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chflags(SB)
|
||||||
|
TEXT ·libc_chmod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chmod(SB)
|
||||||
|
TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chown(SB)
|
||||||
|
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_chroot(SB)
|
||||||
|
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_close(SB)
|
||||||
|
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_dup(SB)
|
||||||
|
TEXT ·libc_dup2_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_dup2(SB)
|
||||||
|
TEXT ·libc_exchangedata_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_exchangedata(SB)
|
||||||
|
TEXT ·libc_exit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_exit(SB)
|
||||||
|
TEXT ·libc_faccessat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_faccessat(SB)
|
||||||
|
TEXT ·libc_fchdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchdir(SB)
|
||||||
|
TEXT ·libc_fchflags_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchflags(SB)
|
||||||
|
TEXT ·libc_fchmod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchmod(SB)
|
||||||
|
TEXT ·libc_fchmodat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchmodat(SB)
|
||||||
|
TEXT ·libc_fchown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchown(SB)
|
||||||
|
TEXT ·libc_fchownat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fchownat(SB)
|
||||||
|
TEXT ·libc_flock_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_flock(SB)
|
||||||
|
TEXT ·libc_fpathconf_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fpathconf(SB)
|
||||||
|
TEXT ·libc_fsync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fsync(SB)
|
||||||
|
TEXT ·libc_ftruncate_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_ftruncate(SB)
|
||||||
|
TEXT ·libc_getdtablesize_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getdtablesize(SB)
|
||||||
|
TEXT ·libc_getegid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getegid(SB)
|
||||||
|
TEXT ·libc_geteuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_geteuid(SB)
|
||||||
|
TEXT ·libc_getgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getgid(SB)
|
||||||
|
TEXT ·libc_getpgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpgid(SB)
|
||||||
|
TEXT ·libc_getpgrp_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpgrp(SB)
|
||||||
|
TEXT ·libc_getpid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpid(SB)
|
||||||
|
TEXT ·libc_getppid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getppid(SB)
|
||||||
|
TEXT ·libc_getpriority_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getpriority(SB)
|
||||||
|
TEXT ·libc_getrlimit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getrlimit(SB)
|
||||||
|
TEXT ·libc_getrusage_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getrusage(SB)
|
||||||
|
TEXT ·libc_getsid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getsid(SB)
|
||||||
|
TEXT ·libc_getuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getuid(SB)
|
||||||
|
TEXT ·libc_issetugid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_issetugid(SB)
|
||||||
|
TEXT ·libc_kqueue_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_kqueue(SB)
|
||||||
|
TEXT ·libc_lchown_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lchown(SB)
|
||||||
|
TEXT ·libc_link_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_link(SB)
|
||||||
|
TEXT ·libc_linkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_linkat(SB)
|
||||||
|
TEXT ·libc_listen_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_listen(SB)
|
||||||
|
TEXT ·libc_mkdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkdir(SB)
|
||||||
|
TEXT ·libc_mkdirat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkdirat(SB)
|
||||||
|
TEXT ·libc_mkfifo_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mkfifo(SB)
|
||||||
|
TEXT ·libc_mknod_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mknod(SB)
|
||||||
|
TEXT ·libc_open_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_open(SB)
|
||||||
|
TEXT ·libc_openat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_openat(SB)
|
||||||
|
TEXT ·libc_pathconf_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pathconf(SB)
|
||||||
|
TEXT ·libc_pread_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pread(SB)
|
||||||
|
TEXT ·libc_pwrite_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_pwrite(SB)
|
||||||
|
TEXT ·libc_read_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_read(SB)
|
||||||
|
TEXT ·libc_readlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readlink(SB)
|
||||||
|
TEXT ·libc_readlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readlinkat(SB)
|
||||||
|
TEXT ·libc_rename_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_rename(SB)
|
||||||
|
TEXT ·libc_renameat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_renameat(SB)
|
||||||
|
TEXT ·libc_revoke_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_revoke(SB)
|
||||||
|
TEXT ·libc_rmdir_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_rmdir(SB)
|
||||||
|
TEXT ·libc_lseek_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lseek(SB)
|
||||||
|
TEXT ·libc_select_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_select(SB)
|
||||||
|
TEXT ·libc_setegid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setegid(SB)
|
||||||
|
TEXT ·libc_seteuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_seteuid(SB)
|
||||||
|
TEXT ·libc_setgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setgid(SB)
|
||||||
|
TEXT ·libc_setlogin_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setlogin(SB)
|
||||||
|
TEXT ·libc_setpgid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setpgid(SB)
|
||||||
|
TEXT ·libc_setpriority_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setpriority(SB)
|
||||||
|
TEXT ·libc_setprivexec_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setprivexec(SB)
|
||||||
|
TEXT ·libc_setregid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setregid(SB)
|
||||||
|
TEXT ·libc_setreuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setreuid(SB)
|
||||||
|
TEXT ·libc_setrlimit_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setrlimit(SB)
|
||||||
|
TEXT ·libc_setsid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setsid(SB)
|
||||||
|
TEXT ·libc_settimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_settimeofday(SB)
|
||||||
|
TEXT ·libc_setuid_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_setuid(SB)
|
||||||
|
TEXT ·libc_symlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_symlink(SB)
|
||||||
|
TEXT ·libc_symlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_symlinkat(SB)
|
||||||
|
TEXT ·libc_sync_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_sync(SB)
|
||||||
|
TEXT ·libc_truncate_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_truncate(SB)
|
||||||
|
TEXT ·libc_umask_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_umask(SB)
|
||||||
|
TEXT ·libc_undelete_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_undelete(SB)
|
||||||
|
TEXT ·libc_unlink_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unlink(SB)
|
||||||
|
TEXT ·libc_unlinkat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unlinkat(SB)
|
||||||
|
TEXT ·libc_unmount_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_unmount(SB)
|
||||||
|
TEXT ·libc_write_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_write(SB)
|
||||||
|
TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_mmap(SB)
|
||||||
|
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_munmap(SB)
|
||||||
|
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_gettimeofday(SB)
|
||||||
|
TEXT ·libc_fstat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstat(SB)
|
||||||
|
TEXT ·libc_fstatat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstatat(SB)
|
||||||
|
TEXT ·libc_fstatfs_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fstatfs(SB)
|
||||||
|
TEXT ·libc_getfsstat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_getfsstat(SB)
|
||||||
|
TEXT ·libc_lstat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_lstat(SB)
|
||||||
|
TEXT ·libc_stat_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_stat(SB)
|
||||||
|
TEXT ·libc_statfs_trampoline(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_statfs(SB)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user