mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-22 07:06:25 +00:00
fix webdav: moved to gitlab.bertha.cloud/adphi/gowebdav fork
This commit is contained in:
parent
f3a7e601b4
commit
7022842ce1
@ -4,7 +4,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"github.com/studio-b12/gowebdav"
|
"gitlab.bertha.cloud/adphi/gowebdav"
|
||||||
|
|
||||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
)
|
)
|
||||||
|
25
go.mod
25
go.mod
@ -3,36 +3,17 @@ module gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
|
|||||||
go 1.12
|
go 1.12
|
||||||
|
|
||||||
require (
|
require (
|
||||||
9fans.net/go v0.0.2 // indirect
|
|
||||||
github.com/alecthomas/gometalinter v3.0.0+incompatible // indirect
|
|
||||||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
|
|
||||||
github.com/davidrjenni/reftools v0.0.0-20190411195930-981bbac422f8 // indirect
|
|
||||||
github.com/fatih/gomodifytags v0.0.0-20190714141403-b08246536dab // indirect
|
|
||||||
github.com/fatih/motion v0.0.0-20190527122956-41470362fad4 // indirect
|
|
||||||
github.com/fatih/structs v0.0.0-20180123065059-ebf56d35bba7
|
github.com/fatih/structs v0.0.0-20180123065059-ebf56d35bba7
|
||||||
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 // indirect
|
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 // indirect
|
||||||
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf // indirect
|
github.com/kr/pretty v0.1.0 // indirect
|
||||||
github.com/josharian/impl v0.0.0-20190706034337-76254c7a7314 // indirect
|
|
||||||
github.com/jstemmer/gotags v1.4.1 // indirect
|
|
||||||
github.com/kisielk/errcheck v1.2.0 // indirect
|
|
||||||
github.com/klauspost/asmfmt v1.2.0 // indirect
|
|
||||||
github.com/koron/iferr v0.0.0-20180615142939-bb332a3b1d91 // indirect
|
|
||||||
github.com/kr/pty v1.1.8 // indirect
|
|
||||||
github.com/levigross/grequests v0.0.0-20171009010347-bf9788368aa0
|
github.com/levigross/grequests v0.0.0-20171009010347-bf9788368aa0
|
||||||
github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f // indirect
|
|
||||||
github.com/pkg/errors v0.0.0-20181023235946-059132a15dd0
|
github.com/pkg/errors v0.0.0-20181023235946-059132a15dd0
|
||||||
github.com/rogpeppe/godef v1.1.1 // indirect
|
|
||||||
github.com/sirupsen/logrus v1.4.2
|
github.com/sirupsen/logrus v1.4.2
|
||||||
github.com/stretchr/testify v1.2.2
|
github.com/stretchr/testify v1.2.2
|
||||||
github.com/studio-b12/gowebdav v0.0.0-20190103184047-38f79aeaf1ac
|
github.com/studio-b12/gowebdav v0.0.0-20190103184047-38f79aeaf1ac
|
||||||
github.com/zmb3/gogetdoc v0.0.0-20190228002656-b37376c5da6a // indirect
|
gitlab.bertha.cloud/adphi/gowebdav v0.0.0-20190720232020-771eec6e76d0
|
||||||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect
|
|
||||||
golang.org/x/mod v0.1.0 // indirect
|
|
||||||
golang.org/x/net v0.0.0-20190628185345-da137c7871d7 // indirect
|
golang.org/x/net v0.0.0-20190628185345-da137c7871d7 // indirect
|
||||||
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 // indirect
|
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 // indirect
|
||||||
golang.org/x/text v0.3.2 // indirect
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
||||||
golang.org/x/tools v0.0.0-20190715044752-607ca053a137 // indirect
|
|
||||||
gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20180810215634-df19058c872c // indirect
|
|
||||||
gopkg.in/yaml.v2 v2.2.1
|
gopkg.in/yaml.v2 v2.2.1
|
||||||
honnef.co/go/tools v0.0.0-2019.2.1 // indirect
|
|
||||||
)
|
)
|
||||||
|
70
go.sum
70
go.sum
@ -1,62 +1,22 @@
|
|||||||
9fans.net/go v0.0.0-20181112161441-237454027057/go.mod h1:diCsxrliIURU9xsYtjCp5AbpQKqdhKmf0ujWDUSkfoY=
|
|
||||||
9fans.net/go v0.0.2 h1:RYM6lWITV8oADrwLfdzxmt8ucfW6UtP9v1jg4qAbqts=
|
|
||||||
9fans.net/go v0.0.2/go.mod h1:lfPdxjq9v8pVQXUMBCx5EO5oLXWQFlKRQgs1kEkjoIM=
|
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
|
||||||
github.com/alecthomas/gometalinter v3.0.0+incompatible h1:e9Zfvfytsw/e6Kd/PYd75wggK+/kX5Xn8IYDUKyc5fU=
|
|
||||||
github.com/alecthomas/gometalinter v3.0.0+incompatible/go.mod h1:qfIpQGGz3d+NmgyPBqv+LSh50emm1pt72EtcX2vKYQk=
|
|
||||||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf h1:qet1QNfXsQxTZqLG4oE62mJzwPIB8+Tee4RNCL9ulrY=
|
|
||||||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
|
||||||
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
|
|
||||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/davidrjenni/reftools v0.0.0-20190411195930-981bbac422f8 h1:Eu7kPTwAOeiiot8fjH/WXIYSsoaYB7Xs7sPF8NYeKhs=
|
|
||||||
github.com/davidrjenni/reftools v0.0.0-20190411195930-981bbac422f8/go.mod h1:0qWLWApvobxwtd9/A8fS62VkRImuquIgtCv/ye+KnxA=
|
|
||||||
github.com/fatih/camelcase v1.0.0 h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8=
|
|
||||||
github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc=
|
|
||||||
github.com/fatih/gomodifytags v0.0.0-20190714141403-b08246536dab h1:rRN6YcbF0x5L4bjw+k3JzetTxPyTKNpwqZypLEEkX6w=
|
|
||||||
github.com/fatih/gomodifytags v0.0.0-20190714141403-b08246536dab/go.mod h1:p2/x7bnOQsbq/deXsDIlj2yLiKFGPkD2nuoYqwn8R4Y=
|
|
||||||
github.com/fatih/motion v0.0.0-20190527122956-41470362fad4 h1:g4GA9iRiXHcBKOAjgZi2HsLP5zD2bSXZE5VL/+3yNN8=
|
|
||||||
github.com/fatih/motion v0.0.0-20190527122956-41470362fad4/go.mod h1:pseIrV+t9A4+po+KJ1LheSnYH8m1qs6WhKx2zFiGi9I=
|
|
||||||
github.com/fatih/structs v0.0.0-20180123065059-ebf56d35bba7 h1:bGT+Ub6bpzHl7AAYQhBrZ5nYTAH2SF/848WducU0Ao4=
|
github.com/fatih/structs v0.0.0-20180123065059-ebf56d35bba7 h1:bGT+Ub6bpzHl7AAYQhBrZ5nYTAH2SF/848WducU0Ao4=
|
||||||
github.com/fatih/structs v0.0.0-20180123065059-ebf56d35bba7/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
|
github.com/fatih/structs v0.0.0-20180123065059-ebf56d35bba7/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
|
||||||
github.com/fatih/structtag v1.0.0 h1:pTHj65+u3RKWYPSGaU290FpI/dXxTaHdVwVwbcPKmEc=
|
|
||||||
github.com/fatih/structtag v1.0.0/go.mod h1:IKitwq45uXL/yqi5mYghiD3w9H6eTOvI9vnk8tXMphA=
|
|
||||||
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 h1:zLTLjkaOFEFIOxY5BWLFLwh+cL8vOBW4XJ2aqLE/Tf0=
|
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135 h1:zLTLjkaOFEFIOxY5BWLFLwh+cL8vOBW4XJ2aqLE/Tf0=
|
||||||
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
|
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
|
||||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
|
||||||
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf h1:7+FW5aGwISbqUtkfmIpZJGRgNFg2ioYPvFaUxdqpDsg=
|
|
||||||
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf/go.mod h1:RpwtwJQFrIEPstU94h88MWPXP2ektJZ8cZ0YntAmXiE=
|
|
||||||
github.com/josharian/impl v0.0.0-20190706034337-76254c7a7314 h1:c7alkeL6KkwLgu+Vqizv/8+YzbCXF7kizm3sSZEIWNw=
|
|
||||||
github.com/josharian/impl v0.0.0-20190706034337-76254c7a7314/go.mod h1:t4Tr0tn92eq5ISef4cS5plFAMYAqZlAXtgUcKE6y8nw=
|
|
||||||
github.com/jstemmer/gotags v1.4.1 h1:aWIyXsU3lTDqhsEC49MP85p2cUUWr2ptvdGNqqGA3r4=
|
|
||||||
github.com/jstemmer/gotags v1.4.1/go.mod h1:b6J3X0bsLbR4C5SgSx3V3KjuWTtmRzcmWPbTkWZ49PA=
|
|
||||||
github.com/kisielk/errcheck v1.2.0 h1:reN85Pxc5larApoH1keMBiu2GWtPqXQ1nc9gx+jOU+E=
|
|
||||||
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
|
|
||||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
|
||||||
github.com/klauspost/asmfmt v1.2.0 h1:zwsyBYgEdabg32alMful/5pRtMTcR5C5w1LKNg9OD78=
|
|
||||||
github.com/klauspost/asmfmt v1.2.0/go.mod h1:RAoUvqkWr2rUa2I19qKMEVZQe4BVtcHGTMCUOcCU2Lg=
|
|
||||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
|
||||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
github.com/koron/iferr v0.0.0-20180615142939-bb332a3b1d91 h1:hunjgdb3b21ZdRmzDPXii0EcnHpjH7uCP+kODoE1JH0=
|
|
||||||
github.com/koron/iferr v0.0.0-20180615142939-bb332a3b1d91/go.mod h1:C2tFh8w3I6i4lnUJfoBx2Hwku3mgu4wPNTtUNp1i5KI=
|
|
||||||
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
||||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||||
github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
|
|
||||||
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
||||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
github.com/levigross/grequests v0.0.0-20171009010347-bf9788368aa0 h1:QpdhtrR7SX3R7OlEv9dZarsXogM3PM/tl1ibRH/eHbQ=
|
github.com/levigross/grequests v0.0.0-20171009010347-bf9788368aa0 h1:QpdhtrR7SX3R7OlEv9dZarsXogM3PM/tl1ibRH/eHbQ=
|
||||||
github.com/levigross/grequests v0.0.0-20171009010347-bf9788368aa0/go.mod h1:uCZIhROSrVmuF/BPYFPwDeiiQ6juSLp0kikFoEcNcEs=
|
github.com/levigross/grequests v0.0.0-20171009010347-bf9788368aa0/go.mod h1:uCZIhROSrVmuF/BPYFPwDeiiQ6juSLp0kikFoEcNcEs=
|
||||||
github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f h1:ee+twVCignaZjt7jpbMSLxAeTN/Nfq9W/nm91E7QO1A=
|
|
||||||
github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f/go.mod h1:hltEC42XzfMNgg0S1v6JTywwra2Mu6F6cLR03debVQ8=
|
|
||||||
github.com/nicksnyder/go-i18n v2.0.2+incompatible h1:Xt6dluut3s2zBUha8/3sj6atWMQbFioi9OMqUGH9khg=
|
|
||||||
github.com/pkg/errors v0.0.0-20181023235946-059132a15dd0 h1:R+lX9nKwNd1n7UE5SQAyoorREvRn3aLF6ZndXBoIWqY=
|
github.com/pkg/errors v0.0.0-20181023235946-059132a15dd0 h1:R+lX9nKwNd1n7UE5SQAyoorREvRn3aLF6ZndXBoIWqY=
|
||||||
github.com/pkg/errors v0.0.0-20181023235946-059132a15dd0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.0.0-20181023235946-059132a15dd0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
|
||||||
github.com/rogpeppe/godef v1.1.1 h1:NujOtt9q9vIClRTB3sCZpavac+NMRaIayzrcz1h4fSE=
|
|
||||||
github.com/rogpeppe/godef v1.1.1/go.mod h1:oEo1eMy1VUEHUzUIX4F7IqvMJRiz9UId44mvnR8oPlQ=
|
|
||||||
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
|
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
|
||||||
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
||||||
github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
|
github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
|
||||||
@ -65,46 +25,20 @@ github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1
|
|||||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||||
github.com/studio-b12/gowebdav v0.0.0-20190103184047-38f79aeaf1ac h1:xQ9gCVzqb939vjhxuES4IXYe4AlHB4Q71/K06aazQmQ=
|
github.com/studio-b12/gowebdav v0.0.0-20190103184047-38f79aeaf1ac h1:xQ9gCVzqb939vjhxuES4IXYe4AlHB4Q71/K06aazQmQ=
|
||||||
github.com/studio-b12/gowebdav v0.0.0-20190103184047-38f79aeaf1ac/go.mod h1:gCcfDlA1Y7GqOaeEKw5l9dOGx1VLdc/HuQSlQAaZ30s=
|
github.com/studio-b12/gowebdav v0.0.0-20190103184047-38f79aeaf1ac/go.mod h1:gCcfDlA1Y7GqOaeEKw5l9dOGx1VLdc/HuQSlQAaZ30s=
|
||||||
github.com/zmb3/gogetdoc v0.0.0-20190228002656-b37376c5da6a h1:00UFliGZl2UciXe8o/2iuEsRQ9u7z0rzDTVzuj6EYY0=
|
gitlab.bertha.cloud/adphi/gowebdav v0.0.0-20190720232020-771eec6e76d0 h1:kjJ5Xn+FgD+QvWP670A2hmdMqxWkOuffMukEA1JSGo4=
|
||||||
github.com/zmb3/gogetdoc v0.0.0-20190228002656-b37376c5da6a/go.mod h1:ofmGw6LrMypycsiWcyug6516EXpIxSbZ+uI9ppGypfY=
|
gitlab.bertha.cloud/adphi/gowebdav v0.0.0-20190720232020-771eec6e76d0/go.mod h1:Nr6YgM/ZBLPOlAAjcER6HSAXF64AAlal6AJ2CEKg2Fc=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
|
||||||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
|
||||||
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
|
||||||
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
|
|
||||||
golang.org/x/net v0.0.0-20181129055619-fae4c4e3ad76 h1:xx5MUFyRQRbPk6VjWjIE1epE/K5AoDD8QUN116NCy8k=
|
|
||||||
golang.org/x/net v0.0.0-20181129055619-fae4c4e3ad76/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
|
||||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
|
||||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
|
||||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
|
||||||
golang.org/x/net v0.0.0-20190628185345-da137c7871d7 h1:rTIdg5QFRR7XCaK4LCjBiPbx8j4DQRpdYMnGn/bJUEU=
|
golang.org/x/net v0.0.0-20190628185345-da137c7871d7 h1:rTIdg5QFRR7XCaK4LCjBiPbx8j4DQRpdYMnGn/bJUEU=
|
||||||
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
|
||||||
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc=
|
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc=
|
||||||
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 h1:LepdCS8Gf/MVejFIt8lsiexZATdoGVyp5bcyS+rYoUI=
|
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 h1:LepdCS8Gf/MVejFIt8lsiexZATdoGVyp5bcyS+rYoUI=
|
||||||
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
|
||||||
golang.org/x/tools v0.0.0-20180824175216-6c1c5e93cdc1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
||||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
||||||
golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
||||||
golang.org/x/tools v0.0.0-20181130195746-895048a75ecf/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
||||||
golang.org/x/tools v0.0.0-20181207195948-8634b1ecd393/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
|
||||||
golang.org/x/tools v0.0.0-20190408220357-e5b8258f4918/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
|
||||||
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
|
||||||
golang.org/x/tools v0.0.0-20190715044752-607ca053a137 h1:66qBt03VVO7qHSq0eBAYy9iD1y2EbXU09A+F5dZ0j8s=
|
|
||||||
golang.org/x/tools v0.0.0-20190715044752-607ca053a137/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI=
|
|
||||||
gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20180810215634-df19058c872c h1:vTxShRUnK60yd8DZU+f95p1zSLj814+5CuEh7NjF2/Y=
|
|
||||||
gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20180810215634-df19058c872c/go.mod h1:3HH7i1SgMqlzxCcBmUHW657sD4Kvv9sC3HpL3YukzwA=
|
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
|
||||||
gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
|
gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
|
||||||
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
honnef.co/go/tools v0.0.0-2019.2.1 h1:fW1wbZIKRbRK56ETe5SYloH5SdLzhXOFet2KlpRKDqg=
|
|
||||||
honnef.co/go/tools v0.0.0-2019.2.1/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
|
||||||
|
28
vendor/github.com/stretchr/testify/require/doc.go
generated
vendored
Normal file
28
vendor/github.com/stretchr/testify/require/doc.go
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
// Package require implements the same assertions as the `assert` package but
|
||||||
|
// stops test execution when a test fails.
|
||||||
|
//
|
||||||
|
// Example Usage
|
||||||
|
//
|
||||||
|
// The following is a complete example using require in a standard test function:
|
||||||
|
// import (
|
||||||
|
// "testing"
|
||||||
|
// "github.com/stretchr/testify/require"
|
||||||
|
// )
|
||||||
|
//
|
||||||
|
// func TestSomething(t *testing.T) {
|
||||||
|
//
|
||||||
|
// var a string = "Hello"
|
||||||
|
// var b string = "Hello"
|
||||||
|
//
|
||||||
|
// require.Equal(t, a, b, "The two words should be the same.")
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// Assertions
|
||||||
|
//
|
||||||
|
// The `require` package have same global functions as in the `assert` package,
|
||||||
|
// but instead of returning a boolean result they call `t.FailNow()`.
|
||||||
|
//
|
||||||
|
// Every assertion function also takes an optional string message as the final argument,
|
||||||
|
// allowing custom error messages to be appended to the message the assertion method outputs.
|
||||||
|
package require
|
16
vendor/github.com/stretchr/testify/require/forward_requirements.go
generated
vendored
Normal file
16
vendor/github.com/stretchr/testify/require/forward_requirements.go
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package require
|
||||||
|
|
||||||
|
// Assertions provides assertion methods around the
|
||||||
|
// TestingT interface.
|
||||||
|
type Assertions struct {
|
||||||
|
t TestingT
|
||||||
|
}
|
||||||
|
|
||||||
|
// New makes a new Assertions object for the specified TestingT.
|
||||||
|
func New(t TestingT) *Assertions {
|
||||||
|
return &Assertions{
|
||||||
|
t: t,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl -include-format-funcs
|
1227
vendor/github.com/stretchr/testify/require/require.go
generated
vendored
Normal file
1227
vendor/github.com/stretchr/testify/require/require.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
vendor/github.com/stretchr/testify/require/require.go.tmpl
generated
vendored
Normal file
6
vendor/github.com/stretchr/testify/require/require.go.tmpl
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{{.Comment}}
|
||||||
|
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
|
||||||
|
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
|
||||||
|
if h, ok := t.(tHelper); ok { h.Helper() }
|
||||||
|
t.FailNow()
|
||||||
|
}
|
957
vendor/github.com/stretchr/testify/require/require_forward.go
generated
vendored
Normal file
957
vendor/github.com/stretchr/testify/require/require_forward.go
generated
vendored
Normal file
@ -0,0 +1,957 @@
|
|||||||
|
/*
|
||||||
|
* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen
|
||||||
|
* THIS FILE MUST NOT BE EDITED BY HAND
|
||||||
|
*/
|
||||||
|
|
||||||
|
package require
|
||||||
|
|
||||||
|
import (
|
||||||
|
assert "github.com/stretchr/testify/assert"
|
||||||
|
http "net/http"
|
||||||
|
url "net/url"
|
||||||
|
time "time"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Condition uses a Comparison to assert a complex condition.
|
||||||
|
func (a *Assertions) Condition(comp assert.Comparison, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Condition(a.t, comp, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Conditionf uses a Comparison to assert a complex condition.
|
||||||
|
func (a *Assertions) Conditionf(comp assert.Comparison, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Conditionf(a.t, comp, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Contains asserts that the specified string, list(array, slice...) or map contains the
|
||||||
|
// specified substring or element.
|
||||||
|
//
|
||||||
|
// a.Contains("Hello World", "World")
|
||||||
|
// a.Contains(["Hello", "World"], "World")
|
||||||
|
// a.Contains({"Hello": "World"}, "Hello")
|
||||||
|
func (a *Assertions) Contains(s interface{}, contains interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Contains(a.t, s, contains, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Containsf asserts that the specified string, list(array, slice...) or map contains the
|
||||||
|
// specified substring or element.
|
||||||
|
//
|
||||||
|
// a.Containsf("Hello World", "World", "error message %s", "formatted")
|
||||||
|
// a.Containsf(["Hello", "World"], "World", "error message %s", "formatted")
|
||||||
|
// a.Containsf({"Hello": "World"}, "Hello", "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Containsf(s interface{}, contains interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Containsf(a.t, s, contains, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
|
||||||
|
func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
DirExists(a.t, path, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
|
||||||
|
func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
DirExistsf(a.t, path, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ElementsMatch asserts that the specified listA(array, slice...) is equal to specified
|
||||||
|
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
|
||||||
|
// the number of appearances of each of them in both lists should match.
|
||||||
|
//
|
||||||
|
// a.ElementsMatch([1, 3, 2, 3], [1, 3, 3, 2])
|
||||||
|
func (a *Assertions) ElementsMatch(listA interface{}, listB interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
ElementsMatch(a.t, listA, listB, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ElementsMatchf asserts that the specified listA(array, slice...) is equal to specified
|
||||||
|
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
|
||||||
|
// the number of appearances of each of them in both lists should match.
|
||||||
|
//
|
||||||
|
// a.ElementsMatchf([1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted")
|
||||||
|
func (a *Assertions) ElementsMatchf(listA interface{}, listB interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
ElementsMatchf(a.t, listA, listB, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either
|
||||||
|
// a slice or a channel with len == 0.
|
||||||
|
//
|
||||||
|
// a.Empty(obj)
|
||||||
|
func (a *Assertions) Empty(object interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Empty(a.t, object, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either
|
||||||
|
// a slice or a channel with len == 0.
|
||||||
|
//
|
||||||
|
// a.Emptyf(obj, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Emptyf(object interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Emptyf(a.t, object, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equal asserts that two objects are equal.
|
||||||
|
//
|
||||||
|
// a.Equal(123, 123)
|
||||||
|
//
|
||||||
|
// Pointer variable equality is determined based on the equality of the
|
||||||
|
// referenced values (as opposed to the memory addresses). Function equality
|
||||||
|
// cannot be determined and will always fail.
|
||||||
|
func (a *Assertions) Equal(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Equal(a.t, expected, actual, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EqualError asserts that a function returned an error (i.e. not `nil`)
|
||||||
|
// and that it is equal to the provided error.
|
||||||
|
//
|
||||||
|
// actualObj, err := SomeFunction()
|
||||||
|
// a.EqualError(err, expectedErrorString)
|
||||||
|
func (a *Assertions) EqualError(theError error, errString string, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
EqualError(a.t, theError, errString, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EqualErrorf asserts that a function returned an error (i.e. not `nil`)
|
||||||
|
// and that it is equal to the provided error.
|
||||||
|
//
|
||||||
|
// actualObj, err := SomeFunction()
|
||||||
|
// a.EqualErrorf(err, expectedErrorString, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) EqualErrorf(theError error, errString string, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
EqualErrorf(a.t, theError, errString, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EqualValues asserts that two objects are equal or convertable to the same types
|
||||||
|
// and equal.
|
||||||
|
//
|
||||||
|
// a.EqualValues(uint32(123), int32(123))
|
||||||
|
func (a *Assertions) EqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
EqualValues(a.t, expected, actual, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EqualValuesf asserts that two objects are equal or convertable to the same types
|
||||||
|
// and equal.
|
||||||
|
//
|
||||||
|
// a.EqualValuesf(uint32(123, "error message %s", "formatted"), int32(123))
|
||||||
|
func (a *Assertions) EqualValuesf(expected interface{}, actual interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
EqualValuesf(a.t, expected, actual, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equalf asserts that two objects are equal.
|
||||||
|
//
|
||||||
|
// a.Equalf(123, 123, "error message %s", "formatted")
|
||||||
|
//
|
||||||
|
// Pointer variable equality is determined based on the equality of the
|
||||||
|
// referenced values (as opposed to the memory addresses). Function equality
|
||||||
|
// cannot be determined and will always fail.
|
||||||
|
func (a *Assertions) Equalf(expected interface{}, actual interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Equalf(a.t, expected, actual, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Error asserts that a function returned an error (i.e. not `nil`).
|
||||||
|
//
|
||||||
|
// actualObj, err := SomeFunction()
|
||||||
|
// if a.Error(err) {
|
||||||
|
// assert.Equal(t, expectedError, err)
|
||||||
|
// }
|
||||||
|
func (a *Assertions) Error(err error, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Error(a.t, err, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Errorf asserts that a function returned an error (i.e. not `nil`).
|
||||||
|
//
|
||||||
|
// actualObj, err := SomeFunction()
|
||||||
|
// if a.Errorf(err, "error message %s", "formatted") {
|
||||||
|
// assert.Equal(t, expectedErrorf, err)
|
||||||
|
// }
|
||||||
|
func (a *Assertions) Errorf(err error, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Errorf(a.t, err, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Exactly asserts that two objects are equal in value and type.
|
||||||
|
//
|
||||||
|
// a.Exactly(int32(123), int64(123))
|
||||||
|
func (a *Assertions) Exactly(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Exactly(a.t, expected, actual, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Exactlyf asserts that two objects are equal in value and type.
|
||||||
|
//
|
||||||
|
// a.Exactlyf(int32(123, "error message %s", "formatted"), int64(123))
|
||||||
|
func (a *Assertions) Exactlyf(expected interface{}, actual interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Exactlyf(a.t, expected, actual, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fail reports a failure through
|
||||||
|
func (a *Assertions) Fail(failureMessage string, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Fail(a.t, failureMessage, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FailNow fails test
|
||||||
|
func (a *Assertions) FailNow(failureMessage string, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
FailNow(a.t, failureMessage, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FailNowf fails test
|
||||||
|
func (a *Assertions) FailNowf(failureMessage string, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
FailNowf(a.t, failureMessage, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Failf reports a failure through
|
||||||
|
func (a *Assertions) Failf(failureMessage string, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Failf(a.t, failureMessage, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// False asserts that the specified value is false.
|
||||||
|
//
|
||||||
|
// a.False(myBool)
|
||||||
|
func (a *Assertions) False(value bool, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
False(a.t, value, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Falsef asserts that the specified value is false.
|
||||||
|
//
|
||||||
|
// a.Falsef(myBool, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Falsef(value bool, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Falsef(a.t, value, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
|
||||||
|
func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
FileExists(a.t, path, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
|
||||||
|
func (a *Assertions) FileExistsf(path string, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
FileExistsf(a.t, path, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPBodyContains asserts that a specified handler returns a
|
||||||
|
// body that contains a string.
|
||||||
|
//
|
||||||
|
// a.HTTPBodyContains(myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky")
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true) or not (false).
|
||||||
|
func (a *Assertions) HTTPBodyContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPBodyContains(a.t, handler, method, url, values, str, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPBodyContainsf asserts that a specified handler returns a
|
||||||
|
// body that contains a string.
|
||||||
|
//
|
||||||
|
// a.HTTPBodyContainsf(myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted")
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true) or not (false).
|
||||||
|
func (a *Assertions) HTTPBodyContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPBodyContainsf(a.t, handler, method, url, values, str, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPBodyNotContains asserts that a specified handler returns a
|
||||||
|
// body that does not contain a string.
|
||||||
|
//
|
||||||
|
// a.HTTPBodyNotContains(myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky")
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true) or not (false).
|
||||||
|
func (a *Assertions) HTTPBodyNotContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPBodyNotContains(a.t, handler, method, url, values, str, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPBodyNotContainsf asserts that a specified handler returns a
|
||||||
|
// body that does not contain a string.
|
||||||
|
//
|
||||||
|
// a.HTTPBodyNotContainsf(myHandler, "GET", "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted")
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true) or not (false).
|
||||||
|
func (a *Assertions) HTTPBodyNotContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPBodyNotContainsf(a.t, handler, method, url, values, str, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPError asserts that a specified handler returns an error status code.
|
||||||
|
//
|
||||||
|
// a.HTTPError(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}}
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true) or not (false).
|
||||||
|
func (a *Assertions) HTTPError(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPError(a.t, handler, method, url, values, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPErrorf asserts that a specified handler returns an error status code.
|
||||||
|
//
|
||||||
|
// a.HTTPErrorf(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}}
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true, "error message %s", "formatted") or not (false).
|
||||||
|
func (a *Assertions) HTTPErrorf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPErrorf(a.t, handler, method, url, values, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPRedirect asserts that a specified handler returns a redirect status code.
|
||||||
|
//
|
||||||
|
// a.HTTPRedirect(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}}
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true) or not (false).
|
||||||
|
func (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPRedirect(a.t, handler, method, url, values, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPRedirectf asserts that a specified handler returns a redirect status code.
|
||||||
|
//
|
||||||
|
// a.HTTPRedirectf(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}}
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true, "error message %s", "formatted") or not (false).
|
||||||
|
func (a *Assertions) HTTPRedirectf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPRedirectf(a.t, handler, method, url, values, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPSuccess asserts that a specified handler returns a success status code.
|
||||||
|
//
|
||||||
|
// a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil)
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true) or not (false).
|
||||||
|
func (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPSuccess(a.t, handler, method, url, values, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTPSuccessf asserts that a specified handler returns a success status code.
|
||||||
|
//
|
||||||
|
// a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error message %s", "formatted")
|
||||||
|
//
|
||||||
|
// Returns whether the assertion was successful (true) or not (false).
|
||||||
|
func (a *Assertions) HTTPSuccessf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
HTTPSuccessf(a.t, handler, method, url, values, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Implements asserts that an object is implemented by the specified interface.
|
||||||
|
//
|
||||||
|
// a.Implements((*MyInterface)(nil), new(MyObject))
|
||||||
|
func (a *Assertions) Implements(interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Implements(a.t, interfaceObject, object, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Implementsf asserts that an object is implemented by the specified interface.
|
||||||
|
//
|
||||||
|
// a.Implementsf((*MyInterface, "error message %s", "formatted")(nil), new(MyObject))
|
||||||
|
func (a *Assertions) Implementsf(interfaceObject interface{}, object interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Implementsf(a.t, interfaceObject, object, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InDelta asserts that the two numerals are within delta of each other.
|
||||||
|
//
|
||||||
|
// a.InDelta(math.Pi, (22 / 7.0), 0.01)
|
||||||
|
func (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InDelta(a.t, expected, actual, delta, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
|
||||||
|
func (a *Assertions) InDeltaMapValues(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InDeltaMapValues(a.t, expected, actual, delta, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
|
||||||
|
func (a *Assertions) InDeltaMapValuesf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InDeltaMapValuesf(a.t, expected, actual, delta, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InDeltaSlice is the same as InDelta, except it compares two slices.
|
||||||
|
func (a *Assertions) InDeltaSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InDeltaSlice(a.t, expected, actual, delta, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InDeltaSlicef is the same as InDelta, except it compares two slices.
|
||||||
|
func (a *Assertions) InDeltaSlicef(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InDeltaSlicef(a.t, expected, actual, delta, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InDeltaf asserts that the two numerals are within delta of each other.
|
||||||
|
//
|
||||||
|
// a.InDeltaf(math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01)
|
||||||
|
func (a *Assertions) InDeltaf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InDeltaf(a.t, expected, actual, delta, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InEpsilon asserts that expected and actual have a relative error less than epsilon
|
||||||
|
func (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InEpsilon(a.t, expected, actual, epsilon, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
|
||||||
|
func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InEpsilonSlice(a.t, expected, actual, epsilon, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
|
||||||
|
func (a *Assertions) InEpsilonSlicef(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InEpsilonSlicef(a.t, expected, actual, epsilon, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// InEpsilonf asserts that expected and actual have a relative error less than epsilon
|
||||||
|
func (a *Assertions) InEpsilonf(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
InEpsilonf(a.t, expected, actual, epsilon, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsType asserts that the specified objects are of the same type.
|
||||||
|
func (a *Assertions) IsType(expectedType interface{}, object interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
IsType(a.t, expectedType, object, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsTypef asserts that the specified objects are of the same type.
|
||||||
|
func (a *Assertions) IsTypef(expectedType interface{}, object interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
IsTypef(a.t, expectedType, object, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// JSONEq asserts that two JSON strings are equivalent.
|
||||||
|
//
|
||||||
|
// a.JSONEq(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)
|
||||||
|
func (a *Assertions) JSONEq(expected string, actual string, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
JSONEq(a.t, expected, actual, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// JSONEqf asserts that two JSON strings are equivalent.
|
||||||
|
//
|
||||||
|
// a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) JSONEqf(expected string, actual string, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
JSONEqf(a.t, expected, actual, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Len asserts that the specified object has specific length.
|
||||||
|
// Len also fails if the object has a type that len() not accept.
|
||||||
|
//
|
||||||
|
// a.Len(mySlice, 3)
|
||||||
|
func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Len(a.t, object, length, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Lenf asserts that the specified object has specific length.
|
||||||
|
// Lenf also fails if the object has a type that len() not accept.
|
||||||
|
//
|
||||||
|
// a.Lenf(mySlice, 3, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Lenf(object interface{}, length int, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Lenf(a.t, object, length, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Nil asserts that the specified object is nil.
|
||||||
|
//
|
||||||
|
// a.Nil(err)
|
||||||
|
func (a *Assertions) Nil(object interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Nil(a.t, object, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Nilf asserts that the specified object is nil.
|
||||||
|
//
|
||||||
|
// a.Nilf(err, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Nilf(object interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Nilf(a.t, object, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NoError asserts that a function returned no error (i.e. `nil`).
|
||||||
|
//
|
||||||
|
// actualObj, err := SomeFunction()
|
||||||
|
// if a.NoError(err) {
|
||||||
|
// assert.Equal(t, expectedObj, actualObj)
|
||||||
|
// }
|
||||||
|
func (a *Assertions) NoError(err error, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NoError(a.t, err, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NoErrorf asserts that a function returned no error (i.e. `nil`).
|
||||||
|
//
|
||||||
|
// actualObj, err := SomeFunction()
|
||||||
|
// if a.NoErrorf(err, "error message %s", "formatted") {
|
||||||
|
// assert.Equal(t, expectedObj, actualObj)
|
||||||
|
// }
|
||||||
|
func (a *Assertions) NoErrorf(err error, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NoErrorf(a.t, err, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the
|
||||||
|
// specified substring or element.
|
||||||
|
//
|
||||||
|
// a.NotContains("Hello World", "Earth")
|
||||||
|
// a.NotContains(["Hello", "World"], "Earth")
|
||||||
|
// a.NotContains({"Hello": "World"}, "Earth")
|
||||||
|
func (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotContains(a.t, s, contains, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the
|
||||||
|
// specified substring or element.
|
||||||
|
//
|
||||||
|
// a.NotContainsf("Hello World", "Earth", "error message %s", "formatted")
|
||||||
|
// a.NotContainsf(["Hello", "World"], "Earth", "error message %s", "formatted")
|
||||||
|
// a.NotContainsf({"Hello": "World"}, "Earth", "error message %s", "formatted")
|
||||||
|
func (a *Assertions) NotContainsf(s interface{}, contains interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotContainsf(a.t, s, contains, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either
|
||||||
|
// a slice or a channel with len == 0.
|
||||||
|
//
|
||||||
|
// if a.NotEmpty(obj) {
|
||||||
|
// assert.Equal(t, "two", obj[1])
|
||||||
|
// }
|
||||||
|
func (a *Assertions) NotEmpty(object interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotEmpty(a.t, object, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either
|
||||||
|
// a slice or a channel with len == 0.
|
||||||
|
//
|
||||||
|
// if a.NotEmptyf(obj, "error message %s", "formatted") {
|
||||||
|
// assert.Equal(t, "two", obj[1])
|
||||||
|
// }
|
||||||
|
func (a *Assertions) NotEmptyf(object interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotEmptyf(a.t, object, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotEqual asserts that the specified values are NOT equal.
|
||||||
|
//
|
||||||
|
// a.NotEqual(obj1, obj2)
|
||||||
|
//
|
||||||
|
// Pointer variable equality is determined based on the equality of the
|
||||||
|
// referenced values (as opposed to the memory addresses).
|
||||||
|
func (a *Assertions) NotEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotEqual(a.t, expected, actual, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotEqualf asserts that the specified values are NOT equal.
|
||||||
|
//
|
||||||
|
// a.NotEqualf(obj1, obj2, "error message %s", "formatted")
|
||||||
|
//
|
||||||
|
// Pointer variable equality is determined based on the equality of the
|
||||||
|
// referenced values (as opposed to the memory addresses).
|
||||||
|
func (a *Assertions) NotEqualf(expected interface{}, actual interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotEqualf(a.t, expected, actual, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotNil asserts that the specified object is not nil.
|
||||||
|
//
|
||||||
|
// a.NotNil(err)
|
||||||
|
func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotNil(a.t, object, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotNilf asserts that the specified object is not nil.
|
||||||
|
//
|
||||||
|
// a.NotNilf(err, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) NotNilf(object interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotNilf(a.t, object, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.
|
||||||
|
//
|
||||||
|
// a.NotPanics(func(){ RemainCalm() })
|
||||||
|
func (a *Assertions) NotPanics(f assert.PanicTestFunc, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotPanics(a.t, f, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic.
|
||||||
|
//
|
||||||
|
// a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) NotPanicsf(f assert.PanicTestFunc, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotPanicsf(a.t, f, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotRegexp asserts that a specified regexp does not match a string.
|
||||||
|
//
|
||||||
|
// a.NotRegexp(regexp.MustCompile("starts"), "it's starting")
|
||||||
|
// a.NotRegexp("^start", "it's not starting")
|
||||||
|
func (a *Assertions) NotRegexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotRegexp(a.t, rx, str, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotRegexpf asserts that a specified regexp does not match a string.
|
||||||
|
//
|
||||||
|
// a.NotRegexpf(regexp.MustCompile("starts", "error message %s", "formatted"), "it's starting")
|
||||||
|
// a.NotRegexpf("^start", "it's not starting", "error message %s", "formatted")
|
||||||
|
func (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotRegexpf(a.t, rx, str, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotSubset asserts that the specified list(array, slice...) contains not all
|
||||||
|
// elements given in the specified subset(array, slice...).
|
||||||
|
//
|
||||||
|
// a.NotSubset([1, 3, 4], [1, 2], "But [1, 3, 4] does not contain [1, 2]")
|
||||||
|
func (a *Assertions) NotSubset(list interface{}, subset interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotSubset(a.t, list, subset, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotSubsetf asserts that the specified list(array, slice...) contains not all
|
||||||
|
// elements given in the specified subset(array, slice...).
|
||||||
|
//
|
||||||
|
// a.NotSubsetf([1, 3, 4], [1, 2], "But [1, 3, 4] does not contain [1, 2]", "error message %s", "formatted")
|
||||||
|
func (a *Assertions) NotSubsetf(list interface{}, subset interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotSubsetf(a.t, list, subset, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotZero asserts that i is not the zero value for its type.
|
||||||
|
func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotZero(a.t, i, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotZerof asserts that i is not the zero value for its type.
|
||||||
|
func (a *Assertions) NotZerof(i interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
NotZerof(a.t, i, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Panics asserts that the code inside the specified PanicTestFunc panics.
|
||||||
|
//
|
||||||
|
// a.Panics(func(){ GoCrazy() })
|
||||||
|
func (a *Assertions) Panics(f assert.PanicTestFunc, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Panics(a.t, f, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that
|
||||||
|
// the recovered panic value equals the expected panic value.
|
||||||
|
//
|
||||||
|
// a.PanicsWithValue("crazy error", func(){ GoCrazy() })
|
||||||
|
func (a *Assertions) PanicsWithValue(expected interface{}, f assert.PanicTestFunc, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
PanicsWithValue(a.t, expected, f, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that
|
||||||
|
// the recovered panic value equals the expected panic value.
|
||||||
|
//
|
||||||
|
// a.PanicsWithValuef("crazy error", func(){ GoCrazy() }, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) PanicsWithValuef(expected interface{}, f assert.PanicTestFunc, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
PanicsWithValuef(a.t, expected, f, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Panicsf asserts that the code inside the specified PanicTestFunc panics.
|
||||||
|
//
|
||||||
|
// a.Panicsf(func(){ GoCrazy() }, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Panicsf(f assert.PanicTestFunc, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Panicsf(a.t, f, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Regexp asserts that a specified regexp matches a string.
|
||||||
|
//
|
||||||
|
// a.Regexp(regexp.MustCompile("start"), "it's starting")
|
||||||
|
// a.Regexp("start...$", "it's not starting")
|
||||||
|
func (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Regexp(a.t, rx, str, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Regexpf asserts that a specified regexp matches a string.
|
||||||
|
//
|
||||||
|
// a.Regexpf(regexp.MustCompile("start", "error message %s", "formatted"), "it's starting")
|
||||||
|
// a.Regexpf("start...$", "it's not starting", "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Regexpf(rx interface{}, str interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Regexpf(a.t, rx, str, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Subset asserts that the specified list(array, slice...) contains all
|
||||||
|
// elements given in the specified subset(array, slice...).
|
||||||
|
//
|
||||||
|
// a.Subset([1, 2, 3], [1, 2], "But [1, 2, 3] does contain [1, 2]")
|
||||||
|
func (a *Assertions) Subset(list interface{}, subset interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Subset(a.t, list, subset, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Subsetf asserts that the specified list(array, slice...) contains all
|
||||||
|
// elements given in the specified subset(array, slice...).
|
||||||
|
//
|
||||||
|
// a.Subsetf([1, 2, 3], [1, 2], "But [1, 2, 3] does contain [1, 2]", "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Subsetf(list interface{}, subset interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Subsetf(a.t, list, subset, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// True asserts that the specified value is true.
|
||||||
|
//
|
||||||
|
// a.True(myBool)
|
||||||
|
func (a *Assertions) True(value bool, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
True(a.t, value, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Truef asserts that the specified value is true.
|
||||||
|
//
|
||||||
|
// a.Truef(myBool, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) Truef(value bool, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Truef(a.t, value, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithinDuration asserts that the two times are within duration delta of each other.
|
||||||
|
//
|
||||||
|
// a.WithinDuration(time.Now(), time.Now(), 10*time.Second)
|
||||||
|
func (a *Assertions) WithinDuration(expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
WithinDuration(a.t, expected, actual, delta, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithinDurationf asserts that the two times are within duration delta of each other.
|
||||||
|
//
|
||||||
|
// a.WithinDurationf(time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted")
|
||||||
|
func (a *Assertions) WithinDurationf(expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
WithinDurationf(a.t, expected, actual, delta, msg, args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Zero asserts that i is the zero value for its type.
|
||||||
|
func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Zero(a.t, i, msgAndArgs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Zerof asserts that i is the zero value for its type.
|
||||||
|
func (a *Assertions) Zerof(i interface{}, msg string, args ...interface{}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok {
|
||||||
|
h.Helper()
|
||||||
|
}
|
||||||
|
Zerof(a.t, i, msg, args...)
|
||||||
|
}
|
5
vendor/github.com/stretchr/testify/require/require_forward.go.tmpl
generated
vendored
Normal file
5
vendor/github.com/stretchr/testify/require/require_forward.go.tmpl
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{{.CommentWithoutT "a"}}
|
||||||
|
func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) {
|
||||||
|
if h, ok := a.t.(tHelper); ok { h.Helper() }
|
||||||
|
{{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
|
||||||
|
}
|
29
vendor/github.com/stretchr/testify/require/requirements.go
generated
vendored
Normal file
29
vendor/github.com/stretchr/testify/require/requirements.go
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
package require
|
||||||
|
|
||||||
|
// TestingT is an interface wrapper around *testing.T
|
||||||
|
type TestingT interface {
|
||||||
|
Errorf(format string, args ...interface{})
|
||||||
|
FailNow()
|
||||||
|
}
|
||||||
|
|
||||||
|
type tHelper interface {
|
||||||
|
Helper()
|
||||||
|
}
|
||||||
|
|
||||||
|
// ComparisonAssertionFunc is a common function prototype when comparing two values. Can be useful
|
||||||
|
// for table driven tests.
|
||||||
|
type ComparisonAssertionFunc func(TestingT, interface{}, interface{}, ...interface{})
|
||||||
|
|
||||||
|
// ValueAssertionFunc is a common function prototype when validating a single value. Can be useful
|
||||||
|
// for table driven tests.
|
||||||
|
type ValueAssertionFunc func(TestingT, interface{}, ...interface{})
|
||||||
|
|
||||||
|
// BoolAssertionFunc is a common function prototype when validating a bool value. Can be useful
|
||||||
|
// for table driven tests.
|
||||||
|
type BoolAssertionFunc func(TestingT, bool, ...interface{})
|
||||||
|
|
||||||
|
// ValuesAssertionFunc is a common function prototype when validating an error value. Can be useful
|
||||||
|
// for table driven tests.
|
||||||
|
type ErrorAssertionFunc func(TestingT, error, ...interface{})
|
||||||
|
|
||||||
|
//go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpl -include-format-funcs
|
19
vendor/gitlab.bertha.cloud/adphi/gowebdav/.gitignore
vendored
Normal file
19
vendor/gitlab.bertha.cloud/adphi/gowebdav/.gitignore
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Folders to ignore
|
||||||
|
/src
|
||||||
|
/bin
|
||||||
|
/pkg
|
||||||
|
/gowebdav
|
||||||
|
/.idea
|
||||||
|
|
||||||
|
# Binaries for programs and plugins
|
||||||
|
*.exe
|
||||||
|
*.exe~
|
||||||
|
*.dll
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
|
||||||
|
# Test binary, build with `go test -c`
|
||||||
|
*.test
|
||||||
|
|
||||||
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||||
|
*.out
|
10
vendor/gitlab.bertha.cloud/adphi/gowebdav/.travis.yml
vendored
Normal file
10
vendor/gitlab.bertha.cloud/adphi/gowebdav/.travis.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- "1.x"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- go get ./...
|
||||||
|
|
||||||
|
script:
|
||||||
|
- go test -v --short ./...
|
27
vendor/gitlab.bertha.cloud/adphi/gowebdav/LICENSE
vendored
Normal file
27
vendor/gitlab.bertha.cloud/adphi/gowebdav/LICENSE
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Copyright (c) 2014, Studio B12 GmbH
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software without
|
||||||
|
specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
33
vendor/gitlab.bertha.cloud/adphi/gowebdav/Makefile
vendored
Normal file
33
vendor/gitlab.bertha.cloud/adphi/gowebdav/Makefile
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
BIN := gowebdav
|
||||||
|
SRC := $(wildcard *.go) cmd/gowebdav/main.go
|
||||||
|
|
||||||
|
all: test cmd
|
||||||
|
|
||||||
|
cmd: ${BIN}
|
||||||
|
|
||||||
|
${BIN}: ${SRC}
|
||||||
|
go build -o $@ ./cmd/gowebdav
|
||||||
|
|
||||||
|
test:
|
||||||
|
go test -v --short ./...
|
||||||
|
|
||||||
|
api:
|
||||||
|
@sed '/^## API$$/,$$d' -i README.md
|
||||||
|
@echo '## API' >> README.md
|
||||||
|
@godoc2md github.com/studio-b12/gowebdav | sed '/^$$/N;/^\n$$/D' |\
|
||||||
|
sed '2d' |\
|
||||||
|
sed 's/\/src\/github.com\/studio-b12\/gowebdav\//https:\/\/github.com\/studio-b12\/gowebdav\/blob\/master\//g' |\
|
||||||
|
sed 's/\/src\/target\//https:\/\/github.com\/studio-b12\/gowebdav\/blob\/master\//g' |\
|
||||||
|
sed 's/^#/##/g' >> README.md
|
||||||
|
|
||||||
|
check:
|
||||||
|
gofmt -w -s $(SRC)
|
||||||
|
@echo
|
||||||
|
gocyclo -over 15 .
|
||||||
|
@echo
|
||||||
|
golint ./...
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@rm -f ${BIN}
|
||||||
|
|
||||||
|
.PHONY: all cmd clean test api check
|
147
vendor/gitlab.bertha.cloud/adphi/gowebdav/README.md
vendored
Normal file
147
vendor/gitlab.bertha.cloud/adphi/gowebdav/README.md
vendored
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
# GoWebDAV
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.org/studio-b12/gowebdav.svg?branch=master)](https://travis-ci.org/studio-b12/gowebdav)
|
||||||
|
[![GoDoc](https://godoc.org/github.com/studio-b12/gowebdav?status.svg)](https://godoc.org/github.com/studio-b12/gowebdav)
|
||||||
|
[![Go Report Card](https://goreportcard.com/badge/github.com/studio-b12/gowebdav)](https://goreportcard.com/report/github.com/studio-b12/gowebdav)
|
||||||
|
|
||||||
|
A golang WebDAV client library.
|
||||||
|
|
||||||
|
## Main features
|
||||||
|
`gowebdav` library allows to perform following actions on the remote WebDAV server:
|
||||||
|
* [create path](#create-path-on-a-webdav-server)
|
||||||
|
* [get files list](#get-files-list)
|
||||||
|
* [download file](#download-file-to-byte-array)
|
||||||
|
* [upload file](#upload-file-from-byte-array)
|
||||||
|
* [get information about specified file/folder](#get-information-about-specified-filefolder)
|
||||||
|
* [move file to another location](#move-file-to-another-location)
|
||||||
|
* [copy file to another location](#copy-file-to-another-location)
|
||||||
|
* [delete file](#delete-file)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
First of all you should create `Client` instance using `NewClient()` function:
|
||||||
|
|
||||||
|
```go
|
||||||
|
root := "https://webdav.mydomain.me"
|
||||||
|
user := "user"
|
||||||
|
password := "password"
|
||||||
|
|
||||||
|
c := gowebdav.NewClient(root, user, password)
|
||||||
|
```
|
||||||
|
|
||||||
|
After you can use this `Client` to perform actions, described below.
|
||||||
|
|
||||||
|
**NOTICE:** we will not check errors in examples, to focus you on the `gowebdav` library's code, but you should do it in your code!
|
||||||
|
|
||||||
|
### Create path on a WebDAV server
|
||||||
|
```go
|
||||||
|
err := c.Mkdir("folder", 0644)
|
||||||
|
```
|
||||||
|
In case you want to create several folders you can use `c.MkdirAll()`:
|
||||||
|
```go
|
||||||
|
err := c.MkdirAll("folder/subfolder/subfolder2", 0644)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Get files list
|
||||||
|
```go
|
||||||
|
files, _ := c.ReadDir("folder/subfolder")
|
||||||
|
for _, file := range files {
|
||||||
|
//notice that [file] has os.FileInfo type
|
||||||
|
fmt.Println(file.Name())
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Download file to byte array
|
||||||
|
```go
|
||||||
|
webdavFilePath := "folder/subfolder/file.txt"
|
||||||
|
localFilePath := "/tmp/webdav/file.txt"
|
||||||
|
|
||||||
|
bytes, _ := c.Read(webdavFilePath)
|
||||||
|
ioutil.WriteFile(localFilePath, bytes, 0644)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Download file via reader
|
||||||
|
Also you can use `c.ReadStream()` method:
|
||||||
|
```go
|
||||||
|
webdavFilePath := "folder/subfolder/file.txt"
|
||||||
|
localFilePath := "/tmp/webdav/file.txt"
|
||||||
|
|
||||||
|
reader, _ := c.ReadStream(webdavFilePath)
|
||||||
|
|
||||||
|
file, _ := os.Create(localFilePath)
|
||||||
|
defer file.Close()
|
||||||
|
|
||||||
|
io.Copy(file, reader)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Upload file from byte array
|
||||||
|
```go
|
||||||
|
webdavFilePath := "folder/subfolder/file.txt"
|
||||||
|
localFilePath := "/tmp/webdav/file.txt"
|
||||||
|
|
||||||
|
bytes, _ := ioutil.ReadFile(localFilePath)
|
||||||
|
|
||||||
|
c.Write(webdavFilePath, bytes, 0644)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Upload file via writer
|
||||||
|
```go
|
||||||
|
webdavFilePath := "folder/subfolder/file.txt"
|
||||||
|
localFilePath := "/tmp/webdav/file.txt"
|
||||||
|
|
||||||
|
file, _ := os.Open(localFilePath)
|
||||||
|
defer file.Close()
|
||||||
|
|
||||||
|
c.WriteStream(webdavFilePath, file, 0644)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Get information about specified file/folder
|
||||||
|
```go
|
||||||
|
webdavFilePath := "folder/subfolder/file.txt"
|
||||||
|
|
||||||
|
info := c.Stat(webdavFilePath)
|
||||||
|
//notice that [info] has os.FileInfo type
|
||||||
|
fmt.Println(info)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Move file to another location
|
||||||
|
```go
|
||||||
|
oldPath := "folder/subfolder/file.txt"
|
||||||
|
newPath := "folder/subfolder/moved.txt"
|
||||||
|
isOverwrite := true
|
||||||
|
|
||||||
|
c.Rename(oldPath, newPath, isOverwrite)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Copy file to another location
|
||||||
|
```go
|
||||||
|
oldPath := "folder/subfolder/file.txt"
|
||||||
|
newPath := "folder/subfolder/file-copy.txt"
|
||||||
|
isOverwrite := true
|
||||||
|
|
||||||
|
c.Copy(oldPath, newPath, isOverwrite)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Delete file
|
||||||
|
```go
|
||||||
|
webdavFilePath := "folder/subfolder/file.txt"
|
||||||
|
|
||||||
|
c.Remove(webdavFilePath)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
More details about WebDAV server you can read from following resources:
|
||||||
|
|
||||||
|
* [RFC 4918 - HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)](https://tools.ietf.org/html/rfc4918)
|
||||||
|
* [RFC 5689 - Extended MKCOL for Web Distributed Authoring and Versioning (WebDAV)](https://tools.ietf.org/html/rfc5689)
|
||||||
|
* [RFC 2616 - HTTP/1.1 Status Code Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html "HTTP/1.1 Status Code Definitions")
|
||||||
|
* [WebDav: Next Generation Collaborative Web Authoring By Lisa Dusseaul](https://books.google.de/books?isbn=0130652083 "WebDav: Next Generation Collaborative Web Authoring By Lisa Dusseault")
|
||||||
|
|
||||||
|
**NOTICE**: RFC 2518 is obsoleted by RFC 4918 in June 2007
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
All contributing are welcome. If you have any suggestions or find some bug - please create an Issue to let us make this project better. We appreciate your help!
|
||||||
|
|
||||||
|
## License
|
||||||
|
This library is distributed under the BSD 3-Clause license found in the [LICENSE](https://github.com/studio-b12/gowebdav/blob/master/LICENSE) file.
|
33
vendor/gitlab.bertha.cloud/adphi/gowebdav/basicAuth.go
vendored
Normal file
33
vendor/gitlab.bertha.cloud/adphi/gowebdav/basicAuth.go
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
package gowebdav
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/base64"
|
||||||
|
)
|
||||||
|
|
||||||
|
// BasicAuth structure holds our credentials
|
||||||
|
type BasicAuth struct {
|
||||||
|
user string
|
||||||
|
pw string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Type identifies the BasicAuthenticator
|
||||||
|
func (b *BasicAuth) Type() string {
|
||||||
|
return "BasicAuth"
|
||||||
|
}
|
||||||
|
|
||||||
|
// User holds the BasicAuth username
|
||||||
|
func (b *BasicAuth) User() string {
|
||||||
|
return b.user
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pass holds the BasicAuth password
|
||||||
|
func (b *BasicAuth) Pass() string {
|
||||||
|
return b.pw
|
||||||
|
}
|
||||||
|
|
||||||
|
// Authorize the current request
|
||||||
|
func (b *BasicAuth) Authorize(c *Client, method string, path string) {
|
||||||
|
a := b.user + ":" + b.pw
|
||||||
|
auth := "Basic " + base64.StdEncoding.EncodeToString([]byte(a))
|
||||||
|
c.headers.Set("Authorization", auth)
|
||||||
|
}
|
384
vendor/gitlab.bertha.cloud/adphi/gowebdav/client.go
vendored
Normal file
384
vendor/gitlab.bertha.cloud/adphi/gowebdav/client.go
vendored
Normal file
@ -0,0 +1,384 @@
|
|||||||
|
package gowebdav
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"encoding/xml"
|
||||||
|
"io"
|
||||||
|
"net/http"
|
||||||
|
"net/url"
|
||||||
|
"os"
|
||||||
|
pathpkg "path"
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Client defines our structure
|
||||||
|
type Client struct {
|
||||||
|
root string
|
||||||
|
headers http.Header
|
||||||
|
c *http.Client
|
||||||
|
auth Authenticator
|
||||||
|
}
|
||||||
|
|
||||||
|
// Authenticator stub
|
||||||
|
type Authenticator interface {
|
||||||
|
Type() string
|
||||||
|
User() string
|
||||||
|
Pass() string
|
||||||
|
Authorize(*Client, string, string)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NoAuth structure holds our credentials
|
||||||
|
type NoAuth struct {
|
||||||
|
user string
|
||||||
|
pw string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Type identifies the authenticator
|
||||||
|
func (n *NoAuth) Type() string {
|
||||||
|
return "NoAuth"
|
||||||
|
}
|
||||||
|
|
||||||
|
// User returns the current user
|
||||||
|
func (n *NoAuth) User() string {
|
||||||
|
return n.user
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pass returns the current password
|
||||||
|
func (n *NoAuth) Pass() string {
|
||||||
|
return n.pw
|
||||||
|
}
|
||||||
|
|
||||||
|
// Authorize the current request
|
||||||
|
func (n *NoAuth) Authorize(c *Client, method string, path string) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewClient creates a new instance of client
|
||||||
|
func NewClient(uri, user, pw string) *Client {
|
||||||
|
return &Client{FixSlash(uri), make(http.Header), &http.Client{}, &NoAuth{user, pw}}
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetHeader lets us set arbitrary headers for a given client
|
||||||
|
func (c *Client) SetHeader(key, value string) {
|
||||||
|
c.headers.Add(key, value)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetTimeout exposes the ability to set a time limit for requests
|
||||||
|
func (c *Client) SetTimeout(timeout time.Duration) {
|
||||||
|
c.c.Timeout = timeout
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetTransport exposes the ability to define custom transports
|
||||||
|
func (c *Client) SetTransport(transport http.RoundTripper) {
|
||||||
|
c.c.Transport = transport
|
||||||
|
}
|
||||||
|
|
||||||
|
// Connect connects to our dav server
|
||||||
|
func (c *Client) Connect() error {
|
||||||
|
rs, err := c.options("/")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = rs.Body.Close()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
if rs.StatusCode != 200 {
|
||||||
|
return newPathError("Connect", c.root, rs.StatusCode)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type props struct {
|
||||||
|
Status string `xml:"DAV: status"`
|
||||||
|
Name string `xml:"DAV: prop>displayname,omitempty"`
|
||||||
|
Type xml.Name `xml:"DAV: prop>resourcetype>collection,omitempty"`
|
||||||
|
Size string `xml:"DAV: prop>getcontentlength,omitempty"`
|
||||||
|
ContentType string `xml:"DAV: prop>getcontenttype,omitempty"`
|
||||||
|
ETag string `xml:"DAV: prop>getetag,omitempty"`
|
||||||
|
Modified string `xml:"DAV: prop>getlastmodified,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type response struct {
|
||||||
|
Href string `xml:"DAV: href"`
|
||||||
|
Props []props `xml:"DAV: propstat"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func getProps(r *response, status string) *props {
|
||||||
|
for _, prop := range r.Props {
|
||||||
|
if strings.Contains(prop.Status, status) {
|
||||||
|
return &prop
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// ReadDir reads the contents of a remote directory
|
||||||
|
func (c *Client) ReadDir(path string) ([]os.FileInfo, error) {
|
||||||
|
path = FixSlashes(path)
|
||||||
|
files := make([]os.FileInfo, 0)
|
||||||
|
skipSelf := true
|
||||||
|
parse := func(resp interface{}) error {
|
||||||
|
r := resp.(*response)
|
||||||
|
|
||||||
|
if skipSelf {
|
||||||
|
skipSelf = false
|
||||||
|
if p := getProps(r, "200"); p != nil && p.Type.Local == "collection" {
|
||||||
|
r.Props = nil
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return newPathError("ReadDir", path, 405)
|
||||||
|
}
|
||||||
|
|
||||||
|
if p := getProps(r, "200"); p != nil {
|
||||||
|
f := new(File)
|
||||||
|
if ps, err := url.QueryUnescape(r.Href); err == nil {
|
||||||
|
f.name = pathpkg.Base(ps)
|
||||||
|
} else {
|
||||||
|
f.name = p.Name
|
||||||
|
}
|
||||||
|
f.path = path + f.name
|
||||||
|
f.modified = parseModified(&p.Modified)
|
||||||
|
f.etag = p.ETag
|
||||||
|
f.contentType = p.ContentType
|
||||||
|
|
||||||
|
if p.Type.Local == "collection" {
|
||||||
|
f.path += "/"
|
||||||
|
f.size = 0
|
||||||
|
f.isdir = true
|
||||||
|
} else {
|
||||||
|
f.size = parseInt64(&p.Size)
|
||||||
|
f.isdir = false
|
||||||
|
}
|
||||||
|
|
||||||
|
files = append(files, *f)
|
||||||
|
}
|
||||||
|
|
||||||
|
r.Props = nil
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
err := c.propfind(path, false,
|
||||||
|
`<d:propfind xmlns:d='DAV:'>
|
||||||
|
<d:prop>
|
||||||
|
<d:displayname/>
|
||||||
|
<d:resourcetype/>
|
||||||
|
<d:getcontentlength/>
|
||||||
|
<d:getcontenttype/>
|
||||||
|
<d:getetag/>
|
||||||
|
<d:getlastmodified/>
|
||||||
|
</d:prop>
|
||||||
|
</d:propfind>`,
|
||||||
|
&response{},
|
||||||
|
parse)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
if _, ok := err.(*os.PathError); !ok {
|
||||||
|
err = newPathErrorErr("ReadDir", path, err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return files, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Stat returns the file stats for a specified path
|
||||||
|
func (c *Client) Stat(path string) (os.FileInfo, error) {
|
||||||
|
var f *File
|
||||||
|
parse := func(resp interface{}) error {
|
||||||
|
r := resp.(*response)
|
||||||
|
if p := getProps(r, "200"); p != nil && f == nil {
|
||||||
|
f = new(File)
|
||||||
|
if ps, err := url.QueryUnescape(r.Href); err == nil {
|
||||||
|
f.name = pathpkg.Base(ps)
|
||||||
|
} else {
|
||||||
|
f.name = p.Name
|
||||||
|
}
|
||||||
|
f.path = path
|
||||||
|
f.etag = p.ETag
|
||||||
|
f.contentType = p.ContentType
|
||||||
|
|
||||||
|
if p.Type.Local == "collection" {
|
||||||
|
if !strings.HasSuffix(f.path, "/") {
|
||||||
|
f.path += "/"
|
||||||
|
}
|
||||||
|
f.size = 0
|
||||||
|
f.modified = time.Unix(0, 0)
|
||||||
|
f.isdir = true
|
||||||
|
} else {
|
||||||
|
f.size = parseInt64(&p.Size)
|
||||||
|
f.modified = parseModified(&p.Modified)
|
||||||
|
f.isdir = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
r.Props = nil
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
err := c.propfind(path, true,
|
||||||
|
`<d:propfind xmlns:d='DAV:'>
|
||||||
|
<d:prop>
|
||||||
|
<d:displayname/>
|
||||||
|
<d:resourcetype/>
|
||||||
|
<d:getcontentlength/>
|
||||||
|
<d:getcontenttype/>
|
||||||
|
<d:getetag/>
|
||||||
|
<d:getlastmodified/>
|
||||||
|
</d:prop>
|
||||||
|
</d:propfind>`,
|
||||||
|
&response{},
|
||||||
|
parse)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
if _, ok := err.(*os.PathError); !ok {
|
||||||
|
err = newPathErrorErr("ReadDir", path, err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return f, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove removes a remote file
|
||||||
|
func (c *Client) Remove(path string) error {
|
||||||
|
return c.RemoveAll(path)
|
||||||
|
}
|
||||||
|
|
||||||
|
// RemoveAll removes remote files
|
||||||
|
func (c *Client) RemoveAll(path string) error {
|
||||||
|
rs, err := c.req("DELETE", path, nil, nil)
|
||||||
|
if err != nil {
|
||||||
|
return newPathError("Remove", path, 400)
|
||||||
|
}
|
||||||
|
err = rs.Body.Close()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
if rs.StatusCode == 200 || rs.StatusCode == 204 || rs.StatusCode == 404 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return newPathError("Remove", path, rs.StatusCode)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mkdir makes a directory
|
||||||
|
func (c *Client) Mkdir(path string, _ os.FileMode) error {
|
||||||
|
path = FixSlashes(path)
|
||||||
|
status := c.mkcol(path)
|
||||||
|
if status == 201 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return newPathError("Mkdir", path, status)
|
||||||
|
}
|
||||||
|
|
||||||
|
// MkdirAll like mkdir -p, but for webdav
|
||||||
|
func (c *Client) MkdirAll(path string, _ os.FileMode) error {
|
||||||
|
path = FixSlashes(path)
|
||||||
|
status := c.mkcol(path)
|
||||||
|
if status == 201 {
|
||||||
|
return nil
|
||||||
|
} else if status == 409 {
|
||||||
|
paths := strings.Split(path, "/")
|
||||||
|
sub := "/"
|
||||||
|
for _, e := range paths {
|
||||||
|
if e == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
sub += e + "/"
|
||||||
|
status = c.mkcol(sub)
|
||||||
|
if status != 201 {
|
||||||
|
return newPathError("MkdirAll", sub, status)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return newPathError("MkdirAll", path, status)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Rename moves a file from A to B
|
||||||
|
func (c *Client) Rename(oldpath, newpath string, overwrite bool) error {
|
||||||
|
return c.copymove("MOVE", oldpath, newpath, overwrite)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copy copies a file from A to B
|
||||||
|
func (c *Client) Copy(oldpath, newpath string, overwrite bool) error {
|
||||||
|
return c.copymove("COPY", oldpath, newpath, overwrite)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read reads the contents of a remote file
|
||||||
|
func (c *Client) Read(path string) ([]byte, error) {
|
||||||
|
var stream io.ReadCloser
|
||||||
|
var err error
|
||||||
|
|
||||||
|
if stream, err = c.ReadStream(path); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
defer stream.Close()
|
||||||
|
|
||||||
|
buf := new(bytes.Buffer)
|
||||||
|
_, err = buf.ReadFrom(stream)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return buf.Bytes(), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// ReadStream reads the stream for a given path
|
||||||
|
func (c *Client) ReadStream(path string) (io.ReadCloser, error) {
|
||||||
|
rs, err := c.req("GET", path, nil, nil)
|
||||||
|
if err != nil {
|
||||||
|
return nil, newPathErrorErr("ReadStream", path, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
if rs.StatusCode == 200 {
|
||||||
|
return rs.Body, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
rs.Body.Close()
|
||||||
|
return nil, newPathError("ReadStream", path, rs.StatusCode)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Write writes data to a given path
|
||||||
|
func (c *Client) Write(path string, data []byte, _ os.FileMode) error {
|
||||||
|
s := c.put(path, bytes.NewReader(data))
|
||||||
|
switch s {
|
||||||
|
|
||||||
|
case 200, 201, 204:
|
||||||
|
return nil
|
||||||
|
|
||||||
|
case 409:
|
||||||
|
err := c.createParentCollection(path)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
s = c.put(path, bytes.NewReader(data))
|
||||||
|
if s == 200 || s == 201 || s == 204 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return newPathError("Write", path, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
// WriteStream writes a stream
|
||||||
|
func (c *Client) WriteStream(path string, stream io.Reader, _ os.FileMode) error {
|
||||||
|
|
||||||
|
err := c.createParentCollection(path)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
s := c.put(path, stream)
|
||||||
|
|
||||||
|
switch s {
|
||||||
|
case 200, 201, 204:
|
||||||
|
return nil
|
||||||
|
|
||||||
|
default:
|
||||||
|
return newPathError("WriteStream", path, s)
|
||||||
|
}
|
||||||
|
}
|
146
vendor/gitlab.bertha.cloud/adphi/gowebdav/digestAuth.go
vendored
Normal file
146
vendor/gitlab.bertha.cloud/adphi/gowebdav/digestAuth.go
vendored
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
package gowebdav
|
||||||
|
|
||||||
|
import (
|
||||||
|
"crypto/md5"
|
||||||
|
"crypto/rand"
|
||||||
|
"encoding/hex"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"net/http"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
// DigestAuth structure holds our credentials
|
||||||
|
type DigestAuth struct {
|
||||||
|
user string
|
||||||
|
pw string
|
||||||
|
digestParts map[string]string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Type identifies the DigestAuthenticator
|
||||||
|
func (d *DigestAuth) Type() string {
|
||||||
|
return "DigestAuth"
|
||||||
|
}
|
||||||
|
|
||||||
|
// User holds the DigestAuth username
|
||||||
|
func (d *DigestAuth) User() string {
|
||||||
|
return d.user
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pass holds the DigestAuth password
|
||||||
|
func (d *DigestAuth) Pass() string {
|
||||||
|
return d.pw
|
||||||
|
}
|
||||||
|
|
||||||
|
// Authorize the current request
|
||||||
|
func (d *DigestAuth) Authorize(c *Client, method string, path string) {
|
||||||
|
d.digestParts["uri"] = path
|
||||||
|
d.digestParts["method"] = method
|
||||||
|
d.digestParts["username"] = d.user
|
||||||
|
d.digestParts["password"] = d.pw
|
||||||
|
c.headers.Set("Authorization", getDigestAuthorization(d.digestParts))
|
||||||
|
}
|
||||||
|
|
||||||
|
func digestParts(resp *http.Response) map[string]string {
|
||||||
|
result := map[string]string{}
|
||||||
|
if len(resp.Header["Www-Authenticate"]) > 0 {
|
||||||
|
wantedHeaders := []string{"nonce", "realm", "qop", "opaque", "algorithm", "entityBody"}
|
||||||
|
responseHeaders := strings.Split(resp.Header["Www-Authenticate"][0], ",")
|
||||||
|
for _, r := range responseHeaders {
|
||||||
|
for _, w := range wantedHeaders {
|
||||||
|
if strings.Contains(r, w) {
|
||||||
|
result[w] = strings.Trim(
|
||||||
|
strings.SplitN(r, `=`, 2)[1],
|
||||||
|
`"`,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func getMD5(text string) string {
|
||||||
|
hasher := md5.New()
|
||||||
|
hasher.Write([]byte(text))
|
||||||
|
return hex.EncodeToString(hasher.Sum(nil))
|
||||||
|
}
|
||||||
|
|
||||||
|
func getCnonce() string {
|
||||||
|
b := make([]byte, 8)
|
||||||
|
io.ReadFull(rand.Reader, b)
|
||||||
|
return fmt.Sprintf("%x", b)[:16]
|
||||||
|
}
|
||||||
|
|
||||||
|
func getDigestAuthorization(digestParts map[string]string) string {
|
||||||
|
d := digestParts
|
||||||
|
// These are the correct ha1 and ha2 for qop=auth. We should probably check for other types of qop.
|
||||||
|
|
||||||
|
var (
|
||||||
|
ha1 string
|
||||||
|
ha2 string
|
||||||
|
nonceCount = 00000001
|
||||||
|
cnonce = getCnonce()
|
||||||
|
response string
|
||||||
|
)
|
||||||
|
|
||||||
|
// 'ha1' value depends on value of "algorithm" field
|
||||||
|
switch d["algorithm"] {
|
||||||
|
case "MD5", "":
|
||||||
|
ha1 = getMD5(d["username"] + ":" + d["realm"] + ":" + d["password"])
|
||||||
|
case "MD5-sess":
|
||||||
|
ha1 = getMD5(
|
||||||
|
fmt.Sprintf("%s:%v:%s",
|
||||||
|
getMD5(d["username"]+":"+d["realm"]+":"+d["password"]),
|
||||||
|
nonceCount,
|
||||||
|
cnonce,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 'ha2' value depends on value of "qop" field
|
||||||
|
switch d["qop"] {
|
||||||
|
case "auth", "":
|
||||||
|
ha2 = getMD5(d["method"] + ":" + d["uri"])
|
||||||
|
case "auth-int":
|
||||||
|
if d["entityBody"] != "" {
|
||||||
|
ha2 = getMD5(d["method"] + ":" + d["uri"] + ":" + getMD5(d["entityBody"]))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 'response' value depends on value of "qop" field
|
||||||
|
switch d["qop"] {
|
||||||
|
case "":
|
||||||
|
response = getMD5(
|
||||||
|
fmt.Sprintf("%s:%s:%s",
|
||||||
|
ha1,
|
||||||
|
d["nonce"],
|
||||||
|
ha2,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
case "auth", "auth-int":
|
||||||
|
response = getMD5(
|
||||||
|
fmt.Sprintf("%s:%s:%v:%s:%s:%s",
|
||||||
|
ha1,
|
||||||
|
d["nonce"],
|
||||||
|
nonceCount,
|
||||||
|
cnonce,
|
||||||
|
d["qop"],
|
||||||
|
ha2,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
authorization := fmt.Sprintf(`Digest username="%s", realm="%s", nonce="%s", uri="%s", nc=%v, cnonce="%s", response="%s"`,
|
||||||
|
d["username"], d["realm"], d["nonce"], d["uri"], nonceCount, cnonce, response)
|
||||||
|
|
||||||
|
if d["qop"] != "" {
|
||||||
|
authorization += fmt.Sprintf(`, qop=%s`, d["qop"])
|
||||||
|
}
|
||||||
|
|
||||||
|
if d["opaque"] != "" {
|
||||||
|
authorization += fmt.Sprintf(`, opaque="%s"`, d["opaque"])
|
||||||
|
}
|
||||||
|
|
||||||
|
return authorization
|
||||||
|
}
|
3
vendor/gitlab.bertha.cloud/adphi/gowebdav/doc.go
vendored
Normal file
3
vendor/gitlab.bertha.cloud/adphi/gowebdav/doc.go
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Package gowebdav is a WebDAV client library with a command line tool
|
||||||
|
// included.
|
||||||
|
package gowebdav
|
72
vendor/gitlab.bertha.cloud/adphi/gowebdav/file.go
vendored
Normal file
72
vendor/gitlab.bertha.cloud/adphi/gowebdav/file.go
vendored
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
package gowebdav
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
// File is our structure for a given file
|
||||||
|
type File struct {
|
||||||
|
path string
|
||||||
|
name string
|
||||||
|
contentType string
|
||||||
|
size int64
|
||||||
|
modified time.Time
|
||||||
|
etag string
|
||||||
|
isdir bool
|
||||||
|
}
|
||||||
|
|
||||||
|
// Name returns the name of a file
|
||||||
|
func (f File) Name() string {
|
||||||
|
return f.name
|
||||||
|
}
|
||||||
|
|
||||||
|
// ContentType returns the content type of a file
|
||||||
|
func (f File) ContentType() string {
|
||||||
|
return f.contentType
|
||||||
|
}
|
||||||
|
|
||||||
|
// Size returns the size of a file
|
||||||
|
func (f File) Size() int64 {
|
||||||
|
return f.size
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mode will return the mode of a given file
|
||||||
|
func (f File) Mode() os.FileMode {
|
||||||
|
// TODO check webdav perms
|
||||||
|
if f.isdir {
|
||||||
|
return 0775 | os.ModeDir
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0664
|
||||||
|
}
|
||||||
|
|
||||||
|
// ModTime returns the modified time of a file
|
||||||
|
func (f File) ModTime() time.Time {
|
||||||
|
return f.modified
|
||||||
|
}
|
||||||
|
|
||||||
|
// ETag returns the ETag of a file
|
||||||
|
func (f File) ETag() string {
|
||||||
|
return f.etag
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsDir let us see if a given file is a directory or not
|
||||||
|
func (f File) IsDir() bool {
|
||||||
|
return f.isdir
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sys ????
|
||||||
|
func (f File) Sys() interface{} {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// String lets us see file information
|
||||||
|
func (f File) String() string {
|
||||||
|
if f.isdir {
|
||||||
|
return fmt.Sprintf("Dir : '%s' - '%s'", f.path, f.name)
|
||||||
|
}
|
||||||
|
|
||||||
|
return fmt.Sprintf("File: '%s' SIZE: %d MODIFIED: %s ETAG: %s CTYPE: %s", f.path, f.size, f.modified.String(), f.etag, f.contentType)
|
||||||
|
}
|
54
vendor/gitlab.bertha.cloud/adphi/gowebdav/netrc.go
vendored
Normal file
54
vendor/gitlab.bertha.cloud/adphi/gowebdav/netrc.go
vendored
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
package gowebdav
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"net/url"
|
||||||
|
"os"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func parseLine(s string) (login, pass string) {
|
||||||
|
fields := strings.Fields(s)
|
||||||
|
for i, f := range fields {
|
||||||
|
if f == "login" {
|
||||||
|
login = fields[i+1]
|
||||||
|
}
|
||||||
|
if f == "password" {
|
||||||
|
pass = fields[i+1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return login, pass
|
||||||
|
}
|
||||||
|
|
||||||
|
// ReadConfig reads login and password configuration from ~/.netrc
|
||||||
|
// machine foo.com login username password 123456
|
||||||
|
func ReadConfig(uri, netrc string) (string, string) {
|
||||||
|
u, err := url.Parse(uri)
|
||||||
|
if err != nil {
|
||||||
|
return "", ""
|
||||||
|
}
|
||||||
|
|
||||||
|
file, err := os.Open(netrc)
|
||||||
|
if err != nil {
|
||||||
|
return "", ""
|
||||||
|
}
|
||||||
|
defer file.Close()
|
||||||
|
|
||||||
|
re := fmt.Sprintf(`^.*machine %s.*$`, u.Host)
|
||||||
|
scanner := bufio.NewScanner(file)
|
||||||
|
for scanner.Scan() {
|
||||||
|
s := scanner.Text()
|
||||||
|
|
||||||
|
matched, err := regexp.MatchString(re, s)
|
||||||
|
if err != nil {
|
||||||
|
return "", ""
|
||||||
|
}
|
||||||
|
if matched {
|
||||||
|
return parseLine(s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return "", ""
|
||||||
|
}
|
164
vendor/gitlab.bertha.cloud/adphi/gowebdav/requests.go
vendored
Normal file
164
vendor/gitlab.bertha.cloud/adphi/gowebdav/requests.go
vendored
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
package gowebdav
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"net/http"
|
||||||
|
"path"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (c *Client) req(method, path string, body io.Reader, intercept func(*http.Request)) (req *http.Response, err error) {
|
||||||
|
// Tee the body, because if authorization fails we will need to read from it again.
|
||||||
|
var r *http.Request
|
||||||
|
var ba bytes.Buffer
|
||||||
|
bb := io.TeeReader(body, &ba)
|
||||||
|
|
||||||
|
if body == nil {
|
||||||
|
r, err = http.NewRequest(method, PathEscape(Join(c.root, path)), nil)
|
||||||
|
} else {
|
||||||
|
r, err = http.NewRequest(method, PathEscape(Join(c.root, path)), bb)
|
||||||
|
}
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
c.auth.Authorize(c, method, path)
|
||||||
|
|
||||||
|
for k, vals := range c.headers {
|
||||||
|
for _, v := range vals {
|
||||||
|
r.Header.Add(k, v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if intercept != nil {
|
||||||
|
intercept(r)
|
||||||
|
}
|
||||||
|
|
||||||
|
rs, err := c.c.Do(r)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if rs.StatusCode == 401 && c.auth.Type() == "NoAuth" {
|
||||||
|
if strings.Index(rs.Header.Get("Www-Authenticate"), "Digest") > -1 {
|
||||||
|
c.auth = &DigestAuth{c.auth.User(), c.auth.Pass(), digestParts(rs)}
|
||||||
|
} else if strings.Index(rs.Header.Get("Www-Authenticate"), "Basic") > -1 {
|
||||||
|
c.auth = &BasicAuth{c.auth.User(), c.auth.Pass()}
|
||||||
|
} else {
|
||||||
|
return rs, newPathError("Authorize", c.root, rs.StatusCode)
|
||||||
|
}
|
||||||
|
|
||||||
|
if body == nil {
|
||||||
|
return c.req(method, path, nil, intercept)
|
||||||
|
} else {
|
||||||
|
return c.req(method, path, &ba, intercept)
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if rs.StatusCode == 401 {
|
||||||
|
return rs, newPathError("Authorize", c.root, rs.StatusCode)
|
||||||
|
}
|
||||||
|
|
||||||
|
return rs, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) mkcol(path string) int {
|
||||||
|
rs, err := c.req("MKCOL", path, nil, nil)
|
||||||
|
if err != nil {
|
||||||
|
return 400
|
||||||
|
}
|
||||||
|
defer rs.Body.Close()
|
||||||
|
|
||||||
|
if rs.StatusCode == 201 || rs.StatusCode == 405 {
|
||||||
|
return 201
|
||||||
|
}
|
||||||
|
|
||||||
|
return rs.StatusCode
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) options(path string) (*http.Response, error) {
|
||||||
|
return c.req("OPTIONS", path, nil, func(rq *http.Request) {
|
||||||
|
rq.Header.Add("Depth", "0")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) propfind(path string, self bool, body string, resp interface{}, parse func(resp interface{}) error) error {
|
||||||
|
rs, err := c.req("PROPFIND", path, strings.NewReader(body), func(rq *http.Request) {
|
||||||
|
if self {
|
||||||
|
rq.Header.Add("Depth", "0")
|
||||||
|
} else {
|
||||||
|
rq.Header.Add("Depth", "1")
|
||||||
|
}
|
||||||
|
rq.Header.Add("Content-Type", "application/xml;charset=UTF-8")
|
||||||
|
rq.Header.Add("Accept", "application/xml,text/xml")
|
||||||
|
rq.Header.Add("Accept-Charset", "utf-8")
|
||||||
|
// TODO add support for 'gzip,deflate;q=0.8,q=0.7'
|
||||||
|
rq.Header.Add("Accept-Encoding", "")
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer rs.Body.Close()
|
||||||
|
|
||||||
|
if rs.StatusCode != 207 {
|
||||||
|
return fmt.Errorf("%s - %s %s", rs.Status, "PROPFIND", path)
|
||||||
|
}
|
||||||
|
|
||||||
|
return parseXML(rs.Body, resp, parse)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) doCopyMove(method string, oldpath string, newpath string, overwrite bool) (int, io.ReadCloser) {
|
||||||
|
rs, err := c.req(method, oldpath, nil, func(rq *http.Request) {
|
||||||
|
rq.Header.Add("Destination", Join(c.root, newpath))
|
||||||
|
if overwrite {
|
||||||
|
rq.Header.Add("Overwrite", "T")
|
||||||
|
} else {
|
||||||
|
rq.Header.Add("Overwrite", "F")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return 400, nil
|
||||||
|
}
|
||||||
|
return rs.StatusCode, rs.Body
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) copymove(method string, oldpath string, newpath string, overwrite bool) error {
|
||||||
|
s, data := c.doCopyMove(method, oldpath, newpath, overwrite)
|
||||||
|
defer data.Close()
|
||||||
|
|
||||||
|
switch s {
|
||||||
|
case 201, 204:
|
||||||
|
return nil
|
||||||
|
|
||||||
|
case 207:
|
||||||
|
// TODO handle multistat errors, worst case ...
|
||||||
|
log(fmt.Sprintf(" TODO handle %s - %s multistatus result %s", method, oldpath, String(data)))
|
||||||
|
|
||||||
|
case 409:
|
||||||
|
err := c.createParentCollection(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return c.copymove(method, oldpath, newpath, overwrite)
|
||||||
|
}
|
||||||
|
|
||||||
|
return newPathError(method, oldpath, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) put(path string, stream io.Reader) int {
|
||||||
|
rs, err := c.req("PUT", path, stream, nil)
|
||||||
|
if err != nil {
|
||||||
|
return 400
|
||||||
|
}
|
||||||
|
defer rs.Body.Close()
|
||||||
|
|
||||||
|
return rs.StatusCode
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) createParentCollection(itemPath string) (err error) {
|
||||||
|
parentPath := path.Dir(itemPath)
|
||||||
|
return c.MkdirAll(parentPath, 0755)
|
||||||
|
}
|
109
vendor/gitlab.bertha.cloud/adphi/gowebdav/utils.go
vendored
Normal file
109
vendor/gitlab.bertha.cloud/adphi/gowebdav/utils.go
vendored
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
package gowebdav
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"encoding/xml"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"net/url"
|
||||||
|
"os"
|
||||||
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
func log(msg interface{}) {
|
||||||
|
fmt.Println(msg)
|
||||||
|
}
|
||||||
|
|
||||||
|
func newPathError(op string, path string, statusCode int) error {
|
||||||
|
return &os.PathError{
|
||||||
|
Op: op,
|
||||||
|
Path: path,
|
||||||
|
Err: fmt.Errorf("%d", statusCode),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func newPathErrorErr(op string, path string, err error) error {
|
||||||
|
return &os.PathError{
|
||||||
|
Op: op,
|
||||||
|
Path: path,
|
||||||
|
Err: err,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PathEscape escapes all segemnts of a given path
|
||||||
|
func PathEscape(path string) string {
|
||||||
|
s := strings.Split(path, "/")
|
||||||
|
for i, e := range s {
|
||||||
|
s[i] = url.PathEscape(e)
|
||||||
|
}
|
||||||
|
return strings.Join(s, "/")
|
||||||
|
}
|
||||||
|
|
||||||
|
// FixSlash appends a trailing / to our string
|
||||||
|
func FixSlash(s string) string {
|
||||||
|
if !strings.HasSuffix(s, "/") {
|
||||||
|
s += "/"
|
||||||
|
}
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
// FixSlashes appends and prepends a / if they are missing
|
||||||
|
func FixSlashes(s string) string {
|
||||||
|
if s[0] != '/' {
|
||||||
|
s = "/" + s
|
||||||
|
}
|
||||||
|
return FixSlash(s)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Join joins two paths
|
||||||
|
func Join(path0 string, path1 string) string {
|
||||||
|
return strings.TrimSuffix(path0, "/") + "/" + strings.TrimPrefix(path1, "/")
|
||||||
|
}
|
||||||
|
|
||||||
|
// String pulls a string out of our io.Reader
|
||||||
|
func String(r io.Reader) string {
|
||||||
|
buf := new(bytes.Buffer)
|
||||||
|
// TODO - make String return an error as well
|
||||||
|
_, _ = buf.ReadFrom(r)
|
||||||
|
return buf.String()
|
||||||
|
}
|
||||||
|
|
||||||
|
func parseUint(s *string) uint {
|
||||||
|
if n, e := strconv.ParseUint(*s, 10, 32); e == nil {
|
||||||
|
return uint(n)
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func parseInt64(s *string) int64 {
|
||||||
|
if n, e := strconv.ParseInt(*s, 10, 64); e == nil {
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func parseModified(s *string) time.Time {
|
||||||
|
if t, e := time.Parse(time.RFC1123, *s); e == nil {
|
||||||
|
return t
|
||||||
|
}
|
||||||
|
return time.Unix(0, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func parseXML(data io.Reader, resp interface{}, parse func(resp interface{}) error) error {
|
||||||
|
decoder := xml.NewDecoder(data)
|
||||||
|
for t, _ := decoder.Token(); t != nil; t, _ = decoder.Token() {
|
||||||
|
switch se := t.(type) {
|
||||||
|
case xml.StartElement:
|
||||||
|
if se.Name.Local == "response" {
|
||||||
|
if e := decoder.DecodeElement(resp, &se); e == nil {
|
||||||
|
if err := parse(resp); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
8
vendor/golang.org/x/net/publicsuffix/gen.go
generated
vendored
8
vendor/golang.org/x/net/publicsuffix/gen.go
generated
vendored
@ -100,6 +100,7 @@ var (
|
|||||||
labelsList = []string{}
|
labelsList = []string{}
|
||||||
labelsMap = map[string]bool{}
|
labelsMap = map[string]bool{}
|
||||||
rules = []string{}
|
rules = []string{}
|
||||||
|
numICANNRules = 0
|
||||||
|
|
||||||
// validSuffixRE is used to check that the entries in the public suffix
|
// validSuffixRE is used to check that the entries in the public suffix
|
||||||
// list are in canonical form (after Punycode encoding). Specifically,
|
// list are in canonical form (after Punycode encoding). Specifically,
|
||||||
@ -167,11 +168,14 @@ func main1() error {
|
|||||||
}
|
}
|
||||||
s = strings.TrimSpace(s)
|
s = strings.TrimSpace(s)
|
||||||
if strings.Contains(s, "BEGIN ICANN DOMAINS") {
|
if strings.Contains(s, "BEGIN ICANN DOMAINS") {
|
||||||
|
if len(rules) != 0 {
|
||||||
|
return fmt.Errorf(`expected no rules before "BEGIN ICANN DOMAINS"`)
|
||||||
|
}
|
||||||
icann = true
|
icann = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if strings.Contains(s, "END ICANN DOMAINS") {
|
if strings.Contains(s, "END ICANN DOMAINS") {
|
||||||
icann = false
|
icann, numICANNRules = false, len(rules)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if s == "" || strings.HasPrefix(s, "//") {
|
if s == "" || strings.HasPrefix(s, "//") {
|
||||||
@ -287,7 +291,7 @@ func gitCommit() (sha, date string, retErr error) {
|
|||||||
|
|
||||||
func printTest(w io.Writer, n *node) error {
|
func printTest(w io.Writer, n *node) error {
|
||||||
fmt.Fprintf(w, "// generated by go run gen.go; DO NOT EDIT\n\n")
|
fmt.Fprintf(w, "// generated by go run gen.go; DO NOT EDIT\n\n")
|
||||||
fmt.Fprintf(w, "package publicsuffix\n\nvar rules = [...]string{\n")
|
fmt.Fprintf(w, "package publicsuffix\n\nconst numICANNRules = %d\n\nvar rules = [...]string{\n", numICANNRules)
|
||||||
for _, rule := range rules {
|
for _, rule := range rules {
|
||||||
fmt.Fprintf(w, "%q,\n", rule)
|
fmt.Fprintf(w, "%q,\n", rule)
|
||||||
}
|
}
|
||||||
|
25
vendor/golang.org/x/net/publicsuffix/list.go
generated
vendored
25
vendor/golang.org/x/net/publicsuffix/list.go
generated
vendored
@ -72,20 +72,24 @@ func (list) String() string {
|
|||||||
// publicsuffix.org database compiled into the library.
|
// publicsuffix.org database compiled into the library.
|
||||||
//
|
//
|
||||||
// icann is whether the public suffix is managed by the Internet Corporation
|
// icann is whether the public suffix is managed by the Internet Corporation
|
||||||
// for Assigned Names and Numbers. If not, the public suffix is privately
|
// for Assigned Names and Numbers. If not, the public suffix is either a
|
||||||
// managed. For example, foo.org and foo.co.uk are ICANN domains,
|
// privately managed domain (and in practice, not a top level domain) or an
|
||||||
// foo.dyndns.org and foo.blogspot.co.uk are private domains.
|
// unmanaged top level domain (and not explicitly mentioned in the
|
||||||
|
// publicsuffix.org list). For example, "foo.org" and "foo.co.uk" are ICANN
|
||||||
|
// domains, "foo.dyndns.org" and "foo.blogspot.co.uk" are private domains and
|
||||||
|
// "cromulent" is an unmanaged top level domain.
|
||||||
//
|
//
|
||||||
// Use cases for distinguishing ICANN domains like foo.com from private
|
// Use cases for distinguishing ICANN domains like "foo.com" from private
|
||||||
// domains like foo.appspot.com can be found at
|
// domains like "foo.appspot.com" can be found at
|
||||||
// https://wiki.mozilla.org/Public_Suffix_List/Use_Cases
|
// https://wiki.mozilla.org/Public_Suffix_List/Use_Cases
|
||||||
func PublicSuffix(domain string) (publicSuffix string, icann bool) {
|
func PublicSuffix(domain string) (publicSuffix string, icann bool) {
|
||||||
lo, hi := uint32(0), uint32(numTLD)
|
lo, hi := uint32(0), uint32(numTLD)
|
||||||
s, suffix, wildcard := domain, len(domain), false
|
s, suffix, icannNode, wildcard := domain, len(domain), false, false
|
||||||
loop:
|
loop:
|
||||||
for {
|
for {
|
||||||
dot := strings.LastIndex(s, ".")
|
dot := strings.LastIndex(s, ".")
|
||||||
if wildcard {
|
if wildcard {
|
||||||
|
icann = icannNode
|
||||||
suffix = 1 + dot
|
suffix = 1 + dot
|
||||||
}
|
}
|
||||||
if lo == hi {
|
if lo == hi {
|
||||||
@ -97,7 +101,7 @@ loop:
|
|||||||
}
|
}
|
||||||
|
|
||||||
u := nodes[f] >> (nodesBitsTextOffset + nodesBitsTextLength)
|
u := nodes[f] >> (nodesBitsTextOffset + nodesBitsTextLength)
|
||||||
icann = u&(1<<nodesBitsICANN-1) != 0
|
icannNode = u&(1<<nodesBitsICANN-1) != 0
|
||||||
u >>= nodesBitsICANN
|
u >>= nodesBitsICANN
|
||||||
u = children[u&(1<<nodesBitsChildren-1)]
|
u = children[u&(1<<nodesBitsChildren-1)]
|
||||||
lo = u & (1<<childrenBitsLo - 1)
|
lo = u & (1<<childrenBitsLo - 1)
|
||||||
@ -113,6 +117,9 @@ loop:
|
|||||||
}
|
}
|
||||||
u >>= childrenBitsNodeType
|
u >>= childrenBitsNodeType
|
||||||
wildcard = u&(1<<childrenBitsWildcard-1) != 0
|
wildcard = u&(1<<childrenBitsWildcard-1) != 0
|
||||||
|
if !wildcard {
|
||||||
|
icann = icannNode
|
||||||
|
}
|
||||||
|
|
||||||
if dot == -1 {
|
if dot == -1 {
|
||||||
break
|
break
|
||||||
@ -158,6 +165,10 @@ func nodeLabel(i uint32) string {
|
|||||||
// EffectiveTLDPlusOne returns the effective top level domain plus one more
|
// EffectiveTLDPlusOne returns the effective top level domain plus one more
|
||||||
// label. For example, the eTLD+1 for "foo.bar.golang.org" is "golang.org".
|
// label. For example, the eTLD+1 for "foo.bar.golang.org" is "golang.org".
|
||||||
func EffectiveTLDPlusOne(domain string) (string, error) {
|
func EffectiveTLDPlusOne(domain string) (string, error) {
|
||||||
|
if strings.HasPrefix(domain, ".") || strings.HasSuffix(domain, ".") || strings.Contains(domain, "..") {
|
||||||
|
return "", fmt.Errorf("publicsuffix: empty label in domain %q", domain)
|
||||||
|
}
|
||||||
|
|
||||||
suffix, _ := PublicSuffix(domain)
|
suffix, _ := PublicSuffix(domain)
|
||||||
if len(domain) <= len(suffix) {
|
if len(domain) <= len(suffix) {
|
||||||
return "", fmt.Errorf("publicsuffix: cannot derive eTLD+1 for domain %q", domain)
|
return "", fmt.Errorf("publicsuffix: cannot derive eTLD+1 for domain %q", domain)
|
||||||
|
19353
vendor/golang.org/x/net/publicsuffix/table.go
generated
vendored
19353
vendor/golang.org/x/net/publicsuffix/table.go
generated
vendored
File diff suppressed because it is too large
Load Diff
54
vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
generated
vendored
Normal file
54
vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build riscv64,!gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System calls for linux/riscv64.
|
||||||
|
//
|
||||||
|
// Where available, just jump to package syscall's implementation of
|
||||||
|
// these functions.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
|
||||||
|
CALL runtime·entersyscall(SB)
|
||||||
|
MOV a1+8(FP), A0
|
||||||
|
MOV a2+16(FP), A1
|
||||||
|
MOV a3+24(FP), A2
|
||||||
|
MOV $0, A3
|
||||||
|
MOV $0, A4
|
||||||
|
MOV $0, A5
|
||||||
|
MOV $0, A6
|
||||||
|
MOV trap+0(FP), A7 // syscall entry
|
||||||
|
ECALL
|
||||||
|
MOV A0, r1+32(FP) // r1
|
||||||
|
MOV A1, r2+40(FP) // r2
|
||||||
|
CALL runtime·exitsyscall(SB)
|
||||||
|
RET
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
|
||||||
|
MOV a1+8(FP), A0
|
||||||
|
MOV a2+16(FP), A1
|
||||||
|
MOV a3+24(FP), A2
|
||||||
|
MOV ZERO, A3
|
||||||
|
MOV ZERO, A4
|
||||||
|
MOV ZERO, A5
|
||||||
|
MOV trap+0(FP), A7 // syscall entry
|
||||||
|
ECALL
|
||||||
|
MOV A0, r1+32(FP)
|
||||||
|
MOV A1, r2+40(FP)
|
||||||
|
RET
|
29
vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for arm64, OpenBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
89
vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
89
vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
@ -6,12 +6,97 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "syscall"
|
import "unsafe"
|
||||||
|
|
||||||
|
// readInt returns the size-bytes unsigned integer in native byte order at offset off.
|
||||||
|
func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
|
||||||
|
if len(b) < int(off+size) {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
if isBigEndian {
|
||||||
|
return readIntBE(b[off:], size), true
|
||||||
|
}
|
||||||
|
return readIntLE(b[off:], size), true
|
||||||
|
}
|
||||||
|
|
||||||
|
func readIntBE(b []byte, size uintptr) uint64 {
|
||||||
|
switch size {
|
||||||
|
case 1:
|
||||||
|
return uint64(b[0])
|
||||||
|
case 2:
|
||||||
|
_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[1]) | uint64(b[0])<<8
|
||||||
|
case 4:
|
||||||
|
_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[3]) | uint64(b[2])<<8 | uint64(b[1])<<16 | uint64(b[0])<<24
|
||||||
|
case 8:
|
||||||
|
_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 |
|
||||||
|
uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56
|
||||||
|
default:
|
||||||
|
panic("syscall: readInt with unsupported size")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func readIntLE(b []byte, size uintptr) uint64 {
|
||||||
|
switch size {
|
||||||
|
case 1:
|
||||||
|
return uint64(b[0])
|
||||||
|
case 2:
|
||||||
|
_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8
|
||||||
|
case 4:
|
||||||
|
_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24
|
||||||
|
case 8:
|
||||||
|
_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 |
|
||||||
|
uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
|
||||||
|
default:
|
||||||
|
panic("syscall: readInt with unsupported size")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ParseDirent parses up to max directory entries in buf,
|
// ParseDirent parses up to max directory entries in buf,
|
||||||
// appending the names to names. It returns the number of
|
// appending the names to names. It returns the number of
|
||||||
// bytes consumed from buf, the number of entries added
|
// bytes consumed from buf, the number of entries added
|
||||||
// to names, and the new names slice.
|
// to names, and the new names slice.
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
||||||
return syscall.ParseDirent(buf, max, names)
|
origlen := len(buf)
|
||||||
|
count = 0
|
||||||
|
for max != 0 && len(buf) > 0 {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok || reclen > uint64(len(buf)) {
|
||||||
|
return origlen, count, names
|
||||||
|
}
|
||||||
|
rec := buf[:reclen]
|
||||||
|
buf = buf[reclen:]
|
||||||
|
ino, ok := direntIno(rec)
|
||||||
|
if !ok {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if ino == 0 { // File absent in directory.
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
|
||||||
|
namlen, ok := direntNamlen(rec)
|
||||||
|
if !ok || namoff+namlen > uint64(len(rec)) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
name := rec[namoff : namoff+namlen]
|
||||||
|
for i, c := range name {
|
||||||
|
if c == 0 {
|
||||||
|
name = name[:i]
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Check for useless names before allocating a string.
|
||||||
|
if string(name) == "." || string(name) == ".." {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
max--
|
||||||
|
count++
|
||||||
|
names = append(names, string(name))
|
||||||
|
}
|
||||||
|
return origlen - len(buf), count, names
|
||||||
}
|
}
|
||||||
|
29
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
29
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
@ -105,25 +105,25 @@ dragonfly_amd64)
|
|||||||
freebsd_386)
|
freebsd_386)
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="go run mksyscall.go -l32"
|
mksyscall="go run mksyscall.go -l32"
|
||||||
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'"
|
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
freebsd_amd64)
|
freebsd_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'"
|
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
freebsd_arm)
|
freebsd_arm)
|
||||||
mkerrors="$mkerrors"
|
mkerrors="$mkerrors"
|
||||||
mksyscall="go run mksyscall.go -l32 -arm"
|
mksyscall="go run mksyscall.go -l32 -arm"
|
||||||
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'"
|
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
|
||||||
# Let the type of C char be signed for making the bare syscall
|
# Let the type of C char be signed for making the bare syscall
|
||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
freebsd_arm64)
|
freebsd_arm64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master'"
|
mksysnum="go run mksysnum.go 'https://svn.freebsd.org/base/stable/11/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
netbsd_386)
|
netbsd_386)
|
||||||
@ -146,24 +146,39 @@ netbsd_arm)
|
|||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
|
netbsd_arm64)
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
mksyscall="go run mksyscall.go -netbsd"
|
||||||
|
mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
|
;;
|
||||||
openbsd_386)
|
openbsd_386)
|
||||||
mkerrors="$mkerrors -m32"
|
mkerrors="$mkerrors -m32"
|
||||||
mksyscall="go run mksyscall.go -l32 -openbsd"
|
mksyscall="go run mksyscall.go -l32 -openbsd"
|
||||||
mksysctl="./mksysctl_openbsd.pl"
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
openbsd_amd64)
|
openbsd_amd64)
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksyscall="go run mksyscall.go -openbsd"
|
mksyscall="go run mksyscall.go -openbsd"
|
||||||
mksysctl="./mksysctl_openbsd.pl"
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||||
;;
|
;;
|
||||||
openbsd_arm)
|
openbsd_arm)
|
||||||
mkerrors="$mkerrors"
|
mkerrors="$mkerrors"
|
||||||
mksyscall="go run mksyscall.go -l32 -openbsd -arm"
|
mksyscall="go run mksyscall.go -l32 -openbsd -arm"
|
||||||
mksysctl="./mksysctl_openbsd.pl"
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
|
# Let the type of C char be signed for making the bare syscall
|
||||||
|
# API consistent across platforms.
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
|
;;
|
||||||
|
openbsd_arm64)
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
mksyscall="go run mksyscall.go -openbsd"
|
||||||
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
||||||
# Let the type of C char be signed for making the bare syscall
|
# Let the type of C char be signed for making the bare syscall
|
||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
|
11
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
11
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
@ -182,6 +182,8 @@ struct ltchars {
|
|||||||
#include <sys/signalfd.h>
|
#include <sys/signalfd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/xattr.h>
|
#include <sys/xattr.h>
|
||||||
|
#include <linux/bpf.h>
|
||||||
|
#include <linux/capability.h>
|
||||||
#include <linux/errqueue.h>
|
#include <linux/errqueue.h>
|
||||||
#include <linux/if.h>
|
#include <linux/if.h>
|
||||||
#include <linux/if_alg.h>
|
#include <linux/if_alg.h>
|
||||||
@ -197,6 +199,7 @@ struct ltchars {
|
|||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <linux/kexec.h>
|
#include <linux/kexec.h>
|
||||||
#include <linux/keyctl.h>
|
#include <linux/keyctl.h>
|
||||||
|
#include <linux/loop.h>
|
||||||
#include <linux/magic.h>
|
#include <linux/magic.h>
|
||||||
#include <linux/memfd.h>
|
#include <linux/memfd.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
@ -222,6 +225,7 @@ struct ltchars {
|
|||||||
#include <linux/hdreg.h>
|
#include <linux/hdreg.h>
|
||||||
#include <linux/rtc.h>
|
#include <linux/rtc.h>
|
||||||
#include <linux/if_xdp.h>
|
#include <linux/if_xdp.h>
|
||||||
|
#include <linux/cryptouser.h>
|
||||||
#include <mtd/ubi-user.h>
|
#include <mtd/ubi-user.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
|
|
||||||
@ -432,7 +436,9 @@ ccflags="$@"
|
|||||||
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
||||||
$2 ~ /^IN_/ ||
|
$2 ~ /^IN_/ ||
|
||||||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
||||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
$2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
|
||||||
|
$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
|
||||||
|
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
||||||
$2 ~ /^TP_STATUS_/ ||
|
$2 ~ /^TP_STATUS_/ ||
|
||||||
$2 ~ /^FALLOC_/ ||
|
$2 ~ /^FALLOC_/ ||
|
||||||
$2 == "ICMPV6_FILTER" ||
|
$2 == "ICMPV6_FILTER" ||
|
||||||
@ -465,7 +471,7 @@ ccflags="$@"
|
|||||||
$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
|
$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
|
||||||
$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
|
$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
|
||||||
$2 ~ /^CLONE_[A-Z_]+/ ||
|
$2 ~ /^CLONE_[A-Z_]+/ ||
|
||||||
$2 !~ /^(BPF_TIMEVAL)$/ &&
|
$2 !~ /^(BPF_TIMEVAL|BPF_FIB_LOOKUP_[A-Z]+)$/ &&
|
||||||
$2 ~ /^(BPF|DLT)_/ ||
|
$2 ~ /^(BPF|DLT)_/ ||
|
||||||
$2 ~ /^(CLOCK|TIMER)_/ ||
|
$2 ~ /^(CLOCK|TIMER)_/ ||
|
||||||
$2 ~ /^CAN_/ ||
|
$2 ~ /^CAN_/ ||
|
||||||
@ -499,6 +505,7 @@ ccflags="$@"
|
|||||||
$2 ~ /^NFN/ ||
|
$2 ~ /^NFN/ ||
|
||||||
$2 ~ /^XDP_/ ||
|
$2 ~ /^XDP_/ ||
|
||||||
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
||||||
|
$2 ~ /^CRYPTO_/ ||
|
||||||
$2 !~ "WMESGLEN" &&
|
$2 !~ "WMESGLEN" &&
|
||||||
$2 ~ /^W[A-Z0-9]+$/ ||
|
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||||
$2 ~/^PPPIOC/ ||
|
$2 ~/^PPPIOC/ ||
|
||||||
|
20
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
20
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
@ -42,9 +42,16 @@ func main() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if goos == "aix" {
|
||||||
|
// Replace type of Atim, Mtim and Ctim by Timespec in Stat_t
|
||||||
|
// to avoid having both StTimespec and Timespec.
|
||||||
|
sttimespec := regexp.MustCompile(`_Ctype_struct_st_timespec`)
|
||||||
|
b = sttimespec.ReplaceAll(b, []byte("Timespec"))
|
||||||
|
}
|
||||||
|
|
||||||
// Intentionally export __val fields in Fsid and Sigset_t
|
// Intentionally export __val fields in Fsid and Sigset_t
|
||||||
valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__val(\s+\S+\s+)}`)
|
valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__(bits|val)(\s+\S+\s+)}`)
|
||||||
b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$3}"))
|
b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$4}"))
|
||||||
|
|
||||||
// Intentionally export __fds_bits field in FdSet
|
// Intentionally export __fds_bits field in FdSet
|
||||||
fdSetRegex := regexp.MustCompile(`type (FdSet) struct {(\s+)X__fds_bits(\s+\S+\s+)}`)
|
fdSetRegex := regexp.MustCompile(`type (FdSet) struct {(\s+)X__fds_bits(\s+\S+\s+)}`)
|
||||||
@ -96,6 +103,15 @@ func main() {
|
|||||||
cgoCommandRegex := regexp.MustCompile(`(cgo -godefs .*)`)
|
cgoCommandRegex := regexp.MustCompile(`(cgo -godefs .*)`)
|
||||||
b = cgoCommandRegex.ReplaceAll(b, []byte(replacement))
|
b = cgoCommandRegex.ReplaceAll(b, []byte(replacement))
|
||||||
|
|
||||||
|
// Rename Stat_t time fields
|
||||||
|
if goos == "freebsd" && goarch == "386" {
|
||||||
|
// Hide Stat_t.[AMCB]tim_ext fields
|
||||||
|
renameStatTimeExtFieldsRegex := regexp.MustCompile(`[AMCB]tim_ext`)
|
||||||
|
b = renameStatTimeExtFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
|
}
|
||||||
|
renameStatTimeFieldsRegex := regexp.MustCompile(`([AMCB])(?:irth)?time?(?:spec)?\s+(Timespec|StTimespec)`)
|
||||||
|
b = renameStatTimeFieldsRegex.ReplaceAll(b, []byte("${1}tim ${2}"))
|
||||||
|
|
||||||
// gofmt
|
// gofmt
|
||||||
b, err = format.Source(b)
|
b, err = format.Source(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
355
vendor/golang.org/x/sys/unix/mksysctl_openbsd.go
generated
vendored
Normal file
355
vendor/golang.org/x/sys/unix/mksysctl_openbsd.go
generated
vendored
Normal file
@ -0,0 +1,355 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build ignore
|
||||||
|
|
||||||
|
// Parse the header files for OpenBSD and generate a Go usable sysctl MIB.
|
||||||
|
//
|
||||||
|
// Build a MIB with each entry being an array containing the level, type and
|
||||||
|
// a hash that will contain additional entries if the current entry is a node.
|
||||||
|
// We then walk this MIB and create a flattened sysctl name to OID hash.
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"regexp"
|
||||||
|
"sort"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
goos, goarch string
|
||||||
|
)
|
||||||
|
|
||||||
|
// cmdLine returns this programs's commandline arguments.
|
||||||
|
func cmdLine() string {
|
||||||
|
return "go run mksysctl_openbsd.go " + strings.Join(os.Args[1:], " ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// buildTags returns build tags.
|
||||||
|
func buildTags() string {
|
||||||
|
return fmt.Sprintf("%s,%s", goarch, goos)
|
||||||
|
}
|
||||||
|
|
||||||
|
// reMatch performs regular expression match and stores the substring slice to value pointed by m.
|
||||||
|
func reMatch(re *regexp.Regexp, str string, m *[]string) bool {
|
||||||
|
*m = re.FindStringSubmatch(str)
|
||||||
|
if *m != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type nodeElement struct {
|
||||||
|
n int
|
||||||
|
t string
|
||||||
|
pE *map[string]nodeElement
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
debugEnabled bool
|
||||||
|
mib map[string]nodeElement
|
||||||
|
node *map[string]nodeElement
|
||||||
|
nodeMap map[string]string
|
||||||
|
sysCtl []string
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
ctlNames1RE = regexp.MustCompile(`^#define\s+(CTL_NAMES)\s+{`)
|
||||||
|
ctlNames2RE = regexp.MustCompile(`^#define\s+(CTL_(.*)_NAMES)\s+{`)
|
||||||
|
ctlNames3RE = regexp.MustCompile(`^#define\s+((.*)CTL_NAMES)\s+{`)
|
||||||
|
netInetRE = regexp.MustCompile(`^netinet/`)
|
||||||
|
netInet6RE = regexp.MustCompile(`^netinet6/`)
|
||||||
|
netRE = regexp.MustCompile(`^net/`)
|
||||||
|
bracesRE = regexp.MustCompile(`{.*}`)
|
||||||
|
ctlTypeRE = regexp.MustCompile(`{\s+"(\w+)",\s+(CTLTYPE_[A-Z]+)\s+}`)
|
||||||
|
fsNetKernRE = regexp.MustCompile(`^(fs|net|kern)_`)
|
||||||
|
)
|
||||||
|
|
||||||
|
func debug(s string) {
|
||||||
|
if debugEnabled {
|
||||||
|
fmt.Fprintln(os.Stderr, s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Walk the MIB and build a sysctl name to OID mapping.
|
||||||
|
func buildSysctl(pNode *map[string]nodeElement, name string, oid []int) {
|
||||||
|
lNode := pNode // local copy of pointer to node
|
||||||
|
var keys []string
|
||||||
|
for k := range *lNode {
|
||||||
|
keys = append(keys, k)
|
||||||
|
}
|
||||||
|
sort.Strings(keys)
|
||||||
|
|
||||||
|
for _, key := range keys {
|
||||||
|
nodename := name
|
||||||
|
if name != "" {
|
||||||
|
nodename += "."
|
||||||
|
}
|
||||||
|
nodename += key
|
||||||
|
|
||||||
|
nodeoid := append(oid, (*pNode)[key].n)
|
||||||
|
|
||||||
|
if (*pNode)[key].t == `CTLTYPE_NODE` {
|
||||||
|
if _, ok := nodeMap[nodename]; ok {
|
||||||
|
lNode = &mib
|
||||||
|
ctlName := nodeMap[nodename]
|
||||||
|
for _, part := range strings.Split(ctlName, ".") {
|
||||||
|
lNode = ((*lNode)[part]).pE
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
lNode = (*pNode)[key].pE
|
||||||
|
}
|
||||||
|
buildSysctl(lNode, nodename, nodeoid)
|
||||||
|
} else if (*pNode)[key].t != "" {
|
||||||
|
oidStr := []string{}
|
||||||
|
for j := range nodeoid {
|
||||||
|
oidStr = append(oidStr, fmt.Sprintf("%d", nodeoid[j]))
|
||||||
|
}
|
||||||
|
text := "\t{ \"" + nodename + "\", []_C_int{ " + strings.Join(oidStr, ", ") + " } }, \n"
|
||||||
|
sysCtl = append(sysCtl, text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
// Get the OS (using GOOS_TARGET if it exist)
|
||||||
|
goos = os.Getenv("GOOS_TARGET")
|
||||||
|
if goos == "" {
|
||||||
|
goos = os.Getenv("GOOS")
|
||||||
|
}
|
||||||
|
// Get the architecture (using GOARCH_TARGET if it exists)
|
||||||
|
goarch = os.Getenv("GOARCH_TARGET")
|
||||||
|
if goarch == "" {
|
||||||
|
goarch = os.Getenv("GOARCH")
|
||||||
|
}
|
||||||
|
// Check if GOOS and GOARCH environment variables are defined
|
||||||
|
if goarch == "" || goos == "" {
|
||||||
|
fmt.Fprintf(os.Stderr, "GOARCH or GOOS not defined in environment\n")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
mib = make(map[string]nodeElement)
|
||||||
|
headers := [...]string{
|
||||||
|
`sys/sysctl.h`,
|
||||||
|
`sys/socket.h`,
|
||||||
|
`sys/tty.h`,
|
||||||
|
`sys/malloc.h`,
|
||||||
|
`sys/mount.h`,
|
||||||
|
`sys/namei.h`,
|
||||||
|
`sys/sem.h`,
|
||||||
|
`sys/shm.h`,
|
||||||
|
`sys/vmmeter.h`,
|
||||||
|
`uvm/uvmexp.h`,
|
||||||
|
`uvm/uvm_param.h`,
|
||||||
|
`uvm/uvm_swap_encrypt.h`,
|
||||||
|
`ddb/db_var.h`,
|
||||||
|
`net/if.h`,
|
||||||
|
`net/if_pfsync.h`,
|
||||||
|
`net/pipex.h`,
|
||||||
|
`netinet/in.h`,
|
||||||
|
`netinet/icmp_var.h`,
|
||||||
|
`netinet/igmp_var.h`,
|
||||||
|
`netinet/ip_ah.h`,
|
||||||
|
`netinet/ip_carp.h`,
|
||||||
|
`netinet/ip_divert.h`,
|
||||||
|
`netinet/ip_esp.h`,
|
||||||
|
`netinet/ip_ether.h`,
|
||||||
|
`netinet/ip_gre.h`,
|
||||||
|
`netinet/ip_ipcomp.h`,
|
||||||
|
`netinet/ip_ipip.h`,
|
||||||
|
`netinet/pim_var.h`,
|
||||||
|
`netinet/tcp_var.h`,
|
||||||
|
`netinet/udp_var.h`,
|
||||||
|
`netinet6/in6.h`,
|
||||||
|
`netinet6/ip6_divert.h`,
|
||||||
|
`netinet6/pim6_var.h`,
|
||||||
|
`netinet/icmp6.h`,
|
||||||
|
`netmpls/mpls.h`,
|
||||||
|
}
|
||||||
|
|
||||||
|
ctls := [...]string{
|
||||||
|
`kern`,
|
||||||
|
`vm`,
|
||||||
|
`fs`,
|
||||||
|
`net`,
|
||||||
|
//debug /* Special handling required */
|
||||||
|
`hw`,
|
||||||
|
//machdep /* Arch specific */
|
||||||
|
`user`,
|
||||||
|
`ddb`,
|
||||||
|
//vfs /* Special handling required */
|
||||||
|
`fs.posix`,
|
||||||
|
`kern.forkstat`,
|
||||||
|
`kern.intrcnt`,
|
||||||
|
`kern.malloc`,
|
||||||
|
`kern.nchstats`,
|
||||||
|
`kern.seminfo`,
|
||||||
|
`kern.shminfo`,
|
||||||
|
`kern.timecounter`,
|
||||||
|
`kern.tty`,
|
||||||
|
`kern.watchdog`,
|
||||||
|
`net.bpf`,
|
||||||
|
`net.ifq`,
|
||||||
|
`net.inet`,
|
||||||
|
`net.inet.ah`,
|
||||||
|
`net.inet.carp`,
|
||||||
|
`net.inet.divert`,
|
||||||
|
`net.inet.esp`,
|
||||||
|
`net.inet.etherip`,
|
||||||
|
`net.inet.gre`,
|
||||||
|
`net.inet.icmp`,
|
||||||
|
`net.inet.igmp`,
|
||||||
|
`net.inet.ip`,
|
||||||
|
`net.inet.ip.ifq`,
|
||||||
|
`net.inet.ipcomp`,
|
||||||
|
`net.inet.ipip`,
|
||||||
|
`net.inet.mobileip`,
|
||||||
|
`net.inet.pfsync`,
|
||||||
|
`net.inet.pim`,
|
||||||
|
`net.inet.tcp`,
|
||||||
|
`net.inet.udp`,
|
||||||
|
`net.inet6`,
|
||||||
|
`net.inet6.divert`,
|
||||||
|
`net.inet6.ip6`,
|
||||||
|
`net.inet6.icmp6`,
|
||||||
|
`net.inet6.pim6`,
|
||||||
|
`net.inet6.tcp6`,
|
||||||
|
`net.inet6.udp6`,
|
||||||
|
`net.mpls`,
|
||||||
|
`net.mpls.ifq`,
|
||||||
|
`net.key`,
|
||||||
|
`net.pflow`,
|
||||||
|
`net.pfsync`,
|
||||||
|
`net.pipex`,
|
||||||
|
`net.rt`,
|
||||||
|
`vm.swapencrypt`,
|
||||||
|
//vfsgenctl /* Special handling required */
|
||||||
|
}
|
||||||
|
|
||||||
|
// Node name "fixups"
|
||||||
|
ctlMap := map[string]string{
|
||||||
|
"ipproto": "net.inet",
|
||||||
|
"net.inet.ipproto": "net.inet",
|
||||||
|
"net.inet6.ipv6proto": "net.inet6",
|
||||||
|
"net.inet6.ipv6": "net.inet6.ip6",
|
||||||
|
"net.inet.icmpv6": "net.inet6.icmp6",
|
||||||
|
"net.inet6.divert6": "net.inet6.divert",
|
||||||
|
"net.inet6.tcp6": "net.inet.tcp",
|
||||||
|
"net.inet6.udp6": "net.inet.udp",
|
||||||
|
"mpls": "net.mpls",
|
||||||
|
"swpenc": "vm.swapencrypt",
|
||||||
|
}
|
||||||
|
|
||||||
|
// Node mappings
|
||||||
|
nodeMap = map[string]string{
|
||||||
|
"net.inet.ip.ifq": "net.ifq",
|
||||||
|
"net.inet.pfsync": "net.pfsync",
|
||||||
|
"net.mpls.ifq": "net.ifq",
|
||||||
|
}
|
||||||
|
|
||||||
|
mCtls := make(map[string]bool)
|
||||||
|
for _, ctl := range ctls {
|
||||||
|
mCtls[ctl] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, header := range headers {
|
||||||
|
debug("Processing " + header)
|
||||||
|
file, err := os.Open(filepath.Join("/usr/include", header))
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
s := bufio.NewScanner(file)
|
||||||
|
for s.Scan() {
|
||||||
|
var sub []string
|
||||||
|
if reMatch(ctlNames1RE, s.Text(), &sub) ||
|
||||||
|
reMatch(ctlNames2RE, s.Text(), &sub) ||
|
||||||
|
reMatch(ctlNames3RE, s.Text(), &sub) {
|
||||||
|
if sub[1] == `CTL_NAMES` {
|
||||||
|
// Top level.
|
||||||
|
node = &mib
|
||||||
|
} else {
|
||||||
|
// Node.
|
||||||
|
nodename := strings.ToLower(sub[2])
|
||||||
|
ctlName := ""
|
||||||
|
if reMatch(netInetRE, header, &sub) {
|
||||||
|
ctlName = "net.inet." + nodename
|
||||||
|
} else if reMatch(netInet6RE, header, &sub) {
|
||||||
|
ctlName = "net.inet6." + nodename
|
||||||
|
} else if reMatch(netRE, header, &sub) {
|
||||||
|
ctlName = "net." + nodename
|
||||||
|
} else {
|
||||||
|
ctlName = nodename
|
||||||
|
ctlName = fsNetKernRE.ReplaceAllString(ctlName, `$1.`)
|
||||||
|
}
|
||||||
|
|
||||||
|
if val, ok := ctlMap[ctlName]; ok {
|
||||||
|
ctlName = val
|
||||||
|
}
|
||||||
|
if _, ok := mCtls[ctlName]; !ok {
|
||||||
|
debug("Ignoring " + ctlName + "...")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Walk down from the top of the MIB.
|
||||||
|
node = &mib
|
||||||
|
for _, part := range strings.Split(ctlName, ".") {
|
||||||
|
if _, ok := (*node)[part]; !ok {
|
||||||
|
debug("Missing node " + part)
|
||||||
|
(*node)[part] = nodeElement{n: 0, t: "", pE: &map[string]nodeElement{}}
|
||||||
|
}
|
||||||
|
node = (*node)[part].pE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Populate current node with entries.
|
||||||
|
i := -1
|
||||||
|
for !strings.HasPrefix(s.Text(), "}") {
|
||||||
|
s.Scan()
|
||||||
|
if reMatch(bracesRE, s.Text(), &sub) {
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
if !reMatch(ctlTypeRE, s.Text(), &sub) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
(*node)[sub[1]] = nodeElement{n: i, t: sub[2], pE: &map[string]nodeElement{}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err = s.Err()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
file.Close()
|
||||||
|
}
|
||||||
|
buildSysctl(&mib, "", []int{})
|
||||||
|
|
||||||
|
sort.Strings(sysCtl)
|
||||||
|
text := strings.Join(sysCtl, "")
|
||||||
|
|
||||||
|
fmt.Printf(srcTemplate, cmdLine(), buildTags(), text)
|
||||||
|
}
|
||||||
|
|
||||||
|
const srcTemplate = `// %s
|
||||||
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build %s
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
type mibentry struct {
|
||||||
|
ctlname string
|
||||||
|
ctloid []_C_int
|
||||||
|
}
|
||||||
|
|
||||||
|
var sysctlMib = []mibentry {
|
||||||
|
%s
|
||||||
|
}
|
||||||
|
`
|
265
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
265
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
@ -1,265 +0,0 @@
|
|||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
# Copyright 2011 The Go Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
#
|
|
||||||
# Parse the header files for OpenBSD and generate a Go usable sysctl MIB.
|
|
||||||
#
|
|
||||||
# Build a MIB with each entry being an array containing the level, type and
|
|
||||||
# a hash that will contain additional entries if the current entry is a node.
|
|
||||||
# We then walk this MIB and create a flattened sysctl name to OID hash.
|
|
||||||
#
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
|
|
||||||
if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
|
|
||||||
print STDERR "GOARCH or GOOS not defined in environment\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $debug = 0;
|
|
||||||
my %ctls = ();
|
|
||||||
|
|
||||||
my @headers = qw (
|
|
||||||
sys/sysctl.h
|
|
||||||
sys/socket.h
|
|
||||||
sys/tty.h
|
|
||||||
sys/malloc.h
|
|
||||||
sys/mount.h
|
|
||||||
sys/namei.h
|
|
||||||
sys/sem.h
|
|
||||||
sys/shm.h
|
|
||||||
sys/vmmeter.h
|
|
||||||
uvm/uvmexp.h
|
|
||||||
uvm/uvm_param.h
|
|
||||||
uvm/uvm_swap_encrypt.h
|
|
||||||
ddb/db_var.h
|
|
||||||
net/if.h
|
|
||||||
net/if_pfsync.h
|
|
||||||
net/pipex.h
|
|
||||||
netinet/in.h
|
|
||||||
netinet/icmp_var.h
|
|
||||||
netinet/igmp_var.h
|
|
||||||
netinet/ip_ah.h
|
|
||||||
netinet/ip_carp.h
|
|
||||||
netinet/ip_divert.h
|
|
||||||
netinet/ip_esp.h
|
|
||||||
netinet/ip_ether.h
|
|
||||||
netinet/ip_gre.h
|
|
||||||
netinet/ip_ipcomp.h
|
|
||||||
netinet/ip_ipip.h
|
|
||||||
netinet/pim_var.h
|
|
||||||
netinet/tcp_var.h
|
|
||||||
netinet/udp_var.h
|
|
||||||
netinet6/in6.h
|
|
||||||
netinet6/ip6_divert.h
|
|
||||||
netinet6/pim6_var.h
|
|
||||||
netinet/icmp6.h
|
|
||||||
netmpls/mpls.h
|
|
||||||
);
|
|
||||||
|
|
||||||
my @ctls = qw (
|
|
||||||
kern
|
|
||||||
vm
|
|
||||||
fs
|
|
||||||
net
|
|
||||||
#debug # Special handling required
|
|
||||||
hw
|
|
||||||
#machdep # Arch specific
|
|
||||||
user
|
|
||||||
ddb
|
|
||||||
#vfs # Special handling required
|
|
||||||
fs.posix
|
|
||||||
kern.forkstat
|
|
||||||
kern.intrcnt
|
|
||||||
kern.malloc
|
|
||||||
kern.nchstats
|
|
||||||
kern.seminfo
|
|
||||||
kern.shminfo
|
|
||||||
kern.timecounter
|
|
||||||
kern.tty
|
|
||||||
kern.watchdog
|
|
||||||
net.bpf
|
|
||||||
net.ifq
|
|
||||||
net.inet
|
|
||||||
net.inet.ah
|
|
||||||
net.inet.carp
|
|
||||||
net.inet.divert
|
|
||||||
net.inet.esp
|
|
||||||
net.inet.etherip
|
|
||||||
net.inet.gre
|
|
||||||
net.inet.icmp
|
|
||||||
net.inet.igmp
|
|
||||||
net.inet.ip
|
|
||||||
net.inet.ip.ifq
|
|
||||||
net.inet.ipcomp
|
|
||||||
net.inet.ipip
|
|
||||||
net.inet.mobileip
|
|
||||||
net.inet.pfsync
|
|
||||||
net.inet.pim
|
|
||||||
net.inet.tcp
|
|
||||||
net.inet.udp
|
|
||||||
net.inet6
|
|
||||||
net.inet6.divert
|
|
||||||
net.inet6.ip6
|
|
||||||
net.inet6.icmp6
|
|
||||||
net.inet6.pim6
|
|
||||||
net.inet6.tcp6
|
|
||||||
net.inet6.udp6
|
|
||||||
net.mpls
|
|
||||||
net.mpls.ifq
|
|
||||||
net.key
|
|
||||||
net.pflow
|
|
||||||
net.pfsync
|
|
||||||
net.pipex
|
|
||||||
net.rt
|
|
||||||
vm.swapencrypt
|
|
||||||
#vfsgenctl # Special handling required
|
|
||||||
);
|
|
||||||
|
|
||||||
# Node name "fixups"
|
|
||||||
my %ctl_map = (
|
|
||||||
"ipproto" => "net.inet",
|
|
||||||
"net.inet.ipproto" => "net.inet",
|
|
||||||
"net.inet6.ipv6proto" => "net.inet6",
|
|
||||||
"net.inet6.ipv6" => "net.inet6.ip6",
|
|
||||||
"net.inet.icmpv6" => "net.inet6.icmp6",
|
|
||||||
"net.inet6.divert6" => "net.inet6.divert",
|
|
||||||
"net.inet6.tcp6" => "net.inet.tcp",
|
|
||||||
"net.inet6.udp6" => "net.inet.udp",
|
|
||||||
"mpls" => "net.mpls",
|
|
||||||
"swpenc" => "vm.swapencrypt"
|
|
||||||
);
|
|
||||||
|
|
||||||
# Node mappings
|
|
||||||
my %node_map = (
|
|
||||||
"net.inet.ip.ifq" => "net.ifq",
|
|
||||||
"net.inet.pfsync" => "net.pfsync",
|
|
||||||
"net.mpls.ifq" => "net.ifq"
|
|
||||||
);
|
|
||||||
|
|
||||||
my $ctlname;
|
|
||||||
my %mib = ();
|
|
||||||
my %sysctl = ();
|
|
||||||
my $node;
|
|
||||||
|
|
||||||
sub debug() {
|
|
||||||
print STDERR "$_[0]\n" if $debug;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Walk the MIB and build a sysctl name to OID mapping.
|
|
||||||
sub build_sysctl() {
|
|
||||||
my ($node, $name, $oid) = @_;
|
|
||||||
my %node = %{$node};
|
|
||||||
my @oid = @{$oid};
|
|
||||||
|
|
||||||
foreach my $key (sort keys %node) {
|
|
||||||
my @node = @{$node{$key}};
|
|
||||||
my $nodename = $name.($name ne '' ? '.' : '').$key;
|
|
||||||
my @nodeoid = (@oid, $node[0]);
|
|
||||||
if ($node[1] eq 'CTLTYPE_NODE') {
|
|
||||||
if (exists $node_map{$nodename}) {
|
|
||||||
$node = \%mib;
|
|
||||||
$ctlname = $node_map{$nodename};
|
|
||||||
foreach my $part (split /\./, $ctlname) {
|
|
||||||
$node = \%{@{$$node{$part}}[2]};
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$node = $node[2];
|
|
||||||
}
|
|
||||||
&build_sysctl($node, $nodename, \@nodeoid);
|
|
||||||
} elsif ($node[1] ne '') {
|
|
||||||
$sysctl{$nodename} = \@nodeoid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach my $ctl (@ctls) {
|
|
||||||
$ctls{$ctl} = $ctl;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Build MIB
|
|
||||||
foreach my $header (@headers) {
|
|
||||||
&debug("Processing $header...");
|
|
||||||
open HEADER, "/usr/include/$header" ||
|
|
||||||
print STDERR "Failed to open $header\n";
|
|
||||||
while (<HEADER>) {
|
|
||||||
if ($_ =~ /^#define\s+(CTL_NAMES)\s+{/ ||
|
|
||||||
$_ =~ /^#define\s+(CTL_(.*)_NAMES)\s+{/ ||
|
|
||||||
$_ =~ /^#define\s+((.*)CTL_NAMES)\s+{/) {
|
|
||||||
if ($1 eq 'CTL_NAMES') {
|
|
||||||
# Top level.
|
|
||||||
$node = \%mib;
|
|
||||||
} else {
|
|
||||||
# Node.
|
|
||||||
my $nodename = lc($2);
|
|
||||||
if ($header =~ /^netinet\//) {
|
|
||||||
$ctlname = "net.inet.$nodename";
|
|
||||||
} elsif ($header =~ /^netinet6\//) {
|
|
||||||
$ctlname = "net.inet6.$nodename";
|
|
||||||
} elsif ($header =~ /^net\//) {
|
|
||||||
$ctlname = "net.$nodename";
|
|
||||||
} else {
|
|
||||||
$ctlname = "$nodename";
|
|
||||||
$ctlname =~ s/^(fs|net|kern)_/$1\./;
|
|
||||||
}
|
|
||||||
if (exists $ctl_map{$ctlname}) {
|
|
||||||
$ctlname = $ctl_map{$ctlname};
|
|
||||||
}
|
|
||||||
if (not exists $ctls{$ctlname}) {
|
|
||||||
&debug("Ignoring $ctlname...");
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Walk down from the top of the MIB.
|
|
||||||
$node = \%mib;
|
|
||||||
foreach my $part (split /\./, $ctlname) {
|
|
||||||
if (not exists $$node{$part}) {
|
|
||||||
&debug("Missing node $part");
|
|
||||||
$$node{$part} = [ 0, '', {} ];
|
|
||||||
}
|
|
||||||
$node = \%{@{$$node{$part}}[2]};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Populate current node with entries.
|
|
||||||
my $i = -1;
|
|
||||||
while (defined($_) && $_ !~ /^}/) {
|
|
||||||
$_ = <HEADER>;
|
|
||||||
$i++ if $_ =~ /{.*}/;
|
|
||||||
next if $_ !~ /{\s+"(\w+)",\s+(CTLTYPE_[A-Z]+)\s+}/;
|
|
||||||
$$node{$1} = [ $i, $2, {} ];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
close HEADER;
|
|
||||||
}
|
|
||||||
|
|
||||||
&build_sysctl(\%mib, "", []);
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
// mksysctl_openbsd.pl
|
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
|
||||||
|
|
||||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
|
||||||
|
|
||||||
package unix;
|
|
||||||
|
|
||||||
type mibentry struct {
|
|
||||||
ctlname string
|
|
||||||
ctloid []_C_int
|
|
||||||
}
|
|
||||||
|
|
||||||
var sysctlMib = []mibentry {
|
|
||||||
EOF
|
|
||||||
|
|
||||||
foreach my $name (sort keys %sysctl) {
|
|
||||||
my @oid = @{$sysctl{$name}};
|
|
||||||
print "\t{ \"$name\", []_C_int{ ", join(', ', @oid), " } }, \n";
|
|
||||||
}
|
|
||||||
|
|
||||||
print <<EOF;
|
|
||||||
}
|
|
||||||
EOF
|
|
2
vendor/golang.org/x/sys/unix/mksysnum.go
generated
vendored
2
vendor/golang.org/x/sys/unix/mksysnum.go
generated
vendored
@ -139,7 +139,7 @@ func main() {
|
|||||||
text += format(name, num, proto)
|
text += format(name, num, proto)
|
||||||
}
|
}
|
||||||
case "freebsd":
|
case "freebsd":
|
||||||
if t.Match(`^([0-9]+)\s+\S+\s+(?:NO)?STD\s+({ \S+\s+(\w+).*)$`) {
|
if t.Match(`^([0-9]+)\s+\S+\s+(?:(?:NO)?STD|COMPAT10)\s+({ \S+\s+(\w+).*)$`) {
|
||||||
num, proto := t.sub[1], t.sub[2]
|
num, proto := t.sub[1], t.sub[2]
|
||||||
name := fmt.Sprintf("SYS_%s", t.sub[3])
|
name := fmt.Sprintf("SYS_%s", t.sub[3])
|
||||||
text += format(name, num, proto)
|
text += format(name, num, proto)
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build openbsd
|
|
||||||
// +build 386 amd64 arm
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
12
vendor/golang.org/x/sys/unix/readdirent_getdents.go
generated
vendored
Normal file
12
vendor/golang.org/x/sys/unix/readdirent_getdents.go
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build aix dragonfly freebsd linux netbsd openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
// ReadDirent reads directory entries from fd and writes them into buf.
|
||||||
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
|
return Getdents(fd, buf)
|
||||||
|
}
|
19
vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
generated
vendored
Normal file
19
vendor/golang.org/x/sys/unix/readdirent_getdirentries.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
// ReadDirent reads directory entries from fd and writes them into buf.
|
||||||
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
|
// Final argument is (basep *uintptr) and the syscall doesn't take nil.
|
||||||
|
// 64 bits should be enough. (32 bits isn't even on 386). Since the
|
||||||
|
// actual system call is getdirentries64, 64 is a good guess.
|
||||||
|
// TODO(rsc): Can we use a single global basep for all calls?
|
||||||
|
var base = (*uintptr)(unsafe.Pointer(new(uint64)))
|
||||||
|
return Getdirentries(fd, buf, base)
|
||||||
|
}
|
8
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
8
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
@ -21,10 +21,10 @@ func cmsgAlignOf(salen int) int {
|
|||||||
case "aix":
|
case "aix":
|
||||||
// There is no alignment on AIX.
|
// There is no alignment on AIX.
|
||||||
salign = 1
|
salign = 1
|
||||||
case "darwin", "dragonfly", "solaris":
|
case "darwin", "dragonfly", "solaris", "illumos":
|
||||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
// NOTE: It seems like 64-bit Darwin, DragonFly BSD,
|
||||||
// Solaris kernels still require 32-bit aligned access to
|
// illumos, and Solaris kernels still require 32-bit
|
||||||
// network subsystem.
|
// aligned access to network subsystem.
|
||||||
if SizeofPtr == 8 {
|
if SizeofPtr == 8 {
|
||||||
salign = 4
|
salign = 4
|
||||||
}
|
}
|
||||||
|
1
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
@ -50,5 +50,4 @@ func BytePtrFromString(s string) (*byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
||||||
// See mkunix.pl.
|
|
||||||
var _zero uintptr
|
var _zero uintptr
|
||||||
|
26
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
26
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
@ -280,8 +280,24 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
return -1, ENOSYS
|
return -1, ENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
|
}
|
||||||
|
|
||||||
//sys getdirent(fd int, buf []byte) (n int, err error)
|
//sys getdirent(fd int, buf []byte) (n int, err error)
|
||||||
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
return getdirent(fd, buf)
|
return getdirent(fd, buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -454,8 +470,8 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|||||||
//sys Dup2(oldfd int, newfd int) (err error)
|
//sys Dup2(oldfd int, newfd int) (err error)
|
||||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = posix_fadvise64
|
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = posix_fadvise64
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys fstat(fd int, stat *Stat_t) (err error)
|
||||||
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = fstatat
|
//sys fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = fstatat
|
||||||
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
//sys Fstatfs(fd int, buf *Statfs_t) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
@ -464,7 +480,7 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|||||||
//sysnb Getuid() (uid int)
|
//sysnb Getuid() (uid int)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Listen(s int, n int) (err error)
|
//sys Listen(s int, n int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Pause() (err error)
|
//sys Pause() (err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = pread64
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = pread64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = pwrite64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = pwrite64
|
||||||
@ -474,7 +490,7 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys stat(path string, statptr *Stat_t) (err error)
|
||||||
//sys Statfs(path string, buf *Statfs_t) (err error)
|
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
|
|
||||||
|
16
vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
generated
vendored
16
vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
generated
vendored
@ -32,3 +32,19 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
|||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Fstat(fd int, stat *Stat_t) error {
|
||||||
|
return fstat(fd, stat)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatat(dirfd int, path string, stat *Stat_t, flags int) error {
|
||||||
|
return fstatat(dirfd, path, stat, flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lstat(path string, stat *Stat_t) error {
|
||||||
|
return lstat(path, stat)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Stat(path string, statptr *Stat_t) error {
|
||||||
|
return stat(path, statptr)
|
||||||
|
}
|
||||||
|
47
vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
generated
vendored
47
vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go
generated
vendored
@ -32,3 +32,50 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
|||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In order to only have Timespec structure, type of Stat_t's fields
|
||||||
|
// Atim, Mtim and Ctim is changed from StTimespec to Timespec during
|
||||||
|
// ztypes generation.
|
||||||
|
// On ppc64, Timespec.Nsec is an int64 while StTimespec.Nsec is an
|
||||||
|
// int32, so the fields' value must be modified.
|
||||||
|
func fixStatTimFields(stat *Stat_t) {
|
||||||
|
stat.Atim.Nsec >>= 32
|
||||||
|
stat.Mtim.Nsec >>= 32
|
||||||
|
stat.Ctim.Nsec >>= 32
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstat(fd int, stat *Stat_t) error {
|
||||||
|
err := fstat(fd, stat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fixStatTimFields(stat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatat(dirfd int, path string, stat *Stat_t, flags int) error {
|
||||||
|
err := fstatat(dirfd, path, stat, flags)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fixStatTimFields(stat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lstat(path string, stat *Stat_t) error {
|
||||||
|
err := lstat(path, stat)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fixStatTimFields(stat)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Stat(path string, statptr *Stat_t) error {
|
||||||
|
err := stat(path, statptr)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fixStatTimFields(statptr)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
12
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
@ -63,15 +63,6 @@ func Setgroups(gids []int) (err error) {
|
|||||||
return setgroups(len(a), &a[0])
|
return setgroups(len(a), &a[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
|
||||||
// Final argument is (basep *uintptr) and the syscall doesn't take nil.
|
|
||||||
// 64 bits should be enough. (32 bits isn't even on 386). Since the
|
|
||||||
// actual system call is getdirentries64, 64 is a good guess.
|
|
||||||
// TODO(rsc): Can we use a single global basep for all calls?
|
|
||||||
var base = (*uintptr)(unsafe.Pointer(new(uint64)))
|
|
||||||
return Getdirentries(fd, buf, base)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Wait status is 7 bits at bottom, either 0 (exited),
|
// Wait status is 7 bits at bottom, either 0 (exited),
|
||||||
// 0x7F (stopped), or a signal number that caused an exit.
|
// 0x7F (stopped), or a signal number that caused an exit.
|
||||||
// The 0x80 bit is whether there was a core dump.
|
// The 0x80 bit is whether there was a core dump.
|
||||||
@ -86,6 +77,7 @@ const (
|
|||||||
shift = 8
|
shift = 8
|
||||||
|
|
||||||
exited = 0
|
exited = 0
|
||||||
|
killed = 9
|
||||||
stopped = 0x7F
|
stopped = 0x7F
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -112,6 +104,8 @@ func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 }
|
|||||||
|
|
||||||
func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP }
|
func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP }
|
||||||
|
|
||||||
|
func (w WaitStatus) Killed() bool { return w&mask == killed && syscall.Signal(w>>shift) != SIGKILL }
|
||||||
|
|
||||||
func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP }
|
func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP }
|
||||||
|
|
||||||
func (w WaitStatus) StopSignal() syscall.Signal {
|
func (w WaitStatus) StopSignal() syscall.Signal {
|
||||||
|
12
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@ -77,6 +77,18 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||||
func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
|
func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
|
||||||
func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
|
func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
|
||||||
|
17
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
17
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@ -57,6 +57,22 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
namlen, ok := direntNamlen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return (16 + namlen + 1 + 7) &^ 7, true
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe() (r int, w int, err error)
|
//sysnb pipe() (r int, w int, err error)
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
@ -269,6 +285,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error)
|
||||||
//sys Fsync(fd int) (err error)
|
//sys Fsync(fd int) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
|
//sys Getdents(fd int, buf []byte) (n int, err error)
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
||||||
//sys Getdtablesize() (size int)
|
//sys Getdtablesize() (size int)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
|
96
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
96
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@ -82,6 +82,18 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
return Pipe2(p, 0)
|
return Pipe2(p, 0)
|
||||||
}
|
}
|
||||||
@ -362,7 +374,21 @@ func Getdents(fd int, buf []byte) (n int, err error) {
|
|||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
if supportsABI(_ino64First) {
|
if supportsABI(_ino64First) {
|
||||||
return getdirentries_freebsd12(fd, buf, basep)
|
if basep == nil || unsafe.Sizeof(*basep) == 8 {
|
||||||
|
return getdirentries_freebsd12(fd, buf, (*uint64)(unsafe.Pointer(basep)))
|
||||||
|
}
|
||||||
|
// The freebsd12 syscall needs a 64-bit base. On 32-bit machines
|
||||||
|
// we can't just use the basep passed in. See #32498.
|
||||||
|
var base uint64 = uint64(*basep)
|
||||||
|
n, err = getdirentries_freebsd12(fd, buf, &base)
|
||||||
|
*basep = uintptr(base)
|
||||||
|
if base>>32 != 0 {
|
||||||
|
// We can't stuff the base back into a uintptr, so any
|
||||||
|
// future calls would be suspect. Generate an error.
|
||||||
|
// EIO is allowed by getdirentries.
|
||||||
|
err = EIO
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// The old syscall entries are smaller than the new. Use 1/4 of the original
|
// The old syscall entries are smaller than the new. Use 1/4 of the original
|
||||||
@ -414,7 +440,7 @@ func (s *Stat_t) convertFrom(old *stat_freebsd11_t) {
|
|||||||
Atim: old.Atim,
|
Atim: old.Atim,
|
||||||
Mtim: old.Mtim,
|
Mtim: old.Mtim,
|
||||||
Ctim: old.Ctim,
|
Ctim: old.Ctim,
|
||||||
Birthtim: old.Birthtim,
|
Btim: old.Btim,
|
||||||
Size: old.Size,
|
Size: old.Size,
|
||||||
Blocks: old.Blocks,
|
Blocks: old.Blocks,
|
||||||
Blksize: old.Blksize,
|
Blksize: old.Blksize,
|
||||||
@ -507,6 +533,70 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
return sendfile(outfd, infd, offset, count)
|
return sendfile(outfd, infd, offset, count)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys ptrace(request int, pid int, addr uintptr, data int) (err error)
|
||||||
|
|
||||||
|
func PtraceAttach(pid int) (err error) {
|
||||||
|
return ptrace(PTRACE_ATTACH, pid, 0, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceCont(pid int, signal int) (err error) {
|
||||||
|
return ptrace(PTRACE_CONT, pid, 1, signal)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceDetach(pid int) (err error) {
|
||||||
|
return ptrace(PTRACE_DETACH, pid, 1, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) {
|
||||||
|
return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
||||||
|
return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceGetRegs(pid int, regsout *Reg) (err error) {
|
||||||
|
return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint(countin)}
|
||||||
|
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
|
return int(ioDesc.Len), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceLwpEvents(pid int, enable int) (err error) {
|
||||||
|
return ptrace(PTRACE_LWPEVENTS, pid, 0, enable)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceLwpInfo(pid int, info uintptr) (err error) {
|
||||||
|
return ptrace(PTRACE_LWPINFO, pid, info, int(unsafe.Sizeof(PtraceLwpInfoStruct{})))
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
|
||||||
|
return PtraceIO(PIOD_READ_D, pid, addr, out, SizeofLong)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) {
|
||||||
|
return PtraceIO(PIOD_READ_I, pid, addr, out, SizeofLong)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {
|
||||||
|
return PtraceIO(PIOD_WRITE_D, pid, addr, data, SizeofLong)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {
|
||||||
|
return PtraceIO(PIOD_WRITE_I, pid, addr, data, SizeofLong)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceSetRegs(pid int, regs *Reg) (err error) {
|
||||||
|
return ptrace(PTRACE_SETREGS, pid, uintptr(unsafe.Pointer(regs)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func PtraceSingleStep(pid int) (err error) {
|
||||||
|
return ptrace(PTRACE_SINGLESTEP, pid, 1, 0)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
@ -555,7 +645,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//sys Fsync(fd int) (err error)
|
//sys Fsync(fd int) (err error)
|
||||||
//sys Ftruncate(fd int, length int64) (err error)
|
//sys Ftruncate(fd int, length int64) (err error)
|
||||||
//sys getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
//sys getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error)
|
||||||
//sys getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error)
|
//sys getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error)
|
||||||
//sys Getdtablesize() (size int)
|
//sys Getdtablesize() (size int)
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
//sysnb Geteuid() (uid int)
|
//sysnb Geteuid() (uid int)
|
||||||
|
100
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
100
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@ -13,7 +13,6 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"net"
|
|
||||||
"runtime"
|
"runtime"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
@ -109,6 +108,12 @@ func IoctlGetInt(fd int, req uint) (int, error) {
|
|||||||
return value, err
|
return value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlGetUint32(fd int, req uint) (uint32, error) {
|
||||||
|
var value uint32
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
var value Winsize
|
var value Winsize
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
@ -759,7 +764,7 @@ const px_proto_oe = 0
|
|||||||
|
|
||||||
type SockaddrPPPoE struct {
|
type SockaddrPPPoE struct {
|
||||||
SID uint16
|
SID uint16
|
||||||
Remote net.HardwareAddr
|
Remote []byte
|
||||||
Dev string
|
Dev string
|
||||||
raw RawSockaddrPPPoX
|
raw RawSockaddrPPPoX
|
||||||
}
|
}
|
||||||
@ -910,7 +915,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
}
|
}
|
||||||
sa := &SockaddrPPPoE{
|
sa := &SockaddrPPPoE{
|
||||||
SID: binary.BigEndian.Uint16(pp[6:8]),
|
SID: binary.BigEndian.Uint16(pp[6:8]),
|
||||||
Remote: net.HardwareAddr(pp[8:14]),
|
Remote: pp[8:14],
|
||||||
}
|
}
|
||||||
for i := 14; i < 14+IFNAMSIZ; i++ {
|
for i := 14; i < 14+IFNAMSIZ; i++ {
|
||||||
if pp[i] == 0 {
|
if pp[i] == 0 {
|
||||||
@ -1408,8 +1413,20 @@ func Reboot(cmd int) (err error) {
|
|||||||
return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
|
return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
return Getdents(fd, buf)
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
|
//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
|
||||||
@ -1444,6 +1461,8 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//sys Acct(path string) (err error)
|
//sys Acct(path string) (err error)
|
||||||
//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
|
//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error)
|
||||||
//sys Adjtimex(buf *Timex) (state int, err error)
|
//sys Adjtimex(buf *Timex) (state int, err error)
|
||||||
|
//sys Capget(hdr *CapUserHeader, data *CapUserData) (err error)
|
||||||
|
//sys Capset(hdr *CapUserHeader, data *CapUserData) (err error)
|
||||||
//sys Chdir(path string) (err error)
|
//sys Chdir(path string) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
//sys ClockGetres(clockid int32, res *Timespec) (err error)
|
//sys ClockGetres(clockid int32, res *Timespec) (err error)
|
||||||
@ -1531,9 +1550,13 @@ func Setgid(uid int) (err error) {
|
|||||||
return EOPNOTSUPP
|
return EOPNOTSUPP
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
|
||||||
|
return signalfd(fd, sigmask, _C__NSIG/8, flags)
|
||||||
|
}
|
||||||
|
|
||||||
//sys Setpriority(which int, who int, prio int) (err error)
|
//sys Setpriority(which int, who int, prio int) (err error)
|
||||||
//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
|
//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
|
||||||
//sys Signalfd(fd int, mask *Sigset_t, flags int) = SYS_SIGNALFD4
|
//sys signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) = SYS_SIGNALFD4
|
||||||
//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error)
|
//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error)
|
||||||
//sys Sync()
|
//sys Sync()
|
||||||
//sys Syncfs(fd int) (err error)
|
//sys Syncfs(fd int) (err error)
|
||||||
@ -1675,6 +1698,69 @@ type fileHandle struct {
|
|||||||
Type int32
|
Type int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FileHandle represents the C struct file_handle used by
|
||||||
|
// name_to_handle_at (see NameToHandleAt) and open_by_handle_at (see
|
||||||
|
// OpenByHandleAt).
|
||||||
|
type FileHandle struct {
|
||||||
|
*fileHandle
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewFileHandle constructs a FileHandle.
|
||||||
|
func NewFileHandle(handleType int32, handle []byte) FileHandle {
|
||||||
|
const hdrSize = unsafe.Sizeof(fileHandle{})
|
||||||
|
buf := make([]byte, hdrSize+uintptr(len(handle)))
|
||||||
|
copy(buf[hdrSize:], handle)
|
||||||
|
fh := (*fileHandle)(unsafe.Pointer(&buf[0]))
|
||||||
|
fh.Type = handleType
|
||||||
|
fh.Bytes = uint32(len(handle))
|
||||||
|
return FileHandle{fh}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fh *FileHandle) Size() int { return int(fh.fileHandle.Bytes) }
|
||||||
|
func (fh *FileHandle) Type() int32 { return fh.fileHandle.Type }
|
||||||
|
func (fh *FileHandle) Bytes() []byte {
|
||||||
|
n := fh.Size()
|
||||||
|
if n == 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return (*[1 << 30]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type)) + 4))[:n:n]
|
||||||
|
}
|
||||||
|
|
||||||
|
// NameToHandleAt wraps the name_to_handle_at system call; it obtains
|
||||||
|
// a handle for a path name.
|
||||||
|
func NameToHandleAt(dirfd int, path string, flags int) (handle FileHandle, mountID int, err error) {
|
||||||
|
var mid _C_int
|
||||||
|
// Try first with a small buffer, assuming the handle will
|
||||||
|
// only be 32 bytes.
|
||||||
|
size := uint32(32 + unsafe.Sizeof(fileHandle{}))
|
||||||
|
didResize := false
|
||||||
|
for {
|
||||||
|
buf := make([]byte, size)
|
||||||
|
fh := (*fileHandle)(unsafe.Pointer(&buf[0]))
|
||||||
|
fh.Bytes = size - uint32(unsafe.Sizeof(fileHandle{}))
|
||||||
|
err = nameToHandleAt(dirfd, path, fh, &mid, flags)
|
||||||
|
if err == EOVERFLOW {
|
||||||
|
if didResize {
|
||||||
|
// We shouldn't need to resize more than once
|
||||||
|
return
|
||||||
|
}
|
||||||
|
didResize = true
|
||||||
|
size = fh.Bytes + uint32(unsafe.Sizeof(fileHandle{}))
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
return FileHandle{fh}, int(mid), nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OpenByHandleAt wraps the open_by_handle_at system call; it opens a
|
||||||
|
// file via a handle as previously returned by NameToHandleAt.
|
||||||
|
func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err error) {
|
||||||
|
return openByHandleAt(mountFD, handle.fileHandle, flags)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
@ -1682,8 +1768,6 @@ type fileHandle struct {
|
|||||||
// Alarm
|
// Alarm
|
||||||
// ArchPrctl
|
// ArchPrctl
|
||||||
// Brk
|
// Brk
|
||||||
// Capget
|
|
||||||
// Capset
|
|
||||||
// ClockNanosleep
|
// ClockNanosleep
|
||||||
// ClockSettime
|
// ClockSettime
|
||||||
// Clone
|
// Clone
|
||||||
|
13
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
13
vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
@ -272,3 +272,16 @@ func SyncFileRange(fd int, off int64, n int64, flags int) error {
|
|||||||
// order of their arguments.
|
// order of their arguments.
|
||||||
return armSyncFileRange(fd, flags, off, n)
|
return armSyncFileRange(fd, flags, off, n)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
|
37
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
37
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@ -94,6 +94,18 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return mib, nil
|
return mib, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
||||||
mib, err := sysctlmib(name)
|
mib, err := sysctlmib(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -120,9 +132,30 @@ func Pipe(p []int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys getdents(fd int, buf []byte) (n int, err error)
|
//sys Getdents(fd int, buf []byte) (n int, err error)
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
return getdents(fd, buf)
|
n, err = Getdents(fd, buf)
|
||||||
|
if err != nil || basep == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var off int64
|
||||||
|
off, err = Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
*basep = ^uintptr(0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
*basep = uintptr(off)
|
||||||
|
if unsafe.Sizeof(*basep) == 8 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if off>>32 != 0 {
|
||||||
|
// We can't stuff the offset back into a uintptr, so any
|
||||||
|
// future calls would be suspect. Generate an error.
|
||||||
|
// EIO is allowed by getdirentries.
|
||||||
|
err = EIO
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const ImplementsGetwd = true
|
const ImplementsGetwd = true
|
||||||
|
37
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
37
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@ -43,6 +43,18 @@ func nametomib(name string) (mib []_C_int, err error) {
|
|||||||
return nil, EINVAL
|
return nil, EINVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
||||||
mib, err := sysctlmib(name)
|
mib, err := sysctlmib(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -89,9 +101,30 @@ func Pipe(p []int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys getdents(fd int, buf []byte) (n int, err error)
|
//sys Getdents(fd int, buf []byte) (n int, err error)
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
return getdents(fd, buf)
|
n, err = Getdents(fd, buf)
|
||||||
|
if err != nil || basep == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var off int64
|
||||||
|
off, err = Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
*basep = ^uintptr(0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
*basep = uintptr(off)
|
||||||
|
if unsafe.Sizeof(*basep) == 8 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if off>>32 != 0 {
|
||||||
|
// We can't stuff the offset back into a uintptr, so any
|
||||||
|
// future calls would be suspect. Generate an error.
|
||||||
|
// EIO was allowed by getdirentries.
|
||||||
|
err = EIO
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const ImplementsGetwd = true
|
const ImplementsGetwd = true
|
||||||
|
37
vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
generated
vendored
Normal file
37
vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go
generated
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build arm64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/amd64 the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
17
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
17
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@ -35,6 +35,22 @@ type SockaddrDatalink struct {
|
|||||||
raw RawSockaddrDatalink
|
raw RawSockaddrDatalink
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe(p *[2]_C_int) (n int, err error)
|
//sysnb pipe(p *[2]_C_int) (n int, err error)
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
@ -189,6 +205,7 @@ func Setgroups(gids []int) (err error) {
|
|||||||
return setgroups(len(a), &a[0])
|
return setgroups(len(a), &a[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReadDirent reads directory entries from fd and writes them into buf.
|
||||||
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
// Final argument is (basep *uintptr) and the syscall doesn't take nil.
|
// Final argument is (basep *uintptr) and the syscall doesn't take nil.
|
||||||
// TODO(rsc): Can we use a single global basep for all calls?
|
// TODO(rsc): Can we use a single global basep for all calls?
|
||||||
|
5
vendor/golang.org/x/sys/unix/types_aix.go
generated
vendored
5
vendor/golang.org/x/sys/unix/types_aix.go
generated
vendored
@ -87,8 +87,6 @@ type Mode_t C.mode_t
|
|||||||
|
|
||||||
type Timespec C.struct_timespec
|
type Timespec C.struct_timespec
|
||||||
|
|
||||||
type StTimespec C.struct_st_timespec
|
|
||||||
|
|
||||||
type Timeval C.struct_timeval
|
type Timeval C.struct_timeval
|
||||||
|
|
||||||
type Timeval32 C.struct_timeval32
|
type Timeval32 C.struct_timeval32
|
||||||
@ -133,6 +131,8 @@ type RawSockaddrInet6 C.struct_sockaddr_in6
|
|||||||
|
|
||||||
type RawSockaddrUnix C.struct_sockaddr_un
|
type RawSockaddrUnix C.struct_sockaddr_un
|
||||||
|
|
||||||
|
type RawSockaddrDatalink C.struct_sockaddr_dl
|
||||||
|
|
||||||
type RawSockaddr C.struct_sockaddr
|
type RawSockaddr C.struct_sockaddr
|
||||||
|
|
||||||
type RawSockaddrAny C.struct_sockaddr_any
|
type RawSockaddrAny C.struct_sockaddr_any
|
||||||
@ -160,6 +160,7 @@ const (
|
|||||||
SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
|
SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
|
||||||
SizeofSockaddrAny = C.sizeof_struct_sockaddr_any
|
SizeofSockaddrAny = C.sizeof_struct_sockaddr_any
|
||||||
SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
|
SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
|
||||||
|
SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl
|
||||||
SizeofLinger = C.sizeof_struct_linger
|
SizeofLinger = C.sizeof_struct_linger
|
||||||
SizeofIPMreq = C.sizeof_struct_ip_mreq
|
SizeofIPMreq = C.sizeof_struct_ip_mreq
|
||||||
SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
|
SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
|
||||||
|
46
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
46
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
@ -243,11 +243,55 @@ const (
|
|||||||
// Ptrace requests
|
// Ptrace requests
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PTRACE_TRACEME = C.PT_TRACE_ME
|
PTRACE_ATTACH = C.PT_ATTACH
|
||||||
PTRACE_CONT = C.PT_CONTINUE
|
PTRACE_CONT = C.PT_CONTINUE
|
||||||
|
PTRACE_DETACH = C.PT_DETACH
|
||||||
|
PTRACE_GETFPREGS = C.PT_GETFPREGS
|
||||||
|
PTRACE_GETFSBASE = C.PT_GETFSBASE
|
||||||
|
PTRACE_GETLWPLIST = C.PT_GETLWPLIST
|
||||||
|
PTRACE_GETNUMLWPS = C.PT_GETNUMLWPS
|
||||||
|
PTRACE_GETREGS = C.PT_GETREGS
|
||||||
|
PTRACE_GETXSTATE = C.PT_GETXSTATE
|
||||||
|
PTRACE_IO = C.PT_IO
|
||||||
PTRACE_KILL = C.PT_KILL
|
PTRACE_KILL = C.PT_KILL
|
||||||
|
PTRACE_LWPEVENTS = C.PT_LWP_EVENTS
|
||||||
|
PTRACE_LWPINFO = C.PT_LWPINFO
|
||||||
|
PTRACE_SETFPREGS = C.PT_SETFPREGS
|
||||||
|
PTRACE_SETREGS = C.PT_SETREGS
|
||||||
|
PTRACE_SINGLESTEP = C.PT_STEP
|
||||||
|
PTRACE_TRACEME = C.PT_TRACE_ME
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
PIOD_READ_D = C.PIOD_READ_D
|
||||||
|
PIOD_WRITE_D = C.PIOD_WRITE_D
|
||||||
|
PIOD_READ_I = C.PIOD_READ_I
|
||||||
|
PIOD_WRITE_I = C.PIOD_WRITE_I
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
PL_FLAG_BORN = C.PL_FLAG_BORN
|
||||||
|
PL_FLAG_EXITED = C.PL_FLAG_EXITED
|
||||||
|
PL_FLAG_SI = C.PL_FLAG_SI
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
TRAP_BRKPT = C.TRAP_BRKPT
|
||||||
|
TRAP_TRACE = C.TRAP_TRACE
|
||||||
|
)
|
||||||
|
|
||||||
|
type PtraceLwpInfoStruct C.struct_ptrace_lwpinfo
|
||||||
|
|
||||||
|
type __Siginfo C.struct___siginfo
|
||||||
|
|
||||||
|
type Sigset_t C.sigset_t
|
||||||
|
|
||||||
|
type Reg C.struct_reg
|
||||||
|
|
||||||
|
type FpReg C.struct_fpreg
|
||||||
|
|
||||||
|
type PtraceIoDesc C.struct_ptrace_io_desc
|
||||||
|
|
||||||
// Events (kqueue, kevent)
|
// Events (kqueue, kevent)
|
||||||
|
|
||||||
type Kevent_t C.struct_kevent_freebsd11
|
type Kevent_t C.struct_kevent_freebsd11
|
||||||
|
1
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
1
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
@ -254,6 +254,7 @@ type Ptmget C.struct_ptmget
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
AT_FDCWD = C.AT_FDCWD
|
AT_FDCWD = C.AT_FDCWD
|
||||||
|
AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
|
||||||
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
||||||
)
|
)
|
||||||
|
|
||||||
|
1
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
1
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
@ -241,6 +241,7 @@ type Winsize C.struct_winsize
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
AT_FDCWD = C.AT_FDCWD
|
AT_FDCWD = C.AT_FDCWD
|
||||||
|
AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
|
||||||
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build openbsd
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1012,6 +1149,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1052,6 +1203,15 @@ const (
|
|||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_SYNC = 0x80000
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1487,6 +1647,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1864,6 +2025,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1957,6 +2122,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2005,6 +2171,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2016,9 +2184,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2060,6 +2236,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2111,6 +2288,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2277,6 +2456,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x400854d5
|
TUNATTACHFILTER = 0x400854d5
|
||||||
TUNDETACHFILTER = 0x400854d6
|
TUNDETACHFILTER = 0x400854d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x800854db
|
TUNGETFILTER = 0x800854db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
@ -2312,8 +2492,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
@ -2462,6 +2644,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1012,6 +1149,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1052,6 +1203,15 @@ const (
|
|||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_SYNC = 0x80000
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1487,6 +1647,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1865,6 +2026,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1958,6 +2123,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2006,6 +2172,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2017,9 +2185,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2061,6 +2237,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2112,6 +2289,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2278,6 +2457,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
@ -2313,8 +2493,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
@ -2462,6 +2644,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1050,6 +1201,15 @@ const (
|
|||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_SYNC = 0x80000
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1485,6 +1645,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1871,6 +2032,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1964,6 +2129,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2012,6 +2178,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2023,9 +2191,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2067,6 +2243,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2118,6 +2295,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2284,6 +2463,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x400854d5
|
TUNATTACHFILTER = 0x400854d5
|
||||||
TUNDETACHFILTER = 0x400854d6
|
TUNDETACHFILTER = 0x400854d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x800854db
|
TUNGETFILTER = 0x800854db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
@ -2319,8 +2499,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
@ -2468,6 +2650,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -415,6 +541,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -499,6 +626,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -507,8 +635,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -522,6 +654,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -530,6 +666,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1014,6 +1151,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1053,6 +1204,15 @@ const (
|
|||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_SYNC = 0x80000
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1488,6 +1648,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1855,6 +2016,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1948,6 +2113,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -1996,6 +2162,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2007,9 +2175,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2052,6 +2228,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2103,6 +2280,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2269,6 +2448,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
@ -2304,8 +2484,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
@ -2453,6 +2635,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1050,6 +1201,15 @@ const (
|
|||||||
MAP_SHARED_VALIDATE = 0x3
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1485,6 +1645,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1864,6 +2025,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x467f
|
SIOCINQ = 0x467f
|
||||||
SIOCOUTQ = 0x7472
|
SIOCOUTQ = 0x7472
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1957,6 +2122,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2005,6 +2171,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2016,10 +2184,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2061,6 +2237,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2111,6 +2288,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2279,6 +2458,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x800854d5
|
TUNATTACHFILTER = 0x800854d5
|
||||||
TUNDETACHFILTER = 0x800854d6
|
TUNDETACHFILTER = 0x800854d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x400854db
|
TUNGETFILTER = 0x400854db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
@ -2314,8 +2494,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
@ -2464,6 +2646,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1050,6 +1201,15 @@ const (
|
|||||||
MAP_SHARED_VALIDATE = 0x3
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1485,6 +1645,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1864,6 +2025,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x467f
|
SIOCINQ = 0x467f
|
||||||
SIOCOUTQ = 0x7472
|
SIOCOUTQ = 0x7472
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1957,6 +2122,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2005,6 +2171,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2016,10 +2184,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2061,6 +2237,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2111,6 +2288,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2279,6 +2458,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
@ -2314,8 +2494,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
@ -2464,6 +2646,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1050,6 +1201,15 @@ const (
|
|||||||
MAP_SHARED_VALIDATE = 0x3
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1485,6 +1645,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1864,6 +2025,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x467f
|
SIOCINQ = 0x467f
|
||||||
SIOCOUTQ = 0x7472
|
SIOCOUTQ = 0x7472
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1957,6 +2122,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2005,6 +2171,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2016,10 +2184,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2061,6 +2237,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2111,6 +2288,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2279,6 +2458,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
@ -2314,8 +2494,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
@ -2464,6 +2646,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1050,6 +1201,15 @@ const (
|
|||||||
MAP_SHARED_VALIDATE = 0x3
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1485,6 +1645,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1864,6 +2025,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x467f
|
SIOCINQ = 0x467f
|
||||||
SIOCOUTQ = 0x7472
|
SIOCOUTQ = 0x7472
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1957,6 +2122,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2005,6 +2171,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2016,10 +2184,18 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x1f
|
SO_SNDBUFFORCE = 0x1f
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x1005
|
||||||
SO_STYLE = 0x1008
|
SO_STYLE = 0x1008
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2061,6 +2237,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2111,6 +2288,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2279,6 +2458,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x800854d5
|
TUNATTACHFILTER = 0x800854d5
|
||||||
TUNDETACHFILTER = 0x800854d6
|
TUNDETACHFILTER = 0x800854d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x400854db
|
TUNGETFILTER = 0x400854db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
@ -2314,8 +2494,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
@ -2464,6 +2646,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0xff
|
CBAUD = 0xff
|
||||||
CBAUDEX = 0x0
|
CBAUDEX = 0x0
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x3000
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1049,6 +1200,15 @@ const (
|
|||||||
MAP_SHARED_VALIDATE = 0x3
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
MCL_ONFAULT = 0x8000
|
MCL_ONFAULT = 0x8000
|
||||||
@ -1487,6 +1647,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1922,6 +2083,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x4004667f
|
SIOCINQ = 0x4004667f
|
||||||
SIOCOUTQ = 0x40047473
|
SIOCOUTQ = 0x40047473
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -2015,6 +2180,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2063,6 +2229,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x10
|
SO_RCVLOWAT = 0x10
|
||||||
SO_RCVTIMEO = 0x12
|
SO_RCVTIMEO = 0x12
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x12
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2074,9 +2242,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x11
|
SO_SNDLOWAT = 0x11
|
||||||
SO_SNDTIMEO = 0x13
|
SO_SNDTIMEO = 0x13
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x13
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2118,6 +2294,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2167,6 +2344,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2339,6 +2518,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
@ -2374,8 +2554,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
@ -2523,6 +2705,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0xff
|
CBAUD = 0xff
|
||||||
CBAUDEX = 0x0
|
CBAUDEX = 0x0
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x3000
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1049,6 +1200,15 @@ const (
|
|||||||
MAP_SHARED_VALIDATE = 0x3
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
MCL_ONFAULT = 0x8000
|
MCL_ONFAULT = 0x8000
|
||||||
@ -1487,6 +1647,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1922,6 +2083,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x4004667f
|
SIOCINQ = 0x4004667f
|
||||||
SIOCOUTQ = 0x40047473
|
SIOCOUTQ = 0x40047473
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -2015,6 +2180,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2063,6 +2229,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x10
|
SO_RCVLOWAT = 0x10
|
||||||
SO_RCVTIMEO = 0x12
|
SO_RCVTIMEO = 0x12
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x12
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2074,9 +2242,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x11
|
SO_SNDLOWAT = 0x11
|
||||||
SO_SNDTIMEO = 0x13
|
SO_SNDTIMEO = 0x13
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x13
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2118,6 +2294,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2167,6 +2344,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2339,6 +2518,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
@ -2374,8 +2554,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
@ -2523,6 +2705,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1050,6 +1201,15 @@ const (
|
|||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_SYNC = 0x80000
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1485,6 +1645,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1852,6 +2013,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -1945,6 +2110,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -1993,6 +2159,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2004,9 +2172,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2048,6 +2224,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2099,6 +2276,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2265,6 +2444,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
@ -2300,8 +2480,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
@ -2449,6 +2631,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
@ -196,11 +196,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -208,8 +267,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -223,20 +290,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -264,6 +346,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -302,6 +423,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -320,6 +442,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -414,6 +540,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -497,6 +624,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -505,8 +633,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -520,6 +652,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -528,6 +664,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1011,6 +1148,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1050,6 +1201,15 @@ const (
|
|||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_SYNC = 0x80000
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
MCL_ONFAULT = 0x4
|
||||||
@ -1485,6 +1645,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1925,6 +2086,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -2018,6 +2183,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
SO_BINDTODEVICE = 0x19
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
SO_BPF_EXTENSIONS = 0x30
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
SO_BROADCAST = 0x6
|
SO_BROADCAST = 0x6
|
||||||
SO_BSDCOMPAT = 0xe
|
SO_BSDCOMPAT = 0xe
|
||||||
@ -2066,6 +2232,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x21
|
SO_RCVBUFFORCE = 0x21
|
||||||
SO_RCVLOWAT = 0x12
|
SO_RCVLOWAT = 0x12
|
||||||
SO_RCVTIMEO = 0x14
|
SO_RCVTIMEO = 0x14
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x14
|
||||||
SO_REUSEADDR = 0x2
|
SO_REUSEADDR = 0x2
|
||||||
SO_REUSEPORT = 0xf
|
SO_REUSEPORT = 0xf
|
||||||
SO_RXQ_OVFL = 0x28
|
SO_RXQ_OVFL = 0x28
|
||||||
@ -2077,9 +2245,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x20
|
SO_SNDBUFFORCE = 0x20
|
||||||
SO_SNDLOWAT = 0x13
|
SO_SNDLOWAT = 0x13
|
||||||
SO_SNDTIMEO = 0x15
|
SO_SNDTIMEO = 0x15
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x15
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x25
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
SO_TIMESTAMPNS = 0x23
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3d
|
SO_TXTIME = 0x3d
|
||||||
SO_TYPE = 0x3
|
SO_TYPE = 0x3
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2121,6 +2297,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2172,6 +2349,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2338,6 +2517,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
@ -2373,8 +2553,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x40986f00
|
UBI_IOCMKVOL = 0x40986f00
|
||||||
UBI_IOCRMVOL = 0x40046f01
|
UBI_IOCRMVOL = 0x40046f01
|
||||||
UBI_IOCRNVOL = 0x51106f03
|
UBI_IOCRNVOL = 0x51106f03
|
||||||
|
UBI_IOCRPEB = 0x40046f04
|
||||||
UBI_IOCRSVOL = 0x400c6f02
|
UBI_IOCRSVOL = 0x400c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x40104f06
|
UBI_IOCSETVOLPROP = 0x40104f06
|
||||||
|
UBI_IOCSPEB = 0x40046f05
|
||||||
UBI_IOCVOLCRBLK = 0x40804f07
|
UBI_IOCVOLCRBLK = 0x40804f07
|
||||||
UBI_IOCVOLRMBLK = 0x4f08
|
UBI_IOCVOLRMBLK = 0x4f08
|
||||||
UBI_IOCVOLUP = 0x40084f00
|
UBI_IOCVOLUP = 0x40084f00
|
||||||
@ -2522,6 +2704,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
183
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
183
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
@ -199,11 +199,70 @@ const (
|
|||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
BPF_ANY = 0x0
|
||||||
|
BPF_ARSH = 0xc0
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
|
BPF_BUILD_ID_SIZE = 0x14
|
||||||
|
BPF_CALL = 0x80
|
||||||
|
BPF_DEVCG_ACC_MKNOD = 0x1
|
||||||
|
BPF_DEVCG_ACC_READ = 0x2
|
||||||
|
BPF_DEVCG_ACC_WRITE = 0x4
|
||||||
|
BPF_DEVCG_DEV_BLOCK = 0x1
|
||||||
|
BPF_DEVCG_DEV_CHAR = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_DW = 0x18
|
||||||
|
BPF_END = 0xd0
|
||||||
|
BPF_EXIST = 0x2
|
||||||
|
BPF_EXIT = 0x90
|
||||||
|
BPF_FROM_BE = 0x8
|
||||||
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
BPF_F_CTXLEN_MASK = 0xfffff00000000
|
||||||
|
BPF_F_CURRENT_CPU = 0xffffffff
|
||||||
|
BPF_F_CURRENT_NETNS = -0x1
|
||||||
|
BPF_F_DONT_FRAGMENT = 0x4
|
||||||
|
BPF_F_FAST_STACK_CMP = 0x200
|
||||||
|
BPF_F_HDR_FIELD_MASK = 0xf
|
||||||
|
BPF_F_INDEX_MASK = 0xffffffff
|
||||||
|
BPF_F_INGRESS = 0x1
|
||||||
|
BPF_F_INVALIDATE_HASH = 0x2
|
||||||
|
BPF_F_LOCK = 0x4
|
||||||
|
BPF_F_MARK_ENFORCE = 0x40
|
||||||
|
BPF_F_MARK_MANGLED_0 = 0x20
|
||||||
|
BPF_F_NO_COMMON_LRU = 0x2
|
||||||
|
BPF_F_NO_PREALLOC = 0x1
|
||||||
|
BPF_F_NUMA_NODE = 0x4
|
||||||
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
|
BPF_F_USER_STACK = 0x100
|
||||||
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -211,8 +270,16 @@ const (
|
|||||||
BPF_JEQ = 0x10
|
BPF_JEQ = 0x10
|
||||||
BPF_JGE = 0x30
|
BPF_JGE = 0x30
|
||||||
BPF_JGT = 0x20
|
BPF_JGT = 0x20
|
||||||
|
BPF_JLE = 0xb0
|
||||||
|
BPF_JLT = 0xa0
|
||||||
BPF_JMP = 0x5
|
BPF_JMP = 0x5
|
||||||
|
BPF_JMP32 = 0x6
|
||||||
|
BPF_JNE = 0x50
|
||||||
BPF_JSET = 0x40
|
BPF_JSET = 0x40
|
||||||
|
BPF_JSGE = 0x70
|
||||||
|
BPF_JSGT = 0x60
|
||||||
|
BPF_JSLE = 0xd0
|
||||||
|
BPF_JSLT = 0xc0
|
||||||
BPF_K = 0x0
|
BPF_K = 0x0
|
||||||
BPF_LD = 0x0
|
BPF_LD = 0x0
|
||||||
BPF_LDX = 0x1
|
BPF_LDX = 0x1
|
||||||
@ -226,20 +293,35 @@ const (
|
|||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
BPF_MOD = 0x90
|
BPF_MOD = 0x90
|
||||||
|
BPF_MOV = 0xb0
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
BPF_NET_OFF = -0x100000
|
BPF_NET_OFF = -0x100000
|
||||||
|
BPF_NOEXIST = 0x1
|
||||||
|
BPF_OBJ_NAME_LEN = 0x10
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
|
BPF_PSEUDO_CALL = 0x1
|
||||||
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
||||||
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
BPF_SUB = 0x10
|
BPF_SUB = 0x10
|
||||||
|
BPF_TAG_SIZE = 0x8
|
||||||
BPF_TAX = 0x0
|
BPF_TAX = 0x0
|
||||||
|
BPF_TO_BE = 0x8
|
||||||
|
BPF_TO_LE = 0x0
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XADD = 0xc0
|
||||||
BPF_XOR = 0xa0
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
@ -267,6 +349,45 @@ const (
|
|||||||
CAN_SFF_MASK = 0x7ff
|
CAN_SFF_MASK = 0x7ff
|
||||||
CAN_TP16 = 0x3
|
CAN_TP16 = 0x3
|
||||||
CAN_TP20 = 0x4
|
CAN_TP20 = 0x4
|
||||||
|
CAP_AUDIT_CONTROL = 0x1e
|
||||||
|
CAP_AUDIT_READ = 0x25
|
||||||
|
CAP_AUDIT_WRITE = 0x1d
|
||||||
|
CAP_BLOCK_SUSPEND = 0x24
|
||||||
|
CAP_CHOWN = 0x0
|
||||||
|
CAP_DAC_OVERRIDE = 0x1
|
||||||
|
CAP_DAC_READ_SEARCH = 0x2
|
||||||
|
CAP_FOWNER = 0x3
|
||||||
|
CAP_FSETID = 0x4
|
||||||
|
CAP_IPC_LOCK = 0xe
|
||||||
|
CAP_IPC_OWNER = 0xf
|
||||||
|
CAP_KILL = 0x5
|
||||||
|
CAP_LAST_CAP = 0x25
|
||||||
|
CAP_LEASE = 0x1c
|
||||||
|
CAP_LINUX_IMMUTABLE = 0x9
|
||||||
|
CAP_MAC_ADMIN = 0x21
|
||||||
|
CAP_MAC_OVERRIDE = 0x20
|
||||||
|
CAP_MKNOD = 0x1b
|
||||||
|
CAP_NET_ADMIN = 0xc
|
||||||
|
CAP_NET_BIND_SERVICE = 0xa
|
||||||
|
CAP_NET_BROADCAST = 0xb
|
||||||
|
CAP_NET_RAW = 0xd
|
||||||
|
CAP_SETFCAP = 0x1f
|
||||||
|
CAP_SETGID = 0x6
|
||||||
|
CAP_SETPCAP = 0x8
|
||||||
|
CAP_SETUID = 0x7
|
||||||
|
CAP_SYSLOG = 0x22
|
||||||
|
CAP_SYS_ADMIN = 0x15
|
||||||
|
CAP_SYS_BOOT = 0x16
|
||||||
|
CAP_SYS_CHROOT = 0x12
|
||||||
|
CAP_SYS_MODULE = 0x10
|
||||||
|
CAP_SYS_NICE = 0x17
|
||||||
|
CAP_SYS_PACCT = 0x14
|
||||||
|
CAP_SYS_PTRACE = 0x13
|
||||||
|
CAP_SYS_RAWIO = 0x11
|
||||||
|
CAP_SYS_RESOURCE = 0x18
|
||||||
|
CAP_SYS_TIME = 0x19
|
||||||
|
CAP_SYS_TTY_CONFIG = 0x1a
|
||||||
|
CAP_WAKE_ALARM = 0x23
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
@ -305,6 +426,7 @@ const (
|
|||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
@ -323,6 +445,10 @@ const (
|
|||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
CRYPTO_MAX_NAME = 0x40
|
||||||
|
CRYPTO_MSG_MAX = 0x15
|
||||||
|
CRYPTO_NR_MSGTYPES = 0x6
|
||||||
|
CRYPTO_REPORT_MAXSIZE = 0x160
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x10
|
CS6 = 0x10
|
||||||
CS7 = 0x20
|
CS7 = 0x20
|
||||||
@ -418,6 +544,7 @@ const (
|
|||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
@ -501,6 +628,7 @@ const (
|
|||||||
FAN_ALL_MARK_FLAGS = 0xff
|
FAN_ALL_MARK_FLAGS = 0xff
|
||||||
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
FAN_ALL_OUTGOING_EVENTS = 0x3403b
|
||||||
FAN_ALL_PERM_EVENTS = 0x30000
|
FAN_ALL_PERM_EVENTS = 0x30000
|
||||||
|
FAN_ATTRIB = 0x4
|
||||||
FAN_AUDIT = 0x10
|
FAN_AUDIT = 0x10
|
||||||
FAN_CLASS_CONTENT = 0x4
|
FAN_CLASS_CONTENT = 0x4
|
||||||
FAN_CLASS_NOTIF = 0x0
|
FAN_CLASS_NOTIF = 0x0
|
||||||
@ -509,8 +637,12 @@ const (
|
|||||||
FAN_CLOSE = 0x18
|
FAN_CLOSE = 0x18
|
||||||
FAN_CLOSE_NOWRITE = 0x10
|
FAN_CLOSE_NOWRITE = 0x10
|
||||||
FAN_CLOSE_WRITE = 0x8
|
FAN_CLOSE_WRITE = 0x8
|
||||||
|
FAN_CREATE = 0x100
|
||||||
|
FAN_DELETE = 0x200
|
||||||
|
FAN_DELETE_SELF = 0x400
|
||||||
FAN_DENY = 0x2
|
FAN_DENY = 0x2
|
||||||
FAN_ENABLE_AUDIT = 0x40
|
FAN_ENABLE_AUDIT = 0x40
|
||||||
|
FAN_EVENT_INFO_TYPE_FID = 0x1
|
||||||
FAN_EVENT_METADATA_LEN = 0x18
|
FAN_EVENT_METADATA_LEN = 0x18
|
||||||
FAN_EVENT_ON_CHILD = 0x8000000
|
FAN_EVENT_ON_CHILD = 0x8000000
|
||||||
FAN_MARK_ADD = 0x1
|
FAN_MARK_ADD = 0x1
|
||||||
@ -524,6 +656,10 @@ const (
|
|||||||
FAN_MARK_ONLYDIR = 0x8
|
FAN_MARK_ONLYDIR = 0x8
|
||||||
FAN_MARK_REMOVE = 0x2
|
FAN_MARK_REMOVE = 0x2
|
||||||
FAN_MODIFY = 0x2
|
FAN_MODIFY = 0x2
|
||||||
|
FAN_MOVE = 0xc0
|
||||||
|
FAN_MOVED_FROM = 0x40
|
||||||
|
FAN_MOVED_TO = 0x80
|
||||||
|
FAN_MOVE_SELF = 0x800
|
||||||
FAN_NOFD = -0x1
|
FAN_NOFD = -0x1
|
||||||
FAN_NONBLOCK = 0x2
|
FAN_NONBLOCK = 0x2
|
||||||
FAN_ONDIR = 0x40000000
|
FAN_ONDIR = 0x40000000
|
||||||
@ -532,6 +668,7 @@ const (
|
|||||||
FAN_OPEN_EXEC_PERM = 0x40000
|
FAN_OPEN_EXEC_PERM = 0x40000
|
||||||
FAN_OPEN_PERM = 0x10000
|
FAN_OPEN_PERM = 0x10000
|
||||||
FAN_Q_OVERFLOW = 0x4000
|
FAN_Q_OVERFLOW = 0x4000
|
||||||
|
FAN_REPORT_FID = 0x200
|
||||||
FAN_REPORT_TID = 0x100
|
FAN_REPORT_TID = 0x100
|
||||||
FAN_UNLIMITED_MARKS = 0x20
|
FAN_UNLIMITED_MARKS = 0x20
|
||||||
FAN_UNLIMITED_QUEUE = 0x10
|
FAN_UNLIMITED_QUEUE = 0x10
|
||||||
@ -1015,6 +1152,20 @@ const (
|
|||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
@ -1054,6 +1205,15 @@ const (
|
|||||||
MAP_SHARED_VALIDATE = 0x3
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
|
MCAST_BLOCK_SOURCE = 0x2b
|
||||||
|
MCAST_EXCLUDE = 0x0
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x2a
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x2e
|
||||||
|
MCAST_LEAVE_GROUP = 0x2d
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x2f
|
||||||
|
MCAST_MSFILTER = 0x30
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x2c
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
MCL_FUTURE = 0x4000
|
MCL_FUTURE = 0x4000
|
||||||
MCL_ONFAULT = 0x8000
|
MCL_ONFAULT = 0x8000
|
||||||
@ -1489,6 +1649,7 @@ const (
|
|||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
PR_SET_UNALIGN = 0x6
|
||||||
PR_SPEC_DISABLE = 0x4
|
PR_SPEC_DISABLE = 0x4
|
||||||
|
PR_SPEC_DISABLE_NOEXEC = 0x10
|
||||||
PR_SPEC_ENABLE = 0x2
|
PR_SPEC_ENABLE = 0x2
|
||||||
PR_SPEC_FORCE_DISABLE = 0x8
|
PR_SPEC_FORCE_DISABLE = 0x8
|
||||||
PR_SPEC_INDIRECT_BRANCH = 0x1
|
PR_SPEC_INDIRECT_BRANCH = 0x1
|
||||||
@ -1917,6 +2078,10 @@ const (
|
|||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x4004667f
|
SIOCINQ = 0x4004667f
|
||||||
SIOCOUTQ = 0x40047473
|
SIOCOUTQ = 0x40047473
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
@ -2010,6 +2175,7 @@ const (
|
|||||||
SO_ATTACH_REUSEPORT_CBPF = 0x35
|
SO_ATTACH_REUSEPORT_CBPF = 0x35
|
||||||
SO_ATTACH_REUSEPORT_EBPF = 0x36
|
SO_ATTACH_REUSEPORT_EBPF = 0x36
|
||||||
SO_BINDTODEVICE = 0xd
|
SO_BINDTODEVICE = 0xd
|
||||||
|
SO_BINDTOIFINDEX = 0x41
|
||||||
SO_BPF_EXTENSIONS = 0x32
|
SO_BPF_EXTENSIONS = 0x32
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_BSDCOMPAT = 0x400
|
SO_BSDCOMPAT = 0x400
|
||||||
@ -2058,6 +2224,8 @@ const (
|
|||||||
SO_RCVBUFFORCE = 0x100b
|
SO_RCVBUFFORCE = 0x100b
|
||||||
SO_RCVLOWAT = 0x800
|
SO_RCVLOWAT = 0x800
|
||||||
SO_RCVTIMEO = 0x2000
|
SO_RCVTIMEO = 0x2000
|
||||||
|
SO_RCVTIMEO_NEW = 0x44
|
||||||
|
SO_RCVTIMEO_OLD = 0x2000
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_RXQ_OVFL = 0x24
|
SO_RXQ_OVFL = 0x24
|
||||||
@ -2069,9 +2237,17 @@ const (
|
|||||||
SO_SNDBUFFORCE = 0x100a
|
SO_SNDBUFFORCE = 0x100a
|
||||||
SO_SNDLOWAT = 0x1000
|
SO_SNDLOWAT = 0x1000
|
||||||
SO_SNDTIMEO = 0x4000
|
SO_SNDTIMEO = 0x4000
|
||||||
|
SO_SNDTIMEO_NEW = 0x45
|
||||||
|
SO_SNDTIMEO_OLD = 0x4000
|
||||||
SO_TIMESTAMP = 0x1d
|
SO_TIMESTAMP = 0x1d
|
||||||
SO_TIMESTAMPING = 0x23
|
SO_TIMESTAMPING = 0x23
|
||||||
|
SO_TIMESTAMPING_NEW = 0x43
|
||||||
|
SO_TIMESTAMPING_OLD = 0x23
|
||||||
SO_TIMESTAMPNS = 0x21
|
SO_TIMESTAMPNS = 0x21
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x42
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x21
|
||||||
|
SO_TIMESTAMP_NEW = 0x46
|
||||||
|
SO_TIMESTAMP_OLD = 0x1d
|
||||||
SO_TXTIME = 0x3f
|
SO_TXTIME = 0x3f
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
|
||||||
@ -2113,6 +2289,7 @@ const (
|
|||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
@ -2163,6 +2340,8 @@ const (
|
|||||||
TCOFLUSH = 0x1
|
TCOFLUSH = 0x1
|
||||||
TCOOFF = 0x0
|
TCOOFF = 0x0
|
||||||
TCOON = 0x1
|
TCOON = 0x1
|
||||||
|
TCP_BPF_IW = 0x3e9
|
||||||
|
TCP_BPF_SNDCWND_CLAMP = 0x3ea
|
||||||
TCP_CC_INFO = 0x1a
|
TCP_CC_INFO = 0x1a
|
||||||
TCP_CM_INQ = 0x24
|
TCP_CM_INQ = 0x24
|
||||||
TCP_CONGESTION = 0xd
|
TCP_CONGESTION = 0xd
|
||||||
@ -2327,6 +2506,7 @@ const (
|
|||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
@ -2362,8 +2542,10 @@ const (
|
|||||||
UBI_IOCMKVOL = 0x80986f00
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
UBI_IOCRMVOL = 0x80046f01
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
UBI_IOCRNVOL = 0x91106f03
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
UBI_IOCRSVOL = 0x800c6f02
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
UBI_IOCSETVOLPROP = 0x80104f06
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
UBI_IOCVOLCRBLK = 0x80804f07
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
UBI_IOCVOLRMBLK = 0x20004f08
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
UBI_IOCVOLUP = 0x80084f00
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
@ -2511,6 +2693,7 @@ const (
|
|||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
XDP_RX_RING = 0x2
|
XDP_RX_RING = 0x2
|
||||||
|
1789
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
generated
vendored
Normal file
1789
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
generated
vendored
10
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go
generated
vendored
@ -859,7 +859,7 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstat(fd int, stat *Stat_t) (err error) {
|
func fstat(fd int, stat *Stat_t) (err error) {
|
||||||
r0, er := C.fstat(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
|
r0, er := C.fstat(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
err = er
|
err = er
|
||||||
@ -869,7 +869,7 @@ func Fstat(fd int, stat *Stat_t) (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 Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
|
func fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
||||||
r0, er := C.fstatat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))), C.int(flags))
|
r0, er := C.fstatat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))), C.int(flags))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
@ -953,7 +953,7 @@ func Listen(s int, n int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Lstat(path string, stat *Stat_t) (err error) {
|
func lstat(path string, stat *Stat_t) (err error) {
|
||||||
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
||||||
r0, er := C.lstat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
|
r0, er := C.lstat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
@ -1071,9 +1071,9 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Stat(path string, stat *Stat_t) (err error) {
|
func stat(path string, statptr *Stat_t) (err error) {
|
||||||
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
_p0 := uintptr(unsafe.Pointer(C.CString(path)))
|
||||||
r0, er := C.stat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))))
|
r0, er := C.stat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(statptr))))
|
||||||
if r0 == -1 && er != nil {
|
if r0 == -1 && er != nil {
|
||||||
err = er
|
err = er
|
||||||
}
|
}
|
||||||
|
10
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
generated
vendored
10
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go
generated
vendored
@ -803,7 +803,7 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fstat(fd int, stat *Stat_t) (err error) {
|
func fstat(fd int, stat *Stat_t) (err error) {
|
||||||
_, e1 := callfstat(fd, uintptr(unsafe.Pointer(stat)))
|
_, e1 := callfstat(fd, uintptr(unsafe.Pointer(stat)))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
@ -813,7 +813,7 @@ func Fstat(fd int, stat *Stat_t) (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 Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
|
func fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -905,7 +905,7 @@ func Listen(s int, n int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Lstat(path string, stat *Stat_t) (err error) {
|
func lstat(path string, stat *Stat_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -1023,13 +1023,13 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Stat(path string, stat *Stat_t) (err error) {
|
func stat(path string, statptr *Stat_t) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, e1 := callstat(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)))
|
_, e1 := callstat(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(statptr)))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
4
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go
generated
vendored
@ -941,8 +941,8 @@ func callsplice(rfd int, roff uintptr, wfd int, woff uintptr, len int, flags int
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callstat(_p0 uintptr, stat uintptr) (r1 uintptr, e1 Errno) {
|
func callstat(_p0 uintptr, statptr uintptr) (r1 uintptr, e1 Errno) {
|
||||||
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_stat)), 2, _p0, stat, 0, 0, 0, 0)
|
r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_stat)), 2, _p0, statptr, 0, 0, 0, 0)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go
generated
vendored
@ -783,8 +783,8 @@ func callsplice(rfd int, roff uintptr, wfd int, woff uintptr, len int, flags int
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func callstat(_p0 uintptr, stat uintptr) (r1 uintptr, e1 Errno) {
|
func callstat(_p0 uintptr, statptr uintptr) (r1 uintptr, e1 Errno) {
|
||||||
r1 = uintptr(C.stat(C.uintptr_t(_p0), C.uintptr_t(stat)))
|
r1 = uintptr(C.stat(C.uintptr_t(_p0), C.uintptr_t(statptr)))
|
||||||
e1 = syscall.GetErrno()
|
e1 = syscall.GetErrno()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
17
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
17
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
@ -749,6 +749,23 @@ func Ftruncate(fd int, length int64) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
|
12
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
@ -387,6 +387,16 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getcwd(buf []byte) (n int, err error) {
|
func Getcwd(buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
@ -1019,7 +1029,7 @@ func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
12
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
@ -387,6 +387,16 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getcwd(buf []byte) (n int, err error) {
|
func Getcwd(buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
@ -1019,7 +1029,7 @@ func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
12
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
generated
vendored
@ -387,6 +387,16 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Getcwd(buf []byte) (n int, err error) {
|
func Getcwd(buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
@ -1019,7 +1029,7 @@ func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
12
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
generated
vendored
@ -404,6 +404,16 @@ func Getcwd(buf []byte) (n int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1019,7 +1029,7 @@ func getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdirentries_freebsd12(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
func getdirentries_freebsd12(fd int, buf []byte, basep *uint64) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
43
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
generated
vendored
43
vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2366,3 +2390,18 @@ func armSyncFileRange(fd int, flags int, off int64, n int64) (err error) {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(cmdline)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
generated
vendored
@ -408,6 +408,26 @@ func Adjtimex(buf *Timex) (state int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1381,8 +1401,12 @@ func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Signalfd(fd int, mask *Sigset_t, flags int) {
|
func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
|
||||||
SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
|
r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
|
||||||
|
newfd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
@ -389,7 +389,7 @@ func pipe() (fd1 int, fd2 int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdents(fd int, buf []byte) (n int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
2
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
@ -389,7 +389,7 @@ func pipe() (fd1 int, fd2 int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdents(fd int, buf []byte) (n int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
2
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
generated
vendored
@ -389,7 +389,7 @@ func pipe() (fd1 int, fd2 int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdents(fd int, buf []byte) (n int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
2
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
generated
vendored
@ -389,7 +389,7 @@ func pipe() (fd1 int, fd2 int, err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdents(fd int, buf []byte) (n int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
2
vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
generated
vendored
@ -387,7 +387,7 @@ func pipe(p *[2]_C_int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdents(fd int, buf []byte) (n int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
2
vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
generated
vendored
@ -387,7 +387,7 @@ func pipe(p *[2]_C_int) (err error) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func getdents(fd int, buf []byte) (n int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
_p0 = unsafe.Pointer(&buf[0])
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user