mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Depedency: Bump crewjam/saml to the latest master (#20126)
* Dependency: Bump our SAML Library to the latest version Fixes a non-obligatory check for RSA encrypted assertions. Previously they required a certificate embedded in the assertion, this is not mandatory according to the SAML standard.
This commit is contained in:
parent
6dde81d839
commit
378208c6ae
7
go.mod
7
go.mod
@ -11,10 +11,9 @@ require (
|
||||
github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668
|
||||
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd // indirect
|
||||
github.com/codegangsta/cli v1.20.0
|
||||
github.com/crewjam/saml v0.0.0-20190521120225-344d075952c9
|
||||
github.com/crewjam/saml v0.0.0-20191031171751-c42136edf9b1
|
||||
github.com/davecgh/go-spew v1.1.1
|
||||
github.com/denisenkom/go-mssqldb v0.0.0-20190315220205-a8ed825ac853
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
|
||||
github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51 // indirect
|
||||
github.com/facebookgo/inject v0.0.0-20180706035515-f23751cae28b
|
||||
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
|
||||
@ -38,7 +37,6 @@ require (
|
||||
github.com/hashicorp/go-version v1.1.0
|
||||
github.com/inconshreveable/log15 v0.0.0-20180818164646-67afb5ed74ec
|
||||
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
|
||||
github.com/jonboulle/clockwork v0.1.0 // indirect
|
||||
github.com/jung-kurt/gofpdf v1.10.1
|
||||
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
|
||||
github.com/klauspost/compress v1.4.1 // indirect
|
||||
@ -55,7 +53,6 @@ require (
|
||||
github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be // indirect
|
||||
github.com/robfig/cron v0.0.0-20180505203441-b41be1df6967
|
||||
github.com/robfig/cron/v3 v3.0.0
|
||||
github.com/russellhaering/goxmldsig v0.0.0-20180430223755-7acd5e4a6ef7 // indirect
|
||||
github.com/sergi/go-diff v1.0.0 // indirect
|
||||
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337
|
||||
github.com/stretchr/testify v1.4.0
|
||||
@ -81,5 +78,5 @@ require (
|
||||
gopkg.in/mail.v2 v2.3.1
|
||||
gopkg.in/redis.v5 v5.2.9
|
||||
gopkg.in/square/go-jose.v2 v2.3.0
|
||||
gopkg.in/yaml.v2 v2.2.2
|
||||
gopkg.in/yaml.v2 v2.2.4
|
||||
)
|
||||
|
15
go.sum
15
go.sum
@ -11,6 +11,7 @@ github.com/apache/arrow/go/arrow v0.0.0-20190716210558-5f564424c71c h1:iHUHzx3S1
|
||||
github.com/apache/arrow/go/arrow v0.0.0-20190716210558-5f564424c71c/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0=
|
||||
github.com/aws/aws-sdk-go v1.25.6 h1:Rmg2pgKXoCfNe0KQb4LNSNmHqMdcgBjpMeXK9IjHWq8=
|
||||
github.com/aws/aws-sdk-go v1.25.6/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
|
||||
github.com/beevik/etree v1.0.1/go.mod h1:r8Aw8JqVegEf0w2fDnATrX9VpkMcyFeM0FhwO62wh+A=
|
||||
github.com/beevik/etree v1.1.0 h1:T0xke/WvNtMoCqgzPhkX2r4rjY3GDZFi+FjpRZY2Jbs=
|
||||
github.com/beevik/etree v1.1.0/go.mod h1:r8Aw8JqVegEf0w2fDnATrX9VpkMcyFeM0FhwO62wh+A=
|
||||
github.com/benbjohnson/clock v0.0.0-20161215174838-7dc76406b6d3 h1:wOysYcIdqv3WnvwqFFzrYCFALPED7qkUGaLXu359GSc=
|
||||
@ -30,12 +31,13 @@ github.com/codegangsta/cli v1.20.0/go.mod h1:/qJNoX69yVSKu5o4jLyXAENLRyk1uhi7zkb
|
||||
github.com/couchbase/gomemcached v0.0.0-20190515232915-c4b4ca0eb21d/go.mod h1:srVSlQLB8iXBVXHgnqemxUXqN6FCvClgCMPCsjBDR7c=
|
||||
github.com/couchbase/goutils v0.0.0-20190315194238-f9d42b11473b/go.mod h1:BQwMFlJzDjFDG3DJUdU0KORxn88UlsOULuxLExMh3Hs=
|
||||
github.com/couchbaselabs/go-couchbase v0.0.0-20190708161019-23e7ca2ce2b7/go.mod h1:mby/05p8HE5yHEAKiIH/555NoblMs7PtW6NrYshDruc=
|
||||
github.com/crewjam/saml v0.0.0-20190521120225-344d075952c9 h1:+cz/lCIhz+eg8+jC8cWk5LBLbbpH39IKyHliN6GZyUE=
|
||||
github.com/crewjam/saml v0.0.0-20190521120225-344d075952c9/go.mod h1:w5eu+HNtubx+kRpQL6QFT2F3yIFfYVe6+EzOFVU7Hko=
|
||||
github.com/crewjam/saml v0.0.0-20191031171751-c42136edf9b1 h1:PKeiHI5SxrkdEtI8FVdk1ubBl2wjnOmHQf5D4ZJOKFE=
|
||||
github.com/crewjam/saml v0.0.0-20191031171751-c42136edf9b1/go.mod h1:pzACCdpqjQKTvpPZs5P3FzFNQ+RSOJX5StwHwh7ZUgw=
|
||||
github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76/go.mod h1:vYwsqCOLxGiisLwp9rITslkFNpZD5rz43tf41QFkTWY=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/dchest/uniuri v0.0.0-20160212164326-8902c56451e9/go.mod h1:GgB8SF9nRG+GqaDtLcwJZsQFhcogVCJ79j4EdT0c2V4=
|
||||
github.com/denisenkom/go-mssqldb v0.0.0-20181014144952-4e0d7dc8888f/go.mod h1:xN/JuLBIz4bjkxNmByTiV1IbhfnYb6oo99phBn4Eqhc=
|
||||
github.com/denisenkom/go-mssqldb v0.0.0-20190315220205-a8ed825ac853 h1:tTngnoO/B6HQnJ+pK8tN7kEAhmhIfaJOutqq/A4/JTM=
|
||||
github.com/denisenkom/go-mssqldb v0.0.0-20190315220205-a8ed825ac853/go.mod h1:xN/JuLBIz4bjkxNmByTiV1IbhfnYb6oo99phBn4Eqhc=
|
||||
@ -266,6 +268,7 @@ github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3Ifn
|
||||
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM=
|
||||
github.com/yudai/pp v2.0.1+incompatible h1:Q4//iY4pNF6yPLZIigmvcl7k/bPgrcTPIFIcmawg5bI=
|
||||
github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc=
|
||||
github.com/zenazn/goji v0.9.1-0.20160507202103-64eb34159fe5/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
|
||||
github.com/ziutek/mymysql v1.5.4 h1:GB0qdRGsTwQSBVYuVShFBKaXSnSnYYC2d9knnE1LHFs=
|
||||
github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0=
|
||||
go.uber.org/atomic v1.3.2 h1:2Oa65PReHzfn29GpvgsYwloV9AVFHPDk8tYxt2c2tr4=
|
||||
@ -276,6 +279,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
|
||||
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc=
|
||||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392 h1:ACG4HJsFiNMf47Y4PeRoebLNy/2lXT9EtprMuTFWt1M=
|
||||
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
|
||||
golang.org/x/image v0.0.0-20190507092727-e4e5bf290fec/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
@ -309,6 +314,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
|
||||
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa h1:KIDDMLT1O0Nr7TSxp8xM5tJcdn8tgyAONntO829og1M=
|
||||
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69 h1:rOhMmluY6kLMhdnrivzec6lLgaVbMHMn2ISQXJeJ5EM=
|
||||
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
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.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
|
||||
@ -342,6 +349,8 @@ gopkg.in/bufio.v1 v1.0.0-20140618132640-567b2bfa514e/go.mod h1:xsQCaysVCudhrYTfz
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
|
||||
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
|
||||
gopkg.in/ini.v1 v1.46.0 h1:VeDZbLYGaupuvIrsYCEOe/L/2Pcs5n7hdO1ZTjporag=
|
||||
@ -363,4 +372,6 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWD
|
||||
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
|
||||
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
|
4
vendor/github.com/crewjam/saml/.gitignore
generated
vendored
4
vendor/github.com/crewjam/saml/.gitignore
generated
vendored
@ -1,3 +1,7 @@
|
||||
coverage.out
|
||||
coverage.html
|
||||
vendor/
|
||||
|
||||
# IDE-specific settings
|
||||
.idea
|
||||
.vscode
|
98
vendor/github.com/crewjam/saml/Gopkg.lock
generated
vendored
98
vendor/github.com/crewjam/saml/Gopkg.lock
generated
vendored
@ -1,98 +0,0 @@
|
||||
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
||||
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/beevik/etree"
|
||||
packages = ["."]
|
||||
revision = "9d7e8feddccb4ed1b8afb54e368bd323d2ff652c"
|
||||
version = "v1.0.1"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/crewjam/saml"
|
||||
packages = [
|
||||
".",
|
||||
"logger",
|
||||
"samlidp",
|
||||
"samlsp",
|
||||
"testsaml",
|
||||
"xmlenc"
|
||||
]
|
||||
revision = "6b5dd2d26974f7f5e59132ef5921fab7993794d7"
|
||||
version = "0.2.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/dchest/uniuri"
|
||||
packages = ["."]
|
||||
revision = "8902c56451e9b58ff940bbe5fec35d5f9c04584a"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/dgrijalva/jwt-go"
|
||||
packages = ["."]
|
||||
revision = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e"
|
||||
version = "v3.2.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/jonboulle/clockwork"
|
||||
packages = ["."]
|
||||
revision = "2eee05ed794112d45db504eb05aa693efd2b8b09"
|
||||
version = "v0.1.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/kr/pretty"
|
||||
packages = ["."]
|
||||
revision = "73f6ac0b30a98e433b289500d779f50c1a6f0712"
|
||||
version = "v0.1.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/kr/text"
|
||||
packages = ["."]
|
||||
revision = "e2ffdb16a802fe2bb95e2e35ff34f0e53aeef34f"
|
||||
version = "v0.1.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/russellhaering/goxmldsig"
|
||||
packages = [
|
||||
".",
|
||||
"etreeutils",
|
||||
"types"
|
||||
]
|
||||
revision = "7acd5e4a6ef74fe1b082c20f119556adf70c3944"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/zenazn/goji"
|
||||
packages = [
|
||||
".",
|
||||
"bind",
|
||||
"graceful",
|
||||
"graceful/listener",
|
||||
"web",
|
||||
"web/middleware",
|
||||
"web/mutil"
|
||||
]
|
||||
revision = "64eb34159fe53473206c2b3e70fe396a639452f2"
|
||||
version = "v1.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "golang.org/x/crypto"
|
||||
packages = [
|
||||
"bcrypt",
|
||||
"blowfish",
|
||||
"ripemd160"
|
||||
]
|
||||
revision = "c126467f60eb25f8f27e5a981f32a87e3965053f"
|
||||
|
||||
[[projects]]
|
||||
branch = "v1"
|
||||
name = "gopkg.in/check.v1"
|
||||
packages = ["."]
|
||||
revision = "788fd78401277ebd861206a03c884797c6ec5541"
|
||||
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
inputs-digest = "e95ae53367b806651c34d425c22f40bade70c9db018c9b619b37f4c8405acb65"
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
70
vendor/github.com/crewjam/saml/Gopkg.toml
generated
vendored
70
vendor/github.com/crewjam/saml/Gopkg.toml
generated
vendored
@ -1,70 +0,0 @@
|
||||
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
||||
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/beevik/etree"
|
||||
packages = ["."]
|
||||
revision = "15a30b44cfd6c5a16a7ddfe271bf146aaf2d3195"
|
||||
version = "v1.0.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/dchest/uniuri"
|
||||
packages = ["."]
|
||||
revision = "8902c56451e9b58ff940bbe5fec35d5f9c04584a"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/dgrijalva/jwt-go"
|
||||
packages = ["."]
|
||||
revision = "d2709f9f1f31ebcda9651b03077758c1f3a0018c"
|
||||
version = "v3.0.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/jonboulle/clockwork"
|
||||
packages = ["."]
|
||||
revision = "2eee05ed794112d45db504eb05aa693efd2b8b09"
|
||||
version = "v0.1.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/kr/pretty"
|
||||
packages = ["."]
|
||||
revision = "cfb55aafdaf3ec08f0db22699ab822c50091b1c4"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/kr/text"
|
||||
packages = ["."]
|
||||
revision = "7cafcd837844e784b526369c9bce262804aebc60"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/russellhaering/goxmldsig"
|
||||
packages = [".","etreeutils","types"]
|
||||
revision = "b7efc6231e45b10bfd779852831c8bb59b350ec5"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/zenazn/goji"
|
||||
packages = [".","bind","graceful","graceful/listener","web","web/middleware","web/mutil"]
|
||||
revision = "64eb34159fe53473206c2b3e70fe396a639452f2"
|
||||
version = "v1.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "golang.org/x/crypto"
|
||||
packages = ["bcrypt","blowfish","ripemd160"]
|
||||
revision = "847319b7fc94cab682988f93da778204da164588"
|
||||
|
||||
[[projects]]
|
||||
branch = "v1"
|
||||
name = "gopkg.in/check.v1"
|
||||
packages = ["."]
|
||||
revision = "20d25e2804050c1cd24a7eea1e7a6447dd0e74ec"
|
||||
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
inputs-digest = "253ec289f823a19c6473233e4934b31f5e623b0fb3136183b129cb652a5685c2"
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
||||
|
23
vendor/github.com/crewjam/saml/README.md
generated
vendored
23
vendor/github.com/crewjam/saml/README.md
generated
vendored
@ -39,7 +39,10 @@ Let us assume we have a simple web application to protect. We'll modify this app
|
||||
```golang
|
||||
package main
|
||||
|
||||
import "net/http"
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func hello(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintf(w, "Hello, World!")
|
||||
@ -55,7 +58,7 @@ Each service provider must have an self-signed X.509 key pair established. You c
|
||||
|
||||
openssl req -x509 -newkey rsa:2048 -keyout myservice.key -out myservice.cert -days 365 -nodes -subj "/CN=myservice.example.com"
|
||||
|
||||
We will use `samlsp.Middleware` to wrap the endpoint we want to protect. Middleware provides both an `http.Handler` to serve the SAML specific URLs **and** a set of wrappers to require the user to be logged in. We also provide the URL where the service provider can fetch the metadata from the IDP at startup. In our case, we'll use [testshib.org](https://www.testshib.org/), an identity provider designed for testing.
|
||||
We will use `samlsp.Middleware` to wrap the endpoint we want to protect. Middleware provides both an `http.Handler` to serve the SAML specific URLs **and** a set of wrappers to require the user to be logged in. We also provide the URL where the service provider can fetch the metadata from the IDP at startup. In our case, we'll use [samltest.id](https://samltest.id/), an identity provider designed for testing.
|
||||
|
||||
```golang
|
||||
package main
|
||||
@ -85,7 +88,7 @@ func main() {
|
||||
panic(err) // TODO handle error
|
||||
}
|
||||
|
||||
idpMetadataURL, err := url.Parse("https://www.testshib.org/metadata/testshib-providers.xml")
|
||||
idpMetadataURL, err := url.Parse("https://samltest.id/saml/idp")
|
||||
if err != nil {
|
||||
panic(err) // TODO handle error
|
||||
}
|
||||
@ -108,22 +111,22 @@ func main() {
|
||||
}
|
||||
```
|
||||
|
||||
Next we'll have to register our service provider with the identity provider to establish trust from the service provider to the IDP. For [testshib.org](https://www.testshib.org/), you can do something like:
|
||||
Next we'll have to register our service provider with the identity provider to establish trust from the service provider to the IDP. For [samltest.id](https://samltest.id/), you can do something like:
|
||||
|
||||
mdpath=saml-test-$USER-$HOST.xml
|
||||
curl localhost:8000/saml/metadata > $mdpath
|
||||
|
||||
Navigate to https://www.testshib.org/register.html and upload the file you fetched.
|
||||
Navigate to https://samltest.id/upload.php and upload the file you fetched.
|
||||
|
||||
Now you should be able to authenticate. The flow should look like this:
|
||||
|
||||
1. You browse to `localhost:8000/hello`
|
||||
|
||||
1. The middleware redirects you to `https://idp.testshib.org/idp/profile/SAML2/Redirect/SSO`
|
||||
1. The middleware redirects you to `https://samltest.id/idp/profile/SAML2/Redirect/SSO`
|
||||
|
||||
1. testshib.org prompts you for a username and password.
|
||||
1. samltest.id prompts you for a username and password.
|
||||
|
||||
1. testshib.org returns you an HTML document which contains an HTML form setup to POST to `localhost:8000/saml/acs`. The form is automatically submitted if you have javascript enabled.
|
||||
1. samltest.id returns you an HTML document which contains an HTML form setup to POST to `localhost:8000/saml/acs`. The form is automatically submitted if you have javascript enabled.
|
||||
|
||||
1. The local service validates the response, issues a session cookie, and redirects you to the original URL, `localhost:8000/hello`.
|
||||
|
||||
@ -131,7 +134,7 @@ Now you should be able to authenticate. The flow should look like this:
|
||||
|
||||
## Getting Started as an Identity Provider
|
||||
|
||||
Please see `examples/idp/` for a substantially complete example of how to use the library and helpers to be an identity provider.
|
||||
Please see `example/idp/` for a substantially complete example of how to use the library and helpers to be an identity provider.
|
||||
|
||||
## Support
|
||||
|
||||
@ -159,7 +162,7 @@ The SAML specification is a collection of PDFs (sadly):
|
||||
|
||||
- [SAMLConformance](http://docs.oasis-open.org/security/saml/v2.0/saml-conformance-2.0-os.pdf) includes a support matrix for various parts of the protocol.
|
||||
|
||||
[TestShib](https://www.testshib.org/) is a testing ground for SAML service and identity providers.
|
||||
[SAMLtest](https://samltest.id/) is a testing ground for SAML service and identity providers.
|
||||
|
||||
## Security Issues
|
||||
|
||||
|
18
vendor/github.com/crewjam/saml/go.mod
generated
vendored
Normal file
18
vendor/github.com/crewjam/saml/go.mod
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
module github.com/crewjam/saml
|
||||
|
||||
go 1.13
|
||||
|
||||
require (
|
||||
github.com/beevik/etree v1.0.1
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/dchest/uniuri v0.0.0-20160212164326-8902c56451e9
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible
|
||||
github.com/jonboulle/clockwork v0.1.0 // indirect
|
||||
github.com/kr/pretty v0.1.0
|
||||
github.com/russellhaering/goxmldsig v0.0.0-20180430223755-7acd5e4a6ef7
|
||||
github.com/stretchr/testify v1.4.0
|
||||
github.com/zenazn/goji v0.9.1-0.20160507202103-64eb34159fe5
|
||||
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
|
||||
gopkg.in/yaml.v2 v2.2.4 // indirect
|
||||
)
|
41
vendor/github.com/crewjam/saml/go.sum
generated
vendored
Normal file
41
vendor/github.com/crewjam/saml/go.sum
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
github.com/beevik/etree v1.0.1 h1:lWzdj5v/Pj1X360EV7bUudox5SRipy4qZLjY0rhb0ck=
|
||||
github.com/beevik/etree v1.0.1/go.mod h1:r8Aw8JqVegEf0w2fDnATrX9VpkMcyFeM0FhwO62wh+A=
|
||||
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/dchest/uniuri v0.0.0-20160212164326-8902c56451e9 h1:74lLNRzvsdIlkTgfDSMuaPjBr4cf6k7pwQQANm/yLKU=
|
||||
github.com/dchest/uniuri v0.0.0-20160212164326-8902c56451e9/go.mod h1:GgB8SF9nRG+GqaDtLcwJZsQFhcogVCJ79j4EdT0c2V4=
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
|
||||
github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo=
|
||||
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
|
||||
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/russellhaering/goxmldsig v0.0.0-20180430223755-7acd5e4a6ef7 h1:J4AOUcOh/t1XbQcJfkEqhzgvMJ2tDxdCVvmHxW5QXao=
|
||||
github.com/russellhaering/goxmldsig v0.0.0-20180430223755-7acd5e4a6ef7/go.mod h1:Oz4y6ImuOQZxynhbSXk7btjEfNBtGlj2dcaOvXl2FSM=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/zenazn/goji v0.9.1-0.20160507202103-64eb34159fe5 h1:mXV20Aj/BdWrlVzIn1kXFa+Tq62INlUi0cFFlztTaK0=
|
||||
github.com/zenazn/goji v0.9.1-0.20160507202103-64eb34159fe5/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392 h1:ACG4HJsFiNMf47Y4PeRoebLNy/2lXT9EtprMuTFWt1M=
|
||||
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69 h1:rOhMmluY6kLMhdnrivzec6lLgaVbMHMn2ISQXJeJ5EM=
|
||||
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
|
||||
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
40
vendor/github.com/crewjam/saml/identity_provider.go
generated
vendored
40
vendor/github.com/crewjam/saml/identity_provider.go
generated
vendored
@ -20,9 +20,10 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/beevik/etree"
|
||||
dsig "github.com/russellhaering/goxmldsig"
|
||||
|
||||
"github.com/crewjam/saml/logger"
|
||||
"github.com/crewjam/saml/xmlenc"
|
||||
dsig "github.com/russellhaering/goxmldsig"
|
||||
)
|
||||
|
||||
// Session represents a user session. It is returned by the
|
||||
@ -34,13 +35,14 @@ type Session struct {
|
||||
ExpireTime time.Time
|
||||
Index string
|
||||
|
||||
NameID string
|
||||
Groups []string
|
||||
UserName string
|
||||
UserEmail string
|
||||
UserCommonName string
|
||||
UserSurname string
|
||||
UserGivenName string
|
||||
NameID string
|
||||
Groups []string
|
||||
UserName string
|
||||
UserEmail string
|
||||
UserCommonName string
|
||||
UserSurname string
|
||||
UserGivenName string
|
||||
UserScopedAffiliation string
|
||||
}
|
||||
|
||||
// SessionProvider is an interface used by IdentityProvider to determine the
|
||||
@ -110,7 +112,7 @@ func (idp *IdentityProvider) Metadata() *EntityDescriptor {
|
||||
ValidUntil: TimeNow().Add(DefaultValidDuration),
|
||||
CacheDuration: DefaultValidDuration,
|
||||
IDPSSODescriptors: []IDPSSODescriptor{
|
||||
IDPSSODescriptor{
|
||||
{
|
||||
SSODescriptor: SSODescriptor{
|
||||
RoleDescriptor: RoleDescriptor{
|
||||
ProtocolSupportEnumeration: "urn:oasis:names:tc:SAML:2.0:protocol",
|
||||
@ -620,6 +622,18 @@ func (DefaultAssertionMaker) MakeAssertion(req *IdpAuthnRequest, session *Sessio
|
||||
})
|
||||
}
|
||||
|
||||
if session.UserScopedAffiliation != "" {
|
||||
attributes = append(attributes, Attribute{
|
||||
FriendlyName: "uid",
|
||||
Name: "urn:oid:1.3.6.1.4.1.5923.1.1.1.9",
|
||||
NameFormat: "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
|
||||
Values: []AttributeValue{{
|
||||
Type: "xs:string",
|
||||
Value: session.UserScopedAffiliation,
|
||||
}},
|
||||
})
|
||||
}
|
||||
|
||||
if len(session.Groups) != 0 {
|
||||
groupMemberAttributeValues := []AttributeValue{}
|
||||
for _, group := range session.Groups {
|
||||
@ -661,7 +675,7 @@ func (DefaultAssertionMaker) MakeAssertion(req *IdpAuthnRequest, session *Sessio
|
||||
Value: session.NameID,
|
||||
},
|
||||
SubjectConfirmations: []SubjectConfirmation{
|
||||
SubjectConfirmation{
|
||||
{
|
||||
Method: "urn:oasis:names:tc:SAML:2.0:cm:bearer",
|
||||
SubjectConfirmationData: &SubjectConfirmationData{
|
||||
Address: req.HTTPRequest.RemoteAddr,
|
||||
@ -676,13 +690,13 @@ func (DefaultAssertionMaker) MakeAssertion(req *IdpAuthnRequest, session *Sessio
|
||||
NotBefore: notBefore,
|
||||
NotOnOrAfter: notOnOrAfterAfter,
|
||||
AudienceRestrictions: []AudienceRestriction{
|
||||
AudienceRestriction{
|
||||
{
|
||||
Audience: Audience{Value: req.ServiceProviderMetadata.EntityID},
|
||||
},
|
||||
},
|
||||
},
|
||||
AuthnStatements: []AuthnStatement{
|
||||
AuthnStatement{
|
||||
{
|
||||
AuthnInstant: session.CreateTime,
|
||||
SessionIndex: session.Index,
|
||||
SubjectLocality: &SubjectLocality{
|
||||
@ -696,7 +710,7 @@ func (DefaultAssertionMaker) MakeAssertion(req *IdpAuthnRequest, session *Sessio
|
||||
},
|
||||
},
|
||||
AttributeStatements: []AttributeStatement{
|
||||
AttributeStatement{
|
||||
{
|
||||
Attributes: attributes,
|
||||
},
|
||||
},
|
||||
|
2
vendor/github.com/crewjam/saml/metadata.go
generated
vendored
2
vendor/github.com/crewjam/saml/metadata.go
generated
vendored
@ -133,7 +133,7 @@ type ContactPerson struct {
|
||||
// See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.4.1
|
||||
type RoleDescriptor struct {
|
||||
ID string `xml:",attr,omitempty"`
|
||||
ValidUntil time.Time `xml:"validUntil,attr,omitempty"`
|
||||
ValidUntil *time.Time `xml:"validUntil,attr,omitempty"`
|
||||
CacheDuration time.Duration `xml:"cacheDuration,attr,omitempty"`
|
||||
ProtocolSupportEnumeration string `xml:"protocolSupportEnumeration,attr"`
|
||||
ErrorURL string `xml:"errorURL,attr,omitempty"`
|
||||
|
124
vendor/github.com/crewjam/saml/saml.go
generated
vendored
124
vendor/github.com/crewjam/saml/saml.go
generated
vendored
@ -1,46 +1,46 @@
|
||||
//
|
||||
//
|
||||
// Package saml contains a partial implementation of the SAML standard in golang.
|
||||
// SAML is a standard for identity federation, i.e. either allowing a third party to authenticate your users or allowing third parties to rely on us to authenticate their users.
|
||||
//
|
||||
//
|
||||
// Introduction
|
||||
//
|
||||
//
|
||||
// In SAML parlance an Identity Provider (IDP) is a service that knows how to authenticate users. A Service Provider (SP) is a service that delegates authentication to an IDP. If you are building a service where users log in with someone else's credentials, then you are a Service Provider. This package supports implementing both service providers and identity providers.
|
||||
//
|
||||
//
|
||||
// The core package contains the implementation of SAML. The package samlsp provides helper middleware suitable for use in Service Provider applications. The package samlidp provides a rudimentary IDP service that is useful for testing or as a starting point for other integrations.
|
||||
//
|
||||
// Breaking Changes
|
||||
//
|
||||
//
|
||||
// Breaking Changes
|
||||
//
|
||||
// Note: between version 0.2.0 and the current master include changes to the API
|
||||
// that will break your existing code a little.
|
||||
//
|
||||
//
|
||||
// This change turned some fields from pointers to a single optional struct into
|
||||
// the more correct slice of struct, and to pluralize the field name. For example,
|
||||
// `IDPSSODescriptor *IDPSSODescriptor` has become
|
||||
// `IDPSSODescriptors []IDPSSODescriptor`. This more accurately reflects the
|
||||
// `IDPSSODescriptor *IDPSSODescriptor` has become
|
||||
// `IDPSSODescriptors []IDPSSODescriptor`. This more accurately reflects the
|
||||
// standard.
|
||||
//
|
||||
// The struct `Metadata` has been renamed to `EntityDescriptor`. In 0.2.0 and before,
|
||||
// every struct derived from the standard has the same name as in the standard,
|
||||
// *except* for `Metadata` which should always have been called `EntityDescriptor`.
|
||||
//
|
||||
//
|
||||
// The struct `Metadata` has been renamed to `EntityDescriptor`. In 0.2.0 and before,
|
||||
// every struct derived from the standard has the same name as in the standard,
|
||||
// *except* for `Metadata` which should always have been called `EntityDescriptor`.
|
||||
//
|
||||
// In various places `url.URL` is now used where `string` was used <= version 0.1.0.
|
||||
//
|
||||
// In various places where keys and certificates were modeled as `string`
|
||||
// <= version 0.1.0 (what was I thinking?!) they are now modeled as
|
||||
//
|
||||
// In various places where keys and certificates were modeled as `string`
|
||||
// <= version 0.1.0 (what was I thinking?!) they are now modeled as
|
||||
// `*rsa.PrivateKey`, `*x509.Certificate`, or `crypto.PrivateKey` as appropriate.
|
||||
//
|
||||
//
|
||||
// Getting Started as a Service Provider
|
||||
//
|
||||
//
|
||||
// Let us assume we have a simple web appliation to protect. We'll modify this application so it uses SAML to authenticate users.
|
||||
// ```golang
|
||||
// package main
|
||||
//
|
||||
//
|
||||
// import "net/http"
|
||||
//
|
||||
//
|
||||
// func hello(w http.ResponseWriter, r *http.Request) {
|
||||
// fmt.Fprintf(w, "Hello, World!")
|
||||
// }
|
||||
//
|
||||
//
|
||||
// func main() {
|
||||
// app := http.HandlerFunc(hello)
|
||||
// http.Handle("/hello", app)
|
||||
@ -48,14 +48,14 @@
|
||||
// }
|
||||
// ```
|
||||
// Each service provider must have an self-signed X.509 key pair established. You can generate your own with something like this:
|
||||
//
|
||||
//
|
||||
// openssl req -x509 -newkey rsa:2048 -keyout myservice.key -out myservice.cert -days 365 -nodes -subj "/CN=myservice.example.com"
|
||||
//
|
||||
//
|
||||
// We will use `samlsp.Middleware` to wrap the endpoint we want to protect. Middleware provides both an `http.Handler` to serve the SAML specific URLs and a set of wrappers to require the user to be logged in. We also provide the URL where the service provider can fetch the metadata from the IDP at startup. In our case, we'll use [testshib.org](https://www.testshib.org/), an identity provider designed for testing.
|
||||
//
|
||||
//
|
||||
// ```golang
|
||||
// package main
|
||||
//
|
||||
//
|
||||
// import (
|
||||
// "crypto/rsa"
|
||||
// "crypto/tls"
|
||||
@ -63,15 +63,15 @@
|
||||
// "fmt"
|
||||
// "net/http"
|
||||
// "net/url"
|
||||
//
|
||||
//
|
||||
// "github.com/crewjam/saml/samlsp"
|
||||
// )
|
||||
//
|
||||
//
|
||||
// func hello(w http.ResponseWriter, r *http.Request) {
|
||||
// claims := samlsp.Claims(r.Context())
|
||||
// fmt.Fprintf(w, "Hello, %s!", claims.Attributes["cn"][0])
|
||||
// }
|
||||
//
|
||||
//
|
||||
// func main() {
|
||||
// keyPair, err := tls.LoadX509KeyPair("myservice.cert", "myservice.key")
|
||||
// if err != nil {
|
||||
@ -81,17 +81,17 @@
|
||||
// if err != nil {
|
||||
// panic(err) // TODO handle error
|
||||
// }
|
||||
//
|
||||
//
|
||||
// idpMetadataURL, err := url.Parse("https://www.testshib.org/metadata/testshib-providers.xml")
|
||||
// if err != nil {
|
||||
// panic(err) // TODO handle error
|
||||
// }
|
||||
//
|
||||
//
|
||||
// rootURL, err := url.Parse("http://localhost:8000")
|
||||
// if err != nil {
|
||||
// panic(err) // TODO handle error
|
||||
// }
|
||||
//
|
||||
//
|
||||
// samlSP, _ := samlsp.New(samlsp.Options{
|
||||
// URL: *rootURL,
|
||||
// Key: keyPair.PrivateKey.(*rsa.PrivateKey),
|
||||
@ -104,61 +104,61 @@
|
||||
// http.ListenAndServe(":8000", nil)
|
||||
// }
|
||||
// ```
|
||||
//
|
||||
//
|
||||
// Next we'll have to register our service provider with the identiy provider to establish trust from the service provider to the IDP. For [testshib.org](https://www.testshib.org/), you can do something like:
|
||||
//
|
||||
//
|
||||
// mdpath=saml-test-$USER-$HOST.xml
|
||||
// curl localhost:8000/saml/metadata > $mdpath
|
||||
//
|
||||
//
|
||||
// Naviate to https://www.testshib.org/register.html and upload the file you fetched.
|
||||
//
|
||||
//
|
||||
// Now you should be able to authenticate. The flow should look like this:
|
||||
//
|
||||
//
|
||||
// 1. You browse to `localhost:8000/hello`
|
||||
//
|
||||
//
|
||||
// 1. The middleware redirects you to `https://idp.testshib.org/idp/profile/SAML2/Redirect/SSO`
|
||||
//
|
||||
//
|
||||
// 1. testshib.org prompts you for a username and password.
|
||||
//
|
||||
//
|
||||
// 1. testshib.org returns you an HTML document which contains an HTML form setup to POST to `localhost:8000/saml/acs`. The form is automatically submitted if you have javascript enabled.
|
||||
//
|
||||
//
|
||||
// 1. The local service validates the response, issues a session cookie, and redirects you to the original URL, `localhost:8000/hello`.
|
||||
//
|
||||
//
|
||||
// 1. This time when `localhost:8000/hello` is requested there is a valid session and so the main content is served.
|
||||
//
|
||||
//
|
||||
// Getting Started as an Identity Provider
|
||||
//
|
||||
//
|
||||
// Please see `examples/idp/` for a substantially complete example of how to use the library and helpers to be an identity provider.
|
||||
//
|
||||
//
|
||||
// Support
|
||||
//
|
||||
//
|
||||
// The SAML standard is huge and complex with many dark corners and strange, unused features. This package implements the most commonly used subset of these features required to provide a single sign on experience. The package supports at least the subset of SAML known as [interoperable SAML](http://saml2int.org).
|
||||
//
|
||||
//
|
||||
// This package supports the Web SSO profile. Message flows from the service provider to the IDP are supported using the HTTP Redirect binding and the HTTP POST binding. Message flows from the IDP to the service provider are supported via the HTTP POST binding.
|
||||
//
|
||||
//
|
||||
// The package supports signed and encrypted SAML assertions. It does not support signed or encrypted requests.
|
||||
//
|
||||
//
|
||||
// RelayState
|
||||
//
|
||||
// The *RelayState* parameter allows you to pass user state information across the authentication flow. The most common use for this is to allow a user to request a deep link into your site, be redirected through the SAML login flow, and upon successful completion, be directed to the originaly requested link, rather than the root.
|
||||
//
|
||||
//
|
||||
// The *RelayState* parameter allows you to pass user state information across the authentication flow. The most common use for this is to allow a user to request a deep link into your site, be redirected through the SAML login flow, and upon successful completion, be directed to the originally requested link, rather than the root.
|
||||
//
|
||||
// Unfortunately, *RelayState* is less useful than it could be. Firstly, it is not authenticated, so anything you supply must be signed to avoid XSS or CSRF. Secondly, it is limited to 80 bytes in length, which precludes signing. (See section 3.6.3.1 of SAMLProfiles.)
|
||||
//
|
||||
//
|
||||
// References
|
||||
//
|
||||
//
|
||||
// The SAML specification is a collection of PDFs (sadly):
|
||||
//
|
||||
//
|
||||
// - [SAMLCore](http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf) defines data types.
|
||||
//
|
||||
//
|
||||
// - [SAMLBindings](http://docs.oasis-open.org/security/saml/v2.0/saml-bindings-2.0-os.pdf) defines the details of the HTTP requests in play.
|
||||
//
|
||||
//
|
||||
// - [SAMLProfiles](http://docs.oasis-open.org/security/saml/v2.0/saml-profiles-2.0-os.pdf) describes data flows.
|
||||
//
|
||||
//
|
||||
// - [SAMLConformance](http://docs.oasis-open.org/security/saml/v2.0/saml-conformance-2.0-os.pdf) includes a support matrix for various parts of the protocol.
|
||||
//
|
||||
//
|
||||
// [TestShib](https://www.testshib.org/) is a testing ground for SAML service and identity providers.
|
||||
//
|
||||
//
|
||||
// Security Issues
|
||||
//
|
||||
//
|
||||
// Please do not report security issues in the issue tracker. Rather, please contact me directly at ross@kndr.org ([PGP Key `8EA205C01C425FF195A5E9A43FA0768F26FD2554`](https://keybase.io/crewjam)).
|
||||
package saml
|
||||
|
146
vendor/github.com/crewjam/saml/schema.go
generated
vendored
146
vendor/github.com/crewjam/saml/schema.go
generated
vendored
@ -39,6 +39,75 @@ type AuthnRequest struct {
|
||||
ProviderName string `xml:",attr"`
|
||||
}
|
||||
|
||||
type LogoutRequest struct {
|
||||
XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:protocol LogoutRequest"`
|
||||
|
||||
ID string `xml:",attr"`
|
||||
Version string `xml:",attr"`
|
||||
IssueInstant time.Time `xml:",attr"`
|
||||
Destination string `xml:",attr"`
|
||||
Issuer *Issuer `xml:"urn:oasis:names:tc:SAML:2.0:assertion Issuer"`
|
||||
NameID *NameID
|
||||
Signature *etree.Element
|
||||
|
||||
SessionIndex string `xml:",attr"`
|
||||
}
|
||||
|
||||
// Element returns an etree.Element representing the object in XML form.
|
||||
func (r *LogoutRequest) Element() *etree.Element {
|
||||
el := etree.NewElement("samlp:LogoutRequest")
|
||||
el.CreateAttr("xmlns:saml", "urn:oasis:names:tc:SAML:2.0:assertion")
|
||||
el.CreateAttr("xmlns:samlp", "urn:oasis:names:tc:SAML:2.0:protocol")
|
||||
el.CreateAttr("ID", r.ID)
|
||||
el.CreateAttr("Version", r.Version)
|
||||
el.CreateAttr("IssueInstant", r.IssueInstant.Format(timeFormat))
|
||||
if r.Destination != "" {
|
||||
el.CreateAttr("Destination", r.Destination)
|
||||
}
|
||||
if r.Issuer != nil {
|
||||
el.AddChild(r.Issuer.Element())
|
||||
}
|
||||
if r.NameID != nil {
|
||||
el.AddChild(r.NameID.Element())
|
||||
}
|
||||
if r.Signature != nil {
|
||||
el.AddChild(r.Signature)
|
||||
}
|
||||
if r.SessionIndex != "" {
|
||||
el.CreateAttr("SessionIndex", r.SessionIndex)
|
||||
}
|
||||
return el
|
||||
}
|
||||
|
||||
// MarshalXML implements xml.Marshaler
|
||||
func (r *LogoutRequest) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
type Alias LogoutRequest
|
||||
aux := &struct {
|
||||
IssueInstant RelaxedTime `xml:",attr"`
|
||||
*Alias
|
||||
}{
|
||||
IssueInstant: RelaxedTime(r.IssueInstant),
|
||||
Alias: (*Alias)(r),
|
||||
}
|
||||
return e.Encode(aux)
|
||||
}
|
||||
|
||||
// UnmarshalXML implements xml.Unmarshaler
|
||||
func (r *LogoutRequest) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
type Alias LogoutRequest
|
||||
aux := &struct {
|
||||
IssueInstant RelaxedTime `xml:",attr"`
|
||||
*Alias
|
||||
}{
|
||||
Alias: (*Alias)(r),
|
||||
}
|
||||
if err := d.DecodeElement(&aux, &start); err != nil {
|
||||
return err
|
||||
}
|
||||
r.IssueInstant = time.Time(aux.IssueInstant)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Element returns an etree.Element representing the object
|
||||
// Element returns an etree.Element representing the object in XML form.
|
||||
func (r *AuthnRequest) Element() *etree.Element {
|
||||
@ -218,7 +287,7 @@ func (r *Response) Element() *etree.Element {
|
||||
// cannonicalizer. This could be avoided by providing a prefix list to the
|
||||
// cannonicalizer, but prefix lists do not appear to be implemented correctly
|
||||
// in some libraries, so the safest action is to always produce XML that is
|
||||
// (a) in cannonical form and (b) does not require prefix lists.
|
||||
// (a) in canonical form and (b) does not require prefix lists.
|
||||
el.CreateAttr("xmlns:xs", "http://www.w3.org/2001/XMLSchema")
|
||||
|
||||
el.CreateAttr("ID", r.ID)
|
||||
@ -357,7 +426,7 @@ const (
|
||||
StatusNoAvailableIDP = "urn:oasis:names:tc:SAML:2.0:status:NoAvailableIDP"
|
||||
|
||||
// StatusNoPassive means Indicates the responding provider cannot authenticate the principal passively, as has been requested.
|
||||
StatusNoPassive = "urn:oasis:names:tc:SAML:2.0:status:NoPassive"
|
||||
StatusNoPassive = "urn:oasis:names:tc:SAML:2.0:status:NoPassive" //nolint:gosec
|
||||
|
||||
// StatusNoSupportedIDP is used by an intermediary to indicate that none of the identity providers in an <IDPList> are supported by the intermediary.
|
||||
StatusNoSupportedIDP = "urn:oasis:names:tc:SAML:2.0:status:NoSupportedIDP"
|
||||
@ -929,3 +998,76 @@ func (a *AttributeValue) Element() *etree.Element {
|
||||
el.SetText(a.Value)
|
||||
return el
|
||||
}
|
||||
|
||||
// LogoutResponse represents the SAML object of the same name.
|
||||
//
|
||||
// See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf
|
||||
type LogoutResponse struct {
|
||||
XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:protocol LogoutResponse"`
|
||||
ID string `xml:",attr"`
|
||||
InResponseTo string `xml:",attr"`
|
||||
Version string `xml:",attr"`
|
||||
IssueInstant time.Time `xml:",attr"`
|
||||
Destination string `xml:",attr"`
|
||||
Consent string `xml:",attr"`
|
||||
Issuer *Issuer `xml:"urn:oasis:names:tc:SAML:2.0:assertion Issuer"`
|
||||
Signature *etree.Element
|
||||
Status Status `xml:"urn:oasis:names:tc:SAML:2.0:protocol Status"`
|
||||
}
|
||||
|
||||
// Element returns an etree.Element representing the object in XML form.
|
||||
func (r *LogoutResponse) Element() *etree.Element {
|
||||
el := etree.NewElement("samlp:Response")
|
||||
el.CreateAttr("xmlns:saml", "urn:oasis:names:tc:SAML:2.0:assertion")
|
||||
el.CreateAttr("xmlns:samlp", "urn:oasis:names:tc:SAML:2.0:protocol")
|
||||
|
||||
el.CreateAttr("ID", r.ID)
|
||||
if r.InResponseTo != "" {
|
||||
el.CreateAttr("InResponseTo", r.InResponseTo)
|
||||
}
|
||||
el.CreateAttr("Version", r.Version)
|
||||
el.CreateAttr("IssueInstant", r.IssueInstant.Format(timeFormat))
|
||||
if r.Destination != "" {
|
||||
el.CreateAttr("Destination", r.Destination)
|
||||
}
|
||||
if r.Consent != "" {
|
||||
el.CreateAttr("Consent", r.Consent)
|
||||
}
|
||||
if r.Issuer != nil {
|
||||
el.AddChild(r.Issuer.Element())
|
||||
}
|
||||
if r.Signature != nil {
|
||||
el.AddChild(r.Signature)
|
||||
}
|
||||
el.AddChild(r.Status.Element())
|
||||
return el
|
||||
}
|
||||
|
||||
// MarshalXML implements xml.Marshaler
|
||||
func (r *LogoutResponse) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
type Alias LogoutResponse
|
||||
aux := &struct {
|
||||
IssueInstant RelaxedTime `xml:",attr"`
|
||||
*Alias
|
||||
}{
|
||||
IssueInstant: RelaxedTime(r.IssueInstant),
|
||||
Alias: (*Alias)(r),
|
||||
}
|
||||
return e.Encode(aux)
|
||||
}
|
||||
|
||||
// UnmarshalXML implements xml.Unmarshaler
|
||||
func (r *LogoutResponse) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
type Alias LogoutResponse
|
||||
aux := &struct {
|
||||
IssueInstant RelaxedTime `xml:",attr"`
|
||||
*Alias
|
||||
}{
|
||||
Alias: (*Alias)(r),
|
||||
}
|
||||
if err := d.DecodeElement(&aux, &start); err != nil {
|
||||
return err
|
||||
}
|
||||
r.IssueInstant = time.Time(aux.IssueInstant)
|
||||
return nil
|
||||
}
|
||||
|
206
vendor/github.com/crewjam/saml/service_provider.go
generated
vendored
206
vendor/github.com/crewjam/saml/service_provider.go
generated
vendored
@ -16,10 +16,11 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/beevik/etree"
|
||||
"github.com/crewjam/saml/logger"
|
||||
"github.com/crewjam/saml/xmlenc"
|
||||
dsig "github.com/russellhaering/goxmldsig"
|
||||
"github.com/russellhaering/goxmldsig/etreeutils"
|
||||
|
||||
"github.com/crewjam/saml/logger"
|
||||
"github.com/crewjam/saml/xmlenc"
|
||||
)
|
||||
|
||||
// NameIDFormat is the format of the id
|
||||
@ -34,9 +35,9 @@ func (n NameIDFormat) Element() *etree.Element {
|
||||
|
||||
// Name ID formats
|
||||
const (
|
||||
UnspecifiedNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified"
|
||||
UnspecifiedNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
|
||||
TransientNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:transient"
|
||||
EmailAddressNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:emailAddress"
|
||||
EmailAddressNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
|
||||
PersistentNameIDFormat NameIDFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"
|
||||
)
|
||||
|
||||
@ -54,7 +55,8 @@ type ServiceProvider struct {
|
||||
Key *rsa.PrivateKey
|
||||
|
||||
// Certificate is the RSA public part of Key.
|
||||
Certificate *x509.Certificate
|
||||
Certificate *x509.Certificate
|
||||
Intermediates []*x509.Certificate
|
||||
|
||||
// MetadataURL is the full URL to the metadata endpoint on this host,
|
||||
// i.e. https://example.com/saml/metadata
|
||||
@ -64,6 +66,10 @@ type ServiceProvider struct {
|
||||
// on this host, i.e. https://example.com/saml/acs
|
||||
AcsURL url.URL
|
||||
|
||||
// SloURL is the full URL to the SAML Single Logout endpoint on this host.
|
||||
// i.e. https://example.com/saml/slo
|
||||
SloURL url.URL
|
||||
|
||||
// IDPMetadata is the metadata from the identity provider.
|
||||
IDPMetadata *EntityDescriptor
|
||||
|
||||
@ -81,6 +87,9 @@ type ServiceProvider struct {
|
||||
// ForceAuthn allows you to force re-authentication of users even if the user
|
||||
// has a SSO session at the IdP.
|
||||
ForceAuthn *bool
|
||||
|
||||
// AllowIdpInitiated
|
||||
AllowIDPInitiated bool
|
||||
}
|
||||
|
||||
// MaxIssueDelay is the longest allowed time between when a SAML assertion is
|
||||
@ -109,6 +118,10 @@ func (sp *ServiceProvider) Metadata() *EntityDescriptor {
|
||||
authnRequestsSigned := false
|
||||
wantAssertionsSigned := true
|
||||
validUntil := TimeNow().Add(validDuration)
|
||||
certBytes := sp.Certificate.Raw
|
||||
for _, intermediate := range sp.Intermediates {
|
||||
certBytes = append(certBytes, intermediate.Raw...)
|
||||
}
|
||||
return &EntityDescriptor{
|
||||
EntityID: sp.MetadataURL.String(),
|
||||
ValidUntil: validUntil,
|
||||
@ -122,13 +135,13 @@ func (sp *ServiceProvider) Metadata() *EntityDescriptor {
|
||||
{
|
||||
Use: "signing",
|
||||
KeyInfo: KeyInfo{
|
||||
Certificate: base64.StdEncoding.EncodeToString(sp.Certificate.Raw),
|
||||
Certificate: base64.StdEncoding.EncodeToString(certBytes),
|
||||
},
|
||||
},
|
||||
{
|
||||
Use: "encryption",
|
||||
KeyInfo: KeyInfo{
|
||||
Certificate: base64.StdEncoding.EncodeToString(sp.Certificate.Raw),
|
||||
Certificate: base64.StdEncoding.EncodeToString(certBytes),
|
||||
},
|
||||
EncryptionMethods: []EncryptionMethod{
|
||||
{Algorithm: "http://www.w3.org/2001/04/xmlenc#aes128-cbc"},
|
||||
@ -138,7 +151,14 @@ func (sp *ServiceProvider) Metadata() *EntityDescriptor {
|
||||
},
|
||||
},
|
||||
},
|
||||
ValidUntil: validUntil,
|
||||
ValidUntil: &validUntil,
|
||||
},
|
||||
SingleLogoutServices: []Endpoint{
|
||||
{
|
||||
Binding: HTTPPostBinding,
|
||||
Location: sp.SloURL.String(),
|
||||
ResponseLocation: sp.SloURL.String(),
|
||||
},
|
||||
},
|
||||
},
|
||||
AuthnRequestsSigned: &authnRequestsSigned,
|
||||
@ -205,6 +225,19 @@ func (sp *ServiceProvider) GetSSOBindingLocation(binding string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// GetSLOBindingLocation returns URL for the IDP's Single Log Out Service binding
|
||||
// of the specified type (HTTPRedirectBinding or HTTPPostBinding)
|
||||
func (sp *ServiceProvider) GetSLOBindingLocation(binding string) string {
|
||||
for _, idpSSODescriptor := range sp.IDPMetadata.IDPSSODescriptors {
|
||||
for _, singleLogoutService := range idpSSODescriptor.SingleLogoutServices {
|
||||
if singleLogoutService.Binding == binding {
|
||||
return singleLogoutService.Location
|
||||
}
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// getIDPSigningCerts returns the certificates which we can use to verify things
|
||||
// signed by the IDP in PEM format, or nil if no such certificate is found.
|
||||
func (sp *ServiceProvider) getIDPSigningCerts() ([]*x509.Certificate, error) {
|
||||
@ -257,18 +290,9 @@ func (sp *ServiceProvider) getIDPSigningCerts() ([]*x509.Certificate, error) {
|
||||
|
||||
// MakeAuthenticationRequest produces a new AuthnRequest object for idpURL.
|
||||
func (sp *ServiceProvider) MakeAuthenticationRequest(idpURL string) (*AuthnRequest, error) {
|
||||
var nameIDFormat string
|
||||
switch sp.AuthnNameIDFormat {
|
||||
case "":
|
||||
// To maintain library back-compat, use "transient" if unset.
|
||||
nameIDFormat = string(TransientNameIDFormat)
|
||||
case UnspecifiedNameIDFormat:
|
||||
// Spec defines an empty value as "unspecified" so don't set one.
|
||||
default:
|
||||
nameIDFormat = string(sp.AuthnNameIDFormat)
|
||||
}
|
||||
|
||||
allowCreate := true
|
||||
nameIDFormat := sp.nameIDFormat()
|
||||
req := AuthnRequest{
|
||||
AssertionConsumerServiceURL: sp.AcsURL.String(),
|
||||
Destination: idpURL,
|
||||
@ -378,6 +402,39 @@ func (ivr *InvalidResponseError) Error() string {
|
||||
return fmt.Sprintf("Authentication failed")
|
||||
}
|
||||
|
||||
func responseIsSigned(response *etree.Document) (bool, error) {
|
||||
signatureElement, err := findChild(response.Root(), "http://www.w3.org/2000/09/xmldsig#", "Signature")
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
return signatureElement != nil, nil
|
||||
}
|
||||
|
||||
// validateDestination validates the Destination attribute.
|
||||
// If the response is signed, the Destination is required to be present.
|
||||
func (sp *ServiceProvider) validateDestination(response []byte, responseDom *Response) error {
|
||||
responseXML := etree.NewDocument()
|
||||
err := responseXML.ReadFromBytes(response)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
signed, err := responseIsSigned(responseXML)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Compare if the response is signed OR the Destination is provided.
|
||||
// (Even if the response is not signed, if the Destination is set it must match.)
|
||||
if signed || responseDom.Destination != "" {
|
||||
if responseDom.Destination != sp.AcsURL.String() {
|
||||
return fmt.Errorf("`Destination` does not match AcsURL (expected %q, actual %q)", sp.AcsURL.String(), responseDom.Destination)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ParseResponse extracts the SAML IDP response received in req, validates
|
||||
// it, and returns the verified attributes of the request.
|
||||
//
|
||||
@ -402,18 +459,39 @@ func (sp *ServiceProvider) ParseResponse(req *http.Request, possibleRequestIDs [
|
||||
return nil, retErr
|
||||
}
|
||||
retErr.Response = string(rawResponseBuf)
|
||||
assertion, err := sp.ParseXMLResponse(rawResponseBuf, possibleRequestIDs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return assertion, nil
|
||||
|
||||
}
|
||||
|
||||
func (sp *ServiceProvider) ParseXMLResponse(decodedResponseXML []byte, possibleRequestIDs []string) (*Assertion, error) {
|
||||
now := TimeNow()
|
||||
var err error
|
||||
retErr := &InvalidResponseError{
|
||||
Now: now,
|
||||
Response: string(decodedResponseXML),
|
||||
}
|
||||
|
||||
// do some validation first before we decrypt
|
||||
resp := Response{}
|
||||
if err := xml.Unmarshal(rawResponseBuf, &resp); err != nil {
|
||||
if err := xml.Unmarshal([]byte(decodedResponseXML), &resp); err != nil {
|
||||
retErr.PrivateErr = fmt.Errorf("cannot unmarshal response: %s", err)
|
||||
return nil, retErr
|
||||
}
|
||||
if resp.Destination != sp.AcsURL.String() {
|
||||
retErr.PrivateErr = fmt.Errorf("`Destination` does not match AcsURL (expected %q)", sp.AcsURL.String())
|
||||
|
||||
if err := sp.validateDestination(decodedResponseXML, &resp); err != nil {
|
||||
retErr.PrivateErr = err
|
||||
return nil, retErr
|
||||
}
|
||||
|
||||
if sp.AllowIDPInitiated && len(possibleRequestIDs) == 0 {
|
||||
possibleRequestIDs = append([]string{""})
|
||||
}
|
||||
|
||||
requestIDvalid := false
|
||||
for _, possibleRequestID := range possibleRequestIDs {
|
||||
if resp.InResponseTo == possibleRequestID {
|
||||
@ -442,7 +520,7 @@ func (sp *ServiceProvider) ParseResponse(req *http.Request, possibleRequestIDs [
|
||||
if resp.EncryptedAssertion == nil {
|
||||
|
||||
doc := etree.NewDocument()
|
||||
if err := doc.ReadFromBytes(rawResponseBuf); err != nil {
|
||||
if err := doc.ReadFromBytes(decodedResponseXML); err != nil {
|
||||
retErr.PrivateErr = err
|
||||
return nil, retErr
|
||||
}
|
||||
@ -465,7 +543,7 @@ func (sp *ServiceProvider) ParseResponse(req *http.Request, possibleRequestIDs [
|
||||
// decrypt the response
|
||||
if resp.EncryptedAssertion != nil {
|
||||
doc := etree.NewDocument()
|
||||
if err := doc.ReadFromBytes(rawResponseBuf); err != nil {
|
||||
if err := doc.ReadFromBytes(decodedResponseXML); err != nil {
|
||||
retErr.PrivateErr = err
|
||||
return nil, retErr
|
||||
}
|
||||
@ -681,3 +759,85 @@ func (sp *ServiceProvider) validateSignature(el *etree.Element) error {
|
||||
_, err = validationContext.Validate(el)
|
||||
return err
|
||||
}
|
||||
|
||||
// MakeLogoutRequest produces a new LogoutRequest object for idpURL.
|
||||
func (sp *ServiceProvider) MakeLogoutRequest(idpURL, nameID string) (*LogoutRequest, error) {
|
||||
|
||||
req := LogoutRequest{
|
||||
ID: fmt.Sprintf("id-%x", randomBytes(20)),
|
||||
IssueInstant: TimeNow(),
|
||||
Version: "2.0",
|
||||
Destination: idpURL,
|
||||
Issuer: &Issuer{
|
||||
Format: "urn:oasis:names:tc:SAML:2.0:nameid-format:entity",
|
||||
Value: sp.MetadataURL.String(),
|
||||
},
|
||||
NameID: &NameID{
|
||||
Format: sp.nameIDFormat(),
|
||||
Value: nameID,
|
||||
NameQualifier: sp.IDPMetadata.EntityID,
|
||||
SPNameQualifier: sp.Metadata().EntityID,
|
||||
},
|
||||
}
|
||||
return &req, nil
|
||||
}
|
||||
|
||||
// MakeRedirectLogoutRequest creates a SAML authentication request using
|
||||
// the HTTP-Redirect binding. It returns a URL that we will redirect the user to
|
||||
// in order to start the auth process.
|
||||
func (sp *ServiceProvider) MakeRedirectLogoutRequest(nameID string) (*LogoutRequest, error) {
|
||||
return sp.MakeLogoutRequest(sp.GetSLOBindingLocation(HTTPRedirectBinding), nameID)
|
||||
}
|
||||
|
||||
func (sp *ServiceProvider) nameIDFormat() string {
|
||||
var nameIDFormat string
|
||||
switch sp.AuthnNameIDFormat {
|
||||
case "":
|
||||
// To maintain library back-compat, use "transient" if unset.
|
||||
nameIDFormat = string(TransientNameIDFormat)
|
||||
case UnspecifiedNameIDFormat:
|
||||
// Spec defines an empty value as "unspecified" so don't set one.
|
||||
default:
|
||||
nameIDFormat = string(sp.AuthnNameIDFormat)
|
||||
}
|
||||
return nameIDFormat
|
||||
}
|
||||
|
||||
// ValidateLogoutResponse returns a nil error iff the logout request is valid.
|
||||
func (sp *ServiceProvider) ValidateLogoutResponse(r *http.Request) error {
|
||||
r.ParseForm()
|
||||
rawResponseBuf, err := base64.StdEncoding.DecodeString(r.PostForm.Get("SAMLResponse"))
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to parse base64: %s", err)
|
||||
}
|
||||
|
||||
resp := LogoutResponse{}
|
||||
if err := xml.Unmarshal(rawResponseBuf, &resp); err != nil {
|
||||
return fmt.Errorf("cannot unmarshal response: %s", err)
|
||||
}
|
||||
if resp.Destination != sp.SloURL.String() {
|
||||
return fmt.Errorf("`Destination` does not match SloURL (expected %q)", sp.SloURL.String())
|
||||
}
|
||||
|
||||
now := time.Now()
|
||||
if resp.IssueInstant.Add(MaxIssueDelay).Before(now) {
|
||||
return fmt.Errorf("issueInstant expired at %s", resp.IssueInstant.Add(MaxIssueDelay))
|
||||
}
|
||||
if resp.Issuer.Value != sp.IDPMetadata.EntityID {
|
||||
return fmt.Errorf("issuer does not match the IDP metadata (expected %q)", sp.IDPMetadata.EntityID)
|
||||
}
|
||||
if resp.Status.StatusCode.Value != StatusSuccess {
|
||||
return fmt.Errorf("status code was not %s", StatusSuccess)
|
||||
}
|
||||
|
||||
doc := etree.NewDocument()
|
||||
if err := doc.ReadFromBytes(rawResponseBuf); err != nil {
|
||||
return err
|
||||
}
|
||||
responseEl := doc.Root()
|
||||
if err = sp.validateSigned(responseEl); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
4
vendor/github.com/crewjam/saml/xmlenc/decrypt.go
generated
vendored
4
vendor/github.com/crewjam/saml/xmlenc/decrypt.go
generated
vendored
@ -79,7 +79,7 @@ func getCiphertext(encryptedKey *etree.Element) ([]byte, error) {
|
||||
return ciphertext, nil
|
||||
}
|
||||
|
||||
func validateRSAKey(key interface{}, encryptedKey *etree.Element) (*rsa.PrivateKey, error) {
|
||||
func validateRSAKeyIfPresent(key interface{}, encryptedKey *etree.Element) (*rsa.PrivateKey, error) {
|
||||
rsaKey, ok := key.(*rsa.PrivateKey)
|
||||
if !ok {
|
||||
return nil, errors.New("expected key to be a *rsa.PrivateKey")
|
||||
@ -110,8 +110,6 @@ func validateRSAKey(key interface{}, encryptedKey *etree.Element) (*rsa.PrivateK
|
||||
}
|
||||
} else if el = encryptedKey.FindElement("./KeyInfo/X509Data/X509IssuerSerial"); el != nil {
|
||||
// TODO: determine how to validate the issuer serial information
|
||||
} else {
|
||||
return nil, ErrCannotFindRequiredElement("X509Certificate or X509IssuerSerial")
|
||||
}
|
||||
return rsaKey, nil
|
||||
}
|
||||
|
2
vendor/github.com/crewjam/saml/xmlenc/digest.go
generated
vendored
2
vendor/github.com/crewjam/saml/xmlenc/digest.go
generated
vendored
@ -1,7 +1,7 @@
|
||||
package xmlenc
|
||||
|
||||
import (
|
||||
"crypto/sha1"
|
||||
"crypto/sha1" //nolint:gosec // required for protocol support
|
||||
"crypto/sha256"
|
||||
"crypto/sha512"
|
||||
"hash"
|
||||
|
2
vendor/github.com/crewjam/saml/xmlenc/pubkey.go
generated
vendored
2
vendor/github.com/crewjam/saml/xmlenc/pubkey.go
generated
vendored
@ -94,7 +94,7 @@ func (e RSA) Encrypt(certificate interface{}, plaintext []byte) (*etree.Element,
|
||||
|
||||
// Decrypt implements Decryptor. `key` must be an *rsa.PrivateKey.
|
||||
func (e RSA) Decrypt(key interface{}, ciphertextEl *etree.Element) ([]byte, error) {
|
||||
rsaKey, err := validateRSAKey(key, ciphertextEl)
|
||||
rsaKey, err := validateRSAKeyIfPresent(key, ciphertextEl)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
3
vendor/github.com/crewjam/saml/xmlenc/xmlenc.go
generated
vendored
3
vendor/github.com/crewjam/saml/xmlenc/xmlenc.go
generated
vendored
@ -6,14 +6,13 @@ package xmlenc
|
||||
import (
|
||||
"crypto/rand"
|
||||
"hash"
|
||||
"io"
|
||||
|
||||
"github.com/beevik/etree"
|
||||
)
|
||||
|
||||
// RandReader is a thunk that allows test to replace the source of randomness used by
|
||||
// this package. By default it is Reader from crypto/rand.
|
||||
var RandReader io.Reader = rand.Reader
|
||||
var RandReader = rand.Reader
|
||||
|
||||
// Encrypter is an interface that encrypts things. Given a plaintext it returns an
|
||||
// XML EncryptedData or EncryptedKey element. The required type of `key` varies
|
||||
|
46
vendor/golang.org/x/sys/unix/affinity_linux.go
generated
vendored
46
vendor/golang.org/x/sys/unix/affinity_linux.go
generated
vendored
@ -7,6 +7,7 @@
|
||||
package unix
|
||||
|
||||
import (
|
||||
"math/bits"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@ -79,50 +80,7 @@ func (s *CPUSet) IsSet(cpu int) bool {
|
||||
func (s *CPUSet) Count() int {
|
||||
c := 0
|
||||
for _, b := range s {
|
||||
c += onesCount64(uint64(b))
|
||||
c += bits.OnesCount64(uint64(b))
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
// onesCount64 is a copy of Go 1.9's math/bits.OnesCount64.
|
||||
// Once this package can require Go 1.9, we can delete this
|
||||
// and update the caller to use bits.OnesCount64.
|
||||
func onesCount64(x uint64) int {
|
||||
const m0 = 0x5555555555555555 // 01010101 ...
|
||||
const m1 = 0x3333333333333333 // 00110011 ...
|
||||
const m2 = 0x0f0f0f0f0f0f0f0f // 00001111 ...
|
||||
|
||||
// Unused in this function, but definitions preserved for
|
||||
// documentation purposes:
|
||||
//
|
||||
// const m3 = 0x00ff00ff00ff00ff // etc.
|
||||
// const m4 = 0x0000ffff0000ffff
|
||||
//
|
||||
// Implementation: Parallel summing of adjacent bits.
|
||||
// See "Hacker's Delight", Chap. 5: Counting Bits.
|
||||
// The following pattern shows the general approach:
|
||||
//
|
||||
// x = x>>1&(m0&m) + x&(m0&m)
|
||||
// x = x>>2&(m1&m) + x&(m1&m)
|
||||
// x = x>>4&(m2&m) + x&(m2&m)
|
||||
// x = x>>8&(m3&m) + x&(m3&m)
|
||||
// x = x>>16&(m4&m) + x&(m4&m)
|
||||
// x = x>>32&(m5&m) + x&(m5&m)
|
||||
// return int(x)
|
||||
//
|
||||
// Masking (& operations) can be left away when there's no
|
||||
// danger that a field's sum will carry over into the next
|
||||
// field: Since the result cannot be > 64, 8 bits is enough
|
||||
// and we can ignore the masks for the shifts by 8 and up.
|
||||
// Per "Hacker's Delight", the first line can be simplified
|
||||
// more, but it saves at best one instruction, so we leave
|
||||
// it alone for clarity.
|
||||
const m = 1<<64 - 1
|
||||
x = x>>1&(m0&m) + x&(m0&m)
|
||||
x = x>>2&(m1&m) + x&(m1&m)
|
||||
x = (x>>4 + x) & (m2 & m)
|
||||
x += x >> 8
|
||||
x += x >> 16
|
||||
x += x >> 32
|
||||
return int(x) & (1<<7 - 1)
|
||||
}
|
||||
|
41
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
41
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
@ -6,7 +6,19 @@
|
||||
|
||||
package unix
|
||||
|
||||
import "runtime"
|
||||
import (
|
||||
"runtime"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// ioctl itself should not be exposed directly, but additional get/set
|
||||
// functions for specific types are permissible.
|
||||
|
||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||
// on fd, using the specified request number.
|
||||
func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
||||
//
|
||||
@ -14,7 +26,7 @@ import "runtime"
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
// TODO: if we get the chance, remove the req parameter and
|
||||
// hardcode TIOCSWINSZ.
|
||||
err := ioctlSetWinsize(fd, req, value)
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
runtime.KeepAlive(value)
|
||||
return err
|
||||
}
|
||||
@ -24,7 +36,30 @@ func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
// The req value will usually be TCSETA or TIOCSETA.
|
||||
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
// TODO: if we get the chance, remove the req parameter.
|
||||
err := ioctlSetTermios(fd, req, value)
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
runtime.KeepAlive(value)
|
||||
return err
|
||||
}
|
||||
|
||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||
// from fd, using the specified request number.
|
||||
//
|
||||
// A few ioctl requests use the return value as an output parameter;
|
||||
// for those, IoctlRetInt should be used instead of this function.
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
42
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
42
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
@ -183,20 +183,26 @@ struct ltchars {
|
||||
#include <sys/socket.h>
|
||||
#include <sys/xattr.h>
|
||||
#include <linux/bpf.h>
|
||||
#include <linux/can.h>
|
||||
#include <linux/capability.h>
|
||||
#include <linux/cryptouser.h>
|
||||
#include <linux/errqueue.h>
|
||||
#include <linux/falloc.h>
|
||||
#include <linux/fanotify.h>
|
||||
#include <linux/filter.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/genetlink.h>
|
||||
#include <linux/hdreg.h>
|
||||
#include <linux/icmpv6.h>
|
||||
#include <linux/if.h>
|
||||
#include <linux/if_addr.h>
|
||||
#include <linux/if_alg.h>
|
||||
#include <linux/if_arp.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/if_ppp.h>
|
||||
#include <linux/if_tun.h>
|
||||
#include <linux/if_packet.h>
|
||||
#include <linux/if_addr.h>
|
||||
#include <linux/falloc.h>
|
||||
#include <linux/fanotify.h>
|
||||
#include <linux/filter.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/if_xdp.h>
|
||||
#include <linux/kexec.h>
|
||||
#include <linux/keyctl.h>
|
||||
#include <linux/loop.h>
|
||||
@ -206,26 +212,23 @@ struct ltchars {
|
||||
#include <linux/netfilter/nfnetlink.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/net_namespace.h>
|
||||
#include <linux/nsfs.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include <linux/ptrace.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/rtc.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <linux/ptrace.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/seccomp.h>
|
||||
#include <linux/sockios.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/icmpv6.h>
|
||||
#include <linux/serial.h>
|
||||
#include <linux/can.h>
|
||||
#include <linux/vm_sockets.h>
|
||||
#include <linux/sockios.h>
|
||||
#include <linux/taskstats.h>
|
||||
#include <linux/genetlink.h>
|
||||
#include <linux/tipc.h>
|
||||
#include <linux/vm_sockets.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/hdreg.h>
|
||||
#include <linux/rtc.h>
|
||||
#include <linux/if_xdp.h>
|
||||
#include <linux/cryptouser.h>
|
||||
|
||||
#include <mtd/ubi-user.h>
|
||||
#include <net/route.h>
|
||||
|
||||
@ -264,6 +267,11 @@ struct ltchars {
|
||||
#define FS_KEY_DESC_PREFIX "fscrypt:"
|
||||
#define FS_KEY_DESC_PREFIX_SIZE 8
|
||||
#define FS_MAX_KEY_SIZE 64
|
||||
|
||||
// The code generator produces -0x1 for (~0), but an unsigned value is necessary
|
||||
// for the tipc_subscr timeout __u32 field.
|
||||
#undef TIPC_WAIT_FOREVER
|
||||
#define TIPC_WAIT_FOREVER 0xffffffff
|
||||
'
|
||||
|
||||
includes_NetBSD='
|
||||
@ -451,6 +459,7 @@ ccflags="$@"
|
||||
$2 ~ /^SYSCTL_VERS/ ||
|
||||
$2 !~ "MNT_BITS" &&
|
||||
$2 ~ /^(MS|MNT|UMOUNT)_/ ||
|
||||
$2 ~ /^NS_GET_/ ||
|
||||
$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
|
||||
$2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ ||
|
||||
$2 ~ /^KEXEC_/ ||
|
||||
@ -506,6 +515,7 @@ ccflags="$@"
|
||||
$2 ~ /^XDP_/ ||
|
||||
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
||||
$2 ~ /^CRYPTO_/ ||
|
||||
$2 ~ /^TIPC_/ ||
|
||||
$2 !~ "WMESGLEN" &&
|
||||
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||
$2 ~/^PPPIOC/ ||
|
||||
|
39
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
39
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
@ -350,49 +350,12 @@ func (w WaitStatus) Signal() Signal {
|
||||
|
||||
func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 }
|
||||
|
||||
func (w WaitStatus) CoreDump() bool { return w&0x200 != 0 }
|
||||
func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 }
|
||||
|
||||
func (w WaitStatus) TrapCause() int { return -1 }
|
||||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
// ioctl itself should not be exposed directly, but additional get/set
|
||||
// functions for specific types are permissible.
|
||||
|
||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||
// on fd, using the specified request number.
|
||||
func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||
// from fd, using the specified request number.
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
|
||||
// There is no way to create a custom fcntl and to keep //sys fcntl easily,
|
||||
// Therefore, the programmer must call dup2 instead of fcntl in this case.
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
generated
vendored
@ -29,6 +29,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
generated
vendored
@ -29,6 +29,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
2
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
@ -413,8 +413,6 @@ func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err e
|
||||
return kevent(kq, change, len(changes), event, len(events), timeout)
|
||||
}
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
// sysctlmib translates name to mib number and appends any additional args.
|
||||
func sysctlmib(name string, args ...int) ([]_C_int, error) {
|
||||
// Translate name to mib number.
|
||||
|
38
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
38
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@ -89,7 +89,6 @@ func direntNamlen(buf []byte) (uint64, bool) {
|
||||
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||
}
|
||||
|
||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||
func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
|
||||
func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
|
||||
|
||||
@ -340,43 +339,6 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
||||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
// ioctl itself should not be exposed directly, but additional get/set
|
||||
// functions for specific types are permissible.
|
||||
|
||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||
// on fd, using the specified request number.
|
||||
func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||
// from fd, using the specified request number.
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func Uname(uname *Utsname) error {
|
||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||
n := unsafe.Sizeof(uname.Sysname)
|
||||
|
7
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
generated
vendored
@ -10,6 +10,9 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
||||
}
|
||||
@ -43,6 +46,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
7
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
generated
vendored
@ -10,6 +10,9 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
}
|
||||
@ -43,6 +46,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
12
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
generated
vendored
@ -8,6 +8,14 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
||||
return ENOTSUP
|
||||
}
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error {
|
||||
return ENOTSUP
|
||||
}
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
||||
}
|
||||
@ -41,6 +49,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
12
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
generated
vendored
@ -10,6 +10,14 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
||||
return ENOTSUP
|
||||
}
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error {
|
||||
return ENOTSUP
|
||||
}
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
}
|
||||
@ -43,6 +51,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
39
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
39
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@ -14,6 +14,8 @@ package unix
|
||||
|
||||
import "unsafe"
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||
type SockaddrDatalink struct {
|
||||
Len uint8
|
||||
@ -150,43 +152,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
// ioctl itself should not be exposed directly, but additional get/set
|
||||
// functions for specific types are permissible.
|
||||
|
||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||
// on fd, using the specified request number.
|
||||
func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||
// from fd, using the specified request number.
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error {
|
||||
err := sysctl(mib, old, oldlen, nil, 0)
|
||||
if err != nil {
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
generated
vendored
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
39
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
39
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@ -36,6 +36,8 @@ var (
|
||||
// INO64_FIRST from /usr/src/lib/libc/sys/compat-ino64.h
|
||||
const _ino64First = 1200031
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
func supportsABI(ver uint32) bool {
|
||||
osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") })
|
||||
return osreldate >= ver
|
||||
@ -201,43 +203,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
// ioctl itself should not be exposed directly, but additional get/set
|
||||
// functions for specific types are permissible.
|
||||
|
||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||
// on fd, using the specified request number.
|
||||
func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||
// from fd, using the specified request number.
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func Uname(uname *Utsname) error {
|
||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||
n := unsafe.Sizeof(uname.Sysname)
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
generated
vendored
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
generated
vendored
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
generated
vendored
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
158
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
158
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@ -71,6 +71,17 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
// ioctl itself should not be exposed directly, but additional get/set
|
||||
// functions for specific types are permissible.
|
||||
|
||||
// IoctlRetInt performs an ioctl operation specified by req on a device
|
||||
// associated with opened file descriptor fd, and returns a non-negative
|
||||
// integer that is returned by the ioctl syscall.
|
||||
func IoctlRetInt(fd int, req uint) (int, error) {
|
||||
ret, _, err := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), 0)
|
||||
if err != 0 {
|
||||
return 0, err
|
||||
}
|
||||
return int(ret), nil
|
||||
}
|
||||
|
||||
// IoctlSetPointerInt performs an ioctl operation which sets an
|
||||
// integer value on fd, using the specified request number. The ioctl
|
||||
// argument is called with a pointer to the integer value, rather than
|
||||
@ -80,52 +91,18 @@ func IoctlSetPointerInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
||||
}
|
||||
|
||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||
// on fd, using the specified request number.
|
||||
func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
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
|
||||
// from fd, using the specified request number.
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetUint32(fd int, req uint) (uint32, error) {
|
||||
var value uint32
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetRTCTime(fd int) (*RTCTime, error) {
|
||||
var value RTCTime
|
||||
err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value)))
|
||||
@ -798,6 +775,70 @@ func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil
|
||||
}
|
||||
|
||||
// SockaddrTIPC implements the Sockaddr interface for AF_TIPC type sockets.
|
||||
// For more information on TIPC, see: http://tipc.sourceforge.net/.
|
||||
type SockaddrTIPC struct {
|
||||
// Scope is the publication scopes when binding service/service range.
|
||||
// Should be set to TIPC_CLUSTER_SCOPE or TIPC_NODE_SCOPE.
|
||||
Scope int
|
||||
|
||||
// Addr is the type of address used to manipulate a socket. Addr must be
|
||||
// one of:
|
||||
// - *TIPCSocketAddr: "id" variant in the C addr union
|
||||
// - *TIPCServiceRange: "nameseq" variant in the C addr union
|
||||
// - *TIPCServiceName: "name" variant in the C addr union
|
||||
//
|
||||
// If nil, EINVAL will be returned when the structure is used.
|
||||
Addr TIPCAddr
|
||||
|
||||
raw RawSockaddrTIPC
|
||||
}
|
||||
|
||||
// TIPCAddr is implemented by types that can be used as an address for
|
||||
// SockaddrTIPC. It is only implemented by *TIPCSocketAddr, *TIPCServiceRange,
|
||||
// and *TIPCServiceName.
|
||||
type TIPCAddr interface {
|
||||
tipcAddrtype() uint8
|
||||
tipcAddr() [12]byte
|
||||
}
|
||||
|
||||
func (sa *TIPCSocketAddr) tipcAddr() [12]byte {
|
||||
var out [12]byte
|
||||
copy(out[:], (*(*[unsafe.Sizeof(TIPCSocketAddr{})]byte)(unsafe.Pointer(sa)))[:])
|
||||
return out
|
||||
}
|
||||
|
||||
func (sa *TIPCSocketAddr) tipcAddrtype() uint8 { return TIPC_SOCKET_ADDR }
|
||||
|
||||
func (sa *TIPCServiceRange) tipcAddr() [12]byte {
|
||||
var out [12]byte
|
||||
copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceRange{})]byte)(unsafe.Pointer(sa)))[:])
|
||||
return out
|
||||
}
|
||||
|
||||
func (sa *TIPCServiceRange) tipcAddrtype() uint8 { return TIPC_SERVICE_RANGE }
|
||||
|
||||
func (sa *TIPCServiceName) tipcAddr() [12]byte {
|
||||
var out [12]byte
|
||||
copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceName{})]byte)(unsafe.Pointer(sa)))[:])
|
||||
return out
|
||||
}
|
||||
|
||||
func (sa *TIPCServiceName) tipcAddrtype() uint8 { return TIPC_SERVICE_ADDR }
|
||||
|
||||
func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||
if sa.Addr == nil {
|
||||
return nil, 0, EINVAL
|
||||
}
|
||||
|
||||
sa.raw.Family = AF_TIPC
|
||||
sa.raw.Scope = int8(sa.Scope)
|
||||
sa.raw.Addrtype = sa.Addr.tipcAddrtype()
|
||||
sa.raw.Addr = sa.Addr.tipcAddr()
|
||||
|
||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil
|
||||
}
|
||||
|
||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
switch rsa.Addr.Family {
|
||||
case AF_NETLINK:
|
||||
@ -923,6 +964,27 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
break
|
||||
}
|
||||
}
|
||||
return sa, nil
|
||||
case AF_TIPC:
|
||||
pp := (*RawSockaddrTIPC)(unsafe.Pointer(rsa))
|
||||
|
||||
sa := &SockaddrTIPC{
|
||||
Scope: int(pp.Scope),
|
||||
}
|
||||
|
||||
// Determine which union variant is present in pp.Addr by checking
|
||||
// pp.Addrtype.
|
||||
switch pp.Addrtype {
|
||||
case TIPC_SERVICE_RANGE:
|
||||
sa.Addr = (*TIPCServiceRange)(unsafe.Pointer(&pp.Addr))
|
||||
case TIPC_SERVICE_ADDR:
|
||||
sa.Addr = (*TIPCServiceName)(unsafe.Pointer(&pp.Addr))
|
||||
case TIPC_SOCKET_ADDR:
|
||||
sa.Addr = (*TIPCSocketAddr)(unsafe.Pointer(&pp.Addr))
|
||||
default:
|
||||
return nil, EINVAL
|
||||
}
|
||||
|
||||
return sa, nil
|
||||
}
|
||||
return nil, EAFNOSUPPORT
|
||||
@ -1160,6 +1222,34 @@ func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error
|
||||
return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer)
|
||||
}
|
||||
|
||||
// KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This
|
||||
// command limits the set of keys that can be linked to the keyring, regardless
|
||||
// of keyring permissions. The command requires the "setattr" permission.
|
||||
//
|
||||
// When called with an empty keyType the command locks the keyring, preventing
|
||||
// any further keys from being linked to the keyring.
|
||||
//
|
||||
// The "asymmetric" keyType defines restrictions requiring key payloads to be
|
||||
// DER encoded X.509 certificates signed by keys in another keyring. Restrictions
|
||||
// for "asymmetric" include "builtin_trusted", "builtin_and_secondary_trusted",
|
||||
// "key_or_keyring:<key>", and "key_or_keyring:<key>:chain".
|
||||
//
|
||||
// As of Linux 4.12, only the "asymmetric" keyType defines type-specific
|
||||
// restrictions.
|
||||
//
|
||||
// See the full documentation at:
|
||||
// http://man7.org/linux/man-pages/man3/keyctl_restrict_keyring.3.html
|
||||
// http://man7.org/linux/man-pages/man2/keyctl.2.html
|
||||
func KeyctlRestrictKeyring(ringid int, keyType string, restriction string) error {
|
||||
if keyType == "" {
|
||||
return keyctlRestrictKeyring(KEYCTL_RESTRICT_KEYRING, ringid)
|
||||
}
|
||||
return keyctlRestrictKeyringByType(KEYCTL_RESTRICT_KEYRING, ringid, keyType, restriction)
|
||||
}
|
||||
|
||||
//sys keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) = SYS_KEYCTL
|
||||
//sys keyctlRestrictKeyring(cmd int, arg2 int) (err error) = SYS_KEYCTL
|
||||
|
||||
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||
var msg Msghdr
|
||||
var rsa RawSockaddrAny
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
@ -372,6 +372,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
@ -163,6 +163,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint64(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint64(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
@ -252,6 +252,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
@ -180,6 +180,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint64(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint64(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
@ -208,6 +208,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint64(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint64(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
@ -220,6 +220,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
@ -91,6 +91,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint64(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint64(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
@ -179,6 +179,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint64(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint64(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
@ -120,6 +120,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint64(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint64(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
@ -107,6 +107,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint64(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint64(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
39
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
39
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@ -18,6 +18,8 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||
type SockaddrDatalink struct {
|
||||
Len uint8
|
||||
@ -187,43 +189,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
// ioctl itself should not be exposed directly, but additional get/set
|
||||
// functions for specific types are permissible.
|
||||
|
||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||
// on fd, using the specified request number.
|
||||
func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||
// from fd, using the specified request number.
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
||||
var value Ptmget
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_netbsd_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_netbsd_386.go
generated
vendored
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go
generated
vendored
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go
generated
vendored
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go
generated
vendored
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
39
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
39
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@ -18,6 +18,8 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||
|
||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||
type SockaddrDatalink struct {
|
||||
Len uint8
|
||||
@ -178,43 +180,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
// ioctl itself should not be exposed directly, but additional get/set
|
||||
// functions for specific types are permissible.
|
||||
|
||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||
// on fd, using the specified request number.
|
||||
func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||
// from fd, using the specified request number.
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
||||
|
||||
func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_386.go
generated
vendored
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
generated
vendored
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go
generated
vendored
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
generated
vendored
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||
msghdr.Controllen = uint32(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = uint32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
30
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
30
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@ -553,40 +553,10 @@ func Minor(dev uint64) uint32 {
|
||||
|
||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||
|
||||
func IoctlSetInt(fd int, req uint, value int) (err error) {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func IoctlSetTermio(fd int, req uint, value *Termio) (err error) {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||
var value int
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return value, err
|
||||
}
|
||||
|
||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||
var value Winsize
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||
var value Termios
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func IoctlGetTermio(fd int, req uint) (*Termio, error) {
|
||||
var value Termio
|
||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
generated
vendored
@ -18,6 +18,10 @@ func (iov *Iovec) SetLen(length int) {
|
||||
iov.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||
msghdr.Iovlen = int32(length)
|
||||
}
|
||||
|
||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -722,6 +726,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -987,6 +992,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1085,6 +1091,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1097,6 +1114,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1406,6 +1425,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0xb703
|
||||
NS_GET_OWNER_UID = 0xb704
|
||||
NS_GET_PARENT = 0xb702
|
||||
NS_GET_USERNS = 0xb701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1671,6 +1694,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1686,6 +1711,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_GET_THREAD_AREA = 0x19
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
@ -1724,6 +1750,10 @@ const (
|
||||
PTRACE_SINGLEBLOCK = 0x21
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_SYSEMU = 0x1f
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||
PTRACE_TRACEME = 0x0
|
||||
@ -1784,7 +1814,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1857,6 +1887,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1881,6 +1912,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1888,7 +1920,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1900,6 +1932,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1908,8 +1941,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -1994,6 +2027,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2132,6 +2167,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x27
|
||||
SO_DONTROUTE = 0x5
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2432,6 +2468,71 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2445,7 +2546,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2644,6 +2745,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2660,6 +2763,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -722,6 +726,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -987,6 +992,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1085,6 +1091,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1097,6 +1114,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1406,6 +1425,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0xb703
|
||||
NS_GET_OWNER_UID = 0xb704
|
||||
NS_GET_PARENT = 0xb702
|
||||
NS_GET_USERNS = 0xb701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1672,6 +1695,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1687,6 +1712,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_GET_THREAD_AREA = 0x19
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
@ -1725,6 +1751,10 @@ const (
|
||||
PTRACE_SINGLEBLOCK = 0x21
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_SYSEMU = 0x1f
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||
PTRACE_TRACEME = 0x0
|
||||
@ -1785,7 +1815,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1858,6 +1888,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1882,6 +1913,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1889,7 +1921,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1901,6 +1933,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1909,8 +1942,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -1995,6 +2028,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2133,6 +2168,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x27
|
||||
SO_DONTROUTE = 0x5
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2433,6 +2469,71 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2446,7 +2547,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2644,6 +2745,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2660,6 +2763,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1404,6 +1423,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0xb703
|
||||
NS_GET_OWNER_UID = 0xb704
|
||||
NS_GET_PARENT = 0xb702
|
||||
NS_GET_USERNS = 0xb701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1669,6 +1692,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1690,6 +1715,7 @@ const (
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GETVFPREGS = 0x1b
|
||||
PTRACE_GETWMMXREGS = 0x12
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_GET_THREAD_AREA = 0x16
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
@ -1730,6 +1756,10 @@ const (
|
||||
PTRACE_SET_SYSCALL = 0x17
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_TRACEME = 0x0
|
||||
PT_DATA_ADDR = 0x10004
|
||||
PT_TEXT_ADDR = 0x10000
|
||||
@ -1791,7 +1821,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1864,6 +1894,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1888,6 +1919,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1895,7 +1927,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1907,6 +1939,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1915,8 +1948,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -2001,6 +2034,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2139,6 +2174,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x27
|
||||
SO_DONTROUTE = 0x5
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2439,6 +2475,71 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2452,7 +2553,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2650,6 +2751,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2666,6 +2769,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
118
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
118
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -561,6 +564,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -724,6 +728,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -989,6 +994,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1087,6 +1093,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1099,6 +1116,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1407,6 +1426,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0xb703
|
||||
NS_GET_OWNER_UID = 0xb704
|
||||
NS_GET_PARENT = 0xb702
|
||||
NS_GET_USERNS = 0xb701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1672,6 +1695,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1685,6 +1710,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
PTRACE_LISTEN = 0x4208
|
||||
@ -1717,6 +1743,12 @@ const (
|
||||
PTRACE_SETSIGMASK = 0x420b
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_SYSEMU = 0x1f
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
@ -1775,7 +1807,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1848,6 +1880,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1872,6 +1905,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1879,7 +1913,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1891,6 +1925,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1899,8 +1934,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -1985,6 +2020,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2123,6 +2160,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x27
|
||||
SO_DONTROUTE = 0x5
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2424,6 +2462,71 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2437,7 +2540,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2635,6 +2738,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2651,6 +2756,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1404,6 +1423,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0x2000b703
|
||||
NS_GET_OWNER_UID = 0x2000b704
|
||||
NS_GET_PARENT = 0x2000b702
|
||||
NS_GET_USERNS = 0x2000b701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1669,6 +1692,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1683,6 +1708,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_GET_THREAD_AREA = 0x19
|
||||
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
||||
PTRACE_GET_WATCH_REGS = 0xd0
|
||||
@ -1726,6 +1752,10 @@ const (
|
||||
PTRACE_SET_WATCH_REGS = 0xd1
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
@ -1784,7 +1814,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1857,6 +1887,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1881,6 +1912,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1888,7 +1920,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1900,6 +1932,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1908,8 +1941,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -1994,6 +2027,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2132,6 +2167,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x1029
|
||||
SO_DONTROUTE = 0x10
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2434,6 +2470,71 @@ const (
|
||||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2447,7 +2548,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2646,6 +2747,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2662,6 +2765,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1404,6 +1423,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0x2000b703
|
||||
NS_GET_OWNER_UID = 0x2000b704
|
||||
NS_GET_PARENT = 0x2000b702
|
||||
NS_GET_USERNS = 0x2000b701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1669,6 +1692,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1683,6 +1708,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_GET_THREAD_AREA = 0x19
|
||||
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
||||
PTRACE_GET_WATCH_REGS = 0xd0
|
||||
@ -1726,6 +1752,10 @@ const (
|
||||
PTRACE_SET_WATCH_REGS = 0xd1
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
@ -1784,7 +1814,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1857,6 +1887,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1881,6 +1912,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1888,7 +1920,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1900,6 +1932,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1908,8 +1941,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -1994,6 +2027,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2132,6 +2167,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x1029
|
||||
SO_DONTROUTE = 0x10
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2434,6 +2470,71 @@ const (
|
||||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2447,7 +2548,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2646,6 +2747,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2662,6 +2765,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1404,6 +1423,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0x2000b703
|
||||
NS_GET_OWNER_UID = 0x2000b704
|
||||
NS_GET_PARENT = 0x2000b702
|
||||
NS_GET_USERNS = 0x2000b701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1669,6 +1692,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1683,6 +1708,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_GET_THREAD_AREA = 0x19
|
||||
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
||||
PTRACE_GET_WATCH_REGS = 0xd0
|
||||
@ -1726,6 +1752,10 @@ const (
|
||||
PTRACE_SET_WATCH_REGS = 0xd1
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
@ -1784,7 +1814,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1857,6 +1887,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1881,6 +1912,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1888,7 +1920,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1900,6 +1932,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1908,8 +1941,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -1994,6 +2027,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2132,6 +2167,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x1029
|
||||
SO_DONTROUTE = 0x10
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2434,6 +2470,71 @@ const (
|
||||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2447,7 +2548,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2646,6 +2747,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2662,6 +2765,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1404,6 +1423,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0x2000b703
|
||||
NS_GET_OWNER_UID = 0x2000b704
|
||||
NS_GET_PARENT = 0x2000b702
|
||||
NS_GET_USERNS = 0x2000b701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1669,6 +1692,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1683,6 +1708,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_GET_THREAD_AREA = 0x19
|
||||
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
||||
PTRACE_GET_WATCH_REGS = 0xd0
|
||||
@ -1726,6 +1752,10 @@ const (
|
||||
PTRACE_SET_WATCH_REGS = 0xd1
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
@ -1784,7 +1814,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1857,6 +1887,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1881,6 +1912,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1888,7 +1920,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1900,6 +1932,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1908,8 +1941,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -1994,6 +2027,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2132,6 +2167,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x1029
|
||||
SO_DONTROUTE = 0x10
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2434,6 +2470,71 @@ const (
|
||||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2447,7 +2548,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2646,6 +2747,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2662,6 +2765,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1405,6 +1424,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80000000
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0x2000b703
|
||||
NS_GET_OWNER_UID = 0x2000b704
|
||||
NS_GET_PARENT = 0x2000b702
|
||||
NS_GET_USERNS = 0x2000b701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1671,6 +1694,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1690,6 +1715,7 @@ const (
|
||||
PTRACE_GETVRREGS = 0x12
|
||||
PTRACE_GETVSRREGS = 0x1b
|
||||
PTRACE_GET_DEBUGREG = 0x19
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
PTRACE_LISTEN = 0x4208
|
||||
@ -1729,6 +1755,10 @@ const (
|
||||
PTRACE_SINGLEBLOCK = 0x100
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_SYSEMU = 0x1d
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||
PTRACE_TRACEME = 0x0
|
||||
@ -1842,7 +1872,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1915,6 +1945,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1939,6 +1970,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1946,7 +1978,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1958,6 +1990,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1966,8 +1999,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -2052,6 +2085,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2190,6 +2225,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x27
|
||||
SO_DONTROUTE = 0x5
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2494,6 +2530,71 @@ const (
|
||||
TIOCSTOP = 0x2000746f
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x400000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2507,7 +2608,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2705,6 +2806,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2721,6 +2824,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0xc00
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1405,6 +1424,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80000000
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0x2000b703
|
||||
NS_GET_OWNER_UID = 0x2000b704
|
||||
NS_GET_PARENT = 0x2000b702
|
||||
NS_GET_USERNS = 0x2000b701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1671,6 +1694,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1690,6 +1715,7 @@ const (
|
||||
PTRACE_GETVRREGS = 0x12
|
||||
PTRACE_GETVSRREGS = 0x1b
|
||||
PTRACE_GET_DEBUGREG = 0x19
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
PTRACE_LISTEN = 0x4208
|
||||
@ -1729,6 +1755,10 @@ const (
|
||||
PTRACE_SINGLEBLOCK = 0x100
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_SYSEMU = 0x1d
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||
PTRACE_TRACEME = 0x0
|
||||
@ -1842,7 +1872,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1915,6 +1945,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1939,6 +1970,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1946,7 +1978,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1958,6 +1990,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1966,8 +1999,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -2052,6 +2085,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2190,6 +2225,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x27
|
||||
SO_DONTROUTE = 0x5
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2494,6 +2530,71 @@ const (
|
||||
TIOCSTOP = 0x2000746f
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x400000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2507,7 +2608,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2705,6 +2806,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2721,6 +2824,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0xc00
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1404,6 +1423,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0xb703
|
||||
NS_GET_OWNER_UID = 0xb704
|
||||
NS_GET_PARENT = 0xb702
|
||||
NS_GET_USERNS = 0xb701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1669,6 +1692,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1682,6 +1707,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
PTRACE_LISTEN = 0x4208
|
||||
@ -1714,6 +1740,10 @@ const (
|
||||
PTRACE_SETSIGMASK = 0x420b
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
@ -1772,7 +1802,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1845,6 +1875,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1869,6 +1900,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1876,7 +1908,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1888,6 +1920,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1896,8 +1929,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -1982,6 +2015,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2120,6 +2155,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x27
|
||||
SO_DONTROUTE = 0x5
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2420,6 +2456,71 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2433,7 +2534,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2631,6 +2732,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2647,6 +2750,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
@ -253,6 +253,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -304,9 +305,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -460,6 +462,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -560,6 +563,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -721,6 +725,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x0
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -986,6 +991,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1084,6 +1090,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1096,6 +1113,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1404,6 +1423,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0xb703
|
||||
NS_GET_OWNER_UID = 0xb704
|
||||
NS_GET_PARENT = 0xb702
|
||||
NS_GET_USERNS = 0xb701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1671,6 +1694,8 @@ const (
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_DISABLE_TE = 0x5010
|
||||
PTRACE_ENABLE_TE = 0x5009
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1685,6 +1710,7 @@ const (
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_LAST_BREAK = 0x5006
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
PTRACE_LISTEN = 0x4208
|
||||
@ -1728,6 +1754,10 @@ const (
|
||||
PTRACE_SINGLEBLOCK = 0xc
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_TE_ABORT_RAND = 0x5011
|
||||
PTRACE_TRACEME = 0x0
|
||||
PT_ACR0 = 0x90
|
||||
@ -1845,7 +1875,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1918,6 +1948,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1942,6 +1973,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1949,7 +1981,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1961,6 +1993,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1969,8 +2002,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -2055,6 +2088,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2193,6 +2228,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||
SO_DOMAIN = 0x27
|
||||
SO_DONTROUTE = 0x5
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2493,6 +2529,71 @@ const (
|
||||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2506,7 +2607,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2704,6 +2805,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2720,6 +2823,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
|
116
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
116
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
@ -256,6 +256,7 @@ const (
|
||||
BPF_F_STACK_BUILD_ID = 0x20
|
||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||
BPF_F_TEST_RND_HI32 = 0x4
|
||||
BPF_F_TUNINFO_IPV6 = 0x1
|
||||
BPF_F_USER_BUILD_ID = 0x800
|
||||
BPF_F_USER_STACK = 0x100
|
||||
@ -307,9 +308,10 @@ const (
|
||||
BPF_RET = 0x6
|
||||
BPF_RSH = 0x70
|
||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||
BPF_ST = 0x2
|
||||
BPF_STX = 0x3
|
||||
@ -463,6 +465,7 @@ const (
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DMA_BUF_MAGIC = 0x444d4142
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
@ -564,6 +567,7 @@ const (
|
||||
ETH_P_IRDA = 0x17
|
||||
ETH_P_LAT = 0x6004
|
||||
ETH_P_LINK_CTL = 0x886c
|
||||
ETH_P_LLDP = 0x88cc
|
||||
ETH_P_LOCALTALK = 0x9
|
||||
ETH_P_LOOP = 0x60
|
||||
ETH_P_LOOPBACK = 0x9000
|
||||
@ -725,6 +729,7 @@ const (
|
||||
F_OFD_SETLKW = 0x26
|
||||
F_OK = 0x0
|
||||
F_RDLCK = 0x1
|
||||
F_SEAL_FUTURE_WRITE = 0x10
|
||||
F_SEAL_GROW = 0x4
|
||||
F_SEAL_SEAL = 0x1
|
||||
F_SEAL_SHRINK = 0x2
|
||||
@ -990,6 +995,7 @@ const (
|
||||
IPV6_RECVRTHDR = 0x38
|
||||
IPV6_RECVTCLASS = 0x42
|
||||
IPV6_ROUTER_ALERT = 0x16
|
||||
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||
IPV6_RTHDR = 0x39
|
||||
IPV6_RTHDRDSTOPTS = 0x37
|
||||
IPV6_RTHDR_LOOSE = 0x0
|
||||
@ -1088,6 +1094,17 @@ const (
|
||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||
KEXEC_SEGMENT_MAX = 0x10
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CAPABILITIES = 0x1f
|
||||
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||
KEYCTL_CAPS0_MOVE = 0x80
|
||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
KEYCTL_DESCRIBE = 0x6
|
||||
@ -1100,6 +1117,8 @@ const (
|
||||
KEYCTL_INVALIDATE = 0x15
|
||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||
KEYCTL_LINK = 0x8
|
||||
KEYCTL_MOVE = 0x1e
|
||||
KEYCTL_MOVE_EXCL = 0x1
|
||||
KEYCTL_NEGATE = 0xd
|
||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||
@ -1408,6 +1427,10 @@ const (
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
NS_GET_NSTYPE = 0x2000b703
|
||||
NS_GET_OWNER_UID = 0x2000b704
|
||||
NS_GET_PARENT = 0x2000b702
|
||||
NS_GET_USERNS = 0x2000b701
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
@ -1673,6 +1696,8 @@ const (
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||
PTRACE_EVENT_CLONE = 0x3
|
||||
PTRACE_EVENT_EXEC = 0x4
|
||||
PTRACE_EVENT_EXIT = 0x6
|
||||
@ -1690,6 +1715,7 @@ const (
|
||||
PTRACE_GETREGSET = 0x4204
|
||||
PTRACE_GETSIGINFO = 0x4202
|
||||
PTRACE_GETSIGMASK = 0x420a
|
||||
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||
PTRACE_INTERRUPT = 0x4207
|
||||
PTRACE_KILL = 0x8
|
||||
PTRACE_LISTEN = 0x4208
|
||||
@ -1729,6 +1755,10 @@ const (
|
||||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SPARC_DETACH = 0xb
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||
PTRACE_TRACEME = 0x0
|
||||
PTRACE_WRITEDATA = 0x11
|
||||
PTRACE_WRITETEXT = 0x13
|
||||
@ -1837,7 +1867,7 @@ const (
|
||||
RTAX_UNSPEC = 0x0
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0x1d
|
||||
RTA_MAX = 0x1e
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
@ -1910,6 +1940,7 @@ const (
|
||||
RTM_DELMDB = 0x55
|
||||
RTM_DELNEIGH = 0x1d
|
||||
RTM_DELNETCONF = 0x51
|
||||
RTM_DELNEXTHOP = 0x69
|
||||
RTM_DELNSID = 0x59
|
||||
RTM_DELQDISC = 0x25
|
||||
RTM_DELROUTE = 0x19
|
||||
@ -1934,6 +1965,7 @@ const (
|
||||
RTM_GETNEIGH = 0x1e
|
||||
RTM_GETNEIGHTBL = 0x42
|
||||
RTM_GETNETCONF = 0x52
|
||||
RTM_GETNEXTHOP = 0x6a
|
||||
RTM_GETNSID = 0x5a
|
||||
RTM_GETQDISC = 0x26
|
||||
RTM_GETROUTE = 0x1a
|
||||
@ -1941,7 +1973,7 @@ const (
|
||||
RTM_GETSTATS = 0x5e
|
||||
RTM_GETTCLASS = 0x2a
|
||||
RTM_GETTFILTER = 0x2e
|
||||
RTM_MAX = 0x67
|
||||
RTM_MAX = 0x6b
|
||||
RTM_NEWACTION = 0x30
|
||||
RTM_NEWADDR = 0x14
|
||||
RTM_NEWADDRLABEL = 0x48
|
||||
@ -1953,6 +1985,7 @@ const (
|
||||
RTM_NEWNEIGH = 0x1c
|
||||
RTM_NEWNEIGHTBL = 0x40
|
||||
RTM_NEWNETCONF = 0x50
|
||||
RTM_NEWNEXTHOP = 0x68
|
||||
RTM_NEWNSID = 0x58
|
||||
RTM_NEWPREFIX = 0x34
|
||||
RTM_NEWQDISC = 0x24
|
||||
@ -1961,8 +1994,8 @@ const (
|
||||
RTM_NEWSTATS = 0x5c
|
||||
RTM_NEWTCLASS = 0x28
|
||||
RTM_NEWTFILTER = 0x2c
|
||||
RTM_NR_FAMILIES = 0x16
|
||||
RTM_NR_MSGTYPES = 0x58
|
||||
RTM_NR_FAMILIES = 0x17
|
||||
RTM_NR_MSGTYPES = 0x5c
|
||||
RTM_SETDCB = 0x4f
|
||||
RTM_SETLINK = 0x13
|
||||
RTM_SETNEIGHTBL = 0x43
|
||||
@ -2047,6 +2080,8 @@ const (
|
||||
SIOCDRARP = 0x8960
|
||||
SIOCETHTOOL = 0x8946
|
||||
SIOCGARP = 0x8954
|
||||
SIOCGETLINKNAME = 0x89e0
|
||||
SIOCGETNODEID = 0x89e1
|
||||
SIOCGHWTSTAMP = 0x89b1
|
||||
SIOCGIFADDR = 0x8915
|
||||
SIOCGIFBR = 0x8940
|
||||
@ -2185,6 +2220,7 @@ const (
|
||||
SO_DEBUG = 0x1
|
||||
SO_DETACH_BPF = 0x1b
|
||||
SO_DETACH_FILTER = 0x1b
|
||||
SO_DETACH_REUSEPORT_BPF = 0x47
|
||||
SO_DOMAIN = 0x1029
|
||||
SO_DONTROUTE = 0x10
|
||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||
@ -2482,6 +2518,71 @@ const (
|
||||
TIOCSTOP = 0x2000746f
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x20005437
|
||||
TIPC_ADDR_ID = 0x3
|
||||
TIPC_ADDR_MCAST = 0x1
|
||||
TIPC_ADDR_NAME = 0x2
|
||||
TIPC_ADDR_NAMESEQ = 0x1
|
||||
TIPC_CFG_SRV = 0x0
|
||||
TIPC_CLUSTER_BITS = 0xc
|
||||
TIPC_CLUSTER_MASK = 0xfff000
|
||||
TIPC_CLUSTER_OFFSET = 0xc
|
||||
TIPC_CLUSTER_SIZE = 0xfff
|
||||
TIPC_CONN_SHUTDOWN = 0x5
|
||||
TIPC_CONN_TIMEOUT = 0x82
|
||||
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||
TIPC_DESTNAME = 0x3
|
||||
TIPC_DEST_DROPPABLE = 0x81
|
||||
TIPC_ERRINFO = 0x1
|
||||
TIPC_ERR_NO_NAME = 0x1
|
||||
TIPC_ERR_NO_NODE = 0x3
|
||||
TIPC_ERR_NO_PORT = 0x2
|
||||
TIPC_ERR_OVERLOAD = 0x4
|
||||
TIPC_GROUP_JOIN = 0x87
|
||||
TIPC_GROUP_LEAVE = 0x88
|
||||
TIPC_GROUP_LOOPBACK = 0x1
|
||||
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||
TIPC_HIGH_IMPORTANCE = 0x2
|
||||
TIPC_IMPORTANCE = 0x7f
|
||||
TIPC_LINK_STATE = 0x2
|
||||
TIPC_LOW_IMPORTANCE = 0x0
|
||||
TIPC_MAX_BEARER_NAME = 0x20
|
||||
TIPC_MAX_IF_NAME = 0x10
|
||||
TIPC_MAX_LINK_NAME = 0x44
|
||||
TIPC_MAX_MEDIA_NAME = 0x10
|
||||
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||
TIPC_MCAST_BROADCAST = 0x85
|
||||
TIPC_MCAST_REPLICAST = 0x86
|
||||
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||
TIPC_NODEID_LEN = 0x10
|
||||
TIPC_NODE_BITS = 0xc
|
||||
TIPC_NODE_MASK = 0xfff
|
||||
TIPC_NODE_OFFSET = 0x0
|
||||
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||
TIPC_NODE_SIZE = 0xfff
|
||||
TIPC_NODE_STATE = 0x0
|
||||
TIPC_OK = 0x0
|
||||
TIPC_PUBLISHED = 0x1
|
||||
TIPC_RESERVED_TYPES = 0x40
|
||||
TIPC_RETDATA = 0x2
|
||||
TIPC_SERVICE_ADDR = 0x2
|
||||
TIPC_SERVICE_RANGE = 0x1
|
||||
TIPC_SOCKET_ADDR = 0x3
|
||||
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||
TIPC_SOCK_RECVQ_USED = 0x89
|
||||
TIPC_SRC_DROPPABLE = 0x80
|
||||
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||
TIPC_SUB_CANCEL = 0x4
|
||||
TIPC_SUB_PORTS = 0x1
|
||||
TIPC_SUB_SERVICE = 0x2
|
||||
TIPC_TOP_SRV = 0x1
|
||||
TIPC_WAIT_FOREVER = 0xffffffff
|
||||
TIPC_WITHDRAWN = 0x2
|
||||
TIPC_ZONE_BITS = 0x8
|
||||
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||
TIPC_ZONE_MASK = 0xff000000
|
||||
TIPC_ZONE_OFFSET = 0x18
|
||||
TIPC_ZONE_SCOPE = 0x1
|
||||
TIPC_ZONE_SIZE = 0xff
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
@ -2495,7 +2596,7 @@ const (
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
@ -2693,6 +2794,8 @@ const (
|
||||
XDP_FLAGS_SKB_MODE = 0x2
|
||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||
XDP_MMAP_OFFSETS = 0x1
|
||||
XDP_OPTIONS = 0x8
|
||||
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||
XDP_PACKET_HEADROOM = 0x100
|
||||
XDP_PGOFF_RX_RING = 0x0
|
||||
XDP_PGOFF_TX_RING = 0x80000000
|
||||
@ -2709,6 +2812,7 @@ const (
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XFS_SUPER_MAGIC = 0x58465342
|
||||
XTABS = 0x1800
|
||||
Z3FOLD_MAGIC = 0x33
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
__TIOCFLUSH = 0x80047410
|
||||
)
|
||||
|
20
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
generated
vendored
20
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
generated
vendored
@ -377,16 +377,6 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
||||
if e1 != 0 {
|
||||
@ -1691,6 +1681,16 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
|
||||
r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
|
||||
sec = int32(r0)
|
||||
|
87
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
87
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
generated
vendored
@ -304,27 +304,6 @@ func libc_kevent_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___sysctl_trampoline()
|
||||
|
||||
//go:linkname libc___sysctl libc___sysctl
|
||||
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -527,21 +506,6 @@ func libc_munlockall_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_ptrace_trampoline()
|
||||
|
||||
//go:linkname libc_ptrace libc_ptrace
|
||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
||||
if e1 != 0 {
|
||||
@ -943,6 +907,21 @@ func libc_chroot_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_clock_gettime_trampoline()
|
||||
|
||||
//go:linkname libc_clock_gettime libc_clock_gettime
|
||||
//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Close(fd int) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0)
|
||||
if e1 != 0 {
|
||||
@ -2341,6 +2320,42 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___sysctl_trampoline()
|
||||
|
||||
//go:linkname libc___sysctl libc___sysctl
|
||||
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_ptrace_trampoline()
|
||||
|
||||
//go:linkname libc_ptrace libc_ptrace
|
||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
|
||||
r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
|
||||
sec = int32(r0)
|
||||
|
10
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
generated
vendored
10
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
generated
vendored
@ -40,8 +40,6 @@ TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sendmsg(SB)
|
||||
TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_kevent(SB)
|
||||
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___sysctl(SB)
|
||||
TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_utimes(SB)
|
||||
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
|
||||
@ -64,8 +62,6 @@ 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
|
||||
@ -108,6 +104,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_chown(SB)
|
||||
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_chroot(SB)
|
||||
TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_clock_gettime(SB)
|
||||
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_close(SB)
|
||||
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
|
||||
@ -264,6 +262,10 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_mmap(SB)
|
||||
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_munmap(SB)
|
||||
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___sysctl(SB)
|
||||
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_ptrace(SB)
|
||||
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_gettimeofday(SB)
|
||||
TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0
|
||||
|
52
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
generated
vendored
52
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
generated
vendored
@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -377,16 +361,6 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
||||
if e1 != 0 {
|
||||
@ -1691,6 +1665,32 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
|
||||
r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
|
||||
sec = int64(r0)
|
||||
|
72
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
72
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
@ -304,27 +304,6 @@ func libc_kevent_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___sysctl_trampoline()
|
||||
|
||||
//go:linkname libc___sysctl libc___sysctl
|
||||
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -527,21 +506,6 @@ func libc_munlockall_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_ptrace_trampoline()
|
||||
|
||||
//go:linkname libc_ptrace libc_ptrace
|
||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
||||
if e1 != 0 {
|
||||
@ -2356,6 +2320,42 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___sysctl_trampoline()
|
||||
|
||||
//go:linkname libc___sysctl libc___sysctl
|
||||
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_ptrace_trampoline()
|
||||
|
||||
//go:linkname libc_ptrace libc_ptrace
|
||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
|
||||
r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
|
||||
sec = int64(r0)
|
||||
|
8
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
8
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
@ -40,8 +40,6 @@ TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sendmsg(SB)
|
||||
TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_kevent(SB)
|
||||
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___sysctl(SB)
|
||||
TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_utimes(SB)
|
||||
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
|
||||
@ -64,8 +62,6 @@ 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
|
||||
@ -266,6 +262,10 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_mmap(SB)
|
||||
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_munmap(SB)
|
||||
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___sysctl(SB)
|
||||
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_ptrace(SB)
|
||||
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_gettimeofday(SB)
|
||||
TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0
|
||||
|
26
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
generated
vendored
26
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
generated
vendored
@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -377,16 +361,6 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
||||
if e1 != 0 {
|
||||
|
51
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
51
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
generated
vendored
@ -304,27 +304,6 @@ func libc_kevent_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___sysctl_trampoline()
|
||||
|
||||
//go:linkname libc___sysctl libc___sysctl
|
||||
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -527,21 +506,6 @@ func libc_munlockall_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_ptrace_trampoline()
|
||||
|
||||
//go:linkname libc_ptrace libc_ptrace
|
||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
||||
if e1 != 0 {
|
||||
@ -943,6 +907,21 @@ func libc_chroot_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_clock_gettime_trampoline()
|
||||
|
||||
//go:linkname libc_clock_gettime libc_clock_gettime
|
||||
//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Close(fd int) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
2
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
generated
vendored
2
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
generated
vendored
@ -64,8 +64,6 @@ 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
|
||||
|
26
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
generated
vendored
26
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
generated
vendored
@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -377,16 +361,6 @@ func Munlockall() (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
||||
if e1 != 0 {
|
||||
|
51
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
51
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
@ -304,27 +304,6 @@ func libc_kevent_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||
var _p0 unsafe.Pointer
|
||||
if len(mib) > 0 {
|
||||
_p0 = unsafe.Pointer(&mib[0])
|
||||
} else {
|
||||
_p0 = unsafe.Pointer(&_zero)
|
||||
}
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc___sysctl_trampoline()
|
||||
|
||||
//go:linkname libc___sysctl libc___sysctl
|
||||
//go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(path)
|
||||
@ -527,21 +506,6 @@ func libc_munlockall_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_ptrace_trampoline()
|
||||
|
||||
//go:linkname libc_ptrace libc_ptrace
|
||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
||||
_, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
||||
if e1 != 0 {
|
||||
@ -943,6 +907,21 @@ func libc_chroot_trampoline()
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func libc_clock_gettime_trampoline()
|
||||
|
||||
//go:linkname libc_clock_gettime libc_clock_gettime
|
||||
//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Close(fd int) (err error) {
|
||||
_, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
6
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
6
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
@ -40,8 +40,6 @@ TEXT ·libc_sendmsg_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_sendmsg(SB)
|
||||
TEXT ·libc_kevent_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_kevent(SB)
|
||||
TEXT ·libc___sysctl_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc___sysctl(SB)
|
||||
TEXT ·libc_utimes_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_utimes(SB)
|
||||
TEXT ·libc_futimes_trampoline(SB),NOSPLIT,$0-0
|
||||
@ -64,8 +62,6 @@ 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
|
||||
@ -108,6 +104,8 @@ TEXT ·libc_chown_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_chown(SB)
|
||||
TEXT ·libc_chroot_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_chroot(SB)
|
||||
TEXT ·libc_clock_gettime_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_clock_gettime(SB)
|
||||
TEXT ·libc_close_trampoline(SB),NOSPLIT,$0-0
|
||||
JMP libc_close(SB)
|
||||
TEXT ·libc_dup_trampoline(SB),NOSPLIT,$0-0
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
30
vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
generated
vendored
30
vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
generated
vendored
@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
|
||||
var _p0 *byte
|
||||
_p0, err = BytePtrFromString(keyType)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var _p1 *byte
|
||||
_p1, err = BytePtrFromString(restriction)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
_, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
|
||||
_, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||
if e1 != 0 {
|
||||
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
generated
vendored
@ -429,4 +429,6 @@ const (
|
||||
SYS_FSCONFIG = 431
|
||||
SYS_FSMOUNT = 432
|
||||
SYS_FSPICK = 433
|
||||
SYS_PIDFD_OPEN = 434
|
||||
SYS_CLONE3 = 435
|
||||
)
|
||||
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
generated
vendored
@ -351,4 +351,6 @@ const (
|
||||
SYS_FSCONFIG = 431
|
||||
SYS_FSMOUNT = 432
|
||||
SYS_FSPICK = 433
|
||||
SYS_PIDFD_OPEN = 434
|
||||
SYS_CLONE3 = 435
|
||||
)
|
||||
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
generated
vendored
@ -393,4 +393,6 @@ const (
|
||||
SYS_FSCONFIG = 431
|
||||
SYS_FSMOUNT = 432
|
||||
SYS_FSPICK = 433
|
||||
SYS_PIDFD_OPEN = 434
|
||||
SYS_CLONE3 = 435
|
||||
)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user