mirror of https://github.com/knative/client.git
[Release-0.18] Pin knative deps to release-0.18 (#1025)
* Pin pkg to release-0.18 version * ./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh * bump k8s version to 1.18.8 * Fix the brokerage of importing latest serving * exclude script/test-infra md from md check
This commit is contained in:
parent
f4e43c82d4
commit
9b210e3be1
27
go.mod
27
go.mod
|
|
@ -10,24 +10,25 @@ require (
|
||||||
github.com/spf13/viper v1.7.0
|
github.com/spf13/viper v1.7.0
|
||||||
golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de
|
golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de
|
||||||
gotest.tools v2.2.0+incompatible
|
gotest.tools v2.2.0+incompatible
|
||||||
k8s.io/api v0.18.7-rc.0
|
k8s.io/api v0.18.8
|
||||||
k8s.io/apimachinery v0.18.7-rc.0
|
k8s.io/apimachinery v0.18.8
|
||||||
k8s.io/cli-runtime v0.17.6
|
k8s.io/cli-runtime v0.18.8
|
||||||
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
|
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
|
||||||
k8s.io/code-generator v0.18.6
|
k8s.io/code-generator v0.18.8
|
||||||
knative.dev/eventing v0.17.0
|
knative.dev/eventing v0.17.1-0.20200922201940-baa7cd3e8254
|
||||||
knative.dev/pkg v0.0.0-20200812224206-44c860147a87
|
knative.dev/networking v0.0.0-20200922180040-a71b40c69b15
|
||||||
knative.dev/serving v0.17.0
|
knative.dev/pkg v0.0.0-20200922164940-4bf40ad82aab
|
||||||
|
knative.dev/serving v0.17.1-0.20200922232940-9d0250fcaaec
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
// Temporary pinning certain libraries. Please check periodically, whether these are still needed
|
// Temporary pinning certain libraries. Please check periodically, whether these are still needed
|
||||||
// ----------------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------------
|
||||||
replace (
|
replace (
|
||||||
k8s.io/api => k8s.io/api v0.17.6
|
k8s.io/api => k8s.io/api v0.18.8
|
||||||
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.17.6
|
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.18.8
|
||||||
k8s.io/apimachinery => k8s.io/apimachinery v0.17.6
|
k8s.io/apimachinery => k8s.io/apimachinery v0.18.8
|
||||||
k8s.io/cli-runtime => k8s.io/cli-runtime v0.17.6
|
k8s.io/cli-runtime => k8s.io/cli-runtime v0.18.8
|
||||||
k8s.io/client-go => k8s.io/client-go v0.17.6
|
k8s.io/client-go => k8s.io/client-go v0.18.8
|
||||||
k8s.io/code-generator => k8s.io/code-generator v0.17.6
|
k8s.io/code-generator => k8s.io/code-generator v0.18.8
|
||||||
)
|
)
|
||||||
|
|
|
||||||
124
go.sum
124
go.sum
|
|
@ -27,6 +27,8 @@ cloud.google.com/go v0.61.0 h1:NLQf5e1OMspfNT1RAHOB3ublr1TW3YTXO8OiWwVjK2U=
|
||||||
cloud.google.com/go v0.61.0/go.mod h1:XukKJg4Y7QsUu0Hxg3qQKUWR4VuWivmyMK2+rUyxAqw=
|
cloud.google.com/go v0.61.0/go.mod h1:XukKJg4Y7QsUu0Hxg3qQKUWR4VuWivmyMK2+rUyxAqw=
|
||||||
cloud.google.com/go v0.62.0 h1:RmDygqvj27Zf3fCQjQRtLyC7KwFcHkeJitcO0OoGOcA=
|
cloud.google.com/go v0.62.0 h1:RmDygqvj27Zf3fCQjQRtLyC7KwFcHkeJitcO0OoGOcA=
|
||||||
cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
|
cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
|
||||||
|
cloud.google.com/go v0.65.0 h1:Dg9iHVQfrhq82rUNu9ZxUDrJLaxFUe/HlCVaLyRruq8=
|
||||||
|
cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
|
||||||
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
||||||
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
||||||
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
||||||
|
|
@ -54,8 +56,8 @@ contrib.go.opencensus.io/exporter/aws v0.0.0-20181029163544-2befc13012d0/go.mod
|
||||||
contrib.go.opencensus.io/exporter/ocagent v0.4.12/go.mod h1:450APlNTSR6FrvC3CTRqYosuDstRB9un7SOx2k/9ckA=
|
contrib.go.opencensus.io/exporter/ocagent v0.4.12/go.mod h1:450APlNTSR6FrvC3CTRqYosuDstRB9un7SOx2k/9ckA=
|
||||||
contrib.go.opencensus.io/exporter/ocagent v0.5.0/go.mod h1:ImxhfLRpxoYiSq891pBrLVhN+qmP8BTVvdH2YLs7Gl0=
|
contrib.go.opencensus.io/exporter/ocagent v0.5.0/go.mod h1:ImxhfLRpxoYiSq891pBrLVhN+qmP8BTVvdH2YLs7Gl0=
|
||||||
contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeSEBLPA9YJp5bjrofdU3pIXs=
|
contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeSEBLPA9YJp5bjrofdU3pIXs=
|
||||||
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200615190824-f8c219d2d895 h1:bXMXgHq+WAIkI2dQivk1yMyKVVqMj8emLmhEqQghPWw=
|
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200907061046-05415f1de66d h1:LblfooH1lKOpp1hIhukktmSAxFkqMPFk9KR6iZ0MJNI=
|
||||||
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200615190824-f8c219d2d895/go.mod h1:IshRmMJBhDfFj5Y67nVhMYTTIze91RUeT73ipWKs/GY=
|
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200907061046-05415f1de66d/go.mod h1:IshRmMJBhDfFj5Y67nVhMYTTIze91RUeT73ipWKs/GY=
|
||||||
contrib.go.opencensus.io/exporter/prometheus v0.1.0 h1:SByaIoWwNgMdPSgl5sMqM2KDE5H/ukPWBRo314xiDvg=
|
contrib.go.opencensus.io/exporter/prometheus v0.1.0 h1:SByaIoWwNgMdPSgl5sMqM2KDE5H/ukPWBRo314xiDvg=
|
||||||
contrib.go.opencensus.io/exporter/prometheus v0.1.0/go.mod h1:cGFniUXGZlKRjzOyuZJ6mgB+PgBcCIa79kEKR8YCW+A=
|
contrib.go.opencensus.io/exporter/prometheus v0.1.0/go.mod h1:cGFniUXGZlKRjzOyuZJ6mgB+PgBcCIa79kEKR8YCW+A=
|
||||||
contrib.go.opencensus.io/exporter/prometheus v0.2.1-0.20200609204449-6bcf6f8577f0 h1:2O3c1g5CzMc1+Uah4Waot9Obm0yw70VXJzWaP6Fz3nw=
|
contrib.go.opencensus.io/exporter/prometheus v0.2.1-0.20200609204449-6bcf6f8577f0 h1:2O3c1g5CzMc1+Uah4Waot9Obm0yw70VXJzWaP6Fz3nw=
|
||||||
|
|
@ -248,6 +250,8 @@ github.com/cavaliercoder/go-cpio v0.0.0-20180626203310-925f9528c45e/go.mod h1:oD
|
||||||
github.com/census-instrumentation/opencensus-proto v0.2.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
github.com/census-instrumentation/opencensus-proto v0.2.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||||
github.com/census-instrumentation/opencensus-proto v0.2.1 h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=
|
github.com/census-instrumentation/opencensus-proto v0.2.1 h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=
|
||||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||||
|
github.com/census-instrumentation/opencensus-proto v0.3.0 h1:t/LhUZLVitR1Ow2YOnduCsavhwFUklBMoGVYUCqmCqk=
|
||||||
|
github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||||
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
|
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
|
||||||
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
|
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
|
||||||
github.com/cespare/xxhash/v2 v2.1.0/go.mod h1:dgIUBU3pDso/gPgZ1osOZ0iQf77oPR28Tjxl5dIMyVM=
|
github.com/cespare/xxhash/v2 v2.1.0/go.mod h1:dgIUBU3pDso/gPgZ1osOZ0iQf77oPR28Tjxl5dIMyVM=
|
||||||
|
|
@ -343,7 +347,7 @@ github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5m
|
||||||
github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs=
|
github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs=
|
||||||
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=
|
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU=
|
||||||
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
|
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
|
||||||
github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
|
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
|
||||||
github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
|
github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
|
||||||
github.com/emicklei/go-restful v2.9.5+incompatible h1:spTtZBk5DYEvbxMVutUuTyh1Ao2r4iyvLdACqsl/Ljk=
|
github.com/emicklei/go-restful v2.9.5+incompatible h1:spTtZBk5DYEvbxMVutUuTyh1Ao2r4iyvLdACqsl/Ljk=
|
||||||
github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
|
github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
|
||||||
|
|
@ -354,6 +358,7 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m
|
||||||
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||||
github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5/go.mod h1:a2zkGnVExMxdzMo3M0Hi/3sEU+cWnZpSni0O6/Yb/P0=
|
github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5/go.mod h1:a2zkGnVExMxdzMo3M0Hi/3sEU+cWnZpSni0O6/Yb/P0=
|
||||||
|
github.com/evanphx/json-patch v0.0.0-20200808040245-162e5629780b/go.mod h1:NAJj0yf/KaRKURN6nyi7A9IZydMivZEm9oQLWNjfKDc=
|
||||||
github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
||||||
github.com/evanphx/json-patch v4.5.0+incompatible h1:ouOWdg56aJriqS0huScTkVXPC5IcNrDCXZ6OoTAWu7M=
|
github.com/evanphx/json-patch v4.5.0+incompatible h1:ouOWdg56aJriqS0huScTkVXPC5IcNrDCXZ6OoTAWu7M=
|
||||||
github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
|
||||||
|
|
@ -505,6 +510,7 @@ github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFU
|
||||||
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
|
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
|
||||||
github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
|
|
@ -560,14 +566,16 @@ github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=
|
||||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k=
|
github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k=
|
||||||
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM=
|
||||||
|
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-containerregistry v0.0.0-20191010200024-a3d713f9b7f8/go.mod h1:KyKXa9ciM8+lgMXwOVsXi7UxGrsf9mM61Mzs+xKUrKE=
|
github.com/google/go-containerregistry v0.0.0-20191010200024-a3d713f9b7f8/go.mod h1:KyKXa9ciM8+lgMXwOVsXi7UxGrsf9mM61Mzs+xKUrKE=
|
||||||
github.com/google/go-containerregistry v0.0.0-20200115214256-379933c9c22b/go.mod h1:Wtl/v6YdQxv397EREtzwgd9+Ud7Q5D8XMbi3Zazgkrs=
|
github.com/google/go-containerregistry v0.0.0-20200115214256-379933c9c22b/go.mod h1:Wtl/v6YdQxv397EREtzwgd9+Ud7Q5D8XMbi3Zazgkrs=
|
||||||
github.com/google/go-containerregistry v0.0.0-20200123184029-53ce695e4179/go.mod h1:Wtl/v6YdQxv397EREtzwgd9+Ud7Q5D8XMbi3Zazgkrs=
|
github.com/google/go-containerregistry v0.0.0-20200123184029-53ce695e4179/go.mod h1:Wtl/v6YdQxv397EREtzwgd9+Ud7Q5D8XMbi3Zazgkrs=
|
||||||
github.com/google/go-containerregistry v0.0.0-20200331213917-3d03ed9b1ca2/go.mod h1:pD1UFYs7MCAx+ZLShBdttcaOSbyc8F9Na/9IZLNwJeA=
|
github.com/google/go-containerregistry v0.0.0-20200331213917-3d03ed9b1ca2/go.mod h1:pD1UFYs7MCAx+ZLShBdttcaOSbyc8F9Na/9IZLNwJeA=
|
||||||
github.com/google/go-containerregistry v0.1.1 h1:AG8FSAfXglim2l5qSrqp5VK2Xl03PiBf25NiTGGamws=
|
github.com/google/go-containerregistry v0.1.1 h1:AG8FSAfXglim2l5qSrqp5VK2Xl03PiBf25NiTGGamws=
|
||||||
github.com/google/go-containerregistry v0.1.1/go.mod h1:npTSyywOeILcgWqd+rvtzGWflIPPcBQhYoOONaY4ltM=
|
github.com/google/go-containerregistry v0.1.1/go.mod h1:npTSyywOeILcgWqd+rvtzGWflIPPcBQhYoOONaY4ltM=
|
||||||
github.com/google/go-containerregistry v0.1.2-0.20200717224239-a84993334b27 h1:UE29caIXS8tGBSgWvLOnFdOqV5fv672bfvkCS/9EHo0=
|
github.com/google/go-containerregistry v0.1.3 h1:vD78UlG9hVJ8DZbUL8uuNco2G1o9eJTA87xR0Y2UX6c=
|
||||||
github.com/google/go-containerregistry v0.1.2-0.20200717224239-a84993334b27/go.mod h1:npTSyywOeILcgWqd+rvtzGWflIPPcBQhYoOONaY4ltM=
|
github.com/google/go-containerregistry v0.1.3/go.mod h1:3Wg/Hjgn/ZDxrYYhtzZJWdThOd8zeI2zAmn4oVfm1Wg=
|
||||||
github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
|
github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
|
||||||
github.com/google/go-github/v27 v27.0.6/go.mod h1:/0Gr8pJ55COkmv+S/yPKCczSkUPIM/LnFyubufRNIS0=
|
github.com/google/go-github/v27 v27.0.6/go.mod h1:/0Gr8pJ55COkmv+S/yPKCczSkUPIM/LnFyubufRNIS0=
|
||||||
github.com/google/go-github/v28 v28.1.1/go.mod h1:bsqJWQX05omyWVmc00nEUql9mhQyv38lDZ8kPZcQVoM=
|
github.com/google/go-github/v28 v28.1.1/go.mod h1:bsqJWQX05omyWVmc00nEUql9mhQyv38lDZ8kPZcQVoM=
|
||||||
|
|
@ -614,6 +622,7 @@ github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+
|
||||||
github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=
|
github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=
|
||||||
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||||
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
|
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
|
||||||
|
github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
|
||||||
github.com/googleapis/gnostic v0.2.2/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
|
github.com/googleapis/gnostic v0.2.2/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
|
||||||
github.com/googleapis/gnostic v0.3.1/go.mod h1:on+2t9HRStVgn95RSsFWFz+6Q0Snyqv1awfrALZdbtU=
|
github.com/googleapis/gnostic v0.3.1/go.mod h1:on+2t9HRStVgn95RSsFWFz+6Q0Snyqv1awfrALZdbtU=
|
||||||
github.com/googleapis/gnostic v0.4.0 h1:BXDUo8p/DaxC+4FJY/SSx3gvnx9C1VdHNgaUkiEL5mk=
|
github.com/googleapis/gnostic v0.4.0 h1:BXDUo8p/DaxC+4FJY/SSx3gvnx9C1VdHNgaUkiEL5mk=
|
||||||
|
|
@ -659,6 +668,8 @@ github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqC
|
||||||
github.com/grpc-ecosystem/grpc-gateway v1.12.2/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c=
|
github.com/grpc-ecosystem/grpc-gateway v1.12.2/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c=
|
||||||
github.com/grpc-ecosystem/grpc-gateway v1.14.6 h1:8ERzHx8aj1Sc47mu9n/AksaKCSWrMchFtkdrS4BIj5o=
|
github.com/grpc-ecosystem/grpc-gateway v1.14.6 h1:8ERzHx8aj1Sc47mu9n/AksaKCSWrMchFtkdrS4BIj5o=
|
||||||
github.com/grpc-ecosystem/grpc-gateway v1.14.6/go.mod h1:zdiPV4Yse/1gnckTHtghG4GkDEdKCRJduHpTxT3/jcw=
|
github.com/grpc-ecosystem/grpc-gateway v1.14.6/go.mod h1:zdiPV4Yse/1gnckTHtghG4GkDEdKCRJduHpTxT3/jcw=
|
||||||
|
github.com/grpc-ecosystem/grpc-gateway v1.14.8 h1:hXClj+iFpmLM8i3lkO6i4Psli4P2qObQuQReiII26U8=
|
||||||
|
github.com/grpc-ecosystem/grpc-gateway v1.14.8/go.mod h1:NZE8t6vs6TnwLL/ITkaK8W3ecMLGAbh2jXTclvpiwYo=
|
||||||
github.com/h2non/gock v1.0.9/go.mod h1:CZMcB0Lg5IWnr9bF79pPMg9WeV6WumxQiUJ1UvdO1iE=
|
github.com/h2non/gock v1.0.9/go.mod h1:CZMcB0Lg5IWnr9bF79pPMg9WeV6WumxQiUJ1UvdO1iE=
|
||||||
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
|
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
|
||||||
github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
||||||
|
|
@ -1025,7 +1036,6 @@ github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c/go.mod h1:
|
||||||
github.com/quasilyte/go-ruleguard v0.1.2-0.20200318202121-b00d7a75d3d8/go.mod h1:CGFX09Ci3pq9QZdj86B+VGIdNj4VyCo2iPOGS9esB/k=
|
github.com/quasilyte/go-ruleguard v0.1.2-0.20200318202121-b00d7a75d3d8/go.mod h1:CGFX09Ci3pq9QZdj86B+VGIdNj4VyCo2iPOGS9esB/k=
|
||||||
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
||||||
github.com/rcrowley/go-metrics v0.0.0-20190706150252-9beb055b7962/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
github.com/rcrowley/go-metrics v0.0.0-20190706150252-9beb055b7962/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
||||||
github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M=
|
|
||||||
github.com/rickb777/date v1.13.0 h1:+8AmwLuY1d/rldzdqvqTEg7107bZ8clW37x4nsdG3Hs=
|
github.com/rickb777/date v1.13.0 h1:+8AmwLuY1d/rldzdqvqTEg7107bZ8clW37x4nsdG3Hs=
|
||||||
github.com/rickb777/date v1.13.0/go.mod h1:GZf3LoGnxPWjX+/1TXOuzHefZFDovTyNLHDMd3qH70k=
|
github.com/rickb777/date v1.13.0/go.mod h1:GZf3LoGnxPWjX+/1TXOuzHefZFDovTyNLHDMd3qH70k=
|
||||||
github.com/rickb777/plural v1.2.1 h1:UitRAgR70+yHFt26Tmj/F9dU9aV6UfjGXSbO1DcC9/U=
|
github.com/rickb777/plural v1.2.1 h1:UitRAgR70+yHFt26Tmj/F9dU9aV6UfjGXSbO1DcC9/U=
|
||||||
|
|
@ -1039,6 +1049,7 @@ github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
|
||||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||||
github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
||||||
github.com/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
github.com/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
||||||
|
github.com/rs/dnscache v0.0.0-20190621150935-06bb5526f76b/go.mod h1:qe5TWALJ8/a1Lqznoc5BDHpYX/8HU60Hm2AwRmqzxqA=
|
||||||
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
|
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
|
||||||
github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
|
github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=
|
||||||
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
|
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
|
||||||
|
|
@ -1199,6 +1210,7 @@ github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:
|
||||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
|
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs=
|
github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs=
|
||||||
github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA=
|
github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA=
|
||||||
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg=
|
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg=
|
||||||
|
|
@ -1283,9 +1295,7 @@ golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de h1:ikNHVSjEfnvz6sxdSPCaPt
|
||||||
golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
|
||||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
|
||||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522 h1:OeRHuibLsmZkFj773W4LcfAGsSxJgfPONhr8cmO+eLA=
|
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522 h1:OeRHuibLsmZkFj773W4LcfAGsSxJgfPONhr8cmO+eLA=
|
||||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||||
golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4=
|
golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4=
|
||||||
|
|
@ -1373,6 +1383,9 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/
|
||||||
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU=
|
golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU=
|
||||||
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
|
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
|
golang.org/x/net v0.0.0-20200904194848-62affa334b73 h1:MXfv8rhZWmFeqX3GNZRsd6vOLoaCHjYEX3qkRo3YBUA=
|
||||||
|
golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
golang.org/x/oauth2 v0.0.0-20180724155351-3d292e4d0cdc/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
golang.org/x/oauth2 v0.0.0-20180724155351-3d292e4d0cdc/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||||
golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||||
|
|
@ -1436,6 +1449,7 @@ golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7w
|
||||||
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191113165036-4c7a9d0fe056/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191113165036-4c7a9d0fe056/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
|
@ -1466,6 +1480,10 @@ golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORK
|
||||||
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200802091954-4b90ce9b60b3 h1:qDJKu1y/1SjhWac4BQZjLljqvqiWUhjmDMnonmVGDAU=
|
golang.org/x/sys v0.0.0-20200802091954-4b90ce9b60b3 h1:qDJKu1y/1SjhWac4BQZjLljqvqiWUhjmDMnonmVGDAU=
|
||||||
golang.org/x/sys v0.0.0-20200802091954-4b90ce9b60b3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200802091954-4b90ce9b60b3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f h1:Fqb3ao1hUmOR3GkUOg/Y+BadLwykBIzs5q8Ez2SbHyc=
|
||||||
|
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
|
|
@ -1493,7 +1511,6 @@ golang.org/x/tools v0.0.0-20181117154741-2ddaf7f79a09/go.mod h1:n7NCudcB/nEzxVGm
|
||||||
golang.org/x/tools v0.0.0-20190110163146-51295c7ec13a/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20190110163146-51295c7ec13a/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
||||||
golang.org/x/tools v0.0.0-20190221204921-83362c3779f5/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
golang.org/x/tools v0.0.0-20190221204921-83362c3779f5/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||||
|
|
@ -1579,20 +1596,22 @@ golang.org/x/tools v0.0.0-20200725200936-102e7d357031/go.mod h1:njjCfa9FT2d7l9Bc
|
||||||
golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
golang.org/x/tools v0.0.0-20200731060945-b5fad4ed8dd6 h1:qKpj8TpV+LEhel7H/fR788J+KvhWZ3o3V6N2fU/iuLU=
|
golang.org/x/tools v0.0.0-20200731060945-b5fad4ed8dd6 h1:qKpj8TpV+LEhel7H/fR788J+KvhWZ3o3V6N2fU/iuLU=
|
||||||
golang.org/x/tools v0.0.0-20200731060945-b5fad4ed8dd6/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
golang.org/x/tools v0.0.0-20200731060945-b5fad4ed8dd6/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200828161849-5deb26317202/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200916195026-c9a70fc28ce3 h1:DywqrEscRX7O2phNjkT0L6lhHKGBoMLCNX+XcAe7t6s=
|
||||||
|
golang.org/x/tools v0.0.0-20200916195026-c9a70fc28ce3/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|
||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
|
||||||
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
gomodules.xyz/jsonpatch/v2 v2.0.1/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU=
|
gomodules.xyz/jsonpatch/v2 v2.0.1/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU=
|
||||||
gomodules.xyz/jsonpatch/v2 v2.1.0 h1:Phva6wqu+xR//Njw6iorylFFgn/z547tw5Ne3HZPQ+k=
|
gomodules.xyz/jsonpatch/v2 v2.1.0 h1:Phva6wqu+xR//Njw6iorylFFgn/z547tw5Ne3HZPQ+k=
|
||||||
gomodules.xyz/jsonpatch/v2 v2.1.0/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU=
|
gomodules.xyz/jsonpatch/v2 v2.1.0/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU=
|
||||||
gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
|
gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
|
||||||
gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485 h1:OB/uP/Puiu5vS5QMRPrXCDWUPb+kt8f1KW8oQzFejQw=
|
|
||||||
gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0=
|
|
||||||
gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
|
gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
|
||||||
gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
|
|
||||||
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e h1:jRyg0XfpwWlhEV8mDfdNGBeSJM2fuyh9Yjrnd8kF2Ts=
|
|
||||||
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ=
|
|
||||||
google.golang.org/api v0.0.0-20160322025152-9bf6e6e569ff/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
|
google.golang.org/api v0.0.0-20160322025152-9bf6e6e569ff/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
|
||||||
google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
|
google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
|
||||||
google.golang.org/api v0.0.0-20181021000519-a2651947f503/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
|
google.golang.org/api v0.0.0-20181021000519-a2651947f503/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
|
||||||
|
|
@ -1620,6 +1639,9 @@ google.golang.org/api v0.26.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0M
|
||||||
google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||||
google.golang.org/api v0.29.0 h1:BaiDisFir8O4IJxvAabCGGkQ6yCJegNQqSVoYUNAnbk=
|
google.golang.org/api v0.29.0 h1:BaiDisFir8O4IJxvAabCGGkQ6yCJegNQqSVoYUNAnbk=
|
||||||
google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
|
google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
|
||||||
|
google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
|
||||||
|
google.golang.org/api v0.31.0 h1:1w5Sz/puhxFo9lTtip2n47k7toB/U2nCqOKNHd3Yrbo=
|
||||||
|
google.golang.org/api v0.31.0/go.mod h1:CL+9IBCa2WWU6gRuBWaKqGWLFFwbEUXkfeMkHLQWYWo=
|
||||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||||
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
|
|
@ -1682,6 +1704,11 @@ google.golang.org/genproto v0.0.0-20200726014623-da3ae01ef02d/go.mod h1:FWY/as6D
|
||||||
google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
google.golang.org/genproto v0.0.0-20200731012542-8145dea6a485 h1:wTk5DQB3+1darAz4Ldomo0r5bUOCKX7gilxQ4sb2kno=
|
google.golang.org/genproto v0.0.0-20200731012542-8145dea6a485 h1:wTk5DQB3+1darAz4Ldomo0r5bUOCKX7gilxQ4sb2kno=
|
||||||
google.golang.org/genproto v0.0.0-20200731012542-8145dea6a485/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
google.golang.org/genproto v0.0.0-20200731012542-8145dea6a485/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200831141814-d751682dd103/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d h1:92D1fum1bJLKSdr11OJ+54YeCMCGYIygTA7R/YZxH5M=
|
||||||
|
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
google.golang.org/grpc v0.0.0-20160317175043-d3ddb4469d5a/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
|
google.golang.org/grpc v0.0.0-20160317175043-d3ddb4469d5a/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
|
||||||
google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
|
google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
|
||||||
google.golang.org/grpc v1.15.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio=
|
google.golang.org/grpc v1.15.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio=
|
||||||
|
|
@ -1710,6 +1737,8 @@ google.golang.org/grpc v1.30.0 h1:M5a8xTlYTxwMn5ZFkwhRabsygDY5G8TYLyQDBxJNAxE=
|
||||||
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||||
google.golang.org/grpc v1.31.0 h1:T7P4R73V3SSDPhH7WW7ATbfViLtmamH0DKrP3f9AuDI=
|
google.golang.org/grpc v1.31.0 h1:T7P4R73V3SSDPhH7WW7ATbfViLtmamH0DKrP3f9AuDI=
|
||||||
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||||
|
google.golang.org/grpc v1.31.1 h1:SfXqXS5hkufcdZ/mHtYCh53P2b+92WQq/DZcKLgsFRs=
|
||||||
|
google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||||
|
|
@ -1787,36 +1816,37 @@ honnef.co/go/tools v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3
|
||||||
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=
|
honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=
|
||||||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
|
honnef.co/go/tools v0.0.1-2020.1.5 h1:nI5egYTGJakVyOryqLs1cQO5dO0ksin5XXs2pspk75k=
|
||||||
|
honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
istio.io/api v0.0.0-20200512234804-e5412c253ffe/go.mod h1:kyq3g5w42zl/AKlbzDGppYpGMQYMYMyZKeq0/eexML8=
|
istio.io/api v0.0.0-20200512234804-e5412c253ffe/go.mod h1:kyq3g5w42zl/AKlbzDGppYpGMQYMYMyZKeq0/eexML8=
|
||||||
istio.io/client-go v0.0.0-20200513000250-b1d6e9886b7b/go.mod h1:aUDVNCOKom8n53OPEb7JxKucbKVNveDY4WJj7PGQb14=
|
istio.io/client-go v0.0.0-20200513000250-b1d6e9886b7b/go.mod h1:aUDVNCOKom8n53OPEb7JxKucbKVNveDY4WJj7PGQb14=
|
||||||
istio.io/gogo-genproto v0.0.0-20190930162913-45029607206a/go.mod h1:OzpAts7jljZceG4Vqi5/zXy/pOg1b209T3jb7Nv5wIs=
|
istio.io/gogo-genproto v0.0.0-20190930162913-45029607206a/go.mod h1:OzpAts7jljZceG4Vqi5/zXy/pOg1b209T3jb7Nv5wIs=
|
||||||
istio.io/gogo-genproto v0.0.0-20191029161641-f7d19ec0141d/go.mod h1:OzpAts7jljZceG4Vqi5/zXy/pOg1b209T3jb7Nv5wIs=
|
k8s.io/api v0.18.8 h1:aIKUzJPb96f3fKec2lxtY7acZC9gQNDLVhfSGpxBAC4=
|
||||||
k8s.io/api v0.17.6 h1:S6qZSkjdOU0N/TYBZKoR1o7YVSiWMGFU0XXDoqs2ioA=
|
k8s.io/api v0.18.8/go.mod h1:d/CXqwWv+Z2XEG1LgceeDmHQwpUJhROPx16SlxJgERY=
|
||||||
k8s.io/api v0.17.6/go.mod h1:1jKVwkj0UZ4huak/yRt3MFfU5wc32+B41SkNN5HhyFg=
|
k8s.io/apiextensions-apiserver v0.18.8/go.mod h1:7f4ySEkkvifIr4+BRrRWriKKIJjPyg9mb/p63dJKnlM=
|
||||||
k8s.io/apiextensions-apiserver v0.17.6/go.mod h1:Z3CHLP3Tha+Rbav7JR3S+ye427UaJkHBomK2c4XtZ3A=
|
k8s.io/apimachinery v0.18.8 h1:jimPrycCqgx2QPearX3to1JePz7wSbVLq+7PdBTTwQ0=
|
||||||
k8s.io/apimachinery v0.17.6 h1:P0MNfucrmKLPsOSRbhDuG0Tplrpg7hVY4fJHh5sUIUw=
|
k8s.io/apimachinery v0.18.8/go.mod h1:6sQd+iHEqmOtALqOFjSWp2KZ9F0wlU/nWm0ZgsYWMig=
|
||||||
k8s.io/apimachinery v0.17.6/go.mod h1:Lg8zZ5iC/O8UjCqW6DNhcQG2m4TdjF9kwG3891OWbbA=
|
|
||||||
k8s.io/apiserver v0.17.0/go.mod h1:ABM+9x/prjINN6iiffRVNCBR2Wk7uY4z+EtEGZD48cg=
|
k8s.io/apiserver v0.17.0/go.mod h1:ABM+9x/prjINN6iiffRVNCBR2Wk7uY4z+EtEGZD48cg=
|
||||||
k8s.io/apiserver v0.17.4/go.mod h1:5ZDQ6Xr5MNBxyi3iUZXS84QOhZl+W7Oq2us/29c0j9I=
|
k8s.io/apiserver v0.17.4/go.mod h1:5ZDQ6Xr5MNBxyi3iUZXS84QOhZl+W7Oq2us/29c0j9I=
|
||||||
k8s.io/apiserver v0.17.6/go.mod h1:sAYqm8hUDNA9aj/TzqwsJoExWrxprKv0tqs/z88qym0=
|
k8s.io/apiserver v0.18.8/go.mod h1:12u5FuGql8Cc497ORNj79rhPdiXQC4bf53X/skR/1YM=
|
||||||
k8s.io/cli-runtime v0.17.6 h1:JOlW8O0wPwpoQUl6ZDGtRZ5Fw6KQ1XvDxev0V8B22/M=
|
k8s.io/cli-runtime v0.18.8 h1:ycmbN3hs7CfkJIYxJAOB10iW7BVPmXGXkfEyiV9NJ+k=
|
||||||
k8s.io/cli-runtime v0.17.6/go.mod h1:CHzZyoNkNFdB3Ot+KcDD26Hd1GCsc84RenZmr8DKnVs=
|
k8s.io/cli-runtime v0.18.8/go.mod h1:7EzWiDbS9PFd0hamHHVoCY4GrokSTPSL32MA4rzIu0M=
|
||||||
k8s.io/client-go v0.17.6 h1:W/JkbAcIZUPb9vENRTC75ymjQQO3qEJAZyYhOIEOifM=
|
k8s.io/client-go v0.18.8 h1:SdbLpIxk5j5YbFr1b7fq8S7mDgDjYmUxSbszyoesoDM=
|
||||||
k8s.io/client-go v0.17.6/go.mod h1:tX5eAbQR/Kbqv+5R93rzHQoyRnPjjW2mm9i0lXnW218=
|
k8s.io/client-go v0.18.8/go.mod h1:HqFqMllQ5NnQJNwjro9k5zMyfhZlOwpuTLVrxjkYSxU=
|
||||||
k8s.io/cloud-provider v0.17.0/go.mod h1:Ze4c3w2C0bRsjkBUoHpFi+qWe3ob1wI2/7cUn+YQIDE=
|
k8s.io/cloud-provider v0.17.0/go.mod h1:Ze4c3w2C0bRsjkBUoHpFi+qWe3ob1wI2/7cUn+YQIDE=
|
||||||
k8s.io/cloud-provider v0.17.4/go.mod h1:XEjKDzfD+b9MTLXQFlDGkk6Ho8SGMpaU8Uugx/KNK9U=
|
k8s.io/cloud-provider v0.17.4/go.mod h1:XEjKDzfD+b9MTLXQFlDGkk6Ho8SGMpaU8Uugx/KNK9U=
|
||||||
k8s.io/code-generator v0.17.6 h1:2e0zgYsJmkc66HHEq7MoG1HgCEDCYLT08Y4VBcdzTkk=
|
k8s.io/code-generator v0.18.8 h1:lgO1P1wjikEtzNvj7ia+x1VC4svJ28a/r0wnOLhhOTU=
|
||||||
k8s.io/code-generator v0.17.6/go.mod h1:iiHz51+oTx+Z9D0vB3CH3O4HDDPWrvZyUgUYaIE9h9M=
|
k8s.io/code-generator v0.18.8/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c=
|
||||||
k8s.io/component-base v0.17.0/go.mod h1:rKuRAokNMY2nn2A6LP/MiwpoaMRHpfRnrPaUJJj1Yoc=
|
k8s.io/component-base v0.17.0/go.mod h1:rKuRAokNMY2nn2A6LP/MiwpoaMRHpfRnrPaUJJj1Yoc=
|
||||||
k8s.io/component-base v0.17.2/go.mod h1:zMPW3g5aH7cHJpKYQ/ZsGMcgbsA/VyhEugF3QT1awLs=
|
k8s.io/component-base v0.17.2/go.mod h1:zMPW3g5aH7cHJpKYQ/ZsGMcgbsA/VyhEugF3QT1awLs=
|
||||||
k8s.io/component-base v0.17.4/go.mod h1:5BRqHMbbQPm2kKu35v3G+CpVq4K0RJKC7TRioF0I9lE=
|
k8s.io/component-base v0.17.4/go.mod h1:5BRqHMbbQPm2kKu35v3G+CpVq4K0RJKC7TRioF0I9lE=
|
||||||
k8s.io/component-base v0.17.6/go.mod h1:jgRLWl0B0rOzFNtxQ9E4BphPmDqoMafujdau6AdG2Xo=
|
k8s.io/component-base v0.18.8/go.mod h1:00frPRDas29rx58pPCxNkhUfPbwajlyyvu8ruNgSErU=
|
||||||
k8s.io/csi-translation-lib v0.17.0/go.mod h1:HEF7MEz7pOLJCnxabi45IPkhSsE/KmxPQksuCrHKWls=
|
k8s.io/csi-translation-lib v0.17.0/go.mod h1:HEF7MEz7pOLJCnxabi45IPkhSsE/KmxPQksuCrHKWls=
|
||||||
k8s.io/csi-translation-lib v0.17.4/go.mod h1:CsxmjwxEI0tTNMzffIAcgR9lX4wOh6AKHdxQrT7L0oo=
|
k8s.io/csi-translation-lib v0.17.4/go.mod h1:CsxmjwxEI0tTNMzffIAcgR9lX4wOh6AKHdxQrT7L0oo=
|
||||||
k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||||
k8s.io/gengo v0.0.0-20190306031000-7a1b7fb0289f/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
k8s.io/gengo v0.0.0-20190306031000-7a1b7fb0289f/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||||
k8s.io/gengo v0.0.0-20190822140433-26a664648505/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
|
||||||
k8s.io/gengo v0.0.0-20191108084044-e500ee069b5c/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
k8s.io/gengo v0.0.0-20191108084044-e500ee069b5c/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||||
|
k8s.io/gengo v0.0.0-20200114144118-36b2048a9120/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||||
k8s.io/gengo v0.0.0-20200205140755-e0e292d8aa12 h1:pZzawYyz6VRNPVYpqGv61LWCimQv1BihyeqFrp50/G4=
|
k8s.io/gengo v0.0.0-20200205140755-e0e292d8aa12 h1:pZzawYyz6VRNPVYpqGv61LWCimQv1BihyeqFrp50/G4=
|
||||||
k8s.io/gengo v0.0.0-20200205140755-e0e292d8aa12/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
k8s.io/gengo v0.0.0-20200205140755-e0e292d8aa12/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
|
||||||
k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
|
k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
|
||||||
|
|
@ -1830,6 +1860,7 @@ k8s.io/kube-openapi v0.0.0-20180731170545-e3762e86a74c/go.mod h1:BXM9ceUBTj2QnfH
|
||||||
k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
|
k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
|
||||||
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a h1:UcxjrRMyNx/i/y8G7kPvLyy7rfbeuf1PYyBf973pgyU=
|
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a h1:UcxjrRMyNx/i/y8G7kPvLyy7rfbeuf1PYyBf973pgyU=
|
||||||
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
|
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E=
|
||||||
|
k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E=
|
||||||
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29 h1:NeQXVJ2XFSkRoPzRo8AId01ZER+j8oV4SZADT4iBOXQ=
|
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29 h1:NeQXVJ2XFSkRoPzRo8AId01ZER+j8oV4SZADT4iBOXQ=
|
||||||
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29/go.mod h1:F+5wygcW0wmRTnM3cOgIqGivxkwSWIWT5YdsDbeAOaU=
|
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29/go.mod h1:F+5wygcW0wmRTnM3cOgIqGivxkwSWIWT5YdsDbeAOaU=
|
||||||
k8s.io/kubectl v0.17.2/go.mod h1:y4rfLV0n6aPmvbRCqZQjvOp3ezxsFgpqL+zF5jH/lxk=
|
k8s.io/kubectl v0.17.2/go.mod h1:y4rfLV0n6aPmvbRCqZQjvOp3ezxsFgpqL+zF5jH/lxk=
|
||||||
|
|
@ -1852,17 +1883,18 @@ k8s.io/utils v0.0.0-20190907131718-3d4f5b7dea0b/go.mod h1:sZAwmy6armz5eXlNoLmJcl
|
||||||
k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
|
k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
|
||||||
k8s.io/utils v0.0.0-20200124190032-861946025e34 h1:HjlUD6M0K3P8nRXmr2B9o4F9dUy9TCj/aEpReeyi6+k=
|
k8s.io/utils v0.0.0-20200124190032-861946025e34 h1:HjlUD6M0K3P8nRXmr2B9o4F9dUy9TCj/aEpReeyi6+k=
|
||||||
k8s.io/utils v0.0.0-20200124190032-861946025e34/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
|
k8s.io/utils v0.0.0-20200124190032-861946025e34/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
|
||||||
|
k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
|
||||||
k8s.io/utils v0.0.0-20200603063816-c1c6865ac451 h1:v8ud2Up6QK1lNOKFgiIVrZdMg7MpmSnvtrOieolJKoE=
|
k8s.io/utils v0.0.0-20200603063816-c1c6865ac451 h1:v8ud2Up6QK1lNOKFgiIVrZdMg7MpmSnvtrOieolJKoE=
|
||||||
k8s.io/utils v0.0.0-20200603063816-c1c6865ac451/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
|
k8s.io/utils v0.0.0-20200603063816-c1c6865ac451/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
|
||||||
knative.dev/caching v0.0.0-20190719140829-2032732871ff/go.mod h1:dHXFU6CGlLlbzaWc32g80cR92iuBSpsslDNBWI8C7eg=
|
knative.dev/caching v0.0.0-20190719140829-2032732871ff/go.mod h1:dHXFU6CGlLlbzaWc32g80cR92iuBSpsslDNBWI8C7eg=
|
||||||
knative.dev/caching v0.0.0-20200116200605-67bca2c83dfa/go.mod h1:dHXFU6CGlLlbzaWc32g80cR92iuBSpsslDNBWI8C7eg=
|
knative.dev/caching v0.0.0-20200116200605-67bca2c83dfa/go.mod h1:dHXFU6CGlLlbzaWc32g80cR92iuBSpsslDNBWI8C7eg=
|
||||||
knative.dev/caching v0.0.0-20200811171106-48c335fed9c8/go.mod h1:XonDcFC2DLSWP71f2y7oYnXUko5d5HsJRnZtkp0wY7g=
|
knative.dev/caching v0.0.0-20200922173540-a6b8bbd6999a/go.mod h1:P624eQ2AZLjwPBRuSqlnkWjRYoVeGdZ/uGXPrYP/USk=
|
||||||
knative.dev/eventing v0.17.0 h1:yGJuwN+jWQPCf4XuL44vAjlemLHnbLTBKyhvRBmikpQ=
|
knative.dev/eventing v0.17.1-0.20200922201940-baa7cd3e8254 h1:Xdf96eamgMUe6m46S2u2WGPVf2ZCMWSNrpkts8NF/QE=
|
||||||
knative.dev/eventing v0.17.0/go.mod h1:9NwCSwLnMCKmgz3YQBNax18mSgBjud8CvfsUUVOZ1sA=
|
knative.dev/eventing v0.17.1-0.20200922201940-baa7cd3e8254/go.mod h1:5WylXx2ZK+OI7Yb2vQ5uOUlODyd99GEKkWGKQOSvofY=
|
||||||
knative.dev/eventing-contrib v0.6.1-0.20190723221543-5ce18048c08b/go.mod h1:SnXZgSGgMSMLNFTwTnpaOH7hXDzTFtw0J8OmHflNx3g=
|
knative.dev/eventing-contrib v0.6.1-0.20190723221543-5ce18048c08b/go.mod h1:SnXZgSGgMSMLNFTwTnpaOH7hXDzTFtw0J8OmHflNx3g=
|
||||||
knative.dev/eventing-contrib v0.11.2/go.mod h1:SnXZgSGgMSMLNFTwTnpaOH7hXDzTFtw0J8OmHflNx3g=
|
knative.dev/eventing-contrib v0.11.2/go.mod h1:SnXZgSGgMSMLNFTwTnpaOH7hXDzTFtw0J8OmHflNx3g=
|
||||||
knative.dev/networking v0.0.0-20200812200006-4d518e76538a h1:E1rnQR9IZvDcEAgoOXMW9LWqevaYFVTlMS2ndgoAO6Y=
|
knative.dev/networking v0.0.0-20200922180040-a71b40c69b15 h1:UhUyfzy5VTEdkWXlkJAKLDPkPK9MKNpENfn17rlYtcs=
|
||||||
knative.dev/networking v0.0.0-20200812200006-4d518e76538a/go.mod h1:ZewGJAElO4qPOeZTKuLIO3NQNGAkqcQVu64gHOSiPPg=
|
knative.dev/networking v0.0.0-20200922180040-a71b40c69b15/go.mod h1:WphBxM2NFDmDLc5FAJUOdGdgdXbuD/ALSWa//jKw92I=
|
||||||
knative.dev/pkg v0.0.0-20191101194912-56c2594e4f11/go.mod h1:pgODObA1dTyhNoFxPZTTjNWfx6F0aKsKzn+vaT9XO/Q=
|
knative.dev/pkg v0.0.0-20191101194912-56c2594e4f11/go.mod h1:pgODObA1dTyhNoFxPZTTjNWfx6F0aKsKzn+vaT9XO/Q=
|
||||||
knative.dev/pkg v0.0.0-20191111150521-6d806b998379/go.mod h1:pgODObA1dTyhNoFxPZTTjNWfx6F0aKsKzn+vaT9XO/Q=
|
knative.dev/pkg v0.0.0-20191111150521-6d806b998379/go.mod h1:pgODObA1dTyhNoFxPZTTjNWfx6F0aKsKzn+vaT9XO/Q=
|
||||||
knative.dev/pkg v0.0.0-20200207155214-fef852970f43/go.mod h1:pgODObA1dTyhNoFxPZTTjNWfx6F0aKsKzn+vaT9XO/Q=
|
knative.dev/pkg v0.0.0-20200207155214-fef852970f43/go.mod h1:pgODObA1dTyhNoFxPZTTjNWfx6F0aKsKzn+vaT9XO/Q=
|
||||||
|
|
@ -1871,24 +1903,17 @@ knative.dev/pkg v0.0.0-20200505191044-3da93ebb24c2/go.mod h1:Q6sL35DdGs8hIQZKdaC
|
||||||
knative.dev/pkg v0.0.0-20200515002500-16d7b963416f/go.mod h1:tMOHGbxtRz8zYFGEGpV/bpoTEM1o89MwYFC4YJXl3GY=
|
knative.dev/pkg v0.0.0-20200515002500-16d7b963416f/go.mod h1:tMOHGbxtRz8zYFGEGpV/bpoTEM1o89MwYFC4YJXl3GY=
|
||||||
knative.dev/pkg v0.0.0-20200528142800-1c6815d7e4c9/go.mod h1:QgNZTxnwpB/oSpNcfnLVlw+WpEwwyKAvJlvR3hgeltA=
|
knative.dev/pkg v0.0.0-20200528142800-1c6815d7e4c9/go.mod h1:QgNZTxnwpB/oSpNcfnLVlw+WpEwwyKAvJlvR3hgeltA=
|
||||||
knative.dev/pkg v0.0.0-20200711004937-22502028e31a/go.mod h1:AqAJV6rYi8IGikDjJ/9ZQd9qKdkXVlesVnVjwx62YB8=
|
knative.dev/pkg v0.0.0-20200711004937-22502028e31a/go.mod h1:AqAJV6rYi8IGikDjJ/9ZQd9qKdkXVlesVnVjwx62YB8=
|
||||||
knative.dev/pkg v0.0.0-20200811165506-f6ed1766e8ee h1:2WJTEd8wANLXI1jXbWFePUUT0G2e93DZ5jsg3MkrDoM=
|
knative.dev/pkg v0.0.0-20200921223636-6a12c7596267/go.mod h1:MCyt5KqLaai6ENUitOgRAQsu7Gw7cAIIiXQ2IS+O0NI=
|
||||||
knative.dev/pkg v0.0.0-20200811165506-f6ed1766e8ee/go.mod h1:udIbxBS/SJCL4sqnCG8HZArez9HjWmeqJCaVJP/h32I=
|
knative.dev/pkg v0.0.0-20200922164940-4bf40ad82aab h1:4Q+sGqdN4ecLPZnIJcLDdQArEE9oOtRYiU2J6NPCCjU=
|
||||||
knative.dev/pkg v0.0.0-20200812224206-44c860147a87 h1:argvd9DHJr2YeeV2pl1ogXPB3raIWnOqJivfBK/qsiM=
|
knative.dev/pkg v0.0.0-20200922164940-4bf40ad82aab/go.mod h1:MCyt5KqLaai6ENUitOgRAQsu7Gw7cAIIiXQ2IS+O0NI=
|
||||||
knative.dev/pkg v0.0.0-20200812224206-44c860147a87/go.mod h1:udIbxBS/SJCL4sqnCG8HZArez9HjWmeqJCaVJP/h32I=
|
knative.dev/serving v0.17.1-0.20200922232940-9d0250fcaaec h1:LZfqA3xNuK4ATxa448btwexqVkgt0xbv5ETCsUkEd/c=
|
||||||
knative.dev/serving v0.17.0 h1:WA7pGmdytiUj23vop0v7KEZ3w0Wf7Bpci3sREIQ60yk=
|
knative.dev/serving v0.17.1-0.20200922232940-9d0250fcaaec/go.mod h1:9U9j3D5yT7nPyVQFp4cnYugbqxF9LbHZVaxCOhNajFI=
|
||||||
knative.dev/serving v0.17.0/go.mod h1:OSO+sfM0xgIhQ+aG6pmMY9SjYDOdghCkoJiAXDheun8=
|
|
||||||
knative.dev/test-infra v0.0.0-20200407185800-1b88cb3b45a5/go.mod h1:xcdUkMJrLlBswIZqL5zCuBFOC22WIPMQoVX1L35i0vQ=
|
knative.dev/test-infra v0.0.0-20200407185800-1b88cb3b45a5/go.mod h1:xcdUkMJrLlBswIZqL5zCuBFOC22WIPMQoVX1L35i0vQ=
|
||||||
knative.dev/test-infra v0.0.0-20200505052144-5ea2f705bb55/go.mod h1:WqF1Azka+FxPZ20keR2zCNtiQA1MP9ZB4BH4HuI+SIU=
|
knative.dev/test-infra v0.0.0-20200505052144-5ea2f705bb55/go.mod h1:WqF1Azka+FxPZ20keR2zCNtiQA1MP9ZB4BH4HuI+SIU=
|
||||||
knative.dev/test-infra v0.0.0-20200513011557-d03429a76034/go.mod h1:aMif0KXL4g19YCYwsy4Ocjjz5xgPlseYV+B95Oo4JGE=
|
knative.dev/test-infra v0.0.0-20200513011557-d03429a76034/go.mod h1:aMif0KXL4g19YCYwsy4Ocjjz5xgPlseYV+B95Oo4JGE=
|
||||||
knative.dev/test-infra v0.0.0-20200519015156-82551620b0a9/go.mod h1:A5b2OAXTOeHT3hHhVQm3dmtbuWvIDP7qzgtqxA3/2pE=
|
knative.dev/test-infra v0.0.0-20200519015156-82551620b0a9/go.mod h1:A5b2OAXTOeHT3hHhVQm3dmtbuWvIDP7qzgtqxA3/2pE=
|
||||||
knative.dev/test-infra v0.0.0-20200707183444-aed09e56ddc7/go.mod h1:RjYAhXnZqeHw9+B0zsbqSPlae0lCvjekO/nw5ZMpLCs=
|
knative.dev/test-infra v0.0.0-20200707183444-aed09e56ddc7/go.mod h1:RjYAhXnZqeHw9+B0zsbqSPlae0lCvjekO/nw5ZMpLCs=
|
||||||
knative.dev/test-infra v0.0.0-20200811030605-72f8c9f3e933/go.mod h1:Pmg2c7Z7q7BGFUV/GOpU5BlrD3ePJft4MPqx8AYBplc=
|
knative.dev/test-infra v0.0.0-20200921012245-37f1a12adbd3/go.mod h1:Pmg2c7Z7q7BGFUV/GOpU5BlrD3ePJft4MPqx8AYBplc=
|
||||||
knative.dev/test-infra v0.0.0-20200813220834-388e55a496cf/go.mod h1:Pmg2c7Z7q7BGFUV/GOpU5BlrD3ePJft4MPqx8AYBplc=
|
|
||||||
modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
|
|
||||||
modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
|
|
||||||
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=
|
|
||||||
modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs=
|
|
||||||
modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I=
|
|
||||||
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
||||||
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
||||||
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
||||||
|
|
@ -1900,6 +1925,7 @@ rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8
|
||||||
rsc.io/letsencrypt v0.0.3/go.mod h1:buyQKZ6IXrRnB7TdkHP0RyEybLx18HHyOSoTyoOLqNY=
|
rsc.io/letsencrypt v0.0.3/go.mod h1:buyQKZ6IXrRnB7TdkHP0RyEybLx18HHyOSoTyoOLqNY=
|
||||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||||
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
||||||
|
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.7/go.mod h1:PHgbrJT7lCHcxMU+mDHEm+nx46H4zuuHZkDP6icnhu0=
|
||||||
sigs.k8s.io/boskos v0.0.0-20200526191642-45fc818e2d00/go.mod h1:L1ubP7d1CCMSQSjKiZv6dGbh7b4kfoG+dFPj8cfYDnI=
|
sigs.k8s.io/boskos v0.0.0-20200526191642-45fc818e2d00/go.mod h1:L1ubP7d1CCMSQSjKiZv6dGbh7b4kfoG+dFPj8cfYDnI=
|
||||||
sigs.k8s.io/boskos v0.0.0-20200617235605-f289ba6555ba/go.mod h1:ZO5RV+VxJS9mb6DvZ1yAjywoyq/wQ8b0vDoZxcIA5kE=
|
sigs.k8s.io/boskos v0.0.0-20200617235605-f289ba6555ba/go.mod h1:ZO5RV+VxJS9mb6DvZ1yAjywoyq/wQ8b0vDoZxcIA5kE=
|
||||||
sigs.k8s.io/boskos v0.0.0-20200729174948-794df80db9c9/go.mod h1:ZO5RV+VxJS9mb6DvZ1yAjywoyq/wQ8b0vDoZxcIA5kE=
|
sigs.k8s.io/boskos v0.0.0-20200729174948-794df80db9c9/go.mod h1:ZO5RV+VxJS9mb6DvZ1yAjywoyq/wQ8b0vDoZxcIA5kE=
|
||||||
|
|
@ -1910,8 +1936,12 @@ sigs.k8s.io/controller-runtime v0.6.1/go.mod h1:XRYBPdbf5XJu9kpS84VJiZ7h/u1hF3gE
|
||||||
sigs.k8s.io/kustomize v2.0.3+incompatible h1:JUufWFNlI44MdtnjUqVnvh29rR37PQFzPbLXqhyOyX0=
|
sigs.k8s.io/kustomize v2.0.3+incompatible h1:JUufWFNlI44MdtnjUqVnvh29rR37PQFzPbLXqhyOyX0=
|
||||||
sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=
|
sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=
|
||||||
sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI=
|
sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI=
|
||||||
|
sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06 h1:zD2IemQ4LmOcAumeiyDWXKUI2SO0NYDe3H6QGvPOVgU=
|
||||||
sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06/go.mod h1:/ULNhyfzRopfcjskuui0cTITekDduZ7ycKN3oUT9R18=
|
sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06/go.mod h1:/ULNhyfzRopfcjskuui0cTITekDduZ7ycKN3oUT9R18=
|
||||||
sigs.k8s.io/structured-merge-diff/v2 v2.0.1/go.mod h1:Wb7vfKAodbKgf6tn1Kl0VvGj7mRH6DGaRcixXEJXTsE=
|
sigs.k8s.io/structured-merge-diff/v2 v2.0.1/go.mod h1:Wb7vfKAodbKgf6tn1Kl0VvGj7mRH6DGaRcixXEJXTsE=
|
||||||
|
sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200116222232-67a7b8c61874/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw=
|
||||||
|
sigs.k8s.io/structured-merge-diff/v3 v3.0.0/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw=
|
||||||
|
sigs.k8s.io/structured-merge-diff/v3 v3.0.1-0.20200706213357-43c19bbb7fba h1:AAbnc5KQuTWKuh2QSnyghKIOTFzB0Jayv7/OFDn3Cy4=
|
||||||
sigs.k8s.io/structured-merge-diff/v3 v3.0.1-0.20200706213357-43c19bbb7fba/go.mod h1:V06abazjHneE37ZdSY/UUwPVgcJMKI/jU5XGUjgIKoc=
|
sigs.k8s.io/structured-merge-diff/v3 v3.0.1-0.20200706213357-43c19bbb7fba/go.mod h1:V06abazjHneE37ZdSY/UUwPVgcJMKI/jU5XGUjgIKoc=
|
||||||
sigs.k8s.io/testing_frameworks v0.1.1/go.mod h1:VVBKrHmJ6Ekkfz284YKhQePcdycOzNH9qL6ht1zEr/U=
|
sigs.k8s.io/testing_frameworks v0.1.1/go.mod h1:VVBKrHmJ6Ekkfz284YKhQePcdycOzNH9qL6ht1zEr/U=
|
||||||
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
|
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,8 @@ VERSION="master"
|
||||||
# The list of dependencies that we track at HEAD and periodically
|
# The list of dependencies that we track at HEAD and periodically
|
||||||
# float forward in this repository.
|
# float forward in this repository.
|
||||||
FLOATING_DEPS=(
|
FLOATING_DEPS=(
|
||||||
"knative.dev/pkg@release-0.17"
|
"knative.dev/pkg@release-0.18"
|
||||||
|
"knative.dev/networking@release-0.18"
|
||||||
"knative.dev/serving@${VERSION}"
|
"knative.dev/serving@${VERSION}"
|
||||||
"knative.dev/eventing@${VERSION}"
|
"knative.dev/eventing@${VERSION}"
|
||||||
)
|
)
|
||||||
|
|
@ -47,7 +48,7 @@ readonly GO_GET
|
||||||
|
|
||||||
if (( GO_GET )); then
|
if (( GO_GET )); then
|
||||||
go get -d ${FLOATING_DEPS[@]}
|
go get -d ${FLOATING_DEPS[@]}
|
||||||
"${ROOT_DIR}/scripts/test-infra/update-test-infra.sh" --update --ref "release-0.17"
|
"${ROOT_DIR}/scripts/test-infra/update-test-infra.sh" --update --ref "release-0.18"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export K8S_VERSION="${1:-v0.17.6}"
|
export K8S_VERSION="${1:-v0.18.8}"
|
||||||
|
|
||||||
K8S_DEPS=(
|
K8S_DEPS=(
|
||||||
"k8s.io/api"
|
"k8s.io/api"
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
package dynamic
|
package dynamic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
|
@ -89,7 +90,7 @@ func (c *knDynamicClient) ListCRDs(options metav1.ListOptions) (*unstructured.Un
|
||||||
Resource: crdKinds,
|
Resource: crdKinds,
|
||||||
}
|
}
|
||||||
|
|
||||||
uList, err := c.client.Resource(gvr).List(options)
|
uList, err := c.client.Resource(gvr).List(context.TODO(), options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
@ -147,7 +148,7 @@ func (c *knDynamicClient) ListSources(types ...WithType) (*unstructured.Unstruct
|
||||||
}
|
}
|
||||||
|
|
||||||
// list objects of source type with this GVR
|
// list objects of source type with this GVR
|
||||||
sList, err := c.client.Resource(gvr).Namespace(namespace).List(options)
|
sList, err := c.client.Resource(gvr).Namespace(namespace).List(context.TODO(), options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
@ -183,7 +184,7 @@ func (c *knDynamicClient) ListSourcesUsingGVKs(gvks *[]schema.GroupVersionKind,
|
||||||
gvr := gvk.GroupVersion().WithResource(strings.ToLower(gvk.Kind) + "s")
|
gvr := gvk.GroupVersion().WithResource(strings.ToLower(gvk.Kind) + "s")
|
||||||
|
|
||||||
// list objects of source type with this GVR
|
// list objects of source type with this GVR
|
||||||
sList, err := c.client.Resource(gvr).Namespace(namespace).List(options)
|
sList, err := c.client.Resource(gvr).Namespace(namespace).List(context.TODO(), options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
apis_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apis_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
@ -74,7 +75,7 @@ func NewKnEventingClient(client client_v1beta1.EventingV1beta1Interface, namespa
|
||||||
|
|
||||||
//CreateTrigger is used to create an instance of trigger
|
//CreateTrigger is used to create an instance of trigger
|
||||||
func (c *knEventingClient) CreateTrigger(trigger *v1beta1.Trigger) error {
|
func (c *knEventingClient) CreateTrigger(trigger *v1beta1.Trigger) error {
|
||||||
_, err := c.client.Triggers(c.namespace).Create(trigger)
|
_, err := c.client.Triggers(c.namespace).Create(context.TODO(), trigger, meta_v1.CreateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return kn_errors.GetError(err)
|
return kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -83,7 +84,7 @@ func (c *knEventingClient) CreateTrigger(trigger *v1beta1.Trigger) error {
|
||||||
|
|
||||||
//DeleteTrigger is used to delete an instance of trigger
|
//DeleteTrigger is used to delete an instance of trigger
|
||||||
func (c *knEventingClient) DeleteTrigger(name string) error {
|
func (c *knEventingClient) DeleteTrigger(name string) error {
|
||||||
err := c.client.Triggers(c.namespace).Delete(name, &apis_v1.DeleteOptions{})
|
err := c.client.Triggers(c.namespace).Delete(context.TODO(), name, apis_v1.DeleteOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return kn_errors.GetError(err)
|
return kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -92,7 +93,7 @@ func (c *knEventingClient) DeleteTrigger(name string) error {
|
||||||
|
|
||||||
//GetTrigger is used to get an instance of trigger
|
//GetTrigger is used to get an instance of trigger
|
||||||
func (c *knEventingClient) GetTrigger(name string) (*v1beta1.Trigger, error) {
|
func (c *knEventingClient) GetTrigger(name string) (*v1beta1.Trigger, error) {
|
||||||
trigger, err := c.client.Triggers(c.namespace).Get(name, apis_v1.GetOptions{})
|
trigger, err := c.client.Triggers(c.namespace).Get(context.TODO(), name, apis_v1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, kn_errors.GetError(err)
|
return nil, kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -100,7 +101,7 @@ func (c *knEventingClient) GetTrigger(name string) (*v1beta1.Trigger, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *knEventingClient) ListTriggers() (*v1beta1.TriggerList, error) {
|
func (c *knEventingClient) ListTriggers() (*v1beta1.TriggerList, error) {
|
||||||
triggerList, err := c.client.Triggers(c.namespace).List(apis_v1.ListOptions{})
|
triggerList, err := c.client.Triggers(c.namespace).List(context.TODO(), apis_v1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, kn_errors.GetError(err)
|
return nil, kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -124,7 +125,7 @@ func (c *knEventingClient) ListTriggers() (*v1beta1.TriggerList, error) {
|
||||||
|
|
||||||
//CreateTrigger is used to create an instance of trigger
|
//CreateTrigger is used to create an instance of trigger
|
||||||
func (c *knEventingClient) UpdateTrigger(trigger *v1beta1.Trigger) error {
|
func (c *knEventingClient) UpdateTrigger(trigger *v1beta1.Trigger) error {
|
||||||
_, err := c.client.Triggers(c.namespace).Update(trigger)
|
_, err := c.client.Triggers(c.namespace).Update(context.TODO(), trigger, meta_v1.UpdateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return kn_errors.GetError(err)
|
return kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -215,7 +216,7 @@ func (b *TriggerBuilder) Build() *v1beta1.Trigger {
|
||||||
|
|
||||||
// CreateBroker is used to create an instance of broker
|
// CreateBroker is used to create an instance of broker
|
||||||
func (c *knEventingClient) CreateBroker(broker *v1beta1.Broker) error {
|
func (c *knEventingClient) CreateBroker(broker *v1beta1.Broker) error {
|
||||||
_, err := c.client.Brokers(c.namespace).Create(broker)
|
_, err := c.client.Brokers(c.namespace).Create(context.TODO(), broker, meta_v1.CreateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return kn_errors.GetError(err)
|
return kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -224,7 +225,7 @@ func (c *knEventingClient) CreateBroker(broker *v1beta1.Broker) error {
|
||||||
|
|
||||||
// GetBroker is used to get an instance of broker
|
// GetBroker is used to get an instance of broker
|
||||||
func (c *knEventingClient) GetBroker(name string) (*v1beta1.Broker, error) {
|
func (c *knEventingClient) GetBroker(name string) (*v1beta1.Broker, error) {
|
||||||
trigger, err := c.client.Brokers(c.namespace).Get(name, apis_v1.GetOptions{})
|
trigger, err := c.client.Brokers(c.namespace).Get(context.TODO(), name, apis_v1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, kn_errors.GetError(err)
|
return nil, kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -258,7 +259,7 @@ func (c *knEventingClient) DeleteBroker(name string, timeout time.Duration) erro
|
||||||
|
|
||||||
// deleteBroker is used to delete an instance of broker
|
// deleteBroker is used to delete an instance of broker
|
||||||
func (c *knEventingClient) deleteBroker(name string, propagationPolicy apis_v1.DeletionPropagation) error {
|
func (c *knEventingClient) deleteBroker(name string, propagationPolicy apis_v1.DeletionPropagation) error {
|
||||||
err := c.client.Brokers(c.namespace).Delete(name, &apis_v1.DeleteOptions{PropagationPolicy: &propagationPolicy})
|
err := c.client.Brokers(c.namespace).Delete(context.TODO(), name, apis_v1.DeleteOptions{PropagationPolicy: &propagationPolicy})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return kn_errors.GetError(err)
|
return kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -267,7 +268,7 @@ func (c *knEventingClient) deleteBroker(name string, propagationPolicy apis_v1.D
|
||||||
|
|
||||||
// ListBrokers is used to retrieve the list of broker instances
|
// ListBrokers is used to retrieve the list of broker instances
|
||||||
func (c *knEventingClient) ListBrokers() (*v1beta1.BrokerList, error) {
|
func (c *knEventingClient) ListBrokers() (*v1beta1.BrokerList, error) {
|
||||||
brokerList, err := c.client.Brokers(c.namespace).List(apis_v1.ListOptions{})
|
brokerList, err := c.client.Brokers(c.namespace).List(context.TODO(), apis_v1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, kn_errors.GetError(err)
|
return nil, kn_errors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
package flags
|
package flags
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
|
@ -93,7 +94,7 @@ func (i *SinkFlags) ResolveSink(knclient clientdynamic.KnDynamicClient, namespac
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("unsupported sink prefix: '%s'", prefix)
|
return nil, fmt.Errorf("unsupported sink prefix: '%s'", prefix)
|
||||||
}
|
}
|
||||||
obj, err := client.Resource(typ).Namespace(namespace).Get(name, metav1.GetOptions{})
|
obj, err := client.Resource(typ).Namespace(namespace).Get(context.TODO(), name, metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ import (
|
||||||
knflags "knative.dev/client/pkg/kn/flags"
|
knflags "knative.dev/client/pkg/kn/flags"
|
||||||
servinglib "knative.dev/client/pkg/serving"
|
servinglib "knative.dev/client/pkg/serving"
|
||||||
"knative.dev/client/pkg/util"
|
"knative.dev/client/pkg/util"
|
||||||
|
network "knative.dev/networking/pkg"
|
||||||
"knative.dev/serving/pkg/apis/autoscaling"
|
"knative.dev/serving/pkg/apis/autoscaling"
|
||||||
"knative.dev/serving/pkg/apis/serving"
|
"knative.dev/serving/pkg/apis/serving"
|
||||||
servingv1 "knative.dev/serving/pkg/apis/serving/v1"
|
servingv1 "knative.dev/serving/pkg/apis/serving/v1"
|
||||||
|
|
@ -380,10 +381,10 @@ func (p *ConfigurationEditFlags) Apply(
|
||||||
|
|
||||||
if cmd.Flags().Changed("cluster-local") || cmd.Flags().Changed("no-cluster-local") {
|
if cmd.Flags().Changed("cluster-local") || cmd.Flags().Changed("no-cluster-local") {
|
||||||
if p.ClusterLocal {
|
if p.ClusterLocal {
|
||||||
labels := servinglib.UpdateLabels(service.ObjectMeta.Labels, map[string]string{serving.VisibilityLabelKey: serving.VisibilityClusterLocal}, []string{})
|
labels := servinglib.UpdateLabels(service.ObjectMeta.Labels, map[string]string{network.VisibilityLabelKey: serving.VisibilityClusterLocal}, []string{})
|
||||||
service.ObjectMeta.Labels = labels // In case service.ObjectMeta.Labels was nil
|
service.ObjectMeta.Labels = labels // In case service.ObjectMeta.Labels was nil
|
||||||
} else {
|
} else {
|
||||||
labels := servinglib.UpdateLabels(service.ObjectMeta.Labels, map[string]string{}, []string{serving.VisibilityLabelKey})
|
labels := servinglib.UpdateLabels(service.ObjectMeta.Labels, map[string]string{}, []string{network.VisibilityLabelKey})
|
||||||
service.ObjectMeta.Labels = labels // In case service.ObjectMeta.Labels was nil
|
service.ObjectMeta.Labels = labels // In case service.ObjectMeta.Labels was nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import (
|
||||||
servinglib "knative.dev/client/pkg/serving"
|
servinglib "knative.dev/client/pkg/serving"
|
||||||
"knative.dev/client/pkg/util"
|
"knative.dev/client/pkg/util"
|
||||||
"knative.dev/client/pkg/wait"
|
"knative.dev/client/pkg/wait"
|
||||||
|
network "knative.dev/networking/pkg"
|
||||||
|
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
"k8s.io/apimachinery/pkg/api/resource"
|
"k8s.io/apimachinery/pkg/api/resource"
|
||||||
|
|
@ -773,7 +774,7 @@ func TestServiceCreateWithClusterLocal(t *testing.T) {
|
||||||
|
|
||||||
labels := created.ObjectMeta.Labels
|
labels := created.ObjectMeta.Labels
|
||||||
|
|
||||||
labelValue, present := labels[serving.VisibilityLabelKey]
|
labelValue, present := labels[network.VisibilityLabelKey]
|
||||||
assert.Assert(t, present)
|
assert.Assert(t, present)
|
||||||
|
|
||||||
if labelValue != serving.VisibilityClusterLocal {
|
if labelValue != serving.VisibilityClusterLocal {
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ import (
|
||||||
servinglib "knative.dev/client/pkg/serving"
|
servinglib "knative.dev/client/pkg/serving"
|
||||||
"knative.dev/client/pkg/util"
|
"knative.dev/client/pkg/util"
|
||||||
"knative.dev/client/pkg/wait"
|
"knative.dev/client/pkg/wait"
|
||||||
|
network "knative.dev/networking/pkg"
|
||||||
|
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
"k8s.io/apimachinery/pkg/api/resource"
|
"k8s.io/apimachinery/pkg/api/resource"
|
||||||
|
|
@ -753,9 +754,9 @@ func TestServiceUpdateLabelExisting(t *testing.T) {
|
||||||
|
|
||||||
func TestServiceUpdateNoClusterLocal(t *testing.T) {
|
func TestServiceUpdateNoClusterLocal(t *testing.T) {
|
||||||
original := newEmptyService()
|
original := newEmptyService()
|
||||||
original.ObjectMeta.Labels = map[string]string{serving.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
original.ObjectMeta.Labels = map[string]string{network.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
||||||
originalTemplate := &original.Spec.Template
|
originalTemplate := &original.Spec.Template
|
||||||
originalTemplate.ObjectMeta.Labels = map[string]string{serving.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
originalTemplate.ObjectMeta.Labels = map[string]string{network.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
||||||
|
|
||||||
action, updated, _, err := fakeServiceUpdate(original, []string{
|
action, updated, _, err := fakeServiceUpdate(original, []string{
|
||||||
"service", "update", "foo", "--no-cluster-local", "--no-wait"})
|
"service", "update", "foo", "--no-cluster-local", "--no-wait"})
|
||||||
|
|
@ -793,9 +794,9 @@ func TestServiceUpdateNoClusterLocalOnPublicService(t *testing.T) {
|
||||||
//TODO: add check for template name not changing when issue #646 solution is merged
|
//TODO: add check for template name not changing when issue #646 solution is merged
|
||||||
func TestServiceUpdateNoClusterLocalOnPrivateService(t *testing.T) {
|
func TestServiceUpdateNoClusterLocalOnPrivateService(t *testing.T) {
|
||||||
original := newEmptyService()
|
original := newEmptyService()
|
||||||
original.ObjectMeta.Labels = map[string]string{serving.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
original.ObjectMeta.Labels = map[string]string{network.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
||||||
originalTemplate := &original.Spec.Template
|
originalTemplate := &original.Spec.Template
|
||||||
originalTemplate.ObjectMeta.Labels = map[string]string{serving.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
originalTemplate.ObjectMeta.Labels = map[string]string{network.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
||||||
|
|
||||||
action, updated, _, err := fakeServiceUpdate(original, []string{
|
action, updated, _, err := fakeServiceUpdate(original, []string{
|
||||||
"service", "update", "foo", "--cluster-local", "--no-wait"})
|
"service", "update", "foo", "--cluster-local", "--no-wait"})
|
||||||
|
|
@ -806,7 +807,7 @@ func TestServiceUpdateNoClusterLocalOnPrivateService(t *testing.T) {
|
||||||
t.Fatalf("Bad action %v", action)
|
t.Fatalf("Bad action %v", action)
|
||||||
}
|
}
|
||||||
|
|
||||||
expected := map[string]string{serving.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
expected := map[string]string{network.VisibilityLabelKey: serving.VisibilityClusterLocal}
|
||||||
actual := updated.ObjectMeta.Labels
|
actual := updated.ObjectMeta.Labels
|
||||||
assert.DeepEqual(t, expected, actual)
|
assert.DeepEqual(t, expected, actual)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
"knative.dev/eventing/pkg/apis/messaging/v1beta1"
|
"knative.dev/eventing/pkg/apis/messaging/v1beta1"
|
||||||
|
|
@ -63,7 +65,7 @@ func (c *channelsClient) Namespace() string {
|
||||||
|
|
||||||
// GetChannel gets Channel by its name
|
// GetChannel gets Channel by its name
|
||||||
func (c *channelsClient) GetChannel(name string) (*v1beta1.Channel, error) {
|
func (c *channelsClient) GetChannel(name string) (*v1beta1.Channel, error) {
|
||||||
channel, err := c.client.Get(name, metav1.GetOptions{})
|
channel, err := c.client.Get(context.TODO(), name, metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, knerrors.GetError(err)
|
return nil, knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -76,18 +78,18 @@ func (c *channelsClient) GetChannel(name string) (*v1beta1.Channel, error) {
|
||||||
|
|
||||||
// CreateChannel creates Channel with given spec
|
// CreateChannel creates Channel with given spec
|
||||||
func (c *channelsClient) CreateChannel(channel *v1beta1.Channel) error {
|
func (c *channelsClient) CreateChannel(channel *v1beta1.Channel) error {
|
||||||
_, err := c.client.Create(channel)
|
_, err := c.client.Create(context.TODO(), channel, metav1.CreateOptions{})
|
||||||
return knerrors.GetError(err)
|
return knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteChannel deletes Channel by its name
|
// DeleteChannel deletes Channel by its name
|
||||||
func (c *channelsClient) DeleteChannel(name string) error {
|
func (c *channelsClient) DeleteChannel(name string) error {
|
||||||
return knerrors.GetError(c.client.Delete(name, &metav1.DeleteOptions{}))
|
return knerrors.GetError(c.client.Delete(context.TODO(), name, metav1.DeleteOptions{}))
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListChannel lists channels in configured namespace
|
// ListChannel lists channels in configured namespace
|
||||||
func (c *channelsClient) ListChannel() (*v1beta1.ChannelList, error) {
|
func (c *channelsClient) ListChannel() (*v1beta1.ChannelList, error) {
|
||||||
channelList, err := c.client.List(metav1.ListOptions{})
|
channelList, err := c.client.List(context.TODO(), metav1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, knerrors.GetError(err)
|
return nil, knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
@ -160,7 +161,7 @@ func (cl *knServingClient) Namespace() string {
|
||||||
|
|
||||||
// Get a service by its unique name
|
// Get a service by its unique name
|
||||||
func (cl *knServingClient) GetService(name string) (*servingv1.Service, error) {
|
func (cl *knServingClient) GetService(name string) (*servingv1.Service, error) {
|
||||||
service, err := cl.client.Services(cl.namespace).Get(name, v1.GetOptions{})
|
service, err := cl.client.Services(cl.namespace).Get(context.TODO(), name, v1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, clienterrors.GetError(err)
|
return nil, clienterrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -183,7 +184,7 @@ func (cl *knServingClient) WatchRevision(name string, timeout time.Duration) (wa
|
||||||
|
|
||||||
// List services
|
// List services
|
||||||
func (cl *knServingClient) ListServices(config ...ListConfig) (*servingv1.ServiceList, error) {
|
func (cl *knServingClient) ListServices(config ...ListConfig) (*servingv1.ServiceList, error) {
|
||||||
serviceList, err := cl.client.Services(cl.namespace).List(ListConfigs(config).toListOptions())
|
serviceList, err := cl.client.Services(cl.namespace).List(context.TODO(), ListConfigs(config).toListOptions())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, clienterrors.GetError(err)
|
return nil, clienterrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -207,7 +208,7 @@ func (cl *knServingClient) ListServices(config ...ListConfig) (*servingv1.Servic
|
||||||
|
|
||||||
// Create a new service
|
// Create a new service
|
||||||
func (cl *knServingClient) CreateService(service *servingv1.Service) error {
|
func (cl *knServingClient) CreateService(service *servingv1.Service) error {
|
||||||
_, err := cl.client.Services(cl.namespace).Create(service)
|
_, err := cl.client.Services(cl.namespace).Create(context.TODO(), service, v1.CreateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return clienterrors.GetError(err)
|
return clienterrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -216,7 +217,7 @@ func (cl *knServingClient) CreateService(service *servingv1.Service) error {
|
||||||
|
|
||||||
// Update the given service
|
// Update the given service
|
||||||
func (cl *knServingClient) UpdateService(service *servingv1.Service) error {
|
func (cl *knServingClient) UpdateService(service *servingv1.Service) error {
|
||||||
_, err := cl.client.Services(cl.namespace).Update(service)
|
_, err := cl.client.Services(cl.namespace).Update(context.TODO(), service, v1.UpdateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
@ -281,8 +282,9 @@ func (cl *knServingClient) DeleteService(serviceName string, timeout time.Durati
|
||||||
|
|
||||||
func (cl *knServingClient) deleteService(serviceName string, propagationPolicy v1.DeletionPropagation) error {
|
func (cl *knServingClient) deleteService(serviceName string, propagationPolicy v1.DeletionPropagation) error {
|
||||||
err := cl.client.Services(cl.namespace).Delete(
|
err := cl.client.Services(cl.namespace).Delete(
|
||||||
|
context.TODO(),
|
||||||
serviceName,
|
serviceName,
|
||||||
&v1.DeleteOptions{PropagationPolicy: &propagationPolicy},
|
v1.DeleteOptions{PropagationPolicy: &propagationPolicy},
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return clienterrors.GetError(err)
|
return clienterrors.GetError(err)
|
||||||
|
|
@ -299,7 +301,7 @@ func (cl *knServingClient) WaitForService(name string, timeout time.Duration, ms
|
||||||
|
|
||||||
// Get the configuration for a service
|
// Get the configuration for a service
|
||||||
func (cl *knServingClient) GetConfiguration(name string) (*servingv1.Configuration, error) {
|
func (cl *knServingClient) GetConfiguration(name string) (*servingv1.Configuration, error) {
|
||||||
configuration, err := cl.client.Configurations(cl.namespace).Get(name, v1.GetOptions{})
|
configuration, err := cl.client.Configurations(cl.namespace).Get(context.TODO(), name, v1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
@ -312,7 +314,7 @@ func (cl *knServingClient) GetConfiguration(name string) (*servingv1.Configurati
|
||||||
|
|
||||||
// Get a revision by name
|
// Get a revision by name
|
||||||
func (cl *knServingClient) GetRevision(name string) (*servingv1.Revision, error) {
|
func (cl *knServingClient) GetRevision(name string) (*servingv1.Revision, error) {
|
||||||
revision, err := cl.client.Revisions(cl.namespace).Get(name, v1.GetOptions{})
|
revision, err := cl.client.Revisions(cl.namespace).Get(context.TODO(), name, v1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, clienterrors.GetError(err)
|
return nil, clienterrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -378,7 +380,7 @@ func getBaseRevision(cl KnServingClient, service *servingv1.Service) (*servingv1
|
||||||
|
|
||||||
// Delete a revision by name
|
// Delete a revision by name
|
||||||
func (cl *knServingClient) DeleteRevision(name string, timeout time.Duration) error {
|
func (cl *knServingClient) DeleteRevision(name string, timeout time.Duration) error {
|
||||||
revision, err := cl.client.Revisions(cl.namespace).Get(name, v1.GetOptions{})
|
revision, err := cl.client.Revisions(cl.namespace).Get(context.TODO(), name, v1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return clienterrors.GetError(err)
|
return clienterrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -403,7 +405,7 @@ func (cl *knServingClient) DeleteRevision(name string, timeout time.Duration) er
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cl *knServingClient) deleteRevision(name string) error {
|
func (cl *knServingClient) deleteRevision(name string) error {
|
||||||
err := cl.client.Revisions(cl.namespace).Delete(name, &v1.DeleteOptions{})
|
err := cl.client.Revisions(cl.namespace).Delete(context.TODO(), name, v1.DeleteOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return clienterrors.GetError(err)
|
return clienterrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -413,7 +415,7 @@ func (cl *knServingClient) deleteRevision(name string) error {
|
||||||
|
|
||||||
// List revisions
|
// List revisions
|
||||||
func (cl *knServingClient) ListRevisions(config ...ListConfig) (*servingv1.RevisionList, error) {
|
func (cl *knServingClient) ListRevisions(config ...ListConfig) (*servingv1.RevisionList, error) {
|
||||||
revisionList, err := cl.client.Revisions(cl.namespace).List(ListConfigs(config).toListOptions())
|
revisionList, err := cl.client.Revisions(cl.namespace).List(context.TODO(), ListConfigs(config).toListOptions())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, clienterrors.GetError(err)
|
return nil, clienterrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -422,7 +424,7 @@ func (cl *knServingClient) ListRevisions(config ...ListConfig) (*servingv1.Revis
|
||||||
|
|
||||||
// Get a route by its unique name
|
// Get a route by its unique name
|
||||||
func (cl *knServingClient) GetRoute(name string) (*servingv1.Route, error) {
|
func (cl *knServingClient) GetRoute(name string) (*servingv1.Route, error) {
|
||||||
route, err := cl.client.Routes(cl.namespace).Get(name, v1.GetOptions{})
|
route, err := cl.client.Routes(cl.namespace).Get(context.TODO(), name, v1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
@ -435,7 +437,7 @@ func (cl *knServingClient) GetRoute(name string) (*servingv1.Route, error) {
|
||||||
|
|
||||||
// List routes
|
// List routes
|
||||||
func (cl *knServingClient) ListRoutes(config ...ListConfig) (*servingv1.RouteList, error) {
|
func (cl *knServingClient) ListRoutes(config ...ListConfig) (*servingv1.RouteList, error) {
|
||||||
routeList, err := cl.client.Routes(cl.namespace).List(ListConfigs(config).toListOptions())
|
routeList, err := cl.client.Routes(cl.namespace).List(context.TODO(), ListConfigs(config).toListOptions())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@
|
||||||
package v1alpha2
|
package v1alpha2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
v1alpha2 "knative.dev/eventing/pkg/apis/sources/v1alpha2"
|
v1alpha2 "knative.dev/eventing/pkg/apis/sources/v1alpha2"
|
||||||
|
|
@ -68,7 +70,7 @@ func newKnAPIServerSourcesClient(client clientv1alpha2.ApiServerSourceInterface,
|
||||||
|
|
||||||
//GetAPIServerSource returns apiSource object if present
|
//GetAPIServerSource returns apiSource object if present
|
||||||
func (c *apiServerSourcesClient) GetAPIServerSource(name string) (*v1alpha2.ApiServerSource, error) {
|
func (c *apiServerSourcesClient) GetAPIServerSource(name string) (*v1alpha2.ApiServerSource, error) {
|
||||||
apiSource, err := c.client.Get(name, metav1.GetOptions{})
|
apiSource, err := c.client.Get(context.TODO(), name, metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, knerrors.GetError(err)
|
return nil, knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -78,7 +80,7 @@ func (c *apiServerSourcesClient) GetAPIServerSource(name string) (*v1alpha2.ApiS
|
||||||
|
|
||||||
//CreateAPIServerSource is used to create an instance of ApiServerSource
|
//CreateAPIServerSource is used to create an instance of ApiServerSource
|
||||||
func (c *apiServerSourcesClient) CreateAPIServerSource(apiSource *v1alpha2.ApiServerSource) error {
|
func (c *apiServerSourcesClient) CreateAPIServerSource(apiSource *v1alpha2.ApiServerSource) error {
|
||||||
_, err := c.client.Create(apiSource)
|
_, err := c.client.Create(context.TODO(), apiSource, metav1.CreateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return knerrors.GetError(err)
|
return knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -88,7 +90,7 @@ func (c *apiServerSourcesClient) CreateAPIServerSource(apiSource *v1alpha2.ApiSe
|
||||||
|
|
||||||
//UpdateAPIServerSource is used to update an instance of ApiServerSource
|
//UpdateAPIServerSource is used to update an instance of ApiServerSource
|
||||||
func (c *apiServerSourcesClient) UpdateAPIServerSource(apiSource *v1alpha2.ApiServerSource) error {
|
func (c *apiServerSourcesClient) UpdateAPIServerSource(apiSource *v1alpha2.ApiServerSource) error {
|
||||||
_, err := c.client.Update(apiSource)
|
_, err := c.client.Update(context.TODO(), apiSource, metav1.UpdateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return knerrors.GetError(err)
|
return knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -98,7 +100,7 @@ func (c *apiServerSourcesClient) UpdateAPIServerSource(apiSource *v1alpha2.ApiSe
|
||||||
|
|
||||||
//DeleteAPIServerSource is used to create an instance of ApiServerSource
|
//DeleteAPIServerSource is used to create an instance of ApiServerSource
|
||||||
func (c *apiServerSourcesClient) DeleteAPIServerSource(name string) error {
|
func (c *apiServerSourcesClient) DeleteAPIServerSource(name string) error {
|
||||||
err := c.client.Delete(name, &metav1.DeleteOptions{})
|
err := c.client.Delete(context.TODO(), name, metav1.DeleteOptions{})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -109,7 +111,7 @@ func (c *apiServerSourcesClient) Namespace() string {
|
||||||
|
|
||||||
// ListAPIServerSource returns the available ApiServer type sources
|
// ListAPIServerSource returns the available ApiServer type sources
|
||||||
func (c *apiServerSourcesClient) ListAPIServerSource() (*v1alpha2.ApiServerSourceList, error) {
|
func (c *apiServerSourcesClient) ListAPIServerSource() (*v1alpha2.ApiServerSourceList, error) {
|
||||||
sourceList, err := c.client.List(metav1.ListOptions{})
|
sourceList, err := c.client.List(context.TODO(), metav1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, knerrors.GetError(err)
|
return nil, knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
package v1alpha2
|
package v1alpha2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
apisv1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apisv1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
@ -66,7 +67,7 @@ func newKnSinkBindingClient(client clientv1alpha2.SinkBindingInterface, namespac
|
||||||
|
|
||||||
//CreateSinkBinding is used to create an instance of binding
|
//CreateSinkBinding is used to create an instance of binding
|
||||||
func (c *knBindingClient) CreateSinkBinding(binding *v1alpha2.SinkBinding) error {
|
func (c *knBindingClient) CreateSinkBinding(binding *v1alpha2.SinkBinding) error {
|
||||||
_, err := c.client.Create(binding)
|
_, err := c.client.Create(context.TODO(), binding, metav1.CreateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return knerrors.GetError(err)
|
return knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -75,7 +76,7 @@ func (c *knBindingClient) CreateSinkBinding(binding *v1alpha2.SinkBinding) error
|
||||||
|
|
||||||
//DeleteSinkBinding is used to delete an instance of binding
|
//DeleteSinkBinding is used to delete an instance of binding
|
||||||
func (c *knBindingClient) DeleteSinkBinding(name string) error {
|
func (c *knBindingClient) DeleteSinkBinding(name string) error {
|
||||||
err := c.client.Delete(name, &apisv1.DeleteOptions{})
|
err := c.client.Delete(context.TODO(), name, apisv1.DeleteOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return knerrors.GetError(err)
|
return knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -84,7 +85,7 @@ func (c *knBindingClient) DeleteSinkBinding(name string) error {
|
||||||
|
|
||||||
//GetSinkBinding is used to get an instance of binding
|
//GetSinkBinding is used to get an instance of binding
|
||||||
func (c *knBindingClient) GetSinkBinding(name string) (*v1alpha2.SinkBinding, error) {
|
func (c *knBindingClient) GetSinkBinding(name string) (*v1alpha2.SinkBinding, error) {
|
||||||
binding, err := c.client.Get(name, apisv1.GetOptions{})
|
binding, err := c.client.Get(context.TODO(), name, apisv1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, knerrors.GetError(err)
|
return nil, knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -92,7 +93,7 @@ func (c *knBindingClient) GetSinkBinding(name string) (*v1alpha2.SinkBinding, er
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *knBindingClient) ListSinkBindings() (*v1alpha2.SinkBindingList, error) {
|
func (c *knBindingClient) ListSinkBindings() (*v1alpha2.SinkBindingList, error) {
|
||||||
bindingList, err := c.client.List(apisv1.ListOptions{})
|
bindingList, err := c.client.List(context.TODO(), apisv1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, knerrors.GetError(err)
|
return nil, knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
@ -116,7 +117,7 @@ func (c *knBindingClient) ListSinkBindings() (*v1alpha2.SinkBindingList, error)
|
||||||
|
|
||||||
//CreateSinkBinding is used to create an instance of binding
|
//CreateSinkBinding is used to create an instance of binding
|
||||||
func (c *knBindingClient) UpdateSinkBinding(binding *v1alpha2.SinkBinding) error {
|
func (c *knBindingClient) UpdateSinkBinding(binding *v1alpha2.SinkBinding) error {
|
||||||
_, err := c.client.Update(binding)
|
_, err := c.client.Update(context.TODO(), binding, metav1.UpdateOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return knerrors.GetError(err)
|
return knerrors.GetError(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
package v1alpha2
|
package v1alpha2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
|
@ -72,26 +73,26 @@ func (c *pingSourcesClient) CreatePingSource(pingsource *v1alpha2.PingSource) er
|
||||||
if pingsource.Spec.Sink.Ref == nil && pingsource.Spec.Sink.URI == nil {
|
if pingsource.Spec.Sink.Ref == nil && pingsource.Spec.Sink.URI == nil {
|
||||||
return fmt.Errorf("a sink is required for creating a source")
|
return fmt.Errorf("a sink is required for creating a source")
|
||||||
}
|
}
|
||||||
_, err := c.client.Create(pingsource)
|
_, err := c.client.Create(context.TODO(), pingsource, metav1.CreateOptions{})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *pingSourcesClient) UpdatePingSource(pingSource *v1alpha2.PingSource) error {
|
func (c *pingSourcesClient) UpdatePingSource(pingSource *v1alpha2.PingSource) error {
|
||||||
_, err := c.client.Update(pingSource)
|
_, err := c.client.Update(context.TODO(), pingSource, metav1.UpdateOptions{})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *pingSourcesClient) DeletePingSource(name string) error {
|
func (c *pingSourcesClient) DeletePingSource(name string) error {
|
||||||
return c.client.Delete(name, &metav1.DeleteOptions{})
|
return c.client.Delete(context.TODO(), name, metav1.DeleteOptions{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *pingSourcesClient) GetPingSource(name string) (*v1alpha2.PingSource, error) {
|
func (c *pingSourcesClient) GetPingSource(name string) (*v1alpha2.PingSource, error) {
|
||||||
return c.client.Get(name, metav1.GetOptions{})
|
return c.client.Get(context.TODO(), name, metav1.GetOptions{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListPingSource returns the available Ping sources
|
// ListPingSource returns the available Ping sources
|
||||||
func (c *pingSourcesClient) ListPingSource() (*v1alpha2.PingSourceList, error) {
|
func (c *pingSourcesClient) ListPingSource() (*v1alpha2.PingSourceList, error) {
|
||||||
sourceList, err := c.client.List(metav1.ListOptions{})
|
sourceList, err := c.client.List(context.TODO(), metav1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
package wait
|
package wait
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
@ -48,7 +49,7 @@ type pollingWatcher struct {
|
||||||
poll func() (runtime.Object, error)
|
poll func() (runtime.Object, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type watchF func(v1.ListOptions) (watch.Interface, error)
|
type watchF func(context.Context, v1.ListOptions) (watch.Interface, error)
|
||||||
|
|
||||||
type tickerPollInterval struct {
|
type tickerPollInterval struct {
|
||||||
t *time.Ticker
|
t *time.Ticker
|
||||||
|
|
@ -168,12 +169,12 @@ func nativeWatch(watchFunc watchF, name string, timeout time.Duration) (watch.In
|
||||||
}
|
}
|
||||||
opts.Watch = true
|
opts.Watch = true
|
||||||
addWatchTimeout(&opts, timeout)
|
addWatchTimeout(&opts, timeout)
|
||||||
return watchFunc(opts)
|
return watchFunc(context.TODO(), opts)
|
||||||
}
|
}
|
||||||
|
|
||||||
func nativePoll(c rest.Interface, ns, resource, name string) func() (runtime.Object, error) {
|
func nativePoll(c rest.Interface, ns, resource, name string) func() (runtime.Object, error) {
|
||||||
return func() (runtime.Object, error) {
|
return func() (runtime.Object, error) {
|
||||||
return c.Get().Namespace(ns).Resource(resource).Name(name).Do().Get()
|
return c.Get().Namespace(ns).Resource(resource).Name(name).Do(context.TODO()).Get()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
afcd1747545fe346b7a564d77e9643ccc552a43c
|
37f1a12adbd3a54fa415fa1a9fc53e0e452f375e
|
||||||
|
|
|
||||||
|
|
@ -110,33 +110,17 @@ main "$@"
|
||||||
|
|
||||||
This is a helper script for Knative E2E test scripts. To use it:
|
This is a helper script for Knative E2E test scripts. To use it:
|
||||||
|
|
||||||
1. [optional] Customize the test cluster. Set the following environment
|
1. [optional] Customize the test cluster. Pass the flags as described
|
||||||
variables if the default values don't fit your needs:
|
[here](../kntest/pkg/kubetest2/gke/README.md) to the `initialize` function
|
||||||
|
call if the default values don't fit your needs.
|
||||||
- `E2E_CLUSTER_REGION`: Cluster region, defaults to `us-central1`.
|
|
||||||
- `E2E_CLUSTER_BACKUP_REGIONS`: Space-separated list of regions to retry test
|
|
||||||
cluster creation in case of stockout. Defaults to `us-west1 us-east1`.
|
|
||||||
- `E2E_CLUSTER_ZONE`: Cluster zone (e.g., `a`), defaults to none (i.e. use a
|
|
||||||
regional cluster).
|
|
||||||
- `E2E_CLUSTER_BACKUP_ZONES`: Space-separated list of zones to retry test
|
|
||||||
cluster creation in case of stockout. If defined,
|
|
||||||
`E2E_CLUSTER_BACKUP_REGIONS` will be ignored thus it defaults to none.
|
|
||||||
- `E2E_CLUSTER_MACHINE`: Cluster node machine type, defaults to
|
|
||||||
`e2-standard-4}`.
|
|
||||||
- `E2E_MIN_CLUSTER_NODES`: Minimum number of nodes in the cluster when
|
|
||||||
autoscaling, defaults to 1.
|
|
||||||
- `E2E_MAX_CLUSTER_NODES`: Maximum number of nodes in the cluster when
|
|
||||||
autoscaling, defaults to 3.
|
|
||||||
|
|
||||||
1. Source the script.
|
1. Source the script.
|
||||||
|
|
||||||
1. [optional] Write the `knative_setup()` function, which will set up your
|
1. [optional] Write the `knative_setup()` function, which will set up your
|
||||||
system under test (e.g., Knative Serving). This function won't be called if
|
system under test (e.g., Knative Serving).
|
||||||
you use the `--skip-knative-setup` flag.
|
|
||||||
|
|
||||||
1. [optional] Write the `knative_teardown()` function, which will tear down your
|
1. [optional] Write the `knative_teardown()` function, which will tear down your
|
||||||
system under test (e.g., Knative Serving). This function won't be called if
|
system under test (e.g., Knative Serving).
|
||||||
you use the `--skip-knative-setup` flag.
|
|
||||||
|
|
||||||
1. [optional] Write the `test_setup()` function, which will set up the test
|
1. [optional] Write the `test_setup()` function, which will set up the test
|
||||||
resources.
|
resources.
|
||||||
|
|
@ -160,7 +144,7 @@ This is a helper script for Knative E2E test scripts. To use it:
|
||||||
of items to skip in the command line if the flag was parsed successfully. For
|
of items to skip in the command line if the flag was parsed successfully. For
|
||||||
example, return 1 for a simple flag, and 2 for a flag with a parameter.
|
example, return 1 for a simple flag, and 2 for a flag with a parameter.
|
||||||
|
|
||||||
1. Call the `initialize()` function passing `$@` (without quotes).
|
1. Call the `initialize()` function passing `"$@"`.
|
||||||
|
|
||||||
1. Write logic for the end-to-end tests. Run all go tests using `go_test_e2e()`
|
1. Write logic for the end-to-end tests. Run all go tests using `go_test_e2e()`
|
||||||
(or `report_go_test()` if you need a more fine-grained control) and call
|
(or `report_go_test()` if you need a more fine-grained control) and call
|
||||||
|
|
@ -170,8 +154,8 @@ This is a helper script for Knative E2E test scripts. To use it:
|
||||||
|
|
||||||
**Notes:**
|
**Notes:**
|
||||||
|
|
||||||
1. Calling your script without arguments will create a new cluster in the GCP
|
1. Calling your script without arguments will create a new cluster in your
|
||||||
project `$PROJECT_ID` and run the tests against it.
|
current GCP project and run the tests against it.
|
||||||
|
|
||||||
1. Calling your script with `--run-tests` and the variable `KO_DOCKER_REPO` set
|
1. Calling your script with `--run-tests` and the variable `KO_DOCKER_REPO` set
|
||||||
will immediately start the tests against the cluster currently configured for
|
will immediately start the tests against the cluster currently configured for
|
||||||
|
|
@ -183,10 +167,6 @@ This is a helper script for Knative E2E test scripts. To use it:
|
||||||
1. By default Istio is installed on the cluster via Addon, use
|
1. By default Istio is installed on the cluster via Addon, use
|
||||||
`--skip-istio-addon` if you choose not to have it preinstalled.
|
`--skip-istio-addon` if you choose not to have it preinstalled.
|
||||||
|
|
||||||
1. You can force running the tests against a specific GKE cluster version by
|
|
||||||
using the `--cluster-version` flag and passing a full version as the flag
|
|
||||||
value.
|
|
||||||
|
|
||||||
### Sample end-to-end test script
|
### Sample end-to-end test script
|
||||||
|
|
||||||
This script will test that the latest Knative Serving nightly release works. It
|
This script will test that the latest Knative Serving nightly release works. It
|
||||||
|
|
@ -196,9 +176,6 @@ test cluster is created in a specific region, `us-west2`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
||||||
# This test requires a cluster in LA
|
|
||||||
E2E_CLUSTER_REGION=us-west2
|
|
||||||
|
|
||||||
source vendor/knative.dev/test-infra/scripts/e2e-tests.sh
|
source vendor/knative.dev/test-infra/scripts/e2e-tests.sh
|
||||||
|
|
||||||
function knative_setup() {
|
function knative_setup() {
|
||||||
|
|
@ -218,7 +195,8 @@ function parse_flags() {
|
||||||
|
|
||||||
WAIT_FOR_KNATIVE=1
|
WAIT_FOR_KNATIVE=1
|
||||||
|
|
||||||
initialize $@
|
# This test requires a cluster in LA
|
||||||
|
initialize $@ --region=us-west2
|
||||||
|
|
||||||
# TODO: use go_test_e2e to run the tests.
|
# TODO: use go_test_e2e to run the tests.
|
||||||
kubectl get pods || fail_test
|
kubectl get pods || fail_test
|
||||||
|
|
|
||||||
|
|
@ -17,50 +17,9 @@
|
||||||
# This is a helper script for Knative E2E test scripts.
|
# This is a helper script for Knative E2E test scripts.
|
||||||
# See README.md for instructions on how to use it.
|
# See README.md for instructions on how to use it.
|
||||||
|
|
||||||
source $(dirname "${BASH_SOURCE[0]}")/library.sh
|
source $(dirname "${BASH_SOURCE[0]}")/infra-library.sh
|
||||||
|
|
||||||
# Build a resource name based on $E2E_BASE_NAME, a suffix and $BUILD_NUMBER.
|
readonly TEST_RESULT_FILE=/tmp/${REPO_NAME}-e2e-result
|
||||||
# Restricts the name length to 40 chars (the limit for resource names in GCP).
|
|
||||||
# Name will have the form $E2E_BASE_NAME-<PREFIX>$BUILD_NUMBER.
|
|
||||||
# Parameters: $1 - name suffix
|
|
||||||
function build_resource_name() {
|
|
||||||
local prefix=${E2E_BASE_NAME}-$1
|
|
||||||
local suffix=${BUILD_NUMBER}
|
|
||||||
# Restrict suffix length to 20 chars
|
|
||||||
if [[ -n "${suffix}" ]]; then
|
|
||||||
suffix=${suffix:${#suffix}<20?0:-20}
|
|
||||||
fi
|
|
||||||
local name="${prefix:0:20}${suffix}"
|
|
||||||
# Ensure name doesn't end with "-"
|
|
||||||
echo "${name%-}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Test cluster parameters
|
|
||||||
|
|
||||||
# Configurable parameters
|
|
||||||
# export E2E_CLUSTER_REGION and E2E_CLUSTER_ZONE as they're used in the cluster setup subprocess
|
|
||||||
export E2E_CLUSTER_REGION=${E2E_CLUSTER_REGION:-us-central1}
|
|
||||||
# By default we use regional clusters.
|
|
||||||
export E2E_CLUSTER_ZONE=${E2E_CLUSTER_ZONE:-}
|
|
||||||
|
|
||||||
# Default backup regions in case of stockouts; by default we don't fall back to a different zone in the same region
|
|
||||||
readonly E2E_CLUSTER_BACKUP_REGIONS=${E2E_CLUSTER_BACKUP_REGIONS:-us-west1 us-east1}
|
|
||||||
readonly E2E_CLUSTER_BACKUP_ZONES=${E2E_CLUSTER_BACKUP_ZONES:-}
|
|
||||||
|
|
||||||
readonly E2E_GKE_ENVIRONMENT=${E2E_GKE_ENVIRONMENT:-prod}
|
|
||||||
readonly E2E_GKE_COMMAND_GROUP=${E2E_GKE_COMMAND_GROUP:-beta}
|
|
||||||
|
|
||||||
# Each knative repository may have a different cluster size requirement here,
|
|
||||||
# so we allow calling code to set these parameters. If they are not set we
|
|
||||||
# use some sane defaults.
|
|
||||||
readonly E2E_MIN_CLUSTER_NODES=${E2E_MIN_CLUSTER_NODES:-1}
|
|
||||||
readonly E2E_MAX_CLUSTER_NODES=${E2E_MAX_CLUSTER_NODES:-3}
|
|
||||||
readonly E2E_CLUSTER_MACHINE=${E2E_CLUSTER_MACHINE:-e2-standard-4}
|
|
||||||
|
|
||||||
readonly E2E_BASE_NAME="k${REPO_NAME}"
|
|
||||||
readonly E2E_CLUSTER_NAME=$(build_resource_name e2e-cls)
|
|
||||||
readonly E2E_NETWORK_NAME=$(build_resource_name e2e-net)
|
|
||||||
readonly TEST_RESULT_FILE=/tmp/${E2E_BASE_NAME}-e2e-result
|
|
||||||
|
|
||||||
# Flag whether test is using a boskos GCP project
|
# Flag whether test is using a boskos GCP project
|
||||||
IS_BOSKOS=0
|
IS_BOSKOS=0
|
||||||
|
|
@ -71,7 +30,7 @@ function teardown_test_resources() {
|
||||||
(( IS_BOSKOS )) && return
|
(( IS_BOSKOS )) && return
|
||||||
header "Tearing down test environment"
|
header "Tearing down test environment"
|
||||||
function_exists test_teardown && test_teardown
|
function_exists test_teardown && test_teardown
|
||||||
(( ! SKIP_KNATIVE_SETUP )) && function_exists knative_teardown && knative_teardown
|
function_exists knative_teardown && knative_teardown
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run the given E2E tests. Assume tests are tagged e2e, unless `-tags=XXX` is passed.
|
# Run the given E2E tests. Assume tests are tagged e2e, unless `-tags=XXX` is passed.
|
||||||
|
|
@ -86,239 +45,32 @@ function go_test_e2e() {
|
||||||
report_go_test -race -count=1 "${go_test_args[@]}"
|
report_go_test -race -count=1 "${go_test_args[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Dumps the k8s api server metrics. Spins up a proxy, waits a little bit and
|
|
||||||
# dumps the metrics to ${ARTIFACTS}/k8s.metrics.txt
|
|
||||||
function dump_metrics() {
|
|
||||||
header ">> Starting kube proxy"
|
|
||||||
kubectl proxy --port=8080 &
|
|
||||||
local proxy_pid=$!
|
|
||||||
sleep 5
|
|
||||||
header ">> Grabbing k8s metrics"
|
|
||||||
curl -s http://localhost:8080/metrics > "${ARTIFACTS}"/k8s.metrics.txt
|
|
||||||
# Clean up proxy so it doesn't interfere with job shutting down
|
|
||||||
kill $proxy_pid || true
|
|
||||||
}
|
|
||||||
|
|
||||||
# Dump info about the test cluster. If dump_extra_cluster_info() is defined, calls it too.
|
|
||||||
# This is intended to be called when a test fails to provide debugging information.
|
|
||||||
function dump_cluster_state() {
|
|
||||||
echo "***************************************"
|
|
||||||
echo "*** E2E TEST FAILED ***"
|
|
||||||
echo "*** Start of information dump ***"
|
|
||||||
echo "***************************************"
|
|
||||||
|
|
||||||
local output
|
|
||||||
output="${ARTIFACTS}/k8s.dump-$(basename "${E2E_SCRIPT}").txt"
|
|
||||||
echo ">>> The dump is located at ${output}"
|
|
||||||
|
|
||||||
for crd in $(kubectl api-resources --verbs=list -o name | sort); do
|
|
||||||
local count
|
|
||||||
count="$(kubectl get "$crd" --all-namespaces --no-headers 2>/dev/null | wc -l)"
|
|
||||||
echo ">>> ${crd} (${count} objects)"
|
|
||||||
if [[ "${count}" -gt "0" ]]; then
|
|
||||||
{
|
|
||||||
echo ">>> ${crd} (${count} objects)"
|
|
||||||
|
|
||||||
echo ">>> Listing"
|
|
||||||
kubectl get "${crd}" --all-namespaces
|
|
||||||
|
|
||||||
echo ">>> Details"
|
|
||||||
if [[ "${crd}" == "secrets" ]]; then
|
|
||||||
echo "Secrets are ignored for security reasons"
|
|
||||||
elif [[ "${crd}" == "events" ]]; then
|
|
||||||
echo "events are ignored as making a lot of noise"
|
|
||||||
else
|
|
||||||
kubectl get "${crd}" --all-namespaces -o yaml
|
|
||||||
fi
|
|
||||||
} >> "${output}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if function_exists dump_extra_cluster_state; then
|
|
||||||
echo ">>> Extra dump" >> "${output}"
|
|
||||||
dump_extra_cluster_state >> "${output}"
|
|
||||||
fi
|
|
||||||
echo "***************************************"
|
|
||||||
echo "*** E2E TEST FAILED ***"
|
|
||||||
echo "*** End of information dump ***"
|
|
||||||
echo "***************************************"
|
|
||||||
}
|
|
||||||
|
|
||||||
# On a Prow job, save some metadata about the test for Testgrid.
|
|
||||||
function save_metadata() {
|
|
||||||
(( ! IS_PROW )) && return
|
|
||||||
local geo_key="Region"
|
|
||||||
local geo_value="${E2E_CLUSTER_REGION}"
|
|
||||||
if [[ -n "${E2E_CLUSTER_ZONE}" ]]; then
|
|
||||||
geo_key="Zone"
|
|
||||||
geo_value="${E2E_CLUSTER_REGION}-${E2E_CLUSTER_ZONE}"
|
|
||||||
fi
|
|
||||||
local cluster_version
|
|
||||||
cluster_version="$(gcloud container clusters list --project="${E2E_PROJECT_ID}" --format='value(currentMasterVersion)')"
|
|
||||||
run_kntest metadata set --key="E2E:${geo_key}" --value="${geo_value}"
|
|
||||||
run_kntest metadata set --key="E2E:Machine" --value="${E2E_CLUSTER_MACHINE}"
|
|
||||||
run_kntest metadata set --key="E2E:Version" --value="${cluster_version}"
|
|
||||||
run_kntest metadata set --key="E2E:MinNodes" --value="${E2E_MIN_CLUSTER_NODES}"
|
|
||||||
run_kntest metadata set --key="E2E:MaxNodes" --value="${E2E_MAX_CLUSTER_NODES}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Create a test cluster with kubetest and call the current script again.
|
|
||||||
function create_test_cluster() {
|
|
||||||
# Fail fast during setup.
|
|
||||||
set -o errexit
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
if function_exists cluster_setup; then
|
|
||||||
cluster_setup || fail_test "cluster setup failed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Cluster will have a minimum of ${E2E_MIN_CLUSTER_NODES} and a maximum of ${E2E_MAX_CLUSTER_NODES} nodes."
|
|
||||||
local CLUSTER_CREATION_ARGS=(
|
|
||||||
"gke"
|
|
||||||
"--create-command=${E2E_GKE_COMMAND_GROUP} container clusters create --quiet --enable-autoscaling
|
|
||||||
--min-nodes=${E2E_MIN_CLUSTER_NODES} --max-nodes=${E2E_MAX_CLUSTER_NODES}
|
|
||||||
--cluster-version=${E2E_CLUSTER_VERSION}
|
|
||||||
--scopes=cloud-platform --enable-basic-auth --no-issue-client-certificate
|
|
||||||
--no-enable-ip-alias --no-enable-autoupgrade
|
|
||||||
${GKE_ADDONS} ${EXTRA_CLUSTER_CREATION_FLAGS[@]}"
|
|
||||||
"--environment=${E2E_GKE_ENVIRONMENT}"
|
|
||||||
"--cluster-name=${E2E_CLUSTER_NAME}"
|
|
||||||
"--num-nodes=${E2E_MIN_CLUSTER_NODES}"
|
|
||||||
"--machine-type=${E2E_CLUSTER_MACHINE}"
|
|
||||||
"--network=${E2E_NETWORK_NAME}"
|
|
||||||
--up
|
|
||||||
)
|
|
||||||
if (( ! IS_BOSKOS )); then
|
|
||||||
CLUSTER_CREATION_ARGS+=("--gcp-project=${GCP_PROJECT}")
|
|
||||||
fi
|
|
||||||
# SSH keys are not used, but kubetest checks for their existence.
|
|
||||||
# Touch them so if they don't exist, empty files are create to satisfy the check.
|
|
||||||
mkdir -p "$HOME"/.ssh
|
|
||||||
touch "$HOME"/.ssh/google_compute_engine.pub
|
|
||||||
touch "$HOME"/.ssh/google_compute_engine
|
|
||||||
|
|
||||||
local gcloud_project="${GCP_PROJECT}"
|
|
||||||
[[ -z "${gcloud_project}" ]] && gcloud_project="$(gcloud config get-value project)"
|
|
||||||
echo "gcloud project is ${gcloud_project}"
|
|
||||||
echo "gcloud user is $(gcloud config get-value core/account)"
|
|
||||||
(( IS_BOSKOS )) && echo "Using boskos for the test cluster"
|
|
||||||
[[ -n "${GCP_PROJECT}" ]] && echo "GCP project for test cluster is ${GCP_PROJECT}"
|
|
||||||
echo "Test script is ${E2E_SCRIPT}"
|
|
||||||
# Set arguments for this script again
|
|
||||||
local test_cmd_args="--run-tests"
|
|
||||||
(( SKIP_KNATIVE_SETUP )) && test_cmd_args+=" --skip-knative-setup"
|
|
||||||
[[ -n "${GCP_PROJECT}" ]] && test_cmd_args+=" --project ${GCP_PROJECT}"
|
|
||||||
[[ -n "${E2E_SCRIPT_CUSTOM_FLAGS[*]}" ]] && test_cmd_args+=" ${E2E_SCRIPT_CUSTOM_FLAGS[*]}"
|
|
||||||
local extra_flags=()
|
|
||||||
if (( IS_BOSKOS )); then
|
|
||||||
# Add arbitrary duration, wait for Boskos projects acquisition before error out
|
|
||||||
extra_flags+=("--boskos-acquire-timeout-seconds=1200")
|
|
||||||
elif (( ! SKIP_TEARDOWNS )); then
|
|
||||||
# Only let kubetest2 tear down the cluster if not using Boskos and teardowns are not expected to be skipped,
|
|
||||||
# it's done by Janitor if using Boskos
|
|
||||||
extra_flags+=("--down")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create cluster and run the tests
|
|
||||||
create_test_cluster_with_retries "${E2E_SCRIPT} ${test_cmd_args}" \
|
|
||||||
"${CLUSTER_CREATION_ARGS[@]}" "${extra_flags[@]}"
|
|
||||||
local result="$?"
|
|
||||||
# Ignore any errors below, this is a best-effort cleanup and shouldn't affect the test result.
|
|
||||||
set +o errexit
|
|
||||||
function_exists cluster_teardown && cluster_teardown
|
|
||||||
echo "Artifacts were written to ${ARTIFACTS}"
|
|
||||||
echo "Test result code is ${result}"
|
|
||||||
exit "${result}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Retry backup regions/zones if cluster creations failed due to stockout.
|
|
||||||
# Parameters: $1 - test command to run by the kubetest2 tester
|
|
||||||
# $2..$n - any other kubetest2 flags other than geo and cluster version flag.
|
|
||||||
function create_test_cluster_with_retries() {
|
|
||||||
local tester_command
|
|
||||||
IFS=' ' read -r -a tester_command <<< "$1"
|
|
||||||
local kubetest2_flags=( "${@:2}" )
|
|
||||||
local cluster_creation_log=/tmp/${E2E_BASE_NAME}-cluster_creation-log
|
|
||||||
# zone_not_provided is a placeholder for e2e_cluster_zone to make for loop below work
|
|
||||||
local zone_not_provided="zone_not_provided"
|
|
||||||
|
|
||||||
local e2e_cluster_regions=(${E2E_CLUSTER_REGION})
|
|
||||||
local e2e_cluster_zones=(${E2E_CLUSTER_ZONE})
|
|
||||||
|
|
||||||
if [[ -n "${E2E_CLUSTER_BACKUP_ZONES}" ]]; then
|
|
||||||
e2e_cluster_zones+=(${E2E_CLUSTER_BACKUP_ZONES})
|
|
||||||
elif [[ -n "${E2E_CLUSTER_BACKUP_REGIONS}" ]]; then
|
|
||||||
e2e_cluster_regions+=(${E2E_CLUSTER_BACKUP_REGIONS})
|
|
||||||
e2e_cluster_zones=(${zone_not_provided})
|
|
||||||
else
|
|
||||||
echo "No backup region/zone set, cluster creation will fail in case of stockout"
|
|
||||||
fi
|
|
||||||
|
|
||||||
for e2e_cluster_region in "${e2e_cluster_regions[@]}"; do
|
|
||||||
for e2e_cluster_zone in "${e2e_cluster_zones[@]}"; do
|
|
||||||
E2E_CLUSTER_REGION=${e2e_cluster_region}
|
|
||||||
E2E_CLUSTER_ZONE=${e2e_cluster_zone}
|
|
||||||
[[ "${E2E_CLUSTER_ZONE}" == "${zone_not_provided}" ]] && E2E_CLUSTER_ZONE=""
|
|
||||||
local cluster_creation_zone="${E2E_CLUSTER_REGION}"
|
|
||||||
[[ -n "${E2E_CLUSTER_ZONE}" ]] && cluster_creation_zone="${E2E_CLUSTER_REGION}-${E2E_CLUSTER_ZONE}"
|
|
||||||
|
|
||||||
header "Creating test cluster ${E2E_CLUSTER_VERSION} in ${cluster_creation_zone}"
|
|
||||||
if run_go_tool k8s-sigs.io/kubetest2 \
|
|
||||||
kubetest2 "${kubetest2_flags[@]}" --region="${cluster_creation_zone}" \
|
|
||||||
--test=exec -- "${tester_command[@]}" 2>&1 \
|
|
||||||
| tee "${cluster_creation_log}"; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
# Retry if cluster creation failed because of:
|
|
||||||
# - stockout (https://github.com/knative/test-infra/issues/592)
|
|
||||||
# - latest GKE not available in this region/zone yet (https://github.com/knative/test-infra/issues/694)
|
|
||||||
[[ -z "$(grep -Fo 'does not have enough resources available to fulfill' "${cluster_creation_log}")" \
|
|
||||||
&& -z "$(grep -Fo 'ResponseError: code=400, message=No valid versions with the prefix' "${cluster_creation_log}")" \
|
|
||||||
&& -z "$(grep -Po 'ResponseError: code=400, message=Master version "[0-9a-z\-\.]+" is unsupported' "${cluster_creation_log}")" \
|
|
||||||
&& -z "$(grep -Po 'only \d+ nodes out of \d+ have registered; this is likely due to Nodes failing to start correctly' "${cluster_creation_log}")" ]] \
|
|
||||||
&& return 1
|
|
||||||
done
|
|
||||||
done
|
|
||||||
echo "No more region/zones to try, quitting"
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Setup the test cluster for running the tests.
|
# Setup the test cluster for running the tests.
|
||||||
function setup_test_cluster() {
|
function setup_test_cluster() {
|
||||||
# Fail fast during setup.
|
# Fail fast during setup.
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
header "Test cluster setup"
|
|
||||||
kubectl get nodes
|
|
||||||
|
|
||||||
header "Setting up test cluster"
|
header "Setting up test cluster"
|
||||||
|
kubectl get nodes
|
||||||
# Set the actual project the test cluster resides in
|
# Set the actual project the test cluster resides in
|
||||||
# It will be a project assigned by Boskos if test is running on Prow,
|
# It will be a project assigned by Boskos if test is running on Prow,
|
||||||
# otherwise will be ${GCP_PROJECT} set up by user.
|
# otherwise will be ${E2E_GCP_PROJECT_ID} set up by user.
|
||||||
E2E_PROJECT_ID="$(gcloud config get-value project)"
|
E2E_PROJECT_ID="$(gcloud config get-value project)"
|
||||||
export E2E_PROJECT_ID
|
export E2E_PROJECT_ID
|
||||||
readonly E2E_PROJECT_ID
|
readonly E2E_PROJECT_ID
|
||||||
|
|
||||||
# Save some metadata about cluster creation for using in prow and testgrid
|
|
||||||
save_metadata
|
|
||||||
|
|
||||||
local k8s_user
|
|
||||||
k8s_user=$(gcloud config get-value core/account)
|
|
||||||
local k8s_cluster
|
local k8s_cluster
|
||||||
k8s_cluster=$(kubectl config current-context)
|
k8s_cluster=$(kubectl config current-context)
|
||||||
|
|
||||||
is_protected_cluster "${k8s_cluster}" && \
|
is_protected_cluster "${k8s_cluster}" && \
|
||||||
abort "kubeconfig context set to ${k8s_cluster}, which is forbidden"
|
abort "kubeconfig context set to ${k8s_cluster}, which is forbidden"
|
||||||
|
|
||||||
# If cluster admin role isn't set, this is a brand new cluster
|
# Acquire cluster admin role for the current user.
|
||||||
# Setup the admin role and also KO_DOCKER_REPO if it is a GKE cluster
|
acquire_cluster_admin_role "${k8s_cluster}"
|
||||||
if [[ -z "$(kubectl get clusterrolebinding cluster-admin-binding 2> /dev/null)" && "${k8s_cluster}" =~ ^gke_.* ]]; then
|
|
||||||
acquire_cluster_admin_role "${k8s_user}" "${E2E_CLUSTER_NAME}" "${E2E_CLUSTER_REGION}" "${E2E_CLUSTER_ZONE}"
|
# Setup KO_DOCKER_REPO if it is a GKE cluster. Incorporate an element of randomness to ensure that each run properly publishes images.
|
||||||
# Incorporate an element of randomness to ensure that each run properly publishes images.
|
[[ "${k8s_cluster}" =~ ^gke_.* ]] && export KO_DOCKER_REPO=gcr.io/${E2E_PROJECT_ID}/${REPO_NAME}-e2e-img/${RANDOM}
|
||||||
export KO_DOCKER_REPO=gcr.io/${E2E_PROJECT_ID}/${E2E_BASE_NAME}-e2e-img/${RANDOM}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Safety checks
|
# Safety checks
|
||||||
is_protected_gcr "${KO_DOCKER_REPO}" && \
|
is_protected_gcr "${KO_DOCKER_REPO}" && \
|
||||||
|
|
@ -327,23 +79,22 @@ function setup_test_cluster() {
|
||||||
# Use default namespace for all subsequent kubectl commands in this context
|
# Use default namespace for all subsequent kubectl commands in this context
|
||||||
kubectl config set-context "${k8s_cluster}" --namespace=default
|
kubectl config set-context "${k8s_cluster}" --namespace=default
|
||||||
|
|
||||||
echo "- gcloud project is ${E2E_PROJECT_ID}"
|
|
||||||
echo "- gcloud user is ${k8s_user}"
|
|
||||||
echo "- Cluster is ${k8s_cluster}"
|
echo "- Cluster is ${k8s_cluster}"
|
||||||
echo "- Docker is ${KO_DOCKER_REPO}"
|
echo "- Docker is ${KO_DOCKER_REPO}"
|
||||||
|
|
||||||
export KO_DATA_PATH="${REPO_ROOT_DIR}/.git"
|
export KO_DATA_PATH="${REPO_ROOT_DIR}/.git"
|
||||||
|
|
||||||
# Do not run teardowns if we explicitly want to skip them.
|
# Do not run teardowns if we explicitly want to skip them.
|
||||||
(( ! SKIP_TEARDOWNS )) && trap teardown_test_resources EXIT
|
(( ! SKIP_TEARDOWNS )) && add_trap teardown_test_resources EXIT
|
||||||
|
|
||||||
# Handle failures ourselves, so we can dump useful info.
|
# Handle failures ourselves, so we can dump useful info.
|
||||||
set +o errexit
|
set +o errexit
|
||||||
set +o pipefail
|
set +o pipefail
|
||||||
|
|
||||||
if (( ! SKIP_KNATIVE_SETUP )) && function_exists knative_setup; then
|
# Wait for Istio installation to complete, if necessary, before calling knative_setup.
|
||||||
# Wait for Istio installation to complete, if necessary, before calling knative_setup.
|
# TODO(chizhg): is it really needed?
|
||||||
(( ! SKIP_ISTIO_ADDON )) && (wait_until_batch_job_complete istio-system || return 1)
|
(( ! SKIP_ISTIO_ADDON )) && (wait_until_batch_job_complete istio-system || return 1)
|
||||||
|
if function_exists knative_setup; then
|
||||||
knative_setup || fail_test "Knative setup failed"
|
knative_setup || fail_test "Knative setup failed"
|
||||||
fi
|
fi
|
||||||
if function_exists test_setup; then
|
if function_exists test_setup; then
|
||||||
|
|
@ -369,33 +120,31 @@ function fail_test() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
RUN_TESTS=0
|
|
||||||
SKIP_KNATIVE_SETUP=0
|
|
||||||
SKIP_ISTIO_ADDON=0
|
|
||||||
SKIP_TEARDOWNS=0
|
SKIP_TEARDOWNS=0
|
||||||
GCP_PROJECT=""
|
SKIP_ISTIO_ADDON=0
|
||||||
E2E_SCRIPT=""
|
E2E_SCRIPT=""
|
||||||
E2E_CLUSTER_VERSION="latest"
|
CLOUD_PROVIDER="gke"
|
||||||
GKE_ADDONS=""
|
|
||||||
EXTRA_CLUSTER_CREATION_FLAGS=()
|
|
||||||
E2E_SCRIPT_CUSTOM_FLAGS=()
|
|
||||||
|
|
||||||
# Parse flags and initialize the test cluster.
|
# Parse flags and initialize the test cluster.
|
||||||
function initialize() {
|
function initialize() {
|
||||||
|
local run_tests=0
|
||||||
|
local custom_flags=()
|
||||||
E2E_SCRIPT="$(get_canonical_path "$0")"
|
E2E_SCRIPT="$(get_canonical_path "$0")"
|
||||||
|
local e2e_script_command=( "${E2E_SCRIPT}" "--run-tests" )
|
||||||
|
|
||||||
cd "${REPO_ROOT_DIR}"
|
cd "${REPO_ROOT_DIR}"
|
||||||
while [[ $# -ne 0 ]]; do
|
while [[ $# -ne 0 ]]; do
|
||||||
local parameter=$1
|
local parameter=$1
|
||||||
|
# TODO(chizhg): remove parse_flags logic if no repos are using it.
|
||||||
# Try parsing flag as a custom one.
|
# Try parsing flag as a custom one.
|
||||||
if function_exists parse_flags; then
|
if function_exists parse_flags; then
|
||||||
parse_flags $@
|
parse_flags "$@"
|
||||||
local skip=$?
|
local skip=$?
|
||||||
if [[ ${skip} -ne 0 ]]; then
|
if [[ ${skip} -ne 0 ]]; then
|
||||||
# Skip parsed flag (and possibly argument) and continue
|
# Skip parsed flag (and possibly argument) and continue
|
||||||
# Also save it to it's passed through to the test script
|
# Also save it to it's passed through to the test script
|
||||||
for ((i=1;i<=skip;i++)); do
|
for ((i=1;i<=skip;i++)); do
|
||||||
E2E_SCRIPT_CUSTOM_FLAGS+=("$1")
|
e2e_script_command+=("$1")
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
continue
|
continue
|
||||||
|
|
@ -403,46 +152,34 @@ function initialize() {
|
||||||
fi
|
fi
|
||||||
# Try parsing flag as a standard one.
|
# Try parsing flag as a standard one.
|
||||||
case ${parameter} in
|
case ${parameter} in
|
||||||
--run-tests) RUN_TESTS=1 ;;
|
--run-tests) run_tests=1 ;;
|
||||||
--skip-knative-setup) SKIP_KNATIVE_SETUP=1 ;;
|
|
||||||
--skip-teardowns) SKIP_TEARDOWNS=1 ;;
|
--skip-teardowns) SKIP_TEARDOWNS=1 ;;
|
||||||
|
# TODO(chizhg): remove this flag once the addons is defined as an env var.
|
||||||
--skip-istio-addon) SKIP_ISTIO_ADDON=1 ;;
|
--skip-istio-addon) SKIP_ISTIO_ADDON=1 ;;
|
||||||
*)
|
*)
|
||||||
[[ $# -ge 2 ]] || abort "missing parameter after $1"
|
|
||||||
shift
|
|
||||||
case ${parameter} in
|
case ${parameter} in
|
||||||
--gcp-project) GCP_PROJECT=$1 ;;
|
--cloud-provider) shift; CLOUD_PROVIDER="$1" ;;
|
||||||
--cluster-version) E2E_CLUSTER_VERSION=$1 ;;
|
*) custom_flags+=("$parameter") ;;
|
||||||
--cluster-creation-flag) EXTRA_CLUSTER_CREATION_FLAGS+=("$1") ;;
|
|
||||||
*) abort "unknown option ${parameter}" ;;
|
|
||||||
esac
|
esac
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
# Use PROJECT_ID if set, unless --gcp-project was used.
|
(( IS_PROW )) && [[ -z "${GCP_PROJECT_ID:-}" ]] && IS_BOSKOS=1
|
||||||
if [[ -n "${PROJECT_ID:-}" && -z "${GCP_PROJECT}" ]]; then
|
|
||||||
echo "\$PROJECT_ID is set to '${PROJECT_ID}', using it to run the tests"
|
if [[ "${CLOUD_PROVIDER}" == "gke" ]]; then
|
||||||
GCP_PROJECT="${PROJECT_ID}"
|
if (( SKIP_ISTIO_ADDON )); then
|
||||||
fi
|
custom_flags+=("--addons=NodeLocalDNS")
|
||||||
if (( ! IS_PROW )) && (( ! RUN_TESTS )) && [[ -z "${GCP_PROJECT}" ]]; then
|
else
|
||||||
abort "set \$PROJECT_ID or use --gcp-project to select the GCP project where the tests are run"
|
custom_flags+=("--addons=Istio,NodeLocalDNS")
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(( IS_PROW )) && [[ -z "${GCP_PROJECT}" ]] && IS_BOSKOS=1
|
|
||||||
|
|
||||||
(( SKIP_ISTIO_ADDON )) || GKE_ADDONS="--addons=Istio"
|
|
||||||
|
|
||||||
readonly RUN_TESTS
|
|
||||||
readonly GCP_PROJECT
|
|
||||||
readonly IS_BOSKOS
|
readonly IS_BOSKOS
|
||||||
readonly EXTRA_CLUSTER_CREATION_FLAGS
|
|
||||||
readonly SKIP_KNATIVE_SETUP
|
|
||||||
readonly SKIP_TEARDOWNS
|
readonly SKIP_TEARDOWNS
|
||||||
readonly GKE_ADDONS
|
|
||||||
|
|
||||||
if (( ! RUN_TESTS )); then
|
if (( ! run_tests )); then
|
||||||
create_test_cluster
|
create_test_cluster "${CLOUD_PROVIDER}" custom_flags e2e_script_command
|
||||||
else
|
else
|
||||||
setup_test_cluster
|
setup_test_cluster
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,141 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright 2020 The Knative Authors
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# This is a collection of functions for infra related setups, mainly
|
||||||
|
# cluster provisioning. It doesn't do anything when called from command line.
|
||||||
|
|
||||||
|
source $(dirname "${BASH_SOURCE[0]}")/library.sh
|
||||||
|
|
||||||
|
# Dumps the k8s api server metrics. Spins up a proxy, waits a little bit and
|
||||||
|
# dumps the metrics to ${ARTIFACTS}/k8s.metrics.txt
|
||||||
|
function dump_metrics() {
|
||||||
|
header ">> Starting kube proxy"
|
||||||
|
kubectl proxy --port=8080 &
|
||||||
|
local proxy_pid=$!
|
||||||
|
sleep 5
|
||||||
|
header ">> Grabbing k8s metrics"
|
||||||
|
curl -s http://localhost:8080/metrics > "${ARTIFACTS}"/k8s.metrics.txt
|
||||||
|
# Clean up proxy so it doesn't interfere with job shutting down
|
||||||
|
kill $proxy_pid || true
|
||||||
|
}
|
||||||
|
|
||||||
|
# Dump info about the test cluster. If dump_extra_cluster_info() is defined, calls it too.
|
||||||
|
# This is intended to be called when a test fails to provide debugging information.
|
||||||
|
function dump_cluster_state() {
|
||||||
|
echo "***************************************"
|
||||||
|
echo "*** E2E TEST FAILED ***"
|
||||||
|
echo "*** Start of information dump ***"
|
||||||
|
echo "***************************************"
|
||||||
|
|
||||||
|
local output
|
||||||
|
output="${ARTIFACTS}/k8s.dump-$(basename "${E2E_SCRIPT}").txt"
|
||||||
|
echo ">>> The dump is located at ${output}"
|
||||||
|
|
||||||
|
for crd in $(kubectl api-resources --verbs=list -o name | sort); do
|
||||||
|
local count
|
||||||
|
count="$(kubectl get "$crd" --all-namespaces --no-headers 2>/dev/null | wc -l)"
|
||||||
|
echo ">>> ${crd} (${count} objects)"
|
||||||
|
if [[ "${count}" -gt "0" ]]; then
|
||||||
|
{
|
||||||
|
echo ">>> ${crd} (${count} objects)"
|
||||||
|
|
||||||
|
echo ">>> Listing"
|
||||||
|
kubectl get "${crd}" --all-namespaces
|
||||||
|
|
||||||
|
echo ">>> Details"
|
||||||
|
if [[ "${crd}" == "secrets" ]]; then
|
||||||
|
echo "Secrets are ignored for security reasons"
|
||||||
|
elif [[ "${crd}" == "events" ]]; then
|
||||||
|
echo "events are ignored as making a lot of noise"
|
||||||
|
else
|
||||||
|
kubectl get "${crd}" --all-namespaces -o yaml
|
||||||
|
fi
|
||||||
|
} >> "${output}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if function_exists dump_extra_cluster_state; then
|
||||||
|
echo ">>> Extra dump" >> "${output}"
|
||||||
|
dump_extra_cluster_state >> "${output}"
|
||||||
|
fi
|
||||||
|
echo "***************************************"
|
||||||
|
echo "*** E2E TEST FAILED ***"
|
||||||
|
echo "*** End of information dump ***"
|
||||||
|
echo "***************************************"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Sets the current user as cluster admin for the given cluster.
|
||||||
|
# Parameters: $1 - cluster context name
|
||||||
|
function acquire_cluster_admin_role() {
|
||||||
|
if [[ -z "$(kubectl get clusterrolebinding cluster-admin-binding 2> /dev/null)" ]]; then
|
||||||
|
if [[ "$1" =~ ^gke_.* ]]; then
|
||||||
|
kubectl create clusterrolebinding cluster-admin-binding \
|
||||||
|
--clusterrole=cluster-admin --user="$(gcloud config get-value core/account)"
|
||||||
|
else
|
||||||
|
kubectl create clusterrolebinding cluster-admin-binding-"${USER}" \
|
||||||
|
--clusterrole=cluster-admin --user="${USER}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create a test cluster and run the tests if provided.
|
||||||
|
# Parameters: $1 - cluster provider name, e.g. gke
|
||||||
|
# $2 - custom flags supported by kntest
|
||||||
|
# $3 - test command to run after cluster is created
|
||||||
|
function create_test_cluster() {
|
||||||
|
# Fail fast during setup.
|
||||||
|
set -o errexit
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
if function_exists cluster_setup; then
|
||||||
|
cluster_setup || fail_test "cluster setup failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
gke) create_gke_test_cluster "$2" "$3" "$4" ;;
|
||||||
|
kind) create_kind_test_cluster "$2" "$3" "$4" ;;
|
||||||
|
*) echo "unsupported provider: $1"; exit 1 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
local result="$?"
|
||||||
|
# Ignore any errors below, this is a best-effort cleanup and shouldn't affect the test result.
|
||||||
|
set +o errexit
|
||||||
|
set +o pipefail
|
||||||
|
function_exists cluster_teardown && cluster_teardown
|
||||||
|
echo "Artifacts were written to ${ARTIFACTS}"
|
||||||
|
echo "Test result code is ${result}"
|
||||||
|
exit "${result}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create a KIND test cluster with kubetest2 and run the test command.
|
||||||
|
# Parameters: $1 - extra cluster creation flags
|
||||||
|
# $2 - test command to run by the kubetest2 tester
|
||||||
|
function create_kind_test_cluster() {
|
||||||
|
local -n _custom_flags=$1
|
||||||
|
local -n _test_command=$2
|
||||||
|
|
||||||
|
kubetest2 kind "${_custom_flags[@]}" --up --down --test=exec -- "${_test_command[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create a GKE test cluster with kubetest2 and run the test command.
|
||||||
|
# Parameters: $1 - custom flags defined in kntest
|
||||||
|
# $2 - test command to run after the cluster is created (optional)
|
||||||
|
function create_gke_test_cluster() {
|
||||||
|
local -n _custom_flags=$1
|
||||||
|
local -n _test_command=$2
|
||||||
|
|
||||||
|
run_kntest kubetest2 gke "${_custom_flags[@]}" --test-command="${_test_command[*]}"
|
||||||
|
}
|
||||||
|
|
@ -69,12 +69,12 @@ function abort() {
|
||||||
# Parameters: $1 - character to use for the box.
|
# Parameters: $1 - character to use for the box.
|
||||||
# $2 - banner message.
|
# $2 - banner message.
|
||||||
function make_banner() {
|
function make_banner() {
|
||||||
local msg="$1$1$1$1 $2 $1$1$1$1"
|
local msg="$1$1$1$1 $2 $1$1$1$1"
|
||||||
local border="${msg//[-0-9A-Za-z _.,\/()\']/$1}"
|
local border="${msg//[-0-9A-Za-z _.,\/()\']/$1}"
|
||||||
echo -e "${border}\n${msg}\n${border}"
|
echo -e "${border}\n${msg}\n${border}"
|
||||||
# TODO(adrcunha): Remove once logs have timestamps on Prow
|
# TODO(adrcunha): Remove once logs have timestamps on Prow
|
||||||
# For details, see https://github.com/kubernetes/test-infra/issues/10100
|
# For details, see https://github.com/kubernetes/test-infra/issues/10100
|
||||||
echo -e "$1$1$1$1 $(TZ='America/Los_Angeles' date)\n${border}"
|
echo -e "$1$1$1$1 $(TZ='America/Los_Angeles' date)\n${border}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Simple header for logging purposes.
|
# Simple header for logging purposes.
|
||||||
|
|
@ -176,21 +176,8 @@ function wait_until_pods_running() {
|
||||||
# Waits until all batch jobs complete in the given namespace.
|
# Waits until all batch jobs complete in the given namespace.
|
||||||
# Parameters: $1 - namespace.
|
# Parameters: $1 - namespace.
|
||||||
function wait_until_batch_job_complete() {
|
function wait_until_batch_job_complete() {
|
||||||
echo -n "Waiting until all batch jobs in namespace $1 run to completion."
|
echo "Waiting until all batch jobs in namespace $1 run to completion."
|
||||||
for i in {1..150}; do # timeout after 5 minutes
|
kubectl wait job --for=condition=Complete --all -n "$1" --timeout=5m || return 1
|
||||||
local jobs=$(kubectl get jobs -n $1 --no-headers \
|
|
||||||
-ocustom-columns='n:{.metadata.name},c:{.spec.completions},s:{.status.succeeded}')
|
|
||||||
# All jobs must be complete
|
|
||||||
local not_complete=$(echo "${jobs}" | awk '{if ($2!=$3) print $0}' | wc -l)
|
|
||||||
if [[ ${not_complete} -eq 0 ]]; then
|
|
||||||
echo -e "\nAll jobs are complete:\n${jobs}"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
echo -n "."
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
echo -e "\n\nERROR: timeout waiting for jobs to complete\n${jobs}"
|
|
||||||
return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Waits until the given service has an external address (IP/hostname).
|
# Waits until the given service has an external address (IP/hostname).
|
||||||
|
|
@ -311,44 +298,6 @@ function dump_app_logs() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sets the given user as cluster admin.
|
|
||||||
# Parameters: $1 - user
|
|
||||||
# $2 - cluster name
|
|
||||||
# $3 - cluster region
|
|
||||||
# $4 - cluster zone, optional
|
|
||||||
function acquire_cluster_admin_role() {
|
|
||||||
echo "Acquiring cluster-admin role for user '$1'"
|
|
||||||
local geoflag="--region=$3"
|
|
||||||
[[ -n $4 ]] && geoflag="--zone=$3-$4"
|
|
||||||
# Get the password of the admin and use it, as the service account (or the user)
|
|
||||||
# might not have the necessary permission.
|
|
||||||
local password=$(gcloud --format="value(masterAuth.password)" \
|
|
||||||
container clusters describe $2 ${geoflag})
|
|
||||||
if [[ -n "${password}" ]]; then
|
|
||||||
# Cluster created with basic authentication
|
|
||||||
kubectl config set-credentials cluster-admin \
|
|
||||||
--username=admin --password=${password}
|
|
||||||
else
|
|
||||||
local cert=$(mktemp)
|
|
||||||
local key=$(mktemp)
|
|
||||||
echo "Certificate in ${cert}, key in ${key}"
|
|
||||||
gcloud --format="value(masterAuth.clientCertificate)" \
|
|
||||||
container clusters describe $2 ${geoflag} | base64 --decode > ${cert}
|
|
||||||
gcloud --format="value(masterAuth.clientKey)" \
|
|
||||||
container clusters describe $2 ${geoflag} | base64 --decode > ${key}
|
|
||||||
kubectl config set-credentials cluster-admin \
|
|
||||||
--client-certificate=${cert} --client-key=${key}
|
|
||||||
fi
|
|
||||||
kubectl config set-context $(kubectl config current-context) \
|
|
||||||
--user=cluster-admin
|
|
||||||
kubectl create clusterrolebinding cluster-admin-binding \
|
|
||||||
--clusterrole=cluster-admin \
|
|
||||||
--user=$1
|
|
||||||
# Reset back to the default account
|
|
||||||
gcloud container clusters get-credentials \
|
|
||||||
$2 ${geoflag} --project $(gcloud config get-value project)
|
|
||||||
}
|
|
||||||
|
|
||||||
# Run a command through tee and capture its output.
|
# Run a command through tee and capture its output.
|
||||||
# Parameters: $1 - file where the output will be stored.
|
# Parameters: $1 - file where the output will be stored.
|
||||||
# $2... - command to run.
|
# $2... - command to run.
|
||||||
|
|
@ -408,7 +357,7 @@ function report_go_test() {
|
||||||
json="$(mktemp_with_extension "${ARTIFACTS}"/json_XXXXXXXX json)"
|
json="$(mktemp_with_extension "${ARTIFACTS}"/json_XXXXXXXX json)"
|
||||||
echo "Running go test with args: ${go_test_args[*]}"
|
echo "Running go test with args: ${go_test_args[*]}"
|
||||||
# TODO(chizhg): change to `--format testname`?
|
# TODO(chizhg): change to `--format testname`?
|
||||||
capture_output "${report}" gotestsum --format standard-verbose \
|
capture_output "${report}" gotestsum --format "${GO_TEST_VERBOSITY:-standard-verbose}" \
|
||||||
--junitfile "${xml}" --junitfile-testsuite-name relative --junitfile-testcase-classname relative \
|
--junitfile "${xml}" --junitfile-testsuite-name relative --junitfile-testcase-classname relative \
|
||||||
--jsonfile "${json}" \
|
--jsonfile "${json}" \
|
||||||
-- "${go_test_args[@]}"
|
-- "${go_test_args[@]}"
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,9 @@ function markdown_build_tests() {
|
||||||
(( DISABLE_MD_LINTING && DISABLE_MD_LINK_CHECK )) && return 0
|
(( DISABLE_MD_LINTING && DISABLE_MD_LINK_CHECK )) && return 0
|
||||||
# Get changed markdown files (ignore /vendor, github templates, and deleted files)
|
# Get changed markdown files (ignore /vendor, github templates, and deleted files)
|
||||||
local mdfiles=""
|
local mdfiles=""
|
||||||
for file in $(echo "${CHANGED_FILES}" | grep \\.md$ | grep -v ^vendor/ | grep -v ^.github/); do
|
# Exclude scripts/test-infra as it is directly imported from test-infra repo which could
|
||||||
|
# have the link with relative path of test-infra repo which does not work with client repo.
|
||||||
|
for file in $(echo "${CHANGED_FILES}" | grep \\.md$ | grep -v ^vendor/ | grep -v ^.github/ | grep =v ^scripts/test-infra); do
|
||||||
[[ -f "${file}" ]] && mdfiles="${mdfiles} ${file}"
|
[[ -f "${file}" ]] && mdfiles="${mdfiles} ${file}"
|
||||||
done
|
done
|
||||||
[[ -z "${mdfiles}" ]] && return 0
|
[[ -z "${mdfiles}" ]] && return 0
|
||||||
|
|
@ -272,7 +274,7 @@ function run_integration_tests() {
|
||||||
# Default integration test runner that runs all `test/e2e-*tests.sh`.
|
# Default integration test runner that runs all `test/e2e-*tests.sh`.
|
||||||
function default_integration_test_runner() {
|
function default_integration_test_runner() {
|
||||||
local failed=0
|
local failed=0
|
||||||
find test/ ! -name "$(printf "*\n*")" -name "e2e-*tests.sh" > tmp
|
find test/ ! -name "$(printf "*\n*")" -name "e2e-*tests.sh" -maxdepth 1 > tmp
|
||||||
while IFS= read -r e2e_test
|
while IFS= read -r e2e_test
|
||||||
do
|
do
|
||||||
echo "Running integration test ${e2e_test}"
|
echo "Running integration test ${e2e_test}"
|
||||||
|
|
@ -322,15 +324,6 @@ function main() {
|
||||||
echo ">> docker version"
|
echo ">> docker version"
|
||||||
docker version
|
docker version
|
||||||
fi
|
fi
|
||||||
# node/pod names are important for debugging purposes, but they are missing
|
|
||||||
# after migrating from bootstrap to podutil.
|
|
||||||
# Report it here with the same logic as in bootstrap until it is fixed.
|
|
||||||
# (https://github.com/kubernetes/test-infra/blob/09bd4c6709dc64308406443f8996f90cf3b40ed1/jenkins/bootstrap.py#L588)
|
|
||||||
# TODO(chaodaiG): follow up on https://github.com/kubernetes/test-infra/blob/0fabd2ea816daa8c15d410c77a0c93c0550b283f/prow/initupload/run.go#L49
|
|
||||||
echo ">> node name"
|
|
||||||
curl -H "Metadata-Flavor: Google" 'http://169.254.169.254/computeMetadata/v1/instance/name' 2> /dev/null
|
|
||||||
echo ">> pod name"
|
|
||||||
echo "${HOSTNAME}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -z $1 ]] && set -- "--all-tests"
|
[[ -z $1 ]] && set -- "--all-tests"
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ import (
|
||||||
|
|
||||||
"knative.dev/client/lib/test"
|
"knative.dev/client/lib/test"
|
||||||
"knative.dev/client/pkg/util"
|
"knative.dev/client/pkg/util"
|
||||||
|
network "knative.dev/networking/pkg"
|
||||||
pkgtest "knative.dev/pkg/test"
|
pkgtest "knative.dev/pkg/test"
|
||||||
"knative.dev/serving/pkg/apis/serving"
|
"knative.dev/serving/pkg/apis/serving"
|
||||||
)
|
)
|
||||||
|
|
@ -79,7 +80,7 @@ func serviceCreatePrivate(r *test.KnRunResultCollector, serviceName string) {
|
||||||
|
|
||||||
out = r.KnTest().Kn().Run("service", "describe", serviceName, "--verbose")
|
out = r.KnTest().Kn().Run("service", "describe", serviceName, "--verbose")
|
||||||
r.AssertNoError(out)
|
r.AssertNoError(out)
|
||||||
assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, serving.VisibilityLabelKey, serving.VisibilityClusterLocal))
|
assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, network.VisibilityLabelKey, serving.VisibilityClusterLocal))
|
||||||
}
|
}
|
||||||
|
|
||||||
func serviceCreatePrivateUpdatePublic(r *test.KnRunResultCollector, serviceName string) {
|
func serviceCreatePrivateUpdatePublic(r *test.KnRunResultCollector, serviceName string) {
|
||||||
|
|
@ -90,7 +91,7 @@ func serviceCreatePrivateUpdatePublic(r *test.KnRunResultCollector, serviceName
|
||||||
|
|
||||||
out = r.KnTest().Kn().Run("service", "describe", serviceName, "--verbose")
|
out = r.KnTest().Kn().Run("service", "describe", serviceName, "--verbose")
|
||||||
r.AssertNoError(out)
|
r.AssertNoError(out)
|
||||||
assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, serving.VisibilityLabelKey, serving.VisibilityClusterLocal))
|
assert.Check(r.T(), util.ContainsAllIgnoreCase(out.Stdout, network.VisibilityLabelKey, serving.VisibilityClusterLocal))
|
||||||
|
|
||||||
out = r.KnTest().Kn().Run("service", "update", serviceName,
|
out = r.KnTest().Kn().Run("service", "update", serviceName,
|
||||||
"--image", pkgtest.ImagePath("helloworld"), "--no-cluster-local")
|
"--image", pkgtest.ImagePath("helloworld"), "--no-cluster-local")
|
||||||
|
|
@ -99,7 +100,7 @@ func serviceCreatePrivateUpdatePublic(r *test.KnRunResultCollector, serviceName
|
||||||
|
|
||||||
out = r.KnTest().Kn().Run("service", "describe", serviceName, "--verbose")
|
out = r.KnTest().Kn().Run("service", "describe", serviceName, "--verbose")
|
||||||
r.AssertNoError(out)
|
r.AssertNoError(out)
|
||||||
assert.Check(r.T(), util.ContainsNone(out.Stdout, serving.VisibilityLabelKey, serving.VisibilityClusterLocal))
|
assert.Check(r.T(), util.ContainsNone(out.Stdout, network.VisibilityLabelKey, serving.VisibilityClusterLocal))
|
||||||
}
|
}
|
||||||
|
|
||||||
func serviceCreateDuplicate(r *test.KnRunResultCollector, serviceName string) {
|
func serviceCreateDuplicate(r *test.KnRunResultCollector, serviceName string) {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,191 @@
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction, and
|
||||||
|
distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by the copyright
|
||||||
|
owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all other entities
|
||||||
|
that control, are controlled by, or are under common control with that entity.
|
||||||
|
For the purposes of this definition, "control" means (i) the power, direct or
|
||||||
|
indirect, to cause the direction or management of such entity, whether by
|
||||||
|
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
||||||
|
permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications, including
|
||||||
|
but not limited to software source code, documentation source, and configuration
|
||||||
|
files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical transformation or
|
||||||
|
translation of a Source form, including but not limited to compiled object code,
|
||||||
|
generated documentation, and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or Object form, made
|
||||||
|
available under the License, as indicated by a copyright notice that is included
|
||||||
|
in or attached to the work (an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object form, that
|
||||||
|
is based on (or derived from) the Work and for which the editorial revisions,
|
||||||
|
annotations, elaborations, or other modifications represent, as a whole, an
|
||||||
|
original work of authorship. For the purposes of this License, Derivative Works
|
||||||
|
shall not include works that remain separable from, or merely link (or bind by
|
||||||
|
name) to the interfaces of, the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including the original version
|
||||||
|
of the Work and any modifications or additions to that Work or Derivative Works
|
||||||
|
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
||||||
|
by the copyright owner or by an individual or Legal Entity authorized to submit
|
||||||
|
on behalf of the copyright owner. For the purposes of this definition,
|
||||||
|
"submitted" means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems, and
|
||||||
|
issue tracking systems that are managed by, or on behalf of, the Licensor for
|
||||||
|
the purpose of discussing and improving the Work, but excluding communication
|
||||||
|
that is conspicuously marked or otherwise designated in writing by the copyright
|
||||||
|
owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
||||||
|
of whom a Contribution has been received by Licensor and subsequently
|
||||||
|
incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License.
|
||||||
|
|
||||||
|
Subject to the terms and conditions of this License, each Contributor hereby
|
||||||
|
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
||||||
|
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the Work and such
|
||||||
|
Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License.
|
||||||
|
|
||||||
|
Subject to the terms and conditions of this License, each Contributor hereby
|
||||||
|
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
||||||
|
irrevocable (except as stated in this section) patent license to make, have
|
||||||
|
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
|
||||||
|
such license applies only to those patent claims licensable by such Contributor
|
||||||
|
that are necessarily infringed by their Contribution(s) alone or by combination
|
||||||
|
of their Contribution(s) with the Work to which such Contribution(s) was
|
||||||
|
submitted. If You institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
|
||||||
|
Contribution incorporated within the Work constitutes direct or contributory
|
||||||
|
patent infringement, then any patent licenses granted to You under this License
|
||||||
|
for that Work shall terminate as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution.
|
||||||
|
|
||||||
|
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
||||||
|
in any medium, with or without modifications, and in Source or Object form,
|
||||||
|
provided that You meet the following conditions:
|
||||||
|
|
||||||
|
You must give any other recipients of the Work or Derivative Works a copy of
|
||||||
|
this License; and
|
||||||
|
You must cause any modified files to carry prominent notices stating that You
|
||||||
|
changed the files; and
|
||||||
|
You must retain, in the Source form of any Derivative Works that You distribute,
|
||||||
|
all copyright, patent, trademark, and attribution notices from the Source form
|
||||||
|
of the Work, excluding those notices that do not pertain to any part of the
|
||||||
|
Derivative Works; and
|
||||||
|
If the Work includes a "NOTICE" text file as part of its distribution, then any
|
||||||
|
Derivative Works that You distribute must include a readable copy of the
|
||||||
|
attribution notices contained within such NOTICE file, excluding those notices
|
||||||
|
that do not pertain to any part of the Derivative Works, in at least one of the
|
||||||
|
following places: within a NOTICE text file distributed as part of the
|
||||||
|
Derivative Works; within the Source form or documentation, if provided along
|
||||||
|
with the Derivative Works; or, within a display generated by the Derivative
|
||||||
|
Works, if and wherever such third-party notices normally appear. The contents of
|
||||||
|
the NOTICE file are for informational purposes only and do not modify the
|
||||||
|
License. You may add Your own attribution notices within Derivative Works that
|
||||||
|
You distribute, alongside or as an addendum to the NOTICE text from the Work,
|
||||||
|
provided that such additional attribution notices cannot be construed as
|
||||||
|
modifying the License.
|
||||||
|
You may add Your own copyright statement to Your modifications and may provide
|
||||||
|
additional or different license terms and conditions for use, reproduction, or
|
||||||
|
distribution of Your modifications, or for any such Derivative Works as a whole,
|
||||||
|
provided Your use, reproduction, and distribution of the Work otherwise complies
|
||||||
|
with the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions.
|
||||||
|
|
||||||
|
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
||||||
|
for inclusion in the Work by You to the Licensor shall be under the terms and
|
||||||
|
conditions of this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify the terms of
|
||||||
|
any separate license agreement you may have executed with Licensor regarding
|
||||||
|
such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks.
|
||||||
|
|
||||||
|
This License does not grant permission to use the trade names, trademarks,
|
||||||
|
service marks, or product names of the Licensor, except as required for
|
||||||
|
reasonable and customary use in describing the origin of the Work and
|
||||||
|
reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, Licensor provides the
|
||||||
|
Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
|
||||||
|
including, without limitation, any warranties or conditions of TITLE,
|
||||||
|
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
||||||
|
solely responsible for determining the appropriateness of using or
|
||||||
|
redistributing the Work and assume any risks associated with Your exercise of
|
||||||
|
permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability.
|
||||||
|
|
||||||
|
In no event and under no legal theory, whether in tort (including negligence),
|
||||||
|
contract, or otherwise, unless required by applicable law (such as deliberate
|
||||||
|
and grossly negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special, incidental,
|
||||||
|
or consequential damages of any character arising as a result of this License or
|
||||||
|
out of the use or inability to use the Work (including but not limited to
|
||||||
|
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
|
||||||
|
any and all other commercial damages or losses), even if such Contributor has
|
||||||
|
been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability.
|
||||||
|
|
||||||
|
While redistributing the Work or Derivative Works thereof, You may choose to
|
||||||
|
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
||||||
|
other liability obligations and/or rights consistent with this License. However,
|
||||||
|
in accepting such obligations, You may act only on Your own behalf and on Your
|
||||||
|
sole responsibility, not on behalf of any other Contributor, and only if You
|
||||||
|
agree to indemnify, defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason of your
|
||||||
|
accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following boilerplate
|
||||||
|
notice, with the fields enclosed by brackets "[]" replaced with your own
|
||||||
|
identifying information. (Don't include the brackets!) The text should be
|
||||||
|
enclosed in the appropriate comment syntax for the file format. We also
|
||||||
|
recommend that a file or class name and description of purpose be included on
|
||||||
|
the same "printed page" as the copyright notice for easier identification within
|
||||||
|
third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
@ -0,0 +1,201 @@
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright 2017 The OpenZipkin Authors
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
@ -0,0 +1,202 @@
|
||||||
|
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
201
third_party/VENDOR-LICENSE/sigs.k8s.io/structured-merge-diff/v3/value/LICENSE
vendored
Normal file
201
third_party/VENDOR-LICENSE/sigs.k8s.io/structured-merge-diff/v3/value/LICENSE
vendored
Normal file
|
|
@ -0,0 +1,201 @@
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright {yyyy} {name of copyright owner}
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
@ -296,6 +296,7 @@ func (c *Client) getETag(suffix string) (value, etag string, err error) {
|
||||||
// being stable anyway.
|
// being stable anyway.
|
||||||
host = metadataIP
|
host = metadataIP
|
||||||
}
|
}
|
||||||
|
suffix = strings.TrimLeft(suffix, "/")
|
||||||
u := "http://" + host + "/computeMetadata/v1/" + suffix
|
u := "http://" + host + "/computeMetadata/v1/" + suffix
|
||||||
req, err := http.NewRequest("GET", u, nil)
|
req, err := http.NewRequest("GET", u, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -95,12 +95,12 @@ func Equal(x, y interface{}, opts ...Option) bool {
|
||||||
return s.result.Equal()
|
return s.result.Equal()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Diff returns a human-readable report of the differences between two values.
|
// Diff returns a human-readable report of the differences between two values:
|
||||||
// It returns an empty string if and only if Equal returns true for the same
|
// y - x. It returns an empty string if and only if Equal returns true for the
|
||||||
// input values and options.
|
// same input values and options.
|
||||||
//
|
//
|
||||||
// The output is displayed as a literal in pseudo-Go syntax.
|
// The output is displayed as a literal in pseudo-Go syntax.
|
||||||
// At the start of each line, a "-" prefix indicates an element removed from x,
|
// At the start of each line, a "-" prefix indicates an element removed from y,
|
||||||
// a "+" prefix to indicates an element added to y, and the lack of a prefix
|
// a "+" prefix to indicates an element added to y, and the lack of a prefix
|
||||||
// indicates an element common to both x and y. If possible, the output
|
// indicates an element common to both x and y. If possible, the output
|
||||||
// uses fmt.Stringer.String or error.Error methods to produce more humanly
|
// uses fmt.Stringer.String or error.Error methods to produce more humanly
|
||||||
|
|
|
||||||
|
|
@ -225,11 +225,14 @@ func (validator) apply(s *state, vx, vy reflect.Value) {
|
||||||
|
|
||||||
// Unable to Interface implies unexported field without visibility access.
|
// Unable to Interface implies unexported field without visibility access.
|
||||||
if !vx.CanInterface() || !vy.CanInterface() {
|
if !vx.CanInterface() || !vy.CanInterface() {
|
||||||
const help = "consider using a custom Comparer; if you control the implementation of type, you can also consider using an Exporter, AllowUnexported, or cmpopts.IgnoreUnexported"
|
help := "consider using a custom Comparer; if you control the implementation of type, you can also consider using an Exporter, AllowUnexported, or cmpopts.IgnoreUnexported"
|
||||||
var name string
|
var name string
|
||||||
if t := s.curPath.Index(-2).Type(); t.Name() != "" {
|
if t := s.curPath.Index(-2).Type(); t.Name() != "" {
|
||||||
// Named type with unexported fields.
|
// Named type with unexported fields.
|
||||||
name = fmt.Sprintf("%q.%v", t.PkgPath(), t.Name()) // e.g., "path/to/package".MyType
|
name = fmt.Sprintf("%q.%v", t.PkgPath(), t.Name()) // e.g., "path/to/package".MyType
|
||||||
|
if _, ok := reflect.New(t).Interface().(error); ok {
|
||||||
|
help = "consider using cmpopts.EquateErrors to compare error values"
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Unnamed type with unexported fields. Derive PkgPath from field.
|
// Unnamed type with unexported fields. Derive PkgPath from field.
|
||||||
var pkgPath string
|
var pkgPath string
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ func (t Tag) Scope(action string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkTag(name string) error {
|
func checkTag(name string) error {
|
||||||
return checkElement("tag", name, tagChars, 1, 127)
|
return checkElement("tag", name, tagChars, 1, 128)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTag returns a new Tag representing the given name, according to the given strictness.
|
// NewTag returns a new Tag representing the given name, according to the given strictness.
|
||||||
|
|
|
||||||
|
|
@ -2020,7 +2020,11 @@ func (sc *serverConn) newWriterAndRequest(st *stream, f *MetaHeadersFrame) (*res
|
||||||
}
|
}
|
||||||
if bodyOpen {
|
if bodyOpen {
|
||||||
if vv, ok := rp.header["Content-Length"]; ok {
|
if vv, ok := rp.header["Content-Length"]; ok {
|
||||||
req.ContentLength, _ = strconv.ParseInt(vv[0], 10, 64)
|
if cl, err := strconv.ParseUint(vv[0], 10, 63); err == nil {
|
||||||
|
req.ContentLength = int64(cl)
|
||||||
|
} else {
|
||||||
|
req.ContentLength = 0
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
req.ContentLength = -1
|
req.ContentLength = -1
|
||||||
}
|
}
|
||||||
|
|
@ -2403,9 +2407,8 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) {
|
||||||
var ctype, clen string
|
var ctype, clen string
|
||||||
if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
|
if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
|
||||||
rws.snapHeader.Del("Content-Length")
|
rws.snapHeader.Del("Content-Length")
|
||||||
clen64, err := strconv.ParseInt(clen, 10, 64)
|
if cl, err := strconv.ParseUint(clen, 10, 63); err == nil {
|
||||||
if err == nil && clen64 >= 0 {
|
rws.sentContentLen = int64(cl)
|
||||||
rws.sentContentLen = clen64
|
|
||||||
} else {
|
} else {
|
||||||
clen = ""
|
clen = ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2006,8 +2006,8 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra
|
||||||
if !streamEnded || isHead {
|
if !streamEnded || isHead {
|
||||||
res.ContentLength = -1
|
res.ContentLength = -1
|
||||||
if clens := res.Header["Content-Length"]; len(clens) == 1 {
|
if clens := res.Header["Content-Length"]; len(clens) == 1 {
|
||||||
if clen64, err := strconv.ParseInt(clens[0], 10, 64); err == nil {
|
if cl, err := strconv.ParseUint(clens[0], 10, 63); err == nil {
|
||||||
res.ContentLength = clen64
|
res.ContentLength = int64(cl)
|
||||||
} else {
|
} else {
|
||||||
// TODO: care? unlike http/1, it won't mess up our framing, so it's
|
// TODO: care? unlike http/1, it won't mess up our framing, so it's
|
||||||
// more safe smuggling-wise to ignore.
|
// more safe smuggling-wise to ignore.
|
||||||
|
|
@ -2525,6 +2525,7 @@ func strSliceContains(ss []string, s string) bool {
|
||||||
|
|
||||||
type erringRoundTripper struct{ err error }
|
type erringRoundTripper struct{ err error }
|
||||||
|
|
||||||
|
func (rt erringRoundTripper) RoundTripErr() error { return rt.err }
|
||||||
func (rt erringRoundTripper) RoundTrip(*http.Request) (*http.Response, error) { return nil, rt.err }
|
func (rt erringRoundTripper) RoundTrip(*http.Request) (*http.Response, error) { return nil, rt.err }
|
||||||
|
|
||||||
// gzipReader wraps a response body so it can lazily
|
// gzipReader wraps a response body so it can lazily
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for mips64, OpenBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
|
|
@ -20,6 +20,15 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
return ioctl(fd, req, uintptr(value))
|
return ioctl(fd, req, uintptr(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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
|
||||||
|
// passing the integer value directly.
|
||||||
|
func IoctlSetPointerInt(fd int, req uint, value int) error {
|
||||||
|
v := int32(value)
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
||||||
|
}
|
||||||
|
|
||||||
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
||||||
//
|
//
|
||||||
// To change fd's window size, the req argument should be TIOCSWINSZ.
|
// To change fd's window size, the req argument should be TIOCSWINSZ.
|
||||||
|
|
|
||||||
|
|
@ -73,26 +73,22 @@ aix_ppc64)
|
||||||
darwin_386)
|
darwin_386)
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="go run mksyscall.go -l32"
|
mksyscall="go run mksyscall.go -l32"
|
||||||
mksysnum="go run mksysnum.go $(xcrun --show-sdk-path --sdk macosx)/usr/include/sys/syscall.h"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
mkasm="go run mkasm_darwin.go"
|
mkasm="go run mkasm_darwin.go"
|
||||||
;;
|
;;
|
||||||
darwin_amd64)
|
darwin_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="go run mksysnum.go $(xcrun --show-sdk-path --sdk macosx)/usr/include/sys/syscall.h"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
mkasm="go run mkasm_darwin.go"
|
mkasm="go run mkasm_darwin.go"
|
||||||
;;
|
;;
|
||||||
darwin_arm)
|
darwin_arm)
|
||||||
mkerrors="$mkerrors"
|
mkerrors="$mkerrors"
|
||||||
mksyscall="go run mksyscall.go -l32"
|
mksyscall="go run mksyscall.go -l32"
|
||||||
mksysnum="go run mksysnum.go $(xcrun --show-sdk-path --sdk iphoneos)/usr/include/sys/syscall.h"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
mkasm="go run mkasm_darwin.go"
|
mkasm="go run mkasm_darwin.go"
|
||||||
;;
|
;;
|
||||||
darwin_arm64)
|
darwin_arm64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="go run mksysnum.go $(xcrun --show-sdk-path --sdk iphoneos)/usr/include/sys/syscall.h"
|
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
mkasm="go run mkasm_darwin.go"
|
mkasm="go run mkasm_darwin.go"
|
||||||
;;
|
;;
|
||||||
|
|
@ -184,6 +180,15 @@ openbsd_arm64)
|
||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
|
openbsd_mips64)
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
mksyscall="go run mksyscall.go -openbsd"
|
||||||
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
|
# Let the type of C char be signed for making the bare syscall
|
||||||
|
# API consistent across platforms.
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
|
;;
|
||||||
solaris_amd64)
|
solaris_amd64)
|
||||||
mksyscall="go run mksyscall_solaris.go"
|
mksyscall="go run mksyscall_solaris.go"
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
|
|
@ -217,8 +222,6 @@ esac
|
||||||
# aix/ppc64 script generates files instead of writing to stdin.
|
# aix/ppc64 script generates files instead of writing to stdin.
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
||||||
elif [ "$GOOS" == "darwin" ]; then
|
elif [ "$GOOS" == "darwin" ]; then
|
||||||
# pre-1.12, direct syscalls
|
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH,!go1.12 $syscall_goos syscall_darwin_${GOARCH}.1_11.go $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.1_11.go";
|
|
||||||
# 1.12 and later, syscalls via libSystem
|
# 1.12 and later, syscalls via libSystem
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
||||||
# 1.13 and later, syscalls via libSystem (including syscallPtr)
|
# 1.13 and later, syscalls via libSystem (including syscallPtr)
|
||||||
|
|
|
||||||
|
|
@ -193,9 +193,12 @@ struct ltchars {
|
||||||
#include <sys/xattr.h>
|
#include <sys/xattr.h>
|
||||||
#include <linux/bpf.h>
|
#include <linux/bpf.h>
|
||||||
#include <linux/can.h>
|
#include <linux/can.h>
|
||||||
|
#include <linux/can/error.h>
|
||||||
|
#include <linux/can/raw.h>
|
||||||
#include <linux/capability.h>
|
#include <linux/capability.h>
|
||||||
#include <linux/cryptouser.h>
|
#include <linux/cryptouser.h>
|
||||||
#include <linux/devlink.h>
|
#include <linux/devlink.h>
|
||||||
|
#include <linux/dm-ioctl.h>
|
||||||
#include <linux/errqueue.h>
|
#include <linux/errqueue.h>
|
||||||
#include <linux/falloc.h>
|
#include <linux/falloc.h>
|
||||||
#include <linux/fanotify.h>
|
#include <linux/fanotify.h>
|
||||||
|
|
@ -517,6 +520,7 @@ ccflags="$@"
|
||||||
$2 ~ /^FS_IOC_.*(ENCRYPTION|VERITY|[GS]ETFLAGS)/ ||
|
$2 ~ /^FS_IOC_.*(ENCRYPTION|VERITY|[GS]ETFLAGS)/ ||
|
||||||
$2 ~ /^FS_VERITY_/ ||
|
$2 ~ /^FS_VERITY_/ ||
|
||||||
$2 ~ /^FSCRYPT_/ ||
|
$2 ~ /^FSCRYPT_/ ||
|
||||||
|
$2 ~ /^DM_/ ||
|
||||||
$2 ~ /^GRND_/ ||
|
$2 ~ /^GRND_/ ||
|
||||||
$2 ~ /^RND/ ||
|
$2 ~ /^RND/ ||
|
||||||
$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
|
$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const _SYS_GETDIRENTRIES64 = 344
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
// To implement this using libSystem we'd need syscall_syscallPtr for
|
// To implement this using libSystem we'd need syscall_syscallPtr for
|
||||||
// fdopendir. However, syscallPtr was only added in Go 1.13, so we fall
|
// fdopendir. However, syscallPtr was only added in Go 1.13, so we fall
|
||||||
|
|
@ -20,7 +22,7 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
} else {
|
} else {
|
||||||
p = unsafe.Pointer(&_zero)
|
p = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
r0, _, e1 := Syscall6(_SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
return n, errnoErr(e1)
|
return n, errnoErr(e1)
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,11 @@ type SockaddrDatalink struct {
|
||||||
raw RawSockaddrDatalink
|
raw RawSockaddrDatalink
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Some external packages rely on SYS___SYSCTL being defined to implement their
|
||||||
|
// own sysctl wrappers. Provide it here, even though direct syscalls are no
|
||||||
|
// longer supported on darwin.
|
||||||
|
const SYS___SYSCTL = 202
|
||||||
|
|
||||||
// Translate "kern.hostname" to []_C_int{0,1,2,3}.
|
// Translate "kern.hostname" to []_C_int{0,1,2,3}.
|
||||||
func nametomib(name string) (mib []_C_int, err error) {
|
func nametomib(name string) (mib []_C_int, err error) {
|
||||||
const siz = unsafe.Sizeof(mib[0])
|
const siz = unsafe.Sizeof(mib[0])
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
// Copyright 2019 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
// +build darwin,386,!go1.12
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
|
||||||
|
|
@ -44,10 +44,6 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
|
||||||
// of darwin/386 the syscall is called sysctl instead of __sysctl.
|
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
|
||||||
|
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
// Copyright 2019 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
// +build darwin,amd64,!go1.12
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
|
||||||
|
|
@ -44,10 +44,6 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
|
||||||
// of darwin/amd64 the syscall is called sysctl instead of __sysctl.
|
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
|
||||||
|
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
// Copyright 2019 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
// +build darwin,arm,!go1.12
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|
||||||
return 0, ENOSYS
|
|
||||||
}
|
|
||||||
|
|
@ -44,10 +44,6 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
|
||||||
// of darwin/arm the syscall is called sysctl instead of __sysctl.
|
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
|
||||||
|
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
// Copyright 2019 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
// +build darwin,arm64,!go1.12
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|
||||||
return 0, ENOSYS
|
|
||||||
}
|
|
||||||
|
|
@ -46,10 +46,6 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic
|
||||||
|
|
||||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
|
||||||
// of darwin/arm64 the syscall is called sysctl instead of __sysctl.
|
|
||||||
const SYS___SYSCTL = SYS_SYSCTL
|
|
||||||
|
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||||
|
|
|
||||||
|
|
@ -82,15 +82,6 @@ func IoctlRetInt(fd int, req uint) (int, error) {
|
||||||
return int(ret), nil
|
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
|
|
||||||
// passing the integer value directly.
|
|
||||||
func IoctlSetPointerInt(fd int, req uint, value int) error {
|
|
||||||
v := int32(value)
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetRTCTime(fd int, value *RTCTime) error {
|
func IoctlSetRTCTime(fd int, value *RTCTime) error {
|
||||||
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value)))
|
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value)))
|
||||||
runtime.KeepAlive(value)
|
runtime.KeepAlive(value)
|
||||||
|
|
@ -885,6 +876,35 @@ func (sa *SockaddrL2TPIP6) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP6, nil
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP6, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SockaddrIUCV implements the Sockaddr interface for AF_IUCV sockets.
|
||||||
|
type SockaddrIUCV struct {
|
||||||
|
UserID string
|
||||||
|
Name string
|
||||||
|
raw RawSockaddrIUCV
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrIUCV) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
sa.raw.Family = AF_IUCV
|
||||||
|
// These are EBCDIC encoded by the kernel, but we still need to pad them
|
||||||
|
// with blanks. Initializing with blanks allows the caller to feed in either
|
||||||
|
// a padded or an unpadded string.
|
||||||
|
for i := 0; i < 8; i++ {
|
||||||
|
sa.raw.Nodeid[i] = ' '
|
||||||
|
sa.raw.User_id[i] = ' '
|
||||||
|
sa.raw.Name[i] = ' '
|
||||||
|
}
|
||||||
|
if len(sa.UserID) > 8 || len(sa.Name) > 8 {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
for i, b := range []byte(sa.UserID[:]) {
|
||||||
|
sa.raw.User_id[i] = int8(b)
|
||||||
|
}
|
||||||
|
for i, b := range []byte(sa.Name[:]) {
|
||||||
|
sa.raw.Name[i] = int8(b)
|
||||||
|
}
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrIUCV, nil
|
||||||
|
}
|
||||||
|
|
||||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
switch rsa.Addr.Family {
|
switch rsa.Addr.Family {
|
||||||
case AF_NETLINK:
|
case AF_NETLINK:
|
||||||
|
|
@ -1065,6 +1085,38 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
case AF_IUCV:
|
||||||
|
pp := (*RawSockaddrIUCV)(unsafe.Pointer(rsa))
|
||||||
|
|
||||||
|
var user [8]byte
|
||||||
|
var name [8]byte
|
||||||
|
|
||||||
|
for i := 0; i < 8; i++ {
|
||||||
|
user[i] = byte(pp.User_id[i])
|
||||||
|
name[i] = byte(pp.Name[i])
|
||||||
|
}
|
||||||
|
|
||||||
|
sa := &SockaddrIUCV{
|
||||||
|
UserID: string(user[:]),
|
||||||
|
Name: string(name[:]),
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
|
|
||||||
|
case AF_CAN:
|
||||||
|
pp := (*RawSockaddrCAN)(unsafe.Pointer(rsa))
|
||||||
|
sa := &SockaddrCAN{
|
||||||
|
Ifindex: int(pp.Ifindex),
|
||||||
|
}
|
||||||
|
rx := (*[4]byte)(unsafe.Pointer(&sa.RxID))
|
||||||
|
for i := 0; i < 4; i++ {
|
||||||
|
rx[i] = pp.Addr[i]
|
||||||
|
}
|
||||||
|
tx := (*[4]byte)(unsafe.Pointer(&sa.TxID))
|
||||||
|
for i := 0; i < 4; i++ {
|
||||||
|
tx[i] = pp.Addr[i+4]
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
return nil, EAFNOSUPPORT
|
return nil, EAFNOSUPPORT
|
||||||
}
|
}
|
||||||
|
|
@ -1965,10 +2017,15 @@ func isGroupMember(gid int) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys faccessat(dirfd int, path string, mode uint32) (err error)
|
//sys faccessat(dirfd int, path string, mode uint32) (err error)
|
||||||
|
//sys Faccessat2(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
|
|
||||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
if flags == 0 {
|
||||||
return EINVAL
|
return faccessat(dirfd, path, mode)
|
||||||
|
}
|
||||||
|
|
||||||
|
if err := Faccessat2(dirfd, path, mode, flags); err != ENOSYS && err != EPERM {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// The Linux kernel faccessat system call does not take any flags.
|
// The Linux kernel faccessat system call does not take any flags.
|
||||||
|
|
@ -1977,8 +2034,8 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
// Because people naturally expect syscall.Faccessat to act
|
// Because people naturally expect syscall.Faccessat to act
|
||||||
// like C faccessat, we do the same.
|
// like C faccessat, we do the same.
|
||||||
|
|
||||||
if flags == 0 {
|
if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
||||||
return faccessat(dirfd, path, mode)
|
return EINVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
var st Stat_t
|
var st Stat_t
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -49,10 +48,6 @@ func Pipe2(p []int, flags int) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Underlying system call writes to newoffset via pointer.
|
|
||||||
// Implemented in assembly to avoid allocation.
|
|
||||||
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
|
|
||||||
|
|
||||||
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||||
newoffset, errno := seek(fd, offset, whence)
|
newoffset, errno := seek(fd, offset, whence)
|
||||||
if errno != 0 {
|
if errno != 0 {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build arm,!gccgo,linux
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
// Underlying system call writes to newoffset via pointer.
|
||||||
|
// Implemented in assembly to avoid allocation.
|
||||||
|
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of OpenBSD the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
||||||
|
|
@ -244,8 +244,66 @@ const (
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
CAN_EFF_MASK = 0x1fffffff
|
CAN_EFF_MASK = 0x1fffffff
|
||||||
|
CAN_ERR_ACK = 0x20
|
||||||
|
CAN_ERR_BUSERROR = 0x80
|
||||||
|
CAN_ERR_BUSOFF = 0x40
|
||||||
|
CAN_ERR_CRTL = 0x4
|
||||||
|
CAN_ERR_CRTL_ACTIVE = 0x40
|
||||||
|
CAN_ERR_CRTL_RX_OVERFLOW = 0x1
|
||||||
|
CAN_ERR_CRTL_RX_PASSIVE = 0x10
|
||||||
|
CAN_ERR_CRTL_RX_WARNING = 0x4
|
||||||
|
CAN_ERR_CRTL_TX_OVERFLOW = 0x2
|
||||||
|
CAN_ERR_CRTL_TX_PASSIVE = 0x20
|
||||||
|
CAN_ERR_CRTL_TX_WARNING = 0x8
|
||||||
|
CAN_ERR_CRTL_UNSPEC = 0x0
|
||||||
|
CAN_ERR_DLC = 0x8
|
||||||
CAN_ERR_FLAG = 0x20000000
|
CAN_ERR_FLAG = 0x20000000
|
||||||
|
CAN_ERR_LOSTARB = 0x2
|
||||||
|
CAN_ERR_LOSTARB_UNSPEC = 0x0
|
||||||
CAN_ERR_MASK = 0x1fffffff
|
CAN_ERR_MASK = 0x1fffffff
|
||||||
|
CAN_ERR_PROT = 0x8
|
||||||
|
CAN_ERR_PROT_ACTIVE = 0x40
|
||||||
|
CAN_ERR_PROT_BIT = 0x1
|
||||||
|
CAN_ERR_PROT_BIT0 = 0x8
|
||||||
|
CAN_ERR_PROT_BIT1 = 0x10
|
||||||
|
CAN_ERR_PROT_FORM = 0x2
|
||||||
|
CAN_ERR_PROT_LOC_ACK = 0x19
|
||||||
|
CAN_ERR_PROT_LOC_ACK_DEL = 0x1b
|
||||||
|
CAN_ERR_PROT_LOC_CRC_DEL = 0x18
|
||||||
|
CAN_ERR_PROT_LOC_CRC_SEQ = 0x8
|
||||||
|
CAN_ERR_PROT_LOC_DATA = 0xa
|
||||||
|
CAN_ERR_PROT_LOC_DLC = 0xb
|
||||||
|
CAN_ERR_PROT_LOC_EOF = 0x1a
|
||||||
|
CAN_ERR_PROT_LOC_ID04_00 = 0xe
|
||||||
|
CAN_ERR_PROT_LOC_ID12_05 = 0xf
|
||||||
|
CAN_ERR_PROT_LOC_ID17_13 = 0x7
|
||||||
|
CAN_ERR_PROT_LOC_ID20_18 = 0x6
|
||||||
|
CAN_ERR_PROT_LOC_ID28_21 = 0x2
|
||||||
|
CAN_ERR_PROT_LOC_IDE = 0x5
|
||||||
|
CAN_ERR_PROT_LOC_INTERM = 0x12
|
||||||
|
CAN_ERR_PROT_LOC_RES0 = 0x9
|
||||||
|
CAN_ERR_PROT_LOC_RES1 = 0xd
|
||||||
|
CAN_ERR_PROT_LOC_RTR = 0xc
|
||||||
|
CAN_ERR_PROT_LOC_SOF = 0x3
|
||||||
|
CAN_ERR_PROT_LOC_SRTR = 0x4
|
||||||
|
CAN_ERR_PROT_LOC_UNSPEC = 0x0
|
||||||
|
CAN_ERR_PROT_OVERLOAD = 0x20
|
||||||
|
CAN_ERR_PROT_STUFF = 0x4
|
||||||
|
CAN_ERR_PROT_TX = 0x80
|
||||||
|
CAN_ERR_PROT_UNSPEC = 0x0
|
||||||
|
CAN_ERR_RESTARTED = 0x100
|
||||||
|
CAN_ERR_TRX = 0x10
|
||||||
|
CAN_ERR_TRX_CANH_NO_WIRE = 0x4
|
||||||
|
CAN_ERR_TRX_CANH_SHORT_TO_BAT = 0x5
|
||||||
|
CAN_ERR_TRX_CANH_SHORT_TO_GND = 0x7
|
||||||
|
CAN_ERR_TRX_CANH_SHORT_TO_VCC = 0x6
|
||||||
|
CAN_ERR_TRX_CANL_NO_WIRE = 0x40
|
||||||
|
CAN_ERR_TRX_CANL_SHORT_TO_BAT = 0x50
|
||||||
|
CAN_ERR_TRX_CANL_SHORT_TO_CANH = 0x80
|
||||||
|
CAN_ERR_TRX_CANL_SHORT_TO_GND = 0x70
|
||||||
|
CAN_ERR_TRX_CANL_SHORT_TO_VCC = 0x60
|
||||||
|
CAN_ERR_TRX_UNSPEC = 0x0
|
||||||
|
CAN_ERR_TX_TIMEOUT = 0x1
|
||||||
CAN_INV_FILTER = 0x20000000
|
CAN_INV_FILTER = 0x20000000
|
||||||
CAN_ISOTP = 0x6
|
CAN_ISOTP = 0x6
|
||||||
CAN_J1939 = 0x7
|
CAN_J1939 = 0x7
|
||||||
|
|
@ -265,6 +323,7 @@ const (
|
||||||
CAP_AUDIT_READ = 0x25
|
CAP_AUDIT_READ = 0x25
|
||||||
CAP_AUDIT_WRITE = 0x1d
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
CAP_BLOCK_SUSPEND = 0x24
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_BPF = 0x27
|
||||||
CAP_CHOWN = 0x0
|
CAP_CHOWN = 0x0
|
||||||
CAP_DAC_OVERRIDE = 0x1
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
CAP_DAC_READ_SEARCH = 0x2
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
|
@ -273,7 +332,7 @@ const (
|
||||||
CAP_IPC_LOCK = 0xe
|
CAP_IPC_LOCK = 0xe
|
||||||
CAP_IPC_OWNER = 0xf
|
CAP_IPC_OWNER = 0xf
|
||||||
CAP_KILL = 0x5
|
CAP_KILL = 0x5
|
||||||
CAP_LAST_CAP = 0x25
|
CAP_LAST_CAP = 0x27
|
||||||
CAP_LEASE = 0x1c
|
CAP_LEASE = 0x1c
|
||||||
CAP_LINUX_IMMUTABLE = 0x9
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
CAP_MAC_ADMIN = 0x21
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
|
@ -283,6 +342,7 @@ const (
|
||||||
CAP_NET_BIND_SERVICE = 0xa
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
CAP_NET_BROADCAST = 0xb
|
CAP_NET_BROADCAST = 0xb
|
||||||
CAP_NET_RAW = 0xd
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_PERFMON = 0x26
|
||||||
CAP_SETFCAP = 0x1f
|
CAP_SETFCAP = 0x1f
|
||||||
CAP_SETGID = 0x6
|
CAP_SETGID = 0x6
|
||||||
CAP_SETPCAP = 0x8
|
CAP_SETPCAP = 0x8
|
||||||
|
|
@ -372,8 +432,54 @@ const (
|
||||||
DEVLINK_GENL_NAME = "devlink"
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
DEVLINK_GENL_VERSION = 0x1
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
|
DEVMEM_MAGIC = 0x454d444d
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DMA_BUF_MAGIC = 0x444d4142
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
|
DM_ACTIVE_PRESENT_FLAG = 0x20
|
||||||
|
DM_BUFFER_FULL_FLAG = 0x100
|
||||||
|
DM_CONTROL_NODE = "control"
|
||||||
|
DM_DATA_OUT_FLAG = 0x10000
|
||||||
|
DM_DEFERRED_REMOVE = 0x20000
|
||||||
|
DM_DEV_ARM_POLL = 0xc138fd10
|
||||||
|
DM_DEV_CREATE = 0xc138fd03
|
||||||
|
DM_DEV_REMOVE = 0xc138fd04
|
||||||
|
DM_DEV_RENAME = 0xc138fd05
|
||||||
|
DM_DEV_SET_GEOMETRY = 0xc138fd0f
|
||||||
|
DM_DEV_STATUS = 0xc138fd07
|
||||||
|
DM_DEV_SUSPEND = 0xc138fd06
|
||||||
|
DM_DEV_WAIT = 0xc138fd08
|
||||||
|
DM_DIR = "mapper"
|
||||||
|
DM_GET_TARGET_VERSION = 0xc138fd11
|
||||||
|
DM_INACTIVE_PRESENT_FLAG = 0x40
|
||||||
|
DM_INTERNAL_SUSPEND_FLAG = 0x40000
|
||||||
|
DM_IOCTL = 0xfd
|
||||||
|
DM_LIST_DEVICES = 0xc138fd02
|
||||||
|
DM_LIST_VERSIONS = 0xc138fd0d
|
||||||
|
DM_MAX_TYPE_NAME = 0x10
|
||||||
|
DM_NAME_LEN = 0x80
|
||||||
|
DM_NOFLUSH_FLAG = 0x800
|
||||||
|
DM_PERSISTENT_DEV_FLAG = 0x8
|
||||||
|
DM_QUERY_INACTIVE_TABLE_FLAG = 0x1000
|
||||||
|
DM_READONLY_FLAG = 0x1
|
||||||
|
DM_REMOVE_ALL = 0xc138fd01
|
||||||
|
DM_SECURE_DATA_FLAG = 0x8000
|
||||||
|
DM_SKIP_BDGET_FLAG = 0x200
|
||||||
|
DM_SKIP_LOCKFS_FLAG = 0x400
|
||||||
|
DM_STATUS_TABLE_FLAG = 0x10
|
||||||
|
DM_SUSPEND_FLAG = 0x2
|
||||||
|
DM_TABLE_CLEAR = 0xc138fd0a
|
||||||
|
DM_TABLE_DEPS = 0xc138fd0b
|
||||||
|
DM_TABLE_LOAD = 0xc138fd09
|
||||||
|
DM_TABLE_STATUS = 0xc138fd0c
|
||||||
|
DM_TARGET_MSG = 0xc138fd0e
|
||||||
|
DM_UEVENT_GENERATED_FLAG = 0x2000
|
||||||
|
DM_UUID_FLAG = 0x4000
|
||||||
|
DM_UUID_LEN = 0x81
|
||||||
|
DM_VERSION = 0xc138fd00
|
||||||
|
DM_VERSION_EXTRA = "-ioctl (2020-02-27)"
|
||||||
|
DM_VERSION_MAJOR = 0x4
|
||||||
|
DM_VERSION_MINOR = 0x2a
|
||||||
|
DM_VERSION_PATCHLEVEL = 0x0
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
|
@ -475,6 +581,7 @@ const (
|
||||||
ETH_P_MOBITEX = 0x15
|
ETH_P_MOBITEX = 0x15
|
||||||
ETH_P_MPLS_MC = 0x8848
|
ETH_P_MPLS_MC = 0x8848
|
||||||
ETH_P_MPLS_UC = 0x8847
|
ETH_P_MPLS_UC = 0x8847
|
||||||
|
ETH_P_MRP = 0x88e3
|
||||||
ETH_P_MVRP = 0x88f5
|
ETH_P_MVRP = 0x88f5
|
||||||
ETH_P_NCSI = 0x88f8
|
ETH_P_NCSI = 0x88f8
|
||||||
ETH_P_NSH = 0x894f
|
ETH_P_NSH = 0x894f
|
||||||
|
|
@ -602,8 +709,9 @@ const (
|
||||||
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
|
FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
|
FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
|
FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FSCRYPT_POLICY_FLAGS_VALID = 0xf
|
FSCRYPT_POLICY_FLAGS_VALID = 0x1f
|
||||||
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
|
FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4
|
||||||
|
FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32 = 0x10
|
||||||
FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
|
FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8
|
||||||
FSCRYPT_POLICY_V1 = 0x0
|
FSCRYPT_POLICY_V1 = 0x0
|
||||||
FSCRYPT_POLICY_V2 = 0x2
|
FSCRYPT_POLICY_V2 = 0x2
|
||||||
|
|
@ -632,7 +740,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_4 = 0x0
|
FS_POLICY_FLAGS_PAD_4 = 0x0
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0xf
|
FS_POLICY_FLAGS_VALID = 0x1f
|
||||||
FS_VERITY_FL = 0x100000
|
FS_VERITY_FL = 0x100000
|
||||||
FS_VERITY_HASH_ALG_SHA256 = 0x1
|
FS_VERITY_HASH_ALG_SHA256 = 0x1
|
||||||
FS_VERITY_HASH_ALG_SHA512 = 0x2
|
FS_VERITY_HASH_ALG_SHA512 = 0x2
|
||||||
|
|
@ -834,6 +942,7 @@ const (
|
||||||
IPPROTO_EGP = 0x8
|
IPPROTO_EGP = 0x8
|
||||||
IPPROTO_ENCAP = 0x62
|
IPPROTO_ENCAP = 0x62
|
||||||
IPPROTO_ESP = 0x32
|
IPPROTO_ESP = 0x32
|
||||||
|
IPPROTO_ETHERNET = 0x8f
|
||||||
IPPROTO_FRAGMENT = 0x2c
|
IPPROTO_FRAGMENT = 0x2c
|
||||||
IPPROTO_GRE = 0x2f
|
IPPROTO_GRE = 0x2f
|
||||||
IPPROTO_HOPOPTS = 0x0
|
IPPROTO_HOPOPTS = 0x0
|
||||||
|
|
@ -847,6 +956,7 @@ const (
|
||||||
IPPROTO_L2TP = 0x73
|
IPPROTO_L2TP = 0x73
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
IPPROTO_MPLS = 0x89
|
IPPROTO_MPLS = 0x89
|
||||||
|
IPPROTO_MPTCP = 0x106
|
||||||
IPPROTO_MTP = 0x5c
|
IPPROTO_MTP = 0x5c
|
||||||
IPPROTO_NONE = 0x3b
|
IPPROTO_NONE = 0x3b
|
||||||
IPPROTO_PIM = 0x67
|
IPPROTO_PIM = 0x67
|
||||||
|
|
@ -1016,6 +1126,7 @@ const (
|
||||||
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NOTIFICATIONS = 0x4
|
||||||
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
|
|
@ -1053,6 +1164,7 @@ const (
|
||||||
KEYCTL_SUPPORTS_VERIFY = 0x8
|
KEYCTL_SUPPORTS_VERIFY = 0x8
|
||||||
KEYCTL_UNLINK = 0x9
|
KEYCTL_UNLINK = 0x9
|
||||||
KEYCTL_UPDATE = 0x2
|
KEYCTL_UPDATE = 0x2
|
||||||
|
KEYCTL_WATCH_KEY = 0x20
|
||||||
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
KEY_REQKEY_DEFL_DEFAULT = 0x0
|
||||||
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
|
||||||
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
KEY_REQKEY_DEFL_NO_CHANGE = -0x1
|
||||||
|
|
@ -1096,6 +1208,8 @@ const (
|
||||||
LOOP_SET_FD = 0x4c00
|
LOOP_SET_FD = 0x4c00
|
||||||
LOOP_SET_STATUS = 0x4c02
|
LOOP_SET_STATUS = 0x4c02
|
||||||
LOOP_SET_STATUS64 = 0x4c04
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LOOP_SET_STATUS_CLEARABLE_FLAGS = 0x4
|
||||||
|
LOOP_SET_STATUS_SETTABLE_FLAGS = 0xc
|
||||||
LO_KEY_SIZE = 0x20
|
LO_KEY_SIZE = 0x20
|
||||||
LO_NAME_SIZE = 0x40
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_COLD = 0x14
|
MADV_COLD = 0x14
|
||||||
|
|
@ -1929,6 +2043,7 @@ const (
|
||||||
SOL_ATM = 0x108
|
SOL_ATM = 0x108
|
||||||
SOL_CAIF = 0x116
|
SOL_CAIF = 0x116
|
||||||
SOL_CAN_BASE = 0x64
|
SOL_CAN_BASE = 0x64
|
||||||
|
SOL_CAN_RAW = 0x65
|
||||||
SOL_DCCP = 0x10d
|
SOL_DCCP = 0x10d
|
||||||
SOL_DECNET = 0x105
|
SOL_DECNET = 0x105
|
||||||
SOL_ICMPV6 = 0x3a
|
SOL_ICMPV6 = 0x3a
|
||||||
|
|
@ -1992,8 +2107,10 @@ const (
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
STATX_ATTR_AUTOMOUNT = 0x1000
|
STATX_ATTR_AUTOMOUNT = 0x1000
|
||||||
STATX_ATTR_COMPRESSED = 0x4
|
STATX_ATTR_COMPRESSED = 0x4
|
||||||
|
STATX_ATTR_DAX = 0x2000
|
||||||
STATX_ATTR_ENCRYPTED = 0x800
|
STATX_ATTR_ENCRYPTED = 0x800
|
||||||
STATX_ATTR_IMMUTABLE = 0x10
|
STATX_ATTR_IMMUTABLE = 0x10
|
||||||
|
STATX_ATTR_MOUNT_ROOT = 0x2000
|
||||||
STATX_ATTR_NODUMP = 0x40
|
STATX_ATTR_NODUMP = 0x40
|
||||||
STATX_ATTR_VERITY = 0x100000
|
STATX_ATTR_VERITY = 0x100000
|
||||||
STATX_BASIC_STATS = 0x7ff
|
STATX_BASIC_STATS = 0x7ff
|
||||||
|
|
@ -2002,6 +2119,7 @@ const (
|
||||||
STATX_CTIME = 0x80
|
STATX_CTIME = 0x80
|
||||||
STATX_GID = 0x10
|
STATX_GID = 0x10
|
||||||
STATX_INO = 0x100
|
STATX_INO = 0x100
|
||||||
|
STATX_MNT_ID = 0x1000
|
||||||
STATX_MODE = 0x2
|
STATX_MODE = 0x2
|
||||||
STATX_MTIME = 0x40
|
STATX_MTIME = 0x40
|
||||||
STATX_NLINK = 0x4
|
STATX_NLINK = 0x4
|
||||||
|
|
|
||||||
|
|
@ -192,6 +192,7 @@ const (
|
||||||
PPPIOCSRASYNCMAP = 0x40047454
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
PPPIOCSXASYNCMAP = 0x4020744f
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
PPPIOCXFERUNIT = 0x744e
|
PPPIOCXFERUNIT = 0x744e
|
||||||
|
PROT_BTI = 0x10
|
||||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||||
PTRACE_SYSEMU = 0x1f
|
PTRACE_SYSEMU = 0x1f
|
||||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1821,6 +1821,21 @@ func faccessat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FACCESSAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
|
func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(pathname)
|
_p0, err = BytePtrFromString(pathname)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// go run mksyscall.go -tags darwin,arm64,!go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.1_11.go syscall_darwin_arm64.go
|
// go run mksyscall.go -openbsd -tags openbsd,mips64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_mips64.go
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build darwin,arm64,!go1.12
|
// +build openbsd,mips64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|
@ -350,8 +350,8 @@ func Munlockall() (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_GETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -360,10 +360,15 @@ func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintp
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe() (r int, w int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
var _p0 unsafe.Pointer
|
||||||
r = int(r0)
|
if len(buf) > 0 {
|
||||||
w = int(r1)
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
|
||||||
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -372,163 +377,15 @@ func pipe() (r int, w int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
|
func Getcwd(buf []byte) (n int, err error) {
|
||||||
var _p0 *byte
|
var _p0 unsafe.Pointer
|
||||||
_p0, err = BytePtrFromString(path)
|
if len(buf) > 0 {
|
||||||
if err != nil {
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
return
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
var _p1 *byte
|
r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
|
||||||
_p1, err = BytePtrFromString(attr)
|
n = int(r0)
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
|
|
||||||
sz = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
|
|
||||||
sz = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(path)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
var _p1 *byte
|
|
||||||
_p1, err = BytePtrFromString(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func removexattr(path string, attr string, options int) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(path)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
var _p1 *byte
|
|
||||||
_p1, err = BytePtrFromString(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func fremovexattr(fd int, attr string, options int) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(path)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
|
|
||||||
sz = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
|
|
||||||
r0, _, e1 := Syscall6(SYS_FLISTXATTR, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
|
|
||||||
sz = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
|
|
||||||
_, _, e1 := Syscall6(SYS_SETATTRLIST, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func fcntl(fd int, cmd int, arg int) (val int, err error) {
|
|
||||||
r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
|
|
||||||
val = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func kill(pid int, signum int, posix int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -554,7 +411,7 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_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))
|
_, _, 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 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -563,8 +420,9 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
|
func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||||
_, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -704,18 +562,8 @@ func Dup2(from int, to int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Exchangedata(path1 string, path2 string, options int) (err error) {
|
func Dup3(from int, to int, flags int) (err error) {
|
||||||
var _p0 *byte
|
_, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags))
|
||||||
_p0, err = BytePtrFromString(path1)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
var _p1 *byte
|
|
||||||
_p1, err = BytePtrFromString(path2)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -837,6 +685,41 @@ func Fpathconf(fd int, name int) (val int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fstat(fd int, stat *Stat_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fsync(fd int) (err error) {
|
func Fsync(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
@ -848,7 +731,7 @@ func Fsync(fd int) (err error) {
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Ftruncate(fd int, length int64) (err error) {
|
func Ftruncate(fd int, length int64) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
|
_, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -857,14 +740,6 @@ func Ftruncate(fd int, length int64) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getdtablesize() (size int) {
|
|
||||||
r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0)
|
|
||||||
size = int(r0)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Getegid() (egid int) {
|
func Getegid() (egid int) {
|
||||||
r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
|
r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
|
||||||
egid = int(r0)
|
egid = int(r0)
|
||||||
|
|
@ -945,6 +820,17 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Getrtable() (rtable int, err error) {
|
||||||
|
r0, _, e1 := RawSyscall(SYS_GETRTABLE, 0, 0, 0)
|
||||||
|
rtable = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getrusage(who int, rusage *Rusage) (err error) {
|
func Getrusage(who int, rusage *Rusage) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
|
_, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
@ -966,8 +852,8 @@ func Getsid(pid int) (sid int, err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Gettimeofday(tp *Timeval) (err error) {
|
func Gettimeofday(tv *Timeval) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -985,13 +871,23 @@ func Getuid() (uid int) {
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Issetugid() (tainted bool) {
|
func Issetugid() (tainted bool) {
|
||||||
r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0)
|
r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
|
||||||
tainted = bool(r0 != 0)
|
tainted = bool(r0 != 0)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Kill(pid int, signum syscall.Signal) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Kqueue() (fd int, err error) {
|
func Kqueue() (fd int, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
|
r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)
|
||||||
fd = int(r0)
|
fd = int(r0)
|
||||||
|
|
@ -1068,6 +964,21 @@ func Listen(s int, backlog int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Lstat(path string, stat *Stat_t) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkdir(path string, mode uint32) (err error) {
|
func Mkdir(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
@ -1113,6 +1024,21 @@ func Mkfifo(path string, mode uint32) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
@ -1128,6 +1054,31 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
@ -1183,7 +1134,7 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) {
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
|
@ -1200,7 +1151,7 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
|
r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
|
@ -1342,7 +1293,7 @@ func Rmdir(path string) (err error) {
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||||
r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
|
r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0)
|
||||||
newoffset = int64(r0)
|
newoffset = int64(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
|
@ -1364,7 +1315,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setegid(egid int) (err error) {
|
func Setegid(egid int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -1428,16 +1379,6 @@ func Setpriority(which int, who int, prio int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setprivexec(flag int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Setregid(rgid int, egid int) (err error) {
|
func Setregid(rgid int, egid int) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
|
_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
@ -1458,6 +1399,26 @@ func Setreuid(ruid int, euid int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setresgid(rgid int, egid int, sgid int) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setresuid(ruid int, euid int, suid int) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setrlimit(which int, lim *Rlimit) (err error) {
|
func Setrlimit(which int, lim *Rlimit) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
@ -1468,6 +1429,16 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setrtable(rtable int) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETRTABLE, uintptr(rtable), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setsid() (pid int, err error) {
|
func Setsid() (pid int, err error) {
|
||||||
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
|
||||||
pid = int(r0)
|
pid = int(r0)
|
||||||
|
|
@ -1499,6 +1470,36 @@ func Setuid(uid int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Stat(path string, stat *Stat_t) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Statfs(path string, stat *Statfs_t) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Symlink(path string, link string) (err error) {
|
func Symlink(path string, link string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
@ -1555,7 +1556,7 @@ func Truncate(path string, length int64) (err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
|
_, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -1572,21 +1573,6 @@ func Umask(newmask int) (oldmask int) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Undelete(path string) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(path)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Unlink(path string) (err error) {
|
func Unlink(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
@ -1650,7 +1636,7 @@ func write(fd int, p []byte) (n int, err error) {
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
|
func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
|
||||||
r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
|
r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0)
|
||||||
ret = uintptr(r0)
|
ret = uintptr(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
|
|
@ -1692,89 +1678,13 @@ 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
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstat(fd int, stat *Stat_t) (err error) {
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
|
|
||||||
r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(buf), uintptr(size), uintptr(flags))
|
|
||||||
n = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Lstat(path string, stat *Stat_t) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(path)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Stat(path string, stat *Stat_t) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(path)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Statfs(path string, stat *Statfs_t) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(path)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,279 @@
|
||||||
|
// go run mksysctl_openbsd.go
|
||||||
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build mips64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
type mibentry struct {
|
||||||
|
ctlname string
|
||||||
|
ctloid []_C_int
|
||||||
|
}
|
||||||
|
|
||||||
|
var sysctlMib = []mibentry{
|
||||||
|
{"ddb.console", []_C_int{9, 6}},
|
||||||
|
{"ddb.log", []_C_int{9, 7}},
|
||||||
|
{"ddb.max_line", []_C_int{9, 3}},
|
||||||
|
{"ddb.max_width", []_C_int{9, 2}},
|
||||||
|
{"ddb.panic", []_C_int{9, 5}},
|
||||||
|
{"ddb.profile", []_C_int{9, 9}},
|
||||||
|
{"ddb.radix", []_C_int{9, 1}},
|
||||||
|
{"ddb.tab_stop_width", []_C_int{9, 4}},
|
||||||
|
{"ddb.trigger", []_C_int{9, 8}},
|
||||||
|
{"fs.posix.setuid", []_C_int{3, 1, 1}},
|
||||||
|
{"hw.allowpowerdown", []_C_int{6, 22}},
|
||||||
|
{"hw.byteorder", []_C_int{6, 4}},
|
||||||
|
{"hw.cpuspeed", []_C_int{6, 12}},
|
||||||
|
{"hw.diskcount", []_C_int{6, 10}},
|
||||||
|
{"hw.disknames", []_C_int{6, 8}},
|
||||||
|
{"hw.diskstats", []_C_int{6, 9}},
|
||||||
|
{"hw.machine", []_C_int{6, 1}},
|
||||||
|
{"hw.model", []_C_int{6, 2}},
|
||||||
|
{"hw.ncpu", []_C_int{6, 3}},
|
||||||
|
{"hw.ncpufound", []_C_int{6, 21}},
|
||||||
|
{"hw.ncpuonline", []_C_int{6, 25}},
|
||||||
|
{"hw.pagesize", []_C_int{6, 7}},
|
||||||
|
{"hw.perfpolicy", []_C_int{6, 23}},
|
||||||
|
{"hw.physmem", []_C_int{6, 19}},
|
||||||
|
{"hw.product", []_C_int{6, 15}},
|
||||||
|
{"hw.serialno", []_C_int{6, 17}},
|
||||||
|
{"hw.setperf", []_C_int{6, 13}},
|
||||||
|
{"hw.smt", []_C_int{6, 24}},
|
||||||
|
{"hw.usermem", []_C_int{6, 20}},
|
||||||
|
{"hw.uuid", []_C_int{6, 18}},
|
||||||
|
{"hw.vendor", []_C_int{6, 14}},
|
||||||
|
{"hw.version", []_C_int{6, 16}},
|
||||||
|
{"kern.allowdt", []_C_int{1, 65}},
|
||||||
|
{"kern.allowkmem", []_C_int{1, 52}},
|
||||||
|
{"kern.argmax", []_C_int{1, 8}},
|
||||||
|
{"kern.audio", []_C_int{1, 84}},
|
||||||
|
{"kern.boottime", []_C_int{1, 21}},
|
||||||
|
{"kern.bufcachepercent", []_C_int{1, 72}},
|
||||||
|
{"kern.ccpu", []_C_int{1, 45}},
|
||||||
|
{"kern.clockrate", []_C_int{1, 12}},
|
||||||
|
{"kern.consbuf", []_C_int{1, 83}},
|
||||||
|
{"kern.consbufsize", []_C_int{1, 82}},
|
||||||
|
{"kern.consdev", []_C_int{1, 75}},
|
||||||
|
{"kern.cp_time", []_C_int{1, 40}},
|
||||||
|
{"kern.cp_time2", []_C_int{1, 71}},
|
||||||
|
{"kern.cpustats", []_C_int{1, 85}},
|
||||||
|
{"kern.domainname", []_C_int{1, 22}},
|
||||||
|
{"kern.file", []_C_int{1, 73}},
|
||||||
|
{"kern.forkstat", []_C_int{1, 42}},
|
||||||
|
{"kern.fscale", []_C_int{1, 46}},
|
||||||
|
{"kern.fsync", []_C_int{1, 33}},
|
||||||
|
{"kern.global_ptrace", []_C_int{1, 81}},
|
||||||
|
{"kern.hostid", []_C_int{1, 11}},
|
||||||
|
{"kern.hostname", []_C_int{1, 10}},
|
||||||
|
{"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}},
|
||||||
|
{"kern.job_control", []_C_int{1, 19}},
|
||||||
|
{"kern.malloc.buckets", []_C_int{1, 39, 1}},
|
||||||
|
{"kern.malloc.kmemnames", []_C_int{1, 39, 3}},
|
||||||
|
{"kern.maxclusters", []_C_int{1, 67}},
|
||||||
|
{"kern.maxfiles", []_C_int{1, 7}},
|
||||||
|
{"kern.maxlocksperuid", []_C_int{1, 70}},
|
||||||
|
{"kern.maxpartitions", []_C_int{1, 23}},
|
||||||
|
{"kern.maxproc", []_C_int{1, 6}},
|
||||||
|
{"kern.maxthread", []_C_int{1, 25}},
|
||||||
|
{"kern.maxvnodes", []_C_int{1, 5}},
|
||||||
|
{"kern.mbstat", []_C_int{1, 59}},
|
||||||
|
{"kern.msgbuf", []_C_int{1, 48}},
|
||||||
|
{"kern.msgbufsize", []_C_int{1, 38}},
|
||||||
|
{"kern.nchstats", []_C_int{1, 41}},
|
||||||
|
{"kern.netlivelocks", []_C_int{1, 76}},
|
||||||
|
{"kern.nfiles", []_C_int{1, 56}},
|
||||||
|
{"kern.ngroups", []_C_int{1, 18}},
|
||||||
|
{"kern.nosuidcoredump", []_C_int{1, 32}},
|
||||||
|
{"kern.nprocs", []_C_int{1, 47}},
|
||||||
|
{"kern.nselcoll", []_C_int{1, 43}},
|
||||||
|
{"kern.nthreads", []_C_int{1, 26}},
|
||||||
|
{"kern.numvnodes", []_C_int{1, 58}},
|
||||||
|
{"kern.osrelease", []_C_int{1, 2}},
|
||||||
|
{"kern.osrevision", []_C_int{1, 3}},
|
||||||
|
{"kern.ostype", []_C_int{1, 1}},
|
||||||
|
{"kern.osversion", []_C_int{1, 27}},
|
||||||
|
{"kern.pfstatus", []_C_int{1, 86}},
|
||||||
|
{"kern.pool_debug", []_C_int{1, 77}},
|
||||||
|
{"kern.posix1version", []_C_int{1, 17}},
|
||||||
|
{"kern.proc", []_C_int{1, 66}},
|
||||||
|
{"kern.rawpartition", []_C_int{1, 24}},
|
||||||
|
{"kern.saved_ids", []_C_int{1, 20}},
|
||||||
|
{"kern.securelevel", []_C_int{1, 9}},
|
||||||
|
{"kern.seminfo", []_C_int{1, 61}},
|
||||||
|
{"kern.shminfo", []_C_int{1, 62}},
|
||||||
|
{"kern.somaxconn", []_C_int{1, 28}},
|
||||||
|
{"kern.sominconn", []_C_int{1, 29}},
|
||||||
|
{"kern.splassert", []_C_int{1, 54}},
|
||||||
|
{"kern.stackgap_random", []_C_int{1, 50}},
|
||||||
|
{"kern.sysvipc_info", []_C_int{1, 51}},
|
||||||
|
{"kern.sysvmsg", []_C_int{1, 34}},
|
||||||
|
{"kern.sysvsem", []_C_int{1, 35}},
|
||||||
|
{"kern.sysvshm", []_C_int{1, 36}},
|
||||||
|
{"kern.timecounter.choice", []_C_int{1, 69, 4}},
|
||||||
|
{"kern.timecounter.hardware", []_C_int{1, 69, 3}},
|
||||||
|
{"kern.timecounter.tick", []_C_int{1, 69, 1}},
|
||||||
|
{"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}},
|
||||||
|
{"kern.timeout_stats", []_C_int{1, 87}},
|
||||||
|
{"kern.tty.tk_cancc", []_C_int{1, 44, 4}},
|
||||||
|
{"kern.tty.tk_nin", []_C_int{1, 44, 1}},
|
||||||
|
{"kern.tty.tk_nout", []_C_int{1, 44, 2}},
|
||||||
|
{"kern.tty.tk_rawcc", []_C_int{1, 44, 3}},
|
||||||
|
{"kern.tty.ttyinfo", []_C_int{1, 44, 5}},
|
||||||
|
{"kern.ttycount", []_C_int{1, 57}},
|
||||||
|
{"kern.utc_offset", []_C_int{1, 88}},
|
||||||
|
{"kern.version", []_C_int{1, 4}},
|
||||||
|
{"kern.watchdog.auto", []_C_int{1, 64, 2}},
|
||||||
|
{"kern.watchdog.period", []_C_int{1, 64, 1}},
|
||||||
|
{"kern.witnesswatch", []_C_int{1, 53}},
|
||||||
|
{"kern.wxabort", []_C_int{1, 74}},
|
||||||
|
{"net.bpf.bufsize", []_C_int{4, 31, 1}},
|
||||||
|
{"net.bpf.maxbufsize", []_C_int{4, 31, 2}},
|
||||||
|
{"net.inet.ah.enable", []_C_int{4, 2, 51, 1}},
|
||||||
|
{"net.inet.ah.stats", []_C_int{4, 2, 51, 2}},
|
||||||
|
{"net.inet.carp.allow", []_C_int{4, 2, 112, 1}},
|
||||||
|
{"net.inet.carp.log", []_C_int{4, 2, 112, 3}},
|
||||||
|
{"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}},
|
||||||
|
{"net.inet.carp.stats", []_C_int{4, 2, 112, 4}},
|
||||||
|
{"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}},
|
||||||
|
{"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}},
|
||||||
|
{"net.inet.divert.stats", []_C_int{4, 2, 258, 3}},
|
||||||
|
{"net.inet.esp.enable", []_C_int{4, 2, 50, 1}},
|
||||||
|
{"net.inet.esp.stats", []_C_int{4, 2, 50, 4}},
|
||||||
|
{"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}},
|
||||||
|
{"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}},
|
||||||
|
{"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}},
|
||||||
|
{"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}},
|
||||||
|
{"net.inet.gre.allow", []_C_int{4, 2, 47, 1}},
|
||||||
|
{"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}},
|
||||||
|
{"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}},
|
||||||
|
{"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}},
|
||||||
|
{"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}},
|
||||||
|
{"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}},
|
||||||
|
{"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}},
|
||||||
|
{"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}},
|
||||||
|
{"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}},
|
||||||
|
{"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}},
|
||||||
|
{"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}},
|
||||||
|
{"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}},
|
||||||
|
{"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}},
|
||||||
|
{"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}},
|
||||||
|
{"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}},
|
||||||
|
{"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}},
|
||||||
|
{"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}},
|
||||||
|
{"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}},
|
||||||
|
{"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}},
|
||||||
|
{"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}},
|
||||||
|
{"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}},
|
||||||
|
{"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}},
|
||||||
|
{"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}},
|
||||||
|
{"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}},
|
||||||
|
{"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}},
|
||||||
|
{"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}},
|
||||||
|
{"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}},
|
||||||
|
{"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}},
|
||||||
|
{"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}},
|
||||||
|
{"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}},
|
||||||
|
{"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}},
|
||||||
|
{"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}},
|
||||||
|
{"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}},
|
||||||
|
{"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}},
|
||||||
|
{"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}},
|
||||||
|
{"net.inet.ip.stats", []_C_int{4, 2, 0, 33}},
|
||||||
|
{"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}},
|
||||||
|
{"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}},
|
||||||
|
{"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}},
|
||||||
|
{"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}},
|
||||||
|
{"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}},
|
||||||
|
{"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}},
|
||||||
|
{"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}},
|
||||||
|
{"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}},
|
||||||
|
{"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}},
|
||||||
|
{"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}},
|
||||||
|
{"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}},
|
||||||
|
{"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}},
|
||||||
|
{"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}},
|
||||||
|
{"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}},
|
||||||
|
{"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}},
|
||||||
|
{"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}},
|
||||||
|
{"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}},
|
||||||
|
{"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}},
|
||||||
|
{"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}},
|
||||||
|
{"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}},
|
||||||
|
{"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}},
|
||||||
|
{"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}},
|
||||||
|
{"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}},
|
||||||
|
{"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}},
|
||||||
|
{"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}},
|
||||||
|
{"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}},
|
||||||
|
{"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}},
|
||||||
|
{"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}},
|
||||||
|
{"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}},
|
||||||
|
{"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}},
|
||||||
|
{"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}},
|
||||||
|
{"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}},
|
||||||
|
{"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}},
|
||||||
|
{"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}},
|
||||||
|
{"net.inet.udp.stats", []_C_int{4, 2, 17, 5}},
|
||||||
|
{"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}},
|
||||||
|
{"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}},
|
||||||
|
{"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}},
|
||||||
|
{"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}},
|
||||||
|
{"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}},
|
||||||
|
{"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}},
|
||||||
|
{"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}},
|
||||||
|
{"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}},
|
||||||
|
{"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}},
|
||||||
|
{"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}},
|
||||||
|
{"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}},
|
||||||
|
{"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}},
|
||||||
|
{"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}},
|
||||||
|
{"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}},
|
||||||
|
{"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}},
|
||||||
|
{"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}},
|
||||||
|
{"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}},
|
||||||
|
{"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}},
|
||||||
|
{"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}},
|
||||||
|
{"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}},
|
||||||
|
{"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}},
|
||||||
|
{"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}},
|
||||||
|
{"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}},
|
||||||
|
{"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}},
|
||||||
|
{"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}},
|
||||||
|
{"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}},
|
||||||
|
{"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}},
|
||||||
|
{"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}},
|
||||||
|
{"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}},
|
||||||
|
{"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}},
|
||||||
|
{"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}},
|
||||||
|
{"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}},
|
||||||
|
{"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}},
|
||||||
|
{"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}},
|
||||||
|
{"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}},
|
||||||
|
{"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}},
|
||||||
|
{"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}},
|
||||||
|
{"net.key.sadb_dump", []_C_int{4, 30, 1}},
|
||||||
|
{"net.key.spd_dump", []_C_int{4, 30, 2}},
|
||||||
|
{"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}},
|
||||||
|
{"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}},
|
||||||
|
{"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}},
|
||||||
|
{"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}},
|
||||||
|
{"net.mpls.mapttl_ip", []_C_int{4, 33, 5}},
|
||||||
|
{"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}},
|
||||||
|
{"net.mpls.ttl", []_C_int{4, 33, 2}},
|
||||||
|
{"net.pflow.stats", []_C_int{4, 34, 1}},
|
||||||
|
{"net.pipex.enable", []_C_int{4, 35, 1}},
|
||||||
|
{"vm.anonmin", []_C_int{2, 7}},
|
||||||
|
{"vm.loadavg", []_C_int{2, 2}},
|
||||||
|
{"vm.malloc_conf", []_C_int{2, 12}},
|
||||||
|
{"vm.maxslp", []_C_int{2, 10}},
|
||||||
|
{"vm.nkmempages", []_C_int{2, 6}},
|
||||||
|
{"vm.psstrings", []_C_int{2, 3}},
|
||||||
|
{"vm.swapencrypt.enable", []_C_int{2, 5, 0}},
|
||||||
|
{"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}},
|
||||||
|
{"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}},
|
||||||
|
{"vm.uspace", []_C_int{2, 11}},
|
||||||
|
{"vm.uvmexp", []_C_int{2, 4}},
|
||||||
|
{"vm.vmmeter", []_C_int{2, 1}},
|
||||||
|
{"vm.vnodemin", []_C_int{2, 9}},
|
||||||
|
{"vm.vtextmin", []_C_int{2, 8}},
|
||||||
|
}
|
||||||
|
|
@ -1,436 +0,0 @@
|
||||||
// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/syscall.h
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build 386,darwin
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
SYS_SYSCALL = 0
|
|
||||||
SYS_EXIT = 1
|
|
||||||
SYS_FORK = 2
|
|
||||||
SYS_READ = 3
|
|
||||||
SYS_WRITE = 4
|
|
||||||
SYS_OPEN = 5
|
|
||||||
SYS_CLOSE = 6
|
|
||||||
SYS_WAIT4 = 7
|
|
||||||
SYS_LINK = 9
|
|
||||||
SYS_UNLINK = 10
|
|
||||||
SYS_CHDIR = 12
|
|
||||||
SYS_FCHDIR = 13
|
|
||||||
SYS_MKNOD = 14
|
|
||||||
SYS_CHMOD = 15
|
|
||||||
SYS_CHOWN = 16
|
|
||||||
SYS_GETFSSTAT = 18
|
|
||||||
SYS_GETPID = 20
|
|
||||||
SYS_SETUID = 23
|
|
||||||
SYS_GETUID = 24
|
|
||||||
SYS_GETEUID = 25
|
|
||||||
SYS_PTRACE = 26
|
|
||||||
SYS_RECVMSG = 27
|
|
||||||
SYS_SENDMSG = 28
|
|
||||||
SYS_RECVFROM = 29
|
|
||||||
SYS_ACCEPT = 30
|
|
||||||
SYS_GETPEERNAME = 31
|
|
||||||
SYS_GETSOCKNAME = 32
|
|
||||||
SYS_ACCESS = 33
|
|
||||||
SYS_CHFLAGS = 34
|
|
||||||
SYS_FCHFLAGS = 35
|
|
||||||
SYS_SYNC = 36
|
|
||||||
SYS_KILL = 37
|
|
||||||
SYS_GETPPID = 39
|
|
||||||
SYS_DUP = 41
|
|
||||||
SYS_PIPE = 42
|
|
||||||
SYS_GETEGID = 43
|
|
||||||
SYS_SIGACTION = 46
|
|
||||||
SYS_GETGID = 47
|
|
||||||
SYS_SIGPROCMASK = 48
|
|
||||||
SYS_GETLOGIN = 49
|
|
||||||
SYS_SETLOGIN = 50
|
|
||||||
SYS_ACCT = 51
|
|
||||||
SYS_SIGPENDING = 52
|
|
||||||
SYS_SIGALTSTACK = 53
|
|
||||||
SYS_IOCTL = 54
|
|
||||||
SYS_REBOOT = 55
|
|
||||||
SYS_REVOKE = 56
|
|
||||||
SYS_SYMLINK = 57
|
|
||||||
SYS_READLINK = 58
|
|
||||||
SYS_EXECVE = 59
|
|
||||||
SYS_UMASK = 60
|
|
||||||
SYS_CHROOT = 61
|
|
||||||
SYS_MSYNC = 65
|
|
||||||
SYS_VFORK = 66
|
|
||||||
SYS_MUNMAP = 73
|
|
||||||
SYS_MPROTECT = 74
|
|
||||||
SYS_MADVISE = 75
|
|
||||||
SYS_MINCORE = 78
|
|
||||||
SYS_GETGROUPS = 79
|
|
||||||
SYS_SETGROUPS = 80
|
|
||||||
SYS_GETPGRP = 81
|
|
||||||
SYS_SETPGID = 82
|
|
||||||
SYS_SETITIMER = 83
|
|
||||||
SYS_SWAPON = 85
|
|
||||||
SYS_GETITIMER = 86
|
|
||||||
SYS_GETDTABLESIZE = 89
|
|
||||||
SYS_DUP2 = 90
|
|
||||||
SYS_FCNTL = 92
|
|
||||||
SYS_SELECT = 93
|
|
||||||
SYS_FSYNC = 95
|
|
||||||
SYS_SETPRIORITY = 96
|
|
||||||
SYS_SOCKET = 97
|
|
||||||
SYS_CONNECT = 98
|
|
||||||
SYS_GETPRIORITY = 100
|
|
||||||
SYS_BIND = 104
|
|
||||||
SYS_SETSOCKOPT = 105
|
|
||||||
SYS_LISTEN = 106
|
|
||||||
SYS_SIGSUSPEND = 111
|
|
||||||
SYS_GETTIMEOFDAY = 116
|
|
||||||
SYS_GETRUSAGE = 117
|
|
||||||
SYS_GETSOCKOPT = 118
|
|
||||||
SYS_READV = 120
|
|
||||||
SYS_WRITEV = 121
|
|
||||||
SYS_SETTIMEOFDAY = 122
|
|
||||||
SYS_FCHOWN = 123
|
|
||||||
SYS_FCHMOD = 124
|
|
||||||
SYS_SETREUID = 126
|
|
||||||
SYS_SETREGID = 127
|
|
||||||
SYS_RENAME = 128
|
|
||||||
SYS_FLOCK = 131
|
|
||||||
SYS_MKFIFO = 132
|
|
||||||
SYS_SENDTO = 133
|
|
||||||
SYS_SHUTDOWN = 134
|
|
||||||
SYS_SOCKETPAIR = 135
|
|
||||||
SYS_MKDIR = 136
|
|
||||||
SYS_RMDIR = 137
|
|
||||||
SYS_UTIMES = 138
|
|
||||||
SYS_FUTIMES = 139
|
|
||||||
SYS_ADJTIME = 140
|
|
||||||
SYS_GETHOSTUUID = 142
|
|
||||||
SYS_SETSID = 147
|
|
||||||
SYS_GETPGID = 151
|
|
||||||
SYS_SETPRIVEXEC = 152
|
|
||||||
SYS_PREAD = 153
|
|
||||||
SYS_PWRITE = 154
|
|
||||||
SYS_NFSSVC = 155
|
|
||||||
SYS_STATFS = 157
|
|
||||||
SYS_FSTATFS = 158
|
|
||||||
SYS_UNMOUNT = 159
|
|
||||||
SYS_GETFH = 161
|
|
||||||
SYS_QUOTACTL = 165
|
|
||||||
SYS_MOUNT = 167
|
|
||||||
SYS_CSOPS = 169
|
|
||||||
SYS_CSOPS_AUDITTOKEN = 170
|
|
||||||
SYS_WAITID = 173
|
|
||||||
SYS_KDEBUG_TYPEFILTER = 177
|
|
||||||
SYS_KDEBUG_TRACE_STRING = 178
|
|
||||||
SYS_KDEBUG_TRACE64 = 179
|
|
||||||
SYS_KDEBUG_TRACE = 180
|
|
||||||
SYS_SETGID = 181
|
|
||||||
SYS_SETEGID = 182
|
|
||||||
SYS_SETEUID = 183
|
|
||||||
SYS_SIGRETURN = 184
|
|
||||||
SYS_THREAD_SELFCOUNTS = 186
|
|
||||||
SYS_FDATASYNC = 187
|
|
||||||
SYS_STAT = 188
|
|
||||||
SYS_FSTAT = 189
|
|
||||||
SYS_LSTAT = 190
|
|
||||||
SYS_PATHCONF = 191
|
|
||||||
SYS_FPATHCONF = 192
|
|
||||||
SYS_GETRLIMIT = 194
|
|
||||||
SYS_SETRLIMIT = 195
|
|
||||||
SYS_GETDIRENTRIES = 196
|
|
||||||
SYS_MMAP = 197
|
|
||||||
SYS_LSEEK = 199
|
|
||||||
SYS_TRUNCATE = 200
|
|
||||||
SYS_FTRUNCATE = 201
|
|
||||||
SYS_SYSCTL = 202
|
|
||||||
SYS_MLOCK = 203
|
|
||||||
SYS_MUNLOCK = 204
|
|
||||||
SYS_UNDELETE = 205
|
|
||||||
SYS_OPEN_DPROTECTED_NP = 216
|
|
||||||
SYS_GETATTRLIST = 220
|
|
||||||
SYS_SETATTRLIST = 221
|
|
||||||
SYS_GETDIRENTRIESATTR = 222
|
|
||||||
SYS_EXCHANGEDATA = 223
|
|
||||||
SYS_SEARCHFS = 225
|
|
||||||
SYS_DELETE = 226
|
|
||||||
SYS_COPYFILE = 227
|
|
||||||
SYS_FGETATTRLIST = 228
|
|
||||||
SYS_FSETATTRLIST = 229
|
|
||||||
SYS_POLL = 230
|
|
||||||
SYS_WATCHEVENT = 231
|
|
||||||
SYS_WAITEVENT = 232
|
|
||||||
SYS_MODWATCH = 233
|
|
||||||
SYS_GETXATTR = 234
|
|
||||||
SYS_FGETXATTR = 235
|
|
||||||
SYS_SETXATTR = 236
|
|
||||||
SYS_FSETXATTR = 237
|
|
||||||
SYS_REMOVEXATTR = 238
|
|
||||||
SYS_FREMOVEXATTR = 239
|
|
||||||
SYS_LISTXATTR = 240
|
|
||||||
SYS_FLISTXATTR = 241
|
|
||||||
SYS_FSCTL = 242
|
|
||||||
SYS_INITGROUPS = 243
|
|
||||||
SYS_POSIX_SPAWN = 244
|
|
||||||
SYS_FFSCTL = 245
|
|
||||||
SYS_NFSCLNT = 247
|
|
||||||
SYS_FHOPEN = 248
|
|
||||||
SYS_MINHERIT = 250
|
|
||||||
SYS_SEMSYS = 251
|
|
||||||
SYS_MSGSYS = 252
|
|
||||||
SYS_SHMSYS = 253
|
|
||||||
SYS_SEMCTL = 254
|
|
||||||
SYS_SEMGET = 255
|
|
||||||
SYS_SEMOP = 256
|
|
||||||
SYS_MSGCTL = 258
|
|
||||||
SYS_MSGGET = 259
|
|
||||||
SYS_MSGSND = 260
|
|
||||||
SYS_MSGRCV = 261
|
|
||||||
SYS_SHMAT = 262
|
|
||||||
SYS_SHMCTL = 263
|
|
||||||
SYS_SHMDT = 264
|
|
||||||
SYS_SHMGET = 265
|
|
||||||
SYS_SHM_OPEN = 266
|
|
||||||
SYS_SHM_UNLINK = 267
|
|
||||||
SYS_SEM_OPEN = 268
|
|
||||||
SYS_SEM_CLOSE = 269
|
|
||||||
SYS_SEM_UNLINK = 270
|
|
||||||
SYS_SEM_WAIT = 271
|
|
||||||
SYS_SEM_TRYWAIT = 272
|
|
||||||
SYS_SEM_POST = 273
|
|
||||||
SYS_SYSCTLBYNAME = 274
|
|
||||||
SYS_OPEN_EXTENDED = 277
|
|
||||||
SYS_UMASK_EXTENDED = 278
|
|
||||||
SYS_STAT_EXTENDED = 279
|
|
||||||
SYS_LSTAT_EXTENDED = 280
|
|
||||||
SYS_FSTAT_EXTENDED = 281
|
|
||||||
SYS_CHMOD_EXTENDED = 282
|
|
||||||
SYS_FCHMOD_EXTENDED = 283
|
|
||||||
SYS_ACCESS_EXTENDED = 284
|
|
||||||
SYS_SETTID = 285
|
|
||||||
SYS_GETTID = 286
|
|
||||||
SYS_SETSGROUPS = 287
|
|
||||||
SYS_GETSGROUPS = 288
|
|
||||||
SYS_SETWGROUPS = 289
|
|
||||||
SYS_GETWGROUPS = 290
|
|
||||||
SYS_MKFIFO_EXTENDED = 291
|
|
||||||
SYS_MKDIR_EXTENDED = 292
|
|
||||||
SYS_IDENTITYSVC = 293
|
|
||||||
SYS_SHARED_REGION_CHECK_NP = 294
|
|
||||||
SYS_VM_PRESSURE_MONITOR = 296
|
|
||||||
SYS_PSYNCH_RW_LONGRDLOCK = 297
|
|
||||||
SYS_PSYNCH_RW_YIELDWRLOCK = 298
|
|
||||||
SYS_PSYNCH_RW_DOWNGRADE = 299
|
|
||||||
SYS_PSYNCH_RW_UPGRADE = 300
|
|
||||||
SYS_PSYNCH_MUTEXWAIT = 301
|
|
||||||
SYS_PSYNCH_MUTEXDROP = 302
|
|
||||||
SYS_PSYNCH_CVBROAD = 303
|
|
||||||
SYS_PSYNCH_CVSIGNAL = 304
|
|
||||||
SYS_PSYNCH_CVWAIT = 305
|
|
||||||
SYS_PSYNCH_RW_RDLOCK = 306
|
|
||||||
SYS_PSYNCH_RW_WRLOCK = 307
|
|
||||||
SYS_PSYNCH_RW_UNLOCK = 308
|
|
||||||
SYS_PSYNCH_RW_UNLOCK2 = 309
|
|
||||||
SYS_GETSID = 310
|
|
||||||
SYS_SETTID_WITH_PID = 311
|
|
||||||
SYS_PSYNCH_CVCLRPREPOST = 312
|
|
||||||
SYS_AIO_FSYNC = 313
|
|
||||||
SYS_AIO_RETURN = 314
|
|
||||||
SYS_AIO_SUSPEND = 315
|
|
||||||
SYS_AIO_CANCEL = 316
|
|
||||||
SYS_AIO_ERROR = 317
|
|
||||||
SYS_AIO_READ = 318
|
|
||||||
SYS_AIO_WRITE = 319
|
|
||||||
SYS_LIO_LISTIO = 320
|
|
||||||
SYS_IOPOLICYSYS = 322
|
|
||||||
SYS_PROCESS_POLICY = 323
|
|
||||||
SYS_MLOCKALL = 324
|
|
||||||
SYS_MUNLOCKALL = 325
|
|
||||||
SYS_ISSETUGID = 327
|
|
||||||
SYS___PTHREAD_KILL = 328
|
|
||||||
SYS___PTHREAD_SIGMASK = 329
|
|
||||||
SYS___SIGWAIT = 330
|
|
||||||
SYS___DISABLE_THREADSIGNAL = 331
|
|
||||||
SYS___PTHREAD_MARKCANCEL = 332
|
|
||||||
SYS___PTHREAD_CANCELED = 333
|
|
||||||
SYS___SEMWAIT_SIGNAL = 334
|
|
||||||
SYS_PROC_INFO = 336
|
|
||||||
SYS_SENDFILE = 337
|
|
||||||
SYS_STAT64 = 338
|
|
||||||
SYS_FSTAT64 = 339
|
|
||||||
SYS_LSTAT64 = 340
|
|
||||||
SYS_STAT64_EXTENDED = 341
|
|
||||||
SYS_LSTAT64_EXTENDED = 342
|
|
||||||
SYS_FSTAT64_EXTENDED = 343
|
|
||||||
SYS_GETDIRENTRIES64 = 344
|
|
||||||
SYS_STATFS64 = 345
|
|
||||||
SYS_FSTATFS64 = 346
|
|
||||||
SYS_GETFSSTAT64 = 347
|
|
||||||
SYS___PTHREAD_CHDIR = 348
|
|
||||||
SYS___PTHREAD_FCHDIR = 349
|
|
||||||
SYS_AUDIT = 350
|
|
||||||
SYS_AUDITON = 351
|
|
||||||
SYS_GETAUID = 353
|
|
||||||
SYS_SETAUID = 354
|
|
||||||
SYS_GETAUDIT_ADDR = 357
|
|
||||||
SYS_SETAUDIT_ADDR = 358
|
|
||||||
SYS_AUDITCTL = 359
|
|
||||||
SYS_BSDTHREAD_CREATE = 360
|
|
||||||
SYS_BSDTHREAD_TERMINATE = 361
|
|
||||||
SYS_KQUEUE = 362
|
|
||||||
SYS_KEVENT = 363
|
|
||||||
SYS_LCHOWN = 364
|
|
||||||
SYS_BSDTHREAD_REGISTER = 366
|
|
||||||
SYS_WORKQ_OPEN = 367
|
|
||||||
SYS_WORKQ_KERNRETURN = 368
|
|
||||||
SYS_KEVENT64 = 369
|
|
||||||
SYS___OLD_SEMWAIT_SIGNAL = 370
|
|
||||||
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
|
|
||||||
SYS_THREAD_SELFID = 372
|
|
||||||
SYS_LEDGER = 373
|
|
||||||
SYS_KEVENT_QOS = 374
|
|
||||||
SYS_KEVENT_ID = 375
|
|
||||||
SYS___MAC_EXECVE = 380
|
|
||||||
SYS___MAC_SYSCALL = 381
|
|
||||||
SYS___MAC_GET_FILE = 382
|
|
||||||
SYS___MAC_SET_FILE = 383
|
|
||||||
SYS___MAC_GET_LINK = 384
|
|
||||||
SYS___MAC_SET_LINK = 385
|
|
||||||
SYS___MAC_GET_PROC = 386
|
|
||||||
SYS___MAC_SET_PROC = 387
|
|
||||||
SYS___MAC_GET_FD = 388
|
|
||||||
SYS___MAC_SET_FD = 389
|
|
||||||
SYS___MAC_GET_PID = 390
|
|
||||||
SYS_PSELECT = 394
|
|
||||||
SYS_PSELECT_NOCANCEL = 395
|
|
||||||
SYS_READ_NOCANCEL = 396
|
|
||||||
SYS_WRITE_NOCANCEL = 397
|
|
||||||
SYS_OPEN_NOCANCEL = 398
|
|
||||||
SYS_CLOSE_NOCANCEL = 399
|
|
||||||
SYS_WAIT4_NOCANCEL = 400
|
|
||||||
SYS_RECVMSG_NOCANCEL = 401
|
|
||||||
SYS_SENDMSG_NOCANCEL = 402
|
|
||||||
SYS_RECVFROM_NOCANCEL = 403
|
|
||||||
SYS_ACCEPT_NOCANCEL = 404
|
|
||||||
SYS_MSYNC_NOCANCEL = 405
|
|
||||||
SYS_FCNTL_NOCANCEL = 406
|
|
||||||
SYS_SELECT_NOCANCEL = 407
|
|
||||||
SYS_FSYNC_NOCANCEL = 408
|
|
||||||
SYS_CONNECT_NOCANCEL = 409
|
|
||||||
SYS_SIGSUSPEND_NOCANCEL = 410
|
|
||||||
SYS_READV_NOCANCEL = 411
|
|
||||||
SYS_WRITEV_NOCANCEL = 412
|
|
||||||
SYS_SENDTO_NOCANCEL = 413
|
|
||||||
SYS_PREAD_NOCANCEL = 414
|
|
||||||
SYS_PWRITE_NOCANCEL = 415
|
|
||||||
SYS_WAITID_NOCANCEL = 416
|
|
||||||
SYS_POLL_NOCANCEL = 417
|
|
||||||
SYS_MSGSND_NOCANCEL = 418
|
|
||||||
SYS_MSGRCV_NOCANCEL = 419
|
|
||||||
SYS_SEM_WAIT_NOCANCEL = 420
|
|
||||||
SYS_AIO_SUSPEND_NOCANCEL = 421
|
|
||||||
SYS___SIGWAIT_NOCANCEL = 422
|
|
||||||
SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
|
|
||||||
SYS___MAC_MOUNT = 424
|
|
||||||
SYS___MAC_GET_MOUNT = 425
|
|
||||||
SYS___MAC_GETFSSTAT = 426
|
|
||||||
SYS_FSGETPATH = 427
|
|
||||||
SYS_AUDIT_SESSION_SELF = 428
|
|
||||||
SYS_AUDIT_SESSION_JOIN = 429
|
|
||||||
SYS_FILEPORT_MAKEPORT = 430
|
|
||||||
SYS_FILEPORT_MAKEFD = 431
|
|
||||||
SYS_AUDIT_SESSION_PORT = 432
|
|
||||||
SYS_PID_SUSPEND = 433
|
|
||||||
SYS_PID_RESUME = 434
|
|
||||||
SYS_PID_HIBERNATE = 435
|
|
||||||
SYS_PID_SHUTDOWN_SOCKETS = 436
|
|
||||||
SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
|
|
||||||
SYS_KAS_INFO = 439
|
|
||||||
SYS_MEMORYSTATUS_CONTROL = 440
|
|
||||||
SYS_GUARDED_OPEN_NP = 441
|
|
||||||
SYS_GUARDED_CLOSE_NP = 442
|
|
||||||
SYS_GUARDED_KQUEUE_NP = 443
|
|
||||||
SYS_CHANGE_FDGUARD_NP = 444
|
|
||||||
SYS_USRCTL = 445
|
|
||||||
SYS_PROC_RLIMIT_CONTROL = 446
|
|
||||||
SYS_CONNECTX = 447
|
|
||||||
SYS_DISCONNECTX = 448
|
|
||||||
SYS_PEELOFF = 449
|
|
||||||
SYS_SOCKET_DELEGATE = 450
|
|
||||||
SYS_TELEMETRY = 451
|
|
||||||
SYS_PROC_UUID_POLICY = 452
|
|
||||||
SYS_MEMORYSTATUS_GET_LEVEL = 453
|
|
||||||
SYS_SYSTEM_OVERRIDE = 454
|
|
||||||
SYS_VFS_PURGE = 455
|
|
||||||
SYS_SFI_CTL = 456
|
|
||||||
SYS_SFI_PIDCTL = 457
|
|
||||||
SYS_COALITION = 458
|
|
||||||
SYS_COALITION_INFO = 459
|
|
||||||
SYS_NECP_MATCH_POLICY = 460
|
|
||||||
SYS_GETATTRLISTBULK = 461
|
|
||||||
SYS_CLONEFILEAT = 462
|
|
||||||
SYS_OPENAT = 463
|
|
||||||
SYS_OPENAT_NOCANCEL = 464
|
|
||||||
SYS_RENAMEAT = 465
|
|
||||||
SYS_FACCESSAT = 466
|
|
||||||
SYS_FCHMODAT = 467
|
|
||||||
SYS_FCHOWNAT = 468
|
|
||||||
SYS_FSTATAT = 469
|
|
||||||
SYS_FSTATAT64 = 470
|
|
||||||
SYS_LINKAT = 471
|
|
||||||
SYS_UNLINKAT = 472
|
|
||||||
SYS_READLINKAT = 473
|
|
||||||
SYS_SYMLINKAT = 474
|
|
||||||
SYS_MKDIRAT = 475
|
|
||||||
SYS_GETATTRLISTAT = 476
|
|
||||||
SYS_PROC_TRACE_LOG = 477
|
|
||||||
SYS_BSDTHREAD_CTL = 478
|
|
||||||
SYS_OPENBYID_NP = 479
|
|
||||||
SYS_RECVMSG_X = 480
|
|
||||||
SYS_SENDMSG_X = 481
|
|
||||||
SYS_THREAD_SELFUSAGE = 482
|
|
||||||
SYS_CSRCTL = 483
|
|
||||||
SYS_GUARDED_OPEN_DPROTECTED_NP = 484
|
|
||||||
SYS_GUARDED_WRITE_NP = 485
|
|
||||||
SYS_GUARDED_PWRITE_NP = 486
|
|
||||||
SYS_GUARDED_WRITEV_NP = 487
|
|
||||||
SYS_RENAMEATX_NP = 488
|
|
||||||
SYS_MREMAP_ENCRYPTED = 489
|
|
||||||
SYS_NETAGENT_TRIGGER = 490
|
|
||||||
SYS_STACK_SNAPSHOT_WITH_CONFIG = 491
|
|
||||||
SYS_MICROSTACKSHOT = 492
|
|
||||||
SYS_GRAB_PGO_DATA = 493
|
|
||||||
SYS_PERSONA = 494
|
|
||||||
SYS_WORK_INTERVAL_CTL = 499
|
|
||||||
SYS_GETENTROPY = 500
|
|
||||||
SYS_NECP_OPEN = 501
|
|
||||||
SYS_NECP_CLIENT_ACTION = 502
|
|
||||||
SYS___NEXUS_OPEN = 503
|
|
||||||
SYS___NEXUS_REGISTER = 504
|
|
||||||
SYS___NEXUS_DEREGISTER = 505
|
|
||||||
SYS___NEXUS_CREATE = 506
|
|
||||||
SYS___NEXUS_DESTROY = 507
|
|
||||||
SYS___NEXUS_GET_OPT = 508
|
|
||||||
SYS___NEXUS_SET_OPT = 509
|
|
||||||
SYS___CHANNEL_OPEN = 510
|
|
||||||
SYS___CHANNEL_GET_INFO = 511
|
|
||||||
SYS___CHANNEL_SYNC = 512
|
|
||||||
SYS___CHANNEL_GET_OPT = 513
|
|
||||||
SYS___CHANNEL_SET_OPT = 514
|
|
||||||
SYS_ULOCK_WAIT = 515
|
|
||||||
SYS_ULOCK_WAKE = 516
|
|
||||||
SYS_FCLONEFILEAT = 517
|
|
||||||
SYS_FS_SNAPSHOT = 518
|
|
||||||
SYS_TERMINATE_WITH_PAYLOAD = 520
|
|
||||||
SYS_ABORT_WITH_PAYLOAD = 521
|
|
||||||
SYS_NECP_SESSION_OPEN = 522
|
|
||||||
SYS_NECP_SESSION_ACTION = 523
|
|
||||||
SYS_SETATTRLISTAT = 524
|
|
||||||
SYS_NET_QOS_GUIDELINE = 525
|
|
||||||
SYS_FMOUNT = 526
|
|
||||||
SYS_NTP_ADJTIME = 527
|
|
||||||
SYS_NTP_GETTIME = 528
|
|
||||||
SYS_OS_FAULT_WITH_PAYLOAD = 529
|
|
||||||
SYS_MAXSYSCALL = 530
|
|
||||||
SYS_INVALID = 63
|
|
||||||
)
|
|
||||||
|
|
@ -1,438 +0,0 @@
|
||||||
// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/syscall.h
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build amd64,darwin
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
SYS_SYSCALL = 0
|
|
||||||
SYS_EXIT = 1
|
|
||||||
SYS_FORK = 2
|
|
||||||
SYS_READ = 3
|
|
||||||
SYS_WRITE = 4
|
|
||||||
SYS_OPEN = 5
|
|
||||||
SYS_CLOSE = 6
|
|
||||||
SYS_WAIT4 = 7
|
|
||||||
SYS_LINK = 9
|
|
||||||
SYS_UNLINK = 10
|
|
||||||
SYS_CHDIR = 12
|
|
||||||
SYS_FCHDIR = 13
|
|
||||||
SYS_MKNOD = 14
|
|
||||||
SYS_CHMOD = 15
|
|
||||||
SYS_CHOWN = 16
|
|
||||||
SYS_GETFSSTAT = 18
|
|
||||||
SYS_GETPID = 20
|
|
||||||
SYS_SETUID = 23
|
|
||||||
SYS_GETUID = 24
|
|
||||||
SYS_GETEUID = 25
|
|
||||||
SYS_PTRACE = 26
|
|
||||||
SYS_RECVMSG = 27
|
|
||||||
SYS_SENDMSG = 28
|
|
||||||
SYS_RECVFROM = 29
|
|
||||||
SYS_ACCEPT = 30
|
|
||||||
SYS_GETPEERNAME = 31
|
|
||||||
SYS_GETSOCKNAME = 32
|
|
||||||
SYS_ACCESS = 33
|
|
||||||
SYS_CHFLAGS = 34
|
|
||||||
SYS_FCHFLAGS = 35
|
|
||||||
SYS_SYNC = 36
|
|
||||||
SYS_KILL = 37
|
|
||||||
SYS_GETPPID = 39
|
|
||||||
SYS_DUP = 41
|
|
||||||
SYS_PIPE = 42
|
|
||||||
SYS_GETEGID = 43
|
|
||||||
SYS_SIGACTION = 46
|
|
||||||
SYS_GETGID = 47
|
|
||||||
SYS_SIGPROCMASK = 48
|
|
||||||
SYS_GETLOGIN = 49
|
|
||||||
SYS_SETLOGIN = 50
|
|
||||||
SYS_ACCT = 51
|
|
||||||
SYS_SIGPENDING = 52
|
|
||||||
SYS_SIGALTSTACK = 53
|
|
||||||
SYS_IOCTL = 54
|
|
||||||
SYS_REBOOT = 55
|
|
||||||
SYS_REVOKE = 56
|
|
||||||
SYS_SYMLINK = 57
|
|
||||||
SYS_READLINK = 58
|
|
||||||
SYS_EXECVE = 59
|
|
||||||
SYS_UMASK = 60
|
|
||||||
SYS_CHROOT = 61
|
|
||||||
SYS_MSYNC = 65
|
|
||||||
SYS_VFORK = 66
|
|
||||||
SYS_MUNMAP = 73
|
|
||||||
SYS_MPROTECT = 74
|
|
||||||
SYS_MADVISE = 75
|
|
||||||
SYS_MINCORE = 78
|
|
||||||
SYS_GETGROUPS = 79
|
|
||||||
SYS_SETGROUPS = 80
|
|
||||||
SYS_GETPGRP = 81
|
|
||||||
SYS_SETPGID = 82
|
|
||||||
SYS_SETITIMER = 83
|
|
||||||
SYS_SWAPON = 85
|
|
||||||
SYS_GETITIMER = 86
|
|
||||||
SYS_GETDTABLESIZE = 89
|
|
||||||
SYS_DUP2 = 90
|
|
||||||
SYS_FCNTL = 92
|
|
||||||
SYS_SELECT = 93
|
|
||||||
SYS_FSYNC = 95
|
|
||||||
SYS_SETPRIORITY = 96
|
|
||||||
SYS_SOCKET = 97
|
|
||||||
SYS_CONNECT = 98
|
|
||||||
SYS_GETPRIORITY = 100
|
|
||||||
SYS_BIND = 104
|
|
||||||
SYS_SETSOCKOPT = 105
|
|
||||||
SYS_LISTEN = 106
|
|
||||||
SYS_SIGSUSPEND = 111
|
|
||||||
SYS_GETTIMEOFDAY = 116
|
|
||||||
SYS_GETRUSAGE = 117
|
|
||||||
SYS_GETSOCKOPT = 118
|
|
||||||
SYS_READV = 120
|
|
||||||
SYS_WRITEV = 121
|
|
||||||
SYS_SETTIMEOFDAY = 122
|
|
||||||
SYS_FCHOWN = 123
|
|
||||||
SYS_FCHMOD = 124
|
|
||||||
SYS_SETREUID = 126
|
|
||||||
SYS_SETREGID = 127
|
|
||||||
SYS_RENAME = 128
|
|
||||||
SYS_FLOCK = 131
|
|
||||||
SYS_MKFIFO = 132
|
|
||||||
SYS_SENDTO = 133
|
|
||||||
SYS_SHUTDOWN = 134
|
|
||||||
SYS_SOCKETPAIR = 135
|
|
||||||
SYS_MKDIR = 136
|
|
||||||
SYS_RMDIR = 137
|
|
||||||
SYS_UTIMES = 138
|
|
||||||
SYS_FUTIMES = 139
|
|
||||||
SYS_ADJTIME = 140
|
|
||||||
SYS_GETHOSTUUID = 142
|
|
||||||
SYS_SETSID = 147
|
|
||||||
SYS_GETPGID = 151
|
|
||||||
SYS_SETPRIVEXEC = 152
|
|
||||||
SYS_PREAD = 153
|
|
||||||
SYS_PWRITE = 154
|
|
||||||
SYS_NFSSVC = 155
|
|
||||||
SYS_STATFS = 157
|
|
||||||
SYS_FSTATFS = 158
|
|
||||||
SYS_UNMOUNT = 159
|
|
||||||
SYS_GETFH = 161
|
|
||||||
SYS_QUOTACTL = 165
|
|
||||||
SYS_MOUNT = 167
|
|
||||||
SYS_CSOPS = 169
|
|
||||||
SYS_CSOPS_AUDITTOKEN = 170
|
|
||||||
SYS_WAITID = 173
|
|
||||||
SYS_KDEBUG_TYPEFILTER = 177
|
|
||||||
SYS_KDEBUG_TRACE_STRING = 178
|
|
||||||
SYS_KDEBUG_TRACE64 = 179
|
|
||||||
SYS_KDEBUG_TRACE = 180
|
|
||||||
SYS_SETGID = 181
|
|
||||||
SYS_SETEGID = 182
|
|
||||||
SYS_SETEUID = 183
|
|
||||||
SYS_SIGRETURN = 184
|
|
||||||
SYS_THREAD_SELFCOUNTS = 186
|
|
||||||
SYS_FDATASYNC = 187
|
|
||||||
SYS_STAT = 188
|
|
||||||
SYS_FSTAT = 189
|
|
||||||
SYS_LSTAT = 190
|
|
||||||
SYS_PATHCONF = 191
|
|
||||||
SYS_FPATHCONF = 192
|
|
||||||
SYS_GETRLIMIT = 194
|
|
||||||
SYS_SETRLIMIT = 195
|
|
||||||
SYS_GETDIRENTRIES = 196
|
|
||||||
SYS_MMAP = 197
|
|
||||||
SYS_LSEEK = 199
|
|
||||||
SYS_TRUNCATE = 200
|
|
||||||
SYS_FTRUNCATE = 201
|
|
||||||
SYS_SYSCTL = 202
|
|
||||||
SYS_MLOCK = 203
|
|
||||||
SYS_MUNLOCK = 204
|
|
||||||
SYS_UNDELETE = 205
|
|
||||||
SYS_OPEN_DPROTECTED_NP = 216
|
|
||||||
SYS_GETATTRLIST = 220
|
|
||||||
SYS_SETATTRLIST = 221
|
|
||||||
SYS_GETDIRENTRIESATTR = 222
|
|
||||||
SYS_EXCHANGEDATA = 223
|
|
||||||
SYS_SEARCHFS = 225
|
|
||||||
SYS_DELETE = 226
|
|
||||||
SYS_COPYFILE = 227
|
|
||||||
SYS_FGETATTRLIST = 228
|
|
||||||
SYS_FSETATTRLIST = 229
|
|
||||||
SYS_POLL = 230
|
|
||||||
SYS_WATCHEVENT = 231
|
|
||||||
SYS_WAITEVENT = 232
|
|
||||||
SYS_MODWATCH = 233
|
|
||||||
SYS_GETXATTR = 234
|
|
||||||
SYS_FGETXATTR = 235
|
|
||||||
SYS_SETXATTR = 236
|
|
||||||
SYS_FSETXATTR = 237
|
|
||||||
SYS_REMOVEXATTR = 238
|
|
||||||
SYS_FREMOVEXATTR = 239
|
|
||||||
SYS_LISTXATTR = 240
|
|
||||||
SYS_FLISTXATTR = 241
|
|
||||||
SYS_FSCTL = 242
|
|
||||||
SYS_INITGROUPS = 243
|
|
||||||
SYS_POSIX_SPAWN = 244
|
|
||||||
SYS_FFSCTL = 245
|
|
||||||
SYS_NFSCLNT = 247
|
|
||||||
SYS_FHOPEN = 248
|
|
||||||
SYS_MINHERIT = 250
|
|
||||||
SYS_SEMSYS = 251
|
|
||||||
SYS_MSGSYS = 252
|
|
||||||
SYS_SHMSYS = 253
|
|
||||||
SYS_SEMCTL = 254
|
|
||||||
SYS_SEMGET = 255
|
|
||||||
SYS_SEMOP = 256
|
|
||||||
SYS_MSGCTL = 258
|
|
||||||
SYS_MSGGET = 259
|
|
||||||
SYS_MSGSND = 260
|
|
||||||
SYS_MSGRCV = 261
|
|
||||||
SYS_SHMAT = 262
|
|
||||||
SYS_SHMCTL = 263
|
|
||||||
SYS_SHMDT = 264
|
|
||||||
SYS_SHMGET = 265
|
|
||||||
SYS_SHM_OPEN = 266
|
|
||||||
SYS_SHM_UNLINK = 267
|
|
||||||
SYS_SEM_OPEN = 268
|
|
||||||
SYS_SEM_CLOSE = 269
|
|
||||||
SYS_SEM_UNLINK = 270
|
|
||||||
SYS_SEM_WAIT = 271
|
|
||||||
SYS_SEM_TRYWAIT = 272
|
|
||||||
SYS_SEM_POST = 273
|
|
||||||
SYS_SYSCTLBYNAME = 274
|
|
||||||
SYS_OPEN_EXTENDED = 277
|
|
||||||
SYS_UMASK_EXTENDED = 278
|
|
||||||
SYS_STAT_EXTENDED = 279
|
|
||||||
SYS_LSTAT_EXTENDED = 280
|
|
||||||
SYS_FSTAT_EXTENDED = 281
|
|
||||||
SYS_CHMOD_EXTENDED = 282
|
|
||||||
SYS_FCHMOD_EXTENDED = 283
|
|
||||||
SYS_ACCESS_EXTENDED = 284
|
|
||||||
SYS_SETTID = 285
|
|
||||||
SYS_GETTID = 286
|
|
||||||
SYS_SETSGROUPS = 287
|
|
||||||
SYS_GETSGROUPS = 288
|
|
||||||
SYS_SETWGROUPS = 289
|
|
||||||
SYS_GETWGROUPS = 290
|
|
||||||
SYS_MKFIFO_EXTENDED = 291
|
|
||||||
SYS_MKDIR_EXTENDED = 292
|
|
||||||
SYS_IDENTITYSVC = 293
|
|
||||||
SYS_SHARED_REGION_CHECK_NP = 294
|
|
||||||
SYS_VM_PRESSURE_MONITOR = 296
|
|
||||||
SYS_PSYNCH_RW_LONGRDLOCK = 297
|
|
||||||
SYS_PSYNCH_RW_YIELDWRLOCK = 298
|
|
||||||
SYS_PSYNCH_RW_DOWNGRADE = 299
|
|
||||||
SYS_PSYNCH_RW_UPGRADE = 300
|
|
||||||
SYS_PSYNCH_MUTEXWAIT = 301
|
|
||||||
SYS_PSYNCH_MUTEXDROP = 302
|
|
||||||
SYS_PSYNCH_CVBROAD = 303
|
|
||||||
SYS_PSYNCH_CVSIGNAL = 304
|
|
||||||
SYS_PSYNCH_CVWAIT = 305
|
|
||||||
SYS_PSYNCH_RW_RDLOCK = 306
|
|
||||||
SYS_PSYNCH_RW_WRLOCK = 307
|
|
||||||
SYS_PSYNCH_RW_UNLOCK = 308
|
|
||||||
SYS_PSYNCH_RW_UNLOCK2 = 309
|
|
||||||
SYS_GETSID = 310
|
|
||||||
SYS_SETTID_WITH_PID = 311
|
|
||||||
SYS_PSYNCH_CVCLRPREPOST = 312
|
|
||||||
SYS_AIO_FSYNC = 313
|
|
||||||
SYS_AIO_RETURN = 314
|
|
||||||
SYS_AIO_SUSPEND = 315
|
|
||||||
SYS_AIO_CANCEL = 316
|
|
||||||
SYS_AIO_ERROR = 317
|
|
||||||
SYS_AIO_READ = 318
|
|
||||||
SYS_AIO_WRITE = 319
|
|
||||||
SYS_LIO_LISTIO = 320
|
|
||||||
SYS_IOPOLICYSYS = 322
|
|
||||||
SYS_PROCESS_POLICY = 323
|
|
||||||
SYS_MLOCKALL = 324
|
|
||||||
SYS_MUNLOCKALL = 325
|
|
||||||
SYS_ISSETUGID = 327
|
|
||||||
SYS___PTHREAD_KILL = 328
|
|
||||||
SYS___PTHREAD_SIGMASK = 329
|
|
||||||
SYS___SIGWAIT = 330
|
|
||||||
SYS___DISABLE_THREADSIGNAL = 331
|
|
||||||
SYS___PTHREAD_MARKCANCEL = 332
|
|
||||||
SYS___PTHREAD_CANCELED = 333
|
|
||||||
SYS___SEMWAIT_SIGNAL = 334
|
|
||||||
SYS_PROC_INFO = 336
|
|
||||||
SYS_SENDFILE = 337
|
|
||||||
SYS_STAT64 = 338
|
|
||||||
SYS_FSTAT64 = 339
|
|
||||||
SYS_LSTAT64 = 340
|
|
||||||
SYS_STAT64_EXTENDED = 341
|
|
||||||
SYS_LSTAT64_EXTENDED = 342
|
|
||||||
SYS_FSTAT64_EXTENDED = 343
|
|
||||||
SYS_GETDIRENTRIES64 = 344
|
|
||||||
SYS_STATFS64 = 345
|
|
||||||
SYS_FSTATFS64 = 346
|
|
||||||
SYS_GETFSSTAT64 = 347
|
|
||||||
SYS___PTHREAD_CHDIR = 348
|
|
||||||
SYS___PTHREAD_FCHDIR = 349
|
|
||||||
SYS_AUDIT = 350
|
|
||||||
SYS_AUDITON = 351
|
|
||||||
SYS_GETAUID = 353
|
|
||||||
SYS_SETAUID = 354
|
|
||||||
SYS_GETAUDIT_ADDR = 357
|
|
||||||
SYS_SETAUDIT_ADDR = 358
|
|
||||||
SYS_AUDITCTL = 359
|
|
||||||
SYS_BSDTHREAD_CREATE = 360
|
|
||||||
SYS_BSDTHREAD_TERMINATE = 361
|
|
||||||
SYS_KQUEUE = 362
|
|
||||||
SYS_KEVENT = 363
|
|
||||||
SYS_LCHOWN = 364
|
|
||||||
SYS_BSDTHREAD_REGISTER = 366
|
|
||||||
SYS_WORKQ_OPEN = 367
|
|
||||||
SYS_WORKQ_KERNRETURN = 368
|
|
||||||
SYS_KEVENT64 = 369
|
|
||||||
SYS___OLD_SEMWAIT_SIGNAL = 370
|
|
||||||
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
|
|
||||||
SYS_THREAD_SELFID = 372
|
|
||||||
SYS_LEDGER = 373
|
|
||||||
SYS_KEVENT_QOS = 374
|
|
||||||
SYS_KEVENT_ID = 375
|
|
||||||
SYS___MAC_EXECVE = 380
|
|
||||||
SYS___MAC_SYSCALL = 381
|
|
||||||
SYS___MAC_GET_FILE = 382
|
|
||||||
SYS___MAC_SET_FILE = 383
|
|
||||||
SYS___MAC_GET_LINK = 384
|
|
||||||
SYS___MAC_SET_LINK = 385
|
|
||||||
SYS___MAC_GET_PROC = 386
|
|
||||||
SYS___MAC_SET_PROC = 387
|
|
||||||
SYS___MAC_GET_FD = 388
|
|
||||||
SYS___MAC_SET_FD = 389
|
|
||||||
SYS___MAC_GET_PID = 390
|
|
||||||
SYS_PSELECT = 394
|
|
||||||
SYS_PSELECT_NOCANCEL = 395
|
|
||||||
SYS_READ_NOCANCEL = 396
|
|
||||||
SYS_WRITE_NOCANCEL = 397
|
|
||||||
SYS_OPEN_NOCANCEL = 398
|
|
||||||
SYS_CLOSE_NOCANCEL = 399
|
|
||||||
SYS_WAIT4_NOCANCEL = 400
|
|
||||||
SYS_RECVMSG_NOCANCEL = 401
|
|
||||||
SYS_SENDMSG_NOCANCEL = 402
|
|
||||||
SYS_RECVFROM_NOCANCEL = 403
|
|
||||||
SYS_ACCEPT_NOCANCEL = 404
|
|
||||||
SYS_MSYNC_NOCANCEL = 405
|
|
||||||
SYS_FCNTL_NOCANCEL = 406
|
|
||||||
SYS_SELECT_NOCANCEL = 407
|
|
||||||
SYS_FSYNC_NOCANCEL = 408
|
|
||||||
SYS_CONNECT_NOCANCEL = 409
|
|
||||||
SYS_SIGSUSPEND_NOCANCEL = 410
|
|
||||||
SYS_READV_NOCANCEL = 411
|
|
||||||
SYS_WRITEV_NOCANCEL = 412
|
|
||||||
SYS_SENDTO_NOCANCEL = 413
|
|
||||||
SYS_PREAD_NOCANCEL = 414
|
|
||||||
SYS_PWRITE_NOCANCEL = 415
|
|
||||||
SYS_WAITID_NOCANCEL = 416
|
|
||||||
SYS_POLL_NOCANCEL = 417
|
|
||||||
SYS_MSGSND_NOCANCEL = 418
|
|
||||||
SYS_MSGRCV_NOCANCEL = 419
|
|
||||||
SYS_SEM_WAIT_NOCANCEL = 420
|
|
||||||
SYS_AIO_SUSPEND_NOCANCEL = 421
|
|
||||||
SYS___SIGWAIT_NOCANCEL = 422
|
|
||||||
SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
|
|
||||||
SYS___MAC_MOUNT = 424
|
|
||||||
SYS___MAC_GET_MOUNT = 425
|
|
||||||
SYS___MAC_GETFSSTAT = 426
|
|
||||||
SYS_FSGETPATH = 427
|
|
||||||
SYS_AUDIT_SESSION_SELF = 428
|
|
||||||
SYS_AUDIT_SESSION_JOIN = 429
|
|
||||||
SYS_FILEPORT_MAKEPORT = 430
|
|
||||||
SYS_FILEPORT_MAKEFD = 431
|
|
||||||
SYS_AUDIT_SESSION_PORT = 432
|
|
||||||
SYS_PID_SUSPEND = 433
|
|
||||||
SYS_PID_RESUME = 434
|
|
||||||
SYS_PID_HIBERNATE = 435
|
|
||||||
SYS_PID_SHUTDOWN_SOCKETS = 436
|
|
||||||
SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
|
|
||||||
SYS_KAS_INFO = 439
|
|
||||||
SYS_MEMORYSTATUS_CONTROL = 440
|
|
||||||
SYS_GUARDED_OPEN_NP = 441
|
|
||||||
SYS_GUARDED_CLOSE_NP = 442
|
|
||||||
SYS_GUARDED_KQUEUE_NP = 443
|
|
||||||
SYS_CHANGE_FDGUARD_NP = 444
|
|
||||||
SYS_USRCTL = 445
|
|
||||||
SYS_PROC_RLIMIT_CONTROL = 446
|
|
||||||
SYS_CONNECTX = 447
|
|
||||||
SYS_DISCONNECTX = 448
|
|
||||||
SYS_PEELOFF = 449
|
|
||||||
SYS_SOCKET_DELEGATE = 450
|
|
||||||
SYS_TELEMETRY = 451
|
|
||||||
SYS_PROC_UUID_POLICY = 452
|
|
||||||
SYS_MEMORYSTATUS_GET_LEVEL = 453
|
|
||||||
SYS_SYSTEM_OVERRIDE = 454
|
|
||||||
SYS_VFS_PURGE = 455
|
|
||||||
SYS_SFI_CTL = 456
|
|
||||||
SYS_SFI_PIDCTL = 457
|
|
||||||
SYS_COALITION = 458
|
|
||||||
SYS_COALITION_INFO = 459
|
|
||||||
SYS_NECP_MATCH_POLICY = 460
|
|
||||||
SYS_GETATTRLISTBULK = 461
|
|
||||||
SYS_CLONEFILEAT = 462
|
|
||||||
SYS_OPENAT = 463
|
|
||||||
SYS_OPENAT_NOCANCEL = 464
|
|
||||||
SYS_RENAMEAT = 465
|
|
||||||
SYS_FACCESSAT = 466
|
|
||||||
SYS_FCHMODAT = 467
|
|
||||||
SYS_FCHOWNAT = 468
|
|
||||||
SYS_FSTATAT = 469
|
|
||||||
SYS_FSTATAT64 = 470
|
|
||||||
SYS_LINKAT = 471
|
|
||||||
SYS_UNLINKAT = 472
|
|
||||||
SYS_READLINKAT = 473
|
|
||||||
SYS_SYMLINKAT = 474
|
|
||||||
SYS_MKDIRAT = 475
|
|
||||||
SYS_GETATTRLISTAT = 476
|
|
||||||
SYS_PROC_TRACE_LOG = 477
|
|
||||||
SYS_BSDTHREAD_CTL = 478
|
|
||||||
SYS_OPENBYID_NP = 479
|
|
||||||
SYS_RECVMSG_X = 480
|
|
||||||
SYS_SENDMSG_X = 481
|
|
||||||
SYS_THREAD_SELFUSAGE = 482
|
|
||||||
SYS_CSRCTL = 483
|
|
||||||
SYS_GUARDED_OPEN_DPROTECTED_NP = 484
|
|
||||||
SYS_GUARDED_WRITE_NP = 485
|
|
||||||
SYS_GUARDED_PWRITE_NP = 486
|
|
||||||
SYS_GUARDED_WRITEV_NP = 487
|
|
||||||
SYS_RENAMEATX_NP = 488
|
|
||||||
SYS_MREMAP_ENCRYPTED = 489
|
|
||||||
SYS_NETAGENT_TRIGGER = 490
|
|
||||||
SYS_STACK_SNAPSHOT_WITH_CONFIG = 491
|
|
||||||
SYS_MICROSTACKSHOT = 492
|
|
||||||
SYS_GRAB_PGO_DATA = 493
|
|
||||||
SYS_PERSONA = 494
|
|
||||||
SYS_WORK_INTERVAL_CTL = 499
|
|
||||||
SYS_GETENTROPY = 500
|
|
||||||
SYS_NECP_OPEN = 501
|
|
||||||
SYS_NECP_CLIENT_ACTION = 502
|
|
||||||
SYS___NEXUS_OPEN = 503
|
|
||||||
SYS___NEXUS_REGISTER = 504
|
|
||||||
SYS___NEXUS_DEREGISTER = 505
|
|
||||||
SYS___NEXUS_CREATE = 506
|
|
||||||
SYS___NEXUS_DESTROY = 507
|
|
||||||
SYS___NEXUS_GET_OPT = 508
|
|
||||||
SYS___NEXUS_SET_OPT = 509
|
|
||||||
SYS___CHANNEL_OPEN = 510
|
|
||||||
SYS___CHANNEL_GET_INFO = 511
|
|
||||||
SYS___CHANNEL_SYNC = 512
|
|
||||||
SYS___CHANNEL_GET_OPT = 513
|
|
||||||
SYS___CHANNEL_SET_OPT = 514
|
|
||||||
SYS_ULOCK_WAIT = 515
|
|
||||||
SYS_ULOCK_WAKE = 516
|
|
||||||
SYS_FCLONEFILEAT = 517
|
|
||||||
SYS_FS_SNAPSHOT = 518
|
|
||||||
SYS_TERMINATE_WITH_PAYLOAD = 520
|
|
||||||
SYS_ABORT_WITH_PAYLOAD = 521
|
|
||||||
SYS_NECP_SESSION_OPEN = 522
|
|
||||||
SYS_NECP_SESSION_ACTION = 523
|
|
||||||
SYS_SETATTRLISTAT = 524
|
|
||||||
SYS_NET_QOS_GUIDELINE = 525
|
|
||||||
SYS_FMOUNT = 526
|
|
||||||
SYS_NTP_ADJTIME = 527
|
|
||||||
SYS_NTP_GETTIME = 528
|
|
||||||
SYS_OS_FAULT_WITH_PAYLOAD = 529
|
|
||||||
SYS_KQUEUE_WORKLOOP_CTL = 530
|
|
||||||
SYS___MACH_BRIDGE_REMOTE_TIME = 531
|
|
||||||
SYS_MAXSYSCALL = 532
|
|
||||||
SYS_INVALID = 63
|
|
||||||
)
|
|
||||||
|
|
@ -1,436 +0,0 @@
|
||||||
// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build arm,darwin
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
SYS_SYSCALL = 0
|
|
||||||
SYS_EXIT = 1
|
|
||||||
SYS_FORK = 2
|
|
||||||
SYS_READ = 3
|
|
||||||
SYS_WRITE = 4
|
|
||||||
SYS_OPEN = 5
|
|
||||||
SYS_CLOSE = 6
|
|
||||||
SYS_WAIT4 = 7
|
|
||||||
SYS_LINK = 9
|
|
||||||
SYS_UNLINK = 10
|
|
||||||
SYS_CHDIR = 12
|
|
||||||
SYS_FCHDIR = 13
|
|
||||||
SYS_MKNOD = 14
|
|
||||||
SYS_CHMOD = 15
|
|
||||||
SYS_CHOWN = 16
|
|
||||||
SYS_GETFSSTAT = 18
|
|
||||||
SYS_GETPID = 20
|
|
||||||
SYS_SETUID = 23
|
|
||||||
SYS_GETUID = 24
|
|
||||||
SYS_GETEUID = 25
|
|
||||||
SYS_PTRACE = 26
|
|
||||||
SYS_RECVMSG = 27
|
|
||||||
SYS_SENDMSG = 28
|
|
||||||
SYS_RECVFROM = 29
|
|
||||||
SYS_ACCEPT = 30
|
|
||||||
SYS_GETPEERNAME = 31
|
|
||||||
SYS_GETSOCKNAME = 32
|
|
||||||
SYS_ACCESS = 33
|
|
||||||
SYS_CHFLAGS = 34
|
|
||||||
SYS_FCHFLAGS = 35
|
|
||||||
SYS_SYNC = 36
|
|
||||||
SYS_KILL = 37
|
|
||||||
SYS_GETPPID = 39
|
|
||||||
SYS_DUP = 41
|
|
||||||
SYS_PIPE = 42
|
|
||||||
SYS_GETEGID = 43
|
|
||||||
SYS_SIGACTION = 46
|
|
||||||
SYS_GETGID = 47
|
|
||||||
SYS_SIGPROCMASK = 48
|
|
||||||
SYS_GETLOGIN = 49
|
|
||||||
SYS_SETLOGIN = 50
|
|
||||||
SYS_ACCT = 51
|
|
||||||
SYS_SIGPENDING = 52
|
|
||||||
SYS_SIGALTSTACK = 53
|
|
||||||
SYS_IOCTL = 54
|
|
||||||
SYS_REBOOT = 55
|
|
||||||
SYS_REVOKE = 56
|
|
||||||
SYS_SYMLINK = 57
|
|
||||||
SYS_READLINK = 58
|
|
||||||
SYS_EXECVE = 59
|
|
||||||
SYS_UMASK = 60
|
|
||||||
SYS_CHROOT = 61
|
|
||||||
SYS_MSYNC = 65
|
|
||||||
SYS_VFORK = 66
|
|
||||||
SYS_MUNMAP = 73
|
|
||||||
SYS_MPROTECT = 74
|
|
||||||
SYS_MADVISE = 75
|
|
||||||
SYS_MINCORE = 78
|
|
||||||
SYS_GETGROUPS = 79
|
|
||||||
SYS_SETGROUPS = 80
|
|
||||||
SYS_GETPGRP = 81
|
|
||||||
SYS_SETPGID = 82
|
|
||||||
SYS_SETITIMER = 83
|
|
||||||
SYS_SWAPON = 85
|
|
||||||
SYS_GETITIMER = 86
|
|
||||||
SYS_GETDTABLESIZE = 89
|
|
||||||
SYS_DUP2 = 90
|
|
||||||
SYS_FCNTL = 92
|
|
||||||
SYS_SELECT = 93
|
|
||||||
SYS_FSYNC = 95
|
|
||||||
SYS_SETPRIORITY = 96
|
|
||||||
SYS_SOCKET = 97
|
|
||||||
SYS_CONNECT = 98
|
|
||||||
SYS_GETPRIORITY = 100
|
|
||||||
SYS_BIND = 104
|
|
||||||
SYS_SETSOCKOPT = 105
|
|
||||||
SYS_LISTEN = 106
|
|
||||||
SYS_SIGSUSPEND = 111
|
|
||||||
SYS_GETTIMEOFDAY = 116
|
|
||||||
SYS_GETRUSAGE = 117
|
|
||||||
SYS_GETSOCKOPT = 118
|
|
||||||
SYS_READV = 120
|
|
||||||
SYS_WRITEV = 121
|
|
||||||
SYS_SETTIMEOFDAY = 122
|
|
||||||
SYS_FCHOWN = 123
|
|
||||||
SYS_FCHMOD = 124
|
|
||||||
SYS_SETREUID = 126
|
|
||||||
SYS_SETREGID = 127
|
|
||||||
SYS_RENAME = 128
|
|
||||||
SYS_FLOCK = 131
|
|
||||||
SYS_MKFIFO = 132
|
|
||||||
SYS_SENDTO = 133
|
|
||||||
SYS_SHUTDOWN = 134
|
|
||||||
SYS_SOCKETPAIR = 135
|
|
||||||
SYS_MKDIR = 136
|
|
||||||
SYS_RMDIR = 137
|
|
||||||
SYS_UTIMES = 138
|
|
||||||
SYS_FUTIMES = 139
|
|
||||||
SYS_ADJTIME = 140
|
|
||||||
SYS_GETHOSTUUID = 142
|
|
||||||
SYS_SETSID = 147
|
|
||||||
SYS_GETPGID = 151
|
|
||||||
SYS_SETPRIVEXEC = 152
|
|
||||||
SYS_PREAD = 153
|
|
||||||
SYS_PWRITE = 154
|
|
||||||
SYS_NFSSVC = 155
|
|
||||||
SYS_STATFS = 157
|
|
||||||
SYS_FSTATFS = 158
|
|
||||||
SYS_UNMOUNT = 159
|
|
||||||
SYS_GETFH = 161
|
|
||||||
SYS_QUOTACTL = 165
|
|
||||||
SYS_MOUNT = 167
|
|
||||||
SYS_CSOPS = 169
|
|
||||||
SYS_CSOPS_AUDITTOKEN = 170
|
|
||||||
SYS_WAITID = 173
|
|
||||||
SYS_KDEBUG_TYPEFILTER = 177
|
|
||||||
SYS_KDEBUG_TRACE_STRING = 178
|
|
||||||
SYS_KDEBUG_TRACE64 = 179
|
|
||||||
SYS_KDEBUG_TRACE = 180
|
|
||||||
SYS_SETGID = 181
|
|
||||||
SYS_SETEGID = 182
|
|
||||||
SYS_SETEUID = 183
|
|
||||||
SYS_SIGRETURN = 184
|
|
||||||
SYS_THREAD_SELFCOUNTS = 186
|
|
||||||
SYS_FDATASYNC = 187
|
|
||||||
SYS_STAT = 188
|
|
||||||
SYS_FSTAT = 189
|
|
||||||
SYS_LSTAT = 190
|
|
||||||
SYS_PATHCONF = 191
|
|
||||||
SYS_FPATHCONF = 192
|
|
||||||
SYS_GETRLIMIT = 194
|
|
||||||
SYS_SETRLIMIT = 195
|
|
||||||
SYS_GETDIRENTRIES = 196
|
|
||||||
SYS_MMAP = 197
|
|
||||||
SYS_LSEEK = 199
|
|
||||||
SYS_TRUNCATE = 200
|
|
||||||
SYS_FTRUNCATE = 201
|
|
||||||
SYS_SYSCTL = 202
|
|
||||||
SYS_MLOCK = 203
|
|
||||||
SYS_MUNLOCK = 204
|
|
||||||
SYS_UNDELETE = 205
|
|
||||||
SYS_OPEN_DPROTECTED_NP = 216
|
|
||||||
SYS_GETATTRLIST = 220
|
|
||||||
SYS_SETATTRLIST = 221
|
|
||||||
SYS_GETDIRENTRIESATTR = 222
|
|
||||||
SYS_EXCHANGEDATA = 223
|
|
||||||
SYS_SEARCHFS = 225
|
|
||||||
SYS_DELETE = 226
|
|
||||||
SYS_COPYFILE = 227
|
|
||||||
SYS_FGETATTRLIST = 228
|
|
||||||
SYS_FSETATTRLIST = 229
|
|
||||||
SYS_POLL = 230
|
|
||||||
SYS_WATCHEVENT = 231
|
|
||||||
SYS_WAITEVENT = 232
|
|
||||||
SYS_MODWATCH = 233
|
|
||||||
SYS_GETXATTR = 234
|
|
||||||
SYS_FGETXATTR = 235
|
|
||||||
SYS_SETXATTR = 236
|
|
||||||
SYS_FSETXATTR = 237
|
|
||||||
SYS_REMOVEXATTR = 238
|
|
||||||
SYS_FREMOVEXATTR = 239
|
|
||||||
SYS_LISTXATTR = 240
|
|
||||||
SYS_FLISTXATTR = 241
|
|
||||||
SYS_FSCTL = 242
|
|
||||||
SYS_INITGROUPS = 243
|
|
||||||
SYS_POSIX_SPAWN = 244
|
|
||||||
SYS_FFSCTL = 245
|
|
||||||
SYS_NFSCLNT = 247
|
|
||||||
SYS_FHOPEN = 248
|
|
||||||
SYS_MINHERIT = 250
|
|
||||||
SYS_SEMSYS = 251
|
|
||||||
SYS_MSGSYS = 252
|
|
||||||
SYS_SHMSYS = 253
|
|
||||||
SYS_SEMCTL = 254
|
|
||||||
SYS_SEMGET = 255
|
|
||||||
SYS_SEMOP = 256
|
|
||||||
SYS_MSGCTL = 258
|
|
||||||
SYS_MSGGET = 259
|
|
||||||
SYS_MSGSND = 260
|
|
||||||
SYS_MSGRCV = 261
|
|
||||||
SYS_SHMAT = 262
|
|
||||||
SYS_SHMCTL = 263
|
|
||||||
SYS_SHMDT = 264
|
|
||||||
SYS_SHMGET = 265
|
|
||||||
SYS_SHM_OPEN = 266
|
|
||||||
SYS_SHM_UNLINK = 267
|
|
||||||
SYS_SEM_OPEN = 268
|
|
||||||
SYS_SEM_CLOSE = 269
|
|
||||||
SYS_SEM_UNLINK = 270
|
|
||||||
SYS_SEM_WAIT = 271
|
|
||||||
SYS_SEM_TRYWAIT = 272
|
|
||||||
SYS_SEM_POST = 273
|
|
||||||
SYS_SYSCTLBYNAME = 274
|
|
||||||
SYS_OPEN_EXTENDED = 277
|
|
||||||
SYS_UMASK_EXTENDED = 278
|
|
||||||
SYS_STAT_EXTENDED = 279
|
|
||||||
SYS_LSTAT_EXTENDED = 280
|
|
||||||
SYS_FSTAT_EXTENDED = 281
|
|
||||||
SYS_CHMOD_EXTENDED = 282
|
|
||||||
SYS_FCHMOD_EXTENDED = 283
|
|
||||||
SYS_ACCESS_EXTENDED = 284
|
|
||||||
SYS_SETTID = 285
|
|
||||||
SYS_GETTID = 286
|
|
||||||
SYS_SETSGROUPS = 287
|
|
||||||
SYS_GETSGROUPS = 288
|
|
||||||
SYS_SETWGROUPS = 289
|
|
||||||
SYS_GETWGROUPS = 290
|
|
||||||
SYS_MKFIFO_EXTENDED = 291
|
|
||||||
SYS_MKDIR_EXTENDED = 292
|
|
||||||
SYS_IDENTITYSVC = 293
|
|
||||||
SYS_SHARED_REGION_CHECK_NP = 294
|
|
||||||
SYS_VM_PRESSURE_MONITOR = 296
|
|
||||||
SYS_PSYNCH_RW_LONGRDLOCK = 297
|
|
||||||
SYS_PSYNCH_RW_YIELDWRLOCK = 298
|
|
||||||
SYS_PSYNCH_RW_DOWNGRADE = 299
|
|
||||||
SYS_PSYNCH_RW_UPGRADE = 300
|
|
||||||
SYS_PSYNCH_MUTEXWAIT = 301
|
|
||||||
SYS_PSYNCH_MUTEXDROP = 302
|
|
||||||
SYS_PSYNCH_CVBROAD = 303
|
|
||||||
SYS_PSYNCH_CVSIGNAL = 304
|
|
||||||
SYS_PSYNCH_CVWAIT = 305
|
|
||||||
SYS_PSYNCH_RW_RDLOCK = 306
|
|
||||||
SYS_PSYNCH_RW_WRLOCK = 307
|
|
||||||
SYS_PSYNCH_RW_UNLOCK = 308
|
|
||||||
SYS_PSYNCH_RW_UNLOCK2 = 309
|
|
||||||
SYS_GETSID = 310
|
|
||||||
SYS_SETTID_WITH_PID = 311
|
|
||||||
SYS_PSYNCH_CVCLRPREPOST = 312
|
|
||||||
SYS_AIO_FSYNC = 313
|
|
||||||
SYS_AIO_RETURN = 314
|
|
||||||
SYS_AIO_SUSPEND = 315
|
|
||||||
SYS_AIO_CANCEL = 316
|
|
||||||
SYS_AIO_ERROR = 317
|
|
||||||
SYS_AIO_READ = 318
|
|
||||||
SYS_AIO_WRITE = 319
|
|
||||||
SYS_LIO_LISTIO = 320
|
|
||||||
SYS_IOPOLICYSYS = 322
|
|
||||||
SYS_PROCESS_POLICY = 323
|
|
||||||
SYS_MLOCKALL = 324
|
|
||||||
SYS_MUNLOCKALL = 325
|
|
||||||
SYS_ISSETUGID = 327
|
|
||||||
SYS___PTHREAD_KILL = 328
|
|
||||||
SYS___PTHREAD_SIGMASK = 329
|
|
||||||
SYS___SIGWAIT = 330
|
|
||||||
SYS___DISABLE_THREADSIGNAL = 331
|
|
||||||
SYS___PTHREAD_MARKCANCEL = 332
|
|
||||||
SYS___PTHREAD_CANCELED = 333
|
|
||||||
SYS___SEMWAIT_SIGNAL = 334
|
|
||||||
SYS_PROC_INFO = 336
|
|
||||||
SYS_SENDFILE = 337
|
|
||||||
SYS_STAT64 = 338
|
|
||||||
SYS_FSTAT64 = 339
|
|
||||||
SYS_LSTAT64 = 340
|
|
||||||
SYS_STAT64_EXTENDED = 341
|
|
||||||
SYS_LSTAT64_EXTENDED = 342
|
|
||||||
SYS_FSTAT64_EXTENDED = 343
|
|
||||||
SYS_GETDIRENTRIES64 = 344
|
|
||||||
SYS_STATFS64 = 345
|
|
||||||
SYS_FSTATFS64 = 346
|
|
||||||
SYS_GETFSSTAT64 = 347
|
|
||||||
SYS___PTHREAD_CHDIR = 348
|
|
||||||
SYS___PTHREAD_FCHDIR = 349
|
|
||||||
SYS_AUDIT = 350
|
|
||||||
SYS_AUDITON = 351
|
|
||||||
SYS_GETAUID = 353
|
|
||||||
SYS_SETAUID = 354
|
|
||||||
SYS_GETAUDIT_ADDR = 357
|
|
||||||
SYS_SETAUDIT_ADDR = 358
|
|
||||||
SYS_AUDITCTL = 359
|
|
||||||
SYS_BSDTHREAD_CREATE = 360
|
|
||||||
SYS_BSDTHREAD_TERMINATE = 361
|
|
||||||
SYS_KQUEUE = 362
|
|
||||||
SYS_KEVENT = 363
|
|
||||||
SYS_LCHOWN = 364
|
|
||||||
SYS_BSDTHREAD_REGISTER = 366
|
|
||||||
SYS_WORKQ_OPEN = 367
|
|
||||||
SYS_WORKQ_KERNRETURN = 368
|
|
||||||
SYS_KEVENT64 = 369
|
|
||||||
SYS___OLD_SEMWAIT_SIGNAL = 370
|
|
||||||
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
|
|
||||||
SYS_THREAD_SELFID = 372
|
|
||||||
SYS_LEDGER = 373
|
|
||||||
SYS_KEVENT_QOS = 374
|
|
||||||
SYS_KEVENT_ID = 375
|
|
||||||
SYS___MAC_EXECVE = 380
|
|
||||||
SYS___MAC_SYSCALL = 381
|
|
||||||
SYS___MAC_GET_FILE = 382
|
|
||||||
SYS___MAC_SET_FILE = 383
|
|
||||||
SYS___MAC_GET_LINK = 384
|
|
||||||
SYS___MAC_SET_LINK = 385
|
|
||||||
SYS___MAC_GET_PROC = 386
|
|
||||||
SYS___MAC_SET_PROC = 387
|
|
||||||
SYS___MAC_GET_FD = 388
|
|
||||||
SYS___MAC_SET_FD = 389
|
|
||||||
SYS___MAC_GET_PID = 390
|
|
||||||
SYS_PSELECT = 394
|
|
||||||
SYS_PSELECT_NOCANCEL = 395
|
|
||||||
SYS_READ_NOCANCEL = 396
|
|
||||||
SYS_WRITE_NOCANCEL = 397
|
|
||||||
SYS_OPEN_NOCANCEL = 398
|
|
||||||
SYS_CLOSE_NOCANCEL = 399
|
|
||||||
SYS_WAIT4_NOCANCEL = 400
|
|
||||||
SYS_RECVMSG_NOCANCEL = 401
|
|
||||||
SYS_SENDMSG_NOCANCEL = 402
|
|
||||||
SYS_RECVFROM_NOCANCEL = 403
|
|
||||||
SYS_ACCEPT_NOCANCEL = 404
|
|
||||||
SYS_MSYNC_NOCANCEL = 405
|
|
||||||
SYS_FCNTL_NOCANCEL = 406
|
|
||||||
SYS_SELECT_NOCANCEL = 407
|
|
||||||
SYS_FSYNC_NOCANCEL = 408
|
|
||||||
SYS_CONNECT_NOCANCEL = 409
|
|
||||||
SYS_SIGSUSPEND_NOCANCEL = 410
|
|
||||||
SYS_READV_NOCANCEL = 411
|
|
||||||
SYS_WRITEV_NOCANCEL = 412
|
|
||||||
SYS_SENDTO_NOCANCEL = 413
|
|
||||||
SYS_PREAD_NOCANCEL = 414
|
|
||||||
SYS_PWRITE_NOCANCEL = 415
|
|
||||||
SYS_WAITID_NOCANCEL = 416
|
|
||||||
SYS_POLL_NOCANCEL = 417
|
|
||||||
SYS_MSGSND_NOCANCEL = 418
|
|
||||||
SYS_MSGRCV_NOCANCEL = 419
|
|
||||||
SYS_SEM_WAIT_NOCANCEL = 420
|
|
||||||
SYS_AIO_SUSPEND_NOCANCEL = 421
|
|
||||||
SYS___SIGWAIT_NOCANCEL = 422
|
|
||||||
SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
|
|
||||||
SYS___MAC_MOUNT = 424
|
|
||||||
SYS___MAC_GET_MOUNT = 425
|
|
||||||
SYS___MAC_GETFSSTAT = 426
|
|
||||||
SYS_FSGETPATH = 427
|
|
||||||
SYS_AUDIT_SESSION_SELF = 428
|
|
||||||
SYS_AUDIT_SESSION_JOIN = 429
|
|
||||||
SYS_FILEPORT_MAKEPORT = 430
|
|
||||||
SYS_FILEPORT_MAKEFD = 431
|
|
||||||
SYS_AUDIT_SESSION_PORT = 432
|
|
||||||
SYS_PID_SUSPEND = 433
|
|
||||||
SYS_PID_RESUME = 434
|
|
||||||
SYS_PID_HIBERNATE = 435
|
|
||||||
SYS_PID_SHUTDOWN_SOCKETS = 436
|
|
||||||
SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
|
|
||||||
SYS_KAS_INFO = 439
|
|
||||||
SYS_MEMORYSTATUS_CONTROL = 440
|
|
||||||
SYS_GUARDED_OPEN_NP = 441
|
|
||||||
SYS_GUARDED_CLOSE_NP = 442
|
|
||||||
SYS_GUARDED_KQUEUE_NP = 443
|
|
||||||
SYS_CHANGE_FDGUARD_NP = 444
|
|
||||||
SYS_USRCTL = 445
|
|
||||||
SYS_PROC_RLIMIT_CONTROL = 446
|
|
||||||
SYS_CONNECTX = 447
|
|
||||||
SYS_DISCONNECTX = 448
|
|
||||||
SYS_PEELOFF = 449
|
|
||||||
SYS_SOCKET_DELEGATE = 450
|
|
||||||
SYS_TELEMETRY = 451
|
|
||||||
SYS_PROC_UUID_POLICY = 452
|
|
||||||
SYS_MEMORYSTATUS_GET_LEVEL = 453
|
|
||||||
SYS_SYSTEM_OVERRIDE = 454
|
|
||||||
SYS_VFS_PURGE = 455
|
|
||||||
SYS_SFI_CTL = 456
|
|
||||||
SYS_SFI_PIDCTL = 457
|
|
||||||
SYS_COALITION = 458
|
|
||||||
SYS_COALITION_INFO = 459
|
|
||||||
SYS_NECP_MATCH_POLICY = 460
|
|
||||||
SYS_GETATTRLISTBULK = 461
|
|
||||||
SYS_CLONEFILEAT = 462
|
|
||||||
SYS_OPENAT = 463
|
|
||||||
SYS_OPENAT_NOCANCEL = 464
|
|
||||||
SYS_RENAMEAT = 465
|
|
||||||
SYS_FACCESSAT = 466
|
|
||||||
SYS_FCHMODAT = 467
|
|
||||||
SYS_FCHOWNAT = 468
|
|
||||||
SYS_FSTATAT = 469
|
|
||||||
SYS_FSTATAT64 = 470
|
|
||||||
SYS_LINKAT = 471
|
|
||||||
SYS_UNLINKAT = 472
|
|
||||||
SYS_READLINKAT = 473
|
|
||||||
SYS_SYMLINKAT = 474
|
|
||||||
SYS_MKDIRAT = 475
|
|
||||||
SYS_GETATTRLISTAT = 476
|
|
||||||
SYS_PROC_TRACE_LOG = 477
|
|
||||||
SYS_BSDTHREAD_CTL = 478
|
|
||||||
SYS_OPENBYID_NP = 479
|
|
||||||
SYS_RECVMSG_X = 480
|
|
||||||
SYS_SENDMSG_X = 481
|
|
||||||
SYS_THREAD_SELFUSAGE = 482
|
|
||||||
SYS_CSRCTL = 483
|
|
||||||
SYS_GUARDED_OPEN_DPROTECTED_NP = 484
|
|
||||||
SYS_GUARDED_WRITE_NP = 485
|
|
||||||
SYS_GUARDED_PWRITE_NP = 486
|
|
||||||
SYS_GUARDED_WRITEV_NP = 487
|
|
||||||
SYS_RENAMEATX_NP = 488
|
|
||||||
SYS_MREMAP_ENCRYPTED = 489
|
|
||||||
SYS_NETAGENT_TRIGGER = 490
|
|
||||||
SYS_STACK_SNAPSHOT_WITH_CONFIG = 491
|
|
||||||
SYS_MICROSTACKSHOT = 492
|
|
||||||
SYS_GRAB_PGO_DATA = 493
|
|
||||||
SYS_PERSONA = 494
|
|
||||||
SYS_WORK_INTERVAL_CTL = 499
|
|
||||||
SYS_GETENTROPY = 500
|
|
||||||
SYS_NECP_OPEN = 501
|
|
||||||
SYS_NECP_CLIENT_ACTION = 502
|
|
||||||
SYS___NEXUS_OPEN = 503
|
|
||||||
SYS___NEXUS_REGISTER = 504
|
|
||||||
SYS___NEXUS_DEREGISTER = 505
|
|
||||||
SYS___NEXUS_CREATE = 506
|
|
||||||
SYS___NEXUS_DESTROY = 507
|
|
||||||
SYS___NEXUS_GET_OPT = 508
|
|
||||||
SYS___NEXUS_SET_OPT = 509
|
|
||||||
SYS___CHANNEL_OPEN = 510
|
|
||||||
SYS___CHANNEL_GET_INFO = 511
|
|
||||||
SYS___CHANNEL_SYNC = 512
|
|
||||||
SYS___CHANNEL_GET_OPT = 513
|
|
||||||
SYS___CHANNEL_SET_OPT = 514
|
|
||||||
SYS_ULOCK_WAIT = 515
|
|
||||||
SYS_ULOCK_WAKE = 516
|
|
||||||
SYS_FCLONEFILEAT = 517
|
|
||||||
SYS_FS_SNAPSHOT = 518
|
|
||||||
SYS_TERMINATE_WITH_PAYLOAD = 520
|
|
||||||
SYS_ABORT_WITH_PAYLOAD = 521
|
|
||||||
SYS_NECP_SESSION_OPEN = 522
|
|
||||||
SYS_NECP_SESSION_ACTION = 523
|
|
||||||
SYS_SETATTRLISTAT = 524
|
|
||||||
SYS_NET_QOS_GUIDELINE = 525
|
|
||||||
SYS_FMOUNT = 526
|
|
||||||
SYS_NTP_ADJTIME = 527
|
|
||||||
SYS_NTP_GETTIME = 528
|
|
||||||
SYS_OS_FAULT_WITH_PAYLOAD = 529
|
|
||||||
SYS_MAXSYSCALL = 530
|
|
||||||
SYS_INVALID = 63
|
|
||||||
)
|
|
||||||
|
|
@ -1,436 +0,0 @@
|
||||||
// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build arm64,darwin
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
const (
|
|
||||||
SYS_SYSCALL = 0
|
|
||||||
SYS_EXIT = 1
|
|
||||||
SYS_FORK = 2
|
|
||||||
SYS_READ = 3
|
|
||||||
SYS_WRITE = 4
|
|
||||||
SYS_OPEN = 5
|
|
||||||
SYS_CLOSE = 6
|
|
||||||
SYS_WAIT4 = 7
|
|
||||||
SYS_LINK = 9
|
|
||||||
SYS_UNLINK = 10
|
|
||||||
SYS_CHDIR = 12
|
|
||||||
SYS_FCHDIR = 13
|
|
||||||
SYS_MKNOD = 14
|
|
||||||
SYS_CHMOD = 15
|
|
||||||
SYS_CHOWN = 16
|
|
||||||
SYS_GETFSSTAT = 18
|
|
||||||
SYS_GETPID = 20
|
|
||||||
SYS_SETUID = 23
|
|
||||||
SYS_GETUID = 24
|
|
||||||
SYS_GETEUID = 25
|
|
||||||
SYS_PTRACE = 26
|
|
||||||
SYS_RECVMSG = 27
|
|
||||||
SYS_SENDMSG = 28
|
|
||||||
SYS_RECVFROM = 29
|
|
||||||
SYS_ACCEPT = 30
|
|
||||||
SYS_GETPEERNAME = 31
|
|
||||||
SYS_GETSOCKNAME = 32
|
|
||||||
SYS_ACCESS = 33
|
|
||||||
SYS_CHFLAGS = 34
|
|
||||||
SYS_FCHFLAGS = 35
|
|
||||||
SYS_SYNC = 36
|
|
||||||
SYS_KILL = 37
|
|
||||||
SYS_GETPPID = 39
|
|
||||||
SYS_DUP = 41
|
|
||||||
SYS_PIPE = 42
|
|
||||||
SYS_GETEGID = 43
|
|
||||||
SYS_SIGACTION = 46
|
|
||||||
SYS_GETGID = 47
|
|
||||||
SYS_SIGPROCMASK = 48
|
|
||||||
SYS_GETLOGIN = 49
|
|
||||||
SYS_SETLOGIN = 50
|
|
||||||
SYS_ACCT = 51
|
|
||||||
SYS_SIGPENDING = 52
|
|
||||||
SYS_SIGALTSTACK = 53
|
|
||||||
SYS_IOCTL = 54
|
|
||||||
SYS_REBOOT = 55
|
|
||||||
SYS_REVOKE = 56
|
|
||||||
SYS_SYMLINK = 57
|
|
||||||
SYS_READLINK = 58
|
|
||||||
SYS_EXECVE = 59
|
|
||||||
SYS_UMASK = 60
|
|
||||||
SYS_CHROOT = 61
|
|
||||||
SYS_MSYNC = 65
|
|
||||||
SYS_VFORK = 66
|
|
||||||
SYS_MUNMAP = 73
|
|
||||||
SYS_MPROTECT = 74
|
|
||||||
SYS_MADVISE = 75
|
|
||||||
SYS_MINCORE = 78
|
|
||||||
SYS_GETGROUPS = 79
|
|
||||||
SYS_SETGROUPS = 80
|
|
||||||
SYS_GETPGRP = 81
|
|
||||||
SYS_SETPGID = 82
|
|
||||||
SYS_SETITIMER = 83
|
|
||||||
SYS_SWAPON = 85
|
|
||||||
SYS_GETITIMER = 86
|
|
||||||
SYS_GETDTABLESIZE = 89
|
|
||||||
SYS_DUP2 = 90
|
|
||||||
SYS_FCNTL = 92
|
|
||||||
SYS_SELECT = 93
|
|
||||||
SYS_FSYNC = 95
|
|
||||||
SYS_SETPRIORITY = 96
|
|
||||||
SYS_SOCKET = 97
|
|
||||||
SYS_CONNECT = 98
|
|
||||||
SYS_GETPRIORITY = 100
|
|
||||||
SYS_BIND = 104
|
|
||||||
SYS_SETSOCKOPT = 105
|
|
||||||
SYS_LISTEN = 106
|
|
||||||
SYS_SIGSUSPEND = 111
|
|
||||||
SYS_GETTIMEOFDAY = 116
|
|
||||||
SYS_GETRUSAGE = 117
|
|
||||||
SYS_GETSOCKOPT = 118
|
|
||||||
SYS_READV = 120
|
|
||||||
SYS_WRITEV = 121
|
|
||||||
SYS_SETTIMEOFDAY = 122
|
|
||||||
SYS_FCHOWN = 123
|
|
||||||
SYS_FCHMOD = 124
|
|
||||||
SYS_SETREUID = 126
|
|
||||||
SYS_SETREGID = 127
|
|
||||||
SYS_RENAME = 128
|
|
||||||
SYS_FLOCK = 131
|
|
||||||
SYS_MKFIFO = 132
|
|
||||||
SYS_SENDTO = 133
|
|
||||||
SYS_SHUTDOWN = 134
|
|
||||||
SYS_SOCKETPAIR = 135
|
|
||||||
SYS_MKDIR = 136
|
|
||||||
SYS_RMDIR = 137
|
|
||||||
SYS_UTIMES = 138
|
|
||||||
SYS_FUTIMES = 139
|
|
||||||
SYS_ADJTIME = 140
|
|
||||||
SYS_GETHOSTUUID = 142
|
|
||||||
SYS_SETSID = 147
|
|
||||||
SYS_GETPGID = 151
|
|
||||||
SYS_SETPRIVEXEC = 152
|
|
||||||
SYS_PREAD = 153
|
|
||||||
SYS_PWRITE = 154
|
|
||||||
SYS_NFSSVC = 155
|
|
||||||
SYS_STATFS = 157
|
|
||||||
SYS_FSTATFS = 158
|
|
||||||
SYS_UNMOUNT = 159
|
|
||||||
SYS_GETFH = 161
|
|
||||||
SYS_QUOTACTL = 165
|
|
||||||
SYS_MOUNT = 167
|
|
||||||
SYS_CSOPS = 169
|
|
||||||
SYS_CSOPS_AUDITTOKEN = 170
|
|
||||||
SYS_WAITID = 173
|
|
||||||
SYS_KDEBUG_TYPEFILTER = 177
|
|
||||||
SYS_KDEBUG_TRACE_STRING = 178
|
|
||||||
SYS_KDEBUG_TRACE64 = 179
|
|
||||||
SYS_KDEBUG_TRACE = 180
|
|
||||||
SYS_SETGID = 181
|
|
||||||
SYS_SETEGID = 182
|
|
||||||
SYS_SETEUID = 183
|
|
||||||
SYS_SIGRETURN = 184
|
|
||||||
SYS_THREAD_SELFCOUNTS = 186
|
|
||||||
SYS_FDATASYNC = 187
|
|
||||||
SYS_STAT = 188
|
|
||||||
SYS_FSTAT = 189
|
|
||||||
SYS_LSTAT = 190
|
|
||||||
SYS_PATHCONF = 191
|
|
||||||
SYS_FPATHCONF = 192
|
|
||||||
SYS_GETRLIMIT = 194
|
|
||||||
SYS_SETRLIMIT = 195
|
|
||||||
SYS_GETDIRENTRIES = 196
|
|
||||||
SYS_MMAP = 197
|
|
||||||
SYS_LSEEK = 199
|
|
||||||
SYS_TRUNCATE = 200
|
|
||||||
SYS_FTRUNCATE = 201
|
|
||||||
SYS_SYSCTL = 202
|
|
||||||
SYS_MLOCK = 203
|
|
||||||
SYS_MUNLOCK = 204
|
|
||||||
SYS_UNDELETE = 205
|
|
||||||
SYS_OPEN_DPROTECTED_NP = 216
|
|
||||||
SYS_GETATTRLIST = 220
|
|
||||||
SYS_SETATTRLIST = 221
|
|
||||||
SYS_GETDIRENTRIESATTR = 222
|
|
||||||
SYS_EXCHANGEDATA = 223
|
|
||||||
SYS_SEARCHFS = 225
|
|
||||||
SYS_DELETE = 226
|
|
||||||
SYS_COPYFILE = 227
|
|
||||||
SYS_FGETATTRLIST = 228
|
|
||||||
SYS_FSETATTRLIST = 229
|
|
||||||
SYS_POLL = 230
|
|
||||||
SYS_WATCHEVENT = 231
|
|
||||||
SYS_WAITEVENT = 232
|
|
||||||
SYS_MODWATCH = 233
|
|
||||||
SYS_GETXATTR = 234
|
|
||||||
SYS_FGETXATTR = 235
|
|
||||||
SYS_SETXATTR = 236
|
|
||||||
SYS_FSETXATTR = 237
|
|
||||||
SYS_REMOVEXATTR = 238
|
|
||||||
SYS_FREMOVEXATTR = 239
|
|
||||||
SYS_LISTXATTR = 240
|
|
||||||
SYS_FLISTXATTR = 241
|
|
||||||
SYS_FSCTL = 242
|
|
||||||
SYS_INITGROUPS = 243
|
|
||||||
SYS_POSIX_SPAWN = 244
|
|
||||||
SYS_FFSCTL = 245
|
|
||||||
SYS_NFSCLNT = 247
|
|
||||||
SYS_FHOPEN = 248
|
|
||||||
SYS_MINHERIT = 250
|
|
||||||
SYS_SEMSYS = 251
|
|
||||||
SYS_MSGSYS = 252
|
|
||||||
SYS_SHMSYS = 253
|
|
||||||
SYS_SEMCTL = 254
|
|
||||||
SYS_SEMGET = 255
|
|
||||||
SYS_SEMOP = 256
|
|
||||||
SYS_MSGCTL = 258
|
|
||||||
SYS_MSGGET = 259
|
|
||||||
SYS_MSGSND = 260
|
|
||||||
SYS_MSGRCV = 261
|
|
||||||
SYS_SHMAT = 262
|
|
||||||
SYS_SHMCTL = 263
|
|
||||||
SYS_SHMDT = 264
|
|
||||||
SYS_SHMGET = 265
|
|
||||||
SYS_SHM_OPEN = 266
|
|
||||||
SYS_SHM_UNLINK = 267
|
|
||||||
SYS_SEM_OPEN = 268
|
|
||||||
SYS_SEM_CLOSE = 269
|
|
||||||
SYS_SEM_UNLINK = 270
|
|
||||||
SYS_SEM_WAIT = 271
|
|
||||||
SYS_SEM_TRYWAIT = 272
|
|
||||||
SYS_SEM_POST = 273
|
|
||||||
SYS_SYSCTLBYNAME = 274
|
|
||||||
SYS_OPEN_EXTENDED = 277
|
|
||||||
SYS_UMASK_EXTENDED = 278
|
|
||||||
SYS_STAT_EXTENDED = 279
|
|
||||||
SYS_LSTAT_EXTENDED = 280
|
|
||||||
SYS_FSTAT_EXTENDED = 281
|
|
||||||
SYS_CHMOD_EXTENDED = 282
|
|
||||||
SYS_FCHMOD_EXTENDED = 283
|
|
||||||
SYS_ACCESS_EXTENDED = 284
|
|
||||||
SYS_SETTID = 285
|
|
||||||
SYS_GETTID = 286
|
|
||||||
SYS_SETSGROUPS = 287
|
|
||||||
SYS_GETSGROUPS = 288
|
|
||||||
SYS_SETWGROUPS = 289
|
|
||||||
SYS_GETWGROUPS = 290
|
|
||||||
SYS_MKFIFO_EXTENDED = 291
|
|
||||||
SYS_MKDIR_EXTENDED = 292
|
|
||||||
SYS_IDENTITYSVC = 293
|
|
||||||
SYS_SHARED_REGION_CHECK_NP = 294
|
|
||||||
SYS_VM_PRESSURE_MONITOR = 296
|
|
||||||
SYS_PSYNCH_RW_LONGRDLOCK = 297
|
|
||||||
SYS_PSYNCH_RW_YIELDWRLOCK = 298
|
|
||||||
SYS_PSYNCH_RW_DOWNGRADE = 299
|
|
||||||
SYS_PSYNCH_RW_UPGRADE = 300
|
|
||||||
SYS_PSYNCH_MUTEXWAIT = 301
|
|
||||||
SYS_PSYNCH_MUTEXDROP = 302
|
|
||||||
SYS_PSYNCH_CVBROAD = 303
|
|
||||||
SYS_PSYNCH_CVSIGNAL = 304
|
|
||||||
SYS_PSYNCH_CVWAIT = 305
|
|
||||||
SYS_PSYNCH_RW_RDLOCK = 306
|
|
||||||
SYS_PSYNCH_RW_WRLOCK = 307
|
|
||||||
SYS_PSYNCH_RW_UNLOCK = 308
|
|
||||||
SYS_PSYNCH_RW_UNLOCK2 = 309
|
|
||||||
SYS_GETSID = 310
|
|
||||||
SYS_SETTID_WITH_PID = 311
|
|
||||||
SYS_PSYNCH_CVCLRPREPOST = 312
|
|
||||||
SYS_AIO_FSYNC = 313
|
|
||||||
SYS_AIO_RETURN = 314
|
|
||||||
SYS_AIO_SUSPEND = 315
|
|
||||||
SYS_AIO_CANCEL = 316
|
|
||||||
SYS_AIO_ERROR = 317
|
|
||||||
SYS_AIO_READ = 318
|
|
||||||
SYS_AIO_WRITE = 319
|
|
||||||
SYS_LIO_LISTIO = 320
|
|
||||||
SYS_IOPOLICYSYS = 322
|
|
||||||
SYS_PROCESS_POLICY = 323
|
|
||||||
SYS_MLOCKALL = 324
|
|
||||||
SYS_MUNLOCKALL = 325
|
|
||||||
SYS_ISSETUGID = 327
|
|
||||||
SYS___PTHREAD_KILL = 328
|
|
||||||
SYS___PTHREAD_SIGMASK = 329
|
|
||||||
SYS___SIGWAIT = 330
|
|
||||||
SYS___DISABLE_THREADSIGNAL = 331
|
|
||||||
SYS___PTHREAD_MARKCANCEL = 332
|
|
||||||
SYS___PTHREAD_CANCELED = 333
|
|
||||||
SYS___SEMWAIT_SIGNAL = 334
|
|
||||||
SYS_PROC_INFO = 336
|
|
||||||
SYS_SENDFILE = 337
|
|
||||||
SYS_STAT64 = 338
|
|
||||||
SYS_FSTAT64 = 339
|
|
||||||
SYS_LSTAT64 = 340
|
|
||||||
SYS_STAT64_EXTENDED = 341
|
|
||||||
SYS_LSTAT64_EXTENDED = 342
|
|
||||||
SYS_FSTAT64_EXTENDED = 343
|
|
||||||
SYS_GETDIRENTRIES64 = 344
|
|
||||||
SYS_STATFS64 = 345
|
|
||||||
SYS_FSTATFS64 = 346
|
|
||||||
SYS_GETFSSTAT64 = 347
|
|
||||||
SYS___PTHREAD_CHDIR = 348
|
|
||||||
SYS___PTHREAD_FCHDIR = 349
|
|
||||||
SYS_AUDIT = 350
|
|
||||||
SYS_AUDITON = 351
|
|
||||||
SYS_GETAUID = 353
|
|
||||||
SYS_SETAUID = 354
|
|
||||||
SYS_GETAUDIT_ADDR = 357
|
|
||||||
SYS_SETAUDIT_ADDR = 358
|
|
||||||
SYS_AUDITCTL = 359
|
|
||||||
SYS_BSDTHREAD_CREATE = 360
|
|
||||||
SYS_BSDTHREAD_TERMINATE = 361
|
|
||||||
SYS_KQUEUE = 362
|
|
||||||
SYS_KEVENT = 363
|
|
||||||
SYS_LCHOWN = 364
|
|
||||||
SYS_BSDTHREAD_REGISTER = 366
|
|
||||||
SYS_WORKQ_OPEN = 367
|
|
||||||
SYS_WORKQ_KERNRETURN = 368
|
|
||||||
SYS_KEVENT64 = 369
|
|
||||||
SYS___OLD_SEMWAIT_SIGNAL = 370
|
|
||||||
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
|
|
||||||
SYS_THREAD_SELFID = 372
|
|
||||||
SYS_LEDGER = 373
|
|
||||||
SYS_KEVENT_QOS = 374
|
|
||||||
SYS_KEVENT_ID = 375
|
|
||||||
SYS___MAC_EXECVE = 380
|
|
||||||
SYS___MAC_SYSCALL = 381
|
|
||||||
SYS___MAC_GET_FILE = 382
|
|
||||||
SYS___MAC_SET_FILE = 383
|
|
||||||
SYS___MAC_GET_LINK = 384
|
|
||||||
SYS___MAC_SET_LINK = 385
|
|
||||||
SYS___MAC_GET_PROC = 386
|
|
||||||
SYS___MAC_SET_PROC = 387
|
|
||||||
SYS___MAC_GET_FD = 388
|
|
||||||
SYS___MAC_SET_FD = 389
|
|
||||||
SYS___MAC_GET_PID = 390
|
|
||||||
SYS_PSELECT = 394
|
|
||||||
SYS_PSELECT_NOCANCEL = 395
|
|
||||||
SYS_READ_NOCANCEL = 396
|
|
||||||
SYS_WRITE_NOCANCEL = 397
|
|
||||||
SYS_OPEN_NOCANCEL = 398
|
|
||||||
SYS_CLOSE_NOCANCEL = 399
|
|
||||||
SYS_WAIT4_NOCANCEL = 400
|
|
||||||
SYS_RECVMSG_NOCANCEL = 401
|
|
||||||
SYS_SENDMSG_NOCANCEL = 402
|
|
||||||
SYS_RECVFROM_NOCANCEL = 403
|
|
||||||
SYS_ACCEPT_NOCANCEL = 404
|
|
||||||
SYS_MSYNC_NOCANCEL = 405
|
|
||||||
SYS_FCNTL_NOCANCEL = 406
|
|
||||||
SYS_SELECT_NOCANCEL = 407
|
|
||||||
SYS_FSYNC_NOCANCEL = 408
|
|
||||||
SYS_CONNECT_NOCANCEL = 409
|
|
||||||
SYS_SIGSUSPEND_NOCANCEL = 410
|
|
||||||
SYS_READV_NOCANCEL = 411
|
|
||||||
SYS_WRITEV_NOCANCEL = 412
|
|
||||||
SYS_SENDTO_NOCANCEL = 413
|
|
||||||
SYS_PREAD_NOCANCEL = 414
|
|
||||||
SYS_PWRITE_NOCANCEL = 415
|
|
||||||
SYS_WAITID_NOCANCEL = 416
|
|
||||||
SYS_POLL_NOCANCEL = 417
|
|
||||||
SYS_MSGSND_NOCANCEL = 418
|
|
||||||
SYS_MSGRCV_NOCANCEL = 419
|
|
||||||
SYS_SEM_WAIT_NOCANCEL = 420
|
|
||||||
SYS_AIO_SUSPEND_NOCANCEL = 421
|
|
||||||
SYS___SIGWAIT_NOCANCEL = 422
|
|
||||||
SYS___SEMWAIT_SIGNAL_NOCANCEL = 423
|
|
||||||
SYS___MAC_MOUNT = 424
|
|
||||||
SYS___MAC_GET_MOUNT = 425
|
|
||||||
SYS___MAC_GETFSSTAT = 426
|
|
||||||
SYS_FSGETPATH = 427
|
|
||||||
SYS_AUDIT_SESSION_SELF = 428
|
|
||||||
SYS_AUDIT_SESSION_JOIN = 429
|
|
||||||
SYS_FILEPORT_MAKEPORT = 430
|
|
||||||
SYS_FILEPORT_MAKEFD = 431
|
|
||||||
SYS_AUDIT_SESSION_PORT = 432
|
|
||||||
SYS_PID_SUSPEND = 433
|
|
||||||
SYS_PID_RESUME = 434
|
|
||||||
SYS_PID_HIBERNATE = 435
|
|
||||||
SYS_PID_SHUTDOWN_SOCKETS = 436
|
|
||||||
SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
|
|
||||||
SYS_KAS_INFO = 439
|
|
||||||
SYS_MEMORYSTATUS_CONTROL = 440
|
|
||||||
SYS_GUARDED_OPEN_NP = 441
|
|
||||||
SYS_GUARDED_CLOSE_NP = 442
|
|
||||||
SYS_GUARDED_KQUEUE_NP = 443
|
|
||||||
SYS_CHANGE_FDGUARD_NP = 444
|
|
||||||
SYS_USRCTL = 445
|
|
||||||
SYS_PROC_RLIMIT_CONTROL = 446
|
|
||||||
SYS_CONNECTX = 447
|
|
||||||
SYS_DISCONNECTX = 448
|
|
||||||
SYS_PEELOFF = 449
|
|
||||||
SYS_SOCKET_DELEGATE = 450
|
|
||||||
SYS_TELEMETRY = 451
|
|
||||||
SYS_PROC_UUID_POLICY = 452
|
|
||||||
SYS_MEMORYSTATUS_GET_LEVEL = 453
|
|
||||||
SYS_SYSTEM_OVERRIDE = 454
|
|
||||||
SYS_VFS_PURGE = 455
|
|
||||||
SYS_SFI_CTL = 456
|
|
||||||
SYS_SFI_PIDCTL = 457
|
|
||||||
SYS_COALITION = 458
|
|
||||||
SYS_COALITION_INFO = 459
|
|
||||||
SYS_NECP_MATCH_POLICY = 460
|
|
||||||
SYS_GETATTRLISTBULK = 461
|
|
||||||
SYS_CLONEFILEAT = 462
|
|
||||||
SYS_OPENAT = 463
|
|
||||||
SYS_OPENAT_NOCANCEL = 464
|
|
||||||
SYS_RENAMEAT = 465
|
|
||||||
SYS_FACCESSAT = 466
|
|
||||||
SYS_FCHMODAT = 467
|
|
||||||
SYS_FCHOWNAT = 468
|
|
||||||
SYS_FSTATAT = 469
|
|
||||||
SYS_FSTATAT64 = 470
|
|
||||||
SYS_LINKAT = 471
|
|
||||||
SYS_UNLINKAT = 472
|
|
||||||
SYS_READLINKAT = 473
|
|
||||||
SYS_SYMLINKAT = 474
|
|
||||||
SYS_MKDIRAT = 475
|
|
||||||
SYS_GETATTRLISTAT = 476
|
|
||||||
SYS_PROC_TRACE_LOG = 477
|
|
||||||
SYS_BSDTHREAD_CTL = 478
|
|
||||||
SYS_OPENBYID_NP = 479
|
|
||||||
SYS_RECVMSG_X = 480
|
|
||||||
SYS_SENDMSG_X = 481
|
|
||||||
SYS_THREAD_SELFUSAGE = 482
|
|
||||||
SYS_CSRCTL = 483
|
|
||||||
SYS_GUARDED_OPEN_DPROTECTED_NP = 484
|
|
||||||
SYS_GUARDED_WRITE_NP = 485
|
|
||||||
SYS_GUARDED_PWRITE_NP = 486
|
|
||||||
SYS_GUARDED_WRITEV_NP = 487
|
|
||||||
SYS_RENAMEATX_NP = 488
|
|
||||||
SYS_MREMAP_ENCRYPTED = 489
|
|
||||||
SYS_NETAGENT_TRIGGER = 490
|
|
||||||
SYS_STACK_SNAPSHOT_WITH_CONFIG = 491
|
|
||||||
SYS_MICROSTACKSHOT = 492
|
|
||||||
SYS_GRAB_PGO_DATA = 493
|
|
||||||
SYS_PERSONA = 494
|
|
||||||
SYS_WORK_INTERVAL_CTL = 499
|
|
||||||
SYS_GETENTROPY = 500
|
|
||||||
SYS_NECP_OPEN = 501
|
|
||||||
SYS_NECP_CLIENT_ACTION = 502
|
|
||||||
SYS___NEXUS_OPEN = 503
|
|
||||||
SYS___NEXUS_REGISTER = 504
|
|
||||||
SYS___NEXUS_DEREGISTER = 505
|
|
||||||
SYS___NEXUS_CREATE = 506
|
|
||||||
SYS___NEXUS_DESTROY = 507
|
|
||||||
SYS___NEXUS_GET_OPT = 508
|
|
||||||
SYS___NEXUS_SET_OPT = 509
|
|
||||||
SYS___CHANNEL_OPEN = 510
|
|
||||||
SYS___CHANNEL_GET_INFO = 511
|
|
||||||
SYS___CHANNEL_SYNC = 512
|
|
||||||
SYS___CHANNEL_GET_OPT = 513
|
|
||||||
SYS___CHANNEL_SET_OPT = 514
|
|
||||||
SYS_ULOCK_WAIT = 515
|
|
||||||
SYS_ULOCK_WAKE = 516
|
|
||||||
SYS_FCLONEFILEAT = 517
|
|
||||||
SYS_FS_SNAPSHOT = 518
|
|
||||||
SYS_TERMINATE_WITH_PAYLOAD = 520
|
|
||||||
SYS_ABORT_WITH_PAYLOAD = 521
|
|
||||||
SYS_NECP_SESSION_OPEN = 522
|
|
||||||
SYS_NECP_SESSION_ACTION = 523
|
|
||||||
SYS_SETATTRLISTAT = 524
|
|
||||||
SYS_NET_QOS_GUIDELINE = 525
|
|
||||||
SYS_FMOUNT = 526
|
|
||||||
SYS_NTP_ADJTIME = 527
|
|
||||||
SYS_NTP_GETTIME = 528
|
|
||||||
SYS_OS_FAULT_WITH_PAYLOAD = 529
|
|
||||||
SYS_MAXSYSCALL = 530
|
|
||||||
SYS_INVALID = 63
|
|
||||||
)
|
|
||||||
|
|
@ -433,4 +433,5 @@ const (
|
||||||
SYS_CLONE3 = 435
|
SYS_CLONE3 = 435
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -355,4 +355,5 @@ const (
|
||||||
SYS_CLONE3 = 435
|
SYS_CLONE3 = 435
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -397,4 +397,5 @@ const (
|
||||||
SYS_CLONE3 = 435
|
SYS_CLONE3 = 435
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -300,4 +300,5 @@ const (
|
||||||
SYS_CLONE3 = 435
|
SYS_CLONE3 = 435
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -418,4 +418,5 @@ const (
|
||||||
SYS_CLONE3 = 4435
|
SYS_CLONE3 = 4435
|
||||||
SYS_OPENAT2 = 4437
|
SYS_OPENAT2 = 4437
|
||||||
SYS_PIDFD_GETFD = 4438
|
SYS_PIDFD_GETFD = 4438
|
||||||
|
SYS_FACCESSAT2 = 4439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -348,4 +348,5 @@ const (
|
||||||
SYS_CLONE3 = 5435
|
SYS_CLONE3 = 5435
|
||||||
SYS_OPENAT2 = 5437
|
SYS_OPENAT2 = 5437
|
||||||
SYS_PIDFD_GETFD = 5438
|
SYS_PIDFD_GETFD = 5438
|
||||||
|
SYS_FACCESSAT2 = 5439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -348,4 +348,5 @@ const (
|
||||||
SYS_CLONE3 = 5435
|
SYS_CLONE3 = 5435
|
||||||
SYS_OPENAT2 = 5437
|
SYS_OPENAT2 = 5437
|
||||||
SYS_PIDFD_GETFD = 5438
|
SYS_PIDFD_GETFD = 5438
|
||||||
|
SYS_FACCESSAT2 = 5439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -418,4 +418,5 @@ const (
|
||||||
SYS_CLONE3 = 4435
|
SYS_CLONE3 = 4435
|
||||||
SYS_OPENAT2 = 4437
|
SYS_OPENAT2 = 4437
|
||||||
SYS_PIDFD_GETFD = 4438
|
SYS_PIDFD_GETFD = 4438
|
||||||
|
SYS_FACCESSAT2 = 4439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -397,4 +397,5 @@ const (
|
||||||
SYS_CLONE3 = 435
|
SYS_CLONE3 = 435
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -397,4 +397,5 @@ const (
|
||||||
SYS_CLONE3 = 435
|
SYS_CLONE3 = 435
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -299,4 +299,5 @@ const (
|
||||||
SYS_CLONE3 = 435
|
SYS_CLONE3 = 435
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -362,4 +362,5 @@ const (
|
||||||
SYS_CLONE3 = 435
|
SYS_CLONE3 = 435
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -376,4 +376,5 @@ const (
|
||||||
SYS_PIDFD_OPEN = 434
|
SYS_PIDFD_OPEN = 434
|
||||||
SYS_OPENAT2 = 437
|
SYS_OPENAT2 = 437
|
||||||
SYS_PIDFD_GETFD = 438
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,220 @@
|
||||||
|
// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build mips64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
SYS_EXIT = 1 // { void sys_exit(int rval); }
|
||||||
|
SYS_FORK = 2 // { int sys_fork(void); }
|
||||||
|
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
|
||||||
|
SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); }
|
||||||
|
SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); }
|
||||||
|
SYS_CLOSE = 6 // { int sys_close(int fd); }
|
||||||
|
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); }
|
||||||
|
SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); }
|
||||||
|
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); }
|
||||||
|
SYS_UNLINK = 10 // { int sys_unlink(const char *path); }
|
||||||
|
SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); }
|
||||||
|
SYS_CHDIR = 12 // { int sys_chdir(const char *path); }
|
||||||
|
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); }
|
||||||
|
SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); }
|
||||||
|
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); }
|
||||||
|
SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break
|
||||||
|
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); }
|
||||||
|
SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); }
|
||||||
|
SYS_GETPID = 20 // { pid_t sys_getpid(void); }
|
||||||
|
SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); }
|
||||||
|
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); }
|
||||||
|
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); }
|
||||||
|
SYS_GETUID = 24 // { uid_t sys_getuid(void); }
|
||||||
|
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); }
|
||||||
|
SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); }
|
||||||
|
SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); }
|
||||||
|
SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); }
|
||||||
|
SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); }
|
||||||
|
SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); }
|
||||||
|
SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); }
|
||||||
|
SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); }
|
||||||
|
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); }
|
||||||
|
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); }
|
||||||
|
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); }
|
||||||
|
SYS_SYNC = 36 // { void sys_sync(void); }
|
||||||
|
SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); }
|
||||||
|
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); }
|
||||||
|
SYS_GETPPID = 39 // { pid_t sys_getppid(void); }
|
||||||
|
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); }
|
||||||
|
SYS_DUP = 41 // { int sys_dup(int fd); }
|
||||||
|
SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); }
|
||||||
|
SYS_GETEGID = 43 // { gid_t sys_getegid(void); }
|
||||||
|
SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); }
|
||||||
|
SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); }
|
||||||
|
SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); }
|
||||||
|
SYS_GETGID = 47 // { gid_t sys_getgid(void); }
|
||||||
|
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); }
|
||||||
|
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); }
|
||||||
|
SYS_ACCT = 51 // { int sys_acct(const char *path); }
|
||||||
|
SYS_SIGPENDING = 52 // { int sys_sigpending(void); }
|
||||||
|
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); }
|
||||||
|
SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); }
|
||||||
|
SYS_REBOOT = 55 // { int sys_reboot(int opt); }
|
||||||
|
SYS_REVOKE = 56 // { int sys_revoke(const char *path); }
|
||||||
|
SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); }
|
||||||
|
SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); }
|
||||||
|
SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); }
|
||||||
|
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); }
|
||||||
|
SYS_CHROOT = 61 // { int sys_chroot(const char *path); }
|
||||||
|
SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); }
|
||||||
|
SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); }
|
||||||
|
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); }
|
||||||
|
SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); }
|
||||||
|
SYS_VFORK = 66 // { int sys_vfork(void); }
|
||||||
|
SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); }
|
||||||
|
SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); }
|
||||||
|
SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); }
|
||||||
|
SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); }
|
||||||
|
SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
|
||||||
|
SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
|
||||||
|
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); }
|
||||||
|
SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); }
|
||||||
|
SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); }
|
||||||
|
SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); }
|
||||||
|
SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); }
|
||||||
|
SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); }
|
||||||
|
SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); }
|
||||||
|
SYS_GETPGRP = 81 // { int sys_getpgrp(void); }
|
||||||
|
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); }
|
||||||
|
SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); }
|
||||||
|
SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); }
|
||||||
|
SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); }
|
||||||
|
SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); }
|
||||||
|
SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); }
|
||||||
|
SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); }
|
||||||
|
SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); }
|
||||||
|
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); }
|
||||||
|
SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); }
|
||||||
|
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); }
|
||||||
|
SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); }
|
||||||
|
SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); }
|
||||||
|
SYS_FSYNC = 95 // { int sys_fsync(int fd); }
|
||||||
|
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); }
|
||||||
|
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); }
|
||||||
|
SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); }
|
||||||
|
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); }
|
||||||
|
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); }
|
||||||
|
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); }
|
||||||
|
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); }
|
||||||
|
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); }
|
||||||
|
SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); }
|
||||||
|
SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); }
|
||||||
|
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); }
|
||||||
|
SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); }
|
||||||
|
SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); }
|
||||||
|
SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); }
|
||||||
|
SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); }
|
||||||
|
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); }
|
||||||
|
SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); }
|
||||||
|
SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); }
|
||||||
|
SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, char *resolved); }
|
||||||
|
SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); }
|
||||||
|
SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); }
|
||||||
|
SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); }
|
||||||
|
SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); }
|
||||||
|
SYS_KILL = 122 // { int sys_kill(int pid, int signum); }
|
||||||
|
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); }
|
||||||
|
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); }
|
||||||
|
SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); }
|
||||||
|
SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); }
|
||||||
|
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); }
|
||||||
|
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); }
|
||||||
|
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); }
|
||||||
|
SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); }
|
||||||
|
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); }
|
||||||
|
SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); }
|
||||||
|
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); }
|
||||||
|
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); }
|
||||||
|
SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); }
|
||||||
|
SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); }
|
||||||
|
SYS_SETSID = 147 // { int sys_setsid(void); }
|
||||||
|
SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); }
|
||||||
|
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); }
|
||||||
|
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); }
|
||||||
|
SYS___TMPFD = 164 // { int sys___tmpfd(int flags); }
|
||||||
|
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); }
|
||||||
|
SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); }
|
||||||
|
SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); }
|
||||||
|
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); }
|
||||||
|
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); }
|
||||||
|
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); }
|
||||||
|
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); }
|
||||||
|
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); }
|
||||||
|
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); }
|
||||||
|
SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); }
|
||||||
|
SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); }
|
||||||
|
SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); }
|
||||||
|
SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); }
|
||||||
|
SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); }
|
||||||
|
SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); }
|
||||||
|
SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); }
|
||||||
|
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); }
|
||||||
|
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); }
|
||||||
|
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); }
|
||||||
|
SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); }
|
||||||
|
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); }
|
||||||
|
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); }
|
||||||
|
SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); }
|
||||||
|
SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); }
|
||||||
|
SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); }
|
||||||
|
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); }
|
||||||
|
SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); }
|
||||||
|
SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); }
|
||||||
|
SYS_ISSETUGID = 253 // { int sys_issetugid(void); }
|
||||||
|
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); }
|
||||||
|
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); }
|
||||||
|
SYS_PIPE = 263 // { int sys_pipe(int *fdp); }
|
||||||
|
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); }
|
||||||
|
SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); }
|
||||||
|
SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); }
|
||||||
|
SYS_KQUEUE = 269 // { int sys_kqueue(void); }
|
||||||
|
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); }
|
||||||
|
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); }
|
||||||
|
SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
|
||||||
|
SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); }
|
||||||
|
SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
|
||||||
|
SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
|
||||||
|
SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); }
|
||||||
|
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); }
|
||||||
|
SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); }
|
||||||
|
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); }
|
||||||
|
SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); }
|
||||||
|
SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); }
|
||||||
|
SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); }
|
||||||
|
SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); }
|
||||||
|
SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); }
|
||||||
|
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); }
|
||||||
|
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); }
|
||||||
|
SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); }
|
||||||
|
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); }
|
||||||
|
SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); }
|
||||||
|
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); }
|
||||||
|
SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); }
|
||||||
|
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); }
|
||||||
|
SYS_GETRTABLE = 311 // { int sys_getrtable(void); }
|
||||||
|
SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); }
|
||||||
|
SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); }
|
||||||
|
SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); }
|
||||||
|
SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); }
|
||||||
|
SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); }
|
||||||
|
SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); }
|
||||||
|
SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); }
|
||||||
|
SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); }
|
||||||
|
SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); }
|
||||||
|
SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); }
|
||||||
|
SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); }
|
||||||
|
SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); }
|
||||||
|
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); }
|
||||||
|
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); }
|
||||||
|
)
|
||||||
|
|
@ -67,7 +67,9 @@ type Statx_t struct {
|
||||||
Rdev_minor uint32
|
Rdev_minor uint32
|
||||||
Dev_major uint32
|
Dev_major uint32
|
||||||
Dev_minor uint32
|
Dev_minor uint32
|
||||||
_ [14]uint64
|
Mnt_id uint64
|
||||||
|
_ uint64
|
||||||
|
_ [12]uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
type Fsid struct {
|
type Fsid struct {
|
||||||
|
|
@ -138,6 +140,48 @@ type FscryptGetKeyStatusArg struct {
|
||||||
_ [13]uint32
|
_ [13]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmIoctl struct {
|
||||||
|
Version [3]uint32
|
||||||
|
Data_size uint32
|
||||||
|
Data_start uint32
|
||||||
|
Target_count uint32
|
||||||
|
Open_count int32
|
||||||
|
Flags uint32
|
||||||
|
Event_nr uint32
|
||||||
|
_ uint32
|
||||||
|
Dev uint64
|
||||||
|
Name [128]byte
|
||||||
|
Uuid [129]byte
|
||||||
|
Data [7]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type DmTargetSpec struct {
|
||||||
|
Sector_start uint64
|
||||||
|
Length uint64
|
||||||
|
Status int32
|
||||||
|
Next uint32
|
||||||
|
Target_type [16]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type DmTargetDeps struct {
|
||||||
|
Count uint32
|
||||||
|
_ uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type DmTargetVersions struct {
|
||||||
|
Next uint32
|
||||||
|
Version [3]uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type DmTargetMsg struct {
|
||||||
|
Sector uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofDmIoctl = 0x138
|
||||||
|
SizeofDmTargetSpec = 0x28
|
||||||
|
)
|
||||||
|
|
||||||
type KeyctlDHParams struct {
|
type KeyctlDHParams struct {
|
||||||
Private int32
|
Private int32
|
||||||
Prime int32
|
Prime int32
|
||||||
|
|
@ -266,6 +310,15 @@ type RawSockaddrL2TPIP6 struct {
|
||||||
Conn_id uint32
|
Conn_id uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrIUCV struct {
|
||||||
|
Family uint16
|
||||||
|
Port uint16
|
||||||
|
Addr uint32
|
||||||
|
Nodeid [8]int8
|
||||||
|
User_id [8]int8
|
||||||
|
Name [8]int8
|
||||||
|
}
|
||||||
|
|
||||||
type _Socklen uint32
|
type _Socklen uint32
|
||||||
|
|
||||||
type Linger struct {
|
type Linger struct {
|
||||||
|
|
@ -378,6 +431,7 @@ const (
|
||||||
SizeofSockaddrTIPC = 0x10
|
SizeofSockaddrTIPC = 0x10
|
||||||
SizeofSockaddrL2TPIP = 0x10
|
SizeofSockaddrL2TPIP = 0x10
|
||||||
SizeofSockaddrL2TPIP6 = 0x20
|
SizeofSockaddrL2TPIP6 = 0x20
|
||||||
|
SizeofSockaddrIUCV = 0x20
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
|
|
@ -671,6 +725,8 @@ type InotifyEvent struct {
|
||||||
|
|
||||||
const SizeofInotifyEvent = 0x10
|
const SizeofInotifyEvent = 0x10
|
||||||
|
|
||||||
|
const SI_LOAD_SHIFT = 0x10
|
||||||
|
|
||||||
type Utsname struct {
|
type Utsname struct {
|
||||||
Sysname [65]byte
|
Sysname [65]byte
|
||||||
Nodename [65]byte
|
Nodename [65]byte
|
||||||
|
|
@ -960,6 +1016,13 @@ const (
|
||||||
PERF_SAMPLE_STREAM_ID = 0x200
|
PERF_SAMPLE_STREAM_ID = 0x200
|
||||||
PERF_SAMPLE_RAW = 0x400
|
PERF_SAMPLE_RAW = 0x400
|
||||||
PERF_SAMPLE_BRANCH_STACK = 0x800
|
PERF_SAMPLE_BRANCH_STACK = 0x800
|
||||||
|
PERF_SAMPLE_REGS_USER = 0x1000
|
||||||
|
PERF_SAMPLE_STACK_USER = 0x2000
|
||||||
|
PERF_SAMPLE_WEIGHT = 0x4000
|
||||||
|
PERF_SAMPLE_DATA_SRC = 0x8000
|
||||||
|
PERF_SAMPLE_IDENTIFIER = 0x10000
|
||||||
|
PERF_SAMPLE_TRANSACTION = 0x20000
|
||||||
|
PERF_SAMPLE_REGS_INTR = 0x40000
|
||||||
|
|
||||||
PERF_SAMPLE_BRANCH_USER = 0x1
|
PERF_SAMPLE_BRANCH_USER = 0x1
|
||||||
PERF_SAMPLE_BRANCH_KERNEL = 0x2
|
PERF_SAMPLE_BRANCH_KERNEL = 0x2
|
||||||
|
|
@ -1689,6 +1752,21 @@ const (
|
||||||
NFT_NG_RANDOM = 0x1
|
NFT_NG_RANDOM = 0x1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
NFTA_TARGET_UNSPEC = 0x0
|
||||||
|
NFTA_TARGET_NAME = 0x1
|
||||||
|
NFTA_TARGET_REV = 0x2
|
||||||
|
NFTA_TARGET_INFO = 0x3
|
||||||
|
NFTA_MATCH_UNSPEC = 0x0
|
||||||
|
NFTA_MATCH_NAME = 0x1
|
||||||
|
NFTA_MATCH_REV = 0x2
|
||||||
|
NFTA_MATCH_INFO = 0x3
|
||||||
|
NFTA_COMPAT_UNSPEC = 0x0
|
||||||
|
NFTA_COMPAT_NAME = 0x1
|
||||||
|
NFTA_COMPAT_REV = 0x2
|
||||||
|
NFTA_COMPAT_TYPE = 0x3
|
||||||
|
)
|
||||||
|
|
||||||
type RTCTime struct {
|
type RTCTime struct {
|
||||||
Sec int32
|
Sec int32
|
||||||
Min int32
|
Min int32
|
||||||
|
|
@ -1912,6 +1990,10 @@ const (
|
||||||
BPF_MAP_DELETE_BATCH = 0x1b
|
BPF_MAP_DELETE_BATCH = 0x1b
|
||||||
BPF_LINK_CREATE = 0x1c
|
BPF_LINK_CREATE = 0x1c
|
||||||
BPF_LINK_UPDATE = 0x1d
|
BPF_LINK_UPDATE = 0x1d
|
||||||
|
BPF_LINK_GET_FD_BY_ID = 0x1e
|
||||||
|
BPF_LINK_GET_NEXT_ID = 0x1f
|
||||||
|
BPF_ENABLE_STATS = 0x20
|
||||||
|
BPF_ITER_CREATE = 0x21
|
||||||
BPF_MAP_TYPE_UNSPEC = 0x0
|
BPF_MAP_TYPE_UNSPEC = 0x0
|
||||||
BPF_MAP_TYPE_HASH = 0x1
|
BPF_MAP_TYPE_HASH = 0x1
|
||||||
BPF_MAP_TYPE_ARRAY = 0x2
|
BPF_MAP_TYPE_ARRAY = 0x2
|
||||||
|
|
@ -1939,6 +2021,7 @@ const (
|
||||||
BPF_MAP_TYPE_SK_STORAGE = 0x18
|
BPF_MAP_TYPE_SK_STORAGE = 0x18
|
||||||
BPF_MAP_TYPE_DEVMAP_HASH = 0x19
|
BPF_MAP_TYPE_DEVMAP_HASH = 0x19
|
||||||
BPF_MAP_TYPE_STRUCT_OPS = 0x1a
|
BPF_MAP_TYPE_STRUCT_OPS = 0x1a
|
||||||
|
BPF_MAP_TYPE_RINGBUF = 0x1b
|
||||||
BPF_PROG_TYPE_UNSPEC = 0x0
|
BPF_PROG_TYPE_UNSPEC = 0x0
|
||||||
BPF_PROG_TYPE_SOCKET_FILTER = 0x1
|
BPF_PROG_TYPE_SOCKET_FILTER = 0x1
|
||||||
BPF_PROG_TYPE_KPROBE = 0x2
|
BPF_PROG_TYPE_KPROBE = 0x2
|
||||||
|
|
@ -1997,6 +2080,18 @@ const (
|
||||||
BPF_TRACE_FEXIT = 0x19
|
BPF_TRACE_FEXIT = 0x19
|
||||||
BPF_MODIFY_RETURN = 0x1a
|
BPF_MODIFY_RETURN = 0x1a
|
||||||
BPF_LSM_MAC = 0x1b
|
BPF_LSM_MAC = 0x1b
|
||||||
|
BPF_TRACE_ITER = 0x1c
|
||||||
|
BPF_CGROUP_INET4_GETPEERNAME = 0x1d
|
||||||
|
BPF_CGROUP_INET6_GETPEERNAME = 0x1e
|
||||||
|
BPF_CGROUP_INET4_GETSOCKNAME = 0x1f
|
||||||
|
BPF_CGROUP_INET6_GETSOCKNAME = 0x20
|
||||||
|
BPF_XDP_DEVMAP = 0x21
|
||||||
|
BPF_LINK_TYPE_UNSPEC = 0x0
|
||||||
|
BPF_LINK_TYPE_RAW_TRACEPOINT = 0x1
|
||||||
|
BPF_LINK_TYPE_TRACING = 0x2
|
||||||
|
BPF_LINK_TYPE_CGROUP = 0x3
|
||||||
|
BPF_LINK_TYPE_ITER = 0x4
|
||||||
|
BPF_LINK_TYPE_NETNS = 0x5
|
||||||
BPF_ANY = 0x0
|
BPF_ANY = 0x0
|
||||||
BPF_NOEXIST = 0x1
|
BPF_NOEXIST = 0x1
|
||||||
BPF_EXIST = 0x2
|
BPF_EXIST = 0x2
|
||||||
|
|
@ -2012,6 +2107,7 @@ const (
|
||||||
BPF_F_WRONLY_PROG = 0x100
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_CLONE = 0x200
|
BPF_F_CLONE = 0x200
|
||||||
BPF_F_MMAPABLE = 0x400
|
BPF_F_MMAPABLE = 0x400
|
||||||
|
BPF_STATS_RUN_TIME = 0x0
|
||||||
BPF_STACK_BUILD_ID_EMPTY = 0x0
|
BPF_STACK_BUILD_ID_EMPTY = 0x0
|
||||||
BPF_STACK_BUILD_ID_VALID = 0x1
|
BPF_STACK_BUILD_ID_VALID = 0x1
|
||||||
BPF_STACK_BUILD_ID_IP = 0x2
|
BPF_STACK_BUILD_ID_IP = 0x2
|
||||||
|
|
@ -2035,16 +2131,30 @@ const (
|
||||||
BPF_F_CURRENT_CPU = 0xffffffff
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
BPF_F_CURRENT_NETNS = -0x1
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_CSUM_LEVEL_QUERY = 0x0
|
||||||
|
BPF_CSUM_LEVEL_INC = 0x1
|
||||||
|
BPF_CSUM_LEVEL_DEC = 0x2
|
||||||
|
BPF_CSUM_LEVEL_RESET = 0x3
|
||||||
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_NO_CSUM_RESET = 0x20
|
||||||
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_F_SYSCTL_BASE_NAME = 0x1
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
BPF_F_GET_BRANCH_RECORDS_SIZE = 0x1
|
BPF_F_GET_BRANCH_RECORDS_SIZE = 0x1
|
||||||
|
BPF_RB_NO_WAKEUP = 0x1
|
||||||
|
BPF_RB_FORCE_WAKEUP = 0x2
|
||||||
|
BPF_RB_AVAIL_DATA = 0x0
|
||||||
|
BPF_RB_RING_SIZE = 0x1
|
||||||
|
BPF_RB_CONS_POS = 0x2
|
||||||
|
BPF_RB_PROD_POS = 0x3
|
||||||
|
BPF_RINGBUF_BUSY_BIT = 0x80000000
|
||||||
|
BPF_RINGBUF_DISCARD_BIT = 0x40000000
|
||||||
|
BPF_RINGBUF_HDR_SZ = 0x8
|
||||||
BPF_ADJ_ROOM_NET = 0x0
|
BPF_ADJ_ROOM_NET = 0x0
|
||||||
BPF_ADJ_ROOM_MAC = 0x1
|
BPF_ADJ_ROOM_MAC = 0x1
|
||||||
BPF_HDR_START_MAC = 0x0
|
BPF_HDR_START_MAC = 0x0
|
||||||
|
|
@ -2417,3 +2527,12 @@ const (
|
||||||
NHA_GROUPS = 0x9
|
NHA_GROUPS = 0x9
|
||||||
NHA_MASTER = 0xa
|
NHA_MASTER = 0xa
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
CAN_RAW_FILTER = 0x1
|
||||||
|
CAN_RAW_ERR_FILTER = 0x2
|
||||||
|
CAN_RAW_LOOPBACK = 0x3
|
||||||
|
CAN_RAW_RECV_OWN_MSGS = 0x4
|
||||||
|
CAN_RAW_FD_FRAMES = 0x5
|
||||||
|
CAN_RAW_JOIN_FILTERS = 0x6
|
||||||
|
)
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,11 @@ type Flock_t struct {
|
||||||
Pid int32
|
Pid int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -120,6 +120,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -120,6 +120,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,13 @@ type Flock_t struct {
|
||||||
_ [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x6
|
FADV_DONTNEED = 0x6
|
||||||
FADV_NOREUSE = 0x7
|
FADV_NOREUSE = 0x7
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,13 @@ type Flock_t struct {
|
||||||
_ [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FADV_DONTNEED = 0x4
|
FADV_DONTNEED = 0x4
|
||||||
FADV_NOREUSE = 0x5
|
FADV_NOREUSE = 0x5
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,565 @@
|
||||||
|
// cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build mips64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofPtr = 0x8
|
||||||
|
SizeofShort = 0x2
|
||||||
|
SizeofInt = 0x4
|
||||||
|
SizeofLong = 0x8
|
||||||
|
SizeofLongLong = 0x8
|
||||||
|
)
|
||||||
|
|
||||||
|
type (
|
||||||
|
_C_short int16
|
||||||
|
_C_int int32
|
||||||
|
_C_long int64
|
||||||
|
_C_long_long int64
|
||||||
|
)
|
||||||
|
|
||||||
|
type Timespec struct {
|
||||||
|
Sec int64
|
||||||
|
Nsec int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Timeval struct {
|
||||||
|
Sec int64
|
||||||
|
Usec int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Rusage struct {
|
||||||
|
Utime Timeval
|
||||||
|
Stime Timeval
|
||||||
|
Maxrss int64
|
||||||
|
Ixrss int64
|
||||||
|
Idrss int64
|
||||||
|
Isrss int64
|
||||||
|
Minflt int64
|
||||||
|
Majflt int64
|
||||||
|
Nswap int64
|
||||||
|
Inblock int64
|
||||||
|
Oublock int64
|
||||||
|
Msgsnd int64
|
||||||
|
Msgrcv int64
|
||||||
|
Nsignals int64
|
||||||
|
Nvcsw int64
|
||||||
|
Nivcsw int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Rlimit struct {
|
||||||
|
Cur uint64
|
||||||
|
Max uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type _Gid_t uint32
|
||||||
|
|
||||||
|
type Stat_t struct {
|
||||||
|
Mode uint32
|
||||||
|
Dev int32
|
||||||
|
Ino uint64
|
||||||
|
Nlink uint32
|
||||||
|
Uid uint32
|
||||||
|
Gid uint32
|
||||||
|
Rdev int32
|
||||||
|
Atim Timespec
|
||||||
|
Mtim Timespec
|
||||||
|
Ctim Timespec
|
||||||
|
Size int64
|
||||||
|
Blocks int64
|
||||||
|
Blksize int32
|
||||||
|
Flags uint32
|
||||||
|
Gen uint32
|
||||||
|
_ Timespec
|
||||||
|
}
|
||||||
|
|
||||||
|
type Statfs_t struct {
|
||||||
|
F_flags uint32
|
||||||
|
F_bsize uint32
|
||||||
|
F_iosize uint32
|
||||||
|
F_blocks uint64
|
||||||
|
F_bfree uint64
|
||||||
|
F_bavail int64
|
||||||
|
F_files uint64
|
||||||
|
F_ffree uint64
|
||||||
|
F_favail int64
|
||||||
|
F_syncwrites uint64
|
||||||
|
F_syncreads uint64
|
||||||
|
F_asyncwrites uint64
|
||||||
|
F_asyncreads uint64
|
||||||
|
F_fsid Fsid
|
||||||
|
F_namemax uint32
|
||||||
|
F_owner uint32
|
||||||
|
F_ctime uint64
|
||||||
|
F_fstypename [16]int8
|
||||||
|
F_mntonname [90]int8
|
||||||
|
F_mntfromname [90]int8
|
||||||
|
F_mntfromspec [90]int8
|
||||||
|
_ [2]byte
|
||||||
|
Mount_info [160]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type Flock_t struct {
|
||||||
|
Start int64
|
||||||
|
Len int64
|
||||||
|
Pid int32
|
||||||
|
Type int16
|
||||||
|
Whence int16
|
||||||
|
}
|
||||||
|
|
||||||
|
type Dirent struct {
|
||||||
|
Fileno uint64
|
||||||
|
Off int64
|
||||||
|
Reclen uint16
|
||||||
|
Type uint8
|
||||||
|
Namlen uint8
|
||||||
|
_ [4]uint8
|
||||||
|
Name [256]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type Fsid struct {
|
||||||
|
Val [2]int32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
PathMax = 0x400
|
||||||
|
)
|
||||||
|
|
||||||
|
type RawSockaddrInet4 struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Port uint16
|
||||||
|
Addr [4]byte /* in_addr */
|
||||||
|
Zero [8]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrInet6 struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Port uint16
|
||||||
|
Flowinfo uint32
|
||||||
|
Addr [16]byte /* in6_addr */
|
||||||
|
Scope_id uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrUnix struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Path [104]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrDatalink struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Index uint16
|
||||||
|
Type uint8
|
||||||
|
Nlen uint8
|
||||||
|
Alen uint8
|
||||||
|
Slen uint8
|
||||||
|
Data [24]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddr struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Data [14]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrAny struct {
|
||||||
|
Addr RawSockaddr
|
||||||
|
Pad [92]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type _Socklen uint32
|
||||||
|
|
||||||
|
type Linger struct {
|
||||||
|
Onoff int32
|
||||||
|
Linger int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Iovec struct {
|
||||||
|
Base *byte
|
||||||
|
Len uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPMreq struct {
|
||||||
|
Multiaddr [4]byte /* in_addr */
|
||||||
|
Interface [4]byte /* in_addr */
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPv6Mreq struct {
|
||||||
|
Multiaddr [16]byte /* in6_addr */
|
||||||
|
Interface uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Msghdr struct {
|
||||||
|
Name *byte
|
||||||
|
Namelen uint32
|
||||||
|
Iov *Iovec
|
||||||
|
Iovlen uint32
|
||||||
|
Control *byte
|
||||||
|
Controllen uint32
|
||||||
|
Flags int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Cmsghdr struct {
|
||||||
|
Len uint32
|
||||||
|
Level int32
|
||||||
|
Type int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Inet6Pktinfo struct {
|
||||||
|
Addr [16]byte /* in6_addr */
|
||||||
|
Ifindex uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPv6MTUInfo struct {
|
||||||
|
Addr RawSockaddrInet6
|
||||||
|
Mtu uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type ICMPv6Filter struct {
|
||||||
|
Filt [8]uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofSockaddrInet4 = 0x10
|
||||||
|
SizeofSockaddrInet6 = 0x1c
|
||||||
|
SizeofSockaddrAny = 0x6c
|
||||||
|
SizeofSockaddrUnix = 0x6a
|
||||||
|
SizeofSockaddrDatalink = 0x20
|
||||||
|
SizeofLinger = 0x8
|
||||||
|
SizeofIPMreq = 0x8
|
||||||
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofMsghdr = 0x30
|
||||||
|
SizeofCmsghdr = 0xc
|
||||||
|
SizeofInet6Pktinfo = 0x14
|
||||||
|
SizeofIPv6MTUInfo = 0x20
|
||||||
|
SizeofICMPv6Filter = 0x20
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
PTRACE_TRACEME = 0x0
|
||||||
|
PTRACE_CONT = 0x7
|
||||||
|
PTRACE_KILL = 0x8
|
||||||
|
)
|
||||||
|
|
||||||
|
type Kevent_t struct {
|
||||||
|
Ident uint64
|
||||||
|
Filter int16
|
||||||
|
Flags uint16
|
||||||
|
Fflags uint32
|
||||||
|
Data int64
|
||||||
|
Udata *byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type FdSet struct {
|
||||||
|
Bits [32]uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofIfMsghdr = 0xa8
|
||||||
|
SizeofIfData = 0x90
|
||||||
|
SizeofIfaMsghdr = 0x18
|
||||||
|
SizeofIfAnnounceMsghdr = 0x1a
|
||||||
|
SizeofRtMsghdr = 0x60
|
||||||
|
SizeofRtMetrics = 0x38
|
||||||
|
)
|
||||||
|
|
||||||
|
type IfMsghdr struct {
|
||||||
|
Msglen uint16
|
||||||
|
Version uint8
|
||||||
|
Type uint8
|
||||||
|
Hdrlen uint16
|
||||||
|
Index uint16
|
||||||
|
Tableid uint16
|
||||||
|
Pad1 uint8
|
||||||
|
Pad2 uint8
|
||||||
|
Addrs int32
|
||||||
|
Flags int32
|
||||||
|
Xflags int32
|
||||||
|
Data IfData
|
||||||
|
}
|
||||||
|
|
||||||
|
type IfData struct {
|
||||||
|
Type uint8
|
||||||
|
Addrlen uint8
|
||||||
|
Hdrlen uint8
|
||||||
|
Link_state uint8
|
||||||
|
Mtu uint32
|
||||||
|
Metric uint32
|
||||||
|
Rdomain uint32
|
||||||
|
Baudrate uint64
|
||||||
|
Ipackets uint64
|
||||||
|
Ierrors uint64
|
||||||
|
Opackets uint64
|
||||||
|
Oerrors uint64
|
||||||
|
Collisions uint64
|
||||||
|
Ibytes uint64
|
||||||
|
Obytes uint64
|
||||||
|
Imcasts uint64
|
||||||
|
Omcasts uint64
|
||||||
|
Iqdrops uint64
|
||||||
|
Oqdrops uint64
|
||||||
|
Noproto uint64
|
||||||
|
Capabilities uint32
|
||||||
|
Lastchange Timeval
|
||||||
|
}
|
||||||
|
|
||||||
|
type IfaMsghdr struct {
|
||||||
|
Msglen uint16
|
||||||
|
Version uint8
|
||||||
|
Type uint8
|
||||||
|
Hdrlen uint16
|
||||||
|
Index uint16
|
||||||
|
Tableid uint16
|
||||||
|
Pad1 uint8
|
||||||
|
Pad2 uint8
|
||||||
|
Addrs int32
|
||||||
|
Flags int32
|
||||||
|
Metric int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type IfAnnounceMsghdr struct {
|
||||||
|
Msglen uint16
|
||||||
|
Version uint8
|
||||||
|
Type uint8
|
||||||
|
Hdrlen uint16
|
||||||
|
Index uint16
|
||||||
|
What uint16
|
||||||
|
Name [16]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RtMsghdr struct {
|
||||||
|
Msglen uint16
|
||||||
|
Version uint8
|
||||||
|
Type uint8
|
||||||
|
Hdrlen uint16
|
||||||
|
Index uint16
|
||||||
|
Tableid uint16
|
||||||
|
Priority uint8
|
||||||
|
Mpls uint8
|
||||||
|
Addrs int32
|
||||||
|
Flags int32
|
||||||
|
Fmask int32
|
||||||
|
Pid int32
|
||||||
|
Seq int32
|
||||||
|
Errno int32
|
||||||
|
Inits uint32
|
||||||
|
Rmx RtMetrics
|
||||||
|
}
|
||||||
|
|
||||||
|
type RtMetrics struct {
|
||||||
|
Pksent uint64
|
||||||
|
Expire int64
|
||||||
|
Locks uint32
|
||||||
|
Mtu uint32
|
||||||
|
Refcnt uint32
|
||||||
|
Hopcount uint32
|
||||||
|
Recvpipe uint32
|
||||||
|
Sendpipe uint32
|
||||||
|
Ssthresh uint32
|
||||||
|
Rtt uint32
|
||||||
|
Rttvar uint32
|
||||||
|
Pad uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Mclpool struct{}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofBpfVersion = 0x4
|
||||||
|
SizeofBpfStat = 0x8
|
||||||
|
SizeofBpfProgram = 0x10
|
||||||
|
SizeofBpfInsn = 0x8
|
||||||
|
SizeofBpfHdr = 0x14
|
||||||
|
)
|
||||||
|
|
||||||
|
type BpfVersion struct {
|
||||||
|
Major uint16
|
||||||
|
Minor uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfStat struct {
|
||||||
|
Recv uint32
|
||||||
|
Drop uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfProgram struct {
|
||||||
|
Len uint32
|
||||||
|
Insns *BpfInsn
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfInsn struct {
|
||||||
|
Code uint16
|
||||||
|
Jt uint8
|
||||||
|
Jf uint8
|
||||||
|
K uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfHdr struct {
|
||||||
|
Tstamp BpfTimeval
|
||||||
|
Caplen uint32
|
||||||
|
Datalen uint32
|
||||||
|
Hdrlen uint16
|
||||||
|
_ [2]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfTimeval struct {
|
||||||
|
Sec uint32
|
||||||
|
Usec uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Termios struct {
|
||||||
|
Iflag uint32
|
||||||
|
Oflag uint32
|
||||||
|
Cflag uint32
|
||||||
|
Lflag uint32
|
||||||
|
Cc [20]uint8
|
||||||
|
Ispeed int32
|
||||||
|
Ospeed int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_SYMLINK_FOLLOW = 0x4
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x2
|
||||||
|
)
|
||||||
|
|
||||||
|
type PollFd struct {
|
||||||
|
Fd int32
|
||||||
|
Events int16
|
||||||
|
Revents int16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
POLLERR = 0x8
|
||||||
|
POLLHUP = 0x10
|
||||||
|
POLLIN = 0x1
|
||||||
|
POLLNVAL = 0x20
|
||||||
|
POLLOUT = 0x4
|
||||||
|
POLLPRI = 0x2
|
||||||
|
POLLRDBAND = 0x80
|
||||||
|
POLLRDNORM = 0x40
|
||||||
|
POLLWRBAND = 0x100
|
||||||
|
POLLWRNORM = 0x4
|
||||||
|
)
|
||||||
|
|
||||||
|
type Sigset_t uint32
|
||||||
|
|
||||||
|
type Utsname struct {
|
||||||
|
Sysname [256]byte
|
||||||
|
Nodename [256]byte
|
||||||
|
Release [256]byte
|
||||||
|
Version [256]byte
|
||||||
|
Machine [256]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
const SizeofUvmexp = 0x158
|
||||||
|
|
||||||
|
type Uvmexp struct {
|
||||||
|
Pagesize int32
|
||||||
|
Pagemask int32
|
||||||
|
Pageshift int32
|
||||||
|
Npages int32
|
||||||
|
Free int32
|
||||||
|
Active int32
|
||||||
|
Inactive int32
|
||||||
|
Paging int32
|
||||||
|
Wired int32
|
||||||
|
Zeropages int32
|
||||||
|
Reserve_pagedaemon int32
|
||||||
|
Reserve_kernel int32
|
||||||
|
Unused01 int32
|
||||||
|
Vnodepages int32
|
||||||
|
Vtextpages int32
|
||||||
|
Freemin int32
|
||||||
|
Freetarg int32
|
||||||
|
Inactarg int32
|
||||||
|
Wiredmax int32
|
||||||
|
Anonmin int32
|
||||||
|
Vtextmin int32
|
||||||
|
Vnodemin int32
|
||||||
|
Anonminpct int32
|
||||||
|
Vtextminpct int32
|
||||||
|
Vnodeminpct int32
|
||||||
|
Nswapdev int32
|
||||||
|
Swpages int32
|
||||||
|
Swpginuse int32
|
||||||
|
Swpgonly int32
|
||||||
|
Nswget int32
|
||||||
|
Nanon int32
|
||||||
|
Unused05 int32
|
||||||
|
Unused06 int32
|
||||||
|
Faults int32
|
||||||
|
Traps int32
|
||||||
|
Intrs int32
|
||||||
|
Swtch int32
|
||||||
|
Softs int32
|
||||||
|
Syscalls int32
|
||||||
|
Pageins int32
|
||||||
|
Unused07 int32
|
||||||
|
Unused08 int32
|
||||||
|
Pgswapin int32
|
||||||
|
Pgswapout int32
|
||||||
|
Forks int32
|
||||||
|
Forks_ppwait int32
|
||||||
|
Forks_sharevm int32
|
||||||
|
Pga_zerohit int32
|
||||||
|
Pga_zeromiss int32
|
||||||
|
Unused09 int32
|
||||||
|
Fltnoram int32
|
||||||
|
Fltnoanon int32
|
||||||
|
Fltnoamap int32
|
||||||
|
Fltpgwait int32
|
||||||
|
Fltpgrele int32
|
||||||
|
Fltrelck int32
|
||||||
|
Fltrelckok int32
|
||||||
|
Fltanget int32
|
||||||
|
Fltanretry int32
|
||||||
|
Fltamcopy int32
|
||||||
|
Fltnamap int32
|
||||||
|
Fltnomap int32
|
||||||
|
Fltlget int32
|
||||||
|
Fltget int32
|
||||||
|
Flt_anon int32
|
||||||
|
Flt_acow int32
|
||||||
|
Flt_obj int32
|
||||||
|
Flt_prcopy int32
|
||||||
|
Flt_przero int32
|
||||||
|
Pdwoke int32
|
||||||
|
Pdrevs int32
|
||||||
|
Pdswout int32
|
||||||
|
Pdfreed int32
|
||||||
|
Pdscans int32
|
||||||
|
Pdanscan int32
|
||||||
|
Pdobscan int32
|
||||||
|
Pdreact int32
|
||||||
|
Pdbusy int32
|
||||||
|
Pdpageouts int32
|
||||||
|
Pdpending int32
|
||||||
|
Pddeact int32
|
||||||
|
Unused11 int32
|
||||||
|
Unused12 int32
|
||||||
|
Unused13 int32
|
||||||
|
Fpswtch int32
|
||||||
|
Kmapent int32
|
||||||
|
}
|
||||||
|
|
||||||
|
const SizeofClockinfo = 0x14
|
||||||
|
|
||||||
|
type Clockinfo struct {
|
||||||
|
Hz int32
|
||||||
|
Tick int32
|
||||||
|
Tickadj int32
|
||||||
|
Stathz int32
|
||||||
|
Profhz int32
|
||||||
|
}
|
||||||
|
|
@ -303,6 +303,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
|
||||||
//sys ResumeThread(thread Handle) (ret uint32, err error) [failretval==0xffffffff] = kernel32.ResumeThread
|
//sys ResumeThread(thread Handle) (ret uint32, err error) [failretval==0xffffffff] = kernel32.ResumeThread
|
||||||
//sys SetPriorityClass(process Handle, priorityClass uint32) (err error) = kernel32.SetPriorityClass
|
//sys SetPriorityClass(process Handle, priorityClass uint32) (err error) = kernel32.SetPriorityClass
|
||||||
//sys GetPriorityClass(process Handle) (ret uint32, err error) = kernel32.GetPriorityClass
|
//sys GetPriorityClass(process Handle) (ret uint32, err error) = kernel32.GetPriorityClass
|
||||||
|
//sys QueryInformationJobObject(job Handle, JobObjectInformationClass int32, JobObjectInformation uintptr, JobObjectInformationLength uint32, retlen *uint32) (err error) = kernel32.QueryInformationJobObject
|
||||||
//sys SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error)
|
//sys SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error)
|
||||||
//sys GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err error)
|
//sys GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err error)
|
||||||
//sys GetProcessId(process Handle) (id uint32, err error)
|
//sys GetProcessId(process Handle) (id uint32, err error)
|
||||||
|
|
|
||||||
|
|
@ -1584,18 +1584,6 @@ const (
|
||||||
JOB_OBJECT_LIMIT_WORKINGSET = 0x00000001
|
JOB_OBJECT_LIMIT_WORKINGSET = 0x00000001
|
||||||
)
|
)
|
||||||
|
|
||||||
type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
|
|
||||||
PerProcessUserTimeLimit int64
|
|
||||||
PerJobUserTimeLimit int64
|
|
||||||
LimitFlags uint32
|
|
||||||
MinimumWorkingSetSize uintptr
|
|
||||||
MaximumWorkingSetSize uintptr
|
|
||||||
ActiveProcessLimit uint32
|
|
||||||
Affinity uintptr
|
|
||||||
PriorityClass uint32
|
|
||||||
SchedulingClass uint32
|
|
||||||
}
|
|
||||||
|
|
||||||
type IO_COUNTERS struct {
|
type IO_COUNTERS struct {
|
||||||
ReadOperationCount uint64
|
ReadOperationCount uint64
|
||||||
WriteOperationCount uint64
|
WriteOperationCount uint64
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,16 @@ type Servent struct {
|
||||||
Port uint16
|
Port uint16
|
||||||
Proto *byte
|
Proto *byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
|
||||||
|
PerProcessUserTimeLimit int64
|
||||||
|
PerJobUserTimeLimit int64
|
||||||
|
LimitFlags uint32
|
||||||
|
MinimumWorkingSetSize uintptr
|
||||||
|
MaximumWorkingSetSize uintptr
|
||||||
|
ActiveProcessLimit uint32
|
||||||
|
Affinity uintptr
|
||||||
|
PriorityClass uint32
|
||||||
|
SchedulingClass uint32
|
||||||
|
_ uint32 // pad to 8 byte boundary
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,15 @@ type Servent struct {
|
||||||
Proto *byte
|
Proto *byte
|
||||||
Port uint16
|
Port uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
|
||||||
|
PerProcessUserTimeLimit int64
|
||||||
|
PerJobUserTimeLimit int64
|
||||||
|
LimitFlags uint32
|
||||||
|
MinimumWorkingSetSize uintptr
|
||||||
|
MaximumWorkingSetSize uintptr
|
||||||
|
ActiveProcessLimit uint32
|
||||||
|
Affinity uintptr
|
||||||
|
PriorityClass uint32
|
||||||
|
SchedulingClass uint32
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,16 @@ type Servent struct {
|
||||||
Port uint16
|
Port uint16
|
||||||
Proto *byte
|
Proto *byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
|
||||||
|
PerProcessUserTimeLimit int64
|
||||||
|
PerJobUserTimeLimit int64
|
||||||
|
LimitFlags uint32
|
||||||
|
MinimumWorkingSetSize uintptr
|
||||||
|
MaximumWorkingSetSize uintptr
|
||||||
|
ActiveProcessLimit uint32
|
||||||
|
Affinity uintptr
|
||||||
|
PriorityClass uint32
|
||||||
|
SchedulingClass uint32
|
||||||
|
_ uint32 // pad to 8 byte boundary
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,7 @@ var (
|
||||||
procResumeThread = modkernel32.NewProc("ResumeThread")
|
procResumeThread = modkernel32.NewProc("ResumeThread")
|
||||||
procSetPriorityClass = modkernel32.NewProc("SetPriorityClass")
|
procSetPriorityClass = modkernel32.NewProc("SetPriorityClass")
|
||||||
procGetPriorityClass = modkernel32.NewProc("GetPriorityClass")
|
procGetPriorityClass = modkernel32.NewProc("GetPriorityClass")
|
||||||
|
procQueryInformationJobObject = modkernel32.NewProc("QueryInformationJobObject")
|
||||||
procSetInformationJobObject = modkernel32.NewProc("SetInformationJobObject")
|
procSetInformationJobObject = modkernel32.NewProc("SetInformationJobObject")
|
||||||
procGenerateConsoleCtrlEvent = modkernel32.NewProc("GenerateConsoleCtrlEvent")
|
procGenerateConsoleCtrlEvent = modkernel32.NewProc("GenerateConsoleCtrlEvent")
|
||||||
procGetProcessId = modkernel32.NewProc("GetProcessId")
|
procGetProcessId = modkernel32.NewProc("GetProcessId")
|
||||||
|
|
@ -2341,6 +2342,18 @@ func GetPriorityClass(process Handle) (ret uint32, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func QueryInformationJobObject(job Handle, JobObjectInformationClass int32, JobObjectInformation uintptr, JobObjectInformationLength uint32, retlen *uint32) (err error) {
|
||||||
|
r1, _, e1 := syscall.Syscall6(procQueryInformationJobObject.Addr(), 5, uintptr(job), uintptr(JobObjectInformationClass), uintptr(JobObjectInformation), uintptr(JobObjectInformationLength), uintptr(unsafe.Pointer(retlen)), 0)
|
||||||
|
if r1 == 0 {
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
} else {
|
||||||
|
err = syscall.EINVAL
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error) {
|
func SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error) {
|
||||||
r0, _, e1 := syscall.Syscall6(procSetInformationJobObject.Addr(), 4, uintptr(job), uintptr(JobObjectInformationClass), uintptr(JobObjectInformation), uintptr(JobObjectInformationLength), 0, 0)
|
r0, _, e1 := syscall.Syscall6(procSetInformationJobObject.Addr(), 4, uintptr(job), uintptr(JobObjectInformationClass), uintptr(JobObjectInformation), uintptr(JobObjectInformationLength), 0, 0)
|
||||||
ret = int(r0)
|
ret = int(r0)
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue