rebase: bump sigs.k8s.io/controller-runtime from 0.9.2 to 0.10.0

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.9.2 to 0.10.0.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.9.2...v0.10.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2021-09-02 12:01:06 +00:00 committed by mergify[bot]
parent 60c2afbcca
commit fb000647b5
81 changed files with 4219 additions and 3370 deletions

7
go.mod
View File

@ -11,6 +11,7 @@ require (
github.com/golang/protobuf v1.5.2 github.com/golang/protobuf v1.5.2
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/vault/api v1.0.5-0.20200902155336-f9d5ce5a171a github.com/hashicorp/vault/api v1.0.5-0.20200902155336-f9d5ce5a171a
github.com/kubernetes-csi/csi-lib-utils v0.10.0 github.com/kubernetes-csi/csi-lib-utils v0.10.0
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0 github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0
@ -21,7 +22,7 @@ require (
github.com/prometheus/client_golang v1.11.0 github.com/prometheus/client_golang v1.11.0
github.com/stretchr/testify v1.7.0 github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2
google.golang.org/grpc v1.40.0 google.golang.org/grpc v1.40.0
k8s.io/api v0.22.1 k8s.io/api v0.22.1
k8s.io/apimachinery v0.22.1 k8s.io/apimachinery v0.22.1
@ -30,8 +31,8 @@ require (
k8s.io/klog/v2 v2.10.0 k8s.io/klog/v2 v2.10.0
k8s.io/kubernetes v1.22.1 k8s.io/kubernetes v1.22.1
k8s.io/mount-utils v0.22.1 k8s.io/mount-utils v0.22.1
k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9 k8s.io/utils v0.0.0-20210802155522-efc7438f0176
sigs.k8s.io/controller-runtime v0.9.2 sigs.k8s.io/controller-runtime v0.10.0
) )
replace ( replace (

21
go.sum
View File

@ -136,8 +136,9 @@ github.com/aws/aws-sdk-go v1.38.49/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2z
github.com/aws/aws-sdk-go v1.38.63 h1:BqPxe0sujTRTbir6OWj0f1VmeJcAIv7ZhTCAhaU1zmE= github.com/aws/aws-sdk-go v1.38.63 h1:BqPxe0sujTRTbir6OWj0f1VmeJcAIv7ZhTCAhaU1zmE=
github.com/aws/aws-sdk-go v1.38.63/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.38.63/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc= github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc=
github.com/benbjohnson/clock v1.0.3 h1:vkLuvpK4fmtSCuo60+yC63p7y0BmQ8gm5ZXGuBCJyXg=
github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
@ -765,7 +766,6 @@ github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W
github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E=
github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc=
github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0=
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
@ -775,7 +775,7 @@ github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY= github.com/onsi/gomega v1.15.0/go.mod h1:cIuvLEne0aoVhAgh/O6ac0Op8WWw9H6eYCriF+tEHG0=
github.com/onsi/gomega v1.16.0 h1:6gjqkI8iiRHMvdccRJM8rVKjCWk6ZIm6FTm3ddIe4/c= github.com/onsi/gomega v1.16.0 h1:6gjqkI8iiRHMvdccRJM8rVKjCWk6ZIm6FTm3ddIe4/c=
github.com/onsi/gomega v1.16.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= github.com/onsi/gomega v1.16.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
@ -1041,8 +1041,9 @@ go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
go.uber.org/zap v1.17.0 h1:MTjgFu6ZLKvY6Pvaqk97GlxNBuMpV4Hy/3P6tRGlI2U=
go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo=
go.uber.org/zap v1.19.0 h1:mZQZefskPPCMIBCSEH0v2/iUqqLrYtaeqwD6FUGUnFE=
go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI=
golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20171113213409-9f005a07e0d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20180820150726-614d502a4dac/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180820150726-614d502a4dac/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
@ -1256,8 +1257,9 @@ golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 h1:RqytpXGR1iVNX7psjB3ff8y7sNFinVFvkx1c8SjBkio=
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-20210817190340-bfb29a6856f2 h1:c8PlLMqBbOHoqtjteWm5/kbe6rNY2pbRfbIMVnepueo=
golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2/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/term v0.0.0-20210220032956-6a3ed077a48d h1:SZxvLBoTP5yHO3Frd4z4vrF+DBX9vMVanchswa69toE= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d h1:SZxvLBoTP5yHO3Frd4z4vrF+DBX9vMVanchswa69toE=
@ -1280,7 +1282,6 @@ golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxb
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20210611083556-38a9dc6acbc6/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs= golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs=
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
@ -1574,9 +1575,9 @@ k8s.io/sample-apiserver v0.22.1/go.mod h1:1HfRH0fcTF33VZnwAN7fdq/vA+aF1iAhKCWdzK
k8s.io/system-validators v1.5.0/go.mod h1:bPldcLgkIUK22ALflnsXk8pvkTEndYdNuaHH6gRrl0Q= k8s.io/system-validators v1.5.0/go.mod h1:bPldcLgkIUK22ALflnsXk8pvkTEndYdNuaHH6gRrl0Q=
k8s.io/utils v0.0.0-20190506122338-8fab8cb257d5/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= k8s.io/utils v0.0.0-20190506122338-8fab8cb257d5/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
k8s.io/utils v0.0.0-20210527160623-6fdb442a123b/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9 h1:imL9YgXQ9p7xmPzHFm/vVd/cF78jad+n4wK1ABwYtMM=
k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
k8s.io/utils v0.0.0-20210802155522-efc7438f0176 h1:Mx0aa+SUAcNRQbs5jUzV8lkDlGFU8laZsY9jrcVX5SY=
k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
layeh.com/radius v0.0.0-20190322222518-890bc1058917/go.mod h1:fywZKyu//X7iRzaxLgPWsvc0L26IUpVvE/aeIL2JtIQ= layeh.com/radius v0.0.0-20190322222518-890bc1058917/go.mod h1:fywZKyu//X7iRzaxLgPWsvc0L26IUpVvE/aeIL2JtIQ=
modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
@ -1590,8 +1591,8 @@ rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22 h1:fmRfl9WJ4ApJn7LxNuED4m0t18qivVQOxP6aAYG9J6c= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22 h1:fmRfl9WJ4ApJn7LxNuED4m0t18qivVQOxP6aAYG9J6c=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg=
sigs.k8s.io/controller-runtime v0.2.2/go.mod h1:9dyohw3ZtoXQuV1e766PHUn+cmrRCIcBh6XIMFNMZ+I= sigs.k8s.io/controller-runtime v0.2.2/go.mod h1:9dyohw3ZtoXQuV1e766PHUn+cmrRCIcBh6XIMFNMZ+I=
sigs.k8s.io/controller-runtime v0.9.2 h1:MnCAsopQno6+hI9SgJHKddzXpmv2wtouZz6931Eax+Q= sigs.k8s.io/controller-runtime v0.10.0 h1:HgyZmMpjUOrtkaFtCnfxsR1bGRuFoAczSNbn2MoKj5U=
sigs.k8s.io/controller-runtime v0.9.2/go.mod h1:TxzMCHyEUpaeuOiZx/bIdc2T81vfs/aKdvJt9wuu0zk= sigs.k8s.io/controller-runtime v0.10.0/go.mod h1:GCdh6kqV6IY4LK0JLwX0Zm6g233RtVGdb/f0+KSfprg=
sigs.k8s.io/kustomize/api v0.8.11/go.mod h1:a77Ls36JdfCWojpUqR6m60pdGY1AYFix4AH83nJtY1g= sigs.k8s.io/kustomize/api v0.8.11/go.mod h1:a77Ls36JdfCWojpUqR6m60pdGY1AYFix4AH83nJtY1g=
sigs.k8s.io/kustomize/cmd/config v0.9.13/go.mod h1:7547FLF8W/lTaDf0BDqFTbZxM9zqwEJqCKN9sSR0xSs= sigs.k8s.io/kustomize/cmd/config v0.9.13/go.mod h1:7547FLF8W/lTaDf0BDqFTbZxM9zqwEJqCKN9sSR0xSs=
sigs.k8s.io/kustomize/kustomize/v4 v4.2.0/go.mod h1:MOkR6fmhwG7hEDRXBYELTi5GSFcLwfqwzTRHW3kv5go= sigs.k8s.io/kustomize/kustomize/v4 v4.2.0/go.mod h1:MOkR6fmhwG7hEDRXBYELTi5GSFcLwfqwzTRHW3kv5go=

109
vendor/golang.org/x/sys/unix/ifreq_linux.go generated vendored Normal file
View File

@ -0,0 +1,109 @@
// Copyright 2021 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.
//go:build linux
// +build linux
package unix
import (
"bytes"
"unsafe"
)
// Helpers for dealing with ifreq since it contains a union and thus requires a
// lot of unsafe.Pointer casts to use properly.
// 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)
// bytes.
func NewIfreq(name string) (*Ifreq, error) {
// Leave room for terminating NULL byte.
if len(name) >= IFNAMSIZ {
return nil, EINVAL
}
var ifr ifreq
copy(ifr.Ifrn[:], name)
return &Ifreq{raw: ifr}, nil
}
// TODO(mdlayher): get/set methods for sockaddr, char array, etc.
// Name returns the interface name associated with the 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])
}
// 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 {
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
// Pad to the same size as ifreq.
_ [len(ifreq{}.Ifru) - SizeofPtr]byte
}
// withData produces an ifreqData with the pointer p set for ioctls which require
// arbitrary pointer data.
func (ifr Ifreq) withData(p unsafe.Pointer) ifreqData {
return ifreqData{
name: ifr.raw.Ifrn,
data: p,
}
}

View File

@ -5,7 +5,6 @@
package unix package unix
import ( import (
"runtime"
"unsafe" "unsafe"
) )
@ -22,56 +21,42 @@ func IoctlRetInt(fd int, req uint) (int, error) {
func IoctlGetUint32(fd int, req uint) (uint32, error) { func IoctlGetUint32(fd int, req uint) (uint32, error) {
var value uint32 var value uint32
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, req, unsafe.Pointer(&value))
return value, err return value, err
} }
func IoctlGetRTCTime(fd int) (*RTCTime, error) { func IoctlGetRTCTime(fd int) (*RTCTime, error) {
var value RTCTime var value RTCTime
err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, RTC_RD_TIME, unsafe.Pointer(&value))
return &value, err return &value, err
} }
func IoctlSetRTCTime(fd int, value *RTCTime) error { func IoctlSetRTCTime(fd int, value *RTCTime) error {
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value))) return ioctlPtr(fd, RTC_SET_TIME, unsafe.Pointer(value))
runtime.KeepAlive(value)
return err
} }
func IoctlGetRTCWkAlrm(fd int) (*RTCWkAlrm, error) { func IoctlGetRTCWkAlrm(fd int) (*RTCWkAlrm, error) {
var value RTCWkAlrm var value RTCWkAlrm
err := ioctl(fd, RTC_WKALM_RD, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, RTC_WKALM_RD, unsafe.Pointer(&value))
return &value, err return &value, err
} }
func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error { func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error {
err := ioctl(fd, RTC_WKALM_SET, uintptr(unsafe.Pointer(value))) return ioctlPtr(fd, RTC_WKALM_SET, unsafe.Pointer(value))
runtime.KeepAlive(value)
return err
}
type ifreqEthtool struct {
name [IFNAMSIZ]byte
data unsafe.Pointer
} }
// 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) {
// Leave room for terminating NULL byte. ifr, err := NewIfreq(ifname)
if len(ifname) >= IFNAMSIZ { if err != nil {
return nil, EINVAL return nil, err
} }
value := EthtoolDrvinfo{ value := EthtoolDrvinfo{Cmd: ETHTOOL_GDRVINFO}
Cmd: ETHTOOL_GDRVINFO, ifrd := ifr.withData(unsafe.Pointer(&value))
}
ifreq := ifreqEthtool{ err = ioctlIfreqData(fd, SIOCETHTOOL, &ifrd)
data: unsafe.Pointer(&value),
}
copy(ifreq.name[:], ifname)
err := ioctl(fd, SIOCETHTOOL, uintptr(unsafe.Pointer(&ifreq)))
runtime.KeepAlive(ifreq)
return &value, err return &value, err
} }
@ -80,7 +65,7 @@ func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) {
// https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html. // https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html.
func IoctlGetWatchdogInfo(fd int) (*WatchdogInfo, error) { func IoctlGetWatchdogInfo(fd int) (*WatchdogInfo, error) {
var value WatchdogInfo var value WatchdogInfo
err := ioctl(fd, WDIOC_GETSUPPORT, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, WDIOC_GETSUPPORT, unsafe.Pointer(&value))
return &value, err return &value, err
} }
@ -88,6 +73,7 @@ func IoctlGetWatchdogInfo(fd int) (*WatchdogInfo, error) {
// more information, see: // more information, see:
// https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html. // https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html.
func IoctlWatchdogKeepalive(fd int) error { func IoctlWatchdogKeepalive(fd int) error {
// arg is ignored and not a pointer, so ioctl is fine instead of ioctlPtr.
return ioctl(fd, WDIOC_KEEPALIVE, 0) return ioctl(fd, WDIOC_KEEPALIVE, 0)
} }
@ -95,9 +81,7 @@ func IoctlWatchdogKeepalive(fd int) error {
// range of data conveyed in value to the file associated with the file // range of data conveyed in value to the file associated with the file
// descriptor destFd. See the ioctl_ficlonerange(2) man page for details. // descriptor destFd. See the ioctl_ficlonerange(2) man page for details.
func IoctlFileCloneRange(destFd int, value *FileCloneRange) error { func IoctlFileCloneRange(destFd int, value *FileCloneRange) error {
err := ioctl(destFd, FICLONERANGE, uintptr(unsafe.Pointer(value))) return ioctlPtr(destFd, FICLONERANGE, unsafe.Pointer(value))
runtime.KeepAlive(value)
return err
} }
// IoctlFileClone performs an FICLONE ioctl operation to clone the entire file // IoctlFileClone performs an FICLONE ioctl operation to clone the entire file
@ -148,7 +132,7 @@ func IoctlFileDedupeRange(srcFd int, value *FileDedupeRange) error {
rawinfo.Reserved = value.Info[i].Reserved rawinfo.Reserved = value.Info[i].Reserved
} }
err := ioctl(srcFd, FIDEDUPERANGE, uintptr(unsafe.Pointer(&buf[0]))) err := ioctlPtr(srcFd, FIDEDUPERANGE, unsafe.Pointer(&buf[0]))
// Output // Output
for i := range value.Info { for i := range value.Info {
@ -166,31 +150,47 @@ func IoctlFileDedupeRange(srcFd int, value *FileDedupeRange) error {
} }
func IoctlHIDGetDesc(fd int, value *HIDRawReportDescriptor) error { func IoctlHIDGetDesc(fd int, value *HIDRawReportDescriptor) error {
err := ioctl(fd, HIDIOCGRDESC, uintptr(unsafe.Pointer(value))) return ioctlPtr(fd, HIDIOCGRDESC, unsafe.Pointer(value))
runtime.KeepAlive(value)
return err
} }
func IoctlHIDGetRawInfo(fd int) (*HIDRawDevInfo, error) { func IoctlHIDGetRawInfo(fd int) (*HIDRawDevInfo, error) {
var value HIDRawDevInfo var value HIDRawDevInfo
err := ioctl(fd, HIDIOCGRAWINFO, uintptr(unsafe.Pointer(&value))) err := ioctlPtr(fd, HIDIOCGRAWINFO, unsafe.Pointer(&value))
return &value, err return &value, err
} }
func IoctlHIDGetRawName(fd int) (string, error) { func IoctlHIDGetRawName(fd int) (string, error) {
var value [_HIDIOCGRAWNAME_LEN]byte var value [_HIDIOCGRAWNAME_LEN]byte
err := ioctl(fd, _HIDIOCGRAWNAME, uintptr(unsafe.Pointer(&value[0]))) err := ioctlPtr(fd, _HIDIOCGRAWNAME, unsafe.Pointer(&value[0]))
return ByteSliceToString(value[:]), err return ByteSliceToString(value[:]), err
} }
func IoctlHIDGetRawPhys(fd int) (string, error) { func IoctlHIDGetRawPhys(fd int) (string, error) {
var value [_HIDIOCGRAWPHYS_LEN]byte var value [_HIDIOCGRAWPHYS_LEN]byte
err := ioctl(fd, _HIDIOCGRAWPHYS, uintptr(unsafe.Pointer(&value[0]))) err := ioctlPtr(fd, _HIDIOCGRAWPHYS, unsafe.Pointer(&value[0]))
return ByteSliceToString(value[:]), err return ByteSliceToString(value[:]), err
} }
func IoctlHIDGetRawUniq(fd int) (string, error) { func IoctlHIDGetRawUniq(fd int) (string, error) {
var value [_HIDIOCGRAWUNIQ_LEN]byte var value [_HIDIOCGRAWUNIQ_LEN]byte
err := ioctl(fd, _HIDIOCGRAWUNIQ, uintptr(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>

View File

@ -66,11 +66,18 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
return fchmodat(dirfd, path, mode) return fchmodat(dirfd, path, mode)
} }
//sys ioctl(fd int, req uint, arg uintptr) (err error) //sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
// ioctl itself should not be exposed directly, but additional get/set // ioctl itself should not be exposed directly, but additional get/set functions
// functions for specific types are permissible. // for specific types are permissible. These are defined in ioctl.go and
// These are defined in ioctl.go and ioctl_linux.go. // ioctl_linux.go.
//
// The third argument to ioctl is often a pointer but sometimes an integer.
// Callers should use ioctlPtr when the third argument is a pointer and ioctl
// when the third argument is an integer.
//
// TODO: some existing code incorrectly uses ioctl when it should use ioctlPtr.
//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) //sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error)
@ -1859,7 +1866,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

@ -143,7 +143,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 +171,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

@ -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

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

@ -48,6 +48,16 @@ func ioctl(fd int, req uint, arg uintptr) (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 ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
var _p0 *byte var _p0 *byte
_p0, err = BytePtrFromString(oldpath) _p0, err = BytePtrFromString(oldpath)
@ -1201,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

@ -681,6 +681,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 +1011,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
@ -1773,6 +1783,8 @@ const (
NFPROTO_NUMPROTO = 0xd NFPROTO_NUMPROTO = 0xd
) )
const SO_ORIGINAL_DST = 0x50
type Nfgenmsg struct { type Nfgenmsg struct {
Nfgen_family uint8 Nfgen_family uint8
Version uint8 Version uint8
@ -3434,7 +3446,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
@ -3465,7 +3477,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

@ -170,6 +170,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8

View File

@ -173,6 +173,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

View File

@ -176,6 +176,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8

View File

@ -174,6 +174,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

View File

@ -175,6 +175,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8

View File

@ -174,6 +174,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

View File

@ -174,6 +174,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

View File

@ -175,6 +175,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8

View File

@ -176,6 +176,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [16]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x58 SizeofSockaddrNFCLLCP = 0x58
SizeofIovec = 0x8 SizeofIovec = 0x8

View File

@ -175,6 +175,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

View File

@ -175,6 +175,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

View File

@ -174,6 +174,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

View File

@ -173,6 +173,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

View File

@ -177,6 +177,11 @@ type Cmsghdr struct {
Type int32 Type int32
} }
type ifreq struct {
Ifrn [16]byte
Ifru [24]byte
}
const ( const (
SizeofSockaddrNFCLLCP = 0x60 SizeofSockaddrNFCLLCP = 0x60
SizeofIovec = 0x10 SizeofIovec = 0x10

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

@ -680,7 +680,7 @@ const (
WTD_CHOICE_CERT = 5 WTD_CHOICE_CERT = 5
WTD_STATEACTION_IGNORE = 0x00000000 WTD_STATEACTION_IGNORE = 0x00000000
WTD_STATEACTION_VERIFY = 0x00000010 WTD_STATEACTION_VERIFY = 0x00000001
WTD_STATEACTION_CLOSE = 0x00000002 WTD_STATEACTION_CLOSE = 0x00000002
WTD_STATEACTION_AUTO_CACHE = 0x00000003 WTD_STATEACTION_AUTO_CACHE = 0x00000003
WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004 WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004

View File

@ -46,6 +46,24 @@ func AllPtrFieldsNil(obj interface{}) bool {
return true return true
} }
// Int returns a pointer to an int
func Int(i int) *int {
return &i
}
var IntPtr = Int // for back-compat
// IntDeref dereferences the int ptr and returns it if not nil, or else
// returns def.
func IntDeref(ptr *int, def int) int {
if ptr != nil {
return *ptr
}
return def
}
var IntPtrDerefOr = IntDeref // for back-compat
// Int32 returns a pointer to an int32. // Int32 returns a pointer to an int32.
func Int32(i int32) *int32 { func Int32(i int32) *int32 {
return &i return &i

8
vendor/modules.txt vendored
View File

@ -145,6 +145,8 @@ github.com/hashicorp/go-retryablehttp
github.com/hashicorp/go-rootcerts github.com/hashicorp/go-rootcerts
# github.com/hashicorp/go-sockaddr v1.0.2 # github.com/hashicorp/go-sockaddr v1.0.2
github.com/hashicorp/go-sockaddr github.com/hashicorp/go-sockaddr
# github.com/hashicorp/golang-lru v0.5.4
## explicit
# github.com/hashicorp/hcl v1.0.0 # github.com/hashicorp/hcl v1.0.0
github.com/hashicorp/hcl github.com/hashicorp/hcl
github.com/hashicorp/hcl/hcl/ast github.com/hashicorp/hcl/hcl/ast
@ -376,7 +378,7 @@ golang.org/x/net/trace
# golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5 # golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5
golang.org/x/oauth2 golang.org/x/oauth2
golang.org/x/oauth2/internal golang.org/x/oauth2/internal
# golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 # golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2
## explicit ## explicit
golang.org/x/sys/cpu golang.org/x/sys/cpu
golang.org/x/sys/internal/unsafeheader golang.org/x/sys/internal/unsafeheader
@ -989,7 +991,7 @@ k8s.io/kubernetes/test/utils/image
# k8s.io/mount-utils v0.22.1 => k8s.io/mount-utils v0.22.1 # k8s.io/mount-utils v0.22.1 => k8s.io/mount-utils v0.22.1
## explicit ## explicit
k8s.io/mount-utils k8s.io/mount-utils
# k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9 # k8s.io/utils v0.0.0-20210802155522-efc7438f0176
## explicit ## explicit
k8s.io/utils/buffer k8s.io/utils/buffer
k8s.io/utils/exec k8s.io/utils/exec
@ -1008,7 +1010,7 @@ k8s.io/utils/trace
# sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22 # sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22
sigs.k8s.io/apiserver-network-proxy/konnectivity-client/pkg/client sigs.k8s.io/apiserver-network-proxy/konnectivity-client/pkg/client
sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client
# sigs.k8s.io/controller-runtime v0.9.2 # sigs.k8s.io/controller-runtime v0.10.0
## explicit ## explicit
sigs.k8s.io/controller-runtime/pkg/cache sigs.k8s.io/controller-runtime/pkg/cache
sigs.k8s.io/controller-runtime/pkg/cache/internal sigs.k8s.io/controller-runtime/pkg/cache/internal

View File

@ -113,6 +113,12 @@ type Options struct {
// [1] https://pkg.go.dev/k8s.io/apimachinery/pkg/fields#Selector // [1] https://pkg.go.dev/k8s.io/apimachinery/pkg/fields#Selector
// [2] https://pkg.go.dev/k8s.io/apimachinery/pkg/fields#Set // [2] https://pkg.go.dev/k8s.io/apimachinery/pkg/fields#Set
SelectorsByObject SelectorsByObject SelectorsByObject SelectorsByObject
// UnsafeDisableDeepCopyByObject indicates not to deep copy objects during get or
// list objects per GVK at the specified object.
// Be very careful with this, when enabled you must DeepCopy any object before mutating it,
// otherwise you will mutate the object in the cache.
UnsafeDisableDeepCopyByObject DisableDeepCopyByObject
} }
var defaultResyncTime = 10 * time.Hour var defaultResyncTime = 10 * time.Hour
@ -127,7 +133,11 @@ func New(config *rest.Config, opts Options) (Cache, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
im := internal.NewInformersMap(config, opts.Scheme, opts.Mapper, *opts.Resync, opts.Namespace, selectorsByGVK) disableDeepCopyByGVK, err := convertToDisableDeepCopyByGVK(opts.UnsafeDisableDeepCopyByObject, opts.Scheme)
if err != nil {
return nil, err
}
im := internal.NewInformersMap(config, opts.Scheme, opts.Mapper, *opts.Resync, opts.Namespace, selectorsByGVK, disableDeepCopyByGVK)
return &informerCache{InformersMap: im}, nil return &informerCache{InformersMap: im}, nil
} }
@ -136,6 +146,8 @@ func New(config *rest.Config, opts Options) (Cache, error) {
// SelectorsByObject // SelectorsByObject
// WARNING: if SelectorsByObject is specified. filtered out resources are not // WARNING: if SelectorsByObject is specified. filtered out resources are not
// returned. // returned.
// WARNING: if UnsafeDisableDeepCopy is enabled, you must DeepCopy any object
// returned from cache get/list before mutating it.
func BuilderWithOptions(options Options) NewCacheFunc { func BuilderWithOptions(options Options) NewCacheFunc {
return func(config *rest.Config, opts Options) (Cache, error) { return func(config *rest.Config, opts Options) (Cache, error) {
if opts.Scheme == nil { if opts.Scheme == nil {
@ -151,6 +163,7 @@ func BuilderWithOptions(options Options) NewCacheFunc {
opts.Namespace = options.Namespace opts.Namespace = options.Namespace
} }
opts.SelectorsByObject = options.SelectorsByObject opts.SelectorsByObject = options.SelectorsByObject
opts.UnsafeDisableDeepCopyByObject = options.UnsafeDisableDeepCopyByObject
return New(config, opts) return New(config, opts)
} }
} }
@ -189,3 +202,30 @@ func convertToSelectorsByGVK(selectorsByObject SelectorsByObject, scheme *runtim
} }
return selectorsByGVK, nil return selectorsByGVK, nil
} }
// DisableDeepCopyByObject associate a client.Object's GVK to disable DeepCopy during get or list from cache.
type DisableDeepCopyByObject map[client.Object]bool
var _ client.Object = &ObjectAll{}
// ObjectAll is the argument to represent all objects' types.
type ObjectAll struct {
client.Object
}
func convertToDisableDeepCopyByGVK(disableDeepCopyByObject DisableDeepCopyByObject, scheme *runtime.Scheme) (internal.DisableDeepCopyByGVK, error) {
disableDeepCopyByGVK := internal.DisableDeepCopyByGVK{}
for obj, disable := range disableDeepCopyByObject {
switch obj.(type) {
case ObjectAll, *ObjectAll:
disableDeepCopyByGVK[internal.GroupVersionKindAll] = disable
default:
gvk, err := apiutil.GVKForObject(obj, scheme)
if err != nil {
return nil, err
}
disableDeepCopyByGVK[gvk] = disable
}
}
return disableDeepCopyByGVK, nil
}

View File

@ -46,6 +46,11 @@ type CacheReader struct {
// scopeName is the scope of the resource (namespaced or cluster-scoped). // scopeName is the scope of the resource (namespaced or cluster-scoped).
scopeName apimeta.RESTScopeName scopeName apimeta.RESTScopeName
// disableDeepCopy indicates not to deep copy objects during get or list objects.
// Be very careful with this, when enabled you must DeepCopy any object before mutating it,
// otherwise you will mutate the object in the cache.
disableDeepCopy bool
} }
// Get checks the indexer for the object and writes a copy of it if found. // Get checks the indexer for the object and writes a copy of it if found.
@ -76,9 +81,13 @@ func (c *CacheReader) Get(_ context.Context, key client.ObjectKey, out client.Ob
return fmt.Errorf("cache contained %T, which is not an Object", obj) return fmt.Errorf("cache contained %T, which is not an Object", obj)
} }
// deep copy to avoid mutating cache if c.disableDeepCopy {
// TODO(directxman12): revisit the decision to always deepcopy // skip deep copy which might be unsafe
obj = obj.(runtime.Object).DeepCopyObject() // you must DeepCopy any object before mutating it outside
} else {
// deep copy to avoid mutating cache
obj = obj.(runtime.Object).DeepCopyObject()
}
// Copy the value of the item in the cache to the returned value // Copy the value of the item in the cache to the returned value
// TODO(directxman12): this is a terrible hack, pls fix (we should have deepcopyinto) // TODO(directxman12): this is a terrible hack, pls fix (we should have deepcopyinto)
@ -88,7 +97,9 @@ func (c *CacheReader) Get(_ context.Context, key client.ObjectKey, out client.Ob
return fmt.Errorf("cache had type %s, but %s was asked for", objVal.Type(), outVal.Type()) return fmt.Errorf("cache had type %s, but %s was asked for", objVal.Type(), outVal.Type())
} }
reflect.Indirect(outVal).Set(reflect.Indirect(objVal)) reflect.Indirect(outVal).Set(reflect.Indirect(objVal))
out.GetObjectKind().SetGroupVersionKind(c.groupVersionKind) if !c.disableDeepCopy {
out.GetObjectKind().SetGroupVersionKind(c.groupVersionKind)
}
return nil return nil
} }
@ -129,10 +140,10 @@ func (c *CacheReader) List(_ context.Context, out client.ObjectList, opts ...cli
limitSet := listOpts.Limit > 0 limitSet := listOpts.Limit > 0
runtimeObjs := make([]runtime.Object, 0, len(objs)) runtimeObjs := make([]runtime.Object, 0, len(objs))
for i, item := range objs { for _, item := range objs {
// if the Limit option is set and the number of items // if the Limit option is set and the number of items
// listed exceeds this limit, then stop reading. // listed exceeds this limit, then stop reading.
if limitSet && int64(i) >= listOpts.Limit { if limitSet && int64(len(runtimeObjs)) >= listOpts.Limit {
break break
} }
obj, isObj := item.(runtime.Object) obj, isObj := item.(runtime.Object)
@ -150,8 +161,15 @@ func (c *CacheReader) List(_ context.Context, out client.ObjectList, opts ...cli
} }
} }
outObj := obj.DeepCopyObject() var outObj runtime.Object
outObj.GetObjectKind().SetGroupVersionKind(c.groupVersionKind) if c.disableDeepCopy {
// skip deep copy which might be unsafe
// you must DeepCopy any object before mutating it outside
outObj = obj
} else {
outObj = obj.DeepCopyObject()
outObj.GetObjectKind().SetGroupVersionKind(c.groupVersionKind)
}
runtimeObjs = append(runtimeObjs, outObj) runtimeObjs = append(runtimeObjs, outObj)
} }
return apimeta.SetList(out, runtimeObjs) return apimeta.SetList(out, runtimeObjs)

View File

@ -51,11 +51,12 @@ func NewInformersMap(config *rest.Config,
resync time.Duration, resync time.Duration,
namespace string, namespace string,
selectors SelectorsByGVK, selectors SelectorsByGVK,
disableDeepCopy DisableDeepCopyByGVK,
) *InformersMap { ) *InformersMap {
return &InformersMap{ return &InformersMap{
structured: newStructuredInformersMap(config, scheme, mapper, resync, namespace, selectors), structured: newStructuredInformersMap(config, scheme, mapper, resync, namespace, selectors, disableDeepCopy),
unstructured: newUnstructuredInformersMap(config, scheme, mapper, resync, namespace, selectors), unstructured: newUnstructuredInformersMap(config, scheme, mapper, resync, namespace, selectors, disableDeepCopy),
metadata: newMetadataInformersMap(config, scheme, mapper, resync, namespace, selectors), metadata: newMetadataInformersMap(config, scheme, mapper, resync, namespace, selectors, disableDeepCopy),
Scheme: scheme, Scheme: scheme,
} }
@ -107,18 +108,18 @@ func (m *InformersMap) Get(ctx context.Context, gvk schema.GroupVersionKind, obj
// newStructuredInformersMap creates a new InformersMap for structured objects. // newStructuredInformersMap creates a new InformersMap for structured objects.
func newStructuredInformersMap(config *rest.Config, scheme *runtime.Scheme, mapper meta.RESTMapper, resync time.Duration, func newStructuredInformersMap(config *rest.Config, scheme *runtime.Scheme, mapper meta.RESTMapper, resync time.Duration,
namespace string, selectors SelectorsByGVK) *specificInformersMap { namespace string, selectors SelectorsByGVK, disableDeepCopy DisableDeepCopyByGVK) *specificInformersMap {
return newSpecificInformersMap(config, scheme, mapper, resync, namespace, selectors, createStructuredListWatch) return newSpecificInformersMap(config, scheme, mapper, resync, namespace, selectors, disableDeepCopy, createStructuredListWatch)
} }
// newUnstructuredInformersMap creates a new InformersMap for unstructured objects. // newUnstructuredInformersMap creates a new InformersMap for unstructured objects.
func newUnstructuredInformersMap(config *rest.Config, scheme *runtime.Scheme, mapper meta.RESTMapper, resync time.Duration, func newUnstructuredInformersMap(config *rest.Config, scheme *runtime.Scheme, mapper meta.RESTMapper, resync time.Duration,
namespace string, selectors SelectorsByGVK) *specificInformersMap { namespace string, selectors SelectorsByGVK, disableDeepCopy DisableDeepCopyByGVK) *specificInformersMap {
return newSpecificInformersMap(config, scheme, mapper, resync, namespace, selectors, createUnstructuredListWatch) return newSpecificInformersMap(config, scheme, mapper, resync, namespace, selectors, disableDeepCopy, createUnstructuredListWatch)
} }
// newMetadataInformersMap creates a new InformersMap for metadata-only objects. // newMetadataInformersMap creates a new InformersMap for metadata-only objects.
func newMetadataInformersMap(config *rest.Config, scheme *runtime.Scheme, mapper meta.RESTMapper, resync time.Duration, func newMetadataInformersMap(config *rest.Config, scheme *runtime.Scheme, mapper meta.RESTMapper, resync time.Duration,
namespace string, selectors SelectorsByGVK) *specificInformersMap { namespace string, selectors SelectorsByGVK, disableDeepCopy DisableDeepCopyByGVK) *specificInformersMap {
return newSpecificInformersMap(config, scheme, mapper, resync, namespace, selectors, createMetadataListWatch) return newSpecificInformersMap(config, scheme, mapper, resync, namespace, selectors, disableDeepCopy, createMetadataListWatch)
} }

View File

@ -0,0 +1,35 @@
/*
Copyright 2021 The Kubernetes 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 internal
import "k8s.io/apimachinery/pkg/runtime/schema"
// GroupVersionKindAll is the argument to represent all GroupVersionKind types.
var GroupVersionKindAll = schema.GroupVersionKind{}
// DisableDeepCopyByGVK associate a GroupVersionKind to disable DeepCopy during get or list from cache.
type DisableDeepCopyByGVK map[schema.GroupVersionKind]bool
// IsDisabled returns whether a GroupVersionKind is disabled DeepCopy.
func (disableByGVK DisableDeepCopyByGVK) IsDisabled(gvk schema.GroupVersionKind) bool {
if d, ok := disableByGVK[gvk]; ok {
return d
} else if d, ok = disableByGVK[GroupVersionKindAll]; ok {
return d
}
return false
}

View File

@ -52,6 +52,7 @@ func newSpecificInformersMap(config *rest.Config,
resync time.Duration, resync time.Duration,
namespace string, namespace string,
selectors SelectorsByGVK, selectors SelectorsByGVK,
disableDeepCopy DisableDeepCopyByGVK,
createListWatcher createListWatcherFunc) *specificInformersMap { createListWatcher createListWatcherFunc) *specificInformersMap {
ip := &specificInformersMap{ ip := &specificInformersMap{
config: config, config: config,
@ -65,6 +66,7 @@ func newSpecificInformersMap(config *rest.Config,
createListWatcher: createListWatcher, createListWatcher: createListWatcher,
namespace: namespace, namespace: namespace,
selectors: selectors, selectors: selectors,
disableDeepCopy: disableDeepCopy,
} }
return ip return ip
} }
@ -129,6 +131,9 @@ type specificInformersMap struct {
// selectors are the label or field selectors that will be added to the // selectors are the label or field selectors that will be added to the
// ListWatch ListOptions. // ListWatch ListOptions.
selectors SelectorsByGVK selectors SelectorsByGVK
// disableDeepCopy indicates not to deep copy objects during get or list objects.
disableDeepCopy DisableDeepCopyByGVK
} }
// Start calls Run on each of the informers and sets started to true. Blocks on the context. // Start calls Run on each of the informers and sets started to true. Blocks on the context.
@ -234,7 +239,12 @@ func (ip *specificInformersMap) addInformerToMap(gvk schema.GroupVersionKind, ob
i := &MapEntry{ i := &MapEntry{
Informer: ni, Informer: ni,
Reader: CacheReader{indexer: ni.GetIndexer(), groupVersionKind: gvk, scopeName: rm.Scope.Name()}, Reader: CacheReader{
indexer: ni.GetIndexer(),
groupVersionKind: gvk,
scopeName: rm.Scope.Name(),
disableDeepCopy: ip.disableDeepCopy.IsDisabled(gvk),
},
} }
ip.informersByGVK[gvk] = i ip.informersByGVK[gvk] = i
@ -274,8 +284,9 @@ func createStructuredListWatch(gvk schema.GroupVersionKind, ip *specificInformer
ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) {
ip.selectors[gvk].ApplyToList(&opts) ip.selectors[gvk].ApplyToList(&opts)
res := listObj.DeepCopyObject() res := listObj.DeepCopyObject()
isNamespaceScoped := ip.namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot namespace := restrictNamespaceBySelector(ip.namespace, ip.selectors[gvk])
err := client.Get().NamespaceIfScoped(ip.namespace, isNamespaceScoped).Resource(mapping.Resource.Resource).VersionedParams(&opts, ip.paramCodec).Do(ctx).Into(res) isNamespaceScoped := namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot
err := client.Get().NamespaceIfScoped(namespace, isNamespaceScoped).Resource(mapping.Resource.Resource).VersionedParams(&opts, ip.paramCodec).Do(ctx).Into(res)
return res, err return res, err
}, },
// Setup the watch function // Setup the watch function
@ -283,8 +294,9 @@ func createStructuredListWatch(gvk schema.GroupVersionKind, ip *specificInformer
ip.selectors[gvk].ApplyToList(&opts) ip.selectors[gvk].ApplyToList(&opts)
// Watch needs to be set to true separately // Watch needs to be set to true separately
opts.Watch = true opts.Watch = true
isNamespaceScoped := ip.namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot namespace := restrictNamespaceBySelector(ip.namespace, ip.selectors[gvk])
return client.Get().NamespaceIfScoped(ip.namespace, isNamespaceScoped).Resource(mapping.Resource.Resource).VersionedParams(&opts, ip.paramCodec).Watch(ctx) isNamespaceScoped := namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot
return client.Get().NamespaceIfScoped(namespace, isNamespaceScoped).Resource(mapping.Resource.Resource).VersionedParams(&opts, ip.paramCodec).Watch(ctx)
}, },
}, nil }, nil
} }
@ -313,8 +325,9 @@ func createUnstructuredListWatch(gvk schema.GroupVersionKind, ip *specificInform
return &cache.ListWatch{ return &cache.ListWatch{
ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) {
ip.selectors[gvk].ApplyToList(&opts) ip.selectors[gvk].ApplyToList(&opts)
if ip.namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot { namespace := restrictNamespaceBySelector(ip.namespace, ip.selectors[gvk])
return dynamicClient.Resource(mapping.Resource).Namespace(ip.namespace).List(ctx, opts) if namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot {
return dynamicClient.Resource(mapping.Resource).Namespace(namespace).List(ctx, opts)
} }
return dynamicClient.Resource(mapping.Resource).List(ctx, opts) return dynamicClient.Resource(mapping.Resource).List(ctx, opts)
}, },
@ -323,8 +336,9 @@ func createUnstructuredListWatch(gvk schema.GroupVersionKind, ip *specificInform
ip.selectors[gvk].ApplyToList(&opts) ip.selectors[gvk].ApplyToList(&opts)
// Watch needs to be set to true separately // Watch needs to be set to true separately
opts.Watch = true opts.Watch = true
if ip.namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot { namespace := restrictNamespaceBySelector(ip.namespace, ip.selectors[gvk])
return dynamicClient.Resource(mapping.Resource).Namespace(ip.namespace).Watch(ctx, opts) if namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot {
return dynamicClient.Resource(mapping.Resource).Namespace(namespace).Watch(ctx, opts)
} }
return dynamicClient.Resource(mapping.Resource).Watch(ctx, opts) return dynamicClient.Resource(mapping.Resource).Watch(ctx, opts)
}, },
@ -358,8 +372,9 @@ func createMetadataListWatch(gvk schema.GroupVersionKind, ip *specificInformersM
return &cache.ListWatch{ return &cache.ListWatch{
ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) { ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) {
ip.selectors[gvk].ApplyToList(&opts) ip.selectors[gvk].ApplyToList(&opts)
if ip.namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot { namespace := restrictNamespaceBySelector(ip.namespace, ip.selectors[gvk])
return client.Resource(mapping.Resource).Namespace(ip.namespace).List(ctx, opts) if namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot {
return client.Resource(mapping.Resource).Namespace(namespace).List(ctx, opts)
} }
return client.Resource(mapping.Resource).List(ctx, opts) return client.Resource(mapping.Resource).List(ctx, opts)
}, },
@ -368,8 +383,9 @@ func createMetadataListWatch(gvk schema.GroupVersionKind, ip *specificInformersM
ip.selectors[gvk].ApplyToList(&opts) ip.selectors[gvk].ApplyToList(&opts)
// Watch needs to be set to true separately // Watch needs to be set to true separately
opts.Watch = true opts.Watch = true
if ip.namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot { namespace := restrictNamespaceBySelector(ip.namespace, ip.selectors[gvk])
return client.Resource(mapping.Resource).Namespace(ip.namespace).Watch(ctx, opts) if namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot {
return client.Resource(mapping.Resource).Namespace(namespace).Watch(ctx, opts)
} }
return client.Resource(mapping.Resource).Watch(ctx, opts) return client.Resource(mapping.Resource).Watch(ctx, opts)
}, },
@ -386,3 +402,23 @@ func resyncPeriod(resync time.Duration) func() time.Duration {
return time.Duration(float64(resync.Nanoseconds()) * factor) return time.Duration(float64(resync.Nanoseconds()) * factor)
} }
} }
// restrictNamespaceBySelector returns either a global restriction for all ListWatches
// if not default/empty, or the namespace that a ListWatch for the specific resource
// is restricted to, based on a specified field selector for metadata.namespace field.
func restrictNamespaceBySelector(namespaceOpt string, s Selector) string {
if namespaceOpt != "" {
// namespace is already restricted
return namespaceOpt
}
fieldSelector := s.Field
if fieldSelector == nil || fieldSelector.Empty() {
return ""
}
// check whether a selector includes the namespace field
value, found := fieldSelector.RequiresExactMatch("metadata.namespace")
if found {
return value
}
return ""
}

View File

@ -21,6 +21,7 @@ package apiutil
import ( import (
"fmt" "fmt"
"reflect"
"sync" "sync"
"k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/api/meta"
@ -163,9 +164,35 @@ func createRestConfig(gvk schema.GroupVersionKind, isUnstructured bool, baseConf
// Use our own custom serializer. // Use our own custom serializer.
cfg.NegotiatedSerializer = serializerWithDecodedGVK{serializer.WithoutConversionCodecFactory{CodecFactory: codecs}} cfg.NegotiatedSerializer = serializerWithDecodedGVK{serializer.WithoutConversionCodecFactory{CodecFactory: codecs}}
} else { } else {
cfg.NegotiatedSerializer = serializer.WithoutConversionCodecFactory{CodecFactory: codecs} cfg.NegotiatedSerializer = serializerWithTargetZeroingDecode{NegotiatedSerializer: serializer.WithoutConversionCodecFactory{CodecFactory: codecs}}
} }
} }
return cfg return cfg
} }
type serializerWithTargetZeroingDecode struct {
runtime.NegotiatedSerializer
}
func (s serializerWithTargetZeroingDecode) DecoderToVersion(serializer runtime.Decoder, r runtime.GroupVersioner) runtime.Decoder {
return targetZeroingDecoder{upstream: s.NegotiatedSerializer.DecoderToVersion(serializer, r)}
}
type targetZeroingDecoder struct {
upstream runtime.Decoder
}
func (t targetZeroingDecoder) Decode(data []byte, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) {
zero(into)
return t.upstream.Decode(data, defaults, into)
}
// zero zeros the value of a pointer.
func zero(x interface{}) {
if x == nil {
return
}
res := reflect.ValueOf(x).Elem()
res.Set(reflect.Zero(res.Type()))
}

View File

@ -18,14 +18,11 @@ package client
import ( import (
"context" "context"
"errors"
"fmt" "fmt"
"k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/internal/objectutil"
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
) )
// NewNamespacedClient wraps an existing client enforcing the namespace value. // NewNamespacedClient wraps an existing client enforcing the namespace value.
@ -55,49 +52,9 @@ func (n *namespacedClient) RESTMapper() meta.RESTMapper {
return n.client.RESTMapper() return n.client.RESTMapper()
} }
// isNamespaced returns true if the object is namespace scoped.
// For unstructured objects the gvk is found from the object itself.
// TODO: this is repetitive code. Remove this and use ojectutil.IsNamespaced.
func isNamespaced(c Client, obj runtime.Object) (bool, error) {
var gvk schema.GroupVersionKind
var err error
_, isUnstructured := obj.(*unstructured.Unstructured)
_, isUnstructuredList := obj.(*unstructured.UnstructuredList)
isUnstructured = isUnstructured || isUnstructuredList
if isUnstructured {
gvk = obj.GetObjectKind().GroupVersionKind()
} else {
gvk, err = apiutil.GVKForObject(obj, c.Scheme())
if err != nil {
return false, err
}
}
gk := schema.GroupKind{
Group: gvk.Group,
Kind: gvk.Kind,
}
restmapping, err := c.RESTMapper().RESTMapping(gk)
if err != nil {
return false, fmt.Errorf("failed to get restmapping: %w", err)
}
scope := restmapping.Scope.Name()
if scope == "" {
return false, errors.New("scope cannot be identified, empty scope returned")
}
if scope != meta.RESTScopeNameRoot {
return true, nil
}
return false, nil
}
// Create implements clinet.Client. // Create implements clinet.Client.
func (n *namespacedClient) Create(ctx context.Context, obj Object, opts ...CreateOption) error { func (n *namespacedClient) Create(ctx context.Context, obj Object, opts ...CreateOption) error {
isNamespaceScoped, err := isNamespaced(n.client, obj) isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, n.Scheme(), n.RESTMapper())
if err != nil { if err != nil {
return fmt.Errorf("error finding the scope of the object: %v", err) return fmt.Errorf("error finding the scope of the object: %v", err)
} }
@ -115,7 +72,7 @@ func (n *namespacedClient) Create(ctx context.Context, obj Object, opts ...Creat
// Update implements client.Client. // Update implements client.Client.
func (n *namespacedClient) Update(ctx context.Context, obj Object, opts ...UpdateOption) error { func (n *namespacedClient) Update(ctx context.Context, obj Object, opts ...UpdateOption) error {
isNamespaceScoped, err := isNamespaced(n.client, obj) isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, n.Scheme(), n.RESTMapper())
if err != nil { if err != nil {
return fmt.Errorf("error finding the scope of the object: %v", err) return fmt.Errorf("error finding the scope of the object: %v", err)
} }
@ -133,7 +90,7 @@ func (n *namespacedClient) Update(ctx context.Context, obj Object, opts ...Updat
// Delete implements client.Client. // Delete implements client.Client.
func (n *namespacedClient) Delete(ctx context.Context, obj Object, opts ...DeleteOption) error { func (n *namespacedClient) Delete(ctx context.Context, obj Object, opts ...DeleteOption) error {
isNamespaceScoped, err := isNamespaced(n.client, obj) isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, n.Scheme(), n.RESTMapper())
if err != nil { if err != nil {
return fmt.Errorf("error finding the scope of the object: %v", err) return fmt.Errorf("error finding the scope of the object: %v", err)
} }
@ -151,7 +108,7 @@ func (n *namespacedClient) Delete(ctx context.Context, obj Object, opts ...Delet
// DeleteAllOf implements client.Client. // DeleteAllOf implements client.Client.
func (n *namespacedClient) DeleteAllOf(ctx context.Context, obj Object, opts ...DeleteAllOfOption) error { func (n *namespacedClient) DeleteAllOf(ctx context.Context, obj Object, opts ...DeleteAllOfOption) error {
isNamespaceScoped, err := isNamespaced(n.client, obj) isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, n.Scheme(), n.RESTMapper())
if err != nil { if err != nil {
return fmt.Errorf("error finding the scope of the object: %v", err) return fmt.Errorf("error finding the scope of the object: %v", err)
} }
@ -164,7 +121,7 @@ func (n *namespacedClient) DeleteAllOf(ctx context.Context, obj Object, opts ...
// Patch implements client.Client. // Patch implements client.Client.
func (n *namespacedClient) Patch(ctx context.Context, obj Object, patch Patch, opts ...PatchOption) error { func (n *namespacedClient) Patch(ctx context.Context, obj Object, patch Patch, opts ...PatchOption) error {
isNamespaceScoped, err := isNamespaced(n.client, obj) isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, n.Scheme(), n.RESTMapper())
if err != nil { if err != nil {
return fmt.Errorf("error finding the scope of the object: %v", err) return fmt.Errorf("error finding the scope of the object: %v", err)
} }
@ -182,7 +139,7 @@ func (n *namespacedClient) Patch(ctx context.Context, obj Object, patch Patch, o
// Get implements client.Client. // Get implements client.Client.
func (n *namespacedClient) Get(ctx context.Context, key ObjectKey, obj Object) error { func (n *namespacedClient) Get(ctx context.Context, key ObjectKey, obj Object) error {
isNamespaceScoped, err := isNamespaced(n.client, obj) isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, n.Scheme(), n.RESTMapper())
if err != nil { if err != nil {
return fmt.Errorf("error finding the scope of the object: %v", err) return fmt.Errorf("error finding the scope of the object: %v", err)
} }
@ -219,7 +176,8 @@ type namespacedClientStatusWriter struct {
// Update implements client.StatusWriter. // Update implements client.StatusWriter.
func (nsw *namespacedClientStatusWriter) Update(ctx context.Context, obj Object, opts ...UpdateOption) error { func (nsw *namespacedClientStatusWriter) Update(ctx context.Context, obj Object, opts ...UpdateOption) error {
isNamespaceScoped, err := isNamespaced(nsw.namespacedclient, obj) isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, nsw.namespacedclient.Scheme(), nsw.namespacedclient.RESTMapper())
if err != nil { if err != nil {
return fmt.Errorf("error finding the scope of the object: %v", err) return fmt.Errorf("error finding the scope of the object: %v", err)
} }
@ -237,7 +195,8 @@ func (nsw *namespacedClientStatusWriter) Update(ctx context.Context, obj Object,
// Patch implements client.StatusWriter. // Patch implements client.StatusWriter.
func (nsw *namespacedClientStatusWriter) Patch(ctx context.Context, obj Object, patch Patch, opts ...PatchOption) error { func (nsw *namespacedClientStatusWriter) Patch(ctx context.Context, obj Object, patch Patch, opts ...PatchOption) error {
isNamespaceScoped, err := isNamespaced(nsw.namespacedclient, obj) isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, nsw.namespacedclient.Scheme(), nsw.namespacedclient.RESTMapper())
if err != nil { if err != nil {
return fmt.Errorf("error finding the scope of the object: %v", err) return fmt.Errorf("error finding the scope of the object: %v", err)
} }

View File

@ -52,6 +52,9 @@ type Options struct {
// CacheSyncTimeout refers to the time limit set to wait for syncing caches. // CacheSyncTimeout refers to the time limit set to wait for syncing caches.
// Defaults to 2 minutes if not set. // Defaults to 2 minutes if not set.
CacheSyncTimeout time.Duration CacheSyncTimeout time.Duration
// RecoverPanic indicates whether the panic caused by reconcile should be recovered.
RecoverPanic bool
} }
// Controller implements a Kubernetes API. A Controller manages a work queue fed reconcile.Requests // Controller implements a Kubernetes API. A Controller manages a work queue fed reconcile.Requests
@ -133,5 +136,6 @@ func NewUnmanaged(name string, mgr manager.Manager, options Options) (Controller
SetFields: mgr.SetFields, SetFields: mgr.SetFields,
Name: name, Name: name,
Log: options.Log.WithName("controller").WithName(name), Log: options.Log.WithName("controller").WithName(name),
RecoverPanic: options.RecoverPanic,
}, nil }, nil
} }

View File

@ -85,6 +85,9 @@ type Controller struct {
// Log is used to log messages to users during reconciliation, or for example when a watch is started. // Log is used to log messages to users during reconciliation, or for example when a watch is started.
Log logr.Logger Log logr.Logger
// RecoverPanic indicates whether the panic caused by reconcile should be recovered.
RecoverPanic bool
} }
// watchDescription contains all the information necessary to start a watch. // watchDescription contains all the information necessary to start a watch.
@ -95,7 +98,17 @@ type watchDescription struct {
} }
// Reconcile implements reconcile.Reconciler. // Reconcile implements reconcile.Reconciler.
func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error) { func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, err error) {
if c.RecoverPanic {
defer func() {
if r := recover(); r != nil {
for _, fn := range utilruntime.PanicHandlers {
fn(r)
}
err = fmt.Errorf("panic: %v [recovered]", r)
}
}()
}
log := c.Log.WithValues("name", req.Name, "namespace", req.Namespace) log := c.Log.WithValues("name", req.Name, "namespace", req.Namespace)
ctx = logf.IntoContext(ctx, log) ctx = logf.IntoContext(ctx, log)
return c.Do.Reconcile(ctx, req) return c.Do.Reconcile(ctx, req)
@ -295,7 +308,7 @@ func (c *Controller) reconcileHandler(ctx context.Context, obj interface{}) {
// RunInformersAndControllers the syncHandler, passing it the Namespace/Name string of the // RunInformersAndControllers the syncHandler, passing it the Namespace/Name string of the
// resource to be synced. // resource to be synced.
result, err := c.Do.Reconcile(ctx, req) result, err := c.Reconcile(ctx, req)
switch { switch {
case err != nil: case err != nil:
c.Queue.AddRateLimited(req) c.Queue.AddRateLimited(req)

View File

@ -24,8 +24,7 @@ import (
"github.com/go-logr/logr" "github.com/go-logr/logr"
corev1 "k8s.io/api/core/v1" corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/kubernetes" corev1client "k8s.io/client-go/kubernetes/typed/core/v1"
typedcorev1 "k8s.io/client-go/kubernetes/typed/core/v1"
"k8s.io/client-go/rest" "k8s.io/client-go/rest"
"k8s.io/client-go/tools/record" "k8s.io/client-go/tools/record"
) )
@ -45,7 +44,7 @@ type Provider struct {
scheme *runtime.Scheme scheme *runtime.Scheme
// logger is the logger to use when logging diagnostic event info // logger is the logger to use when logging diagnostic event info
logger logr.Logger logger logr.Logger
evtClient typedcorev1.EventInterface evtClient corev1client.EventInterface
makeBroadcaster EventBroadcasterProducer makeBroadcaster EventBroadcasterProducer
broadcasterOnce sync.Once broadcasterOnce sync.Once
@ -98,7 +97,7 @@ func (p *Provider) getBroadcaster() record.EventBroadcaster {
p.broadcasterOnce.Do(func() { p.broadcasterOnce.Do(func() {
broadcaster, stop := p.makeBroadcaster() broadcaster, stop := p.makeBroadcaster()
broadcaster.StartRecordingToSink(&typedcorev1.EventSinkImpl{Interface: p.evtClient}) broadcaster.StartRecordingToSink(&corev1client.EventSinkImpl{Interface: p.evtClient})
broadcaster.StartEventWatcher( broadcaster.StartEventWatcher(
func(e *corev1.Event) { func(e *corev1.Event) {
p.logger.V(1).Info(e.Type, "object", e.InvolvedObject, "reason", e.Reason, "message", e.Message) p.logger.V(1).Info(e.Type, "object", e.InvolvedObject, "reason", e.Reason, "message", e.Message)
@ -112,12 +111,12 @@ func (p *Provider) getBroadcaster() record.EventBroadcaster {
// NewProvider create a new Provider instance. // NewProvider create a new Provider instance.
func NewProvider(config *rest.Config, scheme *runtime.Scheme, logger logr.Logger, makeBroadcaster EventBroadcasterProducer) (*Provider, error) { func NewProvider(config *rest.Config, scheme *runtime.Scheme, logger logr.Logger, makeBroadcaster EventBroadcasterProducer) (*Provider, error) {
clientSet, err := kubernetes.NewForConfig(config) corev1Client, err := corev1client.NewForConfig(config)
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to init clientSet: %w", err) return nil, fmt.Errorf("failed to init client: %w", err)
} }
p := &Provider{scheme: scheme, logger: logger, makeBroadcaster: makeBroadcaster, evtClient: clientSet.CoreV1().Events("")} p := &Provider{scheme: scheme, logger: logger, makeBroadcaster: makeBroadcaster, evtClient: corev1Client.Events("")}
return p, nil return p, nil
} }

View File

@ -23,7 +23,8 @@ import (
"os" "os"
"k8s.io/apimachinery/pkg/util/uuid" "k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/client-go/kubernetes" coordinationv1client "k8s.io/client-go/kubernetes/typed/coordination/v1"
corev1client "k8s.io/client-go/kubernetes/typed/core/v1"
"k8s.io/client-go/rest" "k8s.io/client-go/rest"
"k8s.io/client-go/tools/leaderelection/resourcelock" "k8s.io/client-go/tools/leaderelection/resourcelock"
"sigs.k8s.io/controller-runtime/pkg/recorder" "sigs.k8s.io/controller-runtime/pkg/recorder"
@ -84,8 +85,14 @@ func NewResourceLock(config *rest.Config, recorderProvider recorder.Provider, op
} }
id = id + "_" + string(uuid.NewUUID()) id = id + "_" + string(uuid.NewUUID())
// Construct client for leader election // Construct clients for leader election
client, err := kubernetes.NewForConfig(rest.AddUserAgent(config, "leader-election")) rest.AddUserAgent(config, "leader-election")
corev1Client, err := corev1client.NewForConfig(config)
if err != nil {
return nil, err
}
coordinationClient, err := coordinationv1client.NewForConfig(config)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -93,8 +100,8 @@ func NewResourceLock(config *rest.Config, recorderProvider recorder.Provider, op
return resourcelock.New(options.LeaderElectionResourceLock, return resourcelock.New(options.LeaderElectionResourceLock,
options.LeaderElectionNamespace, options.LeaderElectionNamespace,
options.LeaderElectionID, options.LeaderElectionID,
client.CoreV1(), corev1Client,
client.CoordinationV1(), coordinationClient,
resourcelock.ResourceLockConfig{ resourcelock.ResourceLockConfig{
Identity: id, Identity: id,
EventRecorder: recorderProvider.GetEventRecorderFor(id), EventRecorder: recorderProvider.GetEventRecorderFor(id),

View File

@ -76,7 +76,7 @@ func (p *loggerPromise) V(l *DelegatingLogger, level int) *loggerPromise {
// Fulfill instantiates the Logger with the provided logger. // Fulfill instantiates the Logger with the provided logger.
func (p *loggerPromise) Fulfill(parentLogger logr.Logger) { func (p *loggerPromise) Fulfill(parentLogger logr.Logger) {
var logger = parentLogger logger := logr.WithCallDepth(parentLogger, 1)
if p.name != nil { if p.name != nil {
logger = logger.WithName(*p.name) logger = logger.WithName(*p.name)
} }

View File

@ -47,7 +47,7 @@ import (
) )
const ( const (
// Values taken from: https://github.com/kubernetes/apiserver/blob/master/pkg/apis/config/v1alpha1/defaults.go // Values taken from: https://github.com/kubernetes/component-base/blob/master/config/v1alpha1/defaults.go
defaultLeaseDuration = 15 * time.Second defaultLeaseDuration = 15 * time.Second
defaultRenewDeadline = 10 * time.Second defaultRenewDeadline = 10 * time.Second
defaultRetryPeriod = 2 * time.Second defaultRetryPeriod = 2 * time.Second

View File

@ -37,9 +37,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/config" "sigs.k8s.io/controller-runtime/pkg/config"
"sigs.k8s.io/controller-runtime/pkg/config/v1alpha1" "sigs.k8s.io/controller-runtime/pkg/config/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/healthz" "sigs.k8s.io/controller-runtime/pkg/healthz"
logf "sigs.k8s.io/controller-runtime/pkg/internal/log"
intrec "sigs.k8s.io/controller-runtime/pkg/internal/recorder" intrec "sigs.k8s.io/controller-runtime/pkg/internal/recorder"
"sigs.k8s.io/controller-runtime/pkg/leaderelection" "sigs.k8s.io/controller-runtime/pkg/leaderelection"
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/metrics" "sigs.k8s.io/controller-runtime/pkg/metrics"
"sigs.k8s.io/controller-runtime/pkg/recorder" "sigs.k8s.io/controller-runtime/pkg/recorder"
"sigs.k8s.io/controller-runtime/pkg/runtime/inject" "sigs.k8s.io/controller-runtime/pkg/runtime/inject"
@ -572,7 +572,7 @@ func setOptionsDefaults(options Options) Options {
} }
if options.Logger == nil { if options.Logger == nil {
options.Logger = logf.RuntimeLog.WithName("manager") options.Logger = log.Log
} }
return options return options

View File

@ -52,7 +52,24 @@ const (
var ( var (
// client metrics. // client metrics.
requestLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{
// RequestLatency reports the request latency in seconds per verb/URL.
// Deprecated: This metric is deprecated for removal in a future release: using the URL as a
// dimension results in cardinality explosion for some consumers. It was deprecated upstream
// in k8s v1.14 and hidden in v1.17 via https://github.com/kubernetes/kubernetes/pull/83836.
// It is not registered by default. To register:
// import (
// clientmetrics "k8s.io/client-go/tools/metrics"
// clmetrics "sigs.k8s.io/controller-runtime/metrics"
// )
//
// func init() {
// clmetrics.Registry.MustRegister(clmetrics.RequestLatency)
// clientmetrics.Register(clientmetrics.RegisterOpts{
// RequestLatency: clmetrics.LatencyAdapter
// })
// }
RequestLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Subsystem: RestClientSubsystem, Subsystem: RestClientSubsystem,
Name: LatencyKey, Name: LatencyKey,
Help: "Request latency in seconds. Broken down by verb and URL.", Help: "Request latency in seconds. Broken down by verb and URL.",
@ -127,13 +144,11 @@ func init() {
// registerClientMetrics sets up the client latency metrics from client-go. // registerClientMetrics sets up the client latency metrics from client-go.
func registerClientMetrics() { func registerClientMetrics() {
// register the metrics with our registry // register the metrics with our registry
Registry.MustRegister(requestLatency)
Registry.MustRegister(requestResult) Registry.MustRegister(requestResult)
// register the metrics with client-go // register the metrics with client-go
clientmetrics.Register(clientmetrics.RegisterOpts{ clientmetrics.Register(clientmetrics.RegisterOpts{
RequestLatency: &latencyAdapter{metric: requestLatency}, RequestResult: &resultAdapter{metric: requestResult},
RequestResult: &resultAdapter{metric: requestResult},
}) })
} }
@ -159,11 +174,13 @@ func registerReflectorMetrics() {
// copied (more-or-less directly) from k8s.io/kubernetes setup code // copied (more-or-less directly) from k8s.io/kubernetes setup code
// (which isn't anywhere in an easily-importable place). // (which isn't anywhere in an easily-importable place).
type latencyAdapter struct { // LatencyAdapter implements LatencyMetric.
type LatencyAdapter struct {
metric *prometheus.HistogramVec metric *prometheus.HistogramVec
} }
func (l *latencyAdapter) Observe(_ context.Context, verb string, u url.URL, latency time.Duration) { // Observe increments the request latency metric for the given verb/URL.
func (l *LatencyAdapter) Observe(_ context.Context, verb string, u url.URL, latency time.Duration) {
l.metric.WithLabelValues(verb, u.String()).Observe(latency.Seconds()) l.metric.WithLabelValues(verb, u.String()).Observe(latency.Seconds())
} }

View File

@ -28,10 +28,12 @@ import (
"path/filepath" "path/filepath"
"strconv" "strconv"
"sync" "sync"
"time"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
kscheme "k8s.io/client-go/kubernetes/scheme" kscheme "k8s.io/client-go/kubernetes/scheme"
"sigs.k8s.io/controller-runtime/pkg/certwatcher" "sigs.k8s.io/controller-runtime/pkg/certwatcher"
"sigs.k8s.io/controller-runtime/pkg/healthz"
"sigs.k8s.io/controller-runtime/pkg/runtime/inject" "sigs.k8s.io/controller-runtime/pkg/runtime/inject"
"sigs.k8s.io/controller-runtime/pkg/webhook/internal/metrics" "sigs.k8s.io/controller-runtime/pkg/webhook/internal/metrics"
) )
@ -87,6 +89,10 @@ type Server struct {
// defaultingOnce ensures that the default fields are only ever set once. // defaultingOnce ensures that the default fields are only ever set once.
defaultingOnce sync.Once defaultingOnce sync.Once
// started is set to true immediately before the server is started
// and thus can be used to check if the server has been started
started bool
// mu protects access to the webhook map & setFields for Start, Register, etc // mu protects access to the webhook map & setFields for Start, Register, etc
mu sync.Mutex mu sync.Mutex
} }
@ -272,6 +278,9 @@ func (s *Server) Start(ctx context.Context) error {
close(idleConnsClosed) close(idleConnsClosed)
}() }()
s.mu.Lock()
s.started = true
s.mu.Unlock()
if err := srv.Serve(listener); err != nil && err != http.ErrServerClosed { if err := srv.Serve(listener); err != nil && err != http.ErrServerClosed {
return err return err
} }
@ -280,6 +289,34 @@ func (s *Server) Start(ctx context.Context) error {
return nil return nil
} }
// StartedChecker returns an healthz.Checker which is healthy after the
// server has been started.
func (s *Server) StartedChecker() healthz.Checker {
config := &tls.Config{
InsecureSkipVerify: true, // nolint:gosec // config is used to connect to our own webhook port.
}
return func(req *http.Request) error {
s.mu.Lock()
defer s.mu.Unlock()
if !s.started {
return fmt.Errorf("webhook server has not been started yet")
}
d := &net.Dialer{Timeout: 10 * time.Second}
conn, err := tls.DialWithDialer(d, "tcp", net.JoinHostPort(s.Host, strconv.Itoa(s.Port)), config)
if err != nil {
return fmt.Errorf("webhook server is not reachable: %v", err)
}
if err := conn.Close(); err != nil {
return fmt.Errorf("webhook server is not reachable: closing connection: %v", err)
}
return nil
}
}
// InjectFunc injects the field setter into the server. // InjectFunc injects the field setter into the server.
func (s *Server) InjectFunc(f inject.Func) error { func (s *Server) InjectFunc(f inject.Func) error {
s.setFields = f s.setFields = f