vendor: make vendor-update

This commit is contained in:
Aliaksandr Valialkin 2021-08-21 20:15:41 +03:00
parent 9ee3d0378f
commit 89a4e8fd9b
169 changed files with 4177 additions and 36713 deletions

15
go.mod
View file

@ -1,7 +1,7 @@
module github.com/VictoriaMetrics/VictoriaMetrics module github.com/VictoriaMetrics/VictoriaMetrics
require ( require (
cloud.google.com/go v0.91.1 // indirect cloud.google.com/go v0.93.3 // indirect
cloud.google.com/go/storage v1.16.0 cloud.google.com/go/storage v1.16.0
github.com/VictoriaMetrics/fastcache v1.6.0 github.com/VictoriaMetrics/fastcache v1.6.0
@ -11,12 +11,13 @@ require (
github.com/VictoriaMetrics/metrics v1.17.3 github.com/VictoriaMetrics/metrics v1.17.3
github.com/VictoriaMetrics/metricsql v0.18.0 github.com/VictoriaMetrics/metricsql v0.18.0
github.com/VividCortex/ewma v1.2.0 // indirect github.com/VividCortex/ewma v1.2.0 // indirect
github.com/aws/aws-sdk-go v1.40.26 github.com/aws/aws-sdk-go v1.40.27
github.com/cespare/xxhash/v2 v2.1.1 github.com/cespare/xxhash/v2 v2.1.1
github.com/cheggaaa/pb/v3 v3.0.8 github.com/cheggaaa/pb/v3 v3.0.8
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
github.com/fatih/color v1.12.0 // indirect github.com/fatih/color v1.12.0 // indirect
github.com/go-kit/kit v0.11.0 // indirect github.com/go-kit/kit v0.11.0 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/snappy v0.0.4 github.com/golang/snappy v0.0.4
github.com/influxdata/influxdb v1.9.3 github.com/influxdata/influxdb v1.9.3
@ -24,7 +25,7 @@ require (
github.com/mattn/go-isatty v0.0.13 // indirect github.com/mattn/go-isatty v0.0.13 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/prometheus/common v0.30.0 // indirect github.com/prometheus/common v0.30.0 // indirect
github.com/prometheus/procfs v0.7.2 // indirect github.com/prometheus/procfs v0.7.3 // indirect
github.com/prometheus/prometheus v1.8.2-0.20201119142752-3ad25a6dc3d9 github.com/prometheus/prometheus v1.8.2-0.20201119142752-3ad25a6dc3d9
github.com/urfave/cli/v2 v2.3.0 github.com/urfave/cli/v2 v2.3.0
github.com/valyala/fastjson v1.6.3 github.com/valyala/fastjson v1.6.3
@ -34,12 +35,12 @@ require (
github.com/valyala/histogram v1.1.2 github.com/valyala/histogram v1.1.2
github.com/valyala/quicktemplate v1.6.3 github.com/valyala/quicktemplate v1.6.3
go.uber.org/atomic v1.9.0 // indirect go.uber.org/atomic v1.9.0 // indirect
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d
golang.org/x/oauth2 v0.0.0-20210810183815-faf39c7919d5 golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55
golang.org/x/text v0.3.7 // indirect golang.org/x/text v0.3.7 // indirect
google.golang.org/api v0.54.0 google.golang.org/api v0.54.0
google.golang.org/grpc v1.40.0 // indirect google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8 // indirect
gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v2 v2.4.0
) )

40
go.sum
View file

@ -23,10 +23,9 @@ cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E
cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY=
cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM=
cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY=
cloud.google.com/go v0.88.0/go.mod h1:dnKwfYbP9hQhefiUvpbcAyoGSHUrOxR20JVElLiUvEY=
cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ=
cloud.google.com/go v0.91.1 h1:w+u8ttN/QtYrpvgXNUd2G6kwqrqCIQbkINlXQjHP1ek= cloud.google.com/go v0.93.3 h1:wPBktZFzYBcCZVARvwVKqH1uEj+aLXofJEtrb4oOsio=
cloud.google.com/go v0.91.1/go.mod h1:V358WZfbFQkmC3gv5XCxzZq2e3h7OGvQR0IXtj77ylI= cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI=
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=
@ -152,8 +151,8 @@ github.com/aws/aws-sdk-go v1.30.12/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZve
github.com/aws/aws-sdk-go v1.34.28/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48= github.com/aws/aws-sdk-go v1.34.28/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
github.com/aws/aws-sdk-go v1.35.31/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.35.31/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.38.68/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.38.68/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.40.26 h1:th7H+oyDDMQ70CEV4B5kBLULvIV9C5IPg7lef8K3uS4= github.com/aws/aws-sdk-go v1.40.27 h1:8fWW0CpmBZ8WWduNwl4vE9t07nMYFrhAsUHjPj81qUM=
github.com/aws/aws-sdk-go v1.40.26/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= github.com/aws/aws-sdk-go v1.40.27/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/aws/aws-sdk-go-v2 v1.7.0/go.mod h1:tb9wi5s61kTDA5qCkcDbt3KRVV74GGslQkl/DRdX/P4= github.com/aws/aws-sdk-go-v2 v1.7.0/go.mod h1:tb9wi5s61kTDA5qCkcDbt3KRVV74GGslQkl/DRdX/P4=
github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.5.0/go.mod h1:acH3+MQoiMzozT/ivU+DbRg7Ooo2298RdRaWcOv+4vM= github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.5.0/go.mod h1:acH3+MQoiMzozT/ivU+DbRg7Ooo2298RdRaWcOv+4vM=
@ -281,8 +280,9 @@ github.com/go-kit/kit v0.11.0/go.mod h1:73/6Ixaufkvb5Osvkls8C79vuQ49Ba1rUEUYNSf+
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
github.com/go-logfmt/logfmt v0.5.0 h1:TrB8swr/68K7m9CcGut2g3UOihhbcbiMAYiuTXdEih4=
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA=
github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU=
github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70tL6pCuVxPJOHXQ+wIac1FUrvNkHolPie/cLEU6hI= github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70tL6pCuVxPJOHXQ+wIac1FUrvNkHolPie/cLEU6hI=
@ -486,9 +486,7 @@ github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLe
github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210715191844-86eeefc3e471/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210804190019-f964ff605595/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
@ -605,7 +603,6 @@ github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o=
github.com/jsternberg/zap-logfmt v1.2.0/go.mod h1:kz+1CUmCutPWABnNkOu9hOHKdT2q3TDYCcsFy9hpqb0= github.com/jsternberg/zap-logfmt v1.2.0/go.mod h1:kz+1CUmCutPWABnNkOu9hOHKdT2q3TDYCcsFy9hpqb0=
@ -828,8 +825,8 @@ github.com/prometheus/procfs v0.0.11/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
github.com/prometheus/procfs v0.7.2 h1:zE6zJjRS9S916ptrZ326OU0++1XRwHgxkvCFflxx6Fo= github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU=
github.com/prometheus/procfs v0.7.2/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
github.com/prometheus/prometheus v0.0.0-20200609090129-a6600f564e3c/go.mod h1:S5n0C6tSgdnwWshBUceRx5G1OsjLv/EeZ9t3wIfEtsY= github.com/prometheus/prometheus v0.0.0-20200609090129-a6600f564e3c/go.mod h1:S5n0C6tSgdnwWshBUceRx5G1OsjLv/EeZ9t3wIfEtsY=
github.com/prometheus/prometheus v1.8.2-0.20201119142752-3ad25a6dc3d9 h1:F2A86PGVYqn3P7oWbrSmSlJHae9y6wwpAdoWb/pZi6Q= github.com/prometheus/prometheus v1.8.2-0.20201119142752-3ad25a6dc3d9 h1:F2A86PGVYqn3P7oWbrSmSlJHae9y6wwpAdoWb/pZi6Q=
github.com/prometheus/prometheus v1.8.2-0.20201119142752-3ad25a6dc3d9/go.mod h1:1MDE/bXgu4gqd5w/otko6WQpXZX9vu8QX4KbitCmaPg= github.com/prometheus/prometheus v1.8.2-0.20201119142752-3ad25a6dc3d9/go.mod h1:1MDE/bXgu4gqd5w/otko6WQpXZX9vu8QX4KbitCmaPg=
@ -1056,7 +1053,6 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@ -1113,8 +1109,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d h1:20cMwl2fHAzkJMEA+8J4JgqBQcQGzbisXo31MIeenXI= golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d h1:LO7XpTYMwTqxjLcGWPijK3vRXg1aWdlNOVOHRq45d7c=
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
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-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@ -1130,8 +1126,8 @@ golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ
golang.org/x/oauth2 v0.0.0-20210615190721-d04028783cf1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210615190721-d04028783cf1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20210810183815-faf39c7919d5 h1:Ati8dO7+U7mxpkPSxBZQEvzHVUYB/MqCklCN8ig5w/o= golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f h1:Qmd2pbz05z7z6lm0DrgQVVPuBm92jqujBKMHMOlOQEw=
golang.org/x/oauth2 v0.0.0-20210810183815-faf39c7919d5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@ -1230,8 +1226,8 @@ golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e h1:WUoyKPm6nCo1BnNUvPGnFG3T5DUVem42yDJZZ4CNxMA= golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55 h1:rw6UNGRMfarCepjI8qOepea/SXwIBVfTKjztZ5gBbq4=
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
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=
@ -1374,7 +1370,6 @@ google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtuk
google.golang.org/api v0.49.0/go.mod h1:BECiH72wsfwUvOVn3+btPD5WHi0LzavZReBndi42L18= google.golang.org/api v0.49.0/go.mod h1:BECiH72wsfwUvOVn3+btPD5WHi0LzavZReBndi42L18=
google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw=
google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU=
google.golang.org/api v0.52.0/go.mod h1:Him/adpjt0sxtkWViy0b6xyKW/SD71CwdJ7HqJo7SrU=
google.golang.org/api v0.54.0 h1:ECJUVngj71QI6XEm7b1sAf8BljU5inEhMbKPR8Lxhhk= google.golang.org/api v0.54.0 h1:ECJUVngj71QI6XEm7b1sAf8BljU5inEhMbKPR8Lxhhk=
google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
@ -1440,12 +1435,11 @@ google.golang.org/genproto v0.0.0-20210624174822-c5cf32407d0a/go.mod h1:SzzZ/N+n
google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24=
google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
google.golang.org/genproto v0.0.0-20210721163202-f1cecdd8b78a/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
google.golang.org/genproto v0.0.0-20210722135532-667f2b7c528f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
google.golang.org/genproto v0.0.0-20210811021853-ddbe55d93216 h1:qnrhhl4uoNFepTqE28u11llFcDH07Z6r/cQxpGR97A4= google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w=
google.golang.org/genproto v0.0.0-20210811021853-ddbe55d93216/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8 h1:XosVttQUxX8erNhEruTu053/VchgYuksoS9Bj/OITjU=
google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=

View file

@ -1,5 +1,14 @@
# Changes # Changes
## [0.92.0](https://www.github.com/googleapis/google-cloud-go/compare/v0.91.0...v0.92.0) (2021-08-16)
### Features
* **all:** remove testing deps ([#4580](https://www.github.com/googleapis/google-cloud-go/issues/4580)) ([15c1eb9](https://www.github.com/googleapis/google-cloud-go/commit/15c1eb9730f0b514edb911161f9c59e8d790a5ec)), refs [#4061](https://www.github.com/googleapis/google-cloud-go/issues/4061)
* **internal/detect:** add helper to detect projectID from env ([#4582](https://www.github.com/googleapis/google-cloud-go/issues/4582)) ([cc65d94](https://www.github.com/googleapis/google-cloud-go/commit/cc65d945688ac446602bce6ef86a935714dfe2f8)), refs [#1294](https://www.github.com/googleapis/google-cloud-go/issues/1294)
* **spannertest:** Add validation of duplicated column names ([#4611](https://www.github.com/googleapis/google-cloud-go/issues/4611)) ([84f86a6](https://www.github.com/googleapis/google-cloud-go/commit/84f86a605c809ab36dd3cb4b3ab1df15a5302083))
## [0.91.0](https://www.github.com/googleapis/google-cloud-go/compare/v0.90.0...v0.91.0) (2021-08-11) ## [0.91.0](https://www.github.com/googleapis/google-cloud-go/compare/v0.90.0...v0.91.0) (2021-08-11)

84
vendor/cloud.google.com/go/doc.go generated vendored
View file

@ -28,8 +28,50 @@ Authentication and Authorization
All the clients in sub-packages support authentication via Google Application Default All the clients in sub-packages support authentication via Google Application Default
Credentials (see https://cloud.google.com/docs/authentication/production), or Credentials (see https://cloud.google.com/docs/authentication/production), or
by providing a JSON key file for a Service Account. See the authentication examples by providing a JSON key file for a Service Account. See examples below.
in this package for details.
Google Application Default Credentials (ADC) is the recommended way to authorize
and authenticate clients. For information on how to create and obtain
Application Default Credentials, see
https://cloud.google.com/docs/authentication/production. Here is an example
of a client using ADC to authenticate:
client, err := secretmanager.NewClient(context.Background())
if err != nil {
// TODO: handle error.
}
_ = client // Use the client.
You can use a file with credentials to authenticate and authorize, such as a JSON
key file associated with a Google service account. Service Account keys can be
created and downloaded from
https://console.cloud.google.com/iam-admin/serviceaccounts. This example uses
the Secret Manger client, but the same steps apply to the other client libraries
underneath this package. Example:
client, err := secretmanager.NewClient(context.Background(),
option.WithCredentialsFile("/path/to/service-account-key.json"))
if err != nil {
// TODO: handle error.
}
_ = client // Use the client.
In some cases (for instance, you don't want to store secrets on disk), you can
create credentials from in-memory JSON and use the WithCredentials option.
The google package in this example is at golang.org/x/oauth2/google.
This example uses the Secret Manager client, but the same steps apply to
the other client libraries underneath this package. Note that scopes can be
found at https://developers.google.com/identity/protocols/oauth2/scopes, and
are also provided in all auto-generated libraries: for example,
cloud.google.com/go/secretmanager/apiv1 provides DefaultAuthScopes. Example:
ctx := context.Background()
creds, err := google.CredentialsFromJSON(ctx, []byte("JSON creds"), secretmanager.DefaultAuthScopes()...)
if err != nil {
// TODO: handle error.
}
client, err := secretmanager.NewClient(ctx, option.WithCredentials(creds))
if err != nil {
// TODO: handle error.
}
_ = client // Use the client.
Timeouts and Cancellation Timeouts and Cancellation
@ -37,9 +79,45 @@ Timeouts and Cancellation
By default, non-streaming methods, like Create or Get, will have a default deadline applied to the By default, non-streaming methods, like Create or Get, will have a default deadline applied to the
context provided at call time, unless a context deadline is already set. Streaming context provided at call time, unless a context deadline is already set. Streaming
methods have no default deadline and will run indefinitely. To set timeouts or methods have no default deadline and will run indefinitely. To set timeouts or
arrange for cancellation, use contexts. See the examples for details. Transient arrange for cancellation, use contexts. Transient
errors will be retried when correctness allows. errors will be retried when correctness allows.
Here is an example of how to set a timeout for an RPC, use context.WithTimeout:
ctx := context.Background()
// Do not set a timeout on the context passed to NewClient: dialing happens
// asynchronously, and the context is used to refresh credentials in the
// background.
client, err := secretmanager.NewClient(ctx)
if err != nil {
// TODO: handle error.
}
// Time out if it takes more than 10 seconds to create a dataset.
tctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel() // Always call cancel.
req := &secretmanagerpb.DeleteSecretRequest{Name: "projects/project-id/secrets/name"}
if err := client.DeleteSecret(tctx, req); err != nil {
// TODO: handle error.
}
Here is an example of how to arrange for an RPC to be canceled, use context.WithCancel:
ctx := context.Background()
// Do not cancel the context passed to NewClient: dialing happens asynchronously,
// and the context is used to refresh credentials in the background.
client, err := secretmanager.NewClient(ctx)
if err != nil {
// TODO: handle error.
}
cctx, cancel := context.WithCancel(ctx)
defer cancel() // Always call cancel.
// TODO: Make the cancel function available to whatever might want to cancel the
// call--perhaps a GUI button.
req := &secretmanagerpb.DeleteSecretRequest{Name: "projects/proj/secrets/name"}
if err := client.DeleteSecret(cctx, req); err != nil {
// TODO: handle error.
}
To opt out of default deadlines, set the temporary environment variable To opt out of default deadlines, set the temporary environment variable
GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE to "true" prior to client GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE to "true" prior to client
creation. This affects all Google Cloud Go client libraries. This opt-out creation. This affects all Google Cloud Go client libraries. This opt-out

10
vendor/cloud.google.com/go/go.mod generated vendored
View file

@ -4,20 +4,14 @@ go 1.11
require ( require (
cloud.google.com/go/storage v1.10.0 cloud.google.com/go/storage v1.10.0
github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.2 github.com/golang/protobuf v1.5.2
github.com/google/go-cmp v0.5.6 github.com/google/go-cmp v0.5.6
github.com/google/martian/v3 v3.2.1 github.com/google/martian/v3 v3.2.1
github.com/google/pprof v0.0.0-20210804190019-f964ff605595
github.com/googleapis/gax-go/v2 v2.0.5 github.com/googleapis/gax-go/v2 v2.0.5
github.com/jstemmer/go-junit-report v0.9.1
go.opencensus.io v0.23.0 go.opencensus.io v0.23.0
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a
golang.org/x/text v0.3.6 google.golang.org/api v0.54.0
golang.org/x/tools v0.1.5 google.golang.org/genproto v0.0.0-20210813162853-db860fec028c
google.golang.org/api v0.52.0
google.golang.org/genproto v0.0.0-20210811021853-ddbe55d93216
google.golang.org/grpc v1.39.1 google.golang.org/grpc v1.39.1
google.golang.org/protobuf v1.27.1 google.golang.org/protobuf v1.27.1
) )

32
vendor/cloud.google.com/go/go.sum generated vendored
View file

@ -20,7 +20,8 @@ cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb
cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0=
cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY=
cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM=
cloud.google.com/go v0.88.0/go.mod h1:dnKwfYbP9hQhefiUvpbcAyoGSHUrOxR20JVElLiUvEY= cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY=
cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ=
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=
@ -78,7 +79,6 @@ github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt
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/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
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=
@ -133,9 +133,8 @@ github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLe
github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210715191844-86eeefc3e471/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210804190019-f964ff605595 h1:uNrRgpnKjTfxu4qHaZAAs3eKTYV1EzGF3dAykpnxgDE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/pprof v0.0.0-20210804190019-f964ff605595/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
@ -147,7 +146,6 @@ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
@ -203,7 +201,6 @@ golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRu
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug=
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
@ -215,7 +212,6 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@ -278,7 +274,6 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@ -321,8 +316,9 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 h1:siQdpVirKtzPhKl3lZWozZraCFObP8S1v6PRp0bLrtU=
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
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=
@ -386,7 +382,6 @@ golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5 h1:ouewzE6p+/VEB31YYnTbEJdi8pFqKp4P4n85vwo3DHA=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
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=
@ -417,8 +412,9 @@ google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk
google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo=
google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4=
google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw=
google.golang.org/api v0.52.0 h1:m5FLEd6dp5CU1F0tMWyqDi2XjchviIz8ntzOSz7w8As= google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU=
google.golang.org/api v0.52.0/go.mod h1:Him/adpjt0sxtkWViy0b6xyKW/SD71CwdJ7HqJo7SrU= google.golang.org/api v0.54.0 h1:ECJUVngj71QI6XEm7b1sAf8BljU5inEhMbKPR8Lxhhk=
google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k=
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.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@ -472,10 +468,12 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH
google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24=
google.golang.org/genproto v0.0.0-20210721163202-f1cecdd8b78a/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
google.golang.org/genproto v0.0.0-20210722135532-667f2b7c528f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
google.golang.org/genproto v0.0.0-20210811021853-ddbe55d93216 h1:qnrhhl4uoNFepTqE28u11llFcDH07Z6r/cQxpGR97A4= google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
google.golang.org/genproto v0.0.0-20210811021853-ddbe55d93216/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48=
google.golang.org/genproto v0.0.0-20210813162853-db860fec028c h1:iLQakcwWG3k/++1q/46apVb1sUQ3IqIdn9yUE6eh/xA=
google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=

View file

@ -1318,7 +1318,7 @@
"description": "Storage Transfer API", "description": "Storage Transfer API",
"language": "Go", "language": "Go",
"client_library_type": "generated", "client_library_type": "generated",
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/latest/storagetransfer/apiv1", "docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/storagetransfer/latest/apiv1",
"release_level": "beta", "release_level": "beta",
"library_type": "" "library_type": ""
}, },

31
vendor/cloud.google.com/go/tools.go generated vendored
View file

@ -1,31 +0,0 @@
// +build tools
// Copyright 2018 Google LLC
//
// 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 package exists to cause `go mod` and `go get` to believe these tools
// are dependencies, even though they are not runtime dependencies of any
// package (these are tools used by our CI builds). This means they will appear
// in our `go.mod` file, but will not be a part of the build. Also, since the
// build target is something non-existent, these should not be included in any
// binaries.
package cloud
import (
_ "github.com/golang/protobuf/protoc-gen-go"
_ "github.com/jstemmer/go-junit-report"
_ "golang.org/x/lint/golint"
_ "golang.org/x/tools/cmd/goimports"
)

View file

@ -50,9 +50,19 @@ func prettify(v reflect.Value, indent int, buf *bytes.Buffer) {
for i, n := range names { for i, n := range names {
val := v.FieldByName(n) val := v.FieldByName(n)
ft, ok := v.Type().FieldByName(n)
if !ok {
panic(fmt.Sprintf("expected to find field %v on type %v, but was not found", n, v.Type()))
}
buf.WriteString(strings.Repeat(" ", indent+2)) buf.WriteString(strings.Repeat(" ", indent+2))
buf.WriteString(n + ": ") buf.WriteString(n + ": ")
prettify(val, indent+2, buf)
if tag := ft.Tag.Get("sensitive"); tag == "true" {
buf.WriteString("<sensitive>")
} else {
prettify(val, indent+2, buf)
}
if i < len(names)-1 { if i < len(names)-1 {
buf.WriteString(",\n") buf.WriteString(",\n")

View file

@ -8,6 +8,8 @@ import (
) )
// StringValue returns the string representation of a value. // StringValue returns the string representation of a value.
//
// Deprecated: Use Prettify instead.
func StringValue(i interface{}) string { func StringValue(i interface{}) string {
var buf bytes.Buffer var buf bytes.Buffer
stringValue(reflect.ValueOf(i), 0, &buf) stringValue(reflect.ValueOf(i), 0, &buf)

View file

@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go" const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK // SDKVersion is the version of this SDK
const SDKVersion = "1.40.26" const SDKVersion = "1.40.27"

View file

@ -1,18 +0,0 @@
language: go
sudo: false
go:
- "1.7.x"
- "1.8.x"
- "1.9.x"
- "1.10.x"
- "1.11.x"
- "1.12.x"
- "1.13.x"
- "tip"
before_install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
script:
- goveralls -service=travis-ci

View file

@ -1,6 +1,6 @@
[![GoDoc](https://godoc.org/github.com/go-logfmt/logfmt?status.svg)](https://godoc.org/github.com/go-logfmt/logfmt) [![Go Reference](https://pkg.go.dev/badge/github.com/go-logfmt/logfmt.svg)](https://pkg.go.dev/github.com/go-logfmt/logfmt)
[![Go Report Card](https://goreportcard.com/badge/go-logfmt/logfmt)](https://goreportcard.com/report/go-logfmt/logfmt) [![Go Report Card](https://goreportcard.com/badge/go-logfmt/logfmt)](https://goreportcard.com/report/go-logfmt/logfmt)
[![TravisCI](https://travis-ci.org/go-logfmt/logfmt.svg?branch=master)](https://travis-ci.org/go-logfmt/logfmt) [![Github Actions](https://github.com/go-logfmt/logfmt/actions/workflows/test.yml/badge.svg)](https://github.com/go-logfmt/logfmt/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/go-logfmt/logfmt/badge.svg?branch=master)](https://coveralls.io/github/go-logfmt/logfmt?branch=master) [![Coverage Status](https://coveralls.io/repos/github/go-logfmt/logfmt/badge.svg?branch=master)](https://coveralls.io/github/go-logfmt/logfmt?branch=master)
# logfmt # logfmt

View file

@ -1,3 +1,3 @@
module github.com/go-logfmt/logfmt module github.com/go-logfmt/logfmt
go 1.13 go 1.17

View file

@ -1,398 +0,0 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package gengogrpc contains the gRPC code generator.
package gengogrpc
import (
"fmt"
"strconv"
"strings"
"google.golang.org/protobuf/compiler/protogen"
"google.golang.org/protobuf/types/descriptorpb"
)
const (
contextPackage = protogen.GoImportPath("context")
grpcPackage = protogen.GoImportPath("google.golang.org/grpc")
codesPackage = protogen.GoImportPath("google.golang.org/grpc/codes")
statusPackage = protogen.GoImportPath("google.golang.org/grpc/status")
)
// GenerateFile generates a _grpc.pb.go file containing gRPC service definitions.
func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile {
if len(file.Services) == 0 {
return nil
}
filename := file.GeneratedFilenamePrefix + "_grpc.pb.go"
g := gen.NewGeneratedFile(filename, file.GoImportPath)
g.P("// Code generated by protoc-gen-go-grpc. DO NOT EDIT.")
g.P()
g.P("package ", file.GoPackageName)
g.P()
GenerateFileContent(gen, file, g)
return g
}
// GenerateFileContent generates the gRPC service definitions, excluding the package statement.
func GenerateFileContent(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile) {
if len(file.Services) == 0 {
return
}
// TODO: Remove this. We don't need to include these references any more.
g.P("// Reference imports to suppress errors if they are not otherwise used.")
g.P("var _ ", contextPackage.Ident("Context"))
g.P("var _ ", grpcPackage.Ident("ClientConnInterface"))
g.P()
g.P("// This is a compile-time assertion to ensure that this generated file")
g.P("// is compatible with the grpc package it is being compiled against.")
g.P("const _ = ", grpcPackage.Ident("SupportPackageIsVersion6"))
g.P()
for _, service := range file.Services {
genService(gen, file, g, service)
}
}
func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, service *protogen.Service) {
clientName := service.GoName + "Client"
g.P("// ", clientName, " is the client API for ", service.GoName, " service.")
g.P("//")
g.P("// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.")
// Client interface.
if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
g.P("//")
g.P(deprecationComment)
}
g.Annotate(clientName, service.Location)
g.P("type ", clientName, " interface {")
for _, method := range service.Methods {
g.Annotate(clientName+"."+method.GoName, method.Location)
if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() {
g.P(deprecationComment)
}
g.P(method.Comments.Leading,
clientSignature(g, method))
}
g.P("}")
g.P()
// Client structure.
g.P("type ", unexport(clientName), " struct {")
g.P("cc ", grpcPackage.Ident("ClientConnInterface"))
g.P("}")
g.P()
// NewClient factory.
if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
g.P(deprecationComment)
}
g.P("func New", clientName, " (cc ", grpcPackage.Ident("ClientConnInterface"), ") ", clientName, " {")
g.P("return &", unexport(clientName), "{cc}")
g.P("}")
g.P()
var methodIndex, streamIndex int
// Client method implementations.
for _, method := range service.Methods {
if !method.Desc.IsStreamingServer() && !method.Desc.IsStreamingClient() {
// Unary RPC method
genClientMethod(gen, file, g, method, methodIndex)
methodIndex++
} else {
// Streaming RPC method
genClientMethod(gen, file, g, method, streamIndex)
streamIndex++
}
}
// Server interface.
serverType := service.GoName + "Server"
g.P("// ", serverType, " is the server API for ", service.GoName, " service.")
if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
g.P("//")
g.P(deprecationComment)
}
g.Annotate(serverType, service.Location)
g.P("type ", serverType, " interface {")
for _, method := range service.Methods {
g.Annotate(serverType+"."+method.GoName, method.Location)
if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() {
g.P(deprecationComment)
}
g.P(method.Comments.Leading,
serverSignature(g, method))
}
g.P("}")
g.P()
// Server Unimplemented struct for forward compatibility.
g.P("// Unimplemented", serverType, " can be embedded to have forward compatible implementations.")
g.P("type Unimplemented", serverType, " struct {")
g.P("}")
g.P()
for _, method := range service.Methods {
nilArg := ""
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
nilArg = "nil,"
}
g.P("func (*Unimplemented", serverType, ") ", serverSignature(g, method), "{")
g.P("return ", nilArg, statusPackage.Ident("Errorf"), "(", codesPackage.Ident("Unimplemented"), `, "method `, method.GoName, ` not implemented")`)
g.P("}")
}
g.P()
// Server registration.
if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
g.P(deprecationComment)
}
serviceDescVar := "_" + service.GoName + "_serviceDesc"
g.P("func Register", service.GoName, "Server(s *", grpcPackage.Ident("Server"), ", srv ", serverType, ") {")
g.P("s.RegisterService(&", serviceDescVar, `, srv)`)
g.P("}")
g.P()
// Server handler implementations.
var handlerNames []string
for _, method := range service.Methods {
hname := genServerMethod(gen, file, g, method)
handlerNames = append(handlerNames, hname)
}
// Service descriptor.
g.P("var ", serviceDescVar, " = ", grpcPackage.Ident("ServiceDesc"), " {")
g.P("ServiceName: ", strconv.Quote(string(service.Desc.FullName())), ",")
g.P("HandlerType: (*", serverType, ")(nil),")
g.P("Methods: []", grpcPackage.Ident("MethodDesc"), "{")
for i, method := range service.Methods {
if method.Desc.IsStreamingClient() || method.Desc.IsStreamingServer() {
continue
}
g.P("{")
g.P("MethodName: ", strconv.Quote(string(method.Desc.Name())), ",")
g.P("Handler: ", handlerNames[i], ",")
g.P("},")
}
g.P("},")
g.P("Streams: []", grpcPackage.Ident("StreamDesc"), "{")
for i, method := range service.Methods {
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
continue
}
g.P("{")
g.P("StreamName: ", strconv.Quote(string(method.Desc.Name())), ",")
g.P("Handler: ", handlerNames[i], ",")
if method.Desc.IsStreamingServer() {
g.P("ServerStreams: true,")
}
if method.Desc.IsStreamingClient() {
g.P("ClientStreams: true,")
}
g.P("},")
}
g.P("},")
g.P("Metadata: \"", file.Desc.Path(), "\",")
g.P("}")
g.P()
}
func clientSignature(g *protogen.GeneratedFile, method *protogen.Method) string {
s := method.GoName + "(ctx " + g.QualifiedGoIdent(contextPackage.Ident("Context"))
if !method.Desc.IsStreamingClient() {
s += ", in *" + g.QualifiedGoIdent(method.Input.GoIdent)
}
s += ", opts ..." + g.QualifiedGoIdent(grpcPackage.Ident("CallOption")) + ") ("
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
s += "*" + g.QualifiedGoIdent(method.Output.GoIdent)
} else {
s += method.Parent.GoName + "_" + method.GoName + "Client"
}
s += ", error)"
return s
}
func genClientMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method, index int) {
service := method.Parent
sname := fmt.Sprintf("/%s/%s", service.Desc.FullName(), method.Desc.Name())
if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() {
g.P(deprecationComment)
}
g.P("func (c *", unexport(service.GoName), "Client) ", clientSignature(g, method), "{")
if !method.Desc.IsStreamingServer() && !method.Desc.IsStreamingClient() {
g.P("out := new(", method.Output.GoIdent, ")")
g.P(`err := c.cc.Invoke(ctx, "`, sname, `", in, out, opts...)`)
g.P("if err != nil { return nil, err }")
g.P("return out, nil")
g.P("}")
g.P()
return
}
streamType := unexport(service.GoName) + method.GoName + "Client"
serviceDescVar := "_" + service.GoName + "_serviceDesc"
g.P("stream, err := c.cc.NewStream(ctx, &", serviceDescVar, ".Streams[", index, `], "`, sname, `", opts...)`)
g.P("if err != nil { return nil, err }")
g.P("x := &", streamType, "{stream}")
if !method.Desc.IsStreamingClient() {
g.P("if err := x.ClientStream.SendMsg(in); err != nil { return nil, err }")
g.P("if err := x.ClientStream.CloseSend(); err != nil { return nil, err }")
}
g.P("return x, nil")
g.P("}")
g.P()
genSend := method.Desc.IsStreamingClient()
genRecv := method.Desc.IsStreamingServer()
genCloseAndRecv := !method.Desc.IsStreamingServer()
// Stream auxiliary types and methods.
g.P("type ", service.GoName, "_", method.GoName, "Client interface {")
if genSend {
g.P("Send(*", method.Input.GoIdent, ") error")
}
if genRecv {
g.P("Recv() (*", method.Output.GoIdent, ", error)")
}
if genCloseAndRecv {
g.P("CloseAndRecv() (*", method.Output.GoIdent, ", error)")
}
g.P(grpcPackage.Ident("ClientStream"))
g.P("}")
g.P()
g.P("type ", streamType, " struct {")
g.P(grpcPackage.Ident("ClientStream"))
g.P("}")
g.P()
if genSend {
g.P("func (x *", streamType, ") Send(m *", method.Input.GoIdent, ") error {")
g.P("return x.ClientStream.SendMsg(m)")
g.P("}")
g.P()
}
if genRecv {
g.P("func (x *", streamType, ") Recv() (*", method.Output.GoIdent, ", error) {")
g.P("m := new(", method.Output.GoIdent, ")")
g.P("if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err }")
g.P("return m, nil")
g.P("}")
g.P()
}
if genCloseAndRecv {
g.P("func (x *", streamType, ") CloseAndRecv() (*", method.Output.GoIdent, ", error) {")
g.P("if err := x.ClientStream.CloseSend(); err != nil { return nil, err }")
g.P("m := new(", method.Output.GoIdent, ")")
g.P("if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err }")
g.P("return m, nil")
g.P("}")
g.P()
}
}
func serverSignature(g *protogen.GeneratedFile, method *protogen.Method) string {
var reqArgs []string
ret := "error"
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
reqArgs = append(reqArgs, g.QualifiedGoIdent(contextPackage.Ident("Context")))
ret = "(*" + g.QualifiedGoIdent(method.Output.GoIdent) + ", error)"
}
if !method.Desc.IsStreamingClient() {
reqArgs = append(reqArgs, "*"+g.QualifiedGoIdent(method.Input.GoIdent))
}
if method.Desc.IsStreamingClient() || method.Desc.IsStreamingServer() {
reqArgs = append(reqArgs, method.Parent.GoName+"_"+method.GoName+"Server")
}
return method.GoName + "(" + strings.Join(reqArgs, ", ") + ") " + ret
}
func genServerMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method) string {
service := method.Parent
hname := fmt.Sprintf("_%s_%s_Handler", service.GoName, method.GoName)
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
g.P("func ", hname, "(srv interface{}, ctx ", contextPackage.Ident("Context"), ", dec func(interface{}) error, interceptor ", grpcPackage.Ident("UnaryServerInterceptor"), ") (interface{}, error) {")
g.P("in := new(", method.Input.GoIdent, ")")
g.P("if err := dec(in); err != nil { return nil, err }")
g.P("if interceptor == nil { return srv.(", service.GoName, "Server).", method.GoName, "(ctx, in) }")
g.P("info := &", grpcPackage.Ident("UnaryServerInfo"), "{")
g.P("Server: srv,")
g.P("FullMethod: ", strconv.Quote(fmt.Sprintf("/%s/%s", service.Desc.FullName(), method.GoName)), ",")
g.P("}")
g.P("handler := func(ctx ", contextPackage.Ident("Context"), ", req interface{}) (interface{}, error) {")
g.P("return srv.(", service.GoName, "Server).", method.GoName, "(ctx, req.(*", method.Input.GoIdent, "))")
g.P("}")
g.P("return interceptor(ctx, in, info, handler)")
g.P("}")
g.P()
return hname
}
streamType := unexport(service.GoName) + method.GoName + "Server"
g.P("func ", hname, "(srv interface{}, stream ", grpcPackage.Ident("ServerStream"), ") error {")
if !method.Desc.IsStreamingClient() {
g.P("m := new(", method.Input.GoIdent, ")")
g.P("if err := stream.RecvMsg(m); err != nil { return err }")
g.P("return srv.(", service.GoName, "Server).", method.GoName, "(m, &", streamType, "{stream})")
} else {
g.P("return srv.(", service.GoName, "Server).", method.GoName, "(&", streamType, "{stream})")
}
g.P("}")
g.P()
genSend := method.Desc.IsStreamingServer()
genSendAndClose := !method.Desc.IsStreamingServer()
genRecv := method.Desc.IsStreamingClient()
// Stream auxiliary types and methods.
g.P("type ", service.GoName, "_", method.GoName, "Server interface {")
if genSend {
g.P("Send(*", method.Output.GoIdent, ") error")
}
if genSendAndClose {
g.P("SendAndClose(*", method.Output.GoIdent, ") error")
}
if genRecv {
g.P("Recv() (*", method.Input.GoIdent, ", error)")
}
g.P(grpcPackage.Ident("ServerStream"))
g.P("}")
g.P()
g.P("type ", streamType, " struct {")
g.P(grpcPackage.Ident("ServerStream"))
g.P("}")
g.P()
if genSend {
g.P("func (x *", streamType, ") Send(m *", method.Output.GoIdent, ") error {")
g.P("return x.ServerStream.SendMsg(m)")
g.P("}")
g.P()
}
if genSendAndClose {
g.P("func (x *", streamType, ") SendAndClose(m *", method.Output.GoIdent, ") error {")
g.P("return x.ServerStream.SendMsg(m)")
g.P("}")
g.P()
}
if genRecv {
g.P("func (x *", streamType, ") Recv() (*", method.Input.GoIdent, ", error) {")
g.P("m := new(", method.Input.GoIdent, ")")
g.P("if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err }")
g.P("return m, nil")
g.P("}")
g.P()
}
return hname
}
const deprecationComment = "// Deprecated: Do not use."
func unexport(s string) string { return strings.ToLower(s[:1]) + s[1:] }

View file

@ -1,74 +0,0 @@
// Copyright 2010 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.
// protoc-gen-go is a plugin for the Google protocol buffer compiler to generate
// Go code. Install it by building this program and making it accessible within
// your PATH with the name:
// protoc-gen-go
//
// The 'go' suffix becomes part of the argument for the protocol compiler,
// such that it can be invoked as:
// protoc --go_out=paths=source_relative:. path/to/file.proto
//
// This generates Go bindings for the protocol buffer defined by file.proto.
// With that input, the output will be written to:
// path/to/file.pb.go
//
// See the README and documentation for protocol buffers to learn more:
// https://developers.google.com/protocol-buffers/
package main
import (
"flag"
"fmt"
"strings"
"github.com/golang/protobuf/internal/gengogrpc"
gengo "google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo"
"google.golang.org/protobuf/compiler/protogen"
)
func main() {
var (
flags flag.FlagSet
plugins = flags.String("plugins", "", "list of plugins to enable (supported values: grpc)")
importPrefix = flags.String("import_prefix", "", "prefix to prepend to import paths")
)
importRewriteFunc := func(importPath protogen.GoImportPath) protogen.GoImportPath {
switch importPath {
case "context", "fmt", "math":
return importPath
}
if *importPrefix != "" {
return protogen.GoImportPath(*importPrefix) + importPath
}
return importPath
}
protogen.Options{
ParamFunc: flags.Set,
ImportRewriteFunc: importRewriteFunc,
}.Run(func(gen *protogen.Plugin) error {
grpc := false
for _, plugin := range strings.Split(*plugins, ",") {
switch plugin {
case "grpc":
grpc = true
case "":
default:
return fmt.Errorf("protoc-gen-go: unknown plugin %q", plugin)
}
}
for _, f := range gen.Files {
if !f.Generate {
continue
}
g := gengo.GenerateFile(gen, f)
if grpc {
gengogrpc.GenerateFileContent(gen, f, g)
}
}
gen.SupportedFeatures = gengo.SupportedFeatures
return nil
})
}

View file

@ -1 +0,0 @@
go-junit-report

View file

@ -1,16 +0,0 @@
language: go
go:
- tip
- "1.13.x"
- "1.12.x"
- "1.11.x"
- "1.10.x"
- "1.9.x"
- "1.8.x"
- "1.7.x"
- "1.6.x"
- "1.5.x"
- "1.4.x"
- "1.3.x"
- "1.2.x"

View file

@ -1,20 +0,0 @@
Copyright (c) 2012 Joel Stemmer
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -1,49 +0,0 @@
# go-junit-report
Converts `go test` output to an xml report, suitable for applications that
expect junit xml reports (e.g. [Jenkins](http://jenkins-ci.org)).
[![Build Status][travis-badge]][travis-link]
[![Report Card][report-badge]][report-link]
## Installation
Go version 1.2 or higher is required. Install or update using the `go get`
command:
```bash
go get -u github.com/jstemmer/go-junit-report
```
## Usage
go-junit-report reads the `go test` verbose output from standard in and writes
junit compatible XML to standard out.
```bash
go test -v 2>&1 | go-junit-report > report.xml
```
Note that it also can parse benchmark output with `-bench` flag:
```bash
go test -v -bench . -count 5 2>&1 | go-junit-report > report.xml
```
## Contribution
Create an Issue and discuss the fix or feature, then fork the package.
Clone to github.com/jstemmer/go-junit-report. This is necessary because go import uses this path.
Fix or implement feature. Test and then commit change.
Specify #Issue and describe change in the commit message.
Create Pull Request. It can be merged by owner or administrator then.
### Run Tests
```bash
go test
```
[travis-badge]: https://travis-ci.org/jstemmer/go-junit-report.svg
[travis-link]: https://travis-ci.org/jstemmer/go-junit-report
[report-badge]: https://goreportcard.com/badge/github.com/jstemmer/go-junit-report
[report-link]: https://goreportcard.com/report/github.com/jstemmer/go-junit-report

View file

@ -1,182 +0,0 @@
package formatter
import (
"bufio"
"encoding/xml"
"fmt"
"io"
"runtime"
"strings"
"time"
"github.com/jstemmer/go-junit-report/parser"
)
// JUnitTestSuites is a collection of JUnit test suites.
type JUnitTestSuites struct {
XMLName xml.Name `xml:"testsuites"`
Suites []JUnitTestSuite `xml:"testsuite"`
}
// JUnitTestSuite is a single JUnit test suite which may contain many
// testcases.
type JUnitTestSuite struct {
XMLName xml.Name `xml:"testsuite"`
Tests int `xml:"tests,attr"`
Failures int `xml:"failures,attr"`
Time string `xml:"time,attr"`
Name string `xml:"name,attr"`
Properties []JUnitProperty `xml:"properties>property,omitempty"`
TestCases []JUnitTestCase `xml:"testcase"`
}
// JUnitTestCase is a single test case with its result.
type JUnitTestCase struct {
XMLName xml.Name `xml:"testcase"`
Classname string `xml:"classname,attr"`
Name string `xml:"name,attr"`
Time string `xml:"time,attr"`
SkipMessage *JUnitSkipMessage `xml:"skipped,omitempty"`
Failure *JUnitFailure `xml:"failure,omitempty"`
}
// JUnitSkipMessage contains the reason why a testcase was skipped.
type JUnitSkipMessage struct {
Message string `xml:"message,attr"`
}
// JUnitProperty represents a key/value pair used to define properties.
type JUnitProperty struct {
Name string `xml:"name,attr"`
Value string `xml:"value,attr"`
}
// JUnitFailure contains data related to a failed test.
type JUnitFailure struct {
Message string `xml:"message,attr"`
Type string `xml:"type,attr"`
Contents string `xml:",chardata"`
}
// JUnitReportXML writes a JUnit xml representation of the given report to w
// in the format described at http://windyroad.org/dl/Open%20Source/JUnit.xsd
func JUnitReportXML(report *parser.Report, noXMLHeader bool, goVersion string, w io.Writer) error {
suites := JUnitTestSuites{}
// convert Report to JUnit test suites
for _, pkg := range report.Packages {
pkg.Benchmarks = mergeBenchmarks(pkg.Benchmarks)
ts := JUnitTestSuite{
Tests: len(pkg.Tests) + len(pkg.Benchmarks),
Failures: 0,
Time: formatTime(pkg.Duration),
Name: pkg.Name,
Properties: []JUnitProperty{},
TestCases: []JUnitTestCase{},
}
classname := pkg.Name
if idx := strings.LastIndex(classname, "/"); idx > -1 && idx < len(pkg.Name) {
classname = pkg.Name[idx+1:]
}
// properties
if goVersion == "" {
// if goVersion was not specified as a flag, fall back to version reported by runtime
goVersion = runtime.Version()
}
ts.Properties = append(ts.Properties, JUnitProperty{"go.version", goVersion})
if pkg.CoveragePct != "" {
ts.Properties = append(ts.Properties, JUnitProperty{"coverage.statements.pct", pkg.CoveragePct})
}
// individual test cases
for _, test := range pkg.Tests {
testCase := JUnitTestCase{
Classname: classname,
Name: test.Name,
Time: formatTime(test.Duration),
Failure: nil,
}
if test.Result == parser.FAIL {
ts.Failures++
testCase.Failure = &JUnitFailure{
Message: "Failed",
Type: "",
Contents: strings.Join(test.Output, "\n"),
}
}
if test.Result == parser.SKIP {
testCase.SkipMessage = &JUnitSkipMessage{strings.Join(test.Output, "\n")}
}
ts.TestCases = append(ts.TestCases, testCase)
}
// individual benchmarks
for _, benchmark := range pkg.Benchmarks {
benchmarkCase := JUnitTestCase{
Classname: classname,
Name: benchmark.Name,
Time: formatBenchmarkTime(benchmark.Duration),
}
ts.TestCases = append(ts.TestCases, benchmarkCase)
}
suites.Suites = append(suites.Suites, ts)
}
// to xml
bytes, err := xml.MarshalIndent(suites, "", "\t")
if err != nil {
return err
}
writer := bufio.NewWriter(w)
if !noXMLHeader {
writer.WriteString(xml.Header)
}
writer.Write(bytes)
writer.WriteByte('\n')
writer.Flush()
return nil
}
func mergeBenchmarks(benchmarks []*parser.Benchmark) []*parser.Benchmark {
var merged []*parser.Benchmark
benchmap := make(map[string][]*parser.Benchmark)
for _, bm := range benchmarks {
if _, ok := benchmap[bm.Name]; !ok {
merged = append(merged, &parser.Benchmark{Name: bm.Name})
}
benchmap[bm.Name] = append(benchmap[bm.Name], bm)
}
for _, bm := range merged {
for _, b := range benchmap[bm.Name] {
bm.Allocs += b.Allocs
bm.Bytes += b.Bytes
bm.Duration += b.Duration
}
n := len(benchmap[bm.Name])
bm.Allocs /= n
bm.Bytes /= n
bm.Duration /= time.Duration(n)
}
return merged
}
func formatTime(d time.Duration) string {
return fmt.Sprintf("%.3f", d.Seconds())
}
func formatBenchmarkTime(d time.Duration) string {
return fmt.Sprintf("%.9f", d.Seconds())
}

View file

@ -1,45 +0,0 @@
package main
import (
"flag"
"fmt"
"os"
"github.com/jstemmer/go-junit-report/formatter"
"github.com/jstemmer/go-junit-report/parser"
)
var (
noXMLHeader = flag.Bool("no-xml-header", false, "do not print xml header")
packageName = flag.String("package-name", "", "specify a package name (compiled test have no package name in output)")
goVersionFlag = flag.String("go-version", "", "specify the value to use for the go.version property in the generated XML")
setExitCode = flag.Bool("set-exit-code", false, "set exit code to 1 if tests failed")
)
func main() {
flag.Parse()
if flag.NArg() != 0 {
fmt.Fprintf(os.Stderr, "%s does not accept positional arguments\n", os.Args[0])
flag.Usage()
os.Exit(1)
}
// Read input
report, err := parser.Parse(os.Stdin, *packageName)
if err != nil {
fmt.Printf("Error reading input: %s\n", err)
os.Exit(1)
}
// Write xml
err = formatter.JUnitReportXML(report, *noXMLHeader, *goVersionFlag, os.Stdout)
if err != nil {
fmt.Printf("Error writing XML: %s\n", err)
os.Exit(1)
}
if *setExitCode && report.Failures() > 0 {
os.Exit(1)
}
}

View file

@ -1,3 +0,0 @@
module github.com/jstemmer/go-junit-report
go 1.2

View file

@ -1,319 +0,0 @@
package parser
import (
"bufio"
"io"
"regexp"
"strconv"
"strings"
"time"
)
// Result represents a test result.
type Result int
// Test result constants
const (
PASS Result = iota
FAIL
SKIP
)
// Report is a collection of package tests.
type Report struct {
Packages []Package
}
// Package contains the test results of a single package.
type Package struct {
Name string
Duration time.Duration
Tests []*Test
Benchmarks []*Benchmark
CoveragePct string
// Time is deprecated, use Duration instead.
Time int // in milliseconds
}
// Test contains the results of a single test.
type Test struct {
Name string
Duration time.Duration
Result Result
Output []string
SubtestIndent string
// Time is deprecated, use Duration instead.
Time int // in milliseconds
}
// Benchmark contains the results of a single benchmark.
type Benchmark struct {
Name string
Duration time.Duration
// number of B/op
Bytes int
// number of allocs/op
Allocs int
}
var (
regexStatus = regexp.MustCompile(`--- (PASS|FAIL|SKIP): (.+) \((\d+\.\d+)(?: seconds|s)\)`)
regexIndent = regexp.MustCompile(`^([ \t]+)---`)
regexCoverage = regexp.MustCompile(`^coverage:\s+(\d+\.\d+)%\s+of\s+statements(?:\sin\s.+)?$`)
regexResult = regexp.MustCompile(`^(ok|FAIL)\s+([^ ]+)\s+(?:(\d+\.\d+)s|\(cached\)|(\[\w+ failed]))(?:\s+coverage:\s+(\d+\.\d+)%\sof\sstatements(?:\sin\s.+)?)?$`)
// regexBenchmark captures 3-5 groups: benchmark name, number of times ran, ns/op (with or without decimal), B/op (optional), and allocs/op (optional).
regexBenchmark = regexp.MustCompile(`^(Benchmark[^ -]+)(?:-\d+\s+|\s+)(\d+)\s+(\d+|\d+\.\d+)\sns/op(?:\s+(\d+)\sB/op)?(?:\s+(\d+)\sallocs/op)?`)
regexOutput = regexp.MustCompile(`( )*\t(.*)`)
regexSummary = regexp.MustCompile(`^(PASS|FAIL|SKIP)$`)
regexPackageWithTest = regexp.MustCompile(`^# ([^\[\]]+) \[[^\]]+\]$`)
)
// Parse parses go test output from reader r and returns a report with the
// results. An optional pkgName can be given, which is used in case a package
// result line is missing.
func Parse(r io.Reader, pkgName string) (*Report, error) {
reader := bufio.NewReader(r)
report := &Report{make([]Package, 0)}
// keep track of tests we find
var tests []*Test
// keep track of benchmarks we find
var benchmarks []*Benchmark
// sum of tests' time, use this if current test has no result line (when it is compiled test)
var testsTime time.Duration
// current test
var cur string
// coverage percentage report for current package
var coveragePct string
// stores mapping between package name and output of build failures
var packageCaptures = map[string][]string{}
// the name of the package which it's build failure output is being captured
var capturedPackage string
// capture any non-test output
var buffers = map[string][]string{}
// parse lines
for {
l, _, err := reader.ReadLine()
if err != nil && err == io.EOF {
break
} else if err != nil {
return nil, err
}
line := string(l)
if strings.HasPrefix(line, "=== RUN ") {
// new test
cur = strings.TrimSpace(line[8:])
tests = append(tests, &Test{
Name: cur,
Result: FAIL,
Output: make([]string, 0),
})
// clear the current build package, so output lines won't be added to that build
capturedPackage = ""
} else if matches := regexBenchmark.FindStringSubmatch(line); len(matches) == 6 {
bytes, _ := strconv.Atoi(matches[4])
allocs, _ := strconv.Atoi(matches[5])
benchmarks = append(benchmarks, &Benchmark{
Name: matches[1],
Duration: parseNanoseconds(matches[3]),
Bytes: bytes,
Allocs: allocs,
})
} else if strings.HasPrefix(line, "=== PAUSE ") {
continue
} else if strings.HasPrefix(line, "=== CONT ") {
cur = strings.TrimSpace(line[8:])
continue
} else if matches := regexResult.FindStringSubmatch(line); len(matches) == 6 {
if matches[5] != "" {
coveragePct = matches[5]
}
if strings.HasSuffix(matches[4], "failed]") {
// the build of the package failed, inject a dummy test into the package
// which indicate about the failure and contain the failure description.
tests = append(tests, &Test{
Name: matches[4],
Result: FAIL,
Output: packageCaptures[matches[2]],
})
} else if matches[1] == "FAIL" && !containsFailures(tests) && len(buffers[cur]) > 0 {
// This package didn't have any failing tests, but still it
// failed with some output. Create a dummy test with the
// output.
tests = append(tests, &Test{
Name: "Failure",
Result: FAIL,
Output: buffers[cur],
})
buffers[cur] = buffers[cur][0:0]
}
// all tests in this package are finished
report.Packages = append(report.Packages, Package{
Name: matches[2],
Duration: parseSeconds(matches[3]),
Tests: tests,
Benchmarks: benchmarks,
CoveragePct: coveragePct,
Time: int(parseSeconds(matches[3]) / time.Millisecond), // deprecated
})
buffers[cur] = buffers[cur][0:0]
tests = make([]*Test, 0)
benchmarks = make([]*Benchmark, 0)
coveragePct = ""
cur = ""
testsTime = 0
} else if matches := regexStatus.FindStringSubmatch(line); len(matches) == 4 {
cur = matches[2]
test := findTest(tests, cur)
if test == nil {
continue
}
// test status
if matches[1] == "PASS" {
test.Result = PASS
} else if matches[1] == "SKIP" {
test.Result = SKIP
} else {
test.Result = FAIL
}
if matches := regexIndent.FindStringSubmatch(line); len(matches) == 2 {
test.SubtestIndent = matches[1]
}
test.Output = buffers[cur]
test.Name = matches[2]
test.Duration = parseSeconds(matches[3])
testsTime += test.Duration
test.Time = int(test.Duration / time.Millisecond) // deprecated
} else if matches := regexCoverage.FindStringSubmatch(line); len(matches) == 2 {
coveragePct = matches[1]
} else if matches := regexOutput.FindStringSubmatch(line); capturedPackage == "" && len(matches) == 3 {
// Sub-tests start with one or more series of 4-space indents, followed by a hard tab,
// followed by the test output
// Top-level tests start with a hard tab.
test := findTest(tests, cur)
if test == nil {
continue
}
test.Output = append(test.Output, matches[2])
} else if strings.HasPrefix(line, "# ") {
// indicates a capture of build output of a package. set the current build package.
packageWithTestBinary := regexPackageWithTest.FindStringSubmatch(line)
if packageWithTestBinary != nil {
// Sometimes, the text after "# " shows the name of the test binary
// ("<package>.test") in addition to the package
// e.g.: "# package/name [package/name.test]"
capturedPackage = packageWithTestBinary[1]
} else {
capturedPackage = line[2:]
}
} else if capturedPackage != "" {
// current line is build failure capture for the current built package
packageCaptures[capturedPackage] = append(packageCaptures[capturedPackage], line)
} else if regexSummary.MatchString(line) {
// unset current test name so any additional output after the
// summary is captured separately.
cur = ""
} else {
// buffer anything else that we didn't recognize
buffers[cur] = append(buffers[cur], line)
// if we have a current test, also append to its output
test := findTest(tests, cur)
if test != nil {
if strings.HasPrefix(line, test.SubtestIndent+" ") {
test.Output = append(test.Output, strings.TrimPrefix(line, test.SubtestIndent+" "))
}
}
}
}
if len(tests) > 0 {
// no result line found
report.Packages = append(report.Packages, Package{
Name: pkgName,
Duration: testsTime,
Time: int(testsTime / time.Millisecond),
Tests: tests,
Benchmarks: benchmarks,
CoveragePct: coveragePct,
})
}
return report, nil
}
func parseSeconds(t string) time.Duration {
if t == "" {
return time.Duration(0)
}
// ignore error
d, _ := time.ParseDuration(t + "s")
return d
}
func parseNanoseconds(t string) time.Duration {
// note: if input < 1 ns precision, result will be 0s.
if t == "" {
return time.Duration(0)
}
// ignore error
d, _ := time.ParseDuration(t + "ns")
return d
}
func findTest(tests []*Test, name string) *Test {
for i := len(tests) - 1; i >= 0; i-- {
if tests[i].Name == name {
return tests[i]
}
}
return nil
}
func containsFailures(tests []*Test) bool {
for _, test := range tests {
if test.Result == FAIL {
return true
}
}
return false
}
// Failures counts the number of failed tests in this report
func (r *Report) Failures() int {
count := 0
for _, p := range r.Packages {
for _, t := range p.Tests {
if t.Result == FAIL {
count++
}
}
}
return count
}

View file

@ -2209,6 +2209,23 @@ Lines: 1
00015c73 00020e76 F0000769 00000000 00015c73 00020e76 F0000769 00000000
Mode: 644 Mode: 644
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Directory: fixtures/proc/net/stat
Mode: 755
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Path: fixtures/proc/net/stat/arp_cache
Lines: 3
entries allocs destroys hash_grows lookups hits res_failed rcv_probes_mcast rcv_probes_ucast periodic_gc_runs forced_gc_runs unresolved_discards table_fulls
00000014 00000001 00000002 00000003 00000004 00000005 00000006 00000007 00000008 00000009 0000000a 0000000b 0000000c
00000014 0000000d 0000000e 0000000f 00000010 00000011 00000012 00000013 00000014 00000015 00000016 00000017 00000018
Mode: 644
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Path: fixtures/proc/net/stat/ndisc_cache
Lines: 3
entries allocs destroys hash_grows lookups hits res_failed rcv_probes_mcast rcv_probes_ucast periodic_gc_runs forced_gc_runs unresolved_discards table_fulls
00000024 000000f0 000000f1 000000f2 000000f3 000000f4 000000f5 000000f6 000000f7 000000f8 000000f9 000000fa 000000fb
00000024 000000fc 000000fd 000000fe 000000ff 00000100 00000101 00000102 00000103 00000104 00000105 00000106 00000107
Mode: 644
# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Path: fixtures/proc/net/tcp Path: fixtures/proc/net/tcp
Lines: 4 Lines: 4
sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode

68
vendor/github.com/prometheus/procfs/netstat.go generated vendored Normal file
View file

@ -0,0 +1,68 @@
// Copyright 2020 The Prometheus 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.
package procfs
import (
"bufio"
"os"
"path/filepath"
"strconv"
"strings"
)
// NetStat contains statistics for all the counters from one file
type NetStat struct {
Filename string
Stats map[string][]uint64
}
// NetStat retrieves stats from /proc/net/stat/
func (fs FS) NetStat() ([]NetStat, error) {
statFiles, err := filepath.Glob(fs.proc.Path("net/stat/*"))
if err != nil {
return nil, err
}
var netStatsTotal []NetStat
for _, filePath := range statFiles {
file, err := os.Open(filePath)
if err != nil {
return nil, err
}
netStatFile := NetStat{
Filename: filepath.Base(filePath),
Stats: make(map[string][]uint64),
}
scanner := bufio.NewScanner(file)
scanner.Scan()
// First string is always a header for stats
var headers []string
headers = append(headers, strings.Fields(scanner.Text())...)
// Other strings represent per-CPU counters
for scanner.Scan() {
for num, counter := range strings.Fields(scanner.Text()) {
value, err := strconv.ParseUint(counter, 16, 32)
if err != nil {
return nil, err
}
netStatFile.Stats[headers[num]] = append(netStatFile.Stats[headers[num]], value)
}
}
netStatsTotal = append(netStatsTotal, netStatFile)
}
return netStatsTotal, nil
}

19
vendor/golang.org/x/lint/.travis.yml generated vendored
View file

@ -1,19 +0,0 @@
sudo: false
language: go
go:
- 1.10.x
- 1.11.x
- master
go_import_path: golang.org/x/lint
install:
- go get -t -v ./...
script:
- go test -v -race ./...
matrix:
allow_failures:
- go: master
fast_finish: true

View file

@ -1,15 +0,0 @@
# Contributing to Golint
## Before filing an issue:
### Are you having trouble building golint?
Check you have the latest version of its dependencies. Run
```
go get -u golang.org/x/lint/golint
```
If you still have problems, consider searching for existing issues before filing a new issue.
## Before sending a pull request:
Have you understood the purpose of golint? Make sure to carefully read `README`.

27
vendor/golang.org/x/lint/LICENSE generated vendored
View file

@ -1,27 +0,0 @@
Copyright (c) 2013 The Go Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

93
vendor/golang.org/x/lint/README.md generated vendored
View file

@ -1,93 +0,0 @@
**NOTE:** Golint is [deprecated and frozen](https://github.com/golang/go/issues/38968).
There's no drop-in replacement for it, but tools such as [Staticcheck](https://staticcheck.io/)
and `go vet` should be used instead.
Golint is a linter for Go source code.
[![Go Reference](https://pkg.go.dev/badge/golang.org/x/lint.svg)](https://pkg.go.dev/golang.org/x/lint)
[![Build Status](https://travis-ci.org/golang/lint.svg?branch=master)](https://travis-ci.org/golang/lint)
## Installation
Golint requires a
[supported release of Go](https://golang.org/doc/devel/release.html#policy).
go get -u golang.org/x/lint/golint
To find out where `golint` was installed you can run `go list -f {{.Target}} golang.org/x/lint/golint`. For `golint` to be used globally add that directory to the `$PATH` environment setting.
## Usage
Invoke `golint` with one or more filenames, directories, or packages named
by its import path. Golint uses the same
[import path syntax](https://golang.org/cmd/go/#hdr-Import_path_syntax) as
the `go` command and therefore
also supports relative import paths like `./...`. Additionally the `...`
wildcard can be used as suffix on relative and absolute file paths to recurse
into them.
The output of this tool is a list of suggestions in Vim quickfix format,
which is accepted by lots of different editors.
## Purpose
Golint differs from gofmt. Gofmt reformats Go source code, whereas
golint prints out style mistakes.
Golint differs from govet. Govet is concerned with correctness, whereas
golint is concerned with coding style. Golint is in use at Google, and it
seeks to match the accepted style of the open source Go project.
The suggestions made by golint are exactly that: suggestions.
Golint is not perfect, and has both false positives and false negatives.
Do not treat its output as a gold standard. We will not be adding pragmas
or other knobs to suppress specific warnings, so do not expect or require
code to be completely "lint-free".
In short, this tool is not, and will never be, trustworthy enough for its
suggestions to be enforced automatically, for example as part of a build process.
Golint makes suggestions for many of the mechanically checkable items listed in
[Effective Go](https://golang.org/doc/effective_go.html) and the
[CodeReviewComments wiki page](https://golang.org/wiki/CodeReviewComments).
## Scope
Golint is meant to carry out the stylistic conventions put forth in
[Effective Go](https://golang.org/doc/effective_go.html) and
[CodeReviewComments](https://golang.org/wiki/CodeReviewComments).
Changes that are not aligned with those documents will not be considered.
## Contributions
Contributions to this project are welcome provided they are [in scope](#scope),
though please send mail before starting work on anything major.
Contributors retain their copyright, so we need you to fill out
[a short form](https://developers.google.com/open-source/cla/individual)
before we can accept your contribution.
## Vim
Add this to your ~/.vimrc:
set rtp+=$GOPATH/src/golang.org/x/lint/misc/vim
If you have multiple entries in your GOPATH, replace `$GOPATH` with the right value.
Running `:Lint` will run golint on the current file and populate the quickfix list.
Optionally, add this to your `~/.vimrc` to automatically run `golint` on `:w`
autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow
## Emacs
Add this to your `.emacs` file:
(add-to-list 'load-path (concat (getenv "GOPATH") "/src/golang.org/x/lint/misc/emacs/"))
(require 'golint)
If you have multiple entries in your GOPATH, replace `$GOPATH` with the right value.
Running M-x golint will run golint on the current file.
For more usage, see [Compilation-Mode](http://www.gnu.org/software/emacs/manual/html_node/emacs/Compilation-Mode.html).

5
vendor/golang.org/x/lint/go.mod generated vendored
View file

@ -1,5 +0,0 @@
module golang.org/x/lint
go 1.11
require golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7

12
vendor/golang.org/x/lint/go.sum generated vendored
View file

@ -1,12 +0,0 @@
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7 h1:EBZoQjiKKPaLbPrbpssUfuHtwM6KV/vb4U85g/cigFY=
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

View file

@ -1,159 +0,0 @@
// Copyright (c) 2013 The Go Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd.
// golint lints the Go source files named on its command line.
package main
import (
"flag"
"fmt"
"go/build"
"io/ioutil"
"os"
"path/filepath"
"strings"
"golang.org/x/lint"
)
var (
minConfidence = flag.Float64("min_confidence", 0.8, "minimum confidence of a problem to print it")
setExitStatus = flag.Bool("set_exit_status", false, "set exit status to 1 if any issues are found")
suggestions int
)
func usage() {
fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0])
fmt.Fprintf(os.Stderr, "\tgolint [flags] # runs on package in current directory\n")
fmt.Fprintf(os.Stderr, "\tgolint [flags] [packages]\n")
fmt.Fprintf(os.Stderr, "\tgolint [flags] [directories] # where a '/...' suffix includes all sub-directories\n")
fmt.Fprintf(os.Stderr, "\tgolint [flags] [files] # all must belong to a single package\n")
fmt.Fprintf(os.Stderr, "Flags:\n")
flag.PrintDefaults()
}
func main() {
flag.Usage = usage
flag.Parse()
if flag.NArg() == 0 {
lintDir(".")
} else {
// dirsRun, filesRun, and pkgsRun indicate whether golint is applied to
// directory, file or package targets. The distinction affects which
// checks are run. It is no valid to mix target types.
var dirsRun, filesRun, pkgsRun int
var args []string
for _, arg := range flag.Args() {
if strings.HasSuffix(arg, "/...") && isDir(arg[:len(arg)-len("/...")]) {
dirsRun = 1
for _, dirname := range allPackagesInFS(arg) {
args = append(args, dirname)
}
} else if isDir(arg) {
dirsRun = 1
args = append(args, arg)
} else if exists(arg) {
filesRun = 1
args = append(args, arg)
} else {
pkgsRun = 1
args = append(args, arg)
}
}
if dirsRun+filesRun+pkgsRun != 1 {
usage()
os.Exit(2)
}
switch {
case dirsRun == 1:
for _, dir := range args {
lintDir(dir)
}
case filesRun == 1:
lintFiles(args...)
case pkgsRun == 1:
for _, pkg := range importPaths(args) {
lintPackage(pkg)
}
}
}
if *setExitStatus && suggestions > 0 {
fmt.Fprintf(os.Stderr, "Found %d lint suggestions; failing.\n", suggestions)
os.Exit(1)
}
}
func isDir(filename string) bool {
fi, err := os.Stat(filename)
return err == nil && fi.IsDir()
}
func exists(filename string) bool {
_, err := os.Stat(filename)
return err == nil
}
func lintFiles(filenames ...string) {
files := make(map[string][]byte)
for _, filename := range filenames {
src, err := ioutil.ReadFile(filename)
if err != nil {
fmt.Fprintln(os.Stderr, err)
continue
}
files[filename] = src
}
l := new(lint.Linter)
ps, err := l.LintFiles(files)
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
return
}
for _, p := range ps {
if p.Confidence >= *minConfidence {
fmt.Printf("%v: %s\n", p.Position, p.Text)
suggestions++
}
}
}
func lintDir(dirname string) {
pkg, err := build.ImportDir(dirname, 0)
lintImportedPackage(pkg, err)
}
func lintPackage(pkgname string) {
pkg, err := build.Import(pkgname, ".", 0)
lintImportedPackage(pkg, err)
}
func lintImportedPackage(pkg *build.Package, err error) {
if err != nil {
if _, nogo := err.(*build.NoGoError); nogo {
// Don't complain if the failure is due to no Go source files.
return
}
fmt.Fprintln(os.Stderr, err)
return
}
var files []string
files = append(files, pkg.GoFiles...)
files = append(files, pkg.CgoFiles...)
files = append(files, pkg.TestGoFiles...)
if pkg.Dir != "." {
for i, f := range files {
files[i] = filepath.Join(pkg.Dir, f)
}
}
// TODO(dsymonds): Do foo_test too (pkg.XTestGoFiles)
lintFiles(files...)
}

View file

@ -1,309 +0,0 @@
package main
/*
This file holds a direct copy of the import path matching code of
https://github.com/golang/go/blob/master/src/cmd/go/main.go. It can be
replaced when https://golang.org/issue/8768 is resolved.
It has been updated to follow upstream changes in a few ways.
*/
import (
"fmt"
"go/build"
"log"
"os"
"path"
"path/filepath"
"regexp"
"runtime"
"strings"
)
var (
buildContext = build.Default
goroot = filepath.Clean(runtime.GOROOT())
gorootSrc = filepath.Join(goroot, "src")
)
// importPathsNoDotExpansion returns the import paths to use for the given
// command line, but it does no ... expansion.
func importPathsNoDotExpansion(args []string) []string {
if len(args) == 0 {
return []string{"."}
}
var out []string
for _, a := range args {
// Arguments are supposed to be import paths, but
// as a courtesy to Windows developers, rewrite \ to /
// in command-line arguments. Handles .\... and so on.
if filepath.Separator == '\\' {
a = strings.Replace(a, `\`, `/`, -1)
}
// Put argument in canonical form, but preserve leading ./.
if strings.HasPrefix(a, "./") {
a = "./" + path.Clean(a)
if a == "./." {
a = "."
}
} else {
a = path.Clean(a)
}
if a == "all" || a == "std" {
out = append(out, allPackages(a)...)
continue
}
out = append(out, a)
}
return out
}
// importPaths returns the import paths to use for the given command line.
func importPaths(args []string) []string {
args = importPathsNoDotExpansion(args)
var out []string
for _, a := range args {
if strings.Contains(a, "...") {
if build.IsLocalImport(a) {
out = append(out, allPackagesInFS(a)...)
} else {
out = append(out, allPackages(a)...)
}
continue
}
out = append(out, a)
}
return out
}
// matchPattern(pattern)(name) reports whether
// name matches pattern. Pattern is a limited glob
// pattern in which '...' means 'any string' and there
// is no other special syntax.
func matchPattern(pattern string) func(name string) bool {
re := regexp.QuoteMeta(pattern)
re = strings.Replace(re, `\.\.\.`, `.*`, -1)
// Special case: foo/... matches foo too.
if strings.HasSuffix(re, `/.*`) {
re = re[:len(re)-len(`/.*`)] + `(/.*)?`
}
reg := regexp.MustCompile(`^` + re + `$`)
return func(name string) bool {
return reg.MatchString(name)
}
}
// hasPathPrefix reports whether the path s begins with the
// elements in prefix.
func hasPathPrefix(s, prefix string) bool {
switch {
default:
return false
case len(s) == len(prefix):
return s == prefix
case len(s) > len(prefix):
if prefix != "" && prefix[len(prefix)-1] == '/' {
return strings.HasPrefix(s, prefix)
}
return s[len(prefix)] == '/' && s[:len(prefix)] == prefix
}
}
// treeCanMatchPattern(pattern)(name) reports whether
// name or children of name can possibly match pattern.
// Pattern is the same limited glob accepted by matchPattern.
func treeCanMatchPattern(pattern string) func(name string) bool {
wildCard := false
if i := strings.Index(pattern, "..."); i >= 0 {
wildCard = true
pattern = pattern[:i]
}
return func(name string) bool {
return len(name) <= len(pattern) && hasPathPrefix(pattern, name) ||
wildCard && strings.HasPrefix(name, pattern)
}
}
// allPackages returns all the packages that can be found
// under the $GOPATH directories and $GOROOT matching pattern.
// The pattern is either "all" (all packages), "std" (standard packages)
// or a path including "...".
func allPackages(pattern string) []string {
pkgs := matchPackages(pattern)
if len(pkgs) == 0 {
fmt.Fprintf(os.Stderr, "warning: %q matched no packages\n", pattern)
}
return pkgs
}
func matchPackages(pattern string) []string {
match := func(string) bool { return true }
treeCanMatch := func(string) bool { return true }
if pattern != "all" && pattern != "std" {
match = matchPattern(pattern)
treeCanMatch = treeCanMatchPattern(pattern)
}
have := map[string]bool{
"builtin": true, // ignore pseudo-package that exists only for documentation
}
if !buildContext.CgoEnabled {
have["runtime/cgo"] = true // ignore during walk
}
var pkgs []string
// Commands
cmd := filepath.Join(goroot, "src/cmd") + string(filepath.Separator)
filepath.Walk(cmd, func(path string, fi os.FileInfo, err error) error {
if err != nil || !fi.IsDir() || path == cmd {
return nil
}
name := path[len(cmd):]
if !treeCanMatch(name) {
return filepath.SkipDir
}
// Commands are all in cmd/, not in subdirectories.
if strings.Contains(name, string(filepath.Separator)) {
return filepath.SkipDir
}
// We use, e.g., cmd/gofmt as the pseudo import path for gofmt.
name = "cmd/" + name
if have[name] {
return nil
}
have[name] = true
if !match(name) {
return nil
}
_, err = buildContext.ImportDir(path, 0)
if err != nil {
if _, noGo := err.(*build.NoGoError); !noGo {
log.Print(err)
}
return nil
}
pkgs = append(pkgs, name)
return nil
})
for _, src := range buildContext.SrcDirs() {
if (pattern == "std" || pattern == "cmd") && src != gorootSrc {
continue
}
src = filepath.Clean(src) + string(filepath.Separator)
root := src
if pattern == "cmd" {
root += "cmd" + string(filepath.Separator)
}
filepath.Walk(root, func(path string, fi os.FileInfo, err error) error {
if err != nil || !fi.IsDir() || path == src {
return nil
}
// Avoid .foo, _foo, and testdata directory trees.
_, elem := filepath.Split(path)
if strings.HasPrefix(elem, ".") || strings.HasPrefix(elem, "_") || elem == "testdata" {
return filepath.SkipDir
}
name := filepath.ToSlash(path[len(src):])
if pattern == "std" && (strings.Contains(name, ".") || name == "cmd") {
// The name "std" is only the standard library.
// If the name is cmd, it's the root of the command tree.
return filepath.SkipDir
}
if !treeCanMatch(name) {
return filepath.SkipDir
}
if have[name] {
return nil
}
have[name] = true
if !match(name) {
return nil
}
_, err = buildContext.ImportDir(path, 0)
if err != nil {
if _, noGo := err.(*build.NoGoError); noGo {
return nil
}
}
pkgs = append(pkgs, name)
return nil
})
}
return pkgs
}
// allPackagesInFS is like allPackages but is passed a pattern
// beginning ./ or ../, meaning it should scan the tree rooted
// at the given directory. There are ... in the pattern too.
func allPackagesInFS(pattern string) []string {
pkgs := matchPackagesInFS(pattern)
if len(pkgs) == 0 {
fmt.Fprintf(os.Stderr, "warning: %q matched no packages\n", pattern)
}
return pkgs
}
func matchPackagesInFS(pattern string) []string {
// Find directory to begin the scan.
// Could be smarter but this one optimization
// is enough for now, since ... is usually at the
// end of a path.
i := strings.Index(pattern, "...")
dir, _ := path.Split(pattern[:i])
// pattern begins with ./ or ../.
// path.Clean will discard the ./ but not the ../.
// We need to preserve the ./ for pattern matching
// and in the returned import paths.
prefix := ""
if strings.HasPrefix(pattern, "./") {
prefix = "./"
}
match := matchPattern(pattern)
var pkgs []string
filepath.Walk(dir, func(path string, fi os.FileInfo, err error) error {
if err != nil || !fi.IsDir() {
return nil
}
if path == dir {
// filepath.Walk starts at dir and recurses. For the recursive case,
// the path is the result of filepath.Join, which calls filepath.Clean.
// The initial case is not Cleaned, though, so we do this explicitly.
//
// This converts a path like "./io/" to "io". Without this step, running
// "cd $GOROOT/src/pkg; go list ./io/..." would incorrectly skip the io
// package, because prepending the prefix "./" to the unclean path would
// result in "././io", and match("././io") returns false.
path = filepath.Clean(path)
}
// Avoid .foo, _foo, and testdata directory trees, but do not avoid "." or "..".
_, elem := filepath.Split(path)
dot := strings.HasPrefix(elem, ".") && elem != "." && elem != ".."
if dot || strings.HasPrefix(elem, "_") || elem == "testdata" {
return filepath.SkipDir
}
name := prefix + filepath.ToSlash(path)
if !match(name) {
return nil
}
if _, err = build.ImportDir(path, 0); err != nil {
if _, noGo := err.(*build.NoGoError); !noGo {
log.Print(err)
}
return nil
}
pkgs = append(pkgs, name)
return nil
})
return pkgs
}

View file

@ -1,13 +0,0 @@
// Copyright (c) 2018 The Go Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd.
// +build go1.12
// Require use of the correct import path only for Go 1.12+ users, so
// any breakages coincide with people updating their CI configs or
// whatnot.
package main // import "golang.org/x/lint/golint"

1615
vendor/golang.org/x/lint/lint.go generated vendored

File diff suppressed because it is too large Load diff

27
vendor/golang.org/x/mod/LICENSE generated vendored
View file

@ -1,27 +0,0 @@
Copyright (c) 2009 The Go Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

22
vendor/golang.org/x/mod/PATENTS generated vendored
View file

@ -1,22 +0,0 @@
Additional IP Rights Grant (Patents)
"This implementation" means the copyrightable works distributed by
Google as part of the Go project.
Google hereby grants to You a perpetual, worldwide, non-exclusive,
no-charge, royalty-free, irrevocable (except as stated in this section)
patent license to make, have made, use, offer to sell, sell, import,
transfer and otherwise run, modify and propagate the contents of this
implementation of Go, where such license applies only to those patent
claims, both currently owned or controlled by Google and acquired in
the future, licensable by Google that are necessarily infringed by this
implementation of Go. This grant does not include claims that would be
infringed only as a consequence of further modification of this
implementation. If you or your agent or exclusive licensee institute or
order or agree to the institution of patent litigation against any
entity (including a cross-claim or counterclaim in a lawsuit) alleging
that this implementation of Go or any code incorporated within this
implementation of Go constitutes direct or contributory patent
infringement, or inducement of patent infringement, then any patent
rights granted to you under this License for this implementation of Go
shall terminate as of the date such litigation is filed.

View file

@ -1,822 +0,0 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package module defines the module.Version type along with support code.
//
// The module.Version type is a simple Path, Version pair:
//
// type Version struct {
// Path string
// Version string
// }
//
// There are no restrictions imposed directly by use of this structure,
// but additional checking functions, most notably Check, verify that
// a particular path, version pair is valid.
//
// Escaped Paths
//
// Module paths appear as substrings of file system paths
// (in the download cache) and of web server URLs in the proxy protocol.
// In general we cannot rely on file systems to be case-sensitive,
// nor can we rely on web servers, since they read from file systems.
// That is, we cannot rely on the file system to keep rsc.io/QUOTE
// and rsc.io/quote separate. Windows and macOS don't.
// Instead, we must never require two different casings of a file path.
// Because we want the download cache to match the proxy protocol,
// and because we want the proxy protocol to be possible to serve
// from a tree of static files (which might be stored on a case-insensitive
// file system), the proxy protocol must never require two different casings
// of a URL path either.
//
// One possibility would be to make the escaped form be the lowercase
// hexadecimal encoding of the actual path bytes. This would avoid ever
// needing different casings of a file path, but it would be fairly illegible
// to most programmers when those paths appeared in the file system
// (including in file paths in compiler errors and stack traces)
// in web server logs, and so on. Instead, we want a safe escaped form that
// leaves most paths unaltered.
//
// The safe escaped form is to replace every uppercase letter
// with an exclamation mark followed by the letter's lowercase equivalent.
//
// For example,
//
// github.com/Azure/azure-sdk-for-go -> github.com/!azure/azure-sdk-for-go.
// github.com/GoogleCloudPlatform/cloudsql-proxy -> github.com/!google!cloud!platform/cloudsql-proxy
// github.com/Sirupsen/logrus -> github.com/!sirupsen/logrus.
//
// Import paths that avoid upper-case letters are left unchanged.
// Note that because import paths are ASCII-only and avoid various
// problematic punctuation (like : < and >), the escaped form is also ASCII-only
// and avoids the same problematic punctuation.
//
// Import paths have never allowed exclamation marks, so there is no
// need to define how to escape a literal !.
//
// Unicode Restrictions
//
// Today, paths are disallowed from using Unicode.
//
// Although paths are currently disallowed from using Unicode,
// we would like at some point to allow Unicode letters as well, to assume that
// file systems and URLs are Unicode-safe (storing UTF-8), and apply
// the !-for-uppercase convention for escaping them in the file system.
// But there are at least two subtle considerations.
//
// First, note that not all case-fold equivalent distinct runes
// form an upper/lower pair.
// For example, U+004B ('K'), U+006B ('k'), and U+212A ('' for Kelvin)
// are three distinct runes that case-fold to each other.
// When we do add Unicode letters, we must not assume that upper/lower
// are the only case-equivalent pairs.
// Perhaps the Kelvin symbol would be disallowed entirely, for example.
// Or perhaps it would escape as "!!k", or perhaps as "(212A)".
//
// Second, it would be nice to allow Unicode marks as well as letters,
// but marks include combining marks, and then we must deal not
// only with case folding but also normalization: both U+00E9 ('é')
// and U+0065 U+0301 ('e' followed by combining acute accent)
// look the same on the page and are treated by some file systems
// as the same path. If we do allow Unicode marks in paths, there
// must be some kind of normalization to allow only one canonical
// encoding of any character used in an import path.
package module
// IMPORTANT NOTE
//
// This file essentially defines the set of valid import paths for the go command.
// There are many subtle considerations, including Unicode ambiguity,
// security, network, and file system representations.
//
// This file also defines the set of valid module path and version combinations,
// another topic with many subtle considerations.
//
// Changes to the semantics in this file require approval from rsc.
import (
"fmt"
"path"
"sort"
"strings"
"unicode"
"unicode/utf8"
"golang.org/x/mod/semver"
errors "golang.org/x/xerrors"
)
// A Version (for clients, a module.Version) is defined by a module path and version pair.
// These are stored in their plain (unescaped) form.
type Version struct {
// Path is a module path, like "golang.org/x/text" or "rsc.io/quote/v2".
Path string
// Version is usually a semantic version in canonical form.
// There are three exceptions to this general rule.
// First, the top-level target of a build has no specific version
// and uses Version = "".
// Second, during MVS calculations the version "none" is used
// to represent the decision to take no version of a given module.
// Third, filesystem paths found in "replace" directives are
// represented by a path with an empty version.
Version string `json:",omitempty"`
}
// String returns a representation of the Version suitable for logging
// (Path@Version, or just Path if Version is empty).
func (m Version) String() string {
if m.Version == "" {
return m.Path
}
return m.Path + "@" + m.Version
}
// A ModuleError indicates an error specific to a module.
type ModuleError struct {
Path string
Version string
Err error
}
// VersionError returns a ModuleError derived from a Version and error,
// or err itself if it is already such an error.
func VersionError(v Version, err error) error {
var mErr *ModuleError
if errors.As(err, &mErr) && mErr.Path == v.Path && mErr.Version == v.Version {
return err
}
return &ModuleError{
Path: v.Path,
Version: v.Version,
Err: err,
}
}
func (e *ModuleError) Error() string {
if v, ok := e.Err.(*InvalidVersionError); ok {
return fmt.Sprintf("%s@%s: invalid %s: %v", e.Path, v.Version, v.noun(), v.Err)
}
if e.Version != "" {
return fmt.Sprintf("%s@%s: %v", e.Path, e.Version, e.Err)
}
return fmt.Sprintf("module %s: %v", e.Path, e.Err)
}
func (e *ModuleError) Unwrap() error { return e.Err }
// An InvalidVersionError indicates an error specific to a version, with the
// module path unknown or specified externally.
//
// A ModuleError may wrap an InvalidVersionError, but an InvalidVersionError
// must not wrap a ModuleError.
type InvalidVersionError struct {
Version string
Pseudo bool
Err error
}
// noun returns either "version" or "pseudo-version", depending on whether
// e.Version is a pseudo-version.
func (e *InvalidVersionError) noun() string {
if e.Pseudo {
return "pseudo-version"
}
return "version"
}
func (e *InvalidVersionError) Error() string {
return fmt.Sprintf("%s %q invalid: %s", e.noun(), e.Version, e.Err)
}
func (e *InvalidVersionError) Unwrap() error { return e.Err }
// Check checks that a given module path, version pair is valid.
// In addition to the path being a valid module path
// and the version being a valid semantic version,
// the two must correspond.
// For example, the path "yaml/v2" only corresponds to
// semantic versions beginning with "v2.".
func Check(path, version string) error {
if err := CheckPath(path); err != nil {
return err
}
if !semver.IsValid(version) {
return &ModuleError{
Path: path,
Err: &InvalidVersionError{Version: version, Err: errors.New("not a semantic version")},
}
}
_, pathMajor, _ := SplitPathVersion(path)
if err := CheckPathMajor(version, pathMajor); err != nil {
return &ModuleError{Path: path, Err: err}
}
return nil
}
// firstPathOK reports whether r can appear in the first element of a module path.
// The first element of the path must be an LDH domain name, at least for now.
// To avoid case ambiguity, the domain name must be entirely lower case.
func firstPathOK(r rune) bool {
return r == '-' || r == '.' ||
'0' <= r && r <= '9' ||
'a' <= r && r <= 'z'
}
// modPathOK reports whether r can appear in a module path element.
// Paths can be ASCII letters, ASCII digits, and limited ASCII punctuation: - . _ and ~.
//
// This matches what "go get" has historically recognized in import paths,
// and avoids confusing sequences like '%20' or '+' that would change meaning
// if used in a URL.
//
// TODO(rsc): We would like to allow Unicode letters, but that requires additional
// care in the safe encoding (see "escaped paths" above).
func modPathOK(r rune) bool {
if r < utf8.RuneSelf {
return r == '-' || r == '.' || r == '_' || r == '~' ||
'0' <= r && r <= '9' ||
'A' <= r && r <= 'Z' ||
'a' <= r && r <= 'z'
}
return false
}
// modPathOK reports whether r can appear in a package import path element.
//
// Import paths are intermediate between module paths and file paths: we allow
// disallow characters that would be confusing or ambiguous as arguments to
// 'go get' (such as '@' and ' ' ), but allow certain characters that are
// otherwise-unambiguous on the command line and historically used for some
// binary names (such as '++' as a suffix for compiler binaries and wrappers).
func importPathOK(r rune) bool {
return modPathOK(r) || r == '+'
}
// fileNameOK reports whether r can appear in a file name.
// For now we allow all Unicode letters but otherwise limit to pathOK plus a few more punctuation characters.
// If we expand the set of allowed characters here, we have to
// work harder at detecting potential case-folding and normalization collisions.
// See note about "escaped paths" above.
func fileNameOK(r rune) bool {
if r < utf8.RuneSelf {
// Entire set of ASCII punctuation, from which we remove characters:
// ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~
// We disallow some shell special characters: " ' * < > ? ` |
// (Note that some of those are disallowed by the Windows file system as well.)
// We also disallow path separators / : and \ (fileNameOK is only called on path element characters).
// We allow spaces (U+0020) in file names.
const allowed = "!#$%&()+,-.=@[]^_{}~ "
if '0' <= r && r <= '9' || 'A' <= r && r <= 'Z' || 'a' <= r && r <= 'z' {
return true
}
for i := 0; i < len(allowed); i++ {
if rune(allowed[i]) == r {
return true
}
}
return false
}
// It may be OK to add more ASCII punctuation here, but only carefully.
// For example Windows disallows < > \, and macOS disallows :, so we must not allow those.
return unicode.IsLetter(r)
}
// CheckPath checks that a module path is valid.
// A valid module path is a valid import path, as checked by CheckImportPath,
// with three additional constraints.
// First, the leading path element (up to the first slash, if any),
// by convention a domain name, must contain only lower-case ASCII letters,
// ASCII digits, dots (U+002E), and dashes (U+002D);
// it must contain at least one dot and cannot start with a dash.
// Second, for a final path element of the form /vN, where N looks numeric
// (ASCII digits and dots) must not begin with a leading zero, must not be /v1,
// and must not contain any dots. For paths beginning with "gopkg.in/",
// this second requirement is replaced by a requirement that the path
// follow the gopkg.in server's conventions.
// Third, no path element may begin with a dot.
func CheckPath(path string) error {
if err := checkPath(path, modulePath); err != nil {
return fmt.Errorf("malformed module path %q: %v", path, err)
}
i := strings.Index(path, "/")
if i < 0 {
i = len(path)
}
if i == 0 {
return fmt.Errorf("malformed module path %q: leading slash", path)
}
if !strings.Contains(path[:i], ".") {
return fmt.Errorf("malformed module path %q: missing dot in first path element", path)
}
if path[0] == '-' {
return fmt.Errorf("malformed module path %q: leading dash in first path element", path)
}
for _, r := range path[:i] {
if !firstPathOK(r) {
return fmt.Errorf("malformed module path %q: invalid char %q in first path element", path, r)
}
}
if _, _, ok := SplitPathVersion(path); !ok {
return fmt.Errorf("malformed module path %q: invalid version", path)
}
return nil
}
// CheckImportPath checks that an import path is valid.
//
// A valid import path consists of one or more valid path elements
// separated by slashes (U+002F). (It must not begin with nor end in a slash.)
//
// A valid path element is a non-empty string made up of
// ASCII letters, ASCII digits, and limited ASCII punctuation: - . _ and ~.
// It must not end with a dot (U+002E), nor contain two dots in a row.
//
// The element prefix up to the first dot must not be a reserved file name
// on Windows, regardless of case (CON, com1, NuL, and so on). The element
// must not have a suffix of a tilde followed by one or more ASCII digits
// (to exclude paths elements that look like Windows short-names).
//
// CheckImportPath may be less restrictive in the future, but see the
// top-level package documentation for additional information about
// subtleties of Unicode.
func CheckImportPath(path string) error {
if err := checkPath(path, importPath); err != nil {
return fmt.Errorf("malformed import path %q: %v", path, err)
}
return nil
}
// pathKind indicates what kind of path we're checking. Module paths,
// import paths, and file paths have different restrictions.
type pathKind int
const (
modulePath pathKind = iota
importPath
filePath
)
// checkPath checks that a general path is valid.
// It returns an error describing why but not mentioning path.
// Because these checks apply to both module paths and import paths,
// the caller is expected to add the "malformed ___ path %q: " prefix.
// fileName indicates whether the final element of the path is a file name
// (as opposed to a directory name).
func checkPath(path string, kind pathKind) error {
if !utf8.ValidString(path) {
return fmt.Errorf("invalid UTF-8")
}
if path == "" {
return fmt.Errorf("empty string")
}
if path[0] == '-' {
return fmt.Errorf("leading dash")
}
if strings.Contains(path, "//") {
return fmt.Errorf("double slash")
}
if path[len(path)-1] == '/' {
return fmt.Errorf("trailing slash")
}
elemStart := 0
for i, r := range path {
if r == '/' {
if err := checkElem(path[elemStart:i], kind); err != nil {
return err
}
elemStart = i + 1
}
}
if err := checkElem(path[elemStart:], kind); err != nil {
return err
}
return nil
}
// checkElem checks whether an individual path element is valid.
func checkElem(elem string, kind pathKind) error {
if elem == "" {
return fmt.Errorf("empty path element")
}
if strings.Count(elem, ".") == len(elem) {
return fmt.Errorf("invalid path element %q", elem)
}
if elem[0] == '.' && kind == modulePath {
return fmt.Errorf("leading dot in path element")
}
if elem[len(elem)-1] == '.' {
return fmt.Errorf("trailing dot in path element")
}
for _, r := range elem {
ok := false
switch kind {
case modulePath:
ok = modPathOK(r)
case importPath:
ok = importPathOK(r)
case filePath:
ok = fileNameOK(r)
default:
panic(fmt.Sprintf("internal error: invalid kind %v", kind))
}
if !ok {
return fmt.Errorf("invalid char %q", r)
}
}
// Windows disallows a bunch of path elements, sadly.
// See https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file
short := elem
if i := strings.Index(short, "."); i >= 0 {
short = short[:i]
}
for _, bad := range badWindowsNames {
if strings.EqualFold(bad, short) {
return fmt.Errorf("%q disallowed as path element component on Windows", short)
}
}
if kind == filePath {
// don't check for Windows short-names in file names. They're
// only an issue for import paths.
return nil
}
// Reject path components that look like Windows short-names.
// Those usually end in a tilde followed by one or more ASCII digits.
if tilde := strings.LastIndexByte(short, '~'); tilde >= 0 && tilde < len(short)-1 {
suffix := short[tilde+1:]
suffixIsDigits := true
for _, r := range suffix {
if r < '0' || r > '9' {
suffixIsDigits = false
break
}
}
if suffixIsDigits {
return fmt.Errorf("trailing tilde and digits in path element")
}
}
return nil
}
// CheckFilePath checks that a slash-separated file path is valid.
// The definition of a valid file path is the same as the definition
// of a valid import path except that the set of allowed characters is larger:
// all Unicode letters, ASCII digits, the ASCII space character (U+0020),
// and the ASCII punctuation characters
// “!#$%&()+,-.=@[]^_{}~”.
// (The excluded punctuation characters, " * < > ? ` ' | / \ and :,
// have special meanings in certain shells or operating systems.)
//
// CheckFilePath may be less restrictive in the future, but see the
// top-level package documentation for additional information about
// subtleties of Unicode.
func CheckFilePath(path string) error {
if err := checkPath(path, filePath); err != nil {
return fmt.Errorf("malformed file path %q: %v", path, err)
}
return nil
}
// badWindowsNames are the reserved file path elements on Windows.
// See https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file
var badWindowsNames = []string{
"CON",
"PRN",
"AUX",
"NUL",
"COM1",
"COM2",
"COM3",
"COM4",
"COM5",
"COM6",
"COM7",
"COM8",
"COM9",
"LPT1",
"LPT2",
"LPT3",
"LPT4",
"LPT5",
"LPT6",
"LPT7",
"LPT8",
"LPT9",
}
// SplitPathVersion returns prefix and major version such that prefix+pathMajor == path
// and version is either empty or "/vN" for N >= 2.
// As a special case, gopkg.in paths are recognized directly;
// they require ".vN" instead of "/vN", and for all N, not just N >= 2.
// SplitPathVersion returns with ok = false when presented with
// a path whose last path element does not satisfy the constraints
// applied by CheckPath, such as "example.com/pkg/v1" or "example.com/pkg/v1.2".
func SplitPathVersion(path string) (prefix, pathMajor string, ok bool) {
if strings.HasPrefix(path, "gopkg.in/") {
return splitGopkgIn(path)
}
i := len(path)
dot := false
for i > 0 && ('0' <= path[i-1] && path[i-1] <= '9' || path[i-1] == '.') {
if path[i-1] == '.' {
dot = true
}
i--
}
if i <= 1 || i == len(path) || path[i-1] != 'v' || path[i-2] != '/' {
return path, "", true
}
prefix, pathMajor = path[:i-2], path[i-2:]
if dot || len(pathMajor) <= 2 || pathMajor[2] == '0' || pathMajor == "/v1" {
return path, "", false
}
return prefix, pathMajor, true
}
// splitGopkgIn is like SplitPathVersion but only for gopkg.in paths.
func splitGopkgIn(path string) (prefix, pathMajor string, ok bool) {
if !strings.HasPrefix(path, "gopkg.in/") {
return path, "", false
}
i := len(path)
if strings.HasSuffix(path, "-unstable") {
i -= len("-unstable")
}
for i > 0 && ('0' <= path[i-1] && path[i-1] <= '9') {
i--
}
if i <= 1 || path[i-1] != 'v' || path[i-2] != '.' {
// All gopkg.in paths must end in vN for some N.
return path, "", false
}
prefix, pathMajor = path[:i-2], path[i-2:]
if len(pathMajor) <= 2 || pathMajor[2] == '0' && pathMajor != ".v0" {
return path, "", false
}
return prefix, pathMajor, true
}
// MatchPathMajor reports whether the semantic version v
// matches the path major version pathMajor.
//
// MatchPathMajor returns true if and only if CheckPathMajor returns nil.
func MatchPathMajor(v, pathMajor string) bool {
return CheckPathMajor(v, pathMajor) == nil
}
// CheckPathMajor returns a non-nil error if the semantic version v
// does not match the path major version pathMajor.
func CheckPathMajor(v, pathMajor string) error {
// TODO(jayconrod): return errors or panic for invalid inputs. This function
// (and others) was covered by integration tests for cmd/go, and surrounding
// code protected against invalid inputs like non-canonical versions.
if strings.HasPrefix(pathMajor, ".v") && strings.HasSuffix(pathMajor, "-unstable") {
pathMajor = strings.TrimSuffix(pathMajor, "-unstable")
}
if strings.HasPrefix(v, "v0.0.0-") && pathMajor == ".v1" {
// Allow old bug in pseudo-versions that generated v0.0.0- pseudoversion for gopkg .v1.
// For example, gopkg.in/yaml.v2@v2.2.1's go.mod requires gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405.
return nil
}
m := semver.Major(v)
if pathMajor == "" {
if m == "v0" || m == "v1" || semver.Build(v) == "+incompatible" {
return nil
}
pathMajor = "v0 or v1"
} else if pathMajor[0] == '/' || pathMajor[0] == '.' {
if m == pathMajor[1:] {
return nil
}
pathMajor = pathMajor[1:]
}
return &InvalidVersionError{
Version: v,
Err: fmt.Errorf("should be %s, not %s", pathMajor, semver.Major(v)),
}
}
// PathMajorPrefix returns the major-version tag prefix implied by pathMajor.
// An empty PathMajorPrefix allows either v0 or v1.
//
// Note that MatchPathMajor may accept some versions that do not actually begin
// with this prefix: namely, it accepts a 'v0.0.0-' prefix for a '.v1'
// pathMajor, even though that pathMajor implies 'v1' tagging.
func PathMajorPrefix(pathMajor string) string {
if pathMajor == "" {
return ""
}
if pathMajor[0] != '/' && pathMajor[0] != '.' {
panic("pathMajor suffix " + pathMajor + " passed to PathMajorPrefix lacks separator")
}
if strings.HasPrefix(pathMajor, ".v") && strings.HasSuffix(pathMajor, "-unstable") {
pathMajor = strings.TrimSuffix(pathMajor, "-unstable")
}
m := pathMajor[1:]
if m != semver.Major(m) {
panic("pathMajor suffix " + pathMajor + "passed to PathMajorPrefix is not a valid major version")
}
return m
}
// CanonicalVersion returns the canonical form of the version string v.
// It is the same as semver.Canonical(v) except that it preserves the special build suffix "+incompatible".
func CanonicalVersion(v string) string {
cv := semver.Canonical(v)
if semver.Build(v) == "+incompatible" {
cv += "+incompatible"
}
return cv
}
// Sort sorts the list by Path, breaking ties by comparing Version fields.
// The Version fields are interpreted as semantic versions (using semver.Compare)
// optionally followed by a tie-breaking suffix introduced by a slash character,
// like in "v0.0.1/go.mod".
func Sort(list []Version) {
sort.Slice(list, func(i, j int) bool {
mi := list[i]
mj := list[j]
if mi.Path != mj.Path {
return mi.Path < mj.Path
}
// To help go.sum formatting, allow version/file.
// Compare semver prefix by semver rules,
// file by string order.
vi := mi.Version
vj := mj.Version
var fi, fj string
if k := strings.Index(vi, "/"); k >= 0 {
vi, fi = vi[:k], vi[k:]
}
if k := strings.Index(vj, "/"); k >= 0 {
vj, fj = vj[:k], vj[k:]
}
if vi != vj {
return semver.Compare(vi, vj) < 0
}
return fi < fj
})
}
// EscapePath returns the escaped form of the given module path.
// It fails if the module path is invalid.
func EscapePath(path string) (escaped string, err error) {
if err := CheckPath(path); err != nil {
return "", err
}
return escapeString(path)
}
// EscapeVersion returns the escaped form of the given module version.
// Versions are allowed to be in non-semver form but must be valid file names
// and not contain exclamation marks.
func EscapeVersion(v string) (escaped string, err error) {
if err := checkElem(v, filePath); err != nil || strings.Contains(v, "!") {
return "", &InvalidVersionError{
Version: v,
Err: fmt.Errorf("disallowed version string"),
}
}
return escapeString(v)
}
func escapeString(s string) (escaped string, err error) {
haveUpper := false
for _, r := range s {
if r == '!' || r >= utf8.RuneSelf {
// This should be disallowed by CheckPath, but diagnose anyway.
// The correctness of the escaping loop below depends on it.
return "", fmt.Errorf("internal error: inconsistency in EscapePath")
}
if 'A' <= r && r <= 'Z' {
haveUpper = true
}
}
if !haveUpper {
return s, nil
}
var buf []byte
for _, r := range s {
if 'A' <= r && r <= 'Z' {
buf = append(buf, '!', byte(r+'a'-'A'))
} else {
buf = append(buf, byte(r))
}
}
return string(buf), nil
}
// UnescapePath returns the module path for the given escaped path.
// It fails if the escaped path is invalid or describes an invalid path.
func UnescapePath(escaped string) (path string, err error) {
path, ok := unescapeString(escaped)
if !ok {
return "", fmt.Errorf("invalid escaped module path %q", escaped)
}
if err := CheckPath(path); err != nil {
return "", fmt.Errorf("invalid escaped module path %q: %v", escaped, err)
}
return path, nil
}
// UnescapeVersion returns the version string for the given escaped version.
// It fails if the escaped form is invalid or describes an invalid version.
// Versions are allowed to be in non-semver form but must be valid file names
// and not contain exclamation marks.
func UnescapeVersion(escaped string) (v string, err error) {
v, ok := unescapeString(escaped)
if !ok {
return "", fmt.Errorf("invalid escaped version %q", escaped)
}
if err := checkElem(v, filePath); err != nil {
return "", fmt.Errorf("invalid escaped version %q: %v", v, err)
}
return v, nil
}
func unescapeString(escaped string) (string, bool) {
var buf []byte
bang := false
for _, r := range escaped {
if r >= utf8.RuneSelf {
return "", false
}
if bang {
bang = false
if r < 'a' || 'z' < r {
return "", false
}
buf = append(buf, byte(r+'A'-'a'))
continue
}
if r == '!' {
bang = true
continue
}
if 'A' <= r && r <= 'Z' {
return "", false
}
buf = append(buf, byte(r))
}
if bang {
return "", false
}
return string(buf), true
}
// MatchPrefixPatterns reports whether any path prefix of target matches one of
// the glob patterns (as defined by path.Match) in the comma-separated globs
// list. This implements the algorithm used when matching a module path to the
// GOPRIVATE environment variable, as described by 'go help module-private'.
//
// It ignores any empty or malformed patterns in the list.
func MatchPrefixPatterns(globs, target string) bool {
for globs != "" {
// Extract next non-empty glob in comma-separated list.
var glob string
if i := strings.Index(globs, ","); i >= 0 {
glob, globs = globs[:i], globs[i+1:]
} else {
glob, globs = globs, ""
}
if glob == "" {
continue
}
// A glob with N+1 path elements (N slashes) needs to be matched
// against the first N+1 path elements of target,
// which end just before the N+1'th slash.
n := strings.Count(glob, "/")
prefix := target
// Walk target, counting slashes, truncating at the N+1'th slash.
for i := 0; i < len(target); i++ {
if target[i] == '/' {
if n == 0 {
prefix = target[:i]
break
}
n--
}
}
if n > 0 {
// Not enough prefix elements.
continue
}
matched, _ := path.Match(glob, prefix)
if matched {
return true
}
}
return false
}

View file

@ -1,391 +0,0 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package semver implements comparison of semantic version strings.
// In this package, semantic version strings must begin with a leading "v",
// as in "v1.0.0".
//
// The general form of a semantic version string accepted by this package is
//
// vMAJOR[.MINOR[.PATCH[-PRERELEASE][+BUILD]]]
//
// where square brackets indicate optional parts of the syntax;
// MAJOR, MINOR, and PATCH are decimal integers without extra leading zeros;
// PRERELEASE and BUILD are each a series of non-empty dot-separated identifiers
// using only alphanumeric characters and hyphens; and
// all-numeric PRERELEASE identifiers must not have leading zeros.
//
// This package follows Semantic Versioning 2.0.0 (see semver.org)
// with two exceptions. First, it requires the "v" prefix. Second, it recognizes
// vMAJOR and vMAJOR.MINOR (with no prerelease or build suffixes)
// as shorthands for vMAJOR.0.0 and vMAJOR.MINOR.0.
package semver
// parsed returns the parsed form of a semantic version string.
type parsed struct {
major string
minor string
patch string
short string
prerelease string
build string
err string
}
// IsValid reports whether v is a valid semantic version string.
func IsValid(v string) bool {
_, ok := parse(v)
return ok
}
// Canonical returns the canonical formatting of the semantic version v.
// It fills in any missing .MINOR or .PATCH and discards build metadata.
// Two semantic versions compare equal only if their canonical formattings
// are identical strings.
// The canonical invalid semantic version is the empty string.
func Canonical(v string) string {
p, ok := parse(v)
if !ok {
return ""
}
if p.build != "" {
return v[:len(v)-len(p.build)]
}
if p.short != "" {
return v + p.short
}
return v
}
// Major returns the major version prefix of the semantic version v.
// For example, Major("v2.1.0") == "v2".
// If v is an invalid semantic version string, Major returns the empty string.
func Major(v string) string {
pv, ok := parse(v)
if !ok {
return ""
}
return v[:1+len(pv.major)]
}
// MajorMinor returns the major.minor version prefix of the semantic version v.
// For example, MajorMinor("v2.1.0") == "v2.1".
// If v is an invalid semantic version string, MajorMinor returns the empty string.
func MajorMinor(v string) string {
pv, ok := parse(v)
if !ok {
return ""
}
i := 1 + len(pv.major)
if j := i + 1 + len(pv.minor); j <= len(v) && v[i] == '.' && v[i+1:j] == pv.minor {
return v[:j]
}
return v[:i] + "." + pv.minor
}
// Prerelease returns the prerelease suffix of the semantic version v.
// For example, Prerelease("v2.1.0-pre+meta") == "-pre".
// If v is an invalid semantic version string, Prerelease returns the empty string.
func Prerelease(v string) string {
pv, ok := parse(v)
if !ok {
return ""
}
return pv.prerelease
}
// Build returns the build suffix of the semantic version v.
// For example, Build("v2.1.0+meta") == "+meta".
// If v is an invalid semantic version string, Build returns the empty string.
func Build(v string) string {
pv, ok := parse(v)
if !ok {
return ""
}
return pv.build
}
// Compare returns an integer comparing two versions according to
// semantic version precedence.
// The result will be 0 if v == w, -1 if v < w, or +1 if v > w.
//
// An invalid semantic version string is considered less than a valid one.
// All invalid semantic version strings compare equal to each other.
func Compare(v, w string) int {
pv, ok1 := parse(v)
pw, ok2 := parse(w)
if !ok1 && !ok2 {
return 0
}
if !ok1 {
return -1
}
if !ok2 {
return +1
}
if c := compareInt(pv.major, pw.major); c != 0 {
return c
}
if c := compareInt(pv.minor, pw.minor); c != 0 {
return c
}
if c := compareInt(pv.patch, pw.patch); c != 0 {
return c
}
return comparePrerelease(pv.prerelease, pw.prerelease)
}
// Max canonicalizes its arguments and then returns the version string
// that compares greater.
//
// Deprecated: use Compare instead. In most cases, returning a canonicalized
// version is not expected or desired.
func Max(v, w string) string {
v = Canonical(v)
w = Canonical(w)
if Compare(v, w) > 0 {
return v
}
return w
}
func parse(v string) (p parsed, ok bool) {
if v == "" || v[0] != 'v' {
p.err = "missing v prefix"
return
}
p.major, v, ok = parseInt(v[1:])
if !ok {
p.err = "bad major version"
return
}
if v == "" {
p.minor = "0"
p.patch = "0"
p.short = ".0.0"
return
}
if v[0] != '.' {
p.err = "bad minor prefix"
ok = false
return
}
p.minor, v, ok = parseInt(v[1:])
if !ok {
p.err = "bad minor version"
return
}
if v == "" {
p.patch = "0"
p.short = ".0"
return
}
if v[0] != '.' {
p.err = "bad patch prefix"
ok = false
return
}
p.patch, v, ok = parseInt(v[1:])
if !ok {
p.err = "bad patch version"
return
}
if len(v) > 0 && v[0] == '-' {
p.prerelease, v, ok = parsePrerelease(v)
if !ok {
p.err = "bad prerelease"
return
}
}
if len(v) > 0 && v[0] == '+' {
p.build, v, ok = parseBuild(v)
if !ok {
p.err = "bad build"
return
}
}
if v != "" {
p.err = "junk on end"
ok = false
return
}
ok = true
return
}
func parseInt(v string) (t, rest string, ok bool) {
if v == "" {
return
}
if v[0] < '0' || '9' < v[0] {
return
}
i := 1
for i < len(v) && '0' <= v[i] && v[i] <= '9' {
i++
}
if v[0] == '0' && i != 1 {
return
}
return v[:i], v[i:], true
}
func parsePrerelease(v string) (t, rest string, ok bool) {
// "A pre-release version MAY be denoted by appending a hyphen and
// a series of dot separated identifiers immediately following the patch version.
// Identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-].
// Identifiers MUST NOT be empty. Numeric identifiers MUST NOT include leading zeroes."
if v == "" || v[0] != '-' {
return
}
i := 1
start := 1
for i < len(v) && v[i] != '+' {
if !isIdentChar(v[i]) && v[i] != '.' {
return
}
if v[i] == '.' {
if start == i || isBadNum(v[start:i]) {
return
}
start = i + 1
}
i++
}
if start == i || isBadNum(v[start:i]) {
return
}
return v[:i], v[i:], true
}
func parseBuild(v string) (t, rest string, ok bool) {
if v == "" || v[0] != '+' {
return
}
i := 1
start := 1
for i < len(v) {
if !isIdentChar(v[i]) && v[i] != '.' {
return
}
if v[i] == '.' {
if start == i {
return
}
start = i + 1
}
i++
}
if start == i {
return
}
return v[:i], v[i:], true
}
func isIdentChar(c byte) bool {
return 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z' || '0' <= c && c <= '9' || c == '-'
}
func isBadNum(v string) bool {
i := 0
for i < len(v) && '0' <= v[i] && v[i] <= '9' {
i++
}
return i == len(v) && i > 1 && v[0] == '0'
}
func isNum(v string) bool {
i := 0
for i < len(v) && '0' <= v[i] && v[i] <= '9' {
i++
}
return i == len(v)
}
func compareInt(x, y string) int {
if x == y {
return 0
}
if len(x) < len(y) {
return -1
}
if len(x) > len(y) {
return +1
}
if x < y {
return -1
} else {
return +1
}
}
func comparePrerelease(x, y string) int {
// "When major, minor, and patch are equal, a pre-release version has
// lower precedence than a normal version.
// Example: 1.0.0-alpha < 1.0.0.
// Precedence for two pre-release versions with the same major, minor,
// and patch version MUST be determined by comparing each dot separated
// identifier from left to right until a difference is found as follows:
// identifiers consisting of only digits are compared numerically and
// identifiers with letters or hyphens are compared lexically in ASCII
// sort order. Numeric identifiers always have lower precedence than
// non-numeric identifiers. A larger set of pre-release fields has a
// higher precedence than a smaller set, if all of the preceding
// identifiers are equal.
// Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta <
// 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0."
if x == y {
return 0
}
if x == "" {
return +1
}
if y == "" {
return -1
}
for x != "" && y != "" {
x = x[1:] // skip - or .
y = y[1:] // skip - or .
var dx, dy string
dx, x = nextIdent(x)
dy, y = nextIdent(y)
if dx != dy {
ix := isNum(dx)
iy := isNum(dy)
if ix != iy {
if ix {
return -1
} else {
return +1
}
}
if ix {
if len(dx) < len(dy) {
return -1
}
if len(dx) > len(dy) {
return +1
}
}
if dx < dy {
return -1
} else {
return +1
}
}
}
if x == "" {
return -1
} else {
return +1
}
}
func nextIdent(x string) (dx, rest string) {
i := 0
for i < len(x) && x[i] != '.' {
i++
}
return x[:i], x[i:]
}

20
vendor/golang.org/x/net/http2/README generated vendored
View file

@ -1,20 +0,0 @@
This is a work-in-progress HTTP/2 implementation for Go.
It will eventually live in the Go standard library and won't require
any changes to your code to use. It will just be automatic.
Status:
* The server support is pretty good. A few things are missing
but are being worked on.
* The client work has just started but shares a lot of code
is coming along much quicker.
Docs are at https://godoc.org/golang.org/x/net/http2
Demo test server at https://http2.golang.org/
Help & bug reports welcome!
Contributing: https://golang.org/doc/contribute.html
Bugs: https://golang.org/issue/new?title=x/net/http2:+

View file

@ -856,6 +856,15 @@ func (sc *serverConn) serve() {
case res := <-sc.wroteFrameCh: case res := <-sc.wroteFrameCh:
sc.wroteFrame(res) sc.wroteFrame(res)
case res := <-sc.readFrameCh: case res := <-sc.readFrameCh:
// Process any written frames before reading new frames from the client since a
// written frame could have triggered a new stream to be started.
if sc.writingFrameAsync {
select {
case wroteRes := <-sc.wroteFrameCh:
sc.wroteFrame(wroteRes)
default:
}
}
if !sc.processFrameFromReader(res) { if !sc.processFrameFromReader(res) {
return return
} }

View file

@ -177,7 +177,7 @@ func (f *credentialsFile) tokenSource(ctx context.Context, params CredentialsPar
QuotaProjectID: f.QuotaProjectID, QuotaProjectID: f.QuotaProjectID,
Scopes: params.Scopes, Scopes: params.Scopes,
} }
return cfg.TokenSource(ctx), nil return cfg.TokenSource(ctx)
case "": case "":
return nil, errors.New("missing 'type' field in credentials") return nil, errors.New("missing 'type' field in credentials")
default: default:

View file

@ -7,10 +7,14 @@ package externalaccount
import ( import (
"context" "context"
"fmt" "fmt"
"golang.org/x/oauth2"
"net/http" "net/http"
"net/url"
"regexp"
"strconv" "strconv"
"strings"
"time" "time"
"golang.org/x/oauth2"
) )
// now aliases time.Now for testing // now aliases time.Now for testing
@ -22,43 +26,101 @@ var now = func() time.Time {
type Config struct { type Config struct {
// Audience is the Secure Token Service (STS) audience which contains the resource name for the workload // Audience is the Secure Token Service (STS) audience which contains the resource name for the workload
// identity pool or the workforce pool and the provider identifier in that pool. // identity pool or the workforce pool and the provider identifier in that pool.
Audience string Audience string
// SubjectTokenType is the STS token type based on the Oauth2.0 token exchange spec // SubjectTokenType is the STS token type based on the Oauth2.0 token exchange spec
// e.g. `urn:ietf:params:oauth:token-type:jwt`. // e.g. `urn:ietf:params:oauth:token-type:jwt`.
SubjectTokenType string SubjectTokenType string
// TokenURL is the STS token exchange endpoint. // TokenURL is the STS token exchange endpoint.
TokenURL string TokenURL string
// TokenInfoURL is the token_info endpoint used to retrieve the account related information ( // TokenInfoURL is the token_info endpoint used to retrieve the account related information (
// user attributes like account identifier, eg. email, username, uid, etc). This is // user attributes like account identifier, eg. email, username, uid, etc). This is
// needed for gCloud session account identification. // needed for gCloud session account identification.
TokenInfoURL string TokenInfoURL string
// ServiceAccountImpersonationURL is the URL for the service account impersonation request. This is only // ServiceAccountImpersonationURL is the URL for the service account impersonation request. This is only
// required for workload identity pools when APIs to be accessed have not integrated with UberMint. // required for workload identity pools when APIs to be accessed have not integrated with UberMint.
ServiceAccountImpersonationURL string ServiceAccountImpersonationURL string
// ClientSecret is currently only required if token_info endpoint also // ClientSecret is currently only required if token_info endpoint also
// needs to be called with the generated GCP access token. When provided, STS will be // needs to be called with the generated GCP access token. When provided, STS will be
// called with additional basic authentication using client_id as username and client_secret as password. // called with additional basic authentication using client_id as username and client_secret as password.
ClientSecret string ClientSecret string
// ClientID is only required in conjunction with ClientSecret, as described above. // ClientID is only required in conjunction with ClientSecret, as described above.
ClientID string ClientID string
// CredentialSource contains the necessary information to retrieve the token itself, as well // CredentialSource contains the necessary information to retrieve the token itself, as well
// as some environmental information. // as some environmental information.
CredentialSource CredentialSource CredentialSource CredentialSource
// QuotaProjectID is injected by gCloud. If the value is non-empty, the Auth libraries // QuotaProjectID is injected by gCloud. If the value is non-empty, the Auth libraries
// will set the x-goog-user-project which overrides the project associated with the credentials. // will set the x-goog-user-project which overrides the project associated with the credentials.
QuotaProjectID string QuotaProjectID string
// Scopes contains the desired scopes for the returned access token. // Scopes contains the desired scopes for the returned access token.
Scopes []string Scopes []string
}
// Each element consists of a list of patterns. validateURLs checks for matches
// that include all elements in a given list, in that order.
var (
validTokenURLPatterns = []*regexp.Regexp{
// The complicated part in the middle matches any number of characters that
// aren't period, spaces, or slashes.
regexp.MustCompile(`(?i)^[^\.\s\/\\]+\.sts\.googleapis\.com$`),
regexp.MustCompile(`(?i)^sts\.googleapis\.com$`),
regexp.MustCompile(`(?i)^sts\.[^\.\s\/\\]+\.googleapis\.com$`),
regexp.MustCompile(`(?i)^[^\.\s\/\\]+-sts\.googleapis\.com$`),
}
validImpersonateURLPatterns = []*regexp.Regexp{
regexp.MustCompile(`^[^\.\s\/\\]+\.iamcredentials\.googleapis\.com$`),
regexp.MustCompile(`^iamcredentials\.googleapis\.com$`),
regexp.MustCompile(`^iamcredentials\.[^\.\s\/\\]+\.googleapis\.com$`),
regexp.MustCompile(`^[^\.\s\/\\]+-iamcredentials\.googleapis\.com$`),
}
)
func validateURL(input string, patterns []*regexp.Regexp, scheme string) bool {
parsed, err := url.Parse(input)
if err != nil {
return false
}
if !strings.EqualFold(parsed.Scheme, scheme) {
return false
}
toTest := parsed.Host
for _, pattern := range patterns {
if valid := pattern.MatchString(toTest); valid {
return true
}
}
return false
} }
// TokenSource Returns an external account TokenSource struct. This is to be called by package google to construct a google.Credentials. // TokenSource Returns an external account TokenSource struct. This is to be called by package google to construct a google.Credentials.
func (c *Config) TokenSource(ctx context.Context) oauth2.TokenSource { func (c *Config) TokenSource(ctx context.Context) (oauth2.TokenSource, error) {
return c.tokenSource(ctx, validTokenURLPatterns, validImpersonateURLPatterns, "https")
}
// tokenSource is a private function that's directly called by some of the tests,
// because the unit test URLs are mocked, and would otherwise fail the
// validity check.
func (c *Config) tokenSource(ctx context.Context, tokenURLValidPats []*regexp.Regexp, impersonateURLValidPats []*regexp.Regexp, scheme string) (oauth2.TokenSource, error) {
valid := validateURL(c.TokenURL, tokenURLValidPats, scheme)
if !valid {
return nil, fmt.Errorf("oauth2/google: invalid TokenURL provided while constructing tokenSource")
}
if c.ServiceAccountImpersonationURL != "" {
valid := validateURL(c.ServiceAccountImpersonationURL, impersonateURLValidPats, scheme)
if !valid {
return nil, fmt.Errorf("oauth2/google: invalid ServiceAccountImpersonationURL provided while constructing tokenSource")
}
}
ts := tokenSource{ ts := tokenSource{
ctx: ctx, ctx: ctx,
conf: c, conf: c,
} }
if c.ServiceAccountImpersonationURL == "" { if c.ServiceAccountImpersonationURL == "" {
return oauth2.ReuseTokenSource(nil, ts) return oauth2.ReuseTokenSource(nil, ts), nil
} }
scopes := c.Scopes scopes := c.Scopes
ts.conf.Scopes = []string{"https://www.googleapis.com/auth/cloud-platform"} ts.conf.Scopes = []string{"https://www.googleapis.com/auth/cloud-platform"}
@ -68,7 +130,7 @@ func (c *Config) TokenSource(ctx context.Context) oauth2.TokenSource {
scopes: scopes, scopes: scopes,
ts: oauth2.ReuseTokenSource(nil, ts), ts: oauth2.ReuseTokenSource(nil, ts),
} }
return oauth2.ReuseTokenSource(nil, imp) return oauth2.ReuseTokenSource(nil, imp), nil
} }
// Subject token file types. // Subject token file types.
@ -78,9 +140,9 @@ const (
) )
type format struct { type format struct {
// Type is either "text" or "json". When not provided "text" type is assumed. // Type is either "text" or "json". When not provided "text" type is assumed.
Type string `json:"type"` Type string `json:"type"`
// SubjectTokenFieldName is only required for JSON format. This would be "access_token" for azure. // SubjectTokenFieldName is only required for JSON format. This would be "access_token" for azure.
SubjectTokenFieldName string `json:"subject_token_field_name"` SubjectTokenFieldName string `json:"subject_token_field_name"`
} }
@ -128,7 +190,7 @@ type baseCredentialSource interface {
subjectToken() (string, error) subjectToken() (string, error)
} }
// tokenSource is the source that handles external credentials. It is used to retrieve Tokens. // tokenSource is the source that handles external credentials. It is used to retrieve Tokens.
type tokenSource struct { type tokenSource struct {
ctx context.Context ctx context.Context
conf *Config conf *Config

View file

@ -6,9 +6,10 @@ package externalaccount
import ( import (
"encoding/base64" "encoding/base64"
"golang.org/x/oauth2"
"net/http" "net/http"
"net/url" "net/url"
"golang.org/x/oauth2"
) )
// clientAuthentication represents an OAuth client ID and secret and the mechanism for passing these credentials as stated in rfc6749#2.3.1. // clientAuthentication represents an OAuth client ID and secret and the mechanism for passing these credentials as stated in rfc6749#2.3.1.

View file

@ -9,11 +9,12 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"golang.org/x/oauth2"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"time" "time"
"golang.org/x/oauth2"
) )
// generateAccesstokenReq is used for service account impersonation // generateAccesstokenReq is used for service account impersonation

View file

@ -65,6 +65,9 @@ func exchangeToken(ctx context.Context, endpoint string, request *stsTokenExchan
defer resp.Body.Close() defer resp.Body.Close()
body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20)) body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20))
if err != nil {
return nil, err
}
if c := resp.StatusCode; c < 200 || c > 299 { if c := resp.StatusCode; c < 200 || c > 299 {
return nil, fmt.Errorf("oauth2/google: status code %d: %s", c, body) return nil, fmt.Errorf("oauth2/google: status code %d: %s", c, body)
} }

View file

@ -9,10 +9,11 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"golang.org/x/oauth2"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"golang.org/x/oauth2"
) )
type urlCredentialSource struct { type urlCredentialSource struct {

View file

@ -1,102 +0,0 @@
// Copyright 2020 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 execabs is a drop-in replacement for os/exec
// that requires PATH lookups to find absolute paths.
// That is, execabs.Command("cmd") runs the same PATH lookup
// as exec.Command("cmd"), but if the result is a path
// which is relative, the Run and Start methods will report
// an error instead of running the executable.
//
// See https://blog.golang.org/path-security for more information
// about when it may be necessary or appropriate to use this package.
package execabs
import (
"context"
"fmt"
"os/exec"
"path/filepath"
"reflect"
"unsafe"
)
// ErrNotFound is the error resulting if a path search failed to find an executable file.
// It is an alias for exec.ErrNotFound.
var ErrNotFound = exec.ErrNotFound
// Cmd represents an external command being prepared or run.
// It is an alias for exec.Cmd.
type Cmd = exec.Cmd
// Error is returned by LookPath when it fails to classify a file as an executable.
// It is an alias for exec.Error.
type Error = exec.Error
// An ExitError reports an unsuccessful exit by a command.
// It is an alias for exec.ExitError.
type ExitError = exec.ExitError
func relError(file, path string) error {
return fmt.Errorf("%s resolves to executable in current directory (.%c%s)", file, filepath.Separator, path)
}
// LookPath searches for an executable named file in the directories
// named by the PATH environment variable. If file contains a slash,
// it is tried directly and the PATH is not consulted. The result will be
// an absolute path.
//
// LookPath differs from exec.LookPath in its handling of PATH lookups,
// which are used for file names without slashes. If exec.LookPath's
// PATH lookup would have returned an executable from the current directory,
// LookPath instead returns an error.
func LookPath(file string) (string, error) {
path, err := exec.LookPath(file)
if err != nil {
return "", err
}
if filepath.Base(file) == file && !filepath.IsAbs(path) {
return "", relError(file, path)
}
return path, nil
}
func fixCmd(name string, cmd *exec.Cmd) {
if filepath.Base(name) == name && !filepath.IsAbs(cmd.Path) {
// exec.Command was called with a bare binary name and
// exec.LookPath returned a path which is not absolute.
// Set cmd.lookPathErr and clear cmd.Path so that it
// cannot be run.
lookPathErr := (*error)(unsafe.Pointer(reflect.ValueOf(cmd).Elem().FieldByName("lookPathErr").Addr().Pointer()))
if *lookPathErr == nil {
*lookPathErr = relError(name, cmd.Path)
}
cmd.Path = ""
}
}
// CommandContext is like Command but includes a context.
//
// The provided context is used to kill the process (by calling os.Process.Kill)
// if the context becomes done before the command completes on its own.
func CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd {
cmd := exec.CommandContext(ctx, name, arg...)
fixCmd(name, cmd)
return cmd
}
// Command returns the Cmd struct to execute the named program with the given arguments.
// See exec.Command for most details.
//
// Command differs from exec.Command in its handling of PATH lookups,
// which are used when the program name contains no slashes.
// If exec.Command would have returned an exec.Cmd configured to run an
// executable from the current directory, Command instead
// returns an exec.Cmd that will return an error from Start or Run.
func Command(name string, arg ...string) *exec.Cmd {
cmd := exec.Command(name, arg...)
fixCmd(name, cmd)
return cmd
}

View file

@ -7,15 +7,29 @@
package unix package unix
import "unsafe" import (
"bytes"
"unsafe"
)
// Helpers for dealing with ifreq since it contains a union and thus requires a // Helpers for dealing with ifreq since it contains a union and thus requires a
// lot of unsafe.Pointer casts to use properly. // lot of unsafe.Pointer casts to use properly.
// newIfreq creates an ifreq with the input network interface name after // An Ifreq is a type-safe wrapper around the raw ifreq struct. An Ifreq
// contains an interface name and a union of arbitrary data which can be
// accessed using the Ifreq's methods. To create an Ifreq, use the NewIfreq
// function.
//
// Use the Name method to access the stored interface name. The union data
// fields can be get and set using the following methods:
// - Uint16/SetUint16: flags
// - Uint32/SetUint32: ifindex, metric, mtu
type Ifreq struct{ raw ifreq }
// NewIfreq creates an Ifreq with the input network interface name after
// validating the name does not exceed IFNAMSIZ-1 (trailing NULL required) // validating the name does not exceed IFNAMSIZ-1 (trailing NULL required)
// bytes. // bytes.
func newIfreq(name string) (*ifreq, error) { func NewIfreq(name string) (*Ifreq, error) {
// Leave room for terminating NULL byte. // Leave room for terminating NULL byte.
if len(name) >= IFNAMSIZ { if len(name) >= IFNAMSIZ {
return nil, EINVAL return nil, EINVAL
@ -24,25 +38,112 @@ func newIfreq(name string) (*ifreq, error) {
var ifr ifreq var ifr ifreq
copy(ifr.Ifrn[:], name) copy(ifr.Ifrn[:], name)
return &ifr, nil return &Ifreq{raw: ifr}, nil
} }
// An ifreqData is an ifreq but with a typed unsafe.Pointer field for data in // TODO(mdlayher): get/set methods for hardware address sockaddr, char array, etc.
// the union. This is required in order to comply with the unsafe.Pointer rules
// since the "pointer-ness" of data would not be preserved if it were cast into // Name returns the interface name associated with the Ifreq.
// the byte array of a raw ifreq. func (ifr *Ifreq) Name() string {
// BytePtrToString requires a NULL terminator or the program may crash. If
// one is not present, just return the empty string.
if !bytes.Contains(ifr.raw.Ifrn[:], []byte{0x00}) {
return ""
}
return BytePtrToString(&ifr.raw.Ifrn[0])
}
// According to netdevice(7), only AF_INET addresses are returned for numerous
// sockaddr ioctls. For convenience, we expose these as Inet4Addr since the Port
// field and other data is always empty.
// Inet4Addr returns the Ifreq union data from an embedded sockaddr as a C
// in_addr/Go []byte (4-byte IPv4 address) value. If the sockaddr family is not
// AF_INET, an error is returned.
func (ifr *Ifreq) Inet4Addr() ([]byte, error) {
raw := *(*RawSockaddrInet4)(unsafe.Pointer(&ifr.raw.Ifru[:SizeofSockaddrInet4][0]))
if raw.Family != AF_INET {
// Cannot safely interpret raw.Addr bytes as an IPv4 address.
return nil, EINVAL
}
return raw.Addr[:], nil
}
// SetInet4Addr sets a C in_addr/Go []byte (4-byte IPv4 address) value in an
// embedded sockaddr within the Ifreq's union data. v must be 4 bytes in length
// or an error will be returned.
func (ifr *Ifreq) SetInet4Addr(v []byte) error {
if len(v) != 4 {
return EINVAL
}
var addr [4]byte
copy(addr[:], v)
ifr.clear()
*(*RawSockaddrInet4)(
unsafe.Pointer(&ifr.raw.Ifru[:SizeofSockaddrInet4][0]),
) = RawSockaddrInet4{
// Always set IP family as ioctls would require it anyway.
Family: AF_INET,
Addr: addr,
}
return nil
}
// Uint16 returns the Ifreq union data as a C short/Go uint16 value.
func (ifr *Ifreq) Uint16() uint16 {
return *(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0]))
}
// SetUint16 sets a C short/Go uint16 value as the Ifreq's union data.
func (ifr *Ifreq) SetUint16(v uint16) {
ifr.clear()
*(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0])) = v
}
// Uint32 returns the Ifreq union data as a C int/Go uint32 value.
func (ifr *Ifreq) Uint32() uint32 {
return *(*uint32)(unsafe.Pointer(&ifr.raw.Ifru[:4][0]))
}
// SetUint32 sets a C int/Go uint32 value as the Ifreq's union data.
func (ifr *Ifreq) SetUint32(v uint32) {
ifr.clear()
*(*uint32)(unsafe.Pointer(&ifr.raw.Ifru[:4][0])) = v
}
// clear zeroes the ifreq's union field to prevent trailing garbage data from
// being sent to the kernel if an ifreq is reused.
func (ifr *Ifreq) clear() {
for i := range ifr.raw.Ifru {
ifr.raw.Ifru[i] = 0
}
}
// TODO(mdlayher): export as IfreqData? For now we can provide helpers such as
// IoctlGetEthtoolDrvinfo which use these APIs under the hood.
// An ifreqData is an Ifreq which carries pointer data. To produce an ifreqData,
// use the Ifreq.withData method.
type ifreqData struct { type ifreqData struct {
name [IFNAMSIZ]byte name [IFNAMSIZ]byte
// A type separate from ifreq is required in order to comply with the
// unsafe.Pointer rules since the "pointer-ness" of data would not be
// preserved if it were cast into the byte array of a raw ifreq.
data unsafe.Pointer data unsafe.Pointer
// Pad to the same size as ifreq. // Pad to the same size as ifreq.
_ [len(ifreq{}.Ifru) - SizeofPtr]byte _ [len(ifreq{}.Ifru) - SizeofPtr]byte
} }
// SetData produces an ifreqData with the pointer p set for ioctls which require // withData produces an ifreqData with the pointer p set for ioctls which require
// arbitrary pointer data. // arbitrary pointer data.
func (ifr ifreq) SetData(p unsafe.Pointer) ifreqData { func (ifr Ifreq) withData(p unsafe.Pointer) ifreqData {
return ifreqData{ return ifreqData{
name: ifr.Ifrn, name: ifr.raw.Ifrn,
data: p, data: p,
} }
} }

View file

@ -48,15 +48,15 @@ func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error {
// IoctlGetEthtoolDrvinfo fetches ethtool driver information for the network // IoctlGetEthtoolDrvinfo fetches ethtool driver information for the network
// device specified by ifname. // device specified by ifname.
func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) { func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) {
ifr, err := newIfreq(ifname) ifr, err := NewIfreq(ifname)
if err != nil { if err != nil {
return nil, err return nil, err
} }
value := EthtoolDrvinfo{Cmd: ETHTOOL_GDRVINFO} value := EthtoolDrvinfo{Cmd: ETHTOOL_GDRVINFO}
ifrd := ifr.SetData(unsafe.Pointer(&value)) ifrd := ifr.withData(unsafe.Pointer(&value))
err = ioctlPtr(fd, SIOCETHTOOL, unsafe.Pointer(&ifrd)) err = ioctlIfreqData(fd, SIOCETHTOOL, &ifrd)
return &value, err return &value, err
} }
@ -176,3 +176,21 @@ func IoctlHIDGetRawUniq(fd int) (string, error) {
err := ioctlPtr(fd, _HIDIOCGRAWUNIQ, unsafe.Pointer(&value[0])) err := ioctlPtr(fd, _HIDIOCGRAWUNIQ, unsafe.Pointer(&value[0]))
return ByteSliceToString(value[:]), err return ByteSliceToString(value[:]), err
} }
// IoctlIfreq performs an ioctl using an Ifreq structure for input and/or
// output. See the netdevice(7) man page for details.
func IoctlIfreq(fd int, req uint, value *Ifreq) error {
// It is possible we will add more fields to *Ifreq itself later to prevent
// misuse, so pass the raw *ifreq directly.
return ioctlPtr(fd, req, unsafe.Pointer(&value.raw))
}
// TODO(mdlayher): export if and when IfreqData is exported.
// ioctlIfreqData performs an ioctl using an ifreqData structure for input
// and/or output. See the netdevice(7) man page for details.
func ioctlIfreqData(fd int, req uint, value *ifreqData) error {
// The memory layout of IfreqData (type-safe) and ifreq (not type-safe) are
// identical so pass *IfreqData directly.
return ioctlPtr(fd, req, unsafe.Pointer(value))
}

View file

@ -217,8 +217,6 @@ struct ltchars {
#include <linux/genetlink.h> #include <linux/genetlink.h>
#include <linux/hdreg.h> #include <linux/hdreg.h>
#include <linux/hidraw.h> #include <linux/hidraw.h>
#include <linux/icmp.h>
#include <linux/icmpv6.h>
#include <linux/if.h> #include <linux/if.h>
#include <linux/if_addr.h> #include <linux/if_addr.h>
#include <linux/if_alg.h> #include <linux/if_alg.h>
@ -502,7 +500,7 @@ ccflags="$@"
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ || $2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
$2 ~ /^LO_(KEY|NAME)_SIZE$/ || $2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ || $2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL)_/ || $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL|TCPOPT)_/ ||
$2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ || $2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ ||
$2 ~ /^NFC_.*_(MAX)?SIZE$/ || $2 ~ /^NFC_.*_(MAX)?SIZE$/ ||
$2 ~ /^RAW_PAYLOAD_/ || $2 ~ /^RAW_PAYLOAD_/ ||

View file

@ -1355,6 +1355,13 @@ func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error {
return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp)) return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
} }
func SetsockoptTCPRepairOpt(fd, level, opt int, o []TCPRepairOpt) (err error) {
if len(o) == 0 {
return EINVAL
}
return setsockopt(fd, level, opt, unsafe.Pointer(&o[0]), uintptr(SizeofTCPRepairOpt*len(o)))
}
// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html) // Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html)
// KeyctlInt calls keyctl commands in which each argument is an int. // KeyctlInt calls keyctl commands in which each argument is an int.
@ -1866,7 +1873,7 @@ func Getpgrp() (pid int) {
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) //sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) //sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT //sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
//sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64 //sysnb Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) //sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6 //sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6
//sys read(fd int, p []byte) (n int, err error) //sys read(fd int, p []byte) (n int, err error)

View file

@ -105,7 +105,7 @@ const rlimInf32 = ^uint32(0)
const rlimInf64 = ^uint64(0) const rlimInf64 = ^uint64(0)
func Getrlimit(resource int, rlim *Rlimit) (err error) { func Getrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, nil, rlim) err = Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -133,7 +133,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT //sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
func Setrlimit(resource int, rlim *Rlimit) (err error) { func Setrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, rlim, nil) err = Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }

View file

@ -184,7 +184,7 @@ const rlimInf32 = ^uint32(0)
const rlimInf64 = ^uint64(0) const rlimInf64 = ^uint64(0)
func Getrlimit(resource int, rlim *Rlimit) (err error) { func Getrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, nil, rlim) err = Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -212,7 +212,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT //sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
func Setrlimit(resource int, rlim *Rlimit) (err error) { func Setrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, rlim, nil) err = Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }

View file

@ -171,7 +171,7 @@ func Pipe2(p []int, flags int) (err error) {
// Getrlimit prefers the prlimit64 system call. See issue 38604. // Getrlimit prefers the prlimit64 system call. See issue 38604.
func Getrlimit(resource int, rlim *Rlimit) error { func Getrlimit(resource int, rlim *Rlimit) error {
err := prlimit(0, resource, nil, rlim) err := Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -180,7 +180,7 @@ func Getrlimit(resource int, rlim *Rlimit) error {
// Setrlimit prefers the prlimit64 system call. See issue 38604. // Setrlimit prefers the prlimit64 system call. See issue 38604.
func Setrlimit(resource int, rlim *Rlimit) error { func Setrlimit(resource int, rlim *Rlimit) error {
err := prlimit(0, resource, rlim, nil) err := Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }

View file

@ -157,7 +157,7 @@ type rlimit32 struct {
//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT //sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT
func Getrlimit(resource int, rlim *Rlimit) (err error) { func Getrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, nil, rlim) err = Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -185,7 +185,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT //sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
func Setrlimit(resource int, rlim *Rlimit) (err error) { func Setrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, rlim, nil) err = Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }

View file

@ -3,8 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
//go:build linux && ppc //go:build linux && ppc
// +build linux // +build linux,ppc
// +build ppc
package unix package unix
@ -143,7 +142,7 @@ const rlimInf32 = ^uint32(0)
const rlimInf64 = ^uint64(0) const rlimInf64 = ^uint64(0)
func Getrlimit(resource int, rlim *Rlimit) (err error) { func Getrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, nil, rlim) err = Prlimit(0, resource, nil, rlim)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }
@ -171,7 +170,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT //sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
func Setrlimit(resource int, rlim *Rlimit) (err error) { func Setrlimit(resource int, rlim *Rlimit) (err error) {
err = prlimit(0, resource, rlim, nil) err = Prlimit(0, resource, rlim, nil)
if err != ENOSYS { if err != ENOSYS {
return err return err
} }

View file

@ -13,7 +13,10 @@
package unix package unix
import ( import (
"fmt"
"os"
"runtime" "runtime"
"sync"
"syscall" "syscall"
"unsafe" "unsafe"
) )
@ -744,3 +747,240 @@ func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, e
func Munmap(b []byte) (err error) { func Munmap(b []byte) (err error) {
return mapper.Munmap(b) return mapper.Munmap(b)
} }
// Event Ports
type fileObjCookie struct {
fobj *fileObj
cookie interface{}
}
// EventPort provides a safe abstraction on top of Solaris/illumos Event Ports.
type EventPort struct {
port int
mu sync.Mutex
fds map[uintptr]interface{}
paths map[string]*fileObjCookie
}
// PortEvent is an abstraction of the port_event C struct.
// Compare Source against PORT_SOURCE_FILE or PORT_SOURCE_FD
// to see if Path or Fd was the event source. The other will be
// uninitialized.
type PortEvent struct {
Cookie interface{}
Events int32
Fd uintptr
Path string
Source uint16
fobj *fileObj
}
// NewEventPort creates a new EventPort including the
// underlying call to port_create(3c).
func NewEventPort() (*EventPort, error) {
port, err := port_create()
if err != nil {
return nil, err
}
e := &EventPort{
port: port,
fds: make(map[uintptr]interface{}),
paths: make(map[string]*fileObjCookie),
}
return e, nil
}
//sys port_create() (n int, err error)
//sys port_associate(port int, source int, object uintptr, events int, user *byte) (n int, err error)
//sys port_dissociate(port int, source int, object uintptr) (n int, err error)
//sys port_get(port int, pe *portEvent, timeout *Timespec) (n int, err error)
//sys port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Timespec) (n int, err error)
// Close closes the event port.
func (e *EventPort) Close() error {
e.mu.Lock()
defer e.mu.Unlock()
e.fds = nil
e.paths = nil
return Close(e.port)
}
// PathIsWatched checks to see if path is associated with this EventPort.
func (e *EventPort) PathIsWatched(path string) bool {
e.mu.Lock()
defer e.mu.Unlock()
_, found := e.paths[path]
return found
}
// FdIsWatched checks to see if fd is associated with this EventPort.
func (e *EventPort) FdIsWatched(fd uintptr) bool {
e.mu.Lock()
defer e.mu.Unlock()
_, found := e.fds[fd]
return found
}
// AssociatePath wraps port_associate(3c) for a filesystem path including
// creating the necessary file_obj from the provided stat information.
func (e *EventPort) AssociatePath(path string, stat os.FileInfo, events int, cookie interface{}) error {
e.mu.Lock()
defer e.mu.Unlock()
if _, found := e.paths[path]; found {
return fmt.Errorf("%v is already associated with this Event Port", path)
}
fobj, err := createFileObj(path, stat)
if err != nil {
return err
}
fCookie := &fileObjCookie{fobj, cookie}
_, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fobj)), events, (*byte)(unsafe.Pointer(&fCookie.cookie)))
if err != nil {
return err
}
e.paths[path] = fCookie
return nil
}
// DissociatePath wraps port_dissociate(3c) for a filesystem path.
func (e *EventPort) DissociatePath(path string) error {
e.mu.Lock()
defer e.mu.Unlock()
f, ok := e.paths[path]
if !ok {
return fmt.Errorf("%v is not associated with this Event Port", path)
}
_, err := port_dissociate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(f.fobj)))
if err != nil {
return err
}
delete(e.paths, path)
return nil
}
// AssociateFd wraps calls to port_associate(3c) on file descriptors.
func (e *EventPort) AssociateFd(fd uintptr, events int, cookie interface{}) error {
e.mu.Lock()
defer e.mu.Unlock()
if _, found := e.fds[fd]; found {
return fmt.Errorf("%v is already associated with this Event Port", fd)
}
pcookie := &cookie
_, err := port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(pcookie)))
if err != nil {
return err
}
e.fds[fd] = pcookie
return nil
}
// DissociateFd wraps calls to port_dissociate(3c) on file descriptors.
func (e *EventPort) DissociateFd(fd uintptr) error {
e.mu.Lock()
defer e.mu.Unlock()
_, ok := e.fds[fd]
if !ok {
return fmt.Errorf("%v is not associated with this Event Port", fd)
}
_, err := port_dissociate(e.port, PORT_SOURCE_FD, fd)
if err != nil {
return err
}
delete(e.fds, fd)
return nil
}
func createFileObj(name string, stat os.FileInfo) (*fileObj, error) {
fobj := new(fileObj)
bs, err := ByteSliceFromString(name)
if err != nil {
return nil, err
}
fobj.Name = (*int8)(unsafe.Pointer(&bs[0]))
s := stat.Sys().(*syscall.Stat_t)
fobj.Atim.Sec = s.Atim.Sec
fobj.Atim.Nsec = s.Atim.Nsec
fobj.Mtim.Sec = s.Mtim.Sec
fobj.Mtim.Nsec = s.Mtim.Nsec
fobj.Ctim.Sec = s.Ctim.Sec
fobj.Ctim.Nsec = s.Ctim.Nsec
return fobj, nil
}
// GetOne wraps port_get(3c) and returns a single PortEvent.
func (e *EventPort) GetOne(t *Timespec) (*PortEvent, error) {
pe := new(portEvent)
_, err := port_get(e.port, pe, t)
if err != nil {
return nil, err
}
p := new(PortEvent)
p.Events = pe.Events
p.Source = pe.Source
e.mu.Lock()
defer e.mu.Unlock()
switch pe.Source {
case PORT_SOURCE_FD:
p.Fd = uintptr(pe.Object)
cookie := (*interface{})(unsafe.Pointer(pe.User))
p.Cookie = *cookie
delete(e.fds, p.Fd)
case PORT_SOURCE_FILE:
p.fobj = (*fileObj)(unsafe.Pointer(uintptr(pe.Object)))
p.Path = BytePtrToString((*byte)(unsafe.Pointer(p.fobj.Name)))
cookie := (*interface{})(unsafe.Pointer(pe.User))
p.Cookie = *cookie
delete(e.paths, p.Path)
}
return p, nil
}
// Pending wraps port_getn(3c) and returns how many events are pending.
func (e *EventPort) Pending() (int, error) {
var n uint32 = 0
_, err := port_getn(e.port, nil, 0, &n, nil)
return int(n), err
}
// Get wraps port_getn(3c) and fills a slice of PortEvent.
// It will block until either min events have been received
// or the timeout has been exceeded. It will return how many
// events were actually received along with any error information.
func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error) {
if min == 0 {
return 0, fmt.Errorf("need to request at least one event or use Pending() instead")
}
if len(s) < min {
return 0, fmt.Errorf("len(s) (%d) is less than min events requested (%d)", len(s), min)
}
got := uint32(min)
max := uint32(len(s))
var err error
ps := make([]portEvent, max, max)
_, err = port_getn(e.port, &ps[0], max, &got, timeout)
// got will be trustworthy with ETIME, but not any other error.
if err != nil && err != ETIME {
return 0, err
}
e.mu.Lock()
defer e.mu.Unlock()
for i := 0; i < int(got); i++ {
s[i].Events = ps[i].Events
s[i].Source = ps[i].Source
switch ps[i].Source {
case PORT_SOURCE_FD:
s[i].Fd = uintptr(ps[i].Object)
cookie := (*interface{})(unsafe.Pointer(ps[i].User))
s[i].Cookie = *cookie
delete(e.fds, s[i].Fd)
case PORT_SOURCE_FILE:
s[i].fobj = (*fileObj)(unsafe.Pointer(uintptr(ps[i].Object)))
s[i].Path = BytePtrToString((*byte)(unsafe.Pointer(s[i].fobj.Name)))
cookie := (*interface{})(unsafe.Pointer(ps[i].User))
s[i].Cookie = *cookie
delete(e.paths, s[i].Path)
}
}
return int(got), err
}

View file

@ -313,6 +313,10 @@ func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
return return
} }
func Send(s int, buf []byte, flags int) (err error) {
return sendto(s, buf, flags, nil, 0)
}
func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) { func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
ptr, n, err := to.sockaddr() ptr, n, err := to.sockaddr()
if err != nil { if err != nil {

View file

@ -1206,6 +1206,7 @@ const (
RTF_DONE = 0x40 RTF_DONE = 0x40
RTF_DYNAMIC = 0x10 RTF_DYNAMIC = 0x10
RTF_GATEWAY = 0x2 RTF_GATEWAY = 0x2
RTF_GLOBAL = 0x40000000
RTF_HOST = 0x4 RTF_HOST = 0x4
RTF_IFREF = 0x4000000 RTF_IFREF = 0x4000000
RTF_IFSCOPE = 0x1000000 RTF_IFSCOPE = 0x1000000

View file

@ -1206,6 +1206,7 @@ const (
RTF_DONE = 0x40 RTF_DONE = 0x40
RTF_DYNAMIC = 0x10 RTF_DYNAMIC = 0x10
RTF_GATEWAY = 0x2 RTF_GATEWAY = 0x2
RTF_GLOBAL = 0x40000000
RTF_HOST = 0x4 RTF_HOST = 0x4
RTF_IFREF = 0x4000000 RTF_IFREF = 0x4000000
RTF_IFSCOPE = 0x1000000 RTF_IFSCOPE = 0x1000000

View file

@ -228,6 +228,8 @@ const (
BPF_OR = 0x40 BPF_OR = 0x40
BPF_PSEUDO_BTF_ID = 0x3 BPF_PSEUDO_BTF_ID = 0x3
BPF_PSEUDO_CALL = 0x1 BPF_PSEUDO_CALL = 0x1
BPF_PSEUDO_FUNC = 0x4
BPF_PSEUDO_KFUNC_CALL = 0x2
BPF_PSEUDO_MAP_FD = 0x1 BPF_PSEUDO_MAP_FD = 0x1
BPF_PSEUDO_MAP_VALUE = 0x2 BPF_PSEUDO_MAP_VALUE = 0x2
BPF_RET = 0x6 BPF_RET = 0x6
@ -475,6 +477,8 @@ const (
DM_LIST_VERSIONS = 0xc138fd0d DM_LIST_VERSIONS = 0xc138fd0d
DM_MAX_TYPE_NAME = 0x10 DM_MAX_TYPE_NAME = 0x10
DM_NAME_LEN = 0x80 DM_NAME_LEN = 0x80
DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID = 0x2
DM_NAME_LIST_FLAG_HAS_UUID = 0x1
DM_NOFLUSH_FLAG = 0x800 DM_NOFLUSH_FLAG = 0x800
DM_PERSISTENT_DEV_FLAG = 0x8 DM_PERSISTENT_DEV_FLAG = 0x8
DM_QUERY_INACTIVE_TABLE_FLAG = 0x1000 DM_QUERY_INACTIVE_TABLE_FLAG = 0x1000
@ -494,9 +498,9 @@ const (
DM_UUID_FLAG = 0x4000 DM_UUID_FLAG = 0x4000
DM_UUID_LEN = 0x81 DM_UUID_LEN = 0x81
DM_VERSION = 0xc138fd00 DM_VERSION = 0xc138fd00
DM_VERSION_EXTRA = "-ioctl (2021-02-01)" DM_VERSION_EXTRA = "-ioctl (2021-03-22)"
DM_VERSION_MAJOR = 0x4 DM_VERSION_MAJOR = 0x4
DM_VERSION_MINOR = 0x2c DM_VERSION_MINOR = 0x2d
DM_VERSION_PATCHLEVEL = 0x0 DM_VERSION_PATCHLEVEL = 0x0
DT_BLK = 0x6 DT_BLK = 0x6
DT_CHR = 0x2 DT_CHR = 0x2
@ -981,12 +985,6 @@ const (
HPFS_SUPER_MAGIC = 0xf995e849 HPFS_SUPER_MAGIC = 0xf995e849
HUGETLBFS_MAGIC = 0x958458f6 HUGETLBFS_MAGIC = 0x958458f6
IBSHIFT = 0x10 IBSHIFT = 0x10
ICMPV6_FILTER = 0x1
ICMPV6_FILTER_BLOCK = 0x1
ICMPV6_FILTER_BLOCKOTHERS = 0x3
ICMPV6_FILTER_PASS = 0x2
ICMPV6_FILTER_PASSONLY = 0x4
ICMP_FILTER = 0x1
ICRNL = 0x100 ICRNL = 0x100
IFA_F_DADFAILED = 0x8 IFA_F_DADFAILED = 0x8
IFA_F_DEPRECATED = 0x20 IFA_F_DEPRECATED = 0x20
@ -1257,6 +1255,7 @@ const (
KEXEC_ARCH_PARISC = 0xf0000 KEXEC_ARCH_PARISC = 0xf0000
KEXEC_ARCH_PPC = 0x140000 KEXEC_ARCH_PPC = 0x140000
KEXEC_ARCH_PPC64 = 0x150000 KEXEC_ARCH_PPC64 = 0x150000
KEXEC_ARCH_RISCV = 0xf30000
KEXEC_ARCH_S390 = 0x160000 KEXEC_ARCH_S390 = 0x160000
KEXEC_ARCH_SH = 0x2a0000 KEXEC_ARCH_SH = 0x2a0000
KEXEC_ARCH_X86_64 = 0x3e0000 KEXEC_ARCH_X86_64 = 0x3e0000
@ -1756,14 +1755,19 @@ const (
PERF_ATTR_SIZE_VER4 = 0x68 PERF_ATTR_SIZE_VER4 = 0x68
PERF_ATTR_SIZE_VER5 = 0x70 PERF_ATTR_SIZE_VER5 = 0x70
PERF_ATTR_SIZE_VER6 = 0x78 PERF_ATTR_SIZE_VER6 = 0x78
PERF_ATTR_SIZE_VER7 = 0x80
PERF_AUX_FLAG_COLLISION = 0x8 PERF_AUX_FLAG_COLLISION = 0x8
PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT = 0x0
PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW = 0x100
PERF_AUX_FLAG_OVERWRITE = 0x2 PERF_AUX_FLAG_OVERWRITE = 0x2
PERF_AUX_FLAG_PARTIAL = 0x4 PERF_AUX_FLAG_PARTIAL = 0x4
PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK = 0xff00
PERF_AUX_FLAG_TRUNCATED = 0x1 PERF_AUX_FLAG_TRUNCATED = 0x1
PERF_FLAG_FD_CLOEXEC = 0x8 PERF_FLAG_FD_CLOEXEC = 0x8
PERF_FLAG_FD_NO_GROUP = 0x1 PERF_FLAG_FD_NO_GROUP = 0x1
PERF_FLAG_FD_OUTPUT = 0x2 PERF_FLAG_FD_OUTPUT = 0x2
PERF_FLAG_PID_CGROUP = 0x4 PERF_FLAG_PID_CGROUP = 0x4
PERF_HW_EVENT_MASK = 0xffffffff
PERF_MAX_CONTEXTS_PER_STACK = 0x8 PERF_MAX_CONTEXTS_PER_STACK = 0x8
PERF_MAX_STACK_DEPTH = 0x7f PERF_MAX_STACK_DEPTH = 0x7f
PERF_MEM_BLK_ADDR = 0x4 PERF_MEM_BLK_ADDR = 0x4
@ -1822,6 +1826,7 @@ const (
PERF_MEM_TLB_OS = 0x40 PERF_MEM_TLB_OS = 0x40
PERF_MEM_TLB_SHIFT = 0x1a PERF_MEM_TLB_SHIFT = 0x1a
PERF_MEM_TLB_WK = 0x20 PERF_MEM_TLB_WK = 0x20
PERF_PMU_TYPE_SHIFT = 0x20
PERF_RECORD_KSYMBOL_FLAGS_UNREGISTER = 0x1 PERF_RECORD_KSYMBOL_FLAGS_UNREGISTER = 0x1
PERF_RECORD_MISC_COMM_EXEC = 0x2000 PERF_RECORD_MISC_COMM_EXEC = 0x2000
PERF_RECORD_MISC_CPUMODE_MASK = 0x7 PERF_RECORD_MISC_CPUMODE_MASK = 0x7
@ -1921,7 +1926,9 @@ const (
PR_PAC_APGAKEY = 0x10 PR_PAC_APGAKEY = 0x10
PR_PAC_APIAKEY = 0x1 PR_PAC_APIAKEY = 0x1
PR_PAC_APIBKEY = 0x2 PR_PAC_APIBKEY = 0x2
PR_PAC_GET_ENABLED_KEYS = 0x3d
PR_PAC_RESET_KEYS = 0x36 PR_PAC_RESET_KEYS = 0x36
PR_PAC_SET_ENABLED_KEYS = 0x3c
PR_SET_CHILD_SUBREAPER = 0x24 PR_SET_CHILD_SUBREAPER = 0x24
PR_SET_DUMPABLE = 0x4 PR_SET_DUMPABLE = 0x4
PR_SET_ENDIAN = 0x14 PR_SET_ENDIAN = 0x14
@ -2003,6 +2010,7 @@ const (
PTRACE_GETREGSET = 0x4204 PTRACE_GETREGSET = 0x4204
PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGINFO = 0x4202
PTRACE_GETSIGMASK = 0x420a PTRACE_GETSIGMASK = 0x420a
PTRACE_GET_RSEQ_CONFIGURATION = 0x420f
PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_SYSCALL_INFO = 0x420e
PTRACE_INTERRUPT = 0x4207 PTRACE_INTERRUPT = 0x4207
PTRACE_KILL = 0x8 PTRACE_KILL = 0x8
@ -2163,6 +2171,7 @@ const (
RTM_DELNEIGH = 0x1d RTM_DELNEIGH = 0x1d
RTM_DELNETCONF = 0x51 RTM_DELNETCONF = 0x51
RTM_DELNEXTHOP = 0x69 RTM_DELNEXTHOP = 0x69
RTM_DELNEXTHOPBUCKET = 0x75
RTM_DELNSID = 0x59 RTM_DELNSID = 0x59
RTM_DELQDISC = 0x25 RTM_DELQDISC = 0x25
RTM_DELROUTE = 0x19 RTM_DELROUTE = 0x19
@ -2193,6 +2202,7 @@ const (
RTM_GETNEIGHTBL = 0x42 RTM_GETNEIGHTBL = 0x42
RTM_GETNETCONF = 0x52 RTM_GETNETCONF = 0x52
RTM_GETNEXTHOP = 0x6a RTM_GETNEXTHOP = 0x6a
RTM_GETNEXTHOPBUCKET = 0x76
RTM_GETNSID = 0x5a RTM_GETNSID = 0x5a
RTM_GETQDISC = 0x26 RTM_GETQDISC = 0x26
RTM_GETROUTE = 0x1a RTM_GETROUTE = 0x1a
@ -2201,7 +2211,7 @@ const (
RTM_GETTCLASS = 0x2a RTM_GETTCLASS = 0x2a
RTM_GETTFILTER = 0x2e RTM_GETTFILTER = 0x2e
RTM_GETVLAN = 0x72 RTM_GETVLAN = 0x72
RTM_MAX = 0x73 RTM_MAX = 0x77
RTM_NEWACTION = 0x30 RTM_NEWACTION = 0x30
RTM_NEWADDR = 0x14 RTM_NEWADDR = 0x14
RTM_NEWADDRLABEL = 0x48 RTM_NEWADDRLABEL = 0x48
@ -2215,6 +2225,7 @@ const (
RTM_NEWNEIGHTBL = 0x40 RTM_NEWNEIGHTBL = 0x40
RTM_NEWNETCONF = 0x50 RTM_NEWNETCONF = 0x50
RTM_NEWNEXTHOP = 0x68 RTM_NEWNEXTHOP = 0x68
RTM_NEWNEXTHOPBUCKET = 0x74
RTM_NEWNSID = 0x58 RTM_NEWNSID = 0x58
RTM_NEWNVLAN = 0x70 RTM_NEWNVLAN = 0x70
RTM_NEWPREFIX = 0x34 RTM_NEWPREFIX = 0x34
@ -2224,8 +2235,8 @@ const (
RTM_NEWSTATS = 0x5c RTM_NEWSTATS = 0x5c
RTM_NEWTCLASS = 0x28 RTM_NEWTCLASS = 0x28
RTM_NEWTFILTER = 0x2c RTM_NEWTFILTER = 0x2c
RTM_NR_FAMILIES = 0x19 RTM_NR_FAMILIES = 0x1a
RTM_NR_MSGTYPES = 0x64 RTM_NR_MSGTYPES = 0x68
RTM_SETDCB = 0x4f RTM_SETDCB = 0x4f
RTM_SETLINK = 0x13 RTM_SETLINK = 0x13
RTM_SETNEIGHTBL = 0x43 RTM_SETNEIGHTBL = 0x43
@ -2253,6 +2264,7 @@ const (
RTPROT_MROUTED = 0x11 RTPROT_MROUTED = 0x11
RTPROT_MRT = 0xa RTPROT_MRT = 0xa
RTPROT_NTK = 0xf RTPROT_NTK = 0xf
RTPROT_OPENR = 0x63
RTPROT_OSPF = 0xbc RTPROT_OSPF = 0xbc
RTPROT_RA = 0x9 RTPROT_RA = 0x9
RTPROT_REDIRECT = 0x1 RTPROT_REDIRECT = 0x1
@ -2536,6 +2548,14 @@ const (
TCOFLUSH = 0x1 TCOFLUSH = 0x1
TCOOFF = 0x0 TCOOFF = 0x0
TCOON = 0x1 TCOON = 0x1
TCPOPT_EOL = 0x0
TCPOPT_MAXSEG = 0x2
TCPOPT_NOP = 0x1
TCPOPT_SACK = 0x5
TCPOPT_SACK_PERMITTED = 0x4
TCPOPT_TIMESTAMP = 0x8
TCPOPT_TSTAMP_HDR = 0x101080a
TCPOPT_WINDOW = 0x3
TCP_CC_INFO = 0x1a TCP_CC_INFO = 0x1a
TCP_CM_INQ = 0x24 TCP_CM_INQ = 0x24
TCP_CONGESTION = 0xd TCP_CONGESTION = 0xd

View file

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10

View file

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10

View file

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10

View file

@ -148,6 +148,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10

View file

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10

View file

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10

View file

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10

View file

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10

View file

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x4 OLCUC = 0x4
ONLCR = 0x2 ONLCR = 0x2
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10

View file

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x4 OLCUC = 0x4
ONLCR = 0x2 ONLCR = 0x2
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10

View file

@ -147,6 +147,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x4 OLCUC = 0x4
ONLCR = 0x2 ONLCR = 0x2
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10

View file

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10

View file

@ -145,6 +145,7 @@ const (
NS_GET_USERNS = 0xb701 NS_GET_USERNS = 0xb701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x400c4d19
OTPGETREGIONCOUNT = 0x40044d0e OTPGETREGIONCOUNT = 0x40044d0e
OTPGETREGIONINFO = 0x400c4d0f OTPGETREGIONINFO = 0x400c4d0f
OTPLOCK = 0x800c4d10 OTPLOCK = 0x800c4d10

View file

@ -150,6 +150,7 @@ const (
NS_GET_USERNS = 0x2000b701 NS_GET_USERNS = 0x2000b701
OLCUC = 0x2 OLCUC = 0x2
ONLCR = 0x4 ONLCR = 0x4
OTPERASE = 0x800c4d19
OTPGETREGIONCOUNT = 0x80044d0e OTPGETREGIONCOUNT = 0x80044d0e
OTPGETREGIONINFO = 0x800c4d0f OTPGETREGIONINFO = 0x800c4d0f
OTPLOCK = 0x400c4d10 OTPLOCK = 0x400c4d10

View file

@ -1020,7 +1020,10 @@ const (
RLIMIT_CPU = 0x0 RLIMIT_CPU = 0x0
RLIMIT_DATA = 0x2 RLIMIT_DATA = 0x2
RLIMIT_FSIZE = 0x1 RLIMIT_FSIZE = 0x1
RLIMIT_MEMLOCK = 0x6
RLIMIT_NOFILE = 0x8 RLIMIT_NOFILE = 0x8
RLIMIT_NPROC = 0x7
RLIMIT_RSS = 0x5
RLIMIT_STACK = 0x3 RLIMIT_STACK = 0x3
RLIM_INFINITY = 0x7fffffffffffffff RLIM_INFINITY = 0x7fffffffffffffff
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6

View file

@ -1020,7 +1020,10 @@ const (
RLIMIT_CPU = 0x0 RLIMIT_CPU = 0x0
RLIMIT_DATA = 0x2 RLIMIT_DATA = 0x2
RLIMIT_FSIZE = 0x1 RLIMIT_FSIZE = 0x1
RLIMIT_MEMLOCK = 0x6
RLIMIT_NOFILE = 0x8 RLIMIT_NOFILE = 0x8
RLIMIT_NPROC = 0x7
RLIMIT_RSS = 0x5
RLIMIT_STACK = 0x3 RLIMIT_STACK = 0x3
RLIM_INFINITY = 0x7fffffffffffffff RLIM_INFINITY = 0x7fffffffffffffff
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6

View file

@ -1211,7 +1211,7 @@ func PivotRoot(newroot string, putold 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 prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { func Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
_, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
if e1 != 0 { if e1 != 0 {
err = errnoErr(e1) err = errnoErr(e1)

View file

@ -141,6 +141,11 @@ import (
//go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so" //go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so"
//go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so" //go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so"
//go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so" //go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so"
//go:cgo_import_dynamic libc_port_create port_create "libc.so"
//go:cgo_import_dynamic libc_port_associate port_associate "libc.so"
//go:cgo_import_dynamic libc_port_dissociate port_dissociate "libc.so"
//go:cgo_import_dynamic libc_port_get port_get "libc.so"
//go:cgo_import_dynamic libc_port_getn port_getn "libc.so"
//go:linkname procpipe libc_pipe //go:linkname procpipe libc_pipe
//go:linkname procpipe2 libc_pipe2 //go:linkname procpipe2 libc_pipe2
@ -272,6 +277,11 @@ import (
//go:linkname procgetpeername libc_getpeername //go:linkname procgetpeername libc_getpeername
//go:linkname procsetsockopt libc_setsockopt //go:linkname procsetsockopt libc_setsockopt
//go:linkname procrecvfrom libc_recvfrom //go:linkname procrecvfrom libc_recvfrom
//go:linkname procport_create libc_port_create
//go:linkname procport_associate libc_port_associate
//go:linkname procport_dissociate libc_port_dissociate
//go:linkname procport_get libc_port_get
//go:linkname procport_getn libc_port_getn
var ( var (
procpipe, procpipe,
@ -403,7 +413,12 @@ var (
proc__xnet_getsockopt, proc__xnet_getsockopt,
procgetpeername, procgetpeername,
procsetsockopt, procsetsockopt,
procrecvfrom syscallFunc procrecvfrom,
procport_create,
procport_associate,
procport_dissociate,
procport_get,
procport_getn syscallFunc
) )
// 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
@ -1981,3 +1996,58 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
} }
return return
} }
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_create() (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_create)), 0, 0, 0, 0, 0, 0, 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_associate(port int, source int, object uintptr, events int, user *byte) (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_associate)), 5, uintptr(port), uintptr(source), uintptr(object), uintptr(events), uintptr(unsafe.Pointer(user)), 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_dissociate(port int, source int, object uintptr) (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_dissociate)), 3, uintptr(port), uintptr(source), uintptr(object), 0, 0, 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_get(port int, pe *portEvent, timeout *Timespec) (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_get)), 3, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(unsafe.Pointer(timeout)), 0, 0, 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Timespec) (n int, err error) {
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_getn)), 5, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(max), uintptr(unsafe.Pointer(nget)), uintptr(unsafe.Pointer(timeout)), 0)
n = int(r0)
if e1 != 0 {
err = e1
}
return
}

View file

@ -439,4 +439,7 @@ const (
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -7,358 +7,361 @@
package unix package unix
const ( const (
SYS_READ = 0 SYS_READ = 0
SYS_WRITE = 1 SYS_WRITE = 1
SYS_OPEN = 2 SYS_OPEN = 2
SYS_CLOSE = 3 SYS_CLOSE = 3
SYS_STAT = 4 SYS_STAT = 4
SYS_FSTAT = 5 SYS_FSTAT = 5
SYS_LSTAT = 6 SYS_LSTAT = 6
SYS_POLL = 7 SYS_POLL = 7
SYS_LSEEK = 8 SYS_LSEEK = 8
SYS_MMAP = 9 SYS_MMAP = 9
SYS_MPROTECT = 10 SYS_MPROTECT = 10
SYS_MUNMAP = 11 SYS_MUNMAP = 11
SYS_BRK = 12 SYS_BRK = 12
SYS_RT_SIGACTION = 13 SYS_RT_SIGACTION = 13
SYS_RT_SIGPROCMASK = 14 SYS_RT_SIGPROCMASK = 14
SYS_RT_SIGRETURN = 15 SYS_RT_SIGRETURN = 15
SYS_IOCTL = 16 SYS_IOCTL = 16
SYS_PREAD64 = 17 SYS_PREAD64 = 17
SYS_PWRITE64 = 18 SYS_PWRITE64 = 18
SYS_READV = 19 SYS_READV = 19
SYS_WRITEV = 20 SYS_WRITEV = 20
SYS_ACCESS = 21 SYS_ACCESS = 21
SYS_PIPE = 22 SYS_PIPE = 22
SYS_SELECT = 23 SYS_SELECT = 23
SYS_SCHED_YIELD = 24 SYS_SCHED_YIELD = 24
SYS_MREMAP = 25 SYS_MREMAP = 25
SYS_MSYNC = 26 SYS_MSYNC = 26
SYS_MINCORE = 27 SYS_MINCORE = 27
SYS_MADVISE = 28 SYS_MADVISE = 28
SYS_SHMGET = 29 SYS_SHMGET = 29
SYS_SHMAT = 30 SYS_SHMAT = 30
SYS_SHMCTL = 31 SYS_SHMCTL = 31
SYS_DUP = 32 SYS_DUP = 32
SYS_DUP2 = 33 SYS_DUP2 = 33
SYS_PAUSE = 34 SYS_PAUSE = 34
SYS_NANOSLEEP = 35 SYS_NANOSLEEP = 35
SYS_GETITIMER = 36 SYS_GETITIMER = 36
SYS_ALARM = 37 SYS_ALARM = 37
SYS_SETITIMER = 38 SYS_SETITIMER = 38
SYS_GETPID = 39 SYS_GETPID = 39
SYS_SENDFILE = 40 SYS_SENDFILE = 40
SYS_SOCKET = 41 SYS_SOCKET = 41
SYS_CONNECT = 42 SYS_CONNECT = 42
SYS_ACCEPT = 43 SYS_ACCEPT = 43
SYS_SENDTO = 44 SYS_SENDTO = 44
SYS_RECVFROM = 45 SYS_RECVFROM = 45
SYS_SENDMSG = 46 SYS_SENDMSG = 46
SYS_RECVMSG = 47 SYS_RECVMSG = 47
SYS_SHUTDOWN = 48 SYS_SHUTDOWN = 48
SYS_BIND = 49 SYS_BIND = 49
SYS_LISTEN = 50 SYS_LISTEN = 50
SYS_GETSOCKNAME = 51 SYS_GETSOCKNAME = 51
SYS_GETPEERNAME = 52 SYS_GETPEERNAME = 52
SYS_SOCKETPAIR = 53 SYS_SOCKETPAIR = 53
SYS_SETSOCKOPT = 54 SYS_SETSOCKOPT = 54
SYS_GETSOCKOPT = 55 SYS_GETSOCKOPT = 55
SYS_CLONE = 56 SYS_CLONE = 56
SYS_FORK = 57 SYS_FORK = 57
SYS_VFORK = 58 SYS_VFORK = 58
SYS_EXECVE = 59 SYS_EXECVE = 59
SYS_EXIT = 60 SYS_EXIT = 60
SYS_WAIT4 = 61 SYS_WAIT4 = 61
SYS_KILL = 62 SYS_KILL = 62
SYS_UNAME = 63 SYS_UNAME = 63
SYS_SEMGET = 64 SYS_SEMGET = 64
SYS_SEMOP = 65 SYS_SEMOP = 65
SYS_SEMCTL = 66 SYS_SEMCTL = 66
SYS_SHMDT = 67 SYS_SHMDT = 67
SYS_MSGGET = 68 SYS_MSGGET = 68
SYS_MSGSND = 69 SYS_MSGSND = 69
SYS_MSGRCV = 70 SYS_MSGRCV = 70
SYS_MSGCTL = 71 SYS_MSGCTL = 71
SYS_FCNTL = 72 SYS_FCNTL = 72
SYS_FLOCK = 73 SYS_FLOCK = 73
SYS_FSYNC = 74 SYS_FSYNC = 74
SYS_FDATASYNC = 75 SYS_FDATASYNC = 75
SYS_TRUNCATE = 76 SYS_TRUNCATE = 76
SYS_FTRUNCATE = 77 SYS_FTRUNCATE = 77
SYS_GETDENTS = 78 SYS_GETDENTS = 78
SYS_GETCWD = 79 SYS_GETCWD = 79
SYS_CHDIR = 80 SYS_CHDIR = 80
SYS_FCHDIR = 81 SYS_FCHDIR = 81
SYS_RENAME = 82 SYS_RENAME = 82
SYS_MKDIR = 83 SYS_MKDIR = 83
SYS_RMDIR = 84 SYS_RMDIR = 84
SYS_CREAT = 85 SYS_CREAT = 85
SYS_LINK = 86 SYS_LINK = 86
SYS_UNLINK = 87 SYS_UNLINK = 87
SYS_SYMLINK = 88 SYS_SYMLINK = 88
SYS_READLINK = 89 SYS_READLINK = 89
SYS_CHMOD = 90 SYS_CHMOD = 90
SYS_FCHMOD = 91 SYS_FCHMOD = 91
SYS_CHOWN = 92 SYS_CHOWN = 92
SYS_FCHOWN = 93 SYS_FCHOWN = 93
SYS_LCHOWN = 94 SYS_LCHOWN = 94
SYS_UMASK = 95 SYS_UMASK = 95
SYS_GETTIMEOFDAY = 96 SYS_GETTIMEOFDAY = 96
SYS_GETRLIMIT = 97 SYS_GETRLIMIT = 97
SYS_GETRUSAGE = 98 SYS_GETRUSAGE = 98
SYS_SYSINFO = 99 SYS_SYSINFO = 99
SYS_TIMES = 100 SYS_TIMES = 100
SYS_PTRACE = 101 SYS_PTRACE = 101
SYS_GETUID = 102 SYS_GETUID = 102
SYS_SYSLOG = 103 SYS_SYSLOG = 103
SYS_GETGID = 104 SYS_GETGID = 104
SYS_SETUID = 105 SYS_SETUID = 105
SYS_SETGID = 106 SYS_SETGID = 106
SYS_GETEUID = 107 SYS_GETEUID = 107
SYS_GETEGID = 108 SYS_GETEGID = 108
SYS_SETPGID = 109 SYS_SETPGID = 109
SYS_GETPPID = 110 SYS_GETPPID = 110
SYS_GETPGRP = 111 SYS_GETPGRP = 111
SYS_SETSID = 112 SYS_SETSID = 112
SYS_SETREUID = 113 SYS_SETREUID = 113
SYS_SETREGID = 114 SYS_SETREGID = 114
SYS_GETGROUPS = 115 SYS_GETGROUPS = 115
SYS_SETGROUPS = 116 SYS_SETGROUPS = 116
SYS_SETRESUID = 117 SYS_SETRESUID = 117
SYS_GETRESUID = 118 SYS_GETRESUID = 118
SYS_SETRESGID = 119 SYS_SETRESGID = 119
SYS_GETRESGID = 120 SYS_GETRESGID = 120
SYS_GETPGID = 121 SYS_GETPGID = 121
SYS_SETFSUID = 122 SYS_SETFSUID = 122
SYS_SETFSGID = 123 SYS_SETFSGID = 123
SYS_GETSID = 124 SYS_GETSID = 124
SYS_CAPGET = 125 SYS_CAPGET = 125
SYS_CAPSET = 126 SYS_CAPSET = 126
SYS_RT_SIGPENDING = 127 SYS_RT_SIGPENDING = 127
SYS_RT_SIGTIMEDWAIT = 128 SYS_RT_SIGTIMEDWAIT = 128
SYS_RT_SIGQUEUEINFO = 129 SYS_RT_SIGQUEUEINFO = 129
SYS_RT_SIGSUSPEND = 130 SYS_RT_SIGSUSPEND = 130
SYS_SIGALTSTACK = 131 SYS_SIGALTSTACK = 131
SYS_UTIME = 132 SYS_UTIME = 132
SYS_MKNOD = 133 SYS_MKNOD = 133
SYS_USELIB = 134 SYS_USELIB = 134
SYS_PERSONALITY = 135 SYS_PERSONALITY = 135
SYS_USTAT = 136 SYS_USTAT = 136
SYS_STATFS = 137 SYS_STATFS = 137
SYS_FSTATFS = 138 SYS_FSTATFS = 138
SYS_SYSFS = 139 SYS_SYSFS = 139
SYS_GETPRIORITY = 140 SYS_GETPRIORITY = 140
SYS_SETPRIORITY = 141 SYS_SETPRIORITY = 141
SYS_SCHED_SETPARAM = 142 SYS_SCHED_SETPARAM = 142
SYS_SCHED_GETPARAM = 143 SYS_SCHED_GETPARAM = 143
SYS_SCHED_SETSCHEDULER = 144 SYS_SCHED_SETSCHEDULER = 144
SYS_SCHED_GETSCHEDULER = 145 SYS_SCHED_GETSCHEDULER = 145
SYS_SCHED_GET_PRIORITY_MAX = 146 SYS_SCHED_GET_PRIORITY_MAX = 146
SYS_SCHED_GET_PRIORITY_MIN = 147 SYS_SCHED_GET_PRIORITY_MIN = 147
SYS_SCHED_RR_GET_INTERVAL = 148 SYS_SCHED_RR_GET_INTERVAL = 148
SYS_MLOCK = 149 SYS_MLOCK = 149
SYS_MUNLOCK = 150 SYS_MUNLOCK = 150
SYS_MLOCKALL = 151 SYS_MLOCKALL = 151
SYS_MUNLOCKALL = 152 SYS_MUNLOCKALL = 152
SYS_VHANGUP = 153 SYS_VHANGUP = 153
SYS_MODIFY_LDT = 154 SYS_MODIFY_LDT = 154
SYS_PIVOT_ROOT = 155 SYS_PIVOT_ROOT = 155
SYS__SYSCTL = 156 SYS__SYSCTL = 156
SYS_PRCTL = 157 SYS_PRCTL = 157
SYS_ARCH_PRCTL = 158 SYS_ARCH_PRCTL = 158
SYS_ADJTIMEX = 159 SYS_ADJTIMEX = 159
SYS_SETRLIMIT = 160 SYS_SETRLIMIT = 160
SYS_CHROOT = 161 SYS_CHROOT = 161
SYS_SYNC = 162 SYS_SYNC = 162
SYS_ACCT = 163 SYS_ACCT = 163
SYS_SETTIMEOFDAY = 164 SYS_SETTIMEOFDAY = 164
SYS_MOUNT = 165 SYS_MOUNT = 165
SYS_UMOUNT2 = 166 SYS_UMOUNT2 = 166
SYS_SWAPON = 167 SYS_SWAPON = 167
SYS_SWAPOFF = 168 SYS_SWAPOFF = 168
SYS_REBOOT = 169 SYS_REBOOT = 169
SYS_SETHOSTNAME = 170 SYS_SETHOSTNAME = 170
SYS_SETDOMAINNAME = 171 SYS_SETDOMAINNAME = 171
SYS_IOPL = 172 SYS_IOPL = 172
SYS_IOPERM = 173 SYS_IOPERM = 173
SYS_CREATE_MODULE = 174 SYS_CREATE_MODULE = 174
SYS_INIT_MODULE = 175 SYS_INIT_MODULE = 175
SYS_DELETE_MODULE = 176 SYS_DELETE_MODULE = 176
SYS_GET_KERNEL_SYMS = 177 SYS_GET_KERNEL_SYMS = 177
SYS_QUERY_MODULE = 178 SYS_QUERY_MODULE = 178
SYS_QUOTACTL = 179 SYS_QUOTACTL = 179
SYS_NFSSERVCTL = 180 SYS_NFSSERVCTL = 180
SYS_GETPMSG = 181 SYS_GETPMSG = 181
SYS_PUTPMSG = 182 SYS_PUTPMSG = 182
SYS_AFS_SYSCALL = 183 SYS_AFS_SYSCALL = 183
SYS_TUXCALL = 184 SYS_TUXCALL = 184
SYS_SECURITY = 185 SYS_SECURITY = 185
SYS_GETTID = 186 SYS_GETTID = 186
SYS_READAHEAD = 187 SYS_READAHEAD = 187
SYS_SETXATTR = 188 SYS_SETXATTR = 188
SYS_LSETXATTR = 189 SYS_LSETXATTR = 189
SYS_FSETXATTR = 190 SYS_FSETXATTR = 190
SYS_GETXATTR = 191 SYS_GETXATTR = 191
SYS_LGETXATTR = 192 SYS_LGETXATTR = 192
SYS_FGETXATTR = 193 SYS_FGETXATTR = 193
SYS_LISTXATTR = 194 SYS_LISTXATTR = 194
SYS_LLISTXATTR = 195 SYS_LLISTXATTR = 195
SYS_FLISTXATTR = 196 SYS_FLISTXATTR = 196
SYS_REMOVEXATTR = 197 SYS_REMOVEXATTR = 197
SYS_LREMOVEXATTR = 198 SYS_LREMOVEXATTR = 198
SYS_FREMOVEXATTR = 199 SYS_FREMOVEXATTR = 199
SYS_TKILL = 200 SYS_TKILL = 200
SYS_TIME = 201 SYS_TIME = 201
SYS_FUTEX = 202 SYS_FUTEX = 202
SYS_SCHED_SETAFFINITY = 203 SYS_SCHED_SETAFFINITY = 203
SYS_SCHED_GETAFFINITY = 204 SYS_SCHED_GETAFFINITY = 204
SYS_SET_THREAD_AREA = 205 SYS_SET_THREAD_AREA = 205
SYS_IO_SETUP = 206 SYS_IO_SETUP = 206
SYS_IO_DESTROY = 207 SYS_IO_DESTROY = 207
SYS_IO_GETEVENTS = 208 SYS_IO_GETEVENTS = 208
SYS_IO_SUBMIT = 209 SYS_IO_SUBMIT = 209
SYS_IO_CANCEL = 210 SYS_IO_CANCEL = 210
SYS_GET_THREAD_AREA = 211 SYS_GET_THREAD_AREA = 211
SYS_LOOKUP_DCOOKIE = 212 SYS_LOOKUP_DCOOKIE = 212
SYS_EPOLL_CREATE = 213 SYS_EPOLL_CREATE = 213
SYS_EPOLL_CTL_OLD = 214 SYS_EPOLL_CTL_OLD = 214
SYS_EPOLL_WAIT_OLD = 215 SYS_EPOLL_WAIT_OLD = 215
SYS_REMAP_FILE_PAGES = 216 SYS_REMAP_FILE_PAGES = 216
SYS_GETDENTS64 = 217 SYS_GETDENTS64 = 217
SYS_SET_TID_ADDRESS = 218 SYS_SET_TID_ADDRESS = 218
SYS_RESTART_SYSCALL = 219 SYS_RESTART_SYSCALL = 219
SYS_SEMTIMEDOP = 220 SYS_SEMTIMEDOP = 220
SYS_FADVISE64 = 221 SYS_FADVISE64 = 221
SYS_TIMER_CREATE = 222 SYS_TIMER_CREATE = 222
SYS_TIMER_SETTIME = 223 SYS_TIMER_SETTIME = 223
SYS_TIMER_GETTIME = 224 SYS_TIMER_GETTIME = 224
SYS_TIMER_GETOVERRUN = 225 SYS_TIMER_GETOVERRUN = 225
SYS_TIMER_DELETE = 226 SYS_TIMER_DELETE = 226
SYS_CLOCK_SETTIME = 227 SYS_CLOCK_SETTIME = 227
SYS_CLOCK_GETTIME = 228 SYS_CLOCK_GETTIME = 228
SYS_CLOCK_GETRES = 229 SYS_CLOCK_GETRES = 229
SYS_CLOCK_NANOSLEEP = 230 SYS_CLOCK_NANOSLEEP = 230
SYS_EXIT_GROUP = 231 SYS_EXIT_GROUP = 231
SYS_EPOLL_WAIT = 232 SYS_EPOLL_WAIT = 232
SYS_EPOLL_CTL = 233 SYS_EPOLL_CTL = 233
SYS_TGKILL = 234 SYS_TGKILL = 234
SYS_UTIMES = 235 SYS_UTIMES = 235
SYS_VSERVER = 236 SYS_VSERVER = 236
SYS_MBIND = 237 SYS_MBIND = 237
SYS_SET_MEMPOLICY = 238 SYS_SET_MEMPOLICY = 238
SYS_GET_MEMPOLICY = 239 SYS_GET_MEMPOLICY = 239
SYS_MQ_OPEN = 240 SYS_MQ_OPEN = 240
SYS_MQ_UNLINK = 241 SYS_MQ_UNLINK = 241
SYS_MQ_TIMEDSEND = 242 SYS_MQ_TIMEDSEND = 242
SYS_MQ_TIMEDRECEIVE = 243 SYS_MQ_TIMEDRECEIVE = 243
SYS_MQ_NOTIFY = 244 SYS_MQ_NOTIFY = 244
SYS_MQ_GETSETATTR = 245 SYS_MQ_GETSETATTR = 245
SYS_KEXEC_LOAD = 246 SYS_KEXEC_LOAD = 246
SYS_WAITID = 247 SYS_WAITID = 247
SYS_ADD_KEY = 248 SYS_ADD_KEY = 248
SYS_REQUEST_KEY = 249 SYS_REQUEST_KEY = 249
SYS_KEYCTL = 250 SYS_KEYCTL = 250
SYS_IOPRIO_SET = 251 SYS_IOPRIO_SET = 251
SYS_IOPRIO_GET = 252 SYS_IOPRIO_GET = 252
SYS_INOTIFY_INIT = 253 SYS_INOTIFY_INIT = 253
SYS_INOTIFY_ADD_WATCH = 254 SYS_INOTIFY_ADD_WATCH = 254
SYS_INOTIFY_RM_WATCH = 255 SYS_INOTIFY_RM_WATCH = 255
SYS_MIGRATE_PAGES = 256 SYS_MIGRATE_PAGES = 256
SYS_OPENAT = 257 SYS_OPENAT = 257
SYS_MKDIRAT = 258 SYS_MKDIRAT = 258
SYS_MKNODAT = 259 SYS_MKNODAT = 259
SYS_FCHOWNAT = 260 SYS_FCHOWNAT = 260
SYS_FUTIMESAT = 261 SYS_FUTIMESAT = 261
SYS_NEWFSTATAT = 262 SYS_NEWFSTATAT = 262
SYS_UNLINKAT = 263 SYS_UNLINKAT = 263
SYS_RENAMEAT = 264 SYS_RENAMEAT = 264
SYS_LINKAT = 265 SYS_LINKAT = 265
SYS_SYMLINKAT = 266 SYS_SYMLINKAT = 266
SYS_READLINKAT = 267 SYS_READLINKAT = 267
SYS_FCHMODAT = 268 SYS_FCHMODAT = 268
SYS_FACCESSAT = 269 SYS_FACCESSAT = 269
SYS_PSELECT6 = 270 SYS_PSELECT6 = 270
SYS_PPOLL = 271 SYS_PPOLL = 271
SYS_UNSHARE = 272 SYS_UNSHARE = 272
SYS_SET_ROBUST_LIST = 273 SYS_SET_ROBUST_LIST = 273
SYS_GET_ROBUST_LIST = 274 SYS_GET_ROBUST_LIST = 274
SYS_SPLICE = 275 SYS_SPLICE = 275
SYS_TEE = 276 SYS_TEE = 276
SYS_SYNC_FILE_RANGE = 277 SYS_SYNC_FILE_RANGE = 277
SYS_VMSPLICE = 278 SYS_VMSPLICE = 278
SYS_MOVE_PAGES = 279 SYS_MOVE_PAGES = 279
SYS_UTIMENSAT = 280 SYS_UTIMENSAT = 280
SYS_EPOLL_PWAIT = 281 SYS_EPOLL_PWAIT = 281
SYS_SIGNALFD = 282 SYS_SIGNALFD = 282
SYS_TIMERFD_CREATE = 283 SYS_TIMERFD_CREATE = 283
SYS_EVENTFD = 284 SYS_EVENTFD = 284
SYS_FALLOCATE = 285 SYS_FALLOCATE = 285
SYS_TIMERFD_SETTIME = 286 SYS_TIMERFD_SETTIME = 286
SYS_TIMERFD_GETTIME = 287 SYS_TIMERFD_GETTIME = 287
SYS_ACCEPT4 = 288 SYS_ACCEPT4 = 288
SYS_SIGNALFD4 = 289 SYS_SIGNALFD4 = 289
SYS_EVENTFD2 = 290 SYS_EVENTFD2 = 290
SYS_EPOLL_CREATE1 = 291 SYS_EPOLL_CREATE1 = 291
SYS_DUP3 = 292 SYS_DUP3 = 292
SYS_PIPE2 = 293 SYS_PIPE2 = 293
SYS_INOTIFY_INIT1 = 294 SYS_INOTIFY_INIT1 = 294
SYS_PREADV = 295 SYS_PREADV = 295
SYS_PWRITEV = 296 SYS_PWRITEV = 296
SYS_RT_TGSIGQUEUEINFO = 297 SYS_RT_TGSIGQUEUEINFO = 297
SYS_PERF_EVENT_OPEN = 298 SYS_PERF_EVENT_OPEN = 298
SYS_RECVMMSG = 299 SYS_RECVMMSG = 299
SYS_FANOTIFY_INIT = 300 SYS_FANOTIFY_INIT = 300
SYS_FANOTIFY_MARK = 301 SYS_FANOTIFY_MARK = 301
SYS_PRLIMIT64 = 302 SYS_PRLIMIT64 = 302
SYS_NAME_TO_HANDLE_AT = 303 SYS_NAME_TO_HANDLE_AT = 303
SYS_OPEN_BY_HANDLE_AT = 304 SYS_OPEN_BY_HANDLE_AT = 304
SYS_CLOCK_ADJTIME = 305 SYS_CLOCK_ADJTIME = 305
SYS_SYNCFS = 306 SYS_SYNCFS = 306
SYS_SENDMMSG = 307 SYS_SENDMMSG = 307
SYS_SETNS = 308 SYS_SETNS = 308
SYS_GETCPU = 309 SYS_GETCPU = 309
SYS_PROCESS_VM_READV = 310 SYS_PROCESS_VM_READV = 310
SYS_PROCESS_VM_WRITEV = 311 SYS_PROCESS_VM_WRITEV = 311
SYS_KCMP = 312 SYS_KCMP = 312
SYS_FINIT_MODULE = 313 SYS_FINIT_MODULE = 313
SYS_SCHED_SETATTR = 314 SYS_SCHED_SETATTR = 314
SYS_SCHED_GETATTR = 315 SYS_SCHED_GETATTR = 315
SYS_RENAMEAT2 = 316 SYS_RENAMEAT2 = 316
SYS_SECCOMP = 317 SYS_SECCOMP = 317
SYS_GETRANDOM = 318 SYS_GETRANDOM = 318
SYS_MEMFD_CREATE = 319 SYS_MEMFD_CREATE = 319
SYS_KEXEC_FILE_LOAD = 320 SYS_KEXEC_FILE_LOAD = 320
SYS_BPF = 321 SYS_BPF = 321
SYS_EXECVEAT = 322 SYS_EXECVEAT = 322
SYS_USERFAULTFD = 323 SYS_USERFAULTFD = 323
SYS_MEMBARRIER = 324 SYS_MEMBARRIER = 324
SYS_MLOCK2 = 325 SYS_MLOCK2 = 325
SYS_COPY_FILE_RANGE = 326 SYS_COPY_FILE_RANGE = 326
SYS_PREADV2 = 327 SYS_PREADV2 = 327
SYS_PWRITEV2 = 328 SYS_PWRITEV2 = 328
SYS_PKEY_MPROTECT = 329 SYS_PKEY_MPROTECT = 329
SYS_PKEY_ALLOC = 330 SYS_PKEY_ALLOC = 330
SYS_PKEY_FREE = 331 SYS_PKEY_FREE = 331
SYS_STATX = 332 SYS_STATX = 332
SYS_IO_PGETEVENTS = 333 SYS_IO_PGETEVENTS = 333
SYS_RSEQ = 334 SYS_RSEQ = 334
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -403,4 +403,7 @@ const (
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -7,303 +7,306 @@
package unix package unix
const ( const (
SYS_IO_SETUP = 0 SYS_IO_SETUP = 0
SYS_IO_DESTROY = 1 SYS_IO_DESTROY = 1
SYS_IO_SUBMIT = 2 SYS_IO_SUBMIT = 2
SYS_IO_CANCEL = 3 SYS_IO_CANCEL = 3
SYS_IO_GETEVENTS = 4 SYS_IO_GETEVENTS = 4
SYS_SETXATTR = 5 SYS_SETXATTR = 5
SYS_LSETXATTR = 6 SYS_LSETXATTR = 6
SYS_FSETXATTR = 7 SYS_FSETXATTR = 7
SYS_GETXATTR = 8 SYS_GETXATTR = 8
SYS_LGETXATTR = 9 SYS_LGETXATTR = 9
SYS_FGETXATTR = 10 SYS_FGETXATTR = 10
SYS_LISTXATTR = 11 SYS_LISTXATTR = 11
SYS_LLISTXATTR = 12 SYS_LLISTXATTR = 12
SYS_FLISTXATTR = 13 SYS_FLISTXATTR = 13
SYS_REMOVEXATTR = 14 SYS_REMOVEXATTR = 14
SYS_LREMOVEXATTR = 15 SYS_LREMOVEXATTR = 15
SYS_FREMOVEXATTR = 16 SYS_FREMOVEXATTR = 16
SYS_GETCWD = 17 SYS_GETCWD = 17
SYS_LOOKUP_DCOOKIE = 18 SYS_LOOKUP_DCOOKIE = 18
SYS_EVENTFD2 = 19 SYS_EVENTFD2 = 19
SYS_EPOLL_CREATE1 = 20 SYS_EPOLL_CREATE1 = 20
SYS_EPOLL_CTL = 21 SYS_EPOLL_CTL = 21
SYS_EPOLL_PWAIT = 22 SYS_EPOLL_PWAIT = 22
SYS_DUP = 23 SYS_DUP = 23
SYS_DUP3 = 24 SYS_DUP3 = 24
SYS_FCNTL = 25 SYS_FCNTL = 25
SYS_INOTIFY_INIT1 = 26 SYS_INOTIFY_INIT1 = 26
SYS_INOTIFY_ADD_WATCH = 27 SYS_INOTIFY_ADD_WATCH = 27
SYS_INOTIFY_RM_WATCH = 28 SYS_INOTIFY_RM_WATCH = 28
SYS_IOCTL = 29 SYS_IOCTL = 29
SYS_IOPRIO_SET = 30 SYS_IOPRIO_SET = 30
SYS_IOPRIO_GET = 31 SYS_IOPRIO_GET = 31
SYS_FLOCK = 32 SYS_FLOCK = 32
SYS_MKNODAT = 33 SYS_MKNODAT = 33
SYS_MKDIRAT = 34 SYS_MKDIRAT = 34
SYS_UNLINKAT = 35 SYS_UNLINKAT = 35
SYS_SYMLINKAT = 36 SYS_SYMLINKAT = 36
SYS_LINKAT = 37 SYS_LINKAT = 37
SYS_RENAMEAT = 38 SYS_RENAMEAT = 38
SYS_UMOUNT2 = 39 SYS_UMOUNT2 = 39
SYS_MOUNT = 40 SYS_MOUNT = 40
SYS_PIVOT_ROOT = 41 SYS_PIVOT_ROOT = 41
SYS_NFSSERVCTL = 42 SYS_NFSSERVCTL = 42
SYS_STATFS = 43 SYS_STATFS = 43
SYS_FSTATFS = 44 SYS_FSTATFS = 44
SYS_TRUNCATE = 45 SYS_TRUNCATE = 45
SYS_FTRUNCATE = 46 SYS_FTRUNCATE = 46
SYS_FALLOCATE = 47 SYS_FALLOCATE = 47
SYS_FACCESSAT = 48 SYS_FACCESSAT = 48
SYS_CHDIR = 49 SYS_CHDIR = 49
SYS_FCHDIR = 50 SYS_FCHDIR = 50
SYS_CHROOT = 51 SYS_CHROOT = 51
SYS_FCHMOD = 52 SYS_FCHMOD = 52
SYS_FCHMODAT = 53 SYS_FCHMODAT = 53
SYS_FCHOWNAT = 54 SYS_FCHOWNAT = 54
SYS_FCHOWN = 55 SYS_FCHOWN = 55
SYS_OPENAT = 56 SYS_OPENAT = 56
SYS_CLOSE = 57 SYS_CLOSE = 57
SYS_VHANGUP = 58 SYS_VHANGUP = 58
SYS_PIPE2 = 59 SYS_PIPE2 = 59
SYS_QUOTACTL = 60 SYS_QUOTACTL = 60
SYS_GETDENTS64 = 61 SYS_GETDENTS64 = 61
SYS_LSEEK = 62 SYS_LSEEK = 62
SYS_READ = 63 SYS_READ = 63
SYS_WRITE = 64 SYS_WRITE = 64
SYS_READV = 65 SYS_READV = 65
SYS_WRITEV = 66 SYS_WRITEV = 66
SYS_PREAD64 = 67 SYS_PREAD64 = 67
SYS_PWRITE64 = 68 SYS_PWRITE64 = 68
SYS_PREADV = 69 SYS_PREADV = 69
SYS_PWRITEV = 70 SYS_PWRITEV = 70
SYS_SENDFILE = 71 SYS_SENDFILE = 71
SYS_PSELECT6 = 72 SYS_PSELECT6 = 72
SYS_PPOLL = 73 SYS_PPOLL = 73
SYS_SIGNALFD4 = 74 SYS_SIGNALFD4 = 74
SYS_VMSPLICE = 75 SYS_VMSPLICE = 75
SYS_SPLICE = 76 SYS_SPLICE = 76
SYS_TEE = 77 SYS_TEE = 77
SYS_READLINKAT = 78 SYS_READLINKAT = 78
SYS_FSTATAT = 79 SYS_FSTATAT = 79
SYS_FSTAT = 80 SYS_FSTAT = 80
SYS_SYNC = 81 SYS_SYNC = 81
SYS_FSYNC = 82 SYS_FSYNC = 82
SYS_FDATASYNC = 83 SYS_FDATASYNC = 83
SYS_SYNC_FILE_RANGE = 84 SYS_SYNC_FILE_RANGE = 84
SYS_TIMERFD_CREATE = 85 SYS_TIMERFD_CREATE = 85
SYS_TIMERFD_SETTIME = 86 SYS_TIMERFD_SETTIME = 86
SYS_TIMERFD_GETTIME = 87 SYS_TIMERFD_GETTIME = 87
SYS_UTIMENSAT = 88 SYS_UTIMENSAT = 88
SYS_ACCT = 89 SYS_ACCT = 89
SYS_CAPGET = 90 SYS_CAPGET = 90
SYS_CAPSET = 91 SYS_CAPSET = 91
SYS_PERSONALITY = 92 SYS_PERSONALITY = 92
SYS_EXIT = 93 SYS_EXIT = 93
SYS_EXIT_GROUP = 94 SYS_EXIT_GROUP = 94
SYS_WAITID = 95 SYS_WAITID = 95
SYS_SET_TID_ADDRESS = 96 SYS_SET_TID_ADDRESS = 96
SYS_UNSHARE = 97 SYS_UNSHARE = 97
SYS_FUTEX = 98 SYS_FUTEX = 98
SYS_SET_ROBUST_LIST = 99 SYS_SET_ROBUST_LIST = 99
SYS_GET_ROBUST_LIST = 100 SYS_GET_ROBUST_LIST = 100
SYS_NANOSLEEP = 101 SYS_NANOSLEEP = 101
SYS_GETITIMER = 102 SYS_GETITIMER = 102
SYS_SETITIMER = 103 SYS_SETITIMER = 103
SYS_KEXEC_LOAD = 104 SYS_KEXEC_LOAD = 104
SYS_INIT_MODULE = 105 SYS_INIT_MODULE = 105
SYS_DELETE_MODULE = 106 SYS_DELETE_MODULE = 106
SYS_TIMER_CREATE = 107 SYS_TIMER_CREATE = 107
SYS_TIMER_GETTIME = 108 SYS_TIMER_GETTIME = 108
SYS_TIMER_GETOVERRUN = 109 SYS_TIMER_GETOVERRUN = 109
SYS_TIMER_SETTIME = 110 SYS_TIMER_SETTIME = 110
SYS_TIMER_DELETE = 111 SYS_TIMER_DELETE = 111
SYS_CLOCK_SETTIME = 112 SYS_CLOCK_SETTIME = 112
SYS_CLOCK_GETTIME = 113 SYS_CLOCK_GETTIME = 113
SYS_CLOCK_GETRES = 114 SYS_CLOCK_GETRES = 114
SYS_CLOCK_NANOSLEEP = 115 SYS_CLOCK_NANOSLEEP = 115
SYS_SYSLOG = 116 SYS_SYSLOG = 116
SYS_PTRACE = 117 SYS_PTRACE = 117
SYS_SCHED_SETPARAM = 118 SYS_SCHED_SETPARAM = 118
SYS_SCHED_SETSCHEDULER = 119 SYS_SCHED_SETSCHEDULER = 119
SYS_SCHED_GETSCHEDULER = 120 SYS_SCHED_GETSCHEDULER = 120
SYS_SCHED_GETPARAM = 121 SYS_SCHED_GETPARAM = 121
SYS_SCHED_SETAFFINITY = 122 SYS_SCHED_SETAFFINITY = 122
SYS_SCHED_GETAFFINITY = 123 SYS_SCHED_GETAFFINITY = 123
SYS_SCHED_YIELD = 124 SYS_SCHED_YIELD = 124
SYS_SCHED_GET_PRIORITY_MAX = 125 SYS_SCHED_GET_PRIORITY_MAX = 125
SYS_SCHED_GET_PRIORITY_MIN = 126 SYS_SCHED_GET_PRIORITY_MIN = 126
SYS_SCHED_RR_GET_INTERVAL = 127 SYS_SCHED_RR_GET_INTERVAL = 127
SYS_RESTART_SYSCALL = 128 SYS_RESTART_SYSCALL = 128
SYS_KILL = 129 SYS_KILL = 129
SYS_TKILL = 130 SYS_TKILL = 130
SYS_TGKILL = 131 SYS_TGKILL = 131
SYS_SIGALTSTACK = 132 SYS_SIGALTSTACK = 132
SYS_RT_SIGSUSPEND = 133 SYS_RT_SIGSUSPEND = 133
SYS_RT_SIGACTION = 134 SYS_RT_SIGACTION = 134
SYS_RT_SIGPROCMASK = 135 SYS_RT_SIGPROCMASK = 135
SYS_RT_SIGPENDING = 136 SYS_RT_SIGPENDING = 136
SYS_RT_SIGTIMEDWAIT = 137 SYS_RT_SIGTIMEDWAIT = 137
SYS_RT_SIGQUEUEINFO = 138 SYS_RT_SIGQUEUEINFO = 138
SYS_RT_SIGRETURN = 139 SYS_RT_SIGRETURN = 139
SYS_SETPRIORITY = 140 SYS_SETPRIORITY = 140
SYS_GETPRIORITY = 141 SYS_GETPRIORITY = 141
SYS_REBOOT = 142 SYS_REBOOT = 142
SYS_SETREGID = 143 SYS_SETREGID = 143
SYS_SETGID = 144 SYS_SETGID = 144
SYS_SETREUID = 145 SYS_SETREUID = 145
SYS_SETUID = 146 SYS_SETUID = 146
SYS_SETRESUID = 147 SYS_SETRESUID = 147
SYS_GETRESUID = 148 SYS_GETRESUID = 148
SYS_SETRESGID = 149 SYS_SETRESGID = 149
SYS_GETRESGID = 150 SYS_GETRESGID = 150
SYS_SETFSUID = 151 SYS_SETFSUID = 151
SYS_SETFSGID = 152 SYS_SETFSGID = 152
SYS_TIMES = 153 SYS_TIMES = 153
SYS_SETPGID = 154 SYS_SETPGID = 154
SYS_GETPGID = 155 SYS_GETPGID = 155
SYS_GETSID = 156 SYS_GETSID = 156
SYS_SETSID = 157 SYS_SETSID = 157
SYS_GETGROUPS = 158 SYS_GETGROUPS = 158
SYS_SETGROUPS = 159 SYS_SETGROUPS = 159
SYS_UNAME = 160 SYS_UNAME = 160
SYS_SETHOSTNAME = 161 SYS_SETHOSTNAME = 161
SYS_SETDOMAINNAME = 162 SYS_SETDOMAINNAME = 162
SYS_GETRLIMIT = 163 SYS_GETRLIMIT = 163
SYS_SETRLIMIT = 164 SYS_SETRLIMIT = 164
SYS_GETRUSAGE = 165 SYS_GETRUSAGE = 165
SYS_UMASK = 166 SYS_UMASK = 166
SYS_PRCTL = 167 SYS_PRCTL = 167
SYS_GETCPU = 168 SYS_GETCPU = 168
SYS_GETTIMEOFDAY = 169 SYS_GETTIMEOFDAY = 169
SYS_SETTIMEOFDAY = 170 SYS_SETTIMEOFDAY = 170
SYS_ADJTIMEX = 171 SYS_ADJTIMEX = 171
SYS_GETPID = 172 SYS_GETPID = 172
SYS_GETPPID = 173 SYS_GETPPID = 173
SYS_GETUID = 174 SYS_GETUID = 174
SYS_GETEUID = 175 SYS_GETEUID = 175
SYS_GETGID = 176 SYS_GETGID = 176
SYS_GETEGID = 177 SYS_GETEGID = 177
SYS_GETTID = 178 SYS_GETTID = 178
SYS_SYSINFO = 179 SYS_SYSINFO = 179
SYS_MQ_OPEN = 180 SYS_MQ_OPEN = 180
SYS_MQ_UNLINK = 181 SYS_MQ_UNLINK = 181
SYS_MQ_TIMEDSEND = 182 SYS_MQ_TIMEDSEND = 182
SYS_MQ_TIMEDRECEIVE = 183 SYS_MQ_TIMEDRECEIVE = 183
SYS_MQ_NOTIFY = 184 SYS_MQ_NOTIFY = 184
SYS_MQ_GETSETATTR = 185 SYS_MQ_GETSETATTR = 185
SYS_MSGGET = 186 SYS_MSGGET = 186
SYS_MSGCTL = 187 SYS_MSGCTL = 187
SYS_MSGRCV = 188 SYS_MSGRCV = 188
SYS_MSGSND = 189 SYS_MSGSND = 189
SYS_SEMGET = 190 SYS_SEMGET = 190
SYS_SEMCTL = 191 SYS_SEMCTL = 191
SYS_SEMTIMEDOP = 192 SYS_SEMTIMEDOP = 192
SYS_SEMOP = 193 SYS_SEMOP = 193
SYS_SHMGET = 194 SYS_SHMGET = 194
SYS_SHMCTL = 195 SYS_SHMCTL = 195
SYS_SHMAT = 196 SYS_SHMAT = 196
SYS_SHMDT = 197 SYS_SHMDT = 197
SYS_SOCKET = 198 SYS_SOCKET = 198
SYS_SOCKETPAIR = 199 SYS_SOCKETPAIR = 199
SYS_BIND = 200 SYS_BIND = 200
SYS_LISTEN = 201 SYS_LISTEN = 201
SYS_ACCEPT = 202 SYS_ACCEPT = 202
SYS_CONNECT = 203 SYS_CONNECT = 203
SYS_GETSOCKNAME = 204 SYS_GETSOCKNAME = 204
SYS_GETPEERNAME = 205 SYS_GETPEERNAME = 205
SYS_SENDTO = 206 SYS_SENDTO = 206
SYS_RECVFROM = 207 SYS_RECVFROM = 207
SYS_SETSOCKOPT = 208 SYS_SETSOCKOPT = 208
SYS_GETSOCKOPT = 209 SYS_GETSOCKOPT = 209
SYS_SHUTDOWN = 210 SYS_SHUTDOWN = 210
SYS_SENDMSG = 211 SYS_SENDMSG = 211
SYS_RECVMSG = 212 SYS_RECVMSG = 212
SYS_READAHEAD = 213 SYS_READAHEAD = 213
SYS_BRK = 214 SYS_BRK = 214
SYS_MUNMAP = 215 SYS_MUNMAP = 215
SYS_MREMAP = 216 SYS_MREMAP = 216
SYS_ADD_KEY = 217 SYS_ADD_KEY = 217
SYS_REQUEST_KEY = 218 SYS_REQUEST_KEY = 218
SYS_KEYCTL = 219 SYS_KEYCTL = 219
SYS_CLONE = 220 SYS_CLONE = 220
SYS_EXECVE = 221 SYS_EXECVE = 221
SYS_MMAP = 222 SYS_MMAP = 222
SYS_FADVISE64 = 223 SYS_FADVISE64 = 223
SYS_SWAPON = 224 SYS_SWAPON = 224
SYS_SWAPOFF = 225 SYS_SWAPOFF = 225
SYS_MPROTECT = 226 SYS_MPROTECT = 226
SYS_MSYNC = 227 SYS_MSYNC = 227
SYS_MLOCK = 228 SYS_MLOCK = 228
SYS_MUNLOCK = 229 SYS_MUNLOCK = 229
SYS_MLOCKALL = 230 SYS_MLOCKALL = 230
SYS_MUNLOCKALL = 231 SYS_MUNLOCKALL = 231
SYS_MINCORE = 232 SYS_MINCORE = 232
SYS_MADVISE = 233 SYS_MADVISE = 233
SYS_REMAP_FILE_PAGES = 234 SYS_REMAP_FILE_PAGES = 234
SYS_MBIND = 235 SYS_MBIND = 235
SYS_GET_MEMPOLICY = 236 SYS_GET_MEMPOLICY = 236
SYS_SET_MEMPOLICY = 237 SYS_SET_MEMPOLICY = 237
SYS_MIGRATE_PAGES = 238 SYS_MIGRATE_PAGES = 238
SYS_MOVE_PAGES = 239 SYS_MOVE_PAGES = 239
SYS_RT_TGSIGQUEUEINFO = 240 SYS_RT_TGSIGQUEUEINFO = 240
SYS_PERF_EVENT_OPEN = 241 SYS_PERF_EVENT_OPEN = 241
SYS_ACCEPT4 = 242 SYS_ACCEPT4 = 242
SYS_RECVMMSG = 243 SYS_RECVMMSG = 243
SYS_ARCH_SPECIFIC_SYSCALL = 244 SYS_ARCH_SPECIFIC_SYSCALL = 244
SYS_WAIT4 = 260 SYS_WAIT4 = 260
SYS_PRLIMIT64 = 261 SYS_PRLIMIT64 = 261
SYS_FANOTIFY_INIT = 262 SYS_FANOTIFY_INIT = 262
SYS_FANOTIFY_MARK = 263 SYS_FANOTIFY_MARK = 263
SYS_NAME_TO_HANDLE_AT = 264 SYS_NAME_TO_HANDLE_AT = 264
SYS_OPEN_BY_HANDLE_AT = 265 SYS_OPEN_BY_HANDLE_AT = 265
SYS_CLOCK_ADJTIME = 266 SYS_CLOCK_ADJTIME = 266
SYS_SYNCFS = 267 SYS_SYNCFS = 267
SYS_SETNS = 268 SYS_SETNS = 268
SYS_SENDMMSG = 269 SYS_SENDMMSG = 269
SYS_PROCESS_VM_READV = 270 SYS_PROCESS_VM_READV = 270
SYS_PROCESS_VM_WRITEV = 271 SYS_PROCESS_VM_WRITEV = 271
SYS_KCMP = 272 SYS_KCMP = 272
SYS_FINIT_MODULE = 273 SYS_FINIT_MODULE = 273
SYS_SCHED_SETATTR = 274 SYS_SCHED_SETATTR = 274
SYS_SCHED_GETATTR = 275 SYS_SCHED_GETATTR = 275
SYS_RENAMEAT2 = 276 SYS_RENAMEAT2 = 276
SYS_SECCOMP = 277 SYS_SECCOMP = 277
SYS_GETRANDOM = 278 SYS_GETRANDOM = 278
SYS_MEMFD_CREATE = 279 SYS_MEMFD_CREATE = 279
SYS_BPF = 280 SYS_BPF = 280
SYS_EXECVEAT = 281 SYS_EXECVEAT = 281
SYS_USERFAULTFD = 282 SYS_USERFAULTFD = 282
SYS_MEMBARRIER = 283 SYS_MEMBARRIER = 283
SYS_MLOCK2 = 284 SYS_MLOCK2 = 284
SYS_COPY_FILE_RANGE = 285 SYS_COPY_FILE_RANGE = 285
SYS_PREADV2 = 286 SYS_PREADV2 = 286
SYS_PWRITEV2 = 287 SYS_PWRITEV2 = 287
SYS_PKEY_MPROTECT = 288 SYS_PKEY_MPROTECT = 288
SYS_PKEY_ALLOC = 289 SYS_PKEY_ALLOC = 289
SYS_PKEY_FREE = 290 SYS_PKEY_FREE = 290
SYS_STATX = 291 SYS_STATX = 291
SYS_IO_PGETEVENTS = 292 SYS_IO_PGETEVENTS = 292
SYS_RSEQ = 293 SYS_RSEQ = 293
SYS_KEXEC_FILE_LOAD = 294 SYS_KEXEC_FILE_LOAD = 294
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -424,4 +424,7 @@ const (
SYS_PROCESS_MADVISE = 4440 SYS_PROCESS_MADVISE = 4440
SYS_EPOLL_PWAIT2 = 4441 SYS_EPOLL_PWAIT2 = 4441
SYS_MOUNT_SETATTR = 4442 SYS_MOUNT_SETATTR = 4442
SYS_LANDLOCK_CREATE_RULESET = 4444
SYS_LANDLOCK_ADD_RULE = 4445
SYS_LANDLOCK_RESTRICT_SELF = 4446
) )

View file

@ -7,351 +7,354 @@
package unix package unix
const ( const (
SYS_READ = 5000 SYS_READ = 5000
SYS_WRITE = 5001 SYS_WRITE = 5001
SYS_OPEN = 5002 SYS_OPEN = 5002
SYS_CLOSE = 5003 SYS_CLOSE = 5003
SYS_STAT = 5004 SYS_STAT = 5004
SYS_FSTAT = 5005 SYS_FSTAT = 5005
SYS_LSTAT = 5006 SYS_LSTAT = 5006
SYS_POLL = 5007 SYS_POLL = 5007
SYS_LSEEK = 5008 SYS_LSEEK = 5008
SYS_MMAP = 5009 SYS_MMAP = 5009
SYS_MPROTECT = 5010 SYS_MPROTECT = 5010
SYS_MUNMAP = 5011 SYS_MUNMAP = 5011
SYS_BRK = 5012 SYS_BRK = 5012
SYS_RT_SIGACTION = 5013 SYS_RT_SIGACTION = 5013
SYS_RT_SIGPROCMASK = 5014 SYS_RT_SIGPROCMASK = 5014
SYS_IOCTL = 5015 SYS_IOCTL = 5015
SYS_PREAD64 = 5016 SYS_PREAD64 = 5016
SYS_PWRITE64 = 5017 SYS_PWRITE64 = 5017
SYS_READV = 5018 SYS_READV = 5018
SYS_WRITEV = 5019 SYS_WRITEV = 5019
SYS_ACCESS = 5020 SYS_ACCESS = 5020
SYS_PIPE = 5021 SYS_PIPE = 5021
SYS__NEWSELECT = 5022 SYS__NEWSELECT = 5022
SYS_SCHED_YIELD = 5023 SYS_SCHED_YIELD = 5023
SYS_MREMAP = 5024 SYS_MREMAP = 5024
SYS_MSYNC = 5025 SYS_MSYNC = 5025
SYS_MINCORE = 5026 SYS_MINCORE = 5026
SYS_MADVISE = 5027 SYS_MADVISE = 5027
SYS_SHMGET = 5028 SYS_SHMGET = 5028
SYS_SHMAT = 5029 SYS_SHMAT = 5029
SYS_SHMCTL = 5030 SYS_SHMCTL = 5030
SYS_DUP = 5031 SYS_DUP = 5031
SYS_DUP2 = 5032 SYS_DUP2 = 5032
SYS_PAUSE = 5033 SYS_PAUSE = 5033
SYS_NANOSLEEP = 5034 SYS_NANOSLEEP = 5034
SYS_GETITIMER = 5035 SYS_GETITIMER = 5035
SYS_SETITIMER = 5036 SYS_SETITIMER = 5036
SYS_ALARM = 5037 SYS_ALARM = 5037
SYS_GETPID = 5038 SYS_GETPID = 5038
SYS_SENDFILE = 5039 SYS_SENDFILE = 5039
SYS_SOCKET = 5040 SYS_SOCKET = 5040
SYS_CONNECT = 5041 SYS_CONNECT = 5041
SYS_ACCEPT = 5042 SYS_ACCEPT = 5042
SYS_SENDTO = 5043 SYS_SENDTO = 5043
SYS_RECVFROM = 5044 SYS_RECVFROM = 5044
SYS_SENDMSG = 5045 SYS_SENDMSG = 5045
SYS_RECVMSG = 5046 SYS_RECVMSG = 5046
SYS_SHUTDOWN = 5047 SYS_SHUTDOWN = 5047
SYS_BIND = 5048 SYS_BIND = 5048
SYS_LISTEN = 5049 SYS_LISTEN = 5049
SYS_GETSOCKNAME = 5050 SYS_GETSOCKNAME = 5050
SYS_GETPEERNAME = 5051 SYS_GETPEERNAME = 5051
SYS_SOCKETPAIR = 5052 SYS_SOCKETPAIR = 5052
SYS_SETSOCKOPT = 5053 SYS_SETSOCKOPT = 5053
SYS_GETSOCKOPT = 5054 SYS_GETSOCKOPT = 5054
SYS_CLONE = 5055 SYS_CLONE = 5055
SYS_FORK = 5056 SYS_FORK = 5056
SYS_EXECVE = 5057 SYS_EXECVE = 5057
SYS_EXIT = 5058 SYS_EXIT = 5058
SYS_WAIT4 = 5059 SYS_WAIT4 = 5059
SYS_KILL = 5060 SYS_KILL = 5060
SYS_UNAME = 5061 SYS_UNAME = 5061
SYS_SEMGET = 5062 SYS_SEMGET = 5062
SYS_SEMOP = 5063 SYS_SEMOP = 5063
SYS_SEMCTL = 5064 SYS_SEMCTL = 5064
SYS_SHMDT = 5065 SYS_SHMDT = 5065
SYS_MSGGET = 5066 SYS_MSGGET = 5066
SYS_MSGSND = 5067 SYS_MSGSND = 5067
SYS_MSGRCV = 5068 SYS_MSGRCV = 5068
SYS_MSGCTL = 5069 SYS_MSGCTL = 5069
SYS_FCNTL = 5070 SYS_FCNTL = 5070
SYS_FLOCK = 5071 SYS_FLOCK = 5071
SYS_FSYNC = 5072 SYS_FSYNC = 5072
SYS_FDATASYNC = 5073 SYS_FDATASYNC = 5073
SYS_TRUNCATE = 5074 SYS_TRUNCATE = 5074
SYS_FTRUNCATE = 5075 SYS_FTRUNCATE = 5075
SYS_GETDENTS = 5076 SYS_GETDENTS = 5076
SYS_GETCWD = 5077 SYS_GETCWD = 5077
SYS_CHDIR = 5078 SYS_CHDIR = 5078
SYS_FCHDIR = 5079 SYS_FCHDIR = 5079
SYS_RENAME = 5080 SYS_RENAME = 5080
SYS_MKDIR = 5081 SYS_MKDIR = 5081
SYS_RMDIR = 5082 SYS_RMDIR = 5082
SYS_CREAT = 5083 SYS_CREAT = 5083
SYS_LINK = 5084 SYS_LINK = 5084
SYS_UNLINK = 5085 SYS_UNLINK = 5085
SYS_SYMLINK = 5086 SYS_SYMLINK = 5086
SYS_READLINK = 5087 SYS_READLINK = 5087
SYS_CHMOD = 5088 SYS_CHMOD = 5088
SYS_FCHMOD = 5089 SYS_FCHMOD = 5089
SYS_CHOWN = 5090 SYS_CHOWN = 5090
SYS_FCHOWN = 5091 SYS_FCHOWN = 5091
SYS_LCHOWN = 5092 SYS_LCHOWN = 5092
SYS_UMASK = 5093 SYS_UMASK = 5093
SYS_GETTIMEOFDAY = 5094 SYS_GETTIMEOFDAY = 5094
SYS_GETRLIMIT = 5095 SYS_GETRLIMIT = 5095
SYS_GETRUSAGE = 5096 SYS_GETRUSAGE = 5096
SYS_SYSINFO = 5097 SYS_SYSINFO = 5097
SYS_TIMES = 5098 SYS_TIMES = 5098
SYS_PTRACE = 5099 SYS_PTRACE = 5099
SYS_GETUID = 5100 SYS_GETUID = 5100
SYS_SYSLOG = 5101 SYS_SYSLOG = 5101
SYS_GETGID = 5102 SYS_GETGID = 5102
SYS_SETUID = 5103 SYS_SETUID = 5103
SYS_SETGID = 5104 SYS_SETGID = 5104
SYS_GETEUID = 5105 SYS_GETEUID = 5105
SYS_GETEGID = 5106 SYS_GETEGID = 5106
SYS_SETPGID = 5107 SYS_SETPGID = 5107
SYS_GETPPID = 5108 SYS_GETPPID = 5108
SYS_GETPGRP = 5109 SYS_GETPGRP = 5109
SYS_SETSID = 5110 SYS_SETSID = 5110
SYS_SETREUID = 5111 SYS_SETREUID = 5111
SYS_SETREGID = 5112 SYS_SETREGID = 5112
SYS_GETGROUPS = 5113 SYS_GETGROUPS = 5113
SYS_SETGROUPS = 5114 SYS_SETGROUPS = 5114
SYS_SETRESUID = 5115 SYS_SETRESUID = 5115
SYS_GETRESUID = 5116 SYS_GETRESUID = 5116
SYS_SETRESGID = 5117 SYS_SETRESGID = 5117
SYS_GETRESGID = 5118 SYS_GETRESGID = 5118
SYS_GETPGID = 5119 SYS_GETPGID = 5119
SYS_SETFSUID = 5120 SYS_SETFSUID = 5120
SYS_SETFSGID = 5121 SYS_SETFSGID = 5121
SYS_GETSID = 5122 SYS_GETSID = 5122
SYS_CAPGET = 5123 SYS_CAPGET = 5123
SYS_CAPSET = 5124 SYS_CAPSET = 5124
SYS_RT_SIGPENDING = 5125 SYS_RT_SIGPENDING = 5125
SYS_RT_SIGTIMEDWAIT = 5126 SYS_RT_SIGTIMEDWAIT = 5126
SYS_RT_SIGQUEUEINFO = 5127 SYS_RT_SIGQUEUEINFO = 5127
SYS_RT_SIGSUSPEND = 5128 SYS_RT_SIGSUSPEND = 5128
SYS_SIGALTSTACK = 5129 SYS_SIGALTSTACK = 5129
SYS_UTIME = 5130 SYS_UTIME = 5130
SYS_MKNOD = 5131 SYS_MKNOD = 5131
SYS_PERSONALITY = 5132 SYS_PERSONALITY = 5132
SYS_USTAT = 5133 SYS_USTAT = 5133
SYS_STATFS = 5134 SYS_STATFS = 5134
SYS_FSTATFS = 5135 SYS_FSTATFS = 5135
SYS_SYSFS = 5136 SYS_SYSFS = 5136
SYS_GETPRIORITY = 5137 SYS_GETPRIORITY = 5137
SYS_SETPRIORITY = 5138 SYS_SETPRIORITY = 5138
SYS_SCHED_SETPARAM = 5139 SYS_SCHED_SETPARAM = 5139
SYS_SCHED_GETPARAM = 5140 SYS_SCHED_GETPARAM = 5140
SYS_SCHED_SETSCHEDULER = 5141 SYS_SCHED_SETSCHEDULER = 5141
SYS_SCHED_GETSCHEDULER = 5142 SYS_SCHED_GETSCHEDULER = 5142
SYS_SCHED_GET_PRIORITY_MAX = 5143 SYS_SCHED_GET_PRIORITY_MAX = 5143
SYS_SCHED_GET_PRIORITY_MIN = 5144 SYS_SCHED_GET_PRIORITY_MIN = 5144
SYS_SCHED_RR_GET_INTERVAL = 5145 SYS_SCHED_RR_GET_INTERVAL = 5145
SYS_MLOCK = 5146 SYS_MLOCK = 5146
SYS_MUNLOCK = 5147 SYS_MUNLOCK = 5147
SYS_MLOCKALL = 5148 SYS_MLOCKALL = 5148
SYS_MUNLOCKALL = 5149 SYS_MUNLOCKALL = 5149
SYS_VHANGUP = 5150 SYS_VHANGUP = 5150
SYS_PIVOT_ROOT = 5151 SYS_PIVOT_ROOT = 5151
SYS__SYSCTL = 5152 SYS__SYSCTL = 5152
SYS_PRCTL = 5153 SYS_PRCTL = 5153
SYS_ADJTIMEX = 5154 SYS_ADJTIMEX = 5154
SYS_SETRLIMIT = 5155 SYS_SETRLIMIT = 5155
SYS_CHROOT = 5156 SYS_CHROOT = 5156
SYS_SYNC = 5157 SYS_SYNC = 5157
SYS_ACCT = 5158 SYS_ACCT = 5158
SYS_SETTIMEOFDAY = 5159 SYS_SETTIMEOFDAY = 5159
SYS_MOUNT = 5160 SYS_MOUNT = 5160
SYS_UMOUNT2 = 5161 SYS_UMOUNT2 = 5161
SYS_SWAPON = 5162 SYS_SWAPON = 5162
SYS_SWAPOFF = 5163 SYS_SWAPOFF = 5163
SYS_REBOOT = 5164 SYS_REBOOT = 5164
SYS_SETHOSTNAME = 5165 SYS_SETHOSTNAME = 5165
SYS_SETDOMAINNAME = 5166 SYS_SETDOMAINNAME = 5166
SYS_CREATE_MODULE = 5167 SYS_CREATE_MODULE = 5167
SYS_INIT_MODULE = 5168 SYS_INIT_MODULE = 5168
SYS_DELETE_MODULE = 5169 SYS_DELETE_MODULE = 5169
SYS_GET_KERNEL_SYMS = 5170 SYS_GET_KERNEL_SYMS = 5170
SYS_QUERY_MODULE = 5171 SYS_QUERY_MODULE = 5171
SYS_QUOTACTL = 5172 SYS_QUOTACTL = 5172
SYS_NFSSERVCTL = 5173 SYS_NFSSERVCTL = 5173
SYS_GETPMSG = 5174 SYS_GETPMSG = 5174
SYS_PUTPMSG = 5175 SYS_PUTPMSG = 5175
SYS_AFS_SYSCALL = 5176 SYS_AFS_SYSCALL = 5176
SYS_RESERVED177 = 5177 SYS_RESERVED177 = 5177
SYS_GETTID = 5178 SYS_GETTID = 5178
SYS_READAHEAD = 5179 SYS_READAHEAD = 5179
SYS_SETXATTR = 5180 SYS_SETXATTR = 5180
SYS_LSETXATTR = 5181 SYS_LSETXATTR = 5181
SYS_FSETXATTR = 5182 SYS_FSETXATTR = 5182
SYS_GETXATTR = 5183 SYS_GETXATTR = 5183
SYS_LGETXATTR = 5184 SYS_LGETXATTR = 5184
SYS_FGETXATTR = 5185 SYS_FGETXATTR = 5185
SYS_LISTXATTR = 5186 SYS_LISTXATTR = 5186
SYS_LLISTXATTR = 5187 SYS_LLISTXATTR = 5187
SYS_FLISTXATTR = 5188 SYS_FLISTXATTR = 5188
SYS_REMOVEXATTR = 5189 SYS_REMOVEXATTR = 5189
SYS_LREMOVEXATTR = 5190 SYS_LREMOVEXATTR = 5190
SYS_FREMOVEXATTR = 5191 SYS_FREMOVEXATTR = 5191
SYS_TKILL = 5192 SYS_TKILL = 5192
SYS_RESERVED193 = 5193 SYS_RESERVED193 = 5193
SYS_FUTEX = 5194 SYS_FUTEX = 5194
SYS_SCHED_SETAFFINITY = 5195 SYS_SCHED_SETAFFINITY = 5195
SYS_SCHED_GETAFFINITY = 5196 SYS_SCHED_GETAFFINITY = 5196
SYS_CACHEFLUSH = 5197 SYS_CACHEFLUSH = 5197
SYS_CACHECTL = 5198 SYS_CACHECTL = 5198
SYS_SYSMIPS = 5199 SYS_SYSMIPS = 5199
SYS_IO_SETUP = 5200 SYS_IO_SETUP = 5200
SYS_IO_DESTROY = 5201 SYS_IO_DESTROY = 5201
SYS_IO_GETEVENTS = 5202 SYS_IO_GETEVENTS = 5202
SYS_IO_SUBMIT = 5203 SYS_IO_SUBMIT = 5203
SYS_IO_CANCEL = 5204 SYS_IO_CANCEL = 5204
SYS_EXIT_GROUP = 5205 SYS_EXIT_GROUP = 5205
SYS_LOOKUP_DCOOKIE = 5206 SYS_LOOKUP_DCOOKIE = 5206
SYS_EPOLL_CREATE = 5207 SYS_EPOLL_CREATE = 5207
SYS_EPOLL_CTL = 5208 SYS_EPOLL_CTL = 5208
SYS_EPOLL_WAIT = 5209 SYS_EPOLL_WAIT = 5209
SYS_REMAP_FILE_PAGES = 5210 SYS_REMAP_FILE_PAGES = 5210
SYS_RT_SIGRETURN = 5211 SYS_RT_SIGRETURN = 5211
SYS_SET_TID_ADDRESS = 5212 SYS_SET_TID_ADDRESS = 5212
SYS_RESTART_SYSCALL = 5213 SYS_RESTART_SYSCALL = 5213
SYS_SEMTIMEDOP = 5214 SYS_SEMTIMEDOP = 5214
SYS_FADVISE64 = 5215 SYS_FADVISE64 = 5215
SYS_TIMER_CREATE = 5216 SYS_TIMER_CREATE = 5216
SYS_TIMER_SETTIME = 5217 SYS_TIMER_SETTIME = 5217
SYS_TIMER_GETTIME = 5218 SYS_TIMER_GETTIME = 5218
SYS_TIMER_GETOVERRUN = 5219 SYS_TIMER_GETOVERRUN = 5219
SYS_TIMER_DELETE = 5220 SYS_TIMER_DELETE = 5220
SYS_CLOCK_SETTIME = 5221 SYS_CLOCK_SETTIME = 5221
SYS_CLOCK_GETTIME = 5222 SYS_CLOCK_GETTIME = 5222
SYS_CLOCK_GETRES = 5223 SYS_CLOCK_GETRES = 5223
SYS_CLOCK_NANOSLEEP = 5224 SYS_CLOCK_NANOSLEEP = 5224
SYS_TGKILL = 5225 SYS_TGKILL = 5225
SYS_UTIMES = 5226 SYS_UTIMES = 5226
SYS_MBIND = 5227 SYS_MBIND = 5227
SYS_GET_MEMPOLICY = 5228 SYS_GET_MEMPOLICY = 5228
SYS_SET_MEMPOLICY = 5229 SYS_SET_MEMPOLICY = 5229
SYS_MQ_OPEN = 5230 SYS_MQ_OPEN = 5230
SYS_MQ_UNLINK = 5231 SYS_MQ_UNLINK = 5231
SYS_MQ_TIMEDSEND = 5232 SYS_MQ_TIMEDSEND = 5232
SYS_MQ_TIMEDRECEIVE = 5233 SYS_MQ_TIMEDRECEIVE = 5233
SYS_MQ_NOTIFY = 5234 SYS_MQ_NOTIFY = 5234
SYS_MQ_GETSETATTR = 5235 SYS_MQ_GETSETATTR = 5235
SYS_VSERVER = 5236 SYS_VSERVER = 5236
SYS_WAITID = 5237 SYS_WAITID = 5237
SYS_ADD_KEY = 5239 SYS_ADD_KEY = 5239
SYS_REQUEST_KEY = 5240 SYS_REQUEST_KEY = 5240
SYS_KEYCTL = 5241 SYS_KEYCTL = 5241
SYS_SET_THREAD_AREA = 5242 SYS_SET_THREAD_AREA = 5242
SYS_INOTIFY_INIT = 5243 SYS_INOTIFY_INIT = 5243
SYS_INOTIFY_ADD_WATCH = 5244 SYS_INOTIFY_ADD_WATCH = 5244
SYS_INOTIFY_RM_WATCH = 5245 SYS_INOTIFY_RM_WATCH = 5245
SYS_MIGRATE_PAGES = 5246 SYS_MIGRATE_PAGES = 5246
SYS_OPENAT = 5247 SYS_OPENAT = 5247
SYS_MKDIRAT = 5248 SYS_MKDIRAT = 5248
SYS_MKNODAT = 5249 SYS_MKNODAT = 5249
SYS_FCHOWNAT = 5250 SYS_FCHOWNAT = 5250
SYS_FUTIMESAT = 5251 SYS_FUTIMESAT = 5251
SYS_NEWFSTATAT = 5252 SYS_NEWFSTATAT = 5252
SYS_UNLINKAT = 5253 SYS_UNLINKAT = 5253
SYS_RENAMEAT = 5254 SYS_RENAMEAT = 5254
SYS_LINKAT = 5255 SYS_LINKAT = 5255
SYS_SYMLINKAT = 5256 SYS_SYMLINKAT = 5256
SYS_READLINKAT = 5257 SYS_READLINKAT = 5257
SYS_FCHMODAT = 5258 SYS_FCHMODAT = 5258
SYS_FACCESSAT = 5259 SYS_FACCESSAT = 5259
SYS_PSELECT6 = 5260 SYS_PSELECT6 = 5260
SYS_PPOLL = 5261 SYS_PPOLL = 5261
SYS_UNSHARE = 5262 SYS_UNSHARE = 5262
SYS_SPLICE = 5263 SYS_SPLICE = 5263
SYS_SYNC_FILE_RANGE = 5264 SYS_SYNC_FILE_RANGE = 5264
SYS_TEE = 5265 SYS_TEE = 5265
SYS_VMSPLICE = 5266 SYS_VMSPLICE = 5266
SYS_MOVE_PAGES = 5267 SYS_MOVE_PAGES = 5267
SYS_SET_ROBUST_LIST = 5268 SYS_SET_ROBUST_LIST = 5268
SYS_GET_ROBUST_LIST = 5269 SYS_GET_ROBUST_LIST = 5269
SYS_KEXEC_LOAD = 5270 SYS_KEXEC_LOAD = 5270
SYS_GETCPU = 5271 SYS_GETCPU = 5271
SYS_EPOLL_PWAIT = 5272 SYS_EPOLL_PWAIT = 5272
SYS_IOPRIO_SET = 5273 SYS_IOPRIO_SET = 5273
SYS_IOPRIO_GET = 5274 SYS_IOPRIO_GET = 5274
SYS_UTIMENSAT = 5275 SYS_UTIMENSAT = 5275
SYS_SIGNALFD = 5276 SYS_SIGNALFD = 5276
SYS_TIMERFD = 5277 SYS_TIMERFD = 5277
SYS_EVENTFD = 5278 SYS_EVENTFD = 5278
SYS_FALLOCATE = 5279 SYS_FALLOCATE = 5279
SYS_TIMERFD_CREATE = 5280 SYS_TIMERFD_CREATE = 5280
SYS_TIMERFD_GETTIME = 5281 SYS_TIMERFD_GETTIME = 5281
SYS_TIMERFD_SETTIME = 5282 SYS_TIMERFD_SETTIME = 5282
SYS_SIGNALFD4 = 5283 SYS_SIGNALFD4 = 5283
SYS_EVENTFD2 = 5284 SYS_EVENTFD2 = 5284
SYS_EPOLL_CREATE1 = 5285 SYS_EPOLL_CREATE1 = 5285
SYS_DUP3 = 5286 SYS_DUP3 = 5286
SYS_PIPE2 = 5287 SYS_PIPE2 = 5287
SYS_INOTIFY_INIT1 = 5288 SYS_INOTIFY_INIT1 = 5288
SYS_PREADV = 5289 SYS_PREADV = 5289
SYS_PWRITEV = 5290 SYS_PWRITEV = 5290
SYS_RT_TGSIGQUEUEINFO = 5291 SYS_RT_TGSIGQUEUEINFO = 5291
SYS_PERF_EVENT_OPEN = 5292 SYS_PERF_EVENT_OPEN = 5292
SYS_ACCEPT4 = 5293 SYS_ACCEPT4 = 5293
SYS_RECVMMSG = 5294 SYS_RECVMMSG = 5294
SYS_FANOTIFY_INIT = 5295 SYS_FANOTIFY_INIT = 5295
SYS_FANOTIFY_MARK = 5296 SYS_FANOTIFY_MARK = 5296
SYS_PRLIMIT64 = 5297 SYS_PRLIMIT64 = 5297
SYS_NAME_TO_HANDLE_AT = 5298 SYS_NAME_TO_HANDLE_AT = 5298
SYS_OPEN_BY_HANDLE_AT = 5299 SYS_OPEN_BY_HANDLE_AT = 5299
SYS_CLOCK_ADJTIME = 5300 SYS_CLOCK_ADJTIME = 5300
SYS_SYNCFS = 5301 SYS_SYNCFS = 5301
SYS_SENDMMSG = 5302 SYS_SENDMMSG = 5302
SYS_SETNS = 5303 SYS_SETNS = 5303
SYS_PROCESS_VM_READV = 5304 SYS_PROCESS_VM_READV = 5304
SYS_PROCESS_VM_WRITEV = 5305 SYS_PROCESS_VM_WRITEV = 5305
SYS_KCMP = 5306 SYS_KCMP = 5306
SYS_FINIT_MODULE = 5307 SYS_FINIT_MODULE = 5307
SYS_GETDENTS64 = 5308 SYS_GETDENTS64 = 5308
SYS_SCHED_SETATTR = 5309 SYS_SCHED_SETATTR = 5309
SYS_SCHED_GETATTR = 5310 SYS_SCHED_GETATTR = 5310
SYS_RENAMEAT2 = 5311 SYS_RENAMEAT2 = 5311
SYS_SECCOMP = 5312 SYS_SECCOMP = 5312
SYS_GETRANDOM = 5313 SYS_GETRANDOM = 5313
SYS_MEMFD_CREATE = 5314 SYS_MEMFD_CREATE = 5314
SYS_BPF = 5315 SYS_BPF = 5315
SYS_EXECVEAT = 5316 SYS_EXECVEAT = 5316
SYS_USERFAULTFD = 5317 SYS_USERFAULTFD = 5317
SYS_MEMBARRIER = 5318 SYS_MEMBARRIER = 5318
SYS_MLOCK2 = 5319 SYS_MLOCK2 = 5319
SYS_COPY_FILE_RANGE = 5320 SYS_COPY_FILE_RANGE = 5320
SYS_PREADV2 = 5321 SYS_PREADV2 = 5321
SYS_PWRITEV2 = 5322 SYS_PWRITEV2 = 5322
SYS_PKEY_MPROTECT = 5323 SYS_PKEY_MPROTECT = 5323
SYS_PKEY_ALLOC = 5324 SYS_PKEY_ALLOC = 5324
SYS_PKEY_FREE = 5325 SYS_PKEY_FREE = 5325
SYS_STATX = 5326 SYS_STATX = 5326
SYS_RSEQ = 5327 SYS_RSEQ = 5327
SYS_IO_PGETEVENTS = 5328 SYS_IO_PGETEVENTS = 5328
SYS_PIDFD_SEND_SIGNAL = 5424 SYS_PIDFD_SEND_SIGNAL = 5424
SYS_IO_URING_SETUP = 5425 SYS_IO_URING_SETUP = 5425
SYS_IO_URING_ENTER = 5426 SYS_IO_URING_ENTER = 5426
SYS_IO_URING_REGISTER = 5427 SYS_IO_URING_REGISTER = 5427
SYS_OPEN_TREE = 5428 SYS_OPEN_TREE = 5428
SYS_MOVE_MOUNT = 5429 SYS_MOVE_MOUNT = 5429
SYS_FSOPEN = 5430 SYS_FSOPEN = 5430
SYS_FSCONFIG = 5431 SYS_FSCONFIG = 5431
SYS_FSMOUNT = 5432 SYS_FSMOUNT = 5432
SYS_FSPICK = 5433 SYS_FSPICK = 5433
SYS_PIDFD_OPEN = 5434 SYS_PIDFD_OPEN = 5434
SYS_CLONE3 = 5435 SYS_CLONE3 = 5435
SYS_CLOSE_RANGE = 5436 SYS_CLOSE_RANGE = 5436
SYS_OPENAT2 = 5437 SYS_OPENAT2 = 5437
SYS_PIDFD_GETFD = 5438 SYS_PIDFD_GETFD = 5438
SYS_FACCESSAT2 = 5439 SYS_FACCESSAT2 = 5439
SYS_PROCESS_MADVISE = 5440 SYS_PROCESS_MADVISE = 5440
SYS_EPOLL_PWAIT2 = 5441 SYS_EPOLL_PWAIT2 = 5441
SYS_MOUNT_SETATTR = 5442 SYS_MOUNT_SETATTR = 5442
SYS_LANDLOCK_CREATE_RULESET = 5444
SYS_LANDLOCK_ADD_RULE = 5445
SYS_LANDLOCK_RESTRICT_SELF = 5446
) )

View file

@ -7,351 +7,354 @@
package unix package unix
const ( const (
SYS_READ = 5000 SYS_READ = 5000
SYS_WRITE = 5001 SYS_WRITE = 5001
SYS_OPEN = 5002 SYS_OPEN = 5002
SYS_CLOSE = 5003 SYS_CLOSE = 5003
SYS_STAT = 5004 SYS_STAT = 5004
SYS_FSTAT = 5005 SYS_FSTAT = 5005
SYS_LSTAT = 5006 SYS_LSTAT = 5006
SYS_POLL = 5007 SYS_POLL = 5007
SYS_LSEEK = 5008 SYS_LSEEK = 5008
SYS_MMAP = 5009 SYS_MMAP = 5009
SYS_MPROTECT = 5010 SYS_MPROTECT = 5010
SYS_MUNMAP = 5011 SYS_MUNMAP = 5011
SYS_BRK = 5012 SYS_BRK = 5012
SYS_RT_SIGACTION = 5013 SYS_RT_SIGACTION = 5013
SYS_RT_SIGPROCMASK = 5014 SYS_RT_SIGPROCMASK = 5014
SYS_IOCTL = 5015 SYS_IOCTL = 5015
SYS_PREAD64 = 5016 SYS_PREAD64 = 5016
SYS_PWRITE64 = 5017 SYS_PWRITE64 = 5017
SYS_READV = 5018 SYS_READV = 5018
SYS_WRITEV = 5019 SYS_WRITEV = 5019
SYS_ACCESS = 5020 SYS_ACCESS = 5020
SYS_PIPE = 5021 SYS_PIPE = 5021
SYS__NEWSELECT = 5022 SYS__NEWSELECT = 5022
SYS_SCHED_YIELD = 5023 SYS_SCHED_YIELD = 5023
SYS_MREMAP = 5024 SYS_MREMAP = 5024
SYS_MSYNC = 5025 SYS_MSYNC = 5025
SYS_MINCORE = 5026 SYS_MINCORE = 5026
SYS_MADVISE = 5027 SYS_MADVISE = 5027
SYS_SHMGET = 5028 SYS_SHMGET = 5028
SYS_SHMAT = 5029 SYS_SHMAT = 5029
SYS_SHMCTL = 5030 SYS_SHMCTL = 5030
SYS_DUP = 5031 SYS_DUP = 5031
SYS_DUP2 = 5032 SYS_DUP2 = 5032
SYS_PAUSE = 5033 SYS_PAUSE = 5033
SYS_NANOSLEEP = 5034 SYS_NANOSLEEP = 5034
SYS_GETITIMER = 5035 SYS_GETITIMER = 5035
SYS_SETITIMER = 5036 SYS_SETITIMER = 5036
SYS_ALARM = 5037 SYS_ALARM = 5037
SYS_GETPID = 5038 SYS_GETPID = 5038
SYS_SENDFILE = 5039 SYS_SENDFILE = 5039
SYS_SOCKET = 5040 SYS_SOCKET = 5040
SYS_CONNECT = 5041 SYS_CONNECT = 5041
SYS_ACCEPT = 5042 SYS_ACCEPT = 5042
SYS_SENDTO = 5043 SYS_SENDTO = 5043
SYS_RECVFROM = 5044 SYS_RECVFROM = 5044
SYS_SENDMSG = 5045 SYS_SENDMSG = 5045
SYS_RECVMSG = 5046 SYS_RECVMSG = 5046
SYS_SHUTDOWN = 5047 SYS_SHUTDOWN = 5047
SYS_BIND = 5048 SYS_BIND = 5048
SYS_LISTEN = 5049 SYS_LISTEN = 5049
SYS_GETSOCKNAME = 5050 SYS_GETSOCKNAME = 5050
SYS_GETPEERNAME = 5051 SYS_GETPEERNAME = 5051
SYS_SOCKETPAIR = 5052 SYS_SOCKETPAIR = 5052
SYS_SETSOCKOPT = 5053 SYS_SETSOCKOPT = 5053
SYS_GETSOCKOPT = 5054 SYS_GETSOCKOPT = 5054
SYS_CLONE = 5055 SYS_CLONE = 5055
SYS_FORK = 5056 SYS_FORK = 5056
SYS_EXECVE = 5057 SYS_EXECVE = 5057
SYS_EXIT = 5058 SYS_EXIT = 5058
SYS_WAIT4 = 5059 SYS_WAIT4 = 5059
SYS_KILL = 5060 SYS_KILL = 5060
SYS_UNAME = 5061 SYS_UNAME = 5061
SYS_SEMGET = 5062 SYS_SEMGET = 5062
SYS_SEMOP = 5063 SYS_SEMOP = 5063
SYS_SEMCTL = 5064 SYS_SEMCTL = 5064
SYS_SHMDT = 5065 SYS_SHMDT = 5065
SYS_MSGGET = 5066 SYS_MSGGET = 5066
SYS_MSGSND = 5067 SYS_MSGSND = 5067
SYS_MSGRCV = 5068 SYS_MSGRCV = 5068
SYS_MSGCTL = 5069 SYS_MSGCTL = 5069
SYS_FCNTL = 5070 SYS_FCNTL = 5070
SYS_FLOCK = 5071 SYS_FLOCK = 5071
SYS_FSYNC = 5072 SYS_FSYNC = 5072
SYS_FDATASYNC = 5073 SYS_FDATASYNC = 5073
SYS_TRUNCATE = 5074 SYS_TRUNCATE = 5074
SYS_FTRUNCATE = 5075 SYS_FTRUNCATE = 5075
SYS_GETDENTS = 5076 SYS_GETDENTS = 5076
SYS_GETCWD = 5077 SYS_GETCWD = 5077
SYS_CHDIR = 5078 SYS_CHDIR = 5078
SYS_FCHDIR = 5079 SYS_FCHDIR = 5079
SYS_RENAME = 5080 SYS_RENAME = 5080
SYS_MKDIR = 5081 SYS_MKDIR = 5081
SYS_RMDIR = 5082 SYS_RMDIR = 5082
SYS_CREAT = 5083 SYS_CREAT = 5083
SYS_LINK = 5084 SYS_LINK = 5084
SYS_UNLINK = 5085 SYS_UNLINK = 5085
SYS_SYMLINK = 5086 SYS_SYMLINK = 5086
SYS_READLINK = 5087 SYS_READLINK = 5087
SYS_CHMOD = 5088 SYS_CHMOD = 5088
SYS_FCHMOD = 5089 SYS_FCHMOD = 5089
SYS_CHOWN = 5090 SYS_CHOWN = 5090
SYS_FCHOWN = 5091 SYS_FCHOWN = 5091
SYS_LCHOWN = 5092 SYS_LCHOWN = 5092
SYS_UMASK = 5093 SYS_UMASK = 5093
SYS_GETTIMEOFDAY = 5094 SYS_GETTIMEOFDAY = 5094
SYS_GETRLIMIT = 5095 SYS_GETRLIMIT = 5095
SYS_GETRUSAGE = 5096 SYS_GETRUSAGE = 5096
SYS_SYSINFO = 5097 SYS_SYSINFO = 5097
SYS_TIMES = 5098 SYS_TIMES = 5098
SYS_PTRACE = 5099 SYS_PTRACE = 5099
SYS_GETUID = 5100 SYS_GETUID = 5100
SYS_SYSLOG = 5101 SYS_SYSLOG = 5101
SYS_GETGID = 5102 SYS_GETGID = 5102
SYS_SETUID = 5103 SYS_SETUID = 5103
SYS_SETGID = 5104 SYS_SETGID = 5104
SYS_GETEUID = 5105 SYS_GETEUID = 5105
SYS_GETEGID = 5106 SYS_GETEGID = 5106
SYS_SETPGID = 5107 SYS_SETPGID = 5107
SYS_GETPPID = 5108 SYS_GETPPID = 5108
SYS_GETPGRP = 5109 SYS_GETPGRP = 5109
SYS_SETSID = 5110 SYS_SETSID = 5110
SYS_SETREUID = 5111 SYS_SETREUID = 5111
SYS_SETREGID = 5112 SYS_SETREGID = 5112
SYS_GETGROUPS = 5113 SYS_GETGROUPS = 5113
SYS_SETGROUPS = 5114 SYS_SETGROUPS = 5114
SYS_SETRESUID = 5115 SYS_SETRESUID = 5115
SYS_GETRESUID = 5116 SYS_GETRESUID = 5116
SYS_SETRESGID = 5117 SYS_SETRESGID = 5117
SYS_GETRESGID = 5118 SYS_GETRESGID = 5118
SYS_GETPGID = 5119 SYS_GETPGID = 5119
SYS_SETFSUID = 5120 SYS_SETFSUID = 5120
SYS_SETFSGID = 5121 SYS_SETFSGID = 5121
SYS_GETSID = 5122 SYS_GETSID = 5122
SYS_CAPGET = 5123 SYS_CAPGET = 5123
SYS_CAPSET = 5124 SYS_CAPSET = 5124
SYS_RT_SIGPENDING = 5125 SYS_RT_SIGPENDING = 5125
SYS_RT_SIGTIMEDWAIT = 5126 SYS_RT_SIGTIMEDWAIT = 5126
SYS_RT_SIGQUEUEINFO = 5127 SYS_RT_SIGQUEUEINFO = 5127
SYS_RT_SIGSUSPEND = 5128 SYS_RT_SIGSUSPEND = 5128
SYS_SIGALTSTACK = 5129 SYS_SIGALTSTACK = 5129
SYS_UTIME = 5130 SYS_UTIME = 5130
SYS_MKNOD = 5131 SYS_MKNOD = 5131
SYS_PERSONALITY = 5132 SYS_PERSONALITY = 5132
SYS_USTAT = 5133 SYS_USTAT = 5133
SYS_STATFS = 5134 SYS_STATFS = 5134
SYS_FSTATFS = 5135 SYS_FSTATFS = 5135
SYS_SYSFS = 5136 SYS_SYSFS = 5136
SYS_GETPRIORITY = 5137 SYS_GETPRIORITY = 5137
SYS_SETPRIORITY = 5138 SYS_SETPRIORITY = 5138
SYS_SCHED_SETPARAM = 5139 SYS_SCHED_SETPARAM = 5139
SYS_SCHED_GETPARAM = 5140 SYS_SCHED_GETPARAM = 5140
SYS_SCHED_SETSCHEDULER = 5141 SYS_SCHED_SETSCHEDULER = 5141
SYS_SCHED_GETSCHEDULER = 5142 SYS_SCHED_GETSCHEDULER = 5142
SYS_SCHED_GET_PRIORITY_MAX = 5143 SYS_SCHED_GET_PRIORITY_MAX = 5143
SYS_SCHED_GET_PRIORITY_MIN = 5144 SYS_SCHED_GET_PRIORITY_MIN = 5144
SYS_SCHED_RR_GET_INTERVAL = 5145 SYS_SCHED_RR_GET_INTERVAL = 5145
SYS_MLOCK = 5146 SYS_MLOCK = 5146
SYS_MUNLOCK = 5147 SYS_MUNLOCK = 5147
SYS_MLOCKALL = 5148 SYS_MLOCKALL = 5148
SYS_MUNLOCKALL = 5149 SYS_MUNLOCKALL = 5149
SYS_VHANGUP = 5150 SYS_VHANGUP = 5150
SYS_PIVOT_ROOT = 5151 SYS_PIVOT_ROOT = 5151
SYS__SYSCTL = 5152 SYS__SYSCTL = 5152
SYS_PRCTL = 5153 SYS_PRCTL = 5153
SYS_ADJTIMEX = 5154 SYS_ADJTIMEX = 5154
SYS_SETRLIMIT = 5155 SYS_SETRLIMIT = 5155
SYS_CHROOT = 5156 SYS_CHROOT = 5156
SYS_SYNC = 5157 SYS_SYNC = 5157
SYS_ACCT = 5158 SYS_ACCT = 5158
SYS_SETTIMEOFDAY = 5159 SYS_SETTIMEOFDAY = 5159
SYS_MOUNT = 5160 SYS_MOUNT = 5160
SYS_UMOUNT2 = 5161 SYS_UMOUNT2 = 5161
SYS_SWAPON = 5162 SYS_SWAPON = 5162
SYS_SWAPOFF = 5163 SYS_SWAPOFF = 5163
SYS_REBOOT = 5164 SYS_REBOOT = 5164
SYS_SETHOSTNAME = 5165 SYS_SETHOSTNAME = 5165
SYS_SETDOMAINNAME = 5166 SYS_SETDOMAINNAME = 5166
SYS_CREATE_MODULE = 5167 SYS_CREATE_MODULE = 5167
SYS_INIT_MODULE = 5168 SYS_INIT_MODULE = 5168
SYS_DELETE_MODULE = 5169 SYS_DELETE_MODULE = 5169
SYS_GET_KERNEL_SYMS = 5170 SYS_GET_KERNEL_SYMS = 5170
SYS_QUERY_MODULE = 5171 SYS_QUERY_MODULE = 5171
SYS_QUOTACTL = 5172 SYS_QUOTACTL = 5172
SYS_NFSSERVCTL = 5173 SYS_NFSSERVCTL = 5173
SYS_GETPMSG = 5174 SYS_GETPMSG = 5174
SYS_PUTPMSG = 5175 SYS_PUTPMSG = 5175
SYS_AFS_SYSCALL = 5176 SYS_AFS_SYSCALL = 5176
SYS_RESERVED177 = 5177 SYS_RESERVED177 = 5177
SYS_GETTID = 5178 SYS_GETTID = 5178
SYS_READAHEAD = 5179 SYS_READAHEAD = 5179
SYS_SETXATTR = 5180 SYS_SETXATTR = 5180
SYS_LSETXATTR = 5181 SYS_LSETXATTR = 5181
SYS_FSETXATTR = 5182 SYS_FSETXATTR = 5182
SYS_GETXATTR = 5183 SYS_GETXATTR = 5183
SYS_LGETXATTR = 5184 SYS_LGETXATTR = 5184
SYS_FGETXATTR = 5185 SYS_FGETXATTR = 5185
SYS_LISTXATTR = 5186 SYS_LISTXATTR = 5186
SYS_LLISTXATTR = 5187 SYS_LLISTXATTR = 5187
SYS_FLISTXATTR = 5188 SYS_FLISTXATTR = 5188
SYS_REMOVEXATTR = 5189 SYS_REMOVEXATTR = 5189
SYS_LREMOVEXATTR = 5190 SYS_LREMOVEXATTR = 5190
SYS_FREMOVEXATTR = 5191 SYS_FREMOVEXATTR = 5191
SYS_TKILL = 5192 SYS_TKILL = 5192
SYS_RESERVED193 = 5193 SYS_RESERVED193 = 5193
SYS_FUTEX = 5194 SYS_FUTEX = 5194
SYS_SCHED_SETAFFINITY = 5195 SYS_SCHED_SETAFFINITY = 5195
SYS_SCHED_GETAFFINITY = 5196 SYS_SCHED_GETAFFINITY = 5196
SYS_CACHEFLUSH = 5197 SYS_CACHEFLUSH = 5197
SYS_CACHECTL = 5198 SYS_CACHECTL = 5198
SYS_SYSMIPS = 5199 SYS_SYSMIPS = 5199
SYS_IO_SETUP = 5200 SYS_IO_SETUP = 5200
SYS_IO_DESTROY = 5201 SYS_IO_DESTROY = 5201
SYS_IO_GETEVENTS = 5202 SYS_IO_GETEVENTS = 5202
SYS_IO_SUBMIT = 5203 SYS_IO_SUBMIT = 5203
SYS_IO_CANCEL = 5204 SYS_IO_CANCEL = 5204
SYS_EXIT_GROUP = 5205 SYS_EXIT_GROUP = 5205
SYS_LOOKUP_DCOOKIE = 5206 SYS_LOOKUP_DCOOKIE = 5206
SYS_EPOLL_CREATE = 5207 SYS_EPOLL_CREATE = 5207
SYS_EPOLL_CTL = 5208 SYS_EPOLL_CTL = 5208
SYS_EPOLL_WAIT = 5209 SYS_EPOLL_WAIT = 5209
SYS_REMAP_FILE_PAGES = 5210 SYS_REMAP_FILE_PAGES = 5210
SYS_RT_SIGRETURN = 5211 SYS_RT_SIGRETURN = 5211
SYS_SET_TID_ADDRESS = 5212 SYS_SET_TID_ADDRESS = 5212
SYS_RESTART_SYSCALL = 5213 SYS_RESTART_SYSCALL = 5213
SYS_SEMTIMEDOP = 5214 SYS_SEMTIMEDOP = 5214
SYS_FADVISE64 = 5215 SYS_FADVISE64 = 5215
SYS_TIMER_CREATE = 5216 SYS_TIMER_CREATE = 5216
SYS_TIMER_SETTIME = 5217 SYS_TIMER_SETTIME = 5217
SYS_TIMER_GETTIME = 5218 SYS_TIMER_GETTIME = 5218
SYS_TIMER_GETOVERRUN = 5219 SYS_TIMER_GETOVERRUN = 5219
SYS_TIMER_DELETE = 5220 SYS_TIMER_DELETE = 5220
SYS_CLOCK_SETTIME = 5221 SYS_CLOCK_SETTIME = 5221
SYS_CLOCK_GETTIME = 5222 SYS_CLOCK_GETTIME = 5222
SYS_CLOCK_GETRES = 5223 SYS_CLOCK_GETRES = 5223
SYS_CLOCK_NANOSLEEP = 5224 SYS_CLOCK_NANOSLEEP = 5224
SYS_TGKILL = 5225 SYS_TGKILL = 5225
SYS_UTIMES = 5226 SYS_UTIMES = 5226
SYS_MBIND = 5227 SYS_MBIND = 5227
SYS_GET_MEMPOLICY = 5228 SYS_GET_MEMPOLICY = 5228
SYS_SET_MEMPOLICY = 5229 SYS_SET_MEMPOLICY = 5229
SYS_MQ_OPEN = 5230 SYS_MQ_OPEN = 5230
SYS_MQ_UNLINK = 5231 SYS_MQ_UNLINK = 5231
SYS_MQ_TIMEDSEND = 5232 SYS_MQ_TIMEDSEND = 5232
SYS_MQ_TIMEDRECEIVE = 5233 SYS_MQ_TIMEDRECEIVE = 5233
SYS_MQ_NOTIFY = 5234 SYS_MQ_NOTIFY = 5234
SYS_MQ_GETSETATTR = 5235 SYS_MQ_GETSETATTR = 5235
SYS_VSERVER = 5236 SYS_VSERVER = 5236
SYS_WAITID = 5237 SYS_WAITID = 5237
SYS_ADD_KEY = 5239 SYS_ADD_KEY = 5239
SYS_REQUEST_KEY = 5240 SYS_REQUEST_KEY = 5240
SYS_KEYCTL = 5241 SYS_KEYCTL = 5241
SYS_SET_THREAD_AREA = 5242 SYS_SET_THREAD_AREA = 5242
SYS_INOTIFY_INIT = 5243 SYS_INOTIFY_INIT = 5243
SYS_INOTIFY_ADD_WATCH = 5244 SYS_INOTIFY_ADD_WATCH = 5244
SYS_INOTIFY_RM_WATCH = 5245 SYS_INOTIFY_RM_WATCH = 5245
SYS_MIGRATE_PAGES = 5246 SYS_MIGRATE_PAGES = 5246
SYS_OPENAT = 5247 SYS_OPENAT = 5247
SYS_MKDIRAT = 5248 SYS_MKDIRAT = 5248
SYS_MKNODAT = 5249 SYS_MKNODAT = 5249
SYS_FCHOWNAT = 5250 SYS_FCHOWNAT = 5250
SYS_FUTIMESAT = 5251 SYS_FUTIMESAT = 5251
SYS_NEWFSTATAT = 5252 SYS_NEWFSTATAT = 5252
SYS_UNLINKAT = 5253 SYS_UNLINKAT = 5253
SYS_RENAMEAT = 5254 SYS_RENAMEAT = 5254
SYS_LINKAT = 5255 SYS_LINKAT = 5255
SYS_SYMLINKAT = 5256 SYS_SYMLINKAT = 5256
SYS_READLINKAT = 5257 SYS_READLINKAT = 5257
SYS_FCHMODAT = 5258 SYS_FCHMODAT = 5258
SYS_FACCESSAT = 5259 SYS_FACCESSAT = 5259
SYS_PSELECT6 = 5260 SYS_PSELECT6 = 5260
SYS_PPOLL = 5261 SYS_PPOLL = 5261
SYS_UNSHARE = 5262 SYS_UNSHARE = 5262
SYS_SPLICE = 5263 SYS_SPLICE = 5263
SYS_SYNC_FILE_RANGE = 5264 SYS_SYNC_FILE_RANGE = 5264
SYS_TEE = 5265 SYS_TEE = 5265
SYS_VMSPLICE = 5266 SYS_VMSPLICE = 5266
SYS_MOVE_PAGES = 5267 SYS_MOVE_PAGES = 5267
SYS_SET_ROBUST_LIST = 5268 SYS_SET_ROBUST_LIST = 5268
SYS_GET_ROBUST_LIST = 5269 SYS_GET_ROBUST_LIST = 5269
SYS_KEXEC_LOAD = 5270 SYS_KEXEC_LOAD = 5270
SYS_GETCPU = 5271 SYS_GETCPU = 5271
SYS_EPOLL_PWAIT = 5272 SYS_EPOLL_PWAIT = 5272
SYS_IOPRIO_SET = 5273 SYS_IOPRIO_SET = 5273
SYS_IOPRIO_GET = 5274 SYS_IOPRIO_GET = 5274
SYS_UTIMENSAT = 5275 SYS_UTIMENSAT = 5275
SYS_SIGNALFD = 5276 SYS_SIGNALFD = 5276
SYS_TIMERFD = 5277 SYS_TIMERFD = 5277
SYS_EVENTFD = 5278 SYS_EVENTFD = 5278
SYS_FALLOCATE = 5279 SYS_FALLOCATE = 5279
SYS_TIMERFD_CREATE = 5280 SYS_TIMERFD_CREATE = 5280
SYS_TIMERFD_GETTIME = 5281 SYS_TIMERFD_GETTIME = 5281
SYS_TIMERFD_SETTIME = 5282 SYS_TIMERFD_SETTIME = 5282
SYS_SIGNALFD4 = 5283 SYS_SIGNALFD4 = 5283
SYS_EVENTFD2 = 5284 SYS_EVENTFD2 = 5284
SYS_EPOLL_CREATE1 = 5285 SYS_EPOLL_CREATE1 = 5285
SYS_DUP3 = 5286 SYS_DUP3 = 5286
SYS_PIPE2 = 5287 SYS_PIPE2 = 5287
SYS_INOTIFY_INIT1 = 5288 SYS_INOTIFY_INIT1 = 5288
SYS_PREADV = 5289 SYS_PREADV = 5289
SYS_PWRITEV = 5290 SYS_PWRITEV = 5290
SYS_RT_TGSIGQUEUEINFO = 5291 SYS_RT_TGSIGQUEUEINFO = 5291
SYS_PERF_EVENT_OPEN = 5292 SYS_PERF_EVENT_OPEN = 5292
SYS_ACCEPT4 = 5293 SYS_ACCEPT4 = 5293
SYS_RECVMMSG = 5294 SYS_RECVMMSG = 5294
SYS_FANOTIFY_INIT = 5295 SYS_FANOTIFY_INIT = 5295
SYS_FANOTIFY_MARK = 5296 SYS_FANOTIFY_MARK = 5296
SYS_PRLIMIT64 = 5297 SYS_PRLIMIT64 = 5297
SYS_NAME_TO_HANDLE_AT = 5298 SYS_NAME_TO_HANDLE_AT = 5298
SYS_OPEN_BY_HANDLE_AT = 5299 SYS_OPEN_BY_HANDLE_AT = 5299
SYS_CLOCK_ADJTIME = 5300 SYS_CLOCK_ADJTIME = 5300
SYS_SYNCFS = 5301 SYS_SYNCFS = 5301
SYS_SENDMMSG = 5302 SYS_SENDMMSG = 5302
SYS_SETNS = 5303 SYS_SETNS = 5303
SYS_PROCESS_VM_READV = 5304 SYS_PROCESS_VM_READV = 5304
SYS_PROCESS_VM_WRITEV = 5305 SYS_PROCESS_VM_WRITEV = 5305
SYS_KCMP = 5306 SYS_KCMP = 5306
SYS_FINIT_MODULE = 5307 SYS_FINIT_MODULE = 5307
SYS_GETDENTS64 = 5308 SYS_GETDENTS64 = 5308
SYS_SCHED_SETATTR = 5309 SYS_SCHED_SETATTR = 5309
SYS_SCHED_GETATTR = 5310 SYS_SCHED_GETATTR = 5310
SYS_RENAMEAT2 = 5311 SYS_RENAMEAT2 = 5311
SYS_SECCOMP = 5312 SYS_SECCOMP = 5312
SYS_GETRANDOM = 5313 SYS_GETRANDOM = 5313
SYS_MEMFD_CREATE = 5314 SYS_MEMFD_CREATE = 5314
SYS_BPF = 5315 SYS_BPF = 5315
SYS_EXECVEAT = 5316 SYS_EXECVEAT = 5316
SYS_USERFAULTFD = 5317 SYS_USERFAULTFD = 5317
SYS_MEMBARRIER = 5318 SYS_MEMBARRIER = 5318
SYS_MLOCK2 = 5319 SYS_MLOCK2 = 5319
SYS_COPY_FILE_RANGE = 5320 SYS_COPY_FILE_RANGE = 5320
SYS_PREADV2 = 5321 SYS_PREADV2 = 5321
SYS_PWRITEV2 = 5322 SYS_PWRITEV2 = 5322
SYS_PKEY_MPROTECT = 5323 SYS_PKEY_MPROTECT = 5323
SYS_PKEY_ALLOC = 5324 SYS_PKEY_ALLOC = 5324
SYS_PKEY_FREE = 5325 SYS_PKEY_FREE = 5325
SYS_STATX = 5326 SYS_STATX = 5326
SYS_RSEQ = 5327 SYS_RSEQ = 5327
SYS_IO_PGETEVENTS = 5328 SYS_IO_PGETEVENTS = 5328
SYS_PIDFD_SEND_SIGNAL = 5424 SYS_PIDFD_SEND_SIGNAL = 5424
SYS_IO_URING_SETUP = 5425 SYS_IO_URING_SETUP = 5425
SYS_IO_URING_ENTER = 5426 SYS_IO_URING_ENTER = 5426
SYS_IO_URING_REGISTER = 5427 SYS_IO_URING_REGISTER = 5427
SYS_OPEN_TREE = 5428 SYS_OPEN_TREE = 5428
SYS_MOVE_MOUNT = 5429 SYS_MOVE_MOUNT = 5429
SYS_FSOPEN = 5430 SYS_FSOPEN = 5430
SYS_FSCONFIG = 5431 SYS_FSCONFIG = 5431
SYS_FSMOUNT = 5432 SYS_FSMOUNT = 5432
SYS_FSPICK = 5433 SYS_FSPICK = 5433
SYS_PIDFD_OPEN = 5434 SYS_PIDFD_OPEN = 5434
SYS_CLONE3 = 5435 SYS_CLONE3 = 5435
SYS_CLOSE_RANGE = 5436 SYS_CLOSE_RANGE = 5436
SYS_OPENAT2 = 5437 SYS_OPENAT2 = 5437
SYS_PIDFD_GETFD = 5438 SYS_PIDFD_GETFD = 5438
SYS_FACCESSAT2 = 5439 SYS_FACCESSAT2 = 5439
SYS_PROCESS_MADVISE = 5440 SYS_PROCESS_MADVISE = 5440
SYS_EPOLL_PWAIT2 = 5441 SYS_EPOLL_PWAIT2 = 5441
SYS_MOUNT_SETATTR = 5442 SYS_MOUNT_SETATTR = 5442
SYS_LANDLOCK_CREATE_RULESET = 5444
SYS_LANDLOCK_ADD_RULE = 5445
SYS_LANDLOCK_RESTRICT_SELF = 5446
) )

View file

@ -424,4 +424,7 @@ const (
SYS_PROCESS_MADVISE = 4440 SYS_PROCESS_MADVISE = 4440
SYS_EPOLL_PWAIT2 = 4441 SYS_EPOLL_PWAIT2 = 4441
SYS_MOUNT_SETATTR = 4442 SYS_MOUNT_SETATTR = 4442
SYS_LANDLOCK_CREATE_RULESET = 4444
SYS_LANDLOCK_ADD_RULE = 4445
SYS_LANDLOCK_RESTRICT_SELF = 4446
) )

View file

@ -431,4 +431,7 @@ const (
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -7,400 +7,403 @@
package unix package unix
const ( const (
SYS_RESTART_SYSCALL = 0 SYS_RESTART_SYSCALL = 0
SYS_EXIT = 1 SYS_EXIT = 1
SYS_FORK = 2 SYS_FORK = 2
SYS_READ = 3 SYS_READ = 3
SYS_WRITE = 4 SYS_WRITE = 4
SYS_OPEN = 5 SYS_OPEN = 5
SYS_CLOSE = 6 SYS_CLOSE = 6
SYS_WAITPID = 7 SYS_WAITPID = 7
SYS_CREAT = 8 SYS_CREAT = 8
SYS_LINK = 9 SYS_LINK = 9
SYS_UNLINK = 10 SYS_UNLINK = 10
SYS_EXECVE = 11 SYS_EXECVE = 11
SYS_CHDIR = 12 SYS_CHDIR = 12
SYS_TIME = 13 SYS_TIME = 13
SYS_MKNOD = 14 SYS_MKNOD = 14
SYS_CHMOD = 15 SYS_CHMOD = 15
SYS_LCHOWN = 16 SYS_LCHOWN = 16
SYS_BREAK = 17 SYS_BREAK = 17
SYS_OLDSTAT = 18 SYS_OLDSTAT = 18
SYS_LSEEK = 19 SYS_LSEEK = 19
SYS_GETPID = 20 SYS_GETPID = 20
SYS_MOUNT = 21 SYS_MOUNT = 21
SYS_UMOUNT = 22 SYS_UMOUNT = 22
SYS_SETUID = 23 SYS_SETUID = 23
SYS_GETUID = 24 SYS_GETUID = 24
SYS_STIME = 25 SYS_STIME = 25
SYS_PTRACE = 26 SYS_PTRACE = 26
SYS_ALARM = 27 SYS_ALARM = 27
SYS_OLDFSTAT = 28 SYS_OLDFSTAT = 28
SYS_PAUSE = 29 SYS_PAUSE = 29
SYS_UTIME = 30 SYS_UTIME = 30
SYS_STTY = 31 SYS_STTY = 31
SYS_GTTY = 32 SYS_GTTY = 32
SYS_ACCESS = 33 SYS_ACCESS = 33
SYS_NICE = 34 SYS_NICE = 34
SYS_FTIME = 35 SYS_FTIME = 35
SYS_SYNC = 36 SYS_SYNC = 36
SYS_KILL = 37 SYS_KILL = 37
SYS_RENAME = 38 SYS_RENAME = 38
SYS_MKDIR = 39 SYS_MKDIR = 39
SYS_RMDIR = 40 SYS_RMDIR = 40
SYS_DUP = 41 SYS_DUP = 41
SYS_PIPE = 42 SYS_PIPE = 42
SYS_TIMES = 43 SYS_TIMES = 43
SYS_PROF = 44 SYS_PROF = 44
SYS_BRK = 45 SYS_BRK = 45
SYS_SETGID = 46 SYS_SETGID = 46
SYS_GETGID = 47 SYS_GETGID = 47
SYS_SIGNAL = 48 SYS_SIGNAL = 48
SYS_GETEUID = 49 SYS_GETEUID = 49
SYS_GETEGID = 50 SYS_GETEGID = 50
SYS_ACCT = 51 SYS_ACCT = 51
SYS_UMOUNT2 = 52 SYS_UMOUNT2 = 52
SYS_LOCK = 53 SYS_LOCK = 53
SYS_IOCTL = 54 SYS_IOCTL = 54
SYS_FCNTL = 55 SYS_FCNTL = 55
SYS_MPX = 56 SYS_MPX = 56
SYS_SETPGID = 57 SYS_SETPGID = 57
SYS_ULIMIT = 58 SYS_ULIMIT = 58
SYS_OLDOLDUNAME = 59 SYS_OLDOLDUNAME = 59
SYS_UMASK = 60 SYS_UMASK = 60
SYS_CHROOT = 61 SYS_CHROOT = 61
SYS_USTAT = 62 SYS_USTAT = 62
SYS_DUP2 = 63 SYS_DUP2 = 63
SYS_GETPPID = 64 SYS_GETPPID = 64
SYS_GETPGRP = 65 SYS_GETPGRP = 65
SYS_SETSID = 66 SYS_SETSID = 66
SYS_SIGACTION = 67 SYS_SIGACTION = 67
SYS_SGETMASK = 68 SYS_SGETMASK = 68
SYS_SSETMASK = 69 SYS_SSETMASK = 69
SYS_SETREUID = 70 SYS_SETREUID = 70
SYS_SETREGID = 71 SYS_SETREGID = 71
SYS_SIGSUSPEND = 72 SYS_SIGSUSPEND = 72
SYS_SIGPENDING = 73 SYS_SIGPENDING = 73
SYS_SETHOSTNAME = 74 SYS_SETHOSTNAME = 74
SYS_SETRLIMIT = 75 SYS_SETRLIMIT = 75
SYS_GETRLIMIT = 76 SYS_GETRLIMIT = 76
SYS_GETRUSAGE = 77 SYS_GETRUSAGE = 77
SYS_GETTIMEOFDAY = 78 SYS_GETTIMEOFDAY = 78
SYS_SETTIMEOFDAY = 79 SYS_SETTIMEOFDAY = 79
SYS_GETGROUPS = 80 SYS_GETGROUPS = 80
SYS_SETGROUPS = 81 SYS_SETGROUPS = 81
SYS_SELECT = 82 SYS_SELECT = 82
SYS_SYMLINK = 83 SYS_SYMLINK = 83
SYS_OLDLSTAT = 84 SYS_OLDLSTAT = 84
SYS_READLINK = 85 SYS_READLINK = 85
SYS_USELIB = 86 SYS_USELIB = 86
SYS_SWAPON = 87 SYS_SWAPON = 87
SYS_REBOOT = 88 SYS_REBOOT = 88
SYS_READDIR = 89 SYS_READDIR = 89
SYS_MMAP = 90 SYS_MMAP = 90
SYS_MUNMAP = 91 SYS_MUNMAP = 91
SYS_TRUNCATE = 92 SYS_TRUNCATE = 92
SYS_FTRUNCATE = 93 SYS_FTRUNCATE = 93
SYS_FCHMOD = 94 SYS_FCHMOD = 94
SYS_FCHOWN = 95 SYS_FCHOWN = 95
SYS_GETPRIORITY = 96 SYS_GETPRIORITY = 96
SYS_SETPRIORITY = 97 SYS_SETPRIORITY = 97
SYS_PROFIL = 98 SYS_PROFIL = 98
SYS_STATFS = 99 SYS_STATFS = 99
SYS_FSTATFS = 100 SYS_FSTATFS = 100
SYS_IOPERM = 101 SYS_IOPERM = 101
SYS_SOCKETCALL = 102 SYS_SOCKETCALL = 102
SYS_SYSLOG = 103 SYS_SYSLOG = 103
SYS_SETITIMER = 104 SYS_SETITIMER = 104
SYS_GETITIMER = 105 SYS_GETITIMER = 105
SYS_STAT = 106 SYS_STAT = 106
SYS_LSTAT = 107 SYS_LSTAT = 107
SYS_FSTAT = 108 SYS_FSTAT = 108
SYS_OLDUNAME = 109 SYS_OLDUNAME = 109
SYS_IOPL = 110 SYS_IOPL = 110
SYS_VHANGUP = 111 SYS_VHANGUP = 111
SYS_IDLE = 112 SYS_IDLE = 112
SYS_VM86 = 113 SYS_VM86 = 113
SYS_WAIT4 = 114 SYS_WAIT4 = 114
SYS_SWAPOFF = 115 SYS_SWAPOFF = 115
SYS_SYSINFO = 116 SYS_SYSINFO = 116
SYS_IPC = 117 SYS_IPC = 117
SYS_FSYNC = 118 SYS_FSYNC = 118
SYS_SIGRETURN = 119 SYS_SIGRETURN = 119
SYS_CLONE = 120 SYS_CLONE = 120
SYS_SETDOMAINNAME = 121 SYS_SETDOMAINNAME = 121
SYS_UNAME = 122 SYS_UNAME = 122
SYS_MODIFY_LDT = 123 SYS_MODIFY_LDT = 123
SYS_ADJTIMEX = 124 SYS_ADJTIMEX = 124
SYS_MPROTECT = 125 SYS_MPROTECT = 125
SYS_SIGPROCMASK = 126 SYS_SIGPROCMASK = 126
SYS_CREATE_MODULE = 127 SYS_CREATE_MODULE = 127
SYS_INIT_MODULE = 128 SYS_INIT_MODULE = 128
SYS_DELETE_MODULE = 129 SYS_DELETE_MODULE = 129
SYS_GET_KERNEL_SYMS = 130 SYS_GET_KERNEL_SYMS = 130
SYS_QUOTACTL = 131 SYS_QUOTACTL = 131
SYS_GETPGID = 132 SYS_GETPGID = 132
SYS_FCHDIR = 133 SYS_FCHDIR = 133
SYS_BDFLUSH = 134 SYS_BDFLUSH = 134
SYS_SYSFS = 135 SYS_SYSFS = 135
SYS_PERSONALITY = 136 SYS_PERSONALITY = 136
SYS_AFS_SYSCALL = 137 SYS_AFS_SYSCALL = 137
SYS_SETFSUID = 138 SYS_SETFSUID = 138
SYS_SETFSGID = 139 SYS_SETFSGID = 139
SYS__LLSEEK = 140 SYS__LLSEEK = 140
SYS_GETDENTS = 141 SYS_GETDENTS = 141
SYS__NEWSELECT = 142 SYS__NEWSELECT = 142
SYS_FLOCK = 143 SYS_FLOCK = 143
SYS_MSYNC = 144 SYS_MSYNC = 144
SYS_READV = 145 SYS_READV = 145
SYS_WRITEV = 146 SYS_WRITEV = 146
SYS_GETSID = 147 SYS_GETSID = 147
SYS_FDATASYNC = 148 SYS_FDATASYNC = 148
SYS__SYSCTL = 149 SYS__SYSCTL = 149
SYS_MLOCK = 150 SYS_MLOCK = 150
SYS_MUNLOCK = 151 SYS_MUNLOCK = 151
SYS_MLOCKALL = 152 SYS_MLOCKALL = 152
SYS_MUNLOCKALL = 153 SYS_MUNLOCKALL = 153
SYS_SCHED_SETPARAM = 154 SYS_SCHED_SETPARAM = 154
SYS_SCHED_GETPARAM = 155 SYS_SCHED_GETPARAM = 155
SYS_SCHED_SETSCHEDULER = 156 SYS_SCHED_SETSCHEDULER = 156
SYS_SCHED_GETSCHEDULER = 157 SYS_SCHED_GETSCHEDULER = 157
SYS_SCHED_YIELD = 158 SYS_SCHED_YIELD = 158
SYS_SCHED_GET_PRIORITY_MAX = 159 SYS_SCHED_GET_PRIORITY_MAX = 159
SYS_SCHED_GET_PRIORITY_MIN = 160 SYS_SCHED_GET_PRIORITY_MIN = 160
SYS_SCHED_RR_GET_INTERVAL = 161 SYS_SCHED_RR_GET_INTERVAL = 161
SYS_NANOSLEEP = 162 SYS_NANOSLEEP = 162
SYS_MREMAP = 163 SYS_MREMAP = 163
SYS_SETRESUID = 164 SYS_SETRESUID = 164
SYS_GETRESUID = 165 SYS_GETRESUID = 165
SYS_QUERY_MODULE = 166 SYS_QUERY_MODULE = 166
SYS_POLL = 167 SYS_POLL = 167
SYS_NFSSERVCTL = 168 SYS_NFSSERVCTL = 168
SYS_SETRESGID = 169 SYS_SETRESGID = 169
SYS_GETRESGID = 170 SYS_GETRESGID = 170
SYS_PRCTL = 171 SYS_PRCTL = 171
SYS_RT_SIGRETURN = 172 SYS_RT_SIGRETURN = 172
SYS_RT_SIGACTION = 173 SYS_RT_SIGACTION = 173
SYS_RT_SIGPROCMASK = 174 SYS_RT_SIGPROCMASK = 174
SYS_RT_SIGPENDING = 175 SYS_RT_SIGPENDING = 175
SYS_RT_SIGTIMEDWAIT = 176 SYS_RT_SIGTIMEDWAIT = 176
SYS_RT_SIGQUEUEINFO = 177 SYS_RT_SIGQUEUEINFO = 177
SYS_RT_SIGSUSPEND = 178 SYS_RT_SIGSUSPEND = 178
SYS_PREAD64 = 179 SYS_PREAD64 = 179
SYS_PWRITE64 = 180 SYS_PWRITE64 = 180
SYS_CHOWN = 181 SYS_CHOWN = 181
SYS_GETCWD = 182 SYS_GETCWD = 182
SYS_CAPGET = 183 SYS_CAPGET = 183
SYS_CAPSET = 184 SYS_CAPSET = 184
SYS_SIGALTSTACK = 185 SYS_SIGALTSTACK = 185
SYS_SENDFILE = 186 SYS_SENDFILE = 186
SYS_GETPMSG = 187 SYS_GETPMSG = 187
SYS_PUTPMSG = 188 SYS_PUTPMSG = 188
SYS_VFORK = 189 SYS_VFORK = 189
SYS_UGETRLIMIT = 190 SYS_UGETRLIMIT = 190
SYS_READAHEAD = 191 SYS_READAHEAD = 191
SYS_PCICONFIG_READ = 198 SYS_PCICONFIG_READ = 198
SYS_PCICONFIG_WRITE = 199 SYS_PCICONFIG_WRITE = 199
SYS_PCICONFIG_IOBASE = 200 SYS_PCICONFIG_IOBASE = 200
SYS_MULTIPLEXER = 201 SYS_MULTIPLEXER = 201
SYS_GETDENTS64 = 202 SYS_GETDENTS64 = 202
SYS_PIVOT_ROOT = 203 SYS_PIVOT_ROOT = 203
SYS_MADVISE = 205 SYS_MADVISE = 205
SYS_MINCORE = 206 SYS_MINCORE = 206
SYS_GETTID = 207 SYS_GETTID = 207
SYS_TKILL = 208 SYS_TKILL = 208
SYS_SETXATTR = 209 SYS_SETXATTR = 209
SYS_LSETXATTR = 210 SYS_LSETXATTR = 210
SYS_FSETXATTR = 211 SYS_FSETXATTR = 211
SYS_GETXATTR = 212 SYS_GETXATTR = 212
SYS_LGETXATTR = 213 SYS_LGETXATTR = 213
SYS_FGETXATTR = 214 SYS_FGETXATTR = 214
SYS_LISTXATTR = 215 SYS_LISTXATTR = 215
SYS_LLISTXATTR = 216 SYS_LLISTXATTR = 216
SYS_FLISTXATTR = 217 SYS_FLISTXATTR = 217
SYS_REMOVEXATTR = 218 SYS_REMOVEXATTR = 218
SYS_LREMOVEXATTR = 219 SYS_LREMOVEXATTR = 219
SYS_FREMOVEXATTR = 220 SYS_FREMOVEXATTR = 220
SYS_FUTEX = 221 SYS_FUTEX = 221
SYS_SCHED_SETAFFINITY = 222 SYS_SCHED_SETAFFINITY = 222
SYS_SCHED_GETAFFINITY = 223 SYS_SCHED_GETAFFINITY = 223
SYS_TUXCALL = 225 SYS_TUXCALL = 225
SYS_IO_SETUP = 227 SYS_IO_SETUP = 227
SYS_IO_DESTROY = 228 SYS_IO_DESTROY = 228
SYS_IO_GETEVENTS = 229 SYS_IO_GETEVENTS = 229
SYS_IO_SUBMIT = 230 SYS_IO_SUBMIT = 230
SYS_IO_CANCEL = 231 SYS_IO_CANCEL = 231
SYS_SET_TID_ADDRESS = 232 SYS_SET_TID_ADDRESS = 232
SYS_FADVISE64 = 233 SYS_FADVISE64 = 233
SYS_EXIT_GROUP = 234 SYS_EXIT_GROUP = 234
SYS_LOOKUP_DCOOKIE = 235 SYS_LOOKUP_DCOOKIE = 235
SYS_EPOLL_CREATE = 236 SYS_EPOLL_CREATE = 236
SYS_EPOLL_CTL = 237 SYS_EPOLL_CTL = 237
SYS_EPOLL_WAIT = 238 SYS_EPOLL_WAIT = 238
SYS_REMAP_FILE_PAGES = 239 SYS_REMAP_FILE_PAGES = 239
SYS_TIMER_CREATE = 240 SYS_TIMER_CREATE = 240
SYS_TIMER_SETTIME = 241 SYS_TIMER_SETTIME = 241
SYS_TIMER_GETTIME = 242 SYS_TIMER_GETTIME = 242
SYS_TIMER_GETOVERRUN = 243 SYS_TIMER_GETOVERRUN = 243
SYS_TIMER_DELETE = 244 SYS_TIMER_DELETE = 244
SYS_CLOCK_SETTIME = 245 SYS_CLOCK_SETTIME = 245
SYS_CLOCK_GETTIME = 246 SYS_CLOCK_GETTIME = 246
SYS_CLOCK_GETRES = 247 SYS_CLOCK_GETRES = 247
SYS_CLOCK_NANOSLEEP = 248 SYS_CLOCK_NANOSLEEP = 248
SYS_SWAPCONTEXT = 249 SYS_SWAPCONTEXT = 249
SYS_TGKILL = 250 SYS_TGKILL = 250
SYS_UTIMES = 251 SYS_UTIMES = 251
SYS_STATFS64 = 252 SYS_STATFS64 = 252
SYS_FSTATFS64 = 253 SYS_FSTATFS64 = 253
SYS_RTAS = 255 SYS_RTAS = 255
SYS_SYS_DEBUG_SETCONTEXT = 256 SYS_SYS_DEBUG_SETCONTEXT = 256
SYS_MIGRATE_PAGES = 258 SYS_MIGRATE_PAGES = 258
SYS_MBIND = 259 SYS_MBIND = 259
SYS_GET_MEMPOLICY = 260 SYS_GET_MEMPOLICY = 260
SYS_SET_MEMPOLICY = 261 SYS_SET_MEMPOLICY = 261
SYS_MQ_OPEN = 262 SYS_MQ_OPEN = 262
SYS_MQ_UNLINK = 263 SYS_MQ_UNLINK = 263
SYS_MQ_TIMEDSEND = 264 SYS_MQ_TIMEDSEND = 264
SYS_MQ_TIMEDRECEIVE = 265 SYS_MQ_TIMEDRECEIVE = 265
SYS_MQ_NOTIFY = 266 SYS_MQ_NOTIFY = 266
SYS_MQ_GETSETATTR = 267 SYS_MQ_GETSETATTR = 267
SYS_KEXEC_LOAD = 268 SYS_KEXEC_LOAD = 268
SYS_ADD_KEY = 269 SYS_ADD_KEY = 269
SYS_REQUEST_KEY = 270 SYS_REQUEST_KEY = 270
SYS_KEYCTL = 271 SYS_KEYCTL = 271
SYS_WAITID = 272 SYS_WAITID = 272
SYS_IOPRIO_SET = 273 SYS_IOPRIO_SET = 273
SYS_IOPRIO_GET = 274 SYS_IOPRIO_GET = 274
SYS_INOTIFY_INIT = 275 SYS_INOTIFY_INIT = 275
SYS_INOTIFY_ADD_WATCH = 276 SYS_INOTIFY_ADD_WATCH = 276
SYS_INOTIFY_RM_WATCH = 277 SYS_INOTIFY_RM_WATCH = 277
SYS_SPU_RUN = 278 SYS_SPU_RUN = 278
SYS_SPU_CREATE = 279 SYS_SPU_CREATE = 279
SYS_PSELECT6 = 280 SYS_PSELECT6 = 280
SYS_PPOLL = 281 SYS_PPOLL = 281
SYS_UNSHARE = 282 SYS_UNSHARE = 282
SYS_SPLICE = 283 SYS_SPLICE = 283
SYS_TEE = 284 SYS_TEE = 284
SYS_VMSPLICE = 285 SYS_VMSPLICE = 285
SYS_OPENAT = 286 SYS_OPENAT = 286
SYS_MKDIRAT = 287 SYS_MKDIRAT = 287
SYS_MKNODAT = 288 SYS_MKNODAT = 288
SYS_FCHOWNAT = 289 SYS_FCHOWNAT = 289
SYS_FUTIMESAT = 290 SYS_FUTIMESAT = 290
SYS_NEWFSTATAT = 291 SYS_NEWFSTATAT = 291
SYS_UNLINKAT = 292 SYS_UNLINKAT = 292
SYS_RENAMEAT = 293 SYS_RENAMEAT = 293
SYS_LINKAT = 294 SYS_LINKAT = 294
SYS_SYMLINKAT = 295 SYS_SYMLINKAT = 295
SYS_READLINKAT = 296 SYS_READLINKAT = 296
SYS_FCHMODAT = 297 SYS_FCHMODAT = 297
SYS_FACCESSAT = 298 SYS_FACCESSAT = 298
SYS_GET_ROBUST_LIST = 299 SYS_GET_ROBUST_LIST = 299
SYS_SET_ROBUST_LIST = 300 SYS_SET_ROBUST_LIST = 300
SYS_MOVE_PAGES = 301 SYS_MOVE_PAGES = 301
SYS_GETCPU = 302 SYS_GETCPU = 302
SYS_EPOLL_PWAIT = 303 SYS_EPOLL_PWAIT = 303
SYS_UTIMENSAT = 304 SYS_UTIMENSAT = 304
SYS_SIGNALFD = 305 SYS_SIGNALFD = 305
SYS_TIMERFD_CREATE = 306 SYS_TIMERFD_CREATE = 306
SYS_EVENTFD = 307 SYS_EVENTFD = 307
SYS_SYNC_FILE_RANGE2 = 308 SYS_SYNC_FILE_RANGE2 = 308
SYS_FALLOCATE = 309 SYS_FALLOCATE = 309
SYS_SUBPAGE_PROT = 310 SYS_SUBPAGE_PROT = 310
SYS_TIMERFD_SETTIME = 311 SYS_TIMERFD_SETTIME = 311
SYS_TIMERFD_GETTIME = 312 SYS_TIMERFD_GETTIME = 312
SYS_SIGNALFD4 = 313 SYS_SIGNALFD4 = 313
SYS_EVENTFD2 = 314 SYS_EVENTFD2 = 314
SYS_EPOLL_CREATE1 = 315 SYS_EPOLL_CREATE1 = 315
SYS_DUP3 = 316 SYS_DUP3 = 316
SYS_PIPE2 = 317 SYS_PIPE2 = 317
SYS_INOTIFY_INIT1 = 318 SYS_INOTIFY_INIT1 = 318
SYS_PERF_EVENT_OPEN = 319 SYS_PERF_EVENT_OPEN = 319
SYS_PREADV = 320 SYS_PREADV = 320
SYS_PWRITEV = 321 SYS_PWRITEV = 321
SYS_RT_TGSIGQUEUEINFO = 322 SYS_RT_TGSIGQUEUEINFO = 322
SYS_FANOTIFY_INIT = 323 SYS_FANOTIFY_INIT = 323
SYS_FANOTIFY_MARK = 324 SYS_FANOTIFY_MARK = 324
SYS_PRLIMIT64 = 325 SYS_PRLIMIT64 = 325
SYS_SOCKET = 326 SYS_SOCKET = 326
SYS_BIND = 327 SYS_BIND = 327
SYS_CONNECT = 328 SYS_CONNECT = 328
SYS_LISTEN = 329 SYS_LISTEN = 329
SYS_ACCEPT = 330 SYS_ACCEPT = 330
SYS_GETSOCKNAME = 331 SYS_GETSOCKNAME = 331
SYS_GETPEERNAME = 332 SYS_GETPEERNAME = 332
SYS_SOCKETPAIR = 333 SYS_SOCKETPAIR = 333
SYS_SEND = 334 SYS_SEND = 334
SYS_SENDTO = 335 SYS_SENDTO = 335
SYS_RECV = 336 SYS_RECV = 336
SYS_RECVFROM = 337 SYS_RECVFROM = 337
SYS_SHUTDOWN = 338 SYS_SHUTDOWN = 338
SYS_SETSOCKOPT = 339 SYS_SETSOCKOPT = 339
SYS_GETSOCKOPT = 340 SYS_GETSOCKOPT = 340
SYS_SENDMSG = 341 SYS_SENDMSG = 341
SYS_RECVMSG = 342 SYS_RECVMSG = 342
SYS_RECVMMSG = 343 SYS_RECVMMSG = 343
SYS_ACCEPT4 = 344 SYS_ACCEPT4 = 344
SYS_NAME_TO_HANDLE_AT = 345 SYS_NAME_TO_HANDLE_AT = 345
SYS_OPEN_BY_HANDLE_AT = 346 SYS_OPEN_BY_HANDLE_AT = 346
SYS_CLOCK_ADJTIME = 347 SYS_CLOCK_ADJTIME = 347
SYS_SYNCFS = 348 SYS_SYNCFS = 348
SYS_SENDMMSG = 349 SYS_SENDMMSG = 349
SYS_SETNS = 350 SYS_SETNS = 350
SYS_PROCESS_VM_READV = 351 SYS_PROCESS_VM_READV = 351
SYS_PROCESS_VM_WRITEV = 352 SYS_PROCESS_VM_WRITEV = 352
SYS_FINIT_MODULE = 353 SYS_FINIT_MODULE = 353
SYS_KCMP = 354 SYS_KCMP = 354
SYS_SCHED_SETATTR = 355 SYS_SCHED_SETATTR = 355
SYS_SCHED_GETATTR = 356 SYS_SCHED_GETATTR = 356
SYS_RENAMEAT2 = 357 SYS_RENAMEAT2 = 357
SYS_SECCOMP = 358 SYS_SECCOMP = 358
SYS_GETRANDOM = 359 SYS_GETRANDOM = 359
SYS_MEMFD_CREATE = 360 SYS_MEMFD_CREATE = 360
SYS_BPF = 361 SYS_BPF = 361
SYS_EXECVEAT = 362 SYS_EXECVEAT = 362
SYS_SWITCH_ENDIAN = 363 SYS_SWITCH_ENDIAN = 363
SYS_USERFAULTFD = 364 SYS_USERFAULTFD = 364
SYS_MEMBARRIER = 365 SYS_MEMBARRIER = 365
SYS_MLOCK2 = 378 SYS_MLOCK2 = 378
SYS_COPY_FILE_RANGE = 379 SYS_COPY_FILE_RANGE = 379
SYS_PREADV2 = 380 SYS_PREADV2 = 380
SYS_PWRITEV2 = 381 SYS_PWRITEV2 = 381
SYS_KEXEC_FILE_LOAD = 382 SYS_KEXEC_FILE_LOAD = 382
SYS_STATX = 383 SYS_STATX = 383
SYS_PKEY_ALLOC = 384 SYS_PKEY_ALLOC = 384
SYS_PKEY_FREE = 385 SYS_PKEY_FREE = 385
SYS_PKEY_MPROTECT = 386 SYS_PKEY_MPROTECT = 386
SYS_RSEQ = 387 SYS_RSEQ = 387
SYS_IO_PGETEVENTS = 388 SYS_IO_PGETEVENTS = 388
SYS_SEMTIMEDOP = 392 SYS_SEMTIMEDOP = 392
SYS_SEMGET = 393 SYS_SEMGET = 393
SYS_SEMCTL = 394 SYS_SEMCTL = 394
SYS_SHMGET = 395 SYS_SHMGET = 395
SYS_SHMCTL = 396 SYS_SHMCTL = 396
SYS_SHMAT = 397 SYS_SHMAT = 397
SYS_SHMDT = 398 SYS_SHMDT = 398
SYS_MSGGET = 399 SYS_MSGGET = 399
SYS_MSGSND = 400 SYS_MSGSND = 400
SYS_MSGRCV = 401 SYS_MSGRCV = 401
SYS_MSGCTL = 402 SYS_MSGCTL = 402
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -7,400 +7,403 @@
package unix package unix
const ( const (
SYS_RESTART_SYSCALL = 0 SYS_RESTART_SYSCALL = 0
SYS_EXIT = 1 SYS_EXIT = 1
SYS_FORK = 2 SYS_FORK = 2
SYS_READ = 3 SYS_READ = 3
SYS_WRITE = 4 SYS_WRITE = 4
SYS_OPEN = 5 SYS_OPEN = 5
SYS_CLOSE = 6 SYS_CLOSE = 6
SYS_WAITPID = 7 SYS_WAITPID = 7
SYS_CREAT = 8 SYS_CREAT = 8
SYS_LINK = 9 SYS_LINK = 9
SYS_UNLINK = 10 SYS_UNLINK = 10
SYS_EXECVE = 11 SYS_EXECVE = 11
SYS_CHDIR = 12 SYS_CHDIR = 12
SYS_TIME = 13 SYS_TIME = 13
SYS_MKNOD = 14 SYS_MKNOD = 14
SYS_CHMOD = 15 SYS_CHMOD = 15
SYS_LCHOWN = 16 SYS_LCHOWN = 16
SYS_BREAK = 17 SYS_BREAK = 17
SYS_OLDSTAT = 18 SYS_OLDSTAT = 18
SYS_LSEEK = 19 SYS_LSEEK = 19
SYS_GETPID = 20 SYS_GETPID = 20
SYS_MOUNT = 21 SYS_MOUNT = 21
SYS_UMOUNT = 22 SYS_UMOUNT = 22
SYS_SETUID = 23 SYS_SETUID = 23
SYS_GETUID = 24 SYS_GETUID = 24
SYS_STIME = 25 SYS_STIME = 25
SYS_PTRACE = 26 SYS_PTRACE = 26
SYS_ALARM = 27 SYS_ALARM = 27
SYS_OLDFSTAT = 28 SYS_OLDFSTAT = 28
SYS_PAUSE = 29 SYS_PAUSE = 29
SYS_UTIME = 30 SYS_UTIME = 30
SYS_STTY = 31 SYS_STTY = 31
SYS_GTTY = 32 SYS_GTTY = 32
SYS_ACCESS = 33 SYS_ACCESS = 33
SYS_NICE = 34 SYS_NICE = 34
SYS_FTIME = 35 SYS_FTIME = 35
SYS_SYNC = 36 SYS_SYNC = 36
SYS_KILL = 37 SYS_KILL = 37
SYS_RENAME = 38 SYS_RENAME = 38
SYS_MKDIR = 39 SYS_MKDIR = 39
SYS_RMDIR = 40 SYS_RMDIR = 40
SYS_DUP = 41 SYS_DUP = 41
SYS_PIPE = 42 SYS_PIPE = 42
SYS_TIMES = 43 SYS_TIMES = 43
SYS_PROF = 44 SYS_PROF = 44
SYS_BRK = 45 SYS_BRK = 45
SYS_SETGID = 46 SYS_SETGID = 46
SYS_GETGID = 47 SYS_GETGID = 47
SYS_SIGNAL = 48 SYS_SIGNAL = 48
SYS_GETEUID = 49 SYS_GETEUID = 49
SYS_GETEGID = 50 SYS_GETEGID = 50
SYS_ACCT = 51 SYS_ACCT = 51
SYS_UMOUNT2 = 52 SYS_UMOUNT2 = 52
SYS_LOCK = 53 SYS_LOCK = 53
SYS_IOCTL = 54 SYS_IOCTL = 54
SYS_FCNTL = 55 SYS_FCNTL = 55
SYS_MPX = 56 SYS_MPX = 56
SYS_SETPGID = 57 SYS_SETPGID = 57
SYS_ULIMIT = 58 SYS_ULIMIT = 58
SYS_OLDOLDUNAME = 59 SYS_OLDOLDUNAME = 59
SYS_UMASK = 60 SYS_UMASK = 60
SYS_CHROOT = 61 SYS_CHROOT = 61
SYS_USTAT = 62 SYS_USTAT = 62
SYS_DUP2 = 63 SYS_DUP2 = 63
SYS_GETPPID = 64 SYS_GETPPID = 64
SYS_GETPGRP = 65 SYS_GETPGRP = 65
SYS_SETSID = 66 SYS_SETSID = 66
SYS_SIGACTION = 67 SYS_SIGACTION = 67
SYS_SGETMASK = 68 SYS_SGETMASK = 68
SYS_SSETMASK = 69 SYS_SSETMASK = 69
SYS_SETREUID = 70 SYS_SETREUID = 70
SYS_SETREGID = 71 SYS_SETREGID = 71
SYS_SIGSUSPEND = 72 SYS_SIGSUSPEND = 72
SYS_SIGPENDING = 73 SYS_SIGPENDING = 73
SYS_SETHOSTNAME = 74 SYS_SETHOSTNAME = 74
SYS_SETRLIMIT = 75 SYS_SETRLIMIT = 75
SYS_GETRLIMIT = 76 SYS_GETRLIMIT = 76
SYS_GETRUSAGE = 77 SYS_GETRUSAGE = 77
SYS_GETTIMEOFDAY = 78 SYS_GETTIMEOFDAY = 78
SYS_SETTIMEOFDAY = 79 SYS_SETTIMEOFDAY = 79
SYS_GETGROUPS = 80 SYS_GETGROUPS = 80
SYS_SETGROUPS = 81 SYS_SETGROUPS = 81
SYS_SELECT = 82 SYS_SELECT = 82
SYS_SYMLINK = 83 SYS_SYMLINK = 83
SYS_OLDLSTAT = 84 SYS_OLDLSTAT = 84
SYS_READLINK = 85 SYS_READLINK = 85
SYS_USELIB = 86 SYS_USELIB = 86
SYS_SWAPON = 87 SYS_SWAPON = 87
SYS_REBOOT = 88 SYS_REBOOT = 88
SYS_READDIR = 89 SYS_READDIR = 89
SYS_MMAP = 90 SYS_MMAP = 90
SYS_MUNMAP = 91 SYS_MUNMAP = 91
SYS_TRUNCATE = 92 SYS_TRUNCATE = 92
SYS_FTRUNCATE = 93 SYS_FTRUNCATE = 93
SYS_FCHMOD = 94 SYS_FCHMOD = 94
SYS_FCHOWN = 95 SYS_FCHOWN = 95
SYS_GETPRIORITY = 96 SYS_GETPRIORITY = 96
SYS_SETPRIORITY = 97 SYS_SETPRIORITY = 97
SYS_PROFIL = 98 SYS_PROFIL = 98
SYS_STATFS = 99 SYS_STATFS = 99
SYS_FSTATFS = 100 SYS_FSTATFS = 100
SYS_IOPERM = 101 SYS_IOPERM = 101
SYS_SOCKETCALL = 102 SYS_SOCKETCALL = 102
SYS_SYSLOG = 103 SYS_SYSLOG = 103
SYS_SETITIMER = 104 SYS_SETITIMER = 104
SYS_GETITIMER = 105 SYS_GETITIMER = 105
SYS_STAT = 106 SYS_STAT = 106
SYS_LSTAT = 107 SYS_LSTAT = 107
SYS_FSTAT = 108 SYS_FSTAT = 108
SYS_OLDUNAME = 109 SYS_OLDUNAME = 109
SYS_IOPL = 110 SYS_IOPL = 110
SYS_VHANGUP = 111 SYS_VHANGUP = 111
SYS_IDLE = 112 SYS_IDLE = 112
SYS_VM86 = 113 SYS_VM86 = 113
SYS_WAIT4 = 114 SYS_WAIT4 = 114
SYS_SWAPOFF = 115 SYS_SWAPOFF = 115
SYS_SYSINFO = 116 SYS_SYSINFO = 116
SYS_IPC = 117 SYS_IPC = 117
SYS_FSYNC = 118 SYS_FSYNC = 118
SYS_SIGRETURN = 119 SYS_SIGRETURN = 119
SYS_CLONE = 120 SYS_CLONE = 120
SYS_SETDOMAINNAME = 121 SYS_SETDOMAINNAME = 121
SYS_UNAME = 122 SYS_UNAME = 122
SYS_MODIFY_LDT = 123 SYS_MODIFY_LDT = 123
SYS_ADJTIMEX = 124 SYS_ADJTIMEX = 124
SYS_MPROTECT = 125 SYS_MPROTECT = 125
SYS_SIGPROCMASK = 126 SYS_SIGPROCMASK = 126
SYS_CREATE_MODULE = 127 SYS_CREATE_MODULE = 127
SYS_INIT_MODULE = 128 SYS_INIT_MODULE = 128
SYS_DELETE_MODULE = 129 SYS_DELETE_MODULE = 129
SYS_GET_KERNEL_SYMS = 130 SYS_GET_KERNEL_SYMS = 130
SYS_QUOTACTL = 131 SYS_QUOTACTL = 131
SYS_GETPGID = 132 SYS_GETPGID = 132
SYS_FCHDIR = 133 SYS_FCHDIR = 133
SYS_BDFLUSH = 134 SYS_BDFLUSH = 134
SYS_SYSFS = 135 SYS_SYSFS = 135
SYS_PERSONALITY = 136 SYS_PERSONALITY = 136
SYS_AFS_SYSCALL = 137 SYS_AFS_SYSCALL = 137
SYS_SETFSUID = 138 SYS_SETFSUID = 138
SYS_SETFSGID = 139 SYS_SETFSGID = 139
SYS__LLSEEK = 140 SYS__LLSEEK = 140
SYS_GETDENTS = 141 SYS_GETDENTS = 141
SYS__NEWSELECT = 142 SYS__NEWSELECT = 142
SYS_FLOCK = 143 SYS_FLOCK = 143
SYS_MSYNC = 144 SYS_MSYNC = 144
SYS_READV = 145 SYS_READV = 145
SYS_WRITEV = 146 SYS_WRITEV = 146
SYS_GETSID = 147 SYS_GETSID = 147
SYS_FDATASYNC = 148 SYS_FDATASYNC = 148
SYS__SYSCTL = 149 SYS__SYSCTL = 149
SYS_MLOCK = 150 SYS_MLOCK = 150
SYS_MUNLOCK = 151 SYS_MUNLOCK = 151
SYS_MLOCKALL = 152 SYS_MLOCKALL = 152
SYS_MUNLOCKALL = 153 SYS_MUNLOCKALL = 153
SYS_SCHED_SETPARAM = 154 SYS_SCHED_SETPARAM = 154
SYS_SCHED_GETPARAM = 155 SYS_SCHED_GETPARAM = 155
SYS_SCHED_SETSCHEDULER = 156 SYS_SCHED_SETSCHEDULER = 156
SYS_SCHED_GETSCHEDULER = 157 SYS_SCHED_GETSCHEDULER = 157
SYS_SCHED_YIELD = 158 SYS_SCHED_YIELD = 158
SYS_SCHED_GET_PRIORITY_MAX = 159 SYS_SCHED_GET_PRIORITY_MAX = 159
SYS_SCHED_GET_PRIORITY_MIN = 160 SYS_SCHED_GET_PRIORITY_MIN = 160
SYS_SCHED_RR_GET_INTERVAL = 161 SYS_SCHED_RR_GET_INTERVAL = 161
SYS_NANOSLEEP = 162 SYS_NANOSLEEP = 162
SYS_MREMAP = 163 SYS_MREMAP = 163
SYS_SETRESUID = 164 SYS_SETRESUID = 164
SYS_GETRESUID = 165 SYS_GETRESUID = 165
SYS_QUERY_MODULE = 166 SYS_QUERY_MODULE = 166
SYS_POLL = 167 SYS_POLL = 167
SYS_NFSSERVCTL = 168 SYS_NFSSERVCTL = 168
SYS_SETRESGID = 169 SYS_SETRESGID = 169
SYS_GETRESGID = 170 SYS_GETRESGID = 170
SYS_PRCTL = 171 SYS_PRCTL = 171
SYS_RT_SIGRETURN = 172 SYS_RT_SIGRETURN = 172
SYS_RT_SIGACTION = 173 SYS_RT_SIGACTION = 173
SYS_RT_SIGPROCMASK = 174 SYS_RT_SIGPROCMASK = 174
SYS_RT_SIGPENDING = 175 SYS_RT_SIGPENDING = 175
SYS_RT_SIGTIMEDWAIT = 176 SYS_RT_SIGTIMEDWAIT = 176
SYS_RT_SIGQUEUEINFO = 177 SYS_RT_SIGQUEUEINFO = 177
SYS_RT_SIGSUSPEND = 178 SYS_RT_SIGSUSPEND = 178
SYS_PREAD64 = 179 SYS_PREAD64 = 179
SYS_PWRITE64 = 180 SYS_PWRITE64 = 180
SYS_CHOWN = 181 SYS_CHOWN = 181
SYS_GETCWD = 182 SYS_GETCWD = 182
SYS_CAPGET = 183 SYS_CAPGET = 183
SYS_CAPSET = 184 SYS_CAPSET = 184
SYS_SIGALTSTACK = 185 SYS_SIGALTSTACK = 185
SYS_SENDFILE = 186 SYS_SENDFILE = 186
SYS_GETPMSG = 187 SYS_GETPMSG = 187
SYS_PUTPMSG = 188 SYS_PUTPMSG = 188
SYS_VFORK = 189 SYS_VFORK = 189
SYS_UGETRLIMIT = 190 SYS_UGETRLIMIT = 190
SYS_READAHEAD = 191 SYS_READAHEAD = 191
SYS_PCICONFIG_READ = 198 SYS_PCICONFIG_READ = 198
SYS_PCICONFIG_WRITE = 199 SYS_PCICONFIG_WRITE = 199
SYS_PCICONFIG_IOBASE = 200 SYS_PCICONFIG_IOBASE = 200
SYS_MULTIPLEXER = 201 SYS_MULTIPLEXER = 201
SYS_GETDENTS64 = 202 SYS_GETDENTS64 = 202
SYS_PIVOT_ROOT = 203 SYS_PIVOT_ROOT = 203
SYS_MADVISE = 205 SYS_MADVISE = 205
SYS_MINCORE = 206 SYS_MINCORE = 206
SYS_GETTID = 207 SYS_GETTID = 207
SYS_TKILL = 208 SYS_TKILL = 208
SYS_SETXATTR = 209 SYS_SETXATTR = 209
SYS_LSETXATTR = 210 SYS_LSETXATTR = 210
SYS_FSETXATTR = 211 SYS_FSETXATTR = 211
SYS_GETXATTR = 212 SYS_GETXATTR = 212
SYS_LGETXATTR = 213 SYS_LGETXATTR = 213
SYS_FGETXATTR = 214 SYS_FGETXATTR = 214
SYS_LISTXATTR = 215 SYS_LISTXATTR = 215
SYS_LLISTXATTR = 216 SYS_LLISTXATTR = 216
SYS_FLISTXATTR = 217 SYS_FLISTXATTR = 217
SYS_REMOVEXATTR = 218 SYS_REMOVEXATTR = 218
SYS_LREMOVEXATTR = 219 SYS_LREMOVEXATTR = 219
SYS_FREMOVEXATTR = 220 SYS_FREMOVEXATTR = 220
SYS_FUTEX = 221 SYS_FUTEX = 221
SYS_SCHED_SETAFFINITY = 222 SYS_SCHED_SETAFFINITY = 222
SYS_SCHED_GETAFFINITY = 223 SYS_SCHED_GETAFFINITY = 223
SYS_TUXCALL = 225 SYS_TUXCALL = 225
SYS_IO_SETUP = 227 SYS_IO_SETUP = 227
SYS_IO_DESTROY = 228 SYS_IO_DESTROY = 228
SYS_IO_GETEVENTS = 229 SYS_IO_GETEVENTS = 229
SYS_IO_SUBMIT = 230 SYS_IO_SUBMIT = 230
SYS_IO_CANCEL = 231 SYS_IO_CANCEL = 231
SYS_SET_TID_ADDRESS = 232 SYS_SET_TID_ADDRESS = 232
SYS_FADVISE64 = 233 SYS_FADVISE64 = 233
SYS_EXIT_GROUP = 234 SYS_EXIT_GROUP = 234
SYS_LOOKUP_DCOOKIE = 235 SYS_LOOKUP_DCOOKIE = 235
SYS_EPOLL_CREATE = 236 SYS_EPOLL_CREATE = 236
SYS_EPOLL_CTL = 237 SYS_EPOLL_CTL = 237
SYS_EPOLL_WAIT = 238 SYS_EPOLL_WAIT = 238
SYS_REMAP_FILE_PAGES = 239 SYS_REMAP_FILE_PAGES = 239
SYS_TIMER_CREATE = 240 SYS_TIMER_CREATE = 240
SYS_TIMER_SETTIME = 241 SYS_TIMER_SETTIME = 241
SYS_TIMER_GETTIME = 242 SYS_TIMER_GETTIME = 242
SYS_TIMER_GETOVERRUN = 243 SYS_TIMER_GETOVERRUN = 243
SYS_TIMER_DELETE = 244 SYS_TIMER_DELETE = 244
SYS_CLOCK_SETTIME = 245 SYS_CLOCK_SETTIME = 245
SYS_CLOCK_GETTIME = 246 SYS_CLOCK_GETTIME = 246
SYS_CLOCK_GETRES = 247 SYS_CLOCK_GETRES = 247
SYS_CLOCK_NANOSLEEP = 248 SYS_CLOCK_NANOSLEEP = 248
SYS_SWAPCONTEXT = 249 SYS_SWAPCONTEXT = 249
SYS_TGKILL = 250 SYS_TGKILL = 250
SYS_UTIMES = 251 SYS_UTIMES = 251
SYS_STATFS64 = 252 SYS_STATFS64 = 252
SYS_FSTATFS64 = 253 SYS_FSTATFS64 = 253
SYS_RTAS = 255 SYS_RTAS = 255
SYS_SYS_DEBUG_SETCONTEXT = 256 SYS_SYS_DEBUG_SETCONTEXT = 256
SYS_MIGRATE_PAGES = 258 SYS_MIGRATE_PAGES = 258
SYS_MBIND = 259 SYS_MBIND = 259
SYS_GET_MEMPOLICY = 260 SYS_GET_MEMPOLICY = 260
SYS_SET_MEMPOLICY = 261 SYS_SET_MEMPOLICY = 261
SYS_MQ_OPEN = 262 SYS_MQ_OPEN = 262
SYS_MQ_UNLINK = 263 SYS_MQ_UNLINK = 263
SYS_MQ_TIMEDSEND = 264 SYS_MQ_TIMEDSEND = 264
SYS_MQ_TIMEDRECEIVE = 265 SYS_MQ_TIMEDRECEIVE = 265
SYS_MQ_NOTIFY = 266 SYS_MQ_NOTIFY = 266
SYS_MQ_GETSETATTR = 267 SYS_MQ_GETSETATTR = 267
SYS_KEXEC_LOAD = 268 SYS_KEXEC_LOAD = 268
SYS_ADD_KEY = 269 SYS_ADD_KEY = 269
SYS_REQUEST_KEY = 270 SYS_REQUEST_KEY = 270
SYS_KEYCTL = 271 SYS_KEYCTL = 271
SYS_WAITID = 272 SYS_WAITID = 272
SYS_IOPRIO_SET = 273 SYS_IOPRIO_SET = 273
SYS_IOPRIO_GET = 274 SYS_IOPRIO_GET = 274
SYS_INOTIFY_INIT = 275 SYS_INOTIFY_INIT = 275
SYS_INOTIFY_ADD_WATCH = 276 SYS_INOTIFY_ADD_WATCH = 276
SYS_INOTIFY_RM_WATCH = 277 SYS_INOTIFY_RM_WATCH = 277
SYS_SPU_RUN = 278 SYS_SPU_RUN = 278
SYS_SPU_CREATE = 279 SYS_SPU_CREATE = 279
SYS_PSELECT6 = 280 SYS_PSELECT6 = 280
SYS_PPOLL = 281 SYS_PPOLL = 281
SYS_UNSHARE = 282 SYS_UNSHARE = 282
SYS_SPLICE = 283 SYS_SPLICE = 283
SYS_TEE = 284 SYS_TEE = 284
SYS_VMSPLICE = 285 SYS_VMSPLICE = 285
SYS_OPENAT = 286 SYS_OPENAT = 286
SYS_MKDIRAT = 287 SYS_MKDIRAT = 287
SYS_MKNODAT = 288 SYS_MKNODAT = 288
SYS_FCHOWNAT = 289 SYS_FCHOWNAT = 289
SYS_FUTIMESAT = 290 SYS_FUTIMESAT = 290
SYS_NEWFSTATAT = 291 SYS_NEWFSTATAT = 291
SYS_UNLINKAT = 292 SYS_UNLINKAT = 292
SYS_RENAMEAT = 293 SYS_RENAMEAT = 293
SYS_LINKAT = 294 SYS_LINKAT = 294
SYS_SYMLINKAT = 295 SYS_SYMLINKAT = 295
SYS_READLINKAT = 296 SYS_READLINKAT = 296
SYS_FCHMODAT = 297 SYS_FCHMODAT = 297
SYS_FACCESSAT = 298 SYS_FACCESSAT = 298
SYS_GET_ROBUST_LIST = 299 SYS_GET_ROBUST_LIST = 299
SYS_SET_ROBUST_LIST = 300 SYS_SET_ROBUST_LIST = 300
SYS_MOVE_PAGES = 301 SYS_MOVE_PAGES = 301
SYS_GETCPU = 302 SYS_GETCPU = 302
SYS_EPOLL_PWAIT = 303 SYS_EPOLL_PWAIT = 303
SYS_UTIMENSAT = 304 SYS_UTIMENSAT = 304
SYS_SIGNALFD = 305 SYS_SIGNALFD = 305
SYS_TIMERFD_CREATE = 306 SYS_TIMERFD_CREATE = 306
SYS_EVENTFD = 307 SYS_EVENTFD = 307
SYS_SYNC_FILE_RANGE2 = 308 SYS_SYNC_FILE_RANGE2 = 308
SYS_FALLOCATE = 309 SYS_FALLOCATE = 309
SYS_SUBPAGE_PROT = 310 SYS_SUBPAGE_PROT = 310
SYS_TIMERFD_SETTIME = 311 SYS_TIMERFD_SETTIME = 311
SYS_TIMERFD_GETTIME = 312 SYS_TIMERFD_GETTIME = 312
SYS_SIGNALFD4 = 313 SYS_SIGNALFD4 = 313
SYS_EVENTFD2 = 314 SYS_EVENTFD2 = 314
SYS_EPOLL_CREATE1 = 315 SYS_EPOLL_CREATE1 = 315
SYS_DUP3 = 316 SYS_DUP3 = 316
SYS_PIPE2 = 317 SYS_PIPE2 = 317
SYS_INOTIFY_INIT1 = 318 SYS_INOTIFY_INIT1 = 318
SYS_PERF_EVENT_OPEN = 319 SYS_PERF_EVENT_OPEN = 319
SYS_PREADV = 320 SYS_PREADV = 320
SYS_PWRITEV = 321 SYS_PWRITEV = 321
SYS_RT_TGSIGQUEUEINFO = 322 SYS_RT_TGSIGQUEUEINFO = 322
SYS_FANOTIFY_INIT = 323 SYS_FANOTIFY_INIT = 323
SYS_FANOTIFY_MARK = 324 SYS_FANOTIFY_MARK = 324
SYS_PRLIMIT64 = 325 SYS_PRLIMIT64 = 325
SYS_SOCKET = 326 SYS_SOCKET = 326
SYS_BIND = 327 SYS_BIND = 327
SYS_CONNECT = 328 SYS_CONNECT = 328
SYS_LISTEN = 329 SYS_LISTEN = 329
SYS_ACCEPT = 330 SYS_ACCEPT = 330
SYS_GETSOCKNAME = 331 SYS_GETSOCKNAME = 331
SYS_GETPEERNAME = 332 SYS_GETPEERNAME = 332
SYS_SOCKETPAIR = 333 SYS_SOCKETPAIR = 333
SYS_SEND = 334 SYS_SEND = 334
SYS_SENDTO = 335 SYS_SENDTO = 335
SYS_RECV = 336 SYS_RECV = 336
SYS_RECVFROM = 337 SYS_RECVFROM = 337
SYS_SHUTDOWN = 338 SYS_SHUTDOWN = 338
SYS_SETSOCKOPT = 339 SYS_SETSOCKOPT = 339
SYS_GETSOCKOPT = 340 SYS_GETSOCKOPT = 340
SYS_SENDMSG = 341 SYS_SENDMSG = 341
SYS_RECVMSG = 342 SYS_RECVMSG = 342
SYS_RECVMMSG = 343 SYS_RECVMMSG = 343
SYS_ACCEPT4 = 344 SYS_ACCEPT4 = 344
SYS_NAME_TO_HANDLE_AT = 345 SYS_NAME_TO_HANDLE_AT = 345
SYS_OPEN_BY_HANDLE_AT = 346 SYS_OPEN_BY_HANDLE_AT = 346
SYS_CLOCK_ADJTIME = 347 SYS_CLOCK_ADJTIME = 347
SYS_SYNCFS = 348 SYS_SYNCFS = 348
SYS_SENDMMSG = 349 SYS_SENDMMSG = 349
SYS_SETNS = 350 SYS_SETNS = 350
SYS_PROCESS_VM_READV = 351 SYS_PROCESS_VM_READV = 351
SYS_PROCESS_VM_WRITEV = 352 SYS_PROCESS_VM_WRITEV = 352
SYS_FINIT_MODULE = 353 SYS_FINIT_MODULE = 353
SYS_KCMP = 354 SYS_KCMP = 354
SYS_SCHED_SETATTR = 355 SYS_SCHED_SETATTR = 355
SYS_SCHED_GETATTR = 356 SYS_SCHED_GETATTR = 356
SYS_RENAMEAT2 = 357 SYS_RENAMEAT2 = 357
SYS_SECCOMP = 358 SYS_SECCOMP = 358
SYS_GETRANDOM = 359 SYS_GETRANDOM = 359
SYS_MEMFD_CREATE = 360 SYS_MEMFD_CREATE = 360
SYS_BPF = 361 SYS_BPF = 361
SYS_EXECVEAT = 362 SYS_EXECVEAT = 362
SYS_SWITCH_ENDIAN = 363 SYS_SWITCH_ENDIAN = 363
SYS_USERFAULTFD = 364 SYS_USERFAULTFD = 364
SYS_MEMBARRIER = 365 SYS_MEMBARRIER = 365
SYS_MLOCK2 = 378 SYS_MLOCK2 = 378
SYS_COPY_FILE_RANGE = 379 SYS_COPY_FILE_RANGE = 379
SYS_PREADV2 = 380 SYS_PREADV2 = 380
SYS_PWRITEV2 = 381 SYS_PWRITEV2 = 381
SYS_KEXEC_FILE_LOAD = 382 SYS_KEXEC_FILE_LOAD = 382
SYS_STATX = 383 SYS_STATX = 383
SYS_PKEY_ALLOC = 384 SYS_PKEY_ALLOC = 384
SYS_PKEY_FREE = 385 SYS_PKEY_FREE = 385
SYS_PKEY_MPROTECT = 386 SYS_PKEY_MPROTECT = 386
SYS_RSEQ = 387 SYS_RSEQ = 387
SYS_IO_PGETEVENTS = 388 SYS_IO_PGETEVENTS = 388
SYS_SEMTIMEDOP = 392 SYS_SEMTIMEDOP = 392
SYS_SEMGET = 393 SYS_SEMGET = 393
SYS_SEMCTL = 394 SYS_SEMCTL = 394
SYS_SHMGET = 395 SYS_SHMGET = 395
SYS_SHMCTL = 396 SYS_SHMCTL = 396
SYS_SHMAT = 397 SYS_SHMAT = 397
SYS_SHMDT = 398 SYS_SHMDT = 398
SYS_MSGGET = 399 SYS_MSGGET = 399
SYS_MSGSND = 400 SYS_MSGSND = 400
SYS_MSGRCV = 401 SYS_MSGRCV = 401
SYS_MSGCTL = 402 SYS_MSGCTL = 402
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -7,302 +7,305 @@
package unix package unix
const ( const (
SYS_IO_SETUP = 0 SYS_IO_SETUP = 0
SYS_IO_DESTROY = 1 SYS_IO_DESTROY = 1
SYS_IO_SUBMIT = 2 SYS_IO_SUBMIT = 2
SYS_IO_CANCEL = 3 SYS_IO_CANCEL = 3
SYS_IO_GETEVENTS = 4 SYS_IO_GETEVENTS = 4
SYS_SETXATTR = 5 SYS_SETXATTR = 5
SYS_LSETXATTR = 6 SYS_LSETXATTR = 6
SYS_FSETXATTR = 7 SYS_FSETXATTR = 7
SYS_GETXATTR = 8 SYS_GETXATTR = 8
SYS_LGETXATTR = 9 SYS_LGETXATTR = 9
SYS_FGETXATTR = 10 SYS_FGETXATTR = 10
SYS_LISTXATTR = 11 SYS_LISTXATTR = 11
SYS_LLISTXATTR = 12 SYS_LLISTXATTR = 12
SYS_FLISTXATTR = 13 SYS_FLISTXATTR = 13
SYS_REMOVEXATTR = 14 SYS_REMOVEXATTR = 14
SYS_LREMOVEXATTR = 15 SYS_LREMOVEXATTR = 15
SYS_FREMOVEXATTR = 16 SYS_FREMOVEXATTR = 16
SYS_GETCWD = 17 SYS_GETCWD = 17
SYS_LOOKUP_DCOOKIE = 18 SYS_LOOKUP_DCOOKIE = 18
SYS_EVENTFD2 = 19 SYS_EVENTFD2 = 19
SYS_EPOLL_CREATE1 = 20 SYS_EPOLL_CREATE1 = 20
SYS_EPOLL_CTL = 21 SYS_EPOLL_CTL = 21
SYS_EPOLL_PWAIT = 22 SYS_EPOLL_PWAIT = 22
SYS_DUP = 23 SYS_DUP = 23
SYS_DUP3 = 24 SYS_DUP3 = 24
SYS_FCNTL = 25 SYS_FCNTL = 25
SYS_INOTIFY_INIT1 = 26 SYS_INOTIFY_INIT1 = 26
SYS_INOTIFY_ADD_WATCH = 27 SYS_INOTIFY_ADD_WATCH = 27
SYS_INOTIFY_RM_WATCH = 28 SYS_INOTIFY_RM_WATCH = 28
SYS_IOCTL = 29 SYS_IOCTL = 29
SYS_IOPRIO_SET = 30 SYS_IOPRIO_SET = 30
SYS_IOPRIO_GET = 31 SYS_IOPRIO_GET = 31
SYS_FLOCK = 32 SYS_FLOCK = 32
SYS_MKNODAT = 33 SYS_MKNODAT = 33
SYS_MKDIRAT = 34 SYS_MKDIRAT = 34
SYS_UNLINKAT = 35 SYS_UNLINKAT = 35
SYS_SYMLINKAT = 36 SYS_SYMLINKAT = 36
SYS_LINKAT = 37 SYS_LINKAT = 37
SYS_UMOUNT2 = 39 SYS_UMOUNT2 = 39
SYS_MOUNT = 40 SYS_MOUNT = 40
SYS_PIVOT_ROOT = 41 SYS_PIVOT_ROOT = 41
SYS_NFSSERVCTL = 42 SYS_NFSSERVCTL = 42
SYS_STATFS = 43 SYS_STATFS = 43
SYS_FSTATFS = 44 SYS_FSTATFS = 44
SYS_TRUNCATE = 45 SYS_TRUNCATE = 45
SYS_FTRUNCATE = 46 SYS_FTRUNCATE = 46
SYS_FALLOCATE = 47 SYS_FALLOCATE = 47
SYS_FACCESSAT = 48 SYS_FACCESSAT = 48
SYS_CHDIR = 49 SYS_CHDIR = 49
SYS_FCHDIR = 50 SYS_FCHDIR = 50
SYS_CHROOT = 51 SYS_CHROOT = 51
SYS_FCHMOD = 52 SYS_FCHMOD = 52
SYS_FCHMODAT = 53 SYS_FCHMODAT = 53
SYS_FCHOWNAT = 54 SYS_FCHOWNAT = 54
SYS_FCHOWN = 55 SYS_FCHOWN = 55
SYS_OPENAT = 56 SYS_OPENAT = 56
SYS_CLOSE = 57 SYS_CLOSE = 57
SYS_VHANGUP = 58 SYS_VHANGUP = 58
SYS_PIPE2 = 59 SYS_PIPE2 = 59
SYS_QUOTACTL = 60 SYS_QUOTACTL = 60
SYS_GETDENTS64 = 61 SYS_GETDENTS64 = 61
SYS_LSEEK = 62 SYS_LSEEK = 62
SYS_READ = 63 SYS_READ = 63
SYS_WRITE = 64 SYS_WRITE = 64
SYS_READV = 65 SYS_READV = 65
SYS_WRITEV = 66 SYS_WRITEV = 66
SYS_PREAD64 = 67 SYS_PREAD64 = 67
SYS_PWRITE64 = 68 SYS_PWRITE64 = 68
SYS_PREADV = 69 SYS_PREADV = 69
SYS_PWRITEV = 70 SYS_PWRITEV = 70
SYS_SENDFILE = 71 SYS_SENDFILE = 71
SYS_PSELECT6 = 72 SYS_PSELECT6 = 72
SYS_PPOLL = 73 SYS_PPOLL = 73
SYS_SIGNALFD4 = 74 SYS_SIGNALFD4 = 74
SYS_VMSPLICE = 75 SYS_VMSPLICE = 75
SYS_SPLICE = 76 SYS_SPLICE = 76
SYS_TEE = 77 SYS_TEE = 77
SYS_READLINKAT = 78 SYS_READLINKAT = 78
SYS_FSTATAT = 79 SYS_FSTATAT = 79
SYS_FSTAT = 80 SYS_FSTAT = 80
SYS_SYNC = 81 SYS_SYNC = 81
SYS_FSYNC = 82 SYS_FSYNC = 82
SYS_FDATASYNC = 83 SYS_FDATASYNC = 83
SYS_SYNC_FILE_RANGE = 84 SYS_SYNC_FILE_RANGE = 84
SYS_TIMERFD_CREATE = 85 SYS_TIMERFD_CREATE = 85
SYS_TIMERFD_SETTIME = 86 SYS_TIMERFD_SETTIME = 86
SYS_TIMERFD_GETTIME = 87 SYS_TIMERFD_GETTIME = 87
SYS_UTIMENSAT = 88 SYS_UTIMENSAT = 88
SYS_ACCT = 89 SYS_ACCT = 89
SYS_CAPGET = 90 SYS_CAPGET = 90
SYS_CAPSET = 91 SYS_CAPSET = 91
SYS_PERSONALITY = 92 SYS_PERSONALITY = 92
SYS_EXIT = 93 SYS_EXIT = 93
SYS_EXIT_GROUP = 94 SYS_EXIT_GROUP = 94
SYS_WAITID = 95 SYS_WAITID = 95
SYS_SET_TID_ADDRESS = 96 SYS_SET_TID_ADDRESS = 96
SYS_UNSHARE = 97 SYS_UNSHARE = 97
SYS_FUTEX = 98 SYS_FUTEX = 98
SYS_SET_ROBUST_LIST = 99 SYS_SET_ROBUST_LIST = 99
SYS_GET_ROBUST_LIST = 100 SYS_GET_ROBUST_LIST = 100
SYS_NANOSLEEP = 101 SYS_NANOSLEEP = 101
SYS_GETITIMER = 102 SYS_GETITIMER = 102
SYS_SETITIMER = 103 SYS_SETITIMER = 103
SYS_KEXEC_LOAD = 104 SYS_KEXEC_LOAD = 104
SYS_INIT_MODULE = 105 SYS_INIT_MODULE = 105
SYS_DELETE_MODULE = 106 SYS_DELETE_MODULE = 106
SYS_TIMER_CREATE = 107 SYS_TIMER_CREATE = 107
SYS_TIMER_GETTIME = 108 SYS_TIMER_GETTIME = 108
SYS_TIMER_GETOVERRUN = 109 SYS_TIMER_GETOVERRUN = 109
SYS_TIMER_SETTIME = 110 SYS_TIMER_SETTIME = 110
SYS_TIMER_DELETE = 111 SYS_TIMER_DELETE = 111
SYS_CLOCK_SETTIME = 112 SYS_CLOCK_SETTIME = 112
SYS_CLOCK_GETTIME = 113 SYS_CLOCK_GETTIME = 113
SYS_CLOCK_GETRES = 114 SYS_CLOCK_GETRES = 114
SYS_CLOCK_NANOSLEEP = 115 SYS_CLOCK_NANOSLEEP = 115
SYS_SYSLOG = 116 SYS_SYSLOG = 116
SYS_PTRACE = 117 SYS_PTRACE = 117
SYS_SCHED_SETPARAM = 118 SYS_SCHED_SETPARAM = 118
SYS_SCHED_SETSCHEDULER = 119 SYS_SCHED_SETSCHEDULER = 119
SYS_SCHED_GETSCHEDULER = 120 SYS_SCHED_GETSCHEDULER = 120
SYS_SCHED_GETPARAM = 121 SYS_SCHED_GETPARAM = 121
SYS_SCHED_SETAFFINITY = 122 SYS_SCHED_SETAFFINITY = 122
SYS_SCHED_GETAFFINITY = 123 SYS_SCHED_GETAFFINITY = 123
SYS_SCHED_YIELD = 124 SYS_SCHED_YIELD = 124
SYS_SCHED_GET_PRIORITY_MAX = 125 SYS_SCHED_GET_PRIORITY_MAX = 125
SYS_SCHED_GET_PRIORITY_MIN = 126 SYS_SCHED_GET_PRIORITY_MIN = 126
SYS_SCHED_RR_GET_INTERVAL = 127 SYS_SCHED_RR_GET_INTERVAL = 127
SYS_RESTART_SYSCALL = 128 SYS_RESTART_SYSCALL = 128
SYS_KILL = 129 SYS_KILL = 129
SYS_TKILL = 130 SYS_TKILL = 130
SYS_TGKILL = 131 SYS_TGKILL = 131
SYS_SIGALTSTACK = 132 SYS_SIGALTSTACK = 132
SYS_RT_SIGSUSPEND = 133 SYS_RT_SIGSUSPEND = 133
SYS_RT_SIGACTION = 134 SYS_RT_SIGACTION = 134
SYS_RT_SIGPROCMASK = 135 SYS_RT_SIGPROCMASK = 135
SYS_RT_SIGPENDING = 136 SYS_RT_SIGPENDING = 136
SYS_RT_SIGTIMEDWAIT = 137 SYS_RT_SIGTIMEDWAIT = 137
SYS_RT_SIGQUEUEINFO = 138 SYS_RT_SIGQUEUEINFO = 138
SYS_RT_SIGRETURN = 139 SYS_RT_SIGRETURN = 139
SYS_SETPRIORITY = 140 SYS_SETPRIORITY = 140
SYS_GETPRIORITY = 141 SYS_GETPRIORITY = 141
SYS_REBOOT = 142 SYS_REBOOT = 142
SYS_SETREGID = 143 SYS_SETREGID = 143
SYS_SETGID = 144 SYS_SETGID = 144
SYS_SETREUID = 145 SYS_SETREUID = 145
SYS_SETUID = 146 SYS_SETUID = 146
SYS_SETRESUID = 147 SYS_SETRESUID = 147
SYS_GETRESUID = 148 SYS_GETRESUID = 148
SYS_SETRESGID = 149 SYS_SETRESGID = 149
SYS_GETRESGID = 150 SYS_GETRESGID = 150
SYS_SETFSUID = 151 SYS_SETFSUID = 151
SYS_SETFSGID = 152 SYS_SETFSGID = 152
SYS_TIMES = 153 SYS_TIMES = 153
SYS_SETPGID = 154 SYS_SETPGID = 154
SYS_GETPGID = 155 SYS_GETPGID = 155
SYS_GETSID = 156 SYS_GETSID = 156
SYS_SETSID = 157 SYS_SETSID = 157
SYS_GETGROUPS = 158 SYS_GETGROUPS = 158
SYS_SETGROUPS = 159 SYS_SETGROUPS = 159
SYS_UNAME = 160 SYS_UNAME = 160
SYS_SETHOSTNAME = 161 SYS_SETHOSTNAME = 161
SYS_SETDOMAINNAME = 162 SYS_SETDOMAINNAME = 162
SYS_GETRLIMIT = 163 SYS_GETRLIMIT = 163
SYS_SETRLIMIT = 164 SYS_SETRLIMIT = 164
SYS_GETRUSAGE = 165 SYS_GETRUSAGE = 165
SYS_UMASK = 166 SYS_UMASK = 166
SYS_PRCTL = 167 SYS_PRCTL = 167
SYS_GETCPU = 168 SYS_GETCPU = 168
SYS_GETTIMEOFDAY = 169 SYS_GETTIMEOFDAY = 169
SYS_SETTIMEOFDAY = 170 SYS_SETTIMEOFDAY = 170
SYS_ADJTIMEX = 171 SYS_ADJTIMEX = 171
SYS_GETPID = 172 SYS_GETPID = 172
SYS_GETPPID = 173 SYS_GETPPID = 173
SYS_GETUID = 174 SYS_GETUID = 174
SYS_GETEUID = 175 SYS_GETEUID = 175
SYS_GETGID = 176 SYS_GETGID = 176
SYS_GETEGID = 177 SYS_GETEGID = 177
SYS_GETTID = 178 SYS_GETTID = 178
SYS_SYSINFO = 179 SYS_SYSINFO = 179
SYS_MQ_OPEN = 180 SYS_MQ_OPEN = 180
SYS_MQ_UNLINK = 181 SYS_MQ_UNLINK = 181
SYS_MQ_TIMEDSEND = 182 SYS_MQ_TIMEDSEND = 182
SYS_MQ_TIMEDRECEIVE = 183 SYS_MQ_TIMEDRECEIVE = 183
SYS_MQ_NOTIFY = 184 SYS_MQ_NOTIFY = 184
SYS_MQ_GETSETATTR = 185 SYS_MQ_GETSETATTR = 185
SYS_MSGGET = 186 SYS_MSGGET = 186
SYS_MSGCTL = 187 SYS_MSGCTL = 187
SYS_MSGRCV = 188 SYS_MSGRCV = 188
SYS_MSGSND = 189 SYS_MSGSND = 189
SYS_SEMGET = 190 SYS_SEMGET = 190
SYS_SEMCTL = 191 SYS_SEMCTL = 191
SYS_SEMTIMEDOP = 192 SYS_SEMTIMEDOP = 192
SYS_SEMOP = 193 SYS_SEMOP = 193
SYS_SHMGET = 194 SYS_SHMGET = 194
SYS_SHMCTL = 195 SYS_SHMCTL = 195
SYS_SHMAT = 196 SYS_SHMAT = 196
SYS_SHMDT = 197 SYS_SHMDT = 197
SYS_SOCKET = 198 SYS_SOCKET = 198
SYS_SOCKETPAIR = 199 SYS_SOCKETPAIR = 199
SYS_BIND = 200 SYS_BIND = 200
SYS_LISTEN = 201 SYS_LISTEN = 201
SYS_ACCEPT = 202 SYS_ACCEPT = 202
SYS_CONNECT = 203 SYS_CONNECT = 203
SYS_GETSOCKNAME = 204 SYS_GETSOCKNAME = 204
SYS_GETPEERNAME = 205 SYS_GETPEERNAME = 205
SYS_SENDTO = 206 SYS_SENDTO = 206
SYS_RECVFROM = 207 SYS_RECVFROM = 207
SYS_SETSOCKOPT = 208 SYS_SETSOCKOPT = 208
SYS_GETSOCKOPT = 209 SYS_GETSOCKOPT = 209
SYS_SHUTDOWN = 210 SYS_SHUTDOWN = 210
SYS_SENDMSG = 211 SYS_SENDMSG = 211
SYS_RECVMSG = 212 SYS_RECVMSG = 212
SYS_READAHEAD = 213 SYS_READAHEAD = 213
SYS_BRK = 214 SYS_BRK = 214
SYS_MUNMAP = 215 SYS_MUNMAP = 215
SYS_MREMAP = 216 SYS_MREMAP = 216
SYS_ADD_KEY = 217 SYS_ADD_KEY = 217
SYS_REQUEST_KEY = 218 SYS_REQUEST_KEY = 218
SYS_KEYCTL = 219 SYS_KEYCTL = 219
SYS_CLONE = 220 SYS_CLONE = 220
SYS_EXECVE = 221 SYS_EXECVE = 221
SYS_MMAP = 222 SYS_MMAP = 222
SYS_FADVISE64 = 223 SYS_FADVISE64 = 223
SYS_SWAPON = 224 SYS_SWAPON = 224
SYS_SWAPOFF = 225 SYS_SWAPOFF = 225
SYS_MPROTECT = 226 SYS_MPROTECT = 226
SYS_MSYNC = 227 SYS_MSYNC = 227
SYS_MLOCK = 228 SYS_MLOCK = 228
SYS_MUNLOCK = 229 SYS_MUNLOCK = 229
SYS_MLOCKALL = 230 SYS_MLOCKALL = 230
SYS_MUNLOCKALL = 231 SYS_MUNLOCKALL = 231
SYS_MINCORE = 232 SYS_MINCORE = 232
SYS_MADVISE = 233 SYS_MADVISE = 233
SYS_REMAP_FILE_PAGES = 234 SYS_REMAP_FILE_PAGES = 234
SYS_MBIND = 235 SYS_MBIND = 235
SYS_GET_MEMPOLICY = 236 SYS_GET_MEMPOLICY = 236
SYS_SET_MEMPOLICY = 237 SYS_SET_MEMPOLICY = 237
SYS_MIGRATE_PAGES = 238 SYS_MIGRATE_PAGES = 238
SYS_MOVE_PAGES = 239 SYS_MOVE_PAGES = 239
SYS_RT_TGSIGQUEUEINFO = 240 SYS_RT_TGSIGQUEUEINFO = 240
SYS_PERF_EVENT_OPEN = 241 SYS_PERF_EVENT_OPEN = 241
SYS_ACCEPT4 = 242 SYS_ACCEPT4 = 242
SYS_RECVMMSG = 243 SYS_RECVMMSG = 243
SYS_ARCH_SPECIFIC_SYSCALL = 244 SYS_ARCH_SPECIFIC_SYSCALL = 244
SYS_WAIT4 = 260 SYS_WAIT4 = 260
SYS_PRLIMIT64 = 261 SYS_PRLIMIT64 = 261
SYS_FANOTIFY_INIT = 262 SYS_FANOTIFY_INIT = 262
SYS_FANOTIFY_MARK = 263 SYS_FANOTIFY_MARK = 263
SYS_NAME_TO_HANDLE_AT = 264 SYS_NAME_TO_HANDLE_AT = 264
SYS_OPEN_BY_HANDLE_AT = 265 SYS_OPEN_BY_HANDLE_AT = 265
SYS_CLOCK_ADJTIME = 266 SYS_CLOCK_ADJTIME = 266
SYS_SYNCFS = 267 SYS_SYNCFS = 267
SYS_SETNS = 268 SYS_SETNS = 268
SYS_SENDMMSG = 269 SYS_SENDMMSG = 269
SYS_PROCESS_VM_READV = 270 SYS_PROCESS_VM_READV = 270
SYS_PROCESS_VM_WRITEV = 271 SYS_PROCESS_VM_WRITEV = 271
SYS_KCMP = 272 SYS_KCMP = 272
SYS_FINIT_MODULE = 273 SYS_FINIT_MODULE = 273
SYS_SCHED_SETATTR = 274 SYS_SCHED_SETATTR = 274
SYS_SCHED_GETATTR = 275 SYS_SCHED_GETATTR = 275
SYS_RENAMEAT2 = 276 SYS_RENAMEAT2 = 276
SYS_SECCOMP = 277 SYS_SECCOMP = 277
SYS_GETRANDOM = 278 SYS_GETRANDOM = 278
SYS_MEMFD_CREATE = 279 SYS_MEMFD_CREATE = 279
SYS_BPF = 280 SYS_BPF = 280
SYS_EXECVEAT = 281 SYS_EXECVEAT = 281
SYS_USERFAULTFD = 282 SYS_USERFAULTFD = 282
SYS_MEMBARRIER = 283 SYS_MEMBARRIER = 283
SYS_MLOCK2 = 284 SYS_MLOCK2 = 284
SYS_COPY_FILE_RANGE = 285 SYS_COPY_FILE_RANGE = 285
SYS_PREADV2 = 286 SYS_PREADV2 = 286
SYS_PWRITEV2 = 287 SYS_PWRITEV2 = 287
SYS_PKEY_MPROTECT = 288 SYS_PKEY_MPROTECT = 288
SYS_PKEY_ALLOC = 289 SYS_PKEY_ALLOC = 289
SYS_PKEY_FREE = 290 SYS_PKEY_FREE = 290
SYS_STATX = 291 SYS_STATX = 291
SYS_IO_PGETEVENTS = 292 SYS_IO_PGETEVENTS = 292
SYS_RSEQ = 293 SYS_RSEQ = 293
SYS_KEXEC_FILE_LOAD = 294 SYS_KEXEC_FILE_LOAD = 294
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -7,365 +7,368 @@
package unix package unix
const ( const (
SYS_EXIT = 1 SYS_EXIT = 1
SYS_FORK = 2 SYS_FORK = 2
SYS_READ = 3 SYS_READ = 3
SYS_WRITE = 4 SYS_WRITE = 4
SYS_OPEN = 5 SYS_OPEN = 5
SYS_CLOSE = 6 SYS_CLOSE = 6
SYS_RESTART_SYSCALL = 7 SYS_RESTART_SYSCALL = 7
SYS_CREAT = 8 SYS_CREAT = 8
SYS_LINK = 9 SYS_LINK = 9
SYS_UNLINK = 10 SYS_UNLINK = 10
SYS_EXECVE = 11 SYS_EXECVE = 11
SYS_CHDIR = 12 SYS_CHDIR = 12
SYS_MKNOD = 14 SYS_MKNOD = 14
SYS_CHMOD = 15 SYS_CHMOD = 15
SYS_LSEEK = 19 SYS_LSEEK = 19
SYS_GETPID = 20 SYS_GETPID = 20
SYS_MOUNT = 21 SYS_MOUNT = 21
SYS_UMOUNT = 22 SYS_UMOUNT = 22
SYS_PTRACE = 26 SYS_PTRACE = 26
SYS_ALARM = 27 SYS_ALARM = 27
SYS_PAUSE = 29 SYS_PAUSE = 29
SYS_UTIME = 30 SYS_UTIME = 30
SYS_ACCESS = 33 SYS_ACCESS = 33
SYS_NICE = 34 SYS_NICE = 34
SYS_SYNC = 36 SYS_SYNC = 36
SYS_KILL = 37 SYS_KILL = 37
SYS_RENAME = 38 SYS_RENAME = 38
SYS_MKDIR = 39 SYS_MKDIR = 39
SYS_RMDIR = 40 SYS_RMDIR = 40
SYS_DUP = 41 SYS_DUP = 41
SYS_PIPE = 42 SYS_PIPE = 42
SYS_TIMES = 43 SYS_TIMES = 43
SYS_BRK = 45 SYS_BRK = 45
SYS_SIGNAL = 48 SYS_SIGNAL = 48
SYS_ACCT = 51 SYS_ACCT = 51
SYS_UMOUNT2 = 52 SYS_UMOUNT2 = 52
SYS_IOCTL = 54 SYS_IOCTL = 54
SYS_FCNTL = 55 SYS_FCNTL = 55
SYS_SETPGID = 57 SYS_SETPGID = 57
SYS_UMASK = 60 SYS_UMASK = 60
SYS_CHROOT = 61 SYS_CHROOT = 61
SYS_USTAT = 62 SYS_USTAT = 62
SYS_DUP2 = 63 SYS_DUP2 = 63
SYS_GETPPID = 64 SYS_GETPPID = 64
SYS_GETPGRP = 65 SYS_GETPGRP = 65
SYS_SETSID = 66 SYS_SETSID = 66
SYS_SIGACTION = 67 SYS_SIGACTION = 67
SYS_SIGSUSPEND = 72 SYS_SIGSUSPEND = 72
SYS_SIGPENDING = 73 SYS_SIGPENDING = 73
SYS_SETHOSTNAME = 74 SYS_SETHOSTNAME = 74
SYS_SETRLIMIT = 75 SYS_SETRLIMIT = 75
SYS_GETRUSAGE = 77 SYS_GETRUSAGE = 77
SYS_GETTIMEOFDAY = 78 SYS_GETTIMEOFDAY = 78
SYS_SETTIMEOFDAY = 79 SYS_SETTIMEOFDAY = 79
SYS_SYMLINK = 83 SYS_SYMLINK = 83
SYS_READLINK = 85 SYS_READLINK = 85
SYS_USELIB = 86 SYS_USELIB = 86
SYS_SWAPON = 87 SYS_SWAPON = 87
SYS_REBOOT = 88 SYS_REBOOT = 88
SYS_READDIR = 89 SYS_READDIR = 89
SYS_MMAP = 90 SYS_MMAP = 90
SYS_MUNMAP = 91 SYS_MUNMAP = 91
SYS_TRUNCATE = 92 SYS_TRUNCATE = 92
SYS_FTRUNCATE = 93 SYS_FTRUNCATE = 93
SYS_FCHMOD = 94 SYS_FCHMOD = 94
SYS_GETPRIORITY = 96 SYS_GETPRIORITY = 96
SYS_SETPRIORITY = 97 SYS_SETPRIORITY = 97
SYS_STATFS = 99 SYS_STATFS = 99
SYS_FSTATFS = 100 SYS_FSTATFS = 100
SYS_SOCKETCALL = 102 SYS_SOCKETCALL = 102
SYS_SYSLOG = 103 SYS_SYSLOG = 103
SYS_SETITIMER = 104 SYS_SETITIMER = 104
SYS_GETITIMER = 105 SYS_GETITIMER = 105
SYS_STAT = 106 SYS_STAT = 106
SYS_LSTAT = 107 SYS_LSTAT = 107
SYS_FSTAT = 108 SYS_FSTAT = 108
SYS_LOOKUP_DCOOKIE = 110 SYS_LOOKUP_DCOOKIE = 110
SYS_VHANGUP = 111 SYS_VHANGUP = 111
SYS_IDLE = 112 SYS_IDLE = 112
SYS_WAIT4 = 114 SYS_WAIT4 = 114
SYS_SWAPOFF = 115 SYS_SWAPOFF = 115
SYS_SYSINFO = 116 SYS_SYSINFO = 116
SYS_IPC = 117 SYS_IPC = 117
SYS_FSYNC = 118 SYS_FSYNC = 118
SYS_SIGRETURN = 119 SYS_SIGRETURN = 119
SYS_CLONE = 120 SYS_CLONE = 120
SYS_SETDOMAINNAME = 121 SYS_SETDOMAINNAME = 121
SYS_UNAME = 122 SYS_UNAME = 122
SYS_ADJTIMEX = 124 SYS_ADJTIMEX = 124
SYS_MPROTECT = 125 SYS_MPROTECT = 125
SYS_SIGPROCMASK = 126 SYS_SIGPROCMASK = 126
SYS_CREATE_MODULE = 127 SYS_CREATE_MODULE = 127
SYS_INIT_MODULE = 128 SYS_INIT_MODULE = 128
SYS_DELETE_MODULE = 129 SYS_DELETE_MODULE = 129
SYS_GET_KERNEL_SYMS = 130 SYS_GET_KERNEL_SYMS = 130
SYS_QUOTACTL = 131 SYS_QUOTACTL = 131
SYS_GETPGID = 132 SYS_GETPGID = 132
SYS_FCHDIR = 133 SYS_FCHDIR = 133
SYS_BDFLUSH = 134 SYS_BDFLUSH = 134
SYS_SYSFS = 135 SYS_SYSFS = 135
SYS_PERSONALITY = 136 SYS_PERSONALITY = 136
SYS_AFS_SYSCALL = 137 SYS_AFS_SYSCALL = 137
SYS_GETDENTS = 141 SYS_GETDENTS = 141
SYS_SELECT = 142 SYS_SELECT = 142
SYS_FLOCK = 143 SYS_FLOCK = 143
SYS_MSYNC = 144 SYS_MSYNC = 144
SYS_READV = 145 SYS_READV = 145
SYS_WRITEV = 146 SYS_WRITEV = 146
SYS_GETSID = 147 SYS_GETSID = 147
SYS_FDATASYNC = 148 SYS_FDATASYNC = 148
SYS__SYSCTL = 149 SYS__SYSCTL = 149
SYS_MLOCK = 150 SYS_MLOCK = 150
SYS_MUNLOCK = 151 SYS_MUNLOCK = 151
SYS_MLOCKALL = 152 SYS_MLOCKALL = 152
SYS_MUNLOCKALL = 153 SYS_MUNLOCKALL = 153
SYS_SCHED_SETPARAM = 154 SYS_SCHED_SETPARAM = 154
SYS_SCHED_GETPARAM = 155 SYS_SCHED_GETPARAM = 155
SYS_SCHED_SETSCHEDULER = 156 SYS_SCHED_SETSCHEDULER = 156
SYS_SCHED_GETSCHEDULER = 157 SYS_SCHED_GETSCHEDULER = 157
SYS_SCHED_YIELD = 158 SYS_SCHED_YIELD = 158
SYS_SCHED_GET_PRIORITY_MAX = 159 SYS_SCHED_GET_PRIORITY_MAX = 159
SYS_SCHED_GET_PRIORITY_MIN = 160 SYS_SCHED_GET_PRIORITY_MIN = 160
SYS_SCHED_RR_GET_INTERVAL = 161 SYS_SCHED_RR_GET_INTERVAL = 161
SYS_NANOSLEEP = 162 SYS_NANOSLEEP = 162
SYS_MREMAP = 163 SYS_MREMAP = 163
SYS_QUERY_MODULE = 167 SYS_QUERY_MODULE = 167
SYS_POLL = 168 SYS_POLL = 168
SYS_NFSSERVCTL = 169 SYS_NFSSERVCTL = 169
SYS_PRCTL = 172 SYS_PRCTL = 172
SYS_RT_SIGRETURN = 173 SYS_RT_SIGRETURN = 173
SYS_RT_SIGACTION = 174 SYS_RT_SIGACTION = 174
SYS_RT_SIGPROCMASK = 175 SYS_RT_SIGPROCMASK = 175
SYS_RT_SIGPENDING = 176 SYS_RT_SIGPENDING = 176
SYS_RT_SIGTIMEDWAIT = 177 SYS_RT_SIGTIMEDWAIT = 177
SYS_RT_SIGQUEUEINFO = 178 SYS_RT_SIGQUEUEINFO = 178
SYS_RT_SIGSUSPEND = 179 SYS_RT_SIGSUSPEND = 179
SYS_PREAD64 = 180 SYS_PREAD64 = 180
SYS_PWRITE64 = 181 SYS_PWRITE64 = 181
SYS_GETCWD = 183 SYS_GETCWD = 183
SYS_CAPGET = 184 SYS_CAPGET = 184
SYS_CAPSET = 185 SYS_CAPSET = 185
SYS_SIGALTSTACK = 186 SYS_SIGALTSTACK = 186
SYS_SENDFILE = 187 SYS_SENDFILE = 187
SYS_GETPMSG = 188 SYS_GETPMSG = 188
SYS_PUTPMSG = 189 SYS_PUTPMSG = 189
SYS_VFORK = 190 SYS_VFORK = 190
SYS_GETRLIMIT = 191 SYS_GETRLIMIT = 191
SYS_LCHOWN = 198 SYS_LCHOWN = 198
SYS_GETUID = 199 SYS_GETUID = 199
SYS_GETGID = 200 SYS_GETGID = 200
SYS_GETEUID = 201 SYS_GETEUID = 201
SYS_GETEGID = 202 SYS_GETEGID = 202
SYS_SETREUID = 203 SYS_SETREUID = 203
SYS_SETREGID = 204 SYS_SETREGID = 204
SYS_GETGROUPS = 205 SYS_GETGROUPS = 205
SYS_SETGROUPS = 206 SYS_SETGROUPS = 206
SYS_FCHOWN = 207 SYS_FCHOWN = 207
SYS_SETRESUID = 208 SYS_SETRESUID = 208
SYS_GETRESUID = 209 SYS_GETRESUID = 209
SYS_SETRESGID = 210 SYS_SETRESGID = 210
SYS_GETRESGID = 211 SYS_GETRESGID = 211
SYS_CHOWN = 212 SYS_CHOWN = 212
SYS_SETUID = 213 SYS_SETUID = 213
SYS_SETGID = 214 SYS_SETGID = 214
SYS_SETFSUID = 215 SYS_SETFSUID = 215
SYS_SETFSGID = 216 SYS_SETFSGID = 216
SYS_PIVOT_ROOT = 217 SYS_PIVOT_ROOT = 217
SYS_MINCORE = 218 SYS_MINCORE = 218
SYS_MADVISE = 219 SYS_MADVISE = 219
SYS_GETDENTS64 = 220 SYS_GETDENTS64 = 220
SYS_READAHEAD = 222 SYS_READAHEAD = 222
SYS_SETXATTR = 224 SYS_SETXATTR = 224
SYS_LSETXATTR = 225 SYS_LSETXATTR = 225
SYS_FSETXATTR = 226 SYS_FSETXATTR = 226
SYS_GETXATTR = 227 SYS_GETXATTR = 227
SYS_LGETXATTR = 228 SYS_LGETXATTR = 228
SYS_FGETXATTR = 229 SYS_FGETXATTR = 229
SYS_LISTXATTR = 230 SYS_LISTXATTR = 230
SYS_LLISTXATTR = 231 SYS_LLISTXATTR = 231
SYS_FLISTXATTR = 232 SYS_FLISTXATTR = 232
SYS_REMOVEXATTR = 233 SYS_REMOVEXATTR = 233
SYS_LREMOVEXATTR = 234 SYS_LREMOVEXATTR = 234
SYS_FREMOVEXATTR = 235 SYS_FREMOVEXATTR = 235
SYS_GETTID = 236 SYS_GETTID = 236
SYS_TKILL = 237 SYS_TKILL = 237
SYS_FUTEX = 238 SYS_FUTEX = 238
SYS_SCHED_SETAFFINITY = 239 SYS_SCHED_SETAFFINITY = 239
SYS_SCHED_GETAFFINITY = 240 SYS_SCHED_GETAFFINITY = 240
SYS_TGKILL = 241 SYS_TGKILL = 241
SYS_IO_SETUP = 243 SYS_IO_SETUP = 243
SYS_IO_DESTROY = 244 SYS_IO_DESTROY = 244
SYS_IO_GETEVENTS = 245 SYS_IO_GETEVENTS = 245
SYS_IO_SUBMIT = 246 SYS_IO_SUBMIT = 246
SYS_IO_CANCEL = 247 SYS_IO_CANCEL = 247
SYS_EXIT_GROUP = 248 SYS_EXIT_GROUP = 248
SYS_EPOLL_CREATE = 249 SYS_EPOLL_CREATE = 249
SYS_EPOLL_CTL = 250 SYS_EPOLL_CTL = 250
SYS_EPOLL_WAIT = 251 SYS_EPOLL_WAIT = 251
SYS_SET_TID_ADDRESS = 252 SYS_SET_TID_ADDRESS = 252
SYS_FADVISE64 = 253 SYS_FADVISE64 = 253
SYS_TIMER_CREATE = 254 SYS_TIMER_CREATE = 254
SYS_TIMER_SETTIME = 255 SYS_TIMER_SETTIME = 255
SYS_TIMER_GETTIME = 256 SYS_TIMER_GETTIME = 256
SYS_TIMER_GETOVERRUN = 257 SYS_TIMER_GETOVERRUN = 257
SYS_TIMER_DELETE = 258 SYS_TIMER_DELETE = 258
SYS_CLOCK_SETTIME = 259 SYS_CLOCK_SETTIME = 259
SYS_CLOCK_GETTIME = 260 SYS_CLOCK_GETTIME = 260
SYS_CLOCK_GETRES = 261 SYS_CLOCK_GETRES = 261
SYS_CLOCK_NANOSLEEP = 262 SYS_CLOCK_NANOSLEEP = 262
SYS_STATFS64 = 265 SYS_STATFS64 = 265
SYS_FSTATFS64 = 266 SYS_FSTATFS64 = 266
SYS_REMAP_FILE_PAGES = 267 SYS_REMAP_FILE_PAGES = 267
SYS_MBIND = 268 SYS_MBIND = 268
SYS_GET_MEMPOLICY = 269 SYS_GET_MEMPOLICY = 269
SYS_SET_MEMPOLICY = 270 SYS_SET_MEMPOLICY = 270
SYS_MQ_OPEN = 271 SYS_MQ_OPEN = 271
SYS_MQ_UNLINK = 272 SYS_MQ_UNLINK = 272
SYS_MQ_TIMEDSEND = 273 SYS_MQ_TIMEDSEND = 273
SYS_MQ_TIMEDRECEIVE = 274 SYS_MQ_TIMEDRECEIVE = 274
SYS_MQ_NOTIFY = 275 SYS_MQ_NOTIFY = 275
SYS_MQ_GETSETATTR = 276 SYS_MQ_GETSETATTR = 276
SYS_KEXEC_LOAD = 277 SYS_KEXEC_LOAD = 277
SYS_ADD_KEY = 278 SYS_ADD_KEY = 278
SYS_REQUEST_KEY = 279 SYS_REQUEST_KEY = 279
SYS_KEYCTL = 280 SYS_KEYCTL = 280
SYS_WAITID = 281 SYS_WAITID = 281
SYS_IOPRIO_SET = 282 SYS_IOPRIO_SET = 282
SYS_IOPRIO_GET = 283 SYS_IOPRIO_GET = 283
SYS_INOTIFY_INIT = 284 SYS_INOTIFY_INIT = 284
SYS_INOTIFY_ADD_WATCH = 285 SYS_INOTIFY_ADD_WATCH = 285
SYS_INOTIFY_RM_WATCH = 286 SYS_INOTIFY_RM_WATCH = 286
SYS_MIGRATE_PAGES = 287 SYS_MIGRATE_PAGES = 287
SYS_OPENAT = 288 SYS_OPENAT = 288
SYS_MKDIRAT = 289 SYS_MKDIRAT = 289
SYS_MKNODAT = 290 SYS_MKNODAT = 290
SYS_FCHOWNAT = 291 SYS_FCHOWNAT = 291
SYS_FUTIMESAT = 292 SYS_FUTIMESAT = 292
SYS_NEWFSTATAT = 293 SYS_NEWFSTATAT = 293
SYS_UNLINKAT = 294 SYS_UNLINKAT = 294
SYS_RENAMEAT = 295 SYS_RENAMEAT = 295
SYS_LINKAT = 296 SYS_LINKAT = 296
SYS_SYMLINKAT = 297 SYS_SYMLINKAT = 297
SYS_READLINKAT = 298 SYS_READLINKAT = 298
SYS_FCHMODAT = 299 SYS_FCHMODAT = 299
SYS_FACCESSAT = 300 SYS_FACCESSAT = 300
SYS_PSELECT6 = 301 SYS_PSELECT6 = 301
SYS_PPOLL = 302 SYS_PPOLL = 302
SYS_UNSHARE = 303 SYS_UNSHARE = 303
SYS_SET_ROBUST_LIST = 304 SYS_SET_ROBUST_LIST = 304
SYS_GET_ROBUST_LIST = 305 SYS_GET_ROBUST_LIST = 305
SYS_SPLICE = 306 SYS_SPLICE = 306
SYS_SYNC_FILE_RANGE = 307 SYS_SYNC_FILE_RANGE = 307
SYS_TEE = 308 SYS_TEE = 308
SYS_VMSPLICE = 309 SYS_VMSPLICE = 309
SYS_MOVE_PAGES = 310 SYS_MOVE_PAGES = 310
SYS_GETCPU = 311 SYS_GETCPU = 311
SYS_EPOLL_PWAIT = 312 SYS_EPOLL_PWAIT = 312
SYS_UTIMES = 313 SYS_UTIMES = 313
SYS_FALLOCATE = 314 SYS_FALLOCATE = 314
SYS_UTIMENSAT = 315 SYS_UTIMENSAT = 315
SYS_SIGNALFD = 316 SYS_SIGNALFD = 316
SYS_TIMERFD = 317 SYS_TIMERFD = 317
SYS_EVENTFD = 318 SYS_EVENTFD = 318
SYS_TIMERFD_CREATE = 319 SYS_TIMERFD_CREATE = 319
SYS_TIMERFD_SETTIME = 320 SYS_TIMERFD_SETTIME = 320
SYS_TIMERFD_GETTIME = 321 SYS_TIMERFD_GETTIME = 321
SYS_SIGNALFD4 = 322 SYS_SIGNALFD4 = 322
SYS_EVENTFD2 = 323 SYS_EVENTFD2 = 323
SYS_INOTIFY_INIT1 = 324 SYS_INOTIFY_INIT1 = 324
SYS_PIPE2 = 325 SYS_PIPE2 = 325
SYS_DUP3 = 326 SYS_DUP3 = 326
SYS_EPOLL_CREATE1 = 327 SYS_EPOLL_CREATE1 = 327
SYS_PREADV = 328 SYS_PREADV = 328
SYS_PWRITEV = 329 SYS_PWRITEV = 329
SYS_RT_TGSIGQUEUEINFO = 330 SYS_RT_TGSIGQUEUEINFO = 330
SYS_PERF_EVENT_OPEN = 331 SYS_PERF_EVENT_OPEN = 331
SYS_FANOTIFY_INIT = 332 SYS_FANOTIFY_INIT = 332
SYS_FANOTIFY_MARK = 333 SYS_FANOTIFY_MARK = 333
SYS_PRLIMIT64 = 334 SYS_PRLIMIT64 = 334
SYS_NAME_TO_HANDLE_AT = 335 SYS_NAME_TO_HANDLE_AT = 335
SYS_OPEN_BY_HANDLE_AT = 336 SYS_OPEN_BY_HANDLE_AT = 336
SYS_CLOCK_ADJTIME = 337 SYS_CLOCK_ADJTIME = 337
SYS_SYNCFS = 338 SYS_SYNCFS = 338
SYS_SETNS = 339 SYS_SETNS = 339
SYS_PROCESS_VM_READV = 340 SYS_PROCESS_VM_READV = 340
SYS_PROCESS_VM_WRITEV = 341 SYS_PROCESS_VM_WRITEV = 341
SYS_S390_RUNTIME_INSTR = 342 SYS_S390_RUNTIME_INSTR = 342
SYS_KCMP = 343 SYS_KCMP = 343
SYS_FINIT_MODULE = 344 SYS_FINIT_MODULE = 344
SYS_SCHED_SETATTR = 345 SYS_SCHED_SETATTR = 345
SYS_SCHED_GETATTR = 346 SYS_SCHED_GETATTR = 346
SYS_RENAMEAT2 = 347 SYS_RENAMEAT2 = 347
SYS_SECCOMP = 348 SYS_SECCOMP = 348
SYS_GETRANDOM = 349 SYS_GETRANDOM = 349
SYS_MEMFD_CREATE = 350 SYS_MEMFD_CREATE = 350
SYS_BPF = 351 SYS_BPF = 351
SYS_S390_PCI_MMIO_WRITE = 352 SYS_S390_PCI_MMIO_WRITE = 352
SYS_S390_PCI_MMIO_READ = 353 SYS_S390_PCI_MMIO_READ = 353
SYS_EXECVEAT = 354 SYS_EXECVEAT = 354
SYS_USERFAULTFD = 355 SYS_USERFAULTFD = 355
SYS_MEMBARRIER = 356 SYS_MEMBARRIER = 356
SYS_RECVMMSG = 357 SYS_RECVMMSG = 357
SYS_SENDMMSG = 358 SYS_SENDMMSG = 358
SYS_SOCKET = 359 SYS_SOCKET = 359
SYS_SOCKETPAIR = 360 SYS_SOCKETPAIR = 360
SYS_BIND = 361 SYS_BIND = 361
SYS_CONNECT = 362 SYS_CONNECT = 362
SYS_LISTEN = 363 SYS_LISTEN = 363
SYS_ACCEPT4 = 364 SYS_ACCEPT4 = 364
SYS_GETSOCKOPT = 365 SYS_GETSOCKOPT = 365
SYS_SETSOCKOPT = 366 SYS_SETSOCKOPT = 366
SYS_GETSOCKNAME = 367 SYS_GETSOCKNAME = 367
SYS_GETPEERNAME = 368 SYS_GETPEERNAME = 368
SYS_SENDTO = 369 SYS_SENDTO = 369
SYS_SENDMSG = 370 SYS_SENDMSG = 370
SYS_RECVFROM = 371 SYS_RECVFROM = 371
SYS_RECVMSG = 372 SYS_RECVMSG = 372
SYS_SHUTDOWN = 373 SYS_SHUTDOWN = 373
SYS_MLOCK2 = 374 SYS_MLOCK2 = 374
SYS_COPY_FILE_RANGE = 375 SYS_COPY_FILE_RANGE = 375
SYS_PREADV2 = 376 SYS_PREADV2 = 376
SYS_PWRITEV2 = 377 SYS_PWRITEV2 = 377
SYS_S390_GUARDED_STORAGE = 378 SYS_S390_GUARDED_STORAGE = 378
SYS_STATX = 379 SYS_STATX = 379
SYS_S390_STHYI = 380 SYS_S390_STHYI = 380
SYS_KEXEC_FILE_LOAD = 381 SYS_KEXEC_FILE_LOAD = 381
SYS_IO_PGETEVENTS = 382 SYS_IO_PGETEVENTS = 382
SYS_RSEQ = 383 SYS_RSEQ = 383
SYS_PKEY_MPROTECT = 384 SYS_PKEY_MPROTECT = 384
SYS_PKEY_ALLOC = 385 SYS_PKEY_ALLOC = 385
SYS_PKEY_FREE = 386 SYS_PKEY_FREE = 386
SYS_SEMTIMEDOP = 392 SYS_SEMTIMEDOP = 392
SYS_SEMGET = 393 SYS_SEMGET = 393
SYS_SEMCTL = 394 SYS_SEMCTL = 394
SYS_SHMGET = 395 SYS_SHMGET = 395
SYS_SHMCTL = 396 SYS_SHMCTL = 396
SYS_SHMAT = 397 SYS_SHMAT = 397
SYS_SHMDT = 398 SYS_SHMDT = 398
SYS_MSGGET = 399 SYS_MSGGET = 399
SYS_MSGSND = 400 SYS_MSGSND = 400
SYS_MSGRCV = 401 SYS_MSGRCV = 401
SYS_MSGCTL = 402 SYS_MSGCTL = 402
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLONE3 = 435 SYS_CLONE3 = 435
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -7,379 +7,382 @@
package unix package unix
const ( const (
SYS_RESTART_SYSCALL = 0 SYS_RESTART_SYSCALL = 0
SYS_EXIT = 1 SYS_EXIT = 1
SYS_FORK = 2 SYS_FORK = 2
SYS_READ = 3 SYS_READ = 3
SYS_WRITE = 4 SYS_WRITE = 4
SYS_OPEN = 5 SYS_OPEN = 5
SYS_CLOSE = 6 SYS_CLOSE = 6
SYS_WAIT4 = 7 SYS_WAIT4 = 7
SYS_CREAT = 8 SYS_CREAT = 8
SYS_LINK = 9 SYS_LINK = 9
SYS_UNLINK = 10 SYS_UNLINK = 10
SYS_EXECV = 11 SYS_EXECV = 11
SYS_CHDIR = 12 SYS_CHDIR = 12
SYS_CHOWN = 13 SYS_CHOWN = 13
SYS_MKNOD = 14 SYS_MKNOD = 14
SYS_CHMOD = 15 SYS_CHMOD = 15
SYS_LCHOWN = 16 SYS_LCHOWN = 16
SYS_BRK = 17 SYS_BRK = 17
SYS_PERFCTR = 18 SYS_PERFCTR = 18
SYS_LSEEK = 19 SYS_LSEEK = 19
SYS_GETPID = 20 SYS_GETPID = 20
SYS_CAPGET = 21 SYS_CAPGET = 21
SYS_CAPSET = 22 SYS_CAPSET = 22
SYS_SETUID = 23 SYS_SETUID = 23
SYS_GETUID = 24 SYS_GETUID = 24
SYS_VMSPLICE = 25 SYS_VMSPLICE = 25
SYS_PTRACE = 26 SYS_PTRACE = 26
SYS_ALARM = 27 SYS_ALARM = 27
SYS_SIGALTSTACK = 28 SYS_SIGALTSTACK = 28
SYS_PAUSE = 29 SYS_PAUSE = 29
SYS_UTIME = 30 SYS_UTIME = 30
SYS_ACCESS = 33 SYS_ACCESS = 33
SYS_NICE = 34 SYS_NICE = 34
SYS_SYNC = 36 SYS_SYNC = 36
SYS_KILL = 37 SYS_KILL = 37
SYS_STAT = 38 SYS_STAT = 38
SYS_SENDFILE = 39 SYS_SENDFILE = 39
SYS_LSTAT = 40 SYS_LSTAT = 40
SYS_DUP = 41 SYS_DUP = 41
SYS_PIPE = 42 SYS_PIPE = 42
SYS_TIMES = 43 SYS_TIMES = 43
SYS_UMOUNT2 = 45 SYS_UMOUNT2 = 45
SYS_SETGID = 46 SYS_SETGID = 46
SYS_GETGID = 47 SYS_GETGID = 47
SYS_SIGNAL = 48 SYS_SIGNAL = 48
SYS_GETEUID = 49 SYS_GETEUID = 49
SYS_GETEGID = 50 SYS_GETEGID = 50
SYS_ACCT = 51 SYS_ACCT = 51
SYS_MEMORY_ORDERING = 52 SYS_MEMORY_ORDERING = 52
SYS_IOCTL = 54 SYS_IOCTL = 54
SYS_REBOOT = 55 SYS_REBOOT = 55
SYS_SYMLINK = 57 SYS_SYMLINK = 57
SYS_READLINK = 58 SYS_READLINK = 58
SYS_EXECVE = 59 SYS_EXECVE = 59
SYS_UMASK = 60 SYS_UMASK = 60
SYS_CHROOT = 61 SYS_CHROOT = 61
SYS_FSTAT = 62 SYS_FSTAT = 62
SYS_FSTAT64 = 63 SYS_FSTAT64 = 63
SYS_GETPAGESIZE = 64 SYS_GETPAGESIZE = 64
SYS_MSYNC = 65 SYS_MSYNC = 65
SYS_VFORK = 66 SYS_VFORK = 66
SYS_PREAD64 = 67 SYS_PREAD64 = 67
SYS_PWRITE64 = 68 SYS_PWRITE64 = 68
SYS_MMAP = 71 SYS_MMAP = 71
SYS_MUNMAP = 73 SYS_MUNMAP = 73
SYS_MPROTECT = 74 SYS_MPROTECT = 74
SYS_MADVISE = 75 SYS_MADVISE = 75
SYS_VHANGUP = 76 SYS_VHANGUP = 76
SYS_MINCORE = 78 SYS_MINCORE = 78
SYS_GETGROUPS = 79 SYS_GETGROUPS = 79
SYS_SETGROUPS = 80 SYS_SETGROUPS = 80
SYS_GETPGRP = 81 SYS_GETPGRP = 81
SYS_SETITIMER = 83 SYS_SETITIMER = 83
SYS_SWAPON = 85 SYS_SWAPON = 85
SYS_GETITIMER = 86 SYS_GETITIMER = 86
SYS_SETHOSTNAME = 88 SYS_SETHOSTNAME = 88
SYS_DUP2 = 90 SYS_DUP2 = 90
SYS_FCNTL = 92 SYS_FCNTL = 92
SYS_SELECT = 93 SYS_SELECT = 93
SYS_FSYNC = 95 SYS_FSYNC = 95
SYS_SETPRIORITY = 96 SYS_SETPRIORITY = 96
SYS_SOCKET = 97 SYS_SOCKET = 97
SYS_CONNECT = 98 SYS_CONNECT = 98
SYS_ACCEPT = 99 SYS_ACCEPT = 99
SYS_GETPRIORITY = 100 SYS_GETPRIORITY = 100
SYS_RT_SIGRETURN = 101 SYS_RT_SIGRETURN = 101
SYS_RT_SIGACTION = 102 SYS_RT_SIGACTION = 102
SYS_RT_SIGPROCMASK = 103 SYS_RT_SIGPROCMASK = 103
SYS_RT_SIGPENDING = 104 SYS_RT_SIGPENDING = 104
SYS_RT_SIGTIMEDWAIT = 105 SYS_RT_SIGTIMEDWAIT = 105
SYS_RT_SIGQUEUEINFO = 106 SYS_RT_SIGQUEUEINFO = 106
SYS_RT_SIGSUSPEND = 107 SYS_RT_SIGSUSPEND = 107
SYS_SETRESUID = 108 SYS_SETRESUID = 108
SYS_GETRESUID = 109 SYS_GETRESUID = 109
SYS_SETRESGID = 110 SYS_SETRESGID = 110
SYS_GETRESGID = 111 SYS_GETRESGID = 111
SYS_RECVMSG = 113 SYS_RECVMSG = 113
SYS_SENDMSG = 114 SYS_SENDMSG = 114
SYS_GETTIMEOFDAY = 116 SYS_GETTIMEOFDAY = 116
SYS_GETRUSAGE = 117 SYS_GETRUSAGE = 117
SYS_GETSOCKOPT = 118 SYS_GETSOCKOPT = 118
SYS_GETCWD = 119 SYS_GETCWD = 119
SYS_READV = 120 SYS_READV = 120
SYS_WRITEV = 121 SYS_WRITEV = 121
SYS_SETTIMEOFDAY = 122 SYS_SETTIMEOFDAY = 122
SYS_FCHOWN = 123 SYS_FCHOWN = 123
SYS_FCHMOD = 124 SYS_FCHMOD = 124
SYS_RECVFROM = 125 SYS_RECVFROM = 125
SYS_SETREUID = 126 SYS_SETREUID = 126
SYS_SETREGID = 127 SYS_SETREGID = 127
SYS_RENAME = 128 SYS_RENAME = 128
SYS_TRUNCATE = 129 SYS_TRUNCATE = 129
SYS_FTRUNCATE = 130 SYS_FTRUNCATE = 130
SYS_FLOCK = 131 SYS_FLOCK = 131
SYS_LSTAT64 = 132 SYS_LSTAT64 = 132
SYS_SENDTO = 133 SYS_SENDTO = 133
SYS_SHUTDOWN = 134 SYS_SHUTDOWN = 134
SYS_SOCKETPAIR = 135 SYS_SOCKETPAIR = 135
SYS_MKDIR = 136 SYS_MKDIR = 136
SYS_RMDIR = 137 SYS_RMDIR = 137
SYS_UTIMES = 138 SYS_UTIMES = 138
SYS_STAT64 = 139 SYS_STAT64 = 139
SYS_SENDFILE64 = 140 SYS_SENDFILE64 = 140
SYS_GETPEERNAME = 141 SYS_GETPEERNAME = 141
SYS_FUTEX = 142 SYS_FUTEX = 142
SYS_GETTID = 143 SYS_GETTID = 143
SYS_GETRLIMIT = 144 SYS_GETRLIMIT = 144
SYS_SETRLIMIT = 145 SYS_SETRLIMIT = 145
SYS_PIVOT_ROOT = 146 SYS_PIVOT_ROOT = 146
SYS_PRCTL = 147 SYS_PRCTL = 147
SYS_PCICONFIG_READ = 148 SYS_PCICONFIG_READ = 148
SYS_PCICONFIG_WRITE = 149 SYS_PCICONFIG_WRITE = 149
SYS_GETSOCKNAME = 150 SYS_GETSOCKNAME = 150
SYS_INOTIFY_INIT = 151 SYS_INOTIFY_INIT = 151
SYS_INOTIFY_ADD_WATCH = 152 SYS_INOTIFY_ADD_WATCH = 152
SYS_POLL = 153 SYS_POLL = 153
SYS_GETDENTS64 = 154 SYS_GETDENTS64 = 154
SYS_INOTIFY_RM_WATCH = 156 SYS_INOTIFY_RM_WATCH = 156
SYS_STATFS = 157 SYS_STATFS = 157
SYS_FSTATFS = 158 SYS_FSTATFS = 158
SYS_UMOUNT = 159 SYS_UMOUNT = 159
SYS_SCHED_SET_AFFINITY = 160 SYS_SCHED_SET_AFFINITY = 160
SYS_SCHED_GET_AFFINITY = 161 SYS_SCHED_GET_AFFINITY = 161
SYS_GETDOMAINNAME = 162 SYS_GETDOMAINNAME = 162
SYS_SETDOMAINNAME = 163 SYS_SETDOMAINNAME = 163
SYS_UTRAP_INSTALL = 164 SYS_UTRAP_INSTALL = 164
SYS_QUOTACTL = 165 SYS_QUOTACTL = 165
SYS_SET_TID_ADDRESS = 166 SYS_SET_TID_ADDRESS = 166
SYS_MOUNT = 167 SYS_MOUNT = 167
SYS_USTAT = 168 SYS_USTAT = 168
SYS_SETXATTR = 169 SYS_SETXATTR = 169
SYS_LSETXATTR = 170 SYS_LSETXATTR = 170
SYS_FSETXATTR = 171 SYS_FSETXATTR = 171
SYS_GETXATTR = 172 SYS_GETXATTR = 172
SYS_LGETXATTR = 173 SYS_LGETXATTR = 173
SYS_GETDENTS = 174 SYS_GETDENTS = 174
SYS_SETSID = 175 SYS_SETSID = 175
SYS_FCHDIR = 176 SYS_FCHDIR = 176
SYS_FGETXATTR = 177 SYS_FGETXATTR = 177
SYS_LISTXATTR = 178 SYS_LISTXATTR = 178
SYS_LLISTXATTR = 179 SYS_LLISTXATTR = 179
SYS_FLISTXATTR = 180 SYS_FLISTXATTR = 180
SYS_REMOVEXATTR = 181 SYS_REMOVEXATTR = 181
SYS_LREMOVEXATTR = 182 SYS_LREMOVEXATTR = 182
SYS_SIGPENDING = 183 SYS_SIGPENDING = 183
SYS_QUERY_MODULE = 184 SYS_QUERY_MODULE = 184
SYS_SETPGID = 185 SYS_SETPGID = 185
SYS_FREMOVEXATTR = 186 SYS_FREMOVEXATTR = 186
SYS_TKILL = 187 SYS_TKILL = 187
SYS_EXIT_GROUP = 188 SYS_EXIT_GROUP = 188
SYS_UNAME = 189 SYS_UNAME = 189
SYS_INIT_MODULE = 190 SYS_INIT_MODULE = 190
SYS_PERSONALITY = 191 SYS_PERSONALITY = 191
SYS_REMAP_FILE_PAGES = 192 SYS_REMAP_FILE_PAGES = 192
SYS_EPOLL_CREATE = 193 SYS_EPOLL_CREATE = 193
SYS_EPOLL_CTL = 194 SYS_EPOLL_CTL = 194
SYS_EPOLL_WAIT = 195 SYS_EPOLL_WAIT = 195
SYS_IOPRIO_SET = 196 SYS_IOPRIO_SET = 196
SYS_GETPPID = 197 SYS_GETPPID = 197
SYS_SIGACTION = 198 SYS_SIGACTION = 198
SYS_SGETMASK = 199 SYS_SGETMASK = 199
SYS_SSETMASK = 200 SYS_SSETMASK = 200
SYS_SIGSUSPEND = 201 SYS_SIGSUSPEND = 201
SYS_OLDLSTAT = 202 SYS_OLDLSTAT = 202
SYS_USELIB = 203 SYS_USELIB = 203
SYS_READDIR = 204 SYS_READDIR = 204
SYS_READAHEAD = 205 SYS_READAHEAD = 205
SYS_SOCKETCALL = 206 SYS_SOCKETCALL = 206
SYS_SYSLOG = 207 SYS_SYSLOG = 207
SYS_LOOKUP_DCOOKIE = 208 SYS_LOOKUP_DCOOKIE = 208
SYS_FADVISE64 = 209 SYS_FADVISE64 = 209
SYS_FADVISE64_64 = 210 SYS_FADVISE64_64 = 210
SYS_TGKILL = 211 SYS_TGKILL = 211
SYS_WAITPID = 212 SYS_WAITPID = 212
SYS_SWAPOFF = 213 SYS_SWAPOFF = 213
SYS_SYSINFO = 214 SYS_SYSINFO = 214
SYS_IPC = 215 SYS_IPC = 215
SYS_SIGRETURN = 216 SYS_SIGRETURN = 216
SYS_CLONE = 217 SYS_CLONE = 217
SYS_IOPRIO_GET = 218 SYS_IOPRIO_GET = 218
SYS_ADJTIMEX = 219 SYS_ADJTIMEX = 219
SYS_SIGPROCMASK = 220 SYS_SIGPROCMASK = 220
SYS_CREATE_MODULE = 221 SYS_CREATE_MODULE = 221
SYS_DELETE_MODULE = 222 SYS_DELETE_MODULE = 222
SYS_GET_KERNEL_SYMS = 223 SYS_GET_KERNEL_SYMS = 223
SYS_GETPGID = 224 SYS_GETPGID = 224
SYS_BDFLUSH = 225 SYS_BDFLUSH = 225
SYS_SYSFS = 226 SYS_SYSFS = 226
SYS_AFS_SYSCALL = 227 SYS_AFS_SYSCALL = 227
SYS_SETFSUID = 228 SYS_SETFSUID = 228
SYS_SETFSGID = 229 SYS_SETFSGID = 229
SYS__NEWSELECT = 230 SYS__NEWSELECT = 230
SYS_SPLICE = 232 SYS_SPLICE = 232
SYS_STIME = 233 SYS_STIME = 233
SYS_STATFS64 = 234 SYS_STATFS64 = 234
SYS_FSTATFS64 = 235 SYS_FSTATFS64 = 235
SYS__LLSEEK = 236 SYS__LLSEEK = 236
SYS_MLOCK = 237 SYS_MLOCK = 237
SYS_MUNLOCK = 238 SYS_MUNLOCK = 238
SYS_MLOCKALL = 239 SYS_MLOCKALL = 239
SYS_MUNLOCKALL = 240 SYS_MUNLOCKALL = 240
SYS_SCHED_SETPARAM = 241 SYS_SCHED_SETPARAM = 241
SYS_SCHED_GETPARAM = 242 SYS_SCHED_GETPARAM = 242
SYS_SCHED_SETSCHEDULER = 243 SYS_SCHED_SETSCHEDULER = 243
SYS_SCHED_GETSCHEDULER = 244 SYS_SCHED_GETSCHEDULER = 244
SYS_SCHED_YIELD = 245 SYS_SCHED_YIELD = 245
SYS_SCHED_GET_PRIORITY_MAX = 246 SYS_SCHED_GET_PRIORITY_MAX = 246
SYS_SCHED_GET_PRIORITY_MIN = 247 SYS_SCHED_GET_PRIORITY_MIN = 247
SYS_SCHED_RR_GET_INTERVAL = 248 SYS_SCHED_RR_GET_INTERVAL = 248
SYS_NANOSLEEP = 249 SYS_NANOSLEEP = 249
SYS_MREMAP = 250 SYS_MREMAP = 250
SYS__SYSCTL = 251 SYS__SYSCTL = 251
SYS_GETSID = 252 SYS_GETSID = 252
SYS_FDATASYNC = 253 SYS_FDATASYNC = 253
SYS_NFSSERVCTL = 254 SYS_NFSSERVCTL = 254
SYS_SYNC_FILE_RANGE = 255 SYS_SYNC_FILE_RANGE = 255
SYS_CLOCK_SETTIME = 256 SYS_CLOCK_SETTIME = 256
SYS_CLOCK_GETTIME = 257 SYS_CLOCK_GETTIME = 257
SYS_CLOCK_GETRES = 258 SYS_CLOCK_GETRES = 258
SYS_CLOCK_NANOSLEEP = 259 SYS_CLOCK_NANOSLEEP = 259
SYS_SCHED_GETAFFINITY = 260 SYS_SCHED_GETAFFINITY = 260
SYS_SCHED_SETAFFINITY = 261 SYS_SCHED_SETAFFINITY = 261
SYS_TIMER_SETTIME = 262 SYS_TIMER_SETTIME = 262
SYS_TIMER_GETTIME = 263 SYS_TIMER_GETTIME = 263
SYS_TIMER_GETOVERRUN = 264 SYS_TIMER_GETOVERRUN = 264
SYS_TIMER_DELETE = 265 SYS_TIMER_DELETE = 265
SYS_TIMER_CREATE = 266 SYS_TIMER_CREATE = 266
SYS_VSERVER = 267 SYS_VSERVER = 267
SYS_IO_SETUP = 268 SYS_IO_SETUP = 268
SYS_IO_DESTROY = 269 SYS_IO_DESTROY = 269
SYS_IO_SUBMIT = 270 SYS_IO_SUBMIT = 270
SYS_IO_CANCEL = 271 SYS_IO_CANCEL = 271
SYS_IO_GETEVENTS = 272 SYS_IO_GETEVENTS = 272
SYS_MQ_OPEN = 273 SYS_MQ_OPEN = 273
SYS_MQ_UNLINK = 274 SYS_MQ_UNLINK = 274
SYS_MQ_TIMEDSEND = 275 SYS_MQ_TIMEDSEND = 275
SYS_MQ_TIMEDRECEIVE = 276 SYS_MQ_TIMEDRECEIVE = 276
SYS_MQ_NOTIFY = 277 SYS_MQ_NOTIFY = 277
SYS_MQ_GETSETATTR = 278 SYS_MQ_GETSETATTR = 278
SYS_WAITID = 279 SYS_WAITID = 279
SYS_TEE = 280 SYS_TEE = 280
SYS_ADD_KEY = 281 SYS_ADD_KEY = 281
SYS_REQUEST_KEY = 282 SYS_REQUEST_KEY = 282
SYS_KEYCTL = 283 SYS_KEYCTL = 283
SYS_OPENAT = 284 SYS_OPENAT = 284
SYS_MKDIRAT = 285 SYS_MKDIRAT = 285
SYS_MKNODAT = 286 SYS_MKNODAT = 286
SYS_FCHOWNAT = 287 SYS_FCHOWNAT = 287
SYS_FUTIMESAT = 288 SYS_FUTIMESAT = 288
SYS_FSTATAT64 = 289 SYS_FSTATAT64 = 289
SYS_UNLINKAT = 290 SYS_UNLINKAT = 290
SYS_RENAMEAT = 291 SYS_RENAMEAT = 291
SYS_LINKAT = 292 SYS_LINKAT = 292
SYS_SYMLINKAT = 293 SYS_SYMLINKAT = 293
SYS_READLINKAT = 294 SYS_READLINKAT = 294
SYS_FCHMODAT = 295 SYS_FCHMODAT = 295
SYS_FACCESSAT = 296 SYS_FACCESSAT = 296
SYS_PSELECT6 = 297 SYS_PSELECT6 = 297
SYS_PPOLL = 298 SYS_PPOLL = 298
SYS_UNSHARE = 299 SYS_UNSHARE = 299
SYS_SET_ROBUST_LIST = 300 SYS_SET_ROBUST_LIST = 300
SYS_GET_ROBUST_LIST = 301 SYS_GET_ROBUST_LIST = 301
SYS_MIGRATE_PAGES = 302 SYS_MIGRATE_PAGES = 302
SYS_MBIND = 303 SYS_MBIND = 303
SYS_GET_MEMPOLICY = 304 SYS_GET_MEMPOLICY = 304
SYS_SET_MEMPOLICY = 305 SYS_SET_MEMPOLICY = 305
SYS_KEXEC_LOAD = 306 SYS_KEXEC_LOAD = 306
SYS_MOVE_PAGES = 307 SYS_MOVE_PAGES = 307
SYS_GETCPU = 308 SYS_GETCPU = 308
SYS_EPOLL_PWAIT = 309 SYS_EPOLL_PWAIT = 309
SYS_UTIMENSAT = 310 SYS_UTIMENSAT = 310
SYS_SIGNALFD = 311 SYS_SIGNALFD = 311
SYS_TIMERFD_CREATE = 312 SYS_TIMERFD_CREATE = 312
SYS_EVENTFD = 313 SYS_EVENTFD = 313
SYS_FALLOCATE = 314 SYS_FALLOCATE = 314
SYS_TIMERFD_SETTIME = 315 SYS_TIMERFD_SETTIME = 315
SYS_TIMERFD_GETTIME = 316 SYS_TIMERFD_GETTIME = 316
SYS_SIGNALFD4 = 317 SYS_SIGNALFD4 = 317
SYS_EVENTFD2 = 318 SYS_EVENTFD2 = 318
SYS_EPOLL_CREATE1 = 319 SYS_EPOLL_CREATE1 = 319
SYS_DUP3 = 320 SYS_DUP3 = 320
SYS_PIPE2 = 321 SYS_PIPE2 = 321
SYS_INOTIFY_INIT1 = 322 SYS_INOTIFY_INIT1 = 322
SYS_ACCEPT4 = 323 SYS_ACCEPT4 = 323
SYS_PREADV = 324 SYS_PREADV = 324
SYS_PWRITEV = 325 SYS_PWRITEV = 325
SYS_RT_TGSIGQUEUEINFO = 326 SYS_RT_TGSIGQUEUEINFO = 326
SYS_PERF_EVENT_OPEN = 327 SYS_PERF_EVENT_OPEN = 327
SYS_RECVMMSG = 328 SYS_RECVMMSG = 328
SYS_FANOTIFY_INIT = 329 SYS_FANOTIFY_INIT = 329
SYS_FANOTIFY_MARK = 330 SYS_FANOTIFY_MARK = 330
SYS_PRLIMIT64 = 331 SYS_PRLIMIT64 = 331
SYS_NAME_TO_HANDLE_AT = 332 SYS_NAME_TO_HANDLE_AT = 332
SYS_OPEN_BY_HANDLE_AT = 333 SYS_OPEN_BY_HANDLE_AT = 333
SYS_CLOCK_ADJTIME = 334 SYS_CLOCK_ADJTIME = 334
SYS_SYNCFS = 335 SYS_SYNCFS = 335
SYS_SENDMMSG = 336 SYS_SENDMMSG = 336
SYS_SETNS = 337 SYS_SETNS = 337
SYS_PROCESS_VM_READV = 338 SYS_PROCESS_VM_READV = 338
SYS_PROCESS_VM_WRITEV = 339 SYS_PROCESS_VM_WRITEV = 339
SYS_KERN_FEATURES = 340 SYS_KERN_FEATURES = 340
SYS_KCMP = 341 SYS_KCMP = 341
SYS_FINIT_MODULE = 342 SYS_FINIT_MODULE = 342
SYS_SCHED_SETATTR = 343 SYS_SCHED_SETATTR = 343
SYS_SCHED_GETATTR = 344 SYS_SCHED_GETATTR = 344
SYS_RENAMEAT2 = 345 SYS_RENAMEAT2 = 345
SYS_SECCOMP = 346 SYS_SECCOMP = 346
SYS_GETRANDOM = 347 SYS_GETRANDOM = 347
SYS_MEMFD_CREATE = 348 SYS_MEMFD_CREATE = 348
SYS_BPF = 349 SYS_BPF = 349
SYS_EXECVEAT = 350 SYS_EXECVEAT = 350
SYS_MEMBARRIER = 351 SYS_MEMBARRIER = 351
SYS_USERFAULTFD = 352 SYS_USERFAULTFD = 352
SYS_BIND = 353 SYS_BIND = 353
SYS_LISTEN = 354 SYS_LISTEN = 354
SYS_SETSOCKOPT = 355 SYS_SETSOCKOPT = 355
SYS_MLOCK2 = 356 SYS_MLOCK2 = 356
SYS_COPY_FILE_RANGE = 357 SYS_COPY_FILE_RANGE = 357
SYS_PREADV2 = 358 SYS_PREADV2 = 358
SYS_PWRITEV2 = 359 SYS_PWRITEV2 = 359
SYS_STATX = 360 SYS_STATX = 360
SYS_IO_PGETEVENTS = 361 SYS_IO_PGETEVENTS = 361
SYS_PKEY_MPROTECT = 362 SYS_PKEY_MPROTECT = 362
SYS_PKEY_ALLOC = 363 SYS_PKEY_ALLOC = 363
SYS_PKEY_FREE = 364 SYS_PKEY_FREE = 364
SYS_RSEQ = 365 SYS_RSEQ = 365
SYS_SEMTIMEDOP = 392 SYS_SEMTIMEDOP = 392
SYS_SEMGET = 393 SYS_SEMGET = 393
SYS_SEMCTL = 394 SYS_SEMCTL = 394
SYS_SHMGET = 395 SYS_SHMGET = 395
SYS_SHMCTL = 396 SYS_SHMCTL = 396
SYS_SHMAT = 397 SYS_SHMAT = 397
SYS_SHMDT = 398 SYS_SHMDT = 398
SYS_MSGGET = 399 SYS_MSGGET = 399
SYS_MSGSND = 400 SYS_MSGSND = 400
SYS_MSGRCV = 401 SYS_MSGRCV = 401
SYS_MSGCTL = 402 SYS_MSGCTL = 402
SYS_PIDFD_SEND_SIGNAL = 424 SYS_PIDFD_SEND_SIGNAL = 424
SYS_IO_URING_SETUP = 425 SYS_IO_URING_SETUP = 425
SYS_IO_URING_ENTER = 426 SYS_IO_URING_ENTER = 426
SYS_IO_URING_REGISTER = 427 SYS_IO_URING_REGISTER = 427
SYS_OPEN_TREE = 428 SYS_OPEN_TREE = 428
SYS_MOVE_MOUNT = 429 SYS_MOVE_MOUNT = 429
SYS_FSOPEN = 430 SYS_FSOPEN = 430
SYS_FSCONFIG = 431 SYS_FSCONFIG = 431
SYS_FSMOUNT = 432 SYS_FSMOUNT = 432
SYS_FSPICK = 433 SYS_FSPICK = 433
SYS_PIDFD_OPEN = 434 SYS_PIDFD_OPEN = 434
SYS_CLOSE_RANGE = 436 SYS_CLOSE_RANGE = 436
SYS_OPENAT2 = 437 SYS_OPENAT2 = 437
SYS_PIDFD_GETFD = 438 SYS_PIDFD_GETFD = 438
SYS_FACCESSAT2 = 439 SYS_FACCESSAT2 = 439
SYS_PROCESS_MADVISE = 440 SYS_PROCESS_MADVISE = 440
SYS_EPOLL_PWAIT2 = 441 SYS_EPOLL_PWAIT2 = 441
SYS_MOUNT_SETATTR = 442 SYS_MOUNT_SETATTR = 442
SYS_LANDLOCK_CREATE_RULESET = 444
SYS_LANDLOCK_ADD_RULE = 445
SYS_LANDLOCK_RESTRICT_SELF = 446
) )

View file

@ -452,6 +452,11 @@ type CanFilter struct {
Mask uint32 Mask uint32
} }
type TCPRepairOpt struct {
Code uint32
Val uint32
}
const ( const (
SizeofSockaddrInet4 = 0x10 SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c SizeofSockaddrInet6 = 0x1c
@ -484,6 +489,7 @@ const (
SizeofUcred = 0xc SizeofUcred = 0xc
SizeofTCPInfo = 0x68 SizeofTCPInfo = 0x68
SizeofCanFilter = 0x8 SizeofCanFilter = 0x8
SizeofTCPRepairOpt = 0x8
) )
const ( const (
@ -681,6 +687,16 @@ type NdMsg struct {
Type uint8 Type uint8
} }
const (
ICMP_FILTER = 0x1
ICMPV6_FILTER = 0x1
ICMPV6_FILTER_BLOCK = 0x1
ICMPV6_FILTER_BLOCKOTHERS = 0x3
ICMPV6_FILTER_PASS = 0x2
ICMPV6_FILTER_PASSONLY = 0x4
)
const ( const (
SizeofSockFilter = 0x8 SizeofSockFilter = 0x8
) )
@ -1001,7 +1017,7 @@ const (
PERF_COUNT_SW_EMULATION_FAULTS = 0x8 PERF_COUNT_SW_EMULATION_FAULTS = 0x8
PERF_COUNT_SW_DUMMY = 0x9 PERF_COUNT_SW_DUMMY = 0x9
PERF_COUNT_SW_BPF_OUTPUT = 0xa PERF_COUNT_SW_BPF_OUTPUT = 0xa
PERF_COUNT_SW_MAX = 0xb PERF_COUNT_SW_MAX = 0xc
PERF_SAMPLE_IP = 0x1 PERF_SAMPLE_IP = 0x1
PERF_SAMPLE_TID = 0x2 PERF_SAMPLE_TID = 0x2
PERF_SAMPLE_TIME = 0x4 PERF_SAMPLE_TIME = 0x4
@ -3436,7 +3452,7 @@ const (
ETHTOOL_MSG_CABLE_TEST_ACT = 0x1a ETHTOOL_MSG_CABLE_TEST_ACT = 0x1a
ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 0x1b ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 0x1b
ETHTOOL_MSG_TUNNEL_INFO_GET = 0x1c ETHTOOL_MSG_TUNNEL_INFO_GET = 0x1c
ETHTOOL_MSG_USER_MAX = 0x1c ETHTOOL_MSG_USER_MAX = 0x20
ETHTOOL_MSG_KERNEL_NONE = 0x0 ETHTOOL_MSG_KERNEL_NONE = 0x0
ETHTOOL_MSG_STRSET_GET_REPLY = 0x1 ETHTOOL_MSG_STRSET_GET_REPLY = 0x1
ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2 ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2
@ -3467,7 +3483,7 @@ const (
ETHTOOL_MSG_CABLE_TEST_NTF = 0x1b ETHTOOL_MSG_CABLE_TEST_NTF = 0x1b
ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 0x1c ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 0x1c
ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 0x1d ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 0x1d
ETHTOOL_MSG_KERNEL_MAX = 0x1d ETHTOOL_MSG_KERNEL_MAX = 0x21
ETHTOOL_A_HEADER_UNSPEC = 0x0 ETHTOOL_A_HEADER_UNSPEC = 0x0
ETHTOOL_A_HEADER_DEV_INDEX = 0x1 ETHTOOL_A_HEADER_DEV_INDEX = 0x1
ETHTOOL_A_HEADER_DEV_NAME = 0x2 ETHTOOL_A_HEADER_DEV_NAME = 0x2

View file

@ -440,3 +440,43 @@ const (
POLLWRBAND = 0x100 POLLWRBAND = 0x100
POLLWRNORM = 0x4 POLLWRNORM = 0x4
) )
type fileObj struct {
Atim Timespec
Mtim Timespec
Ctim Timespec
Pad [3]uint64
Name *int8
}
type portEvent struct {
Events int32
Source uint16
Pad uint16
Object uint64
User *byte
}
const (
PORT_SOURCE_AIO = 0x1
PORT_SOURCE_TIMER = 0x2
PORT_SOURCE_USER = 0x3
PORT_SOURCE_FD = 0x4
PORT_SOURCE_ALERT = 0x5
PORT_SOURCE_MQ = 0x6
PORT_SOURCE_FILE = 0x7
PORT_ALERT_SET = 0x1
PORT_ALERT_UPDATE = 0x2
PORT_ALERT_INVALID = 0x3
FILE_ACCESS = 0x1
FILE_MODIFIED = 0x2
FILE_ATTRIB = 0x4
FILE_TRUNC = 0x100000
FILE_NOFOLLOW = 0x10000000
FILE_DELETE = 0x10
FILE_RENAME_TO = 0x20
FILE_RENAME_FROM = 0x40
UNMOUNTED = 0x20000000
MOUNTEDOVER = 0x40000000
FILE_EXCEPTION = 0x60000070
)

View file

@ -889,6 +889,7 @@ type WTS_SESSION_INFO struct {
//sys WTSQueryUserToken(session uint32, token *Token) (err error) = wtsapi32.WTSQueryUserToken //sys WTSQueryUserToken(session uint32, token *Token) (err error) = wtsapi32.WTSQueryUserToken
//sys WTSEnumerateSessions(handle Handle, reserved uint32, version uint32, sessions **WTS_SESSION_INFO, count *uint32) (err error) = wtsapi32.WTSEnumerateSessionsW //sys WTSEnumerateSessions(handle Handle, reserved uint32, version uint32, sessions **WTS_SESSION_INFO, count *uint32) (err error) = wtsapi32.WTSEnumerateSessionsW
//sys WTSFreeMemory(ptr uintptr) = wtsapi32.WTSFreeMemory //sys WTSFreeMemory(ptr uintptr) = wtsapi32.WTSFreeMemory
//sys WTSGetActiveConsoleSessionId() (sessionID uint32)
type ACL struct { type ACL struct {
aclRevision byte aclRevision byte

View file

@ -346,6 +346,7 @@ var (
procVirtualLock = modkernel32.NewProc("VirtualLock") procVirtualLock = modkernel32.NewProc("VirtualLock")
procVirtualProtect = modkernel32.NewProc("VirtualProtect") procVirtualProtect = modkernel32.NewProc("VirtualProtect")
procVirtualUnlock = modkernel32.NewProc("VirtualUnlock") procVirtualUnlock = modkernel32.NewProc("VirtualUnlock")
procWTSGetActiveConsoleSessionId = modkernel32.NewProc("WTSGetActiveConsoleSessionId")
procWaitForMultipleObjects = modkernel32.NewProc("WaitForMultipleObjects") procWaitForMultipleObjects = modkernel32.NewProc("WaitForMultipleObjects")
procWaitForSingleObject = modkernel32.NewProc("WaitForSingleObject") procWaitForSingleObject = modkernel32.NewProc("WaitForSingleObject")
procWriteConsoleW = modkernel32.NewProc("WriteConsoleW") procWriteConsoleW = modkernel32.NewProc("WriteConsoleW")
@ -2992,6 +2993,12 @@ func VirtualUnlock(addr uintptr, length uintptr) (err error) {
return return
} }
func WTSGetActiveConsoleSessionId() (sessionID uint32) {
r0, _, _ := syscall.Syscall(procWTSGetActiveConsoleSessionId.Addr(), 0, 0, 0, 0)
sessionID = uint32(r0)
return
}
func waitForMultipleObjects(count uint32, handles uintptr, waitAll bool, waitMilliseconds uint32) (event uint32, err error) { func waitForMultipleObjects(count uint32, handles uintptr, waitAll bool, waitMilliseconds uint32) (event uint32, err error) {
var _p0 uint32 var _p0 uint32
if waitAll { if waitAll {

3
vendor/golang.org/x/tools/AUTHORS generated vendored
View file

@ -1,3 +0,0 @@
# This source code refers to The Go Authors for copyright purposes.
# The master list of authors is in the main Go distribution,
# visible at http://tip.golang.org/AUTHORS.

Some files were not shown because too many files have changed in this diff Show more